:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-strong: rgba(15, 23, 42, 0.96);
    --line: rgba(148, 163, 184, 0.18);
    --text: #e5e7eb;
    --muted: #94a3b8;
    --brand: #2563eb;
    --brand-strong: #1d4ed8;
    --brand-soft: rgba(37, 99, 235, 0.16);
    --cyan: #38bdf8;
    --gold: #f59e0b;
    --radius: 24px;
    --shadow: 0 24px 80px rgba(2, 6, 23, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 0%, rgba(37, 99, 235, 0.18), transparent 34rem),
        radial-gradient(circle at 80% 10%, rgba(56, 189, 248, 0.12), transparent 30rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

body.no-scroll {
    overflow: hidden;
}

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

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(2, 6, 23, 0.82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #ffffff;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), var(--cyan));
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.36);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: #cbd5e1;
    transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.22);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: #ffffff;
}

.hero-slider {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    background: #020617;
}

.hero-bg-glow {
    position: absolute;
    inset: auto -18% -30% auto;
    width: 620px;
    height: 620px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.35);
    filter: blur(120px);
    pointer-events: none;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 48px;
    align-items: center;
    padding: 110px max(32px, calc((100vw - 1180px) / 2)) 130px;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 0.9s ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-copy {
    max-width: 760px;
    position: relative;
    z-index: 2;
}

.hero-kicker,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.hero-kicker span,
.detail-meta span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #dbeafe;
    font-size: 13px;
}

.hero-copy h1 {
    margin: 0 0 24px;
    max-width: 760px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
    color: #ffffff;
}

.hero-copy p {
    margin: 0;
    max-width: 680px;
    color: #bfdbfe;
    font-size: clamp(18px, 2vw, 24px);
}

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

.primary-button,
.glass-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.primary-button {
    background: linear-gradient(135deg, var(--brand), #0ea5e9);
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.32);
}

.glass-button,
.section-more {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.primary-button:hover,
.glass-button:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    z-index: 2;
    width: min(360px, 26vw);
    aspect-ratio: 2 / 3;
    border-radius: 30px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, transparent 52%, rgba(2, 6, 23, 0.72));
}

.hero-dots {
    position: absolute;
    left: max(32px, calc((100vw - 1180px) / 2));
    bottom: 72px;
    display: flex;
    gap: 10px;
    z-index: 5;
}

.hero-dots button {
    width: 34px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    cursor: pointer;
}

.hero-dots button.active {
    width: 58px;
    background: #ffffff;
}

.hero-category-links {
    position: absolute;
    right: max(32px, calc((100vw - 1180px) / 2));
    bottom: 58px;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    max-width: 560px;
}

.hero-category-links a {
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #dbeafe;
}

.section {
    padding: 74px 0;
}

.section-raised {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.64), rgba(2, 6, 23, 0.1));
}

.section-muted {
    background: rgba(15, 23, 42, 0.56);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

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

.section-heading span,
.page-hero span {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--cyan);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 13px;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.detail-article h2,
.side-panel h2 {
    margin: 0;
    color: #ffffff;
    line-height: 1.16;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 44px);
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
    max-width: 720px;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.74));
    border: 1px solid var(--line);
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.24);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.42);
    box-shadow: 0 24px 70px rgba(37, 99, 235, 0.18);
}

.poster,
.detail-poster,
.category-cover {
    display: block;
    position: relative;
    background-color: #111827;
    background-size: cover;
    background-position: center;
}

.poster {
    aspect-ratio: 2 / 3;
}

.poster::after,
.detail-poster::after,
.category-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.02), rgba(2, 6, 23, 0.72));
}

.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.year-badge {
    top: 12px;
    left: 12px;
    background: rgba(2, 6, 23, 0.76);
    color: #dbeafe;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.rank-badge {
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #111827;
}

.movie-card-body {
    padding: 18px;
}

.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.movie-card h2 {
    margin: 9px 0 8px;
    font-size: 19px;
    line-height: 1.3;
    color: #ffffff;
}

.movie-card h2 a:hover {
    color: #93c5fd;
}

.movie-card p {
    margin: 0;
    color: #cbd5e1;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.movie-card-compact .movie-card-body {
    padding: 15px;
}

.movie-card-compact h2 {
    font-size: 17px;
}

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

.category-card {
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background-size: cover;
    background-position: center;
    box-shadow: 0 18px 60px rgba(2, 6, 23, 0.26);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.48);
}

.category-card span,
.category-overview-card span {
    color: #93c5fd;
    font-weight: 800;
}

.category-card h2 {
    margin: 0;
    color: #ffffff;
    font-size: 24px;
}

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

.page-hero,
.detail-hero {
    position: relative;
    padding: 92px 0 70px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 64, 175, 0.62)),
        radial-gradient(circle at 82% 24%, rgba(56, 189, 248, 0.28), transparent 28rem);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.page-hero h1 {
    font-size: clamp(36px, 5vw, 58px);
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 820px;
    margin: 16px 0 0;
    color: #bfdbfe;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #93c5fd;
}

.filter-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px;
    gap: 14px;
    align-items: end;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
}

.filter-toolbar label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.filter-toolbar input,
.filter-toolbar select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.72);
    color: #ffffff;
    padding: 0 14px;
    outline: none;
}

.filter-toolbar input:focus,
.filter-toolbar select:focus {
    border-color: rgba(56, 189, 248, 0.62);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
}

.overview-grid {
    display: grid;
    gap: 20px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.76);
}

.category-cover {
    min-height: 210px;
    border-radius: 20px;
    overflow: hidden;
}

.category-cover span {
    position: absolute;
    z-index: 2;
    left: 18px;
    bottom: 16px;
    color: #ffffff;
    font-size: 26px;
}

.category-overview-card h2 {
    margin: 8px 0 8px;
    color: #ffffff;
    font-size: 28px;
}

.category-overview-card p {
    margin: 0 0 16px;
    color: #cbd5e1;
}

.mini-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mini-link-list a,
.side-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.14);
    color: #dbeafe;
}

.mini-link-list a:hover,
.side-links a:hover {
    background: rgba(37, 99, 235, 0.28);
}

.detail-hero {
    padding: 64px 0;
}

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

.detail-poster {
    aspect-ratio: 2 / 3;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.detail-copy h1 {
    margin-top: 18px;
    font-size: clamp(36px, 5vw, 62px);
    letter-spacing: -0.04em;
}

.detail-copy .lead {
    max-width: 800px;
    margin: 18px 0 0;
    color: #bfdbfe;
    font-size: 20px;
}

.player-section {
    padding-top: 42px;
}

.player-card {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 30px;
    padding: 12px;
    background: rgba(15, 23, 42, 0.84);
    box-shadow: var(--shadow);
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    padding: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.34), rgba(37, 99, 235, 0.42));
    cursor: pointer;
    text-align: center;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-icon {
    width: 82px;
    height: 82px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand), var(--cyan));
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.38);
}

.play-icon::before {
    content: "";
    margin-left: 6px;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 24px solid #ffffff;
}

.player-overlay strong {
    font-size: clamp(22px, 4vw, 36px);
}

.player-overlay em {
    color: #bfdbfe;
    font-style: normal;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.detail-article,
.side-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
    padding: 28px;
}

.detail-article h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 28px;
}

.detail-article p {
    margin: 0 0 26px;
    color: #cbd5e1;
    font-size: 17px;
}

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

.info-list div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.48);
    border: 1px solid var(--line);
}

.info-list dt {
    color: var(--muted);
    font-size: 13px;
}

.info-list dd {
    margin: 4px 0 0;
    color: #ffffff;
    font-weight: 700;
}

.side-panel h2 {
    margin-bottom: 16px;
    font-size: 24px;
}

.side-links {
    display: grid;
    gap: 10px;
}

.side-links a {
    justify-content: flex-start;
    border-radius: 16px;
}

.side-links span {
    color: var(--cyan);
    font-size: 13px;
    font-weight: 800;
}

.site-footer {
    padding: 54px 0 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.42), #020617);
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    margin-bottom: 14px;
}

.site-footer p {
    margin: 0;
    color: var(--muted);
}

.site-footer h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 18px;
}

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

.footer-links a {
    color: #cbd5e1;
}

.footer-links a:hover {
    color: #93c5fd;
}

.footer-bottom {
    margin-top: 34px;
    padding: 18px 0 28px;
    border-top: 1px solid var(--line);
    color: #64748b;
    font-size: 14px;
}

.movie-card.is-hidden {
    display: none;
}

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

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

    .hero-slide {
        grid-template-columns: 1fr;
        min-height: 720px;
    }

    .hero-poster {
        display: none;
    }

    .detail-layout,
    .detail-content-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(320px, 100%);
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .menu-toggle {
        display: inline-block;
    }

    .site-nav {
        position: fixed;
        inset: 72px 12px auto 12px;
        display: grid;
        gap: 8px;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: rgba(2, 6, 23, 0.96);
        transform: translateY(-18px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    }

    .site-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        border-radius: 14px;
    }

    .hero-slider {
        min-height: 680px;
    }

    .hero-slide {
        padding: 96px 20px 160px;
    }

    .hero-category-links {
        left: 20px;
        right: 20px;
        bottom: 28px;
        justify-content: flex-start;
    }

    .hero-dots {
        left: 20px;
        bottom: 122px;
    }

    .section {
        padding: 50px 0;
    }

    .section-heading {
        display: grid;
    }

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

    .movie-card-body {
        padding: 14px;
    }

    .movie-card h2 {
        font-size: 16px;
    }

    .movie-card p {
        -webkit-line-clamp: 2;
    }

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

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

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

    .detail-copy h1 {
        font-size: 34px;
    }

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

@media (max-width: 420px) {
    .movie-grid {
        grid-template-columns: 1fr;
    }

    .brand {
        font-size: 18px;
    }
}
