
:root {
    --night-950: #0a1929;
    --night-900: #102a43;
    --night-850: #173552;
    --night-800: #243b53;
    --night-700: #334e68;
    --night-600: #486581;
    --night-400: #9fb3c8;
    --night-300: #bcccdc;
    --night-100: #f0f4f8;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.36);
    --shadow-card: 0 18px 60px rgba(0, 0, 0, 0.32);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.14), transparent 28rem),
        radial-gradient(circle at 78% 12%, rgba(72, 101, 129, 0.22), transparent 32rem),
        linear-gradient(180deg, #0a1929 0%, #071522 52%, #0a1929 100%);
    color: var(--night-100);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 25, 41, 0.82);
    border-bottom: 1px solid rgba(159, 179, 200, 0.14);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 14px;
    color: #0a1929;
    background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
    box-shadow: 0 10px 32px rgba(245, 158, 11, 0.32);
}

.brand-text {
    font-size: 1.24rem;
    background: linear-gradient(135deg, #ffffff, var(--amber-400));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav a,
.mobile-nav a {
    padding: 10px 15px;
    border-radius: 12px;
    color: var(--night-300);
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.mobile-nav a:hover {
    color: var(--amber-400);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(159, 179, 200, 0.18);
    border-radius: 14px;
    background: rgba(36, 59, 83, 0.68);
    color: var(--night-100);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 12px 16px 22px;
    border-top: 1px solid rgba(159, 179, 200, 0.12);
}

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

.hero {
    position: relative;
    min-height: 78vh;
    overflow: hidden;
    background: var(--night-950);
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    display: flex;
    align-items: flex-end;
    opacity: 0;
    background-position: center;
    background-size: cover;
    transition: opacity 0.9s ease;
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 2;
}

.hero-overlay,
.detail-hero-overlay,
.page-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 25, 41, 0.96) 0%, rgba(10, 25, 41, 0.72) 40%, rgba(10, 25, 41, 0.28) 100%),
        linear-gradient(0deg, rgba(10, 25, 41, 1) 0%, rgba(10, 25, 41, 0.12) 60%);
}

.hero-content {
    position: relative;
    z-index: 4;
    padding-top: 110px;
    padding-bottom: 104px;
}

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

.eyebrow,
.section-kicker {
    margin: 0 0 10px;
    color: var(--amber-400);
    font-size: 0.83rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1,
.hero h2,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero h1,
.hero h2 {
    max-width: 980px;
    font-size: clamp(2.05rem, 5vw, 4.9rem);
}

.hero-movie-title {
    display: block;
    margin-top: 14px !important;
    color: var(--amber-400);
    font-size: clamp(1.5rem, 3.2vw, 3.4rem) !important;
}

.hero-summary {
    max-width: 720px;
    margin: 22px 0 0;
    color: var(--night-300);
    font-size: clamp(1rem, 1.7vw, 1.22rem);
}

.hero-tags,
.tag-row,
.detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.hero-tags span,
.tag-row span,
.detail-stats span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    color: var(--amber-400);
    font-size: 0.86rem;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
    color: #0a1929;
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.28);
}

.btn-ghost {
    border: 1px solid rgba(159, 179, 200, 0.22);
    background: rgba(16, 42, 67, 0.72);
    color: var(--night-100);
}

.btn-plain {
    color: var(--amber-400);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.34);
    color: #ffffff;
    font-size: 2.4rem;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer;
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    right: 50%;
    bottom: 32px;
    z-index: 6;
    display: flex;
    gap: 9px;
    transform: translateX(50%);
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

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

.hero-search,
.filter-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    margin: 28px 0 0;
    border: 1px solid rgba(159, 179, 200, 0.16);
    border-radius: var(--radius-md);
    background: rgba(16, 42, 67, 0.72);
    box-shadow: var(--shadow-card);
}

.hero-search input,
.filter-bar input {
    flex: 1;
    min-width: 0;
    height: 50px;
    padding: 0 18px;
    border: 1px solid rgba(159, 179, 200, 0.18);
    border-radius: 15px;
    outline: none;
    background: rgba(10, 25, 41, 0.72);
    color: var(--night-100);
}

.hero-search a,
.filter-bar a {
    color: var(--amber-400);
    font-weight: 800;
    white-space: nowrap;
}

.section-block {
    margin: 64px 0;
}

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

.section-heading h2,
.category-section-head h2,
.story-panel h2,
.info-panel h2 {
    margin: 0;
    color: var(--night-100);
    font-size: clamp(1.55rem, 2.6vw, 2.4rem);
    line-height: 1.18;
}

.section-heading p,
.category-section-head p,
.category-section-head span {
    margin: 0;
    color: var(--night-400);
}

.section-more {
    color: var(--amber-400);
    font-weight: 800;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 166px;
    padding: 22px;
    border: 1px solid rgba(159, 179, 200, 0.14);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(16, 42, 67, 0.96), rgba(36, 59, 83, 0.58));
    box-shadow: var(--shadow-card);
}

.category-tile strong,
.category-tile span,
.category-tile em {
    position: relative;
    z-index: 2;
    display: block;
}

.category-tile strong {
    margin-bottom: 12px;
    font-size: 1.22rem;
}

.category-tile span {
    color: var(--night-300);
    font-size: 0.92rem;
}

.category-tile em {
    margin-top: 18px;
    color: var(--amber-400);
    font-style: normal;
    font-size: 0.86rem;
}

.category-glow {
    position: absolute !important;
    right: -46px;
    bottom: -46px;
    z-index: 1 !important;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.18);
    filter: blur(10px);
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(159, 179, 200, 0.14);
    border-radius: var(--radius-md);
    background: rgba(16, 42, 67, 0.82);
    box-shadow: 0 14px 48px rgba(0, 0, 0, 0.22);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    border-color: rgba(245, 158, 11, 0.42);
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.38);
    transform: translateY(-6px);
}

.poster-link,
.poster-frame {
    display: block;
}

.poster-frame {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.22), transparent),
        var(--night-800);
}

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

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

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(0deg, rgba(10, 25, 41, 0.88), transparent);
}

.poster-badge {
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.62);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
    color: var(--night-400);
    font-size: 0.78rem;
}

.card-body h2 {
    margin: 0 0 10px;
    font-size: 1.02rem;
    line-height: 1.34;
}

.card-body h2 a:hover {
    color: var(--amber-400);
}

.card-body p {
    min-height: 3.2em;
    margin: 0;
    color: var(--night-300);
    font-size: 0.9rem;
}

.tag-row {
    gap: 7px;
    margin-top: 13px;
}

.tag-row span {
    min-height: auto;
    padding: 4px 9px;
    font-size: 0.74rem;
}

.split-block {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 24px;
}

.split-content,
.spotlight-card,
.story-panel,
.info-panel,
.category-section {
    border: 1px solid rgba(159, 179, 200, 0.14);
    border-radius: var(--radius-lg);
    background: rgba(16, 42, 67, 0.72);
    box-shadow: var(--shadow-card);
}

.split-content,
.story-panel,
.info-panel,
.category-section {
    padding: 24px;
}

.compact-heading {
    margin-bottom: 18px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 46px 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid rgba(159, 179, 200, 0.12);
    border-radius: 18px;
    background: rgba(10, 25, 41, 0.42);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    background: rgba(36, 59, 83, 0.82);
    transform: translateX(4px);
}

.rank-number {
    color: var(--amber-400);
    font-weight: 900;
    font-size: 1.1rem;
}

.rank-thumb {
    overflow: hidden;
    width: 58px;
    height: 80px;
    border-radius: 12px;
    background: var(--night-800);
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.rank-main strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-main em {
    color: var(--night-400);
    font-style: normal;
    font-size: 0.86rem;
}

.rank-score {
    color: var(--amber-400);
    font-weight: 900;
}

.spotlight-card {
    overflow: hidden;
}

.spotlight-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.spotlight-card div {
    padding: 24px;
}

.spotlight-card span {
    color: var(--amber-400);
    font-weight: 800;
}

.spotlight-card h2 {
    margin: 10px 0;
}

.spotlight-card p {
    color: var(--night-300);
}

.page-main {
    min-height: 70vh;
}

.page-hero {
    position: relative;
    display: flex;
    min-height: 360px;
    align-items: center;
    overflow: hidden;
    background-position: center;
    background-size: cover;
}

.simple-hero {
    background:
        radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.18), transparent 28rem),
        linear-gradient(135deg, rgba(16, 42, 67, 0.94), rgba(10, 25, 41, 0.98));
}

.page-hero-content,
.simple-hero .container {
    position: relative;
    z-index: 2;
    padding: 76px 0;
}

.page-hero h1 {
    max-width: 780px;
    font-size: clamp(2.2rem, 4vw, 4.2rem);
}

.page-hero p {
    max-width: 760px;
    color: var(--night-300);
    font-size: 1.08rem;
}

.category-overview {
    padding: 48px 0;
}

.category-section {
    margin-bottom: 28px;
}

.category-section-head {
    align-items: center;
}

.filter-bar {
    margin: 34px 0 0;
}

.sticky-filter {
    position: sticky;
    top: 86px;
    z-index: 20;
}

.rank-list-large {
    gap: 14px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    background-position: center;
    background-size: cover;
}

.detail-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
    align-items: center;
    gap: 34px;
    padding: 86px 0 58px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: var(--radius-lg);
    background: #000000;
    box-shadow: var(--shadow-soft);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.5));
    color: #ffffff;
    cursor: pointer;
}

.play-overlay span {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
    color: #0a1929;
    font-size: 1.7rem;
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.34);
}

.play-overlay strong {
    font-size: 1.12rem;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--night-300);
    font-size: 0.92rem;
}

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

.breadcrumb em {
    overflow: hidden;
    max-width: 260px;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-style: normal;
}

.detail-copy h1 {
    font-size: clamp(2.1rem, 4.3vw, 4.4rem);
}

.detail-one-line {
    margin: 22px 0 0;
    color: var(--night-300);
    font-size: 1.13rem;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
    gap: 24px;
    padding-top: 44px;
    padding-bottom: 70px;
}

.story-panel p,
.info-panel dd {
    color: var(--night-300);
}

.story-panel h2 + p {
    margin-top: 12px;
}

.story-panel p + h2 {
    margin-top: 28px;
}

.info-panel dl {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px 16px;
    margin: 18px 0 0;
}

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

.info-panel dd {
    margin: 0;
}

.detail-nav {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.detail-nav a {
    padding: 12px;
    border-radius: 14px;
    background: rgba(10, 25, 41, 0.44);
    color: var(--amber-400);
}

.related-block {
    grid-column: 1 / -1;
}

.site-footer {
    border-top: 1px solid rgba(159, 179, 200, 0.14);
    background: rgba(7, 21, 34, 0.96);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 32px;
    padding: 46px 0 30px;
}

.footer-brand {
    color: var(--amber-400);
    font-size: 1.24rem;
}

.site-footer p {
    max-width: 620px;
    color: var(--night-400);
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 1rem;
}

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

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

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

.copyright {
    padding: 18px 0 30px;
    color: var(--night-600);
    font-size: 0.88rem;
}

[data-card].is-hidden {
    display: none !important;
}

@media (max-width: 1180px) {
    .movie-grid,
    .compact-grid,
    .category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

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

    .hero {
        min-height: 84vh;
    }

    .hero-content {
        padding-bottom: 86px;
    }

    .hero-arrow {
        display: none;
    }

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

    .section-heading,
    .category-section-head,
    .hero-search,
    .filter-bar,
    .footer-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

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

    .rank-score {
        display: none;
    }

    .detail-layout {
        padding-top: 34px;
    }

    .footer-grid {
        gap: 22px;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(100% - 22px, 1280px);
    }

    .hero h1,
    .hero h2 {
        font-size: 2.2rem;
    }

    .hero-movie-title {
        font-size: 1.7rem !important;
    }

    .movie-grid,
    .compact-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .poster-frame {
        aspect-ratio: 16 / 11;
    }

    .card-body p {
        min-height: auto;
    }
}
