:root {
    --bg: #f8fafc;
    --paper: #ffffff;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --brand: #f97316;
    --brand-dark: #ea580c;
    --slate: #111827;
    --slate-soft: #1e293b;
    --radius: 20px;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #0f172a, #1e293b 55%, #0f172a);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
}

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

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fb923c, #ef4444);
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.35);
}

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

.nav-links a {
    color: #cbd5e1;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 14px;
    transition: 0.25s ease;
}

.nav-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

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

.top-search {
    position: relative;
    width: min(280px, 26vw);
}

.site-search {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 999px;
    padding: 10px 16px;
    outline: none;
}

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

.search-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    display: none;
    max-height: 360px;
    overflow: auto;
    background: #ffffff;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 8px;
    z-index: 100;
}

.search-panel.is-open {
    display: block;
}

.search-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
}

.search-panel a:hover {
    background: #fff7ed;
}

.search-panel strong {
    display: block;
    color: var(--ink);
}

.search-panel span {
    color: var(--muted);
    font-size: 13px;
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #0f172a;
}

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

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

.hero-backdrop {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.15);
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.32), transparent 34%), linear-gradient(180deg, rgba(15, 23, 42, 0.3), #0f172a 92%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    padding-top: 40px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fed7aa;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: var(--brand-dark);
}

.hero h1 {
    margin: 16px 0 20px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero p {
    max-width: 720px;
    color: #cbd5e1;
    font-size: 20px;
    margin: 0 0 26px;
}

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

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border: 1px solid rgba(249, 115, 22, 0.24);
    background: #fff7ed;
    color: #c2410c;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 700;
}

.hero .tag {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.primary-btn,
.ghost-btn,
.hero-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    padding: 0 22px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.25s ease;
}

.primary-btn,
.hero-search button {
    background: linear-gradient(135deg, #fb923c, #ef4444);
    color: #ffffff;
    box-shadow: 0 16px 35px rgba(249, 115, 22, 0.35);
}

.primary-btn:hover,
.hero-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 45px rgba(249, 115, 22, 0.42);
}

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

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.hero-poster {
    position: relative;
    z-index: 2;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.36);
    transform: rotate(2deg);
}

.hero-poster img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 132px;
    transform: translateX(-50%);
    width: min(1180px, calc(100% - 32px));
    display: flex;
    gap: 8px;
}

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

.hero-dot.is-active {
    background: var(--brand);
}

.hero-search {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 42px;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    width: min(720px, calc(100% - 32px));
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(15, 23, 42, 0.72);
    border-radius: 22px;
    backdrop-filter: blur(18px);
}

.hero-search .site-search {
    min-height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
}

.hero-search-panel {
    top: calc(100% + 12px);
}

.section {
    padding: 76px 0;
}

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

.section-heading h2,
.intro-copy h2,
.sub-hero h1,
.detail-head h1 {
    margin: 8px 0 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.section-heading p,
.intro-copy p,
.sub-hero p {
    color: var(--muted);
}

.text-link {
    color: var(--brand-dark);
    font-weight: 800;
}

.light,
.light h2,
.light-link {
    color: #ffffff;
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: stretch;
}

.intro-copy,
.intro-stats,
.content-card,
.side-card,
.overview-card,
.movie-card,
.category-tile {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.intro-copy {
    padding: 34px;
}

.intro-stats {
    padding: 22px;
    display: grid;
    gap: 12px;
}

.intro-stats a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 0 18px;
    border-radius: 16px;
    background: #fff7ed;
    color: #9a3412;
    font-weight: 800;
}

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

.category-tile {
    min-height: 190px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    transition: 0.25s ease;
}

.category-tile:hover,
.movie-card:hover,
.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-tile span {
    color: var(--brand-dark);
    font-weight: 900;
}

.category-tile strong {
    font-size: 20px;
    line-height: 1.35;
}

.category-tile em {
    color: var(--muted);
    font-style: normal;
    font-size: 14px;
}

.rank-section,
.rank-hero {
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.34), transparent 30%), linear-gradient(135deg, #0f172a, #1e293b);
    color: #ffffff;
}

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

.movie-card {
    overflow: hidden;
    transition: 0.25s ease;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #e2e8f0;
}

.poster-link img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover img {
    transform: scale(1.08);
}

.poster-play {
    position: absolute;
    left: 14px;
    bottom: 14px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #ef4444);
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.36);
}

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

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
}

.card-meta a {
    color: var(--brand-dark);
    font-weight: 800;
}

.score {
    color: #475569;
    white-space: nowrap;
}

.movie-card h3 {
    min-height: 56px;
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.35;
}

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

.movie-card p {
    min-height: 74px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
}

.sub-hero,
.detail-head {
    padding: 54px 0;
    color: #ffffff;
    background: radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.34), transparent 32%), linear-gradient(135deg, #0f172a, #1e293b);
}

.crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-size: 14px;
    margin-bottom: 18px;
}

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

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.filter-button {
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--ink);
    border-radius: 999px;
    padding: 9px 16px;
    cursor: pointer;
    transition: 0.2s ease;
}

.filter-button.is-active,
.filter-button:hover {
    border-color: var(--brand);
    background: #fff7ed;
    color: #c2410c;
}

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

.overview-card {
    padding: 26px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.75fr);
    gap: 24px;
}

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

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

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

.overview-card li a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
}

.overview-card li a:hover {
    background: #fff7ed;
    color: #9a3412;
}

.detail-head-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 40px;
    align-items: center;
}

.detail-head p {
    max-width: 760px;
    color: #cbd5e1;
    font-size: 19px;
}

.detail-poster {
    border-radius: 28px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.36);
}

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

.detail-main {
    display: grid;
    gap: 22px;
}

.player-card {
    position: relative;
    overflow: hidden;
    background: #020617;
    border-radius: 24px;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.player-card video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.18), rgba(15, 23, 42, 0.56));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #fb923c, #ef4444);
    box-shadow: 0 16px 40px rgba(249, 115, 22, 0.42);
    font-size: 28px;
    padding-left: 4px;
}

.content-card,
.side-card {
    padding: 26px;
}

.content-card h2,
.side-card h2 {
    margin: 0 0 14px;
}

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

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

.side-card dl {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 10px 14px;
    margin: 0;
}

.side-card dt {
    color: var(--muted);
}

.side-card dd {
    margin: 0;
    font-weight: 700;
}

.side-card dd a {
    color: var(--brand-dark);
}

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

.side-list a {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 12px;
    align-items: center;
}

.side-list img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
}

.side-list span {
    display: grid;
    gap: 4px;
    font-weight: 800;
}

.side-list em {
    color: var(--muted);
    font-style: normal;
    font-weight: 600;
    font-size: 13px;
}

.site-footer {
    padding: 52px 0;
    background: #0f172a;
    color: #94a3b8;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 28px;
}

.footer-inner p {
    max-width: 520px;
    margin: 12px 0 0;
}

.footer-links {
    display: flex;
    gap: 18px;
    align-items: center;
}

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

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

@media (max-width: 1080px) {
    .nav-shell {
        gap: 12px;
    }

    .nav-links {
        position: absolute;
        top: 72px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 18px;
        background: #111827;
        box-shadow: var(--shadow);
    }

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

    .menu-toggle {
        display: block;
    }

    .top-search {
        margin-left: auto;
        width: min(320px, 42vw);
    }

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

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

    .hero-slide,
    .detail-head-grid,
    .detail-layout,
    .intro-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster,
    .detail-poster {
        display: none;
    }

    .detail-side {
        position: static;
    }
}

@media (max-width: 760px) {
    .nav-shell {
        height: auto;
        min-height: 68px;
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .top-search {
        order: 5;
        width: 100%;
    }

    .hero {
        min-height: 720px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 17px;
    }

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

    .hero-controls {
        bottom: 156px;
    }

    .section {
        padding: 50px 0;
    }

    .section-heading,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

    .movie-card h3,
    .movie-card p {
        min-height: auto;
    }

    .content-card,
    .side-card,
    .intro-copy {
        padding: 22px;
    }
}
