:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-850: #121c31;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --cyan-500: #06b6d4;
    --cyan-400: #22d3ee;
    --blue-500: #3b82f6;
    --white: #ffffff;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.15);
    --shadow-strong: 0 30px 80px rgba(8, 47, 73, 0.35);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--slate-900);
    background: var(--slate-50);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    color: var(--white);
    background: linear-gradient(90deg, #1e293b, #334155, #1e293b);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.22);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-400), var(--blue-500));
    box-shadow: 0 12px 26px rgba(6, 182, 212, 0.28);
}

.brand-copy {
    display: grid;
    gap: 1px;
}

.brand strong,
.footer-brand strong {
    font-size: 24px;
    letter-spacing: -0.02em;
}

.brand small {
    color: #cbd5e1;
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link,
.mobile-link {
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--cyan-400);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--white);
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    border-top: 1px solid rgba(203, 213, 225, 0.24);
}

.mobile-nav.is-open {
    display: grid;
    gap: 12px;
}

.mobile-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #cbd5e1;
    font-size: 14px;
}

.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.25), transparent 28%), linear-gradient(135deg, #1e293b 0%, #334155 42%, #164e63 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.65), rgba(15, 23, 42, 0.28), rgba(8, 47, 73, 0.72));
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    gap: 42px;
    align-items: center;
    min-height: 620px;
    padding: 72px 0;
}

.hero-copy {
    max-width: 700px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #cffafe;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.hero p {
    margin: 0;
    color: #dbeafe;
    font-size: 18px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
    box-shadow: 0 16px 34px rgba(6, 182, 212, 0.35);
}

.btn-ghost {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.hero-tags a,
.tag-row span,
.detail-tags span,
.meta-pill {
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.12);
    color: #0e7490;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags a {
    color: #cffafe;
    padding: 8px 13px;
    border: 1px solid rgba(103, 232, 249, 0.22);
    background: rgba(8, 47, 73, 0.46);
}

.hero-stage {
    position: relative;
}

.hero-card {
    position: relative;
    display: none;
    overflow: hidden;
    min-height: 440px;
    border-radius: 32px;
    box-shadow: var(--shadow-strong);
    background: #0f172a;
}

.hero-card.active {
    display: block;
}

.hero-card img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-card:hover img {
    transform: scale(1.04);
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.08) 62%);
}

.hero-card-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 28px;
}

.hero-card-content h2 {
    margin: 12px 0 10px;
    font-size: 30px;
    line-height: 1.15;
}

.hero-card-content p {
    color: #e2e8f0;
    font-size: 15px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #cffafe;
    font-size: 13px;
    font-weight: 800;
}

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.hero-dot {
    width: 38px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    cursor: pointer;
}

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

.hero-side-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 22px;
}

.mini-feature {
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.2);
}

.mini-feature img {
    width: 100%;
    height: 116px;
    object-fit: cover;
}

.mini-feature span {
    display: block;
    padding: 10px;
    font-size: 13px;
    font-weight: 800;
    color: #f8fafc;
}

.section,
.page-hero {
    padding: 64px 0 0;
}

.page-hero {
    color: var(--white);
    background: linear-gradient(135deg, #0f172a, #1e293b 55%, #164e63);
    padding: 64px 0;
}

.page-hero h1,
.section-title h2,
.section-title h1 {
    margin: 0;
    letter-spacing: -0.035em;
}

.page-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
    max-width: 760px;
    color: #dbeafe;
    font-size: 17px;
}

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

.section-title h2,
.section-title h1 {
    font-size: clamp(28px, 4vw, 42px);
}

.section-title p {
    margin: 8px 0 0;
    color: var(--slate-600);
}

.more-link {
    color: #0891b2;
    font-weight: 800;
}

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

.movie-grid.compact {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.18);
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #0f172a;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.84), rgba(15, 23, 42, 0.06));
    transition: opacity 0.25s ease;
}

.movie-card:hover .card-cover::after {
    opacity: 1;
}

.card-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    color: var(--white);
    background: var(--cyan-500);
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.movie-card:hover .card-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-region,
.rank-badge {
    position: absolute;
    z-index: 3;
    top: 12px;
    border-radius: 999px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
}

.card-region {
    right: 12px;
    padding: 5px 10px;
    background: rgba(2, 6, 23, 0.72);
}

.rank-badge {
    left: 12px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #f97316, #06b6d4);
}

.card-body {
    padding: 16px;
}

.card-body h2,
.card-body h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.25;
}

.card-body h2 a,
.card-body h3 a {
    transition: color 0.2s ease;
}

.card-body h2 a:hover,
.card-body h3 a:hover {
    color: #0891b2;
}

.card-body p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--slate-600);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--slate-500);
    font-size: 13px;
}

.card-meta span {
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--slate-100);
}

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag-row span,
.detail-tags span,
.meta-pill {
    padding: 5px 9px;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    border-radius: var(--radius-md);
    color: var(--white);
    background: #0f172a;
    box-shadow: var(--shadow-soft);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
    transition: transform 0.4s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.85), rgba(8, 47, 73, 0.15));
}

.category-tile-content {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    padding: 18px;
}

.category-tile h2,
.category-tile h3 {
    margin: 0 0 8px;
}

.category-tile p {
    margin: 0;
    color: #dbeafe;
    font-size: 14px;
}

.filter-box {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(150px, 0.22fr));
    gap: 14px;
    margin: 26px 0 28px;
    padding: 18px;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.filter-box label {
    display: grid;
    gap: 7px;
    color: var(--slate-600);
    font-size: 13px;
    font-weight: 800;
}

.filter-box input,
.filter-box select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    outline: none;
    background: var(--slate-50);
}

.filter-box input:focus,
.filter-box select:focus {
    border-color: var(--cyan-500);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.empty-state {
    display: none;
    padding: 32px;
    border-radius: var(--radius-md);
    color: var(--slate-600);
    background: var(--white);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.empty-state.is-visible {
    display: block;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 76px 120px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    color: var(--white);
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(135deg, #f97316, var(--cyan-500));
}

.rank-row img {
    width: 120px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
}

.rank-row h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.rank-row p {
    margin: 0;
    color: var(--slate-600);
}

.detail-hero {
    color: var(--white);
    background: radial-gradient(circle at 75% 10%, rgba(34, 211, 238, 0.22), transparent 26%), linear-gradient(135deg, #0f172a, #1e293b 58%, #164e63);
    padding: 44px 0 64px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: #cbd5e1;
    font-size: 14px;
}

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

.detail-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow-strong);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-copy p {
    max-width: 780px;
    color: #dbeafe;
    font-size: 18px;
}

.detail-meta {
    margin: 18px 0;
}

.meta-pill {
    color: #cffafe;
    background: rgba(8, 145, 178, 0.28);
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow-strong);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.75), rgba(15, 23, 42, 0.1));
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.play-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.play-overlay span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
    box-shadow: 0 18px 44px rgba(6, 182, 212, 0.35);
    font-size: 28px;
}

.content-card {
    padding: 30px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.content-card h2 {
    margin: 0 0 16px;
    font-size: 28px;
}

.content-card p {
    margin: 0;
    color: var(--slate-700);
    font-size: 16px;
}

.content-stack {
    display: grid;
    gap: 22px;
}

.site-footer {
    margin-top: 72px;
    color: #cbd5e1;
    background: var(--slate-950);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr repeat(3, 1fr);
    gap: 34px;
    padding: 48px 0;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 18px;
}

.site-footer p {
    margin: 14px 0 0;
    color: #94a3b8;
}

.site-footer ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.footer-bottom {
    padding: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    text-align: center;
    color: #94a3b8;
}

@media (max-width: 1024px) {
    .hero-inner,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        min-height: auto;
    }

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

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

    .filter-box {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .brand strong {
        font-size: 20px;
    }

    .hero-inner,
    .page-hero,
    .section {
        padding-top: 36px;
    }

    .hero-card,
    .hero-card img {
        min-height: 360px;
        height: 360px;
    }

    .hero-side-list {
        grid-template-columns: 1fr;
    }

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

    .filter-box {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 54px 92px minmax(0, 1fr);
    }

    .rank-row .btn {
        grid-column: 2 / -1;
    }

    .rank-row img {
        width: 92px;
    }

    .detail-poster {
        max-width: 280px;
    }

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

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

    .hero h1,
    .detail-copy h1,
    .page-hero h1 {
        font-size: 36px;
    }

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