:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --cyan-600: #0891b2;
    --cyan-500: #06b6d4;
    --cyan-400: #22d3ee;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --yellow-400: #facc15;
    --white: #ffffff;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --shadow-card: 0 14px 34px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 28px rgba(14, 116, 144, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--slate-900);
    background: linear-gradient(180deg, var(--slate-50), var(--slate-100));
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.no-scroll {
    overflow: hidden;
}

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: 50;
    background: rgba(15, 23, 42, 0.96);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.24);
    backdrop-filter: blur(16px);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--white);
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--slate-950);
    background: linear-gradient(135deg, var(--cyan-400), var(--blue-500));
    box-shadow: 0 0 26px rgba(34, 211, 238, 0.42);
}

.logo-text {
    background: linear-gradient(90deg, var(--cyan-400), #93c5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #cbd5e1;
    font-size: 15px;
    font-weight: 600;
}

.site-nav a {
    transition: color 0.22s ease;
}

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

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(30, 41, 59, 0.98);
}

.mobile-menu.is-open {
    display: block;
}

.mobile-menu nav {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 0 18px;
    display: grid;
    gap: 2px;
}

.mobile-menu a {
    padding: 12px 2px;
    color: #cbd5e1;
    font-weight: 600;
}

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

.hero {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-900), #164e63 55%, var(--slate-950));
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.31;
    transform: scale(1.02);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 35%, rgba(34, 211, 238, 0.24), transparent 30%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.50), rgba(15, 23, 42, 0.22));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 72px 0;
}

.hero-copy {
    width: min(760px, 100%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--cyan-400);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.045em;
}

.hero p {
    max-width: 720px;
    margin: 0 0 24px;
    color: #cbd5e1;
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.85;
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #cffafe;
    background: rgba(8, 145, 178, 0.20);
    border: 1px solid rgba(34, 211, 238, 0.36);
    font-size: 13px;
    font-weight: 700;
}

.pill.light {
    color: #334155;
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    font-weight: 800;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
    color: var(--white);
    background: linear-gradient(90deg, var(--cyan-500), var(--blue-500));
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22);
}

.btn-ghost {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.20);
}

.hero-controls {
    position: absolute;
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 34px;
    z-index: 4;
    display: flex;
    gap: 10px;
}

.hero-control {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.28);
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 46px;
    z-index: 4;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
    padding: 64px 0;
}

.section.white {
    background: var(--white);
}

.section.soft {
    background: linear-gradient(90deg, var(--slate-50), #ecfeff);
}

.section.dark {
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-900), #164e63);
}

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

.section-title {
    margin: 0;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-subtitle {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--slate-600);
    line-height: 1.75;
}

.section.dark .section-subtitle {
    color: #cbd5e1;
}

.link-more {
    flex: none;
    color: var(--cyan-600);
    font-weight: 800;
}

.section.dark .link-more {
    color: var(--cyan-400);
}

.grid {
    display: grid;
    gap: 22px;
}

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

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #e2e8f0;
}

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

.movie-card:hover .poster img,
.rank-item:hover img,
.related-card:hover img {
    transform: scale(1.08);
}

.poster-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 8px;
    border-radius: 8px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.68);
    font-size: 12px;
    font-weight: 700;
}

.card-body {
    flex: 1;
    padding: 16px;
}

.card-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 4px 9px;
    border-radius: 8px;
    color: #0e7490;
    background: #cffafe;
    font-size: 12px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 0 0 10px;
    color: var(--slate-900);
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--slate-500);
    font-size: 12px;
    font-weight: 700;
}

.movie-card.horizontal {
    flex-direction: row;
}

.movie-card.horizontal .poster {
    width: 210px;
    flex: 0 0 210px;
    aspect-ratio: auto;
}

.movie-card.large {
    min-height: 100%;
}

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

.movie-card.large h3 {
    font-size: 23px;
}

.category-card {
    min-height: 160px;
    padding: 22px;
    border-radius: var(--radius-xl);
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-900), #155e75);
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(14, 116, 144, 0.24);
}

.category-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 900;
}

.category-card p {
    margin: 0;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.7;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 150px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.22s ease, transform 0.22s ease;
}

.rank-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.13);
}

.rank-number {
    color: var(--cyan-400);
    font-size: 30px;
    font-weight: 900;
    text-align: center;
}

.rank-poster {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: #334155;
}

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

.rank-info h3 {
    margin: 0 0 8px;
    color: var(--white);
    font-size: 18px;
    font-weight: 900;
}

.rank-info p {
    margin: 0;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-hero {
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-900), #164e63);
    padding: 72px 0;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.12;
    font-weight: 900;
}

.page-hero p {
    max-width: 800px;
    margin: 0;
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: #bae6fd;
    font-size: 14px;
    font-weight: 700;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 28px;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.search-input {
    min-height: 46px;
    width: 100%;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    outline: none;
    background: #f8fafc;
}

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

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: var(--slate-600);
    background: var(--white);
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}

.filter-chip.is-active,
.filter-chip:hover {
    color: var(--white);
    border-color: var(--cyan-500);
    background: var(--cyan-600);
}

.movie-detail {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 360px;
    gap: 30px;
    align-items: start;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.28);
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.10), rgba(2, 6, 23, 0.62));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--slate-950);
    background: linear-gradient(135deg, var(--cyan-400), var(--blue-500));
    box-shadow: 0 18px 42px rgba(6, 182, 212, 0.38);
    font-size: 34px;
    transform: translateZ(0);
}

.content-card,
.sidebar-card {
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.content-card {
    padding: 28px;
}

.content-card h1 {
    margin: 12px 0 16px;
    color: var(--slate-900);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.content-card h2 {
    margin: 28px 0 12px;
    font-size: 24px;
    font-weight: 900;
}

.content-card p {
    color: var(--slate-700);
    font-size: 16px;
    line-height: 1.9;
}

.sidebar-card {
    position: sticky;
    top: 88px;
    padding: 20px;
}

.sidebar-card h2 {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 900;
}

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

.related-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.related-thumb {
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 16 / 10;
    background: #e2e8f0;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-card h3 {
    margin: 0 0 6px;
    color: var(--slate-900);
    font-size: 15px;
    line-height: 1.35;
    font-weight: 900;
}

.related-card p {
    margin: 0;
    color: var(--slate-500);
    font-size: 12px;
    line-height: 1.5;
}

.footer {
    color: #cbd5e1;
    background: var(--slate-900);
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.footer-inner {
    padding: 44px 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 30px;
}

.footer h3 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 16px;
}

.footer p,
.footer a {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.8;
}

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

.footer-links {
    display: grid;
    gap: 8px;
}

.copyright {
    padding: 18px 0;
    color: #64748b;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    text-align: center;
    font-size: 13px;
}

.empty-state {
    display: none;
    padding: 50px 20px;
    text-align: center;
    color: var(--slate-500);
    background: var(--white);
    border-radius: var(--radius-lg);
}

@media (max-width: 1024px) {
    .grid.cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .sidebar-card {
        position: static;
    }

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

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

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

    .hero,
    .hero-content {
        min-height: 560px;
    }

    .hero-controls {
        right: 18px;
        bottom: 22px;
    }

    .hero-dots {
        left: 24px;
        bottom: 36px;
        transform: none;
    }

    .section {
        padding: 44px 0;
    }

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

    .grid.cards,
    .grid.cards-3,
    .grid.categories {
        grid-template-columns: 1fr;
    }

    .movie-card.horizontal {
        flex-direction: column;
    }

    .movie-card.horizontal .poster {
        width: 100%;
        flex: none;
        aspect-ratio: 16 / 9;
    }

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

    .rank-item {
        grid-template-columns: 42px 110px minmax(0, 1fr);
        gap: 12px;
    }

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

    .content-card {
        padding: 20px;
    }
}
