:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-850: #172033;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --white: #ffffff;
    --cyan-500: #06b6d4;
    --cyan-400: #22d3ee;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --shadow: 0 18px 55px rgba(2, 6, 23, 0.38);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--slate-900), var(--slate-800) 48%, var(--slate-900));
    color: var(--slate-200);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    box-shadow: 0 16px 35px rgba(2, 6, 23, 0.28);
    backdrop-filter: blur(14px);
}

.nav-shell {
    display: flex;
    align-items: center;
    gap: 28px;
    width: min(1280px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
    box-shadow: 0 10px 28px rgba(6, 182, 212, 0.25);
    transition: transform 0.2s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08);
}

.brand-text {
    max-width: 260px;
    overflow: hidden;
    color: transparent;
    font-size: 18px;
    white-space: nowrap;
    text-overflow: ellipsis;
    background: linear-gradient(90deg, var(--cyan-400), #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.nav-link {
    color: var(--slate-200);
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
    color: var(--cyan-400);
    transform: translateY(-1px);
}

.search-form,
.mobile-search,
.inline-filter,
.search-page-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-form input,
.mobile-search input,
.inline-filter input,
.search-page-form input {
    width: 230px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    outline: none;
    background: rgba(51, 65, 85, 0.82);
    color: var(--white);
    padding: 11px 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-form input:focus,
.mobile-search input:focus,
.inline-filter input:focus,
.search-page-form input:focus {
    border-color: rgba(34, 211, 238, 0.8);
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.22);
}

.search-form button,
.mobile-search button,
.inline-filter button,
.search-page-form button,
.primary-btn,
.ghost-btn,
.section-more {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    white-space: nowrap;
}

.search-form button,
.mobile-search button,
.inline-filter button,
.search-page-form button,
.primary-btn {
    color: var(--white);
    background: linear-gradient(90deg, var(--cyan-500), var(--blue-600));
    padding: 11px 18px;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-form button:hover,
.mobile-search button:hover,
.inline-filter button:hover,
.search-page-form button:hover,
.primary-btn:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 16px 36px rgba(6, 182, 212, 0.32);
}

.ghost-btn,
.section-more {
    color: var(--slate-200);
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.48);
    padding: 11px 18px;
    backdrop-filter: blur(10px);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.ghost-btn:hover,
.section-more:hover {
    color: var(--cyan-400);
    border-color: rgba(34, 211, 238, 0.56);
    background: rgba(15, 23, 42, 0.74);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    color: var(--white);
    background: rgba(51, 65, 85, 0.8);
    padding: 10px 12px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.98);
    padding: 12px 18px 18px;
}

.mobile-panel.is-open {
    display: grid;
    gap: 9px;
}

.mobile-link {
    border-radius: 12px;
    color: var(--slate-200);
    padding: 10px 12px;
}

.mobile-link:hover {
    color: var(--cyan-400);
    background: rgba(51, 65, 85, 0.56);
}

.hero-carousel {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
    background: var(--slate-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 1) 0%, rgba(15, 23, 42, 0.74) 44%, rgba(15, 23, 42, 0.18) 100%);
}

.hero-copy {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: min(1280px, calc(100% - 36px));
    margin: 0 auto;
    padding: 0 0 78px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: var(--white);
    background: rgba(6, 182, 212, 0.88);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.03em;
    padding: 7px 13px;
}

.hero-copy h1,
.page-hero h1,
.detail-card h1 {
    margin: 18px 0 16px;
    color: var(--white);
    font-size: clamp(36px, 5vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.hero-copy p,
.page-hero p,
.detail-card p {
    max-width: 780px;
    color: var(--slate-300);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: rgba(0, 0, 0, 0.48);
    cursor: pointer;
    font-size: 34px;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.72);
    transform: translateY(-50%) scale(1.06);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

.hero-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 34px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.36);
    cursor: pointer;
}

.hero-dot.is-active {
    background: var(--cyan-400);
}

.content-section {
    width: min(1280px, calc(100% - 36px));
    margin: 0 auto;
    padding: 58px 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.section-head h2 {
    margin: 0 0 8px;
    color: var(--white);
    font-size: clamp(28px, 3.5vw, 42px);
    letter-spacing: -0.035em;
}

.section-head p {
    max-width: 760px;
    margin: 0;
    color: var(--slate-400);
    line-height: 1.7;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.movie-card {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: var(--radius-lg);
    background: rgba(30, 41, 59, 0.58);
    box-shadow: 0 10px 34px rgba(2, 6, 23, 0.24);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.movie-card:hover {
    border-color: rgba(34, 211, 238, 0.38);
    background: rgba(30, 41, 59, 0.82);
    box-shadow: var(--shadow);
    transform: translateY(-6px) scale(1.015);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--slate-800);
}

.movie-card-large .poster-frame {
    aspect-ratio: 16 / 9;
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.48s ease;
}

.movie-card:hover .poster-frame img {
    transform: scale(1.08);
}

.poster-frame::after {
    position: absolute;
    inset: 35% 0 0;
    content: "";
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent);
}

.poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    border-radius: 999px;
    color: var(--white);
    background: rgba(6, 182, 212, 0.88);
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
}

.movie-info {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.movie-info strong {
    overflow: hidden;
    color: var(--white);
    font-size: 18px;
    line-height: 1.35;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.movie-info em {
    display: -webkit-box;
    min-height: 43px;
    overflow: hidden;
    color: var(--slate-400);
    font-size: 14px;
    font-style: normal;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta,
.tag-row,
.detail-meta,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.movie-meta span,
.tag-row span,
.detail-meta span,
.detail-tags span {
    border-radius: 999px;
    color: var(--slate-300);
    background: rgba(15, 23, 42, 0.62);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 9px;
}

.tag-row span {
    color: #bae6fd;
    background: rgba(8, 145, 178, 0.18);
}

.rank-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.rank-list {
    display: grid;
    gap: 14px;
}

.rank-item {
    display: grid;
    grid-template-columns: 54px 74px 1fr;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.56);
    padding: 12px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
    border-color: rgba(34, 211, 238, 0.36);
    background: rgba(30, 41, 59, 0.82);
    transform: translateX(5px);
}

.rank-no {
    color: transparent;
    font-size: 26px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--cyan-400), var(--blue-500));
    -webkit-background-clip: text;
    background-clip: text;
}

.rank-item img {
    width: 74px;
    height: 104px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-item strong,
.rank-item em,
.rank-item small {
    display: block;
}

.rank-item strong {
    color: var(--white);
    font-size: 17px;
    margin-bottom: 7px;
}

.rank-item em {
    display: -webkit-box;
    overflow: hidden;
    color: var(--slate-400);
    font-size: 13px;
    font-style: normal;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-item small {
    color: var(--slate-500, #64748b);
    margin-top: 8px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.18), transparent 32%), linear-gradient(120deg, var(--slate-900), var(--slate-800));
}

.compact-hero {
    min-height: 310px;
}

.page-hero-inner {
    width: min(1280px, calc(100% - 36px));
    margin: 0 auto;
    padding: 72px 0 58px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.category-card {
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: var(--radius-xl);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.72));
    box-shadow: 0 14px 40px rgba(2, 6, 23, 0.22);
    padding: 24px;
    transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-card:hover {
    border-color: rgba(34, 211, 238, 0.36);
    transform: translateY(-5px);
}

.category-main-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.category-main-link span {
    color: var(--white);
    font-size: 24px;
    font-weight: 900;
}

.category-main-link strong {
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(90deg, var(--cyan-500), var(--blue-600));
    font-size: 13px;
    padding: 8px 12px;
}

.category-card p {
    color: var(--slate-400);
    line-height: 1.65;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.category-samples a {
    border-radius: 999px;
    color: #bae6fd;
    background: rgba(8, 145, 178, 0.18);
    font-size: 13px;
    padding: 7px 10px;
}

.inline-filter {
    margin-top: 28px;
}

.inline-filter input,
.search-page-form input {
    width: min(520px, 100%);
}

.watch-hero {
    position: relative;
    overflow: hidden;
    background: var(--slate-900);
}

.watch-bg {
    position: absolute;
    inset: 0;
    opacity: 0.24;
    filter: blur(18px);
    transform: scale(1.08);
}

.watch-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.watch-bg::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.48), rgba(15, 23, 42, 0.98));
}

.watch-inner {
    position: relative;
    z-index: 1;
    width: min(1280px, calc(100% - 36px));
    margin: 0 auto;
    padding: 28px 0 56px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    color: var(--slate-400);
    font-size: 14px;
    margin-bottom: 24px;
}

.breadcrumb a:hover {
    color: var(--cyan-400);
}

.watch-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(300px, 0.75fr);
    gap: 28px;
    align-items: stretch;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius-xl);
    background: #000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.player-shell video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.54));
    cursor: pointer;
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
    box-shadow: 0 20px 50px rgba(6, 182, 212, 0.32);
    font-size: 34px;
    padding-left: 5px;
    transition: transform 0.2s ease;
}

.player-overlay:hover span {
    transform: scale(1.08);
}

.player-overlay.is-hidden {
    display: none;
}

.detail-card {
    display: grid;
    gap: 18px;
    align-content: start;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: var(--radius-xl);
    background: rgba(15, 23, 42, 0.62);
    padding: 18px;
    backdrop-filter: blur(16px);
}

.detail-card img {
    width: 100%;
    border-radius: 18px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-card h1 {
    font-size: clamp(28px, 3vw, 42px);
}

.detail-card p {
    font-size: 15px;
}

.detail-content {
    padding-top: 36px;
}

.article-panel {
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: var(--radius-xl);
    background: rgba(30, 41, 59, 0.48);
    box-shadow: 0 10px 36px rgba(2, 6, 23, 0.22);
    padding: clamp(24px, 4vw, 42px);
}

.article-panel h2 {
    color: var(--white);
    font-size: 28px;
    margin: 0 0 16px;
}

.article-panel h2:not(:first-child) {
    margin-top: 34px;
}

.article-panel p {
    color: var(--slate-300);
    font-size: 17px;
    line-height: 1.9;
    margin: 0;
}

.detail-tags {
    margin-top: 28px;
}

.site-footer {
    margin-top: 40px;
    color: var(--slate-300);
    background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
    gap: 32px;
    width: min(1280px, calc(100% - 36px));
    margin: 0 auto;
    padding: 42px 0;
}

.footer-inner p {
    max-width: 760px;
    color: var(--slate-400);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-content: start;
    justify-content: flex-end;
}

.footer-links a {
    border-radius: 999px;
    color: var(--slate-300);
    background: rgba(51, 65, 85, 0.42);
    padding: 9px 13px;
}

.footer-links a:hover {
    color: var(--cyan-400);
}

.footer-copy {
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    color: var(--slate-400);
    text-align: center;
    padding: 20px;
}

@media (max-width: 1100px) {
    .desktop-nav,
    .search-form {
        display: none;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .movie-grid,
    .feature-grid,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rank-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .watch-grid {
        grid-template-columns: 1fr;
    }

    .detail-card {
        grid-template-columns: 180px 1fr;
    }
}

@media (max-width: 760px) {
    .nav-shell {
        width: calc(100% - 24px);
        height: 62px;
    }

    .brand-text {
        max-width: 190px;
        font-size: 16px;
    }

    .hero-carousel {
        height: 620px;
        min-height: 620px;
    }

    .hero-copy {
        width: calc(100% - 28px);
        padding-bottom: 72px;
    }

    .hero-arrow {
        display: none;
    }

    .content-section,
    .page-hero-inner,
    .watch-inner,
    .footer-inner {
        width: calc(100% - 28px);
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-grid,
    .feature-grid,
    .rank-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .movie-info {
        padding: 13px;
    }

    .movie-info strong {
        font-size: 16px;
    }

    .rank-item {
        grid-template-columns: 42px 58px 1fr;
        gap: 11px;
    }

    .rank-item img {
        width: 58px;
        height: 82px;
    }

    .rank-no {
        font-size: 20px;
    }

    .detail-card {
        grid-template-columns: 1fr;
    }

    .detail-card img {
        max-width: 260px;
    }

    .inline-filter,
    .search-page-form,
    .mobile-search {
        align-items: stretch;
        flex-direction: column;
    }

    .inline-filter input,
    .search-page-form input,
    .mobile-search input {
        width: 100%;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 470px) {
    .movie-grid,
    .feature-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .rank-grid,
    .rank-list {
        grid-template-columns: 1fr;
    }
}
