:root {
    --bg: #f9fafb;
    --panel: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --soft: #f3f4f6;
    --line: #e5e7eb;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --orange-soft: #fff7ed;
    --dark: #0f172a;
    --shadow: 0 18px 45px rgba(15, 23, 42, .12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .88);
    border-bottom: 1px solid rgba(229, 231, 235, .9);
    backdrop-filter: blur(18px);
}

.nav-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
}

.logo span {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), #fb923c);
    box-shadow: 0 10px 25px rgba(249, 115, 22, .3);
}

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

.nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: #374151;
    font-weight: 700;
    transition: .2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--orange-dark);
    background: var(--orange-soft);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--soft);
    padding: 10px;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #111827;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 0 20px 18px;
    border-top: 1px solid var(--line);
    background: #fff;
}

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

.mobile-nav a {
    padding: 12px;
    border-radius: 14px;
    background: var(--soft);
    font-weight: 700;
}

.hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: var(--dark);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 48px;
    padding: 80px calc((100vw - 1240px) / 2 + 20px) 110px;
    background-size: cover;
    background-position: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.03);
    transition: opacity .65s ease, transform .65s ease;
}

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

.hero-content {
    max-width: 780px;
    color: #fff;
}

.hero-kicker,
.eyebrow {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
    color: #fed7aa;
    font-weight: 800;
    letter-spacing: .03em;
}

.hero-kicker span,
.hero-tags span,
.detail-chips span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.hero h1,
.hero h2 {
    margin: 0;
    font-size: clamp(36px, 5vw, 70px);
    line-height: 1.06;
    letter-spacing: -.05em;
    font-weight: 900;
}

.hero .hero-movie-title {
    margin-top: 14px;
    color: #ffedd5;
    font-size: clamp(26px, 3vw, 42px);
}

.hero p {
    max-width: 720px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, .86);
    font-size: 18px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    box-shadow: 0 16px 32px rgba(249, 115, 22, .32);
}

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

.ghost-button.light {
    color: var(--orange-dark);
    background: var(--orange-soft);
    border-color: #fed7aa;
}

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

.hero-poster {
    display: block;
    border-radius: 28px;
    overflow: hidden;
    transform: rotate(2deg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .42);
    border: 1px solid rgba(255, 255, 255, .18);
}

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

.hero-control {
    position: absolute;
    left: 50%;
    bottom: 35px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 4;
}

.hero-control button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

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

.hero-dot {
    width: 10px !important;
    height: 10px !important;
    min-width: 10px;
    padding: 0;
    background: rgba(255, 255, 255, .35) !important;
}

.hero-dot.active {
    width: 28px !important;
    border-radius: 999px;
    background: var(--orange) !important;
}

.hero-search {
    position: absolute;
    left: 50%;
    bottom: 92px;
    z-index: 5;
    width: min(720px, calc(100% - 40px));
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(18px);
}

.hero-search input,
.inline-search input {
    width: 100%;
    min-height: 48px;
    border: 0;
    outline: none;
    border-radius: 999px;
    padding: 0 18px;
    background: #fff;
    color: var(--text);
}

.hero-search button,
.inline-search button {
    min-width: 110px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--orange);
    font-weight: 800;
    cursor: pointer;
}

.content-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 58px 20px 0;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -.03em;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
}

.section-heading a {
    color: var(--orange-dark);
    font-weight: 800;
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .08);
    transition: transform .22s ease, box-shadow .22s ease;
}

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

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

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

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

.score,
.rank-badge {
    position: absolute;
    top: 12px;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    font-size: 13px;
    line-height: 1;
}

.score {
    right: 12px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, .64);
    backdrop-filter: blur(8px);
}

.rank-badge {
    left: 12px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: var(--orange);
}

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

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 900;
}

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

.movie-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
}

.movie-meta span:first-child {
    color: var(--orange-dark);
    background: var(--orange-soft);
    border-radius: 999px;
    padding: 3px 8px;
    font-weight: 800;
}

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

.category-tile,
.quick-links a {
    display: grid;
    gap: 8px;
    padding: 22px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fff, #fff7ed);
    border: 1px solid #ffedd5;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
    transition: .2s ease;
}

.category-tile:hover,
.quick-links a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-tile strong {
    font-size: 20px;
    font-weight: 900;
}

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

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 26px;
    align-items: start;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 44px 72px minmax(0, 1fr) 44px;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .07);
}

.rank-number {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: var(--orange);
    font-weight: 900;
}

.rank-item img {
    width: 72px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-copy {
    display: grid;
    min-width: 0;
}

.rank-copy strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 900;
}

.rank-copy em {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.rank-score {
    color: var(--orange-dark);
    font-weight: 900;
}

.spotlight-box,
.side-panel,
.story-card,
.category-overview-card {
    border-radius: 28px;
    padding: 28px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}

.spotlight-box {
    position: sticky;
    top: 96px;
    background: radial-gradient(circle at top right, #fed7aa, #fff 46%);
}

.spotlight-box h2,
.side-panel h2,
.story-card h2 {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 900;
}

.spotlight-box p,
.story-card p,
.side-panel p {
    color: var(--muted);
}

.page-hero {
    min-height: 330px;
    display: grid;
    align-items: center;
    padding: 70px calc((100vw - 1240px) / 2 + 20px);
    color: #fff;
    background: linear-gradient(135deg, #111827, #7c2d12 58%, #f97316);
}

.page-hero h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -.04em;
}

.page-hero p {
    max-width: 720px;
    color: rgba(255, 255, 255, .84);
    font-size: 18px;
}

.inline-search {
    display: flex;
    width: min(620px, 100%);
    gap: 10px;
    margin-top: 26px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .24);
    backdrop-filter: blur(12px);
}

.inline-search.wide {
    width: min(820px, 100%);
}

.category-overview {
    display: grid;
    gap: 24px;
}

.category-overview-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.category-overview-top h2 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 900;
}

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

.detail-hero {
    min-height: 560px;
    display: grid;
    align-items: center;
    padding: 70px 20px;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.detail-inner {
    width: min(1200px, 100%);
    margin: 0 auto;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, .78);
    font-weight: 700;
}

.breadcrumbs a:hover {
    color: #fed7aa;
}

.detail-main {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.detail-cover {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .35);
}

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

.detail-copy h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -.04em;
}

.detail-one-line {
    max-width: 780px;
    color: rgba(255, 255, 255, .84);
    font-size: 18px;
}

.detail-chips,
.detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.detail-stats span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .28);
    color: #fff;
    font-weight: 900;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 26px;
    align-items: start;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

.player-frame video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    display: block;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .58));
    cursor: pointer;
}

.player-frame.is-playing .player-overlay {
    opacity: 0;
    pointer-events: none;
}

.play-circle {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    border-radius: 50%;
    color: #fff;
    background: var(--orange);
    box-shadow: 0 18px 38px rgba(249, 115, 22, .38);
    font-size: 36px;
}

.story-card p {
    font-size: 16px;
}

.empty-state {
    padding: 28px;
    border-radius: 20px;
    background: #fff;
    color: var(--muted);
    text-align: center;
}

.quick-links {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-top: 24px;
}

.quick-links a {
    padding: 14px 16px;
    text-align: center;
    font-weight: 800;
}

.site-footer {
    margin-top: 72px;
    padding: 44px 20px;
    background: #111827;
    color: rgba(255, 255, 255, .78);
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 30px;
}

.footer-logo {
    color: #fff;
}

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

.footer-links a {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-weight: 700;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1080px) {
    .movie-grid,
    .mini-grid,
    .featured-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .hero-slide,
    .detail-content,
    .split-section {
        grid-template-columns: 1fr;
    }

    .hero-poster,
    .spotlight-box,
    .side-panel {
        position: static;
    }

    .hero-poster {
        display: none;
    }
}

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

    .mobile-menu-button {
        display: block;
    }

    .hero {
        min-height: 620px;
    }

    .hero-slide {
        padding: 68px 20px 140px;
    }

    .hero-search {
        bottom: 82px;
        border-radius: 26px;
        flex-direction: column;
    }

    .hero-search button,
    .inline-search button {
        min-height: 46px;
    }

    .movie-grid,
    .mini-grid,
    .featured-grid,
    .category-grid,
    .quick-links,
    .rank-list.extended {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding-top: 42px;
    }

    .section-heading,
    .category-overview-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .rank-item {
        grid-template-columns: 38px 64px minmax(0, 1fr) 36px;
        gap: 10px;
    }

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

    .detail-cover {
        width: min(240px, 76vw);
    }

    .inline-search {
        flex-direction: column;
        border-radius: 24px;
    }

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

    .footer-links {
        justify-content: flex-start;
    }
}
