:root {
    --bg: #f8fafc;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --panel: #ffffff;
    --dark: #020617;
    --dark-soft: #0f172a;
    --red: #dc2626;
    --red-dark: #b91c1c;
    --orange: #f97316;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, #020617, #0f172a 45%, #111827);
    color: #fff;
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.28);
}

.top-nav {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    color: #fff;
    font-size: 15px;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.35);
}

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

.nav-link,
.mobile-link {
    padding: 10px 16px;
    border-radius: 12px;
    color: #cbd5e1;
    font-weight: 700;
    transition: 0.24s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
    color: #fff;
    background: var(--red);
}

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

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

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

.hero-shell {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(circle at 20% 20%, rgba(220, 38, 38, 0.26), transparent 34%), linear-gradient(135deg, #020617, #111827 52%, #7f1d1d);
}

.hero-stage {
    position: relative;
    min-height: 680px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 52px;
    align-items: center;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-bg {
    position: fixed;
    inset: 68px 0 auto;
    height: 680px;
    opacity: 0.16;
    filter: blur(10px) saturate(1.2);
    pointer-events: none;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.82) 52%, rgba(127, 29, 29, 0.78) 100%);
}

.hero-copy,
.detail-copy {
    position: relative;
    z-index: 2;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    color: #fee2e2;
    background: rgba(220, 38, 38, 0.22);
    border: 1px solid rgba(248, 113, 113, 0.28);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hero-copy p {
    max-width: 660px;
    margin: 0 0 20px;
    color: #dbeafe;
    font-size: 20px;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    color: #991b1b;
    background: #fee2e2;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 14px;
    font-weight: 900;
    transition: 0.24s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 16px 35px rgba(220, 38, 38, 0.32);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 42px rgba(220, 38, 38, 0.42);
}

.btn-glass {
    color: #fff;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
}

.btn-dark {
    color: #fff;
    background: #0f172a;
}

.hero-poster {
    position: relative;
    z-index: 2;
    border-radius: 32px;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-panel {
    position: absolute;
    right: max(16px, calc((100% - 1180px) / 2));
    bottom: 28px;
    z-index: 5;
    width: min(480px, calc(100% - 32px));
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.4);
}

.hero-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-bottom: 14px;
}

.hero-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 14px;
    outline: 0;
    background: #fff;
}

.hero-search button,
.filter-bar button {
    border: 0;
    border-radius: 14px;
    padding: 0 18px;
    color: #fff;
    background: var(--red);
    font-weight: 900;
    cursor: pointer;
}

.hero-picks {
    display: grid;
    gap: 8px;
}

.hero-pick {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: 8px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    text-align: left;
    background: transparent;
    cursor: pointer;
    transition: 0.22s ease;
}

.hero-pick:hover,
.hero-pick.is-active {
    background: rgba(255, 255, 255, 0.12);
}

.hero-pick img {
    width: 52px;
    height: 68px;
    object-fit: cover;
    border-radius: 12px;
}

.hero-pick strong,
.hero-pick small {
    display: block;
}

.hero-pick small {
    color: #cbd5e1;
}

.hero-dots {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.hero-dot {
    width: 28px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.hero-dot.is-active {
    background: #fff;
}

.feature-band {
    width: min(1180px, calc(100% - 32px));
    margin: -34px auto 0;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.feature-item {
    padding: 22px;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
    text-align: center;
}

.feature-item span,
.category-tile span,
.category-emoji {
    display: block;
    font-size: 36px;
    margin-bottom: 8px;
}

.feature-item strong,
.feature-item small {
    display: block;
}

.feature-item small {
    color: var(--muted);
}

.section-wrap,
.split-section,
.category-section,
.filter-bar {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.section-wrap {
    padding: 70px 0 0;
}

.wide-wrap {
    width: min(1320px, calc(100% - 32px));
}

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

.section-head h2 {
    margin: 10px 0 4px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

.section-head.light {
    color: #fff;
}

.section-head.light p {
    color: #cbd5e1;
}

.section-head.slim {
    align-items: center;
    margin-bottom: 18px;
}

.section-link {
    color: var(--red);
    font-weight: 900;
    white-space: nowrap;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transition: 0.25s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #0f172a;
}

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

.movie-card:hover .poster-link img {
    transform: scale(1.06);
}

.year-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.play-mark {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: var(--red);
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.32);
}

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

.movie-meta {
    margin: 0 0 4px;
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
}

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.25;
}

.movie-card h3 a:hover {
    color: var(--red);
}

.movie-one-line {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.category-section {
    margin-top: 80px;
    padding: 72px 28px;
    border-radius: 36px;
    background: radial-gradient(circle at top left, rgba(220, 38, 38, 0.24), transparent 30%), linear-gradient(135deg, #020617, #111827);
}

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

.category-tile,
.category-overview-card {
    display: block;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: #fff;
    transition: 0.24s ease;
}

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.category-tile strong,
.category-tile small,
.category-overview-card h2,
.category-overview-card p {
    display: block;
}

.category-tile small,
.category-overview-card p {
    color: #cbd5e1;
}

.category-overview-card {
    min-height: 310px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.category-overview-card p {
    color: var(--muted);
}

.category-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin: 14px 0 18px;
}

.category-preview img {
    aspect-ratio: 2 / 3;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    background: #0f172a;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 24px;
    padding-top: 80px;
}

.section-card {
    border-radius: 28px;
    background: #fff;
    padding: 28px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.callout-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 420px;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--orange));
}

.callout-card p {
    color: rgba(255, 255, 255, 0.86);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 42px 54px 1fr 20px;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #f8fafc;
    transition: 0.22s ease;
}

.rank-row:hover {
    background: #fee2e2;
    transform: translateX(4px);
}

.rank-index {
    font-size: 22px;
    font-weight: 950;
    color: var(--red);
    text-align: center;
}

.rank-row img {
    width: 54px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    background: #0f172a;
}

.rank-info strong,
.rank-info small {
    display: block;
}

.rank-info small {
    color: var(--muted);
}

.rank-arrow {
    color: var(--red);
    font-size: 26px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.28), transparent 26%), linear-gradient(135deg, #020617, #111827 58%, #7f1d1d);
    padding: 86px max(16px, calc((100% - 1180px) / 2));
}

.small-hero h1,
.category-hero h1 {
    font-size: clamp(40px, 6vw, 68px);
}

.small-hero p,
.category-hero p {
    max-width: 760px;
    margin: 0;
    color: #cbd5e1;
    font-size: 19px;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 12px;
    margin-top: -24px;
    position: relative;
    z-index: 5;
    padding: 16px;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
}

.empty-state {
    display: none;
    padding: 30px;
    text-align: center;
    color: var(--muted);
}

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

.category-navline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.category-navline a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.large {
    font-size: 52px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 34px max(16px, calc((100% - 1180px) / 2)) 78px;
    background: #020617;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    filter: blur(10px) saturate(1.2);
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.88) 45%, rgba(127, 29, 29, 0.72) 100%);
}

.breadcrumb {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 34px;
    color: #cbd5e1;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #fff;
}

.detail-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    background: #0f172a;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
}

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

.detail-copy h1 {
    font-size: clamp(42px, 7vw, 72px);
}

.detail-one-line {
    max-width: 820px;
    margin: 0 0 22px;
    color: #dbeafe;
    font-size: 20px;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    max-width: 860px;
    margin: 22px 0;
}

.detail-meta-grid span {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.detail-meta-grid strong {
    display: block;
    color: #fecaca;
    font-size: 12px;
}

.large-tags {
    margin-bottom: 28px;
}

.player-section {
    width: min(1180px, calc(100% - 32px));
    margin: -42px auto 0;
    position: relative;
    z-index: 5;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.3);
    aspect-ratio: 16 / 9;
}

.player-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.28), rgba(127, 29, 29, 0.32));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 18px 40px rgba(220, 38, 38, 0.38);
    font-size: 30px;
}

.play-overlay strong {
    font-size: 20px;
}

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

.detail-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.story-card {
    padding: 30px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.story-card h2 {
    margin: 12px 0;
    font-size: 30px;
    line-height: 1.2;
}

.story-card p {
    margin: 0;
    color: #334155;
    font-size: 17px;
}

.rank-page-wrap {
    padding-bottom: 70px;
}

.rank-page-list {
    max-width: 900px;
    margin: 0 auto;
}

.site-footer {
    margin-top: 90px;
    padding: 52px max(16px, calc((100% - 1180px) / 2)) 30px;
    color: #cbd5e1;
    background: #020617;
}

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

.footer-brand {
    color: #fff;
    margin-bottom: 16px;
}

.site-footer h3 {
    margin: 0 0 12px;
    color: #fff;
}

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

.site-footer a:hover {
    color: #fff;
}

.copyright {
    margin: 32px 0 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

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

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

    .hero-slide {
        grid-template-columns: minmax(0, 1fr) 280px;
    }
}

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

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-shell,
    .hero-stage {
        min-height: 780px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: start;
        padding-top: 46px;
    }

    .hero-poster {
        width: min(240px, 70vw);
        margin: 0 auto;
    }

    .hero-panel {
        left: 16px;
        right: 16px;
        bottom: 18px;
        width: auto;
    }

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

    .feature-band,
    .category-grid,
    .category-overview-grid,
    .footer-grid,
    .detail-content,
    .split-section,
    .detail-hero-grid,
    .detail-meta-grid,
    .filter-bar {
        grid-template-columns: 1fr;
    }

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

    .detail-poster {
        width: min(280px, 80vw);
    }

    .section-head {
        display: block;
    }

    .section-link {
        display: inline-flex;
        margin-top: 12px;
    }
}

@media (max-width: 560px) {
    .top-nav {
        width: min(100% - 24px, 1180px);
    }

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

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

    .hero-copy p,
    .detail-one-line {
        font-size: 16px;
    }

    .hero-picks {
        display: none;
    }

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

    .movie-grid,
    .all-grid,
    .compact-grid {
        gap: 12px;
    }

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

    .movie-one-line,
    .tag-row {
        display: none;
    }

    .category-section {
        padding: 42px 16px;
        border-radius: 24px;
    }

    .rank-row {
        grid-template-columns: 32px 46px 1fr 12px;
        gap: 8px;
    }

    .rank-row img {
        width: 46px;
        height: 62px;
    }

    .story-card {
        padding: 22px;
    }
}
