:root {
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-strong: #0f172a;
    --line: rgba(34, 211, 238, 0.18);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --soft: #64748b;
    --cyan: #22d3ee;
    --cyan-strong: #06b6d4;
    --blue: #3b82f6;
    --yellow: #f59e0b;
    --radius: 22px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 28rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

.shell {
    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);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 34px rgba(34, 211, 238, 0.35);
}

.brand-text {
    display: grid;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 20px;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--cyan), #60a5fa);
    -webkit-background-clip: text;
    color: transparent;
}

.brand-text em {
    font-style: normal;
    font-size: 12px;
    color: var(--muted);
}

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

.nav-link,
.mobile-nav-link {
    color: #cbd5e1;
    font-weight: 650;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover {
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text);
    background: rgba(15, 23, 42, 0.76);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

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

.mobile-nav-link {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.78);
}

main {
    min-height: 60vh;
}

.hero {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    border-bottom: 1px solid rgba(34, 211, 238, 0.12);
}

.hero-track,
.hero-slide {
    min-height: inherit;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.01);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72) 44%, rgba(2, 6, 23, 0.36)),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.42) 34%, rgba(2, 6, 23, 0.2) 100%),
        var(--hero-image) center / cover no-repeat;
    filter: saturate(1.08);
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 26%, rgba(34, 211, 238, 0.24), transparent 20rem),
        radial-gradient(circle at 84% 18%, rgba(59, 130, 246, 0.18), transparent 22rem);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    min-height: 660px;
    margin: 0 auto;
    padding: 100px 0 92px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.55fr);
    align-items: center;
    gap: 52px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.05em;
    background: linear-gradient(90deg, #ffffff 0%, #a5f3fc 45%, #60a5fa 100%);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-summary,
.lead-text,
.page-hero p,
.detail-copy p {
    max-width: 780px;
    color: #cbd5e1;
    font-size: 18px;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.hero-tags {
    margin: 24px 0 30px;
}

.hero-tags span,
.tag-row span {
    padding: 6px 10px;
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 999px;
    color: #a5f3fc;
    background: rgba(6, 182, 212, 0.12);
    font-size: 12px;
    font-weight: 700;
}

.hero-actions,
.split-heading,
.hero-controls,
.quick-links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.primary-button,
.ghost-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-button {
    color: white;
    background: linear-gradient(135deg, var(--cyan-strong), var(--blue));
    box-shadow: 0 16px 36px rgba(6, 182, 212, 0.28);
}

.ghost-button {
    color: var(--text);
    border: 1px solid rgba(226, 232, 240, 0.2);
    background: rgba(15, 23, 42, 0.54);
    backdrop-filter: blur(14px);
}

.primary-button:hover,
.ghost-button:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 30px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: var(--shadow);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.72));
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 4;
    transform: translateX(-50%);
    padding: 9px;
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.56);
    backdrop-filter: blur(16px);
}

.hero-arrow,
.hero-dot {
    border: 0;
    color: var(--text);
    background: transparent;
    cursor: pointer;
}

.hero-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 24px;
}

.hero-arrow:hover {
    background: rgba(34, 211, 238, 0.16);
}

.hero-dots {
    display: flex;
    gap: 7px;
}

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 999px;
    background: rgba(203, 213, 225, 0.48);
}

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

.section {
    padding: 56px 0;
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading h2,
.site-footer h2,
.info-panel h2,
.detail-article h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--cyan), #60a5fa);
    -webkit-background-clip: text;
    color: transparent;
}

.section-heading.compact h2 {
    font-size: 28px;
}

.split-heading {
    justify-content: space-between;
}

.text-link {
    min-height: 38px;
    color: var(--cyan);
    border: 1px solid rgba(34, 211, 238, 0.22);
    background: rgba(6, 182, 212, 0.08);
}

.intro-section {
    padding-top: 44px;
}

.quick-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.quick-links a:hover {
    color: var(--cyan);
    border-color: rgba(34, 211, 238, 0.34);
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.16);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.64));
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.2);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.45);
    box-shadow: 0 24px 64px rgba(6, 182, 212, 0.14);
}

.card-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: #0f172a;
}

.card-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .card-cover img {
    transform: scale(1.06);
    filter: saturate(1.12) brightness(0.9);
}

.play-mark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    opacity: 0;
    background: rgba(2, 6, 23, 0.36);
    transition: opacity 0.2s ease;
}

.movie-card:hover .play-mark {
    opacity: 1;
}

.score,
.rank-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    min-width: 48px;
    padding: 4px 9px;
    border-radius: 999px;
    color: white;
    background: rgba(245, 158, 11, 0.92);
    text-align: center;
    font-size: 13px;
    font-weight: 900;
}

.rank-badge {
    left: 12px;
    right: auto;
    background: rgba(6, 182, 212, 0.92);
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0 0 8px;
    color: white;
    font-size: 17px;
    line-height: 1.35;
}

.card-body h3 a:hover {
    color: var(--cyan);
}

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

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

.meta-line span {
    padding: 3px 7px;
    border-radius: 8px;
    background: rgba(100, 116, 139, 0.14);
}

.tag-row {
    margin-top: 12px;
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 138px minmax(0, 1fr);
}

.movie-card-horizontal .card-cover img {
    height: 100%;
    min-height: 210px;
}

.category-band {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.42), rgba(2, 6, 23, 0));
    border-top: 1px solid rgba(34, 211, 238, 0.08);
    border-bottom: 1px solid rgba(34, 211, 238, 0.08);
}

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

.category-card,
.category-overview-card {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid rgba(34, 211, 238, 0.18);
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.86)),
        var(--category-image) center / cover no-repeat;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24);
}

.category-card span,
.category-head span {
    display: block;
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
}

.category-card strong,
.category-head strong {
    color: #cbd5e1;
    font-size: 14px;
}

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

.category-overview-card {
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.category-samples a {
    padding: 6px 10px;
    border-radius: 999px;
    color: #e0f2fe;
    background: rgba(15, 23, 42, 0.7);
}

.grid-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.rank-panel,
.info-panel,
.detail-article {
    border: 1px solid rgba(34, 211, 238, 0.16);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.rank-panel {
    position: sticky;
    top: 92px;
    padding: 20px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.34);
}

.rank-item:hover {
    color: var(--cyan);
    background: rgba(6, 182, 212, 0.1);
}

.rank-item strong {
    color: var(--cyan);
}

.rank-item span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-item em {
    color: var(--yellow);
    font-style: normal;
    font-weight: 900;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, 0.6fr));
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid rgba(34, 211, 238, 0.14);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
}

.filter-bar label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    color: var(--text);
    background: rgba(2, 6, 23, 0.7);
    outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(34, 211, 238, 0.58);
}

.page-main {
    padding-top: 32px;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 18px 0 24px;
    color: var(--muted);
    font-size: 14px;
}

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

.breadcrumb span::before,
.breadcrumb a + a::before,
.breadcrumb a + span::before {
    content: "/";
    margin-right: 8px;
    color: var(--soft);
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 46px;
    border: 1px solid rgba(34, 211, 238, 0.16);
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.17), transparent 22rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.82));
    box-shadow: var(--shadow);
}

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

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

.detail-cover {
    width: 100%;
    border-radius: 24px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 1px solid rgba(34, 211, 238, 0.2);
    box-shadow: 0 20px 64px rgba(0, 0, 0, 0.35);
}

.player-section {
    padding: 32px 0 12px;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 28px;
    background: #000;
    box-shadow: var(--shadow);
}

.main-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: white;
    background: radial-gradient(circle, rgba(2, 6, 23, 0.06), rgba(2, 6, 23, 0.36));
    cursor: pointer;
}

.player-overlay span {
    width: 86px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan-strong), var(--blue));
    box-shadow: 0 0 44px rgba(34, 211, 238, 0.38);
    font-size: 34px;
    padding-left: 6px;
}

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

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

.detail-article {
    padding: 28px;
}

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

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

.info-panel {
    position: sticky;
    top: 92px;
    padding: 24px;
}

.info-panel h2 {
    margin-bottom: 18px;
    font-size: 28px;
}

.info-panel dl {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 10px 14px;
    margin: 0 0 22px;
}

.info-panel dt {
    color: var(--soft);
}

.info-panel dd {
    margin: 0;
    color: #e2e8f0;
}

.wide {
    width: 100%;
}

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

.site-footer {
    margin-top: 72px;
    padding: 48px 0 26px;
    border-top: 1px solid rgba(34, 211, 238, 0.12);
    background: rgba(2, 6, 23, 0.45);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 34px;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 14px;
}

.site-footer h3 {
    color: #e2e8f0;
}

.site-footer p,
.footer-bottom {
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    color: var(--muted);
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    text-align: center;
    font-size: 14px;
}

.is-filter-hidden {
    display: none !important;
}

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

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

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

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

    .rank-panel,
    .info-panel {
        position: static;
    }
}

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

    .menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero,
    .hero-track,
    .hero-slide,
    .hero-content {
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding: 84px 0 96px;
    }

    .hero-poster {
        max-width: 320px;
    }

    .movie-grid,
    .related-grid,
    .horizontal-grid,
    .rank-grid,
    .category-grid,
    .category-overview-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .detail-cover {
        max-width: 260px;
    }
}

@media (max-width: 560px) {
    .shell,
    .header-inner,
    .mobile-nav,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 24px, 1180px);
    }

    .brand-text strong {
        font-size: 17px;
    }

    .movie-grid,
    .related-grid,
    .horizontal-grid,
    .rank-grid,
    .category-grid,
    .category-overview-grid,
    .footer-grid,
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .movie-card-horizontal .card-cover img {
        min-height: 180px;
    }

    .page-hero,
    .detail-hero,
    .detail-article,
    .info-panel {
        padding: 24px;
        border-radius: 22px;
    }

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

    .hero-summary,
    .lead-text,
    .page-hero p,
    .detail-copy p {
        font-size: 16px;
    }
}
