:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --ink: #0f172a;
    --muted: #64748b;
    --soft: #e2e8f0;
    --warm: #f97316;
    --hot: #ef4444;
    --pink: #ec4899;
    --blue: #2563eb;
    --green: #059669;
    --dark: #020617;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(2, 6, 23, 0.86);
    backdrop-filter: blur(18px);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--warm), var(--hot), var(--pink));
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.36);
}

.brand-name {
    font-size: 1.18rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.nav-link {
    color: #cbd5e1;
    font-weight: 700;
    transition: color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    transform: translateY(-1px);
}

.top-search {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.top-search input {
    width: 170px;
    border: 0;
    outline: none;
    padding: 10px 12px 10px 16px;
    color: #ffffff;
    background: transparent;
}

.top-search input::placeholder {
    color: #94a3b8;
}

.top-search button,
.hero-search button {
    border: 0;
    cursor: pointer;
    color: #ffffff;
    font-weight: 800;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--warm), var(--hot));
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
}

.hero {
    position: relative;
    min-height: 76vh;
    overflow: hidden;
    background: #020617;
}

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

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

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

.hero-backdrop {
    position: absolute;
    inset: -30px;
    width: calc(100% + 60px);
    height: calc(100% + 60px);
    object-fit: cover;
    filter: blur(22px) saturate(1.12);
    transform: scale(1.06);
    opacity: 0.78;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 74% 26%, rgba(249, 115, 22, 0.36), transparent 30%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.78) 46%, rgba(15, 23, 42, 0.38) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 50%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    min-height: 76vh;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(800px, 100%);
    color: #ffffff;
    padding: 72px 0 96px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    border-radius: 999px;
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.14);
    border: 1px solid rgba(249, 115, 22, 0.28);
    padding: 8px 14px;
    font-weight: 800;
}

.hero-title {
    margin: 20px 0 8px;
    font-size: clamp(2.8rem, 8vw, 6.8rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.hero-movie-title {
    margin: 0 0 18px;
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 900;
    color: #fb923c;
}

.hero-summary {
    width: min(720px, 100%);
    margin: 0 0 28px;
    color: #e2e8f0;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 13px 22px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--warm), var(--hot), var(--pink));
    box-shadow: 0 16px 36px rgba(249, 115, 22, 0.28);
}

.primary-button.block {
    width: 100%;
    margin-top: 16px;
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.22);
}

.hero-search {
    display: flex;
    width: min(560px, 100%);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    color: #ffffff;
    background: transparent;
    padding: 15px 18px;
}

.hero-search input::placeholder {
    color: #cbd5e1;
}

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

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

.hero-dot.is-active {
    width: 34px;
    background: #ffffff;
}

.content-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 70px 0;
}

.content-section.section-warm {
    width: 100%;
    padding-left: max(16px, calc((100% - 1180px) / 2));
    padding-right: max(16px, calc((100% - 1180px) / 2));
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 48%, #fef3c7 100%);
}

.content-section.section-dark {
    width: 100%;
    padding-left: max(16px, calc((100% - 1180px) / 2));
    padding-right: max(16px, calc((100% - 1180px) / 2));
    background: linear-gradient(135deg, #0f172a 0%, #111827 52%, #431407 100%);
}

.section-heading {
    text-align: center;
    margin-bottom: 32px;
}

.section-heading.light h2,
.section-heading.light .section-kicker {
    color: #ffffff;
}

.section-heading h2 {
    margin: 14px 0 0;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--warm), var(--hot), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    margin: 0;
    background: linear-gradient(135deg, #0f172a, #334155);
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.movie-card:hover .movie-poster img {
    transform: scale(1.08);
    filter: saturate(1.12);
}

.movie-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 58%);
    transition: opacity 0.25s ease;
}

.movie-card:hover .movie-poster::after {
    opacity: 1;
}

.movie-year,
.movie-play {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
}

.movie-year {
    top: 10px;
    right: 10px;
    padding: 5px 8px;
    background: rgba(2, 6, 23, 0.72);
}

.movie-play {
    left: 50%;
    bottom: 14px;
    transform: translate(-50%, 16px);
    opacity: 0;
    padding: 8px 14px;
    background: linear-gradient(135deg, var(--warm), var(--hot));
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .movie-play {
    opacity: 1;
    transform: translate(-50%, 0);
}

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

.movie-card-body h3 {
    min-height: 3.1em;
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 900;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 0.86rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-line {
    min-height: 3.9em;
    margin: 0;
    color: #475569;
    font-size: 0.86rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.card-tags span,
.detail-tags span {
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    padding: 4px 8px;
    font-size: 0.74rem;
    font-weight: 800;
}

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

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 24px;
    color: #ffffff;
    padding: 24px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 36%),
        linear-gradient(135deg, #f97316, #ef4444 58%, #be185d);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease;
}

.category-card:hover {
    transform: translateY(-6px);
}

.category-card span {
    font-size: 1.25rem;
    font-weight: 950;
}

.category-card strong {
    display: block;
    font-size: 3rem;
    line-height: 1;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.7;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 56px 56px 1fr auto;
    gap: 16px;
    align-items: center;
    border-radius: 18px;
    padding: 12px 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.25s ease, transform 0.25s ease;
}

.ranking-row.full {
    grid-template-columns: 72px 66px minmax(160px, 1fr) minmax(160px, 0.7fr) minmax(240px, 1.3fr);
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.ranking-row:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.14);
}

.ranking-row.full:hover {
    background: #fff7ed;
}

.ranking-row img {
    width: 56px;
    height: 74px;
    border-radius: 12px;
    object-fit: cover;
}

.ranking-row.full img {
    width: 66px;
    height: 88px;
}

.ranking-number {
    color: #fb923c;
    font-size: 1.35rem;
    font-weight: 950;
    text-align: center;
}

.ranking-title {
    font-weight: 900;
}

.ranking-meta,
.ranking-desc {
    color: #94a3b8;
    font-size: 0.92rem;
}

.ranking-row.full .ranking-meta,
.ranking-row.full .ranking-desc {
    color: #64748b;
}

.ranking-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.section-more {
    margin-top: 24px;
    text-align: center;
}

.page-hero {
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.42), transparent 30%),
        linear-gradient(135deg, #020617, #111827 54%, #431407);
}

.page-hero.compact {
    padding: 82px 0 58px;
}

.page-hero-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.page-hero h1 {
    margin: 18px 0 14px;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.05em;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #fed7aa;
    font-weight: 800;
}

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

.filter-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 26px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select {
    min-height: 46px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    outline: none;
    padding: 0 16px;
    background: #f8fafc;
}

.filter-panel input {
    flex: 1;
    min-width: 260px;
}

.filter-panel span {
    margin-left: auto;
    color: #f97316;
    font-weight: 950;
}

.detail-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 76px;
}

.detail-breadcrumb {
    color: #c2410c;
}

.detail-breadcrumb a:hover {
    color: #7c2d12;
}

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

.detail-main,
.side-card {
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.player-section {
    background: #020617;
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.28));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-icon {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--warm), var(--hot));
    box-shadow: 0 20px 46px rgba(249, 115, 22, 0.42);
    font-size: 2rem;
}

.player-text {
    font-size: 1.1rem;
    font-weight: 900;
}

.detail-copy {
    padding: 30px;
}

.detail-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.detail-meta span {
    border-radius: 999px;
    color: #334155;
    background: #f1f5f9;
    padding: 8px 12px;
    font-weight: 800;
}

.copy-box {
    margin-top: 22px;
    border-radius: 20px;
    padding: 22px;
}

.copy-box h2 {
    margin: 0 0 12px;
    font-size: 1.35rem;
    font-weight: 950;
}

.copy-box p {
    margin: 0;
    color: #334155;
    line-height: 1.9;
    white-space: pre-line;
}

.copy-box.warm {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
}

.copy-box.blue {
    background: linear-gradient(135deg, #eff6ff, #e0f2fe);
}

.copy-box.green {
    background: linear-gradient(135deg, #ecfdf5, #dcfce7);
}

.detail-side {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 22px;
}

.side-card {
    padding: 20px;
}

.poster-card img {
    width: 100%;
    border-radius: 20px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #0f172a;
}

.side-card h2 {
    margin: 0 0 18px;
    font-size: 1.5rem;
    font-weight: 950;
}

.side-card .movie-grid {
    grid-template-columns: 1fr;
    gap: 14px;
}

.side-card .movie-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    border-radius: 16px;
    box-shadow: none;
    border: 1px solid #e2e8f0;
}

.side-card .movie-card:hover {
    transform: translateY(-2px);
}

.side-card .movie-poster {
    aspect-ratio: 3 / 4;
}

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

.side-card .movie-line,
.side-card .card-tags {
    display: none;
}

.site-footer {
    color: #cbd5e1;
    background: #020617;
}

.footer-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
}

.footer-shell p {
    max-width: 620px;
    line-height: 1.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 12px 22px;
    align-content: start;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 16px;
    text-align: center;
    color: #94a3b8;
}

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

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

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

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

    .detail-side {
        position: static;
    }
}

@media (max-width: 860px) {
    .nav-shell {
        min-height: 64px;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .main-nav {
        position: absolute;
        top: 64px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow: hidden;
        border-radius: 18px;
        background: rgba(2, 6, 23, 0.96);
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: flex;
    }

    .nav-link {
        padding: 14px 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .top-search {
        display: none;
    }

    .hero,
    .hero-inner {
        min-height: 86vh;
    }

    .hero-copy {
        padding: 54px 0 94px;
    }

    .hero-title {
        font-size: clamp(2.4rem, 14vw, 4.8rem);
    }

    .hero-search {
        border-radius: 20px;
        flex-direction: column;
    }

    .hero-search input,
    .hero-search button {
        width: 100%;
    }

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

    .ranking-row,
    .ranking-row.full {
        grid-template-columns: 44px 56px 1fr;
    }

    .ranking-meta,
    .ranking-desc {
        grid-column: 3;
    }

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

@media (max-width: 620px) {
    .content-section,
    .detail-page,
    .page-hero-inner,
    .hero-inner,
    .nav-shell,
    .footer-shell {
        width: min(100% - 24px, 1180px);
    }

    .content-section {
        padding: 48px 0;
    }

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

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

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

    .movie-line {
        -webkit-line-clamp: 2;
        min-height: 3.1em;
    }

    .filter-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-panel input,
    .filter-panel select {
        width: 100%;
        min-width: 0;
    }

    .filter-panel span {
        margin-left: 0;
    }

    .detail-copy {
        padding: 22px;
    }

    .player-icon {
        width: 70px;
        height: 70px;
    }
}
