* {
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    --amber: #f59e0b;
    --amber-dark: #92400e;
    --orange: #f97316;
    --slate: #0f172a;
    --muted: #64748b;
    --line: #fde68a;
    --paper: #fff7ed;
    --card: #ffffff;
    --shadow: 0 22px 60px rgba(15, 23, 42, 0.14);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--slate);
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.22), transparent 34rem),
        linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #f8fafc 100%);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 247, 237, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(251, 191, 36, 0.36);
}

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

.nav-shell {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 15px 32px rgba(245, 158, 11, 0.35);
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy strong {
    font-size: 20px;
    letter-spacing: -0.03em;
    color: var(--amber-dark);
}

.brand-copy small {
    color: #b45309;
    font-size: 12px;
}

.nav-search {
    display: flex;
    flex: 1;
    max-width: 430px;
    margin-left: auto;
    border: 1px solid #fcd34d;
    border-radius: 999px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.10);
}

.nav-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 12px 16px;
    font-size: 14px;
    background: transparent;
}

.nav-search button,
.cta-button,
.soft-button,
.filter-chip,
.menu-toggle {
    border: 0;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-search button {
    padding: 0 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

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

.nav-link {
    font-size: 14px;
    font-weight: 700;
    color: #78350f;
    padding: 9px 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: #d97706;
    border-bottom-color: #f59e0b;
}

.menu-toggle {
    display: none;
    color: #78350f;
    background: #ffedd5;
    border-radius: 12px;
    padding: 10px 14px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    display: flex;
    align-items: stretch;
    background: #0f172a;
    color: #ffffff;
}

.hero-track {
    position: relative;
    width: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
    transform: scale(1.02);
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    min-height: 650px;
    object-fit: cover;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.70) 42%, rgba(15, 23, 42, 0.15) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.88) 0%, transparent 45%);
}

.hero-content {
    position: absolute;
    z-index: 2;
    left: max(32px, calc((100vw - 1180px) / 2));
    bottom: 92px;
    max-width: 680px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(251, 191, 36, 0.36);
    backdrop-filter: blur(12px);
    font-weight: 800;
    font-size: 13px;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
    margin: 18px 0 14px;
    font-size: clamp(34px, 5vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero p {
    margin: 0 0 26px;
    color: #e2e8f0;
    font-size: 18px;
    line-height: 1.8;
}

.hero-actions,
.page-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 18px 42px rgba(249, 115, 22, 0.34);
}

.soft-button {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
}

.cta-button:hover,
.soft-button:hover,
.filter-chip:hover,
.menu-toggle:hover {
    transform: translateY(-2px);
}

.hero-dots {
    position: absolute;
    z-index: 5;
    left: max(32px, calc((100vw - 1180px) / 2));
    bottom: 42px;
    display: flex;
    gap: 8px;
}

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

.hero-dot.active {
    width: 54px;
    background: #f59e0b;
}

.hero-side {
    position: absolute;
    z-index: 4;
    right: max(32px, calc((100vw - 1180px) / 2));
    bottom: 58px;
    display: grid;
    gap: 12px;
    width: 300px;
}

.hero-side a {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
}

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

.hero-side strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-side span {
    color: #fcd34d;
    font-size: 12px;
}

.main-content {
    padding: 58px 0 0;
}

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

.section-kicker {
    margin: 0 0 8px;
    color: #d97706;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-head h2,
.content-panel h2,
.player-panel h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 36px);
    letter-spacing: -0.04em;
}

.section-head p,
.page-hero p,
.content-panel p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

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

.category-tile {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border-radius: 26px;
    color: #78350f;
    background: linear-gradient(135deg, #fffbeb, #fed7aa);
    border: 1px solid #fde68a;
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.13);
}

.category-tile strong {
    font-size: 22px;
}

.category-tile span {
    color: #b45309;
    line-height: 1.7;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: var(--card);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

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

.compact-card .poster-link {
    aspect-ratio: 16 / 10;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 44%, rgba(15, 23, 42, 0.74) 100%);
}

.play-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.card-body {
    padding: 16px;
}

.meta-line,
.detail-meta,
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #b45309;
    font-size: 12px;
    font-weight: 700;
}

.meta-line span,
.detail-meta span,
.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #fffbeb;
}

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

.movie-card h3 a:hover {
    color: #d97706;
}

.movie-card p {
    min-height: 46px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    color: #92400e;
    font-size: 12px;
}

.page-hero,
.detail-hero {
    padding: 64px 0 42px;
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.28), transparent 30rem),
        linear-gradient(135deg, #fff7ed, #ffffff);
    border-bottom: 1px solid #fde68a;
}

.page-hero h1,
.detail-copy h1 {
    color: #431407;
}

.filter-panel {
    display: grid;
    gap: 16px;
    margin: 0 0 26px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #fde68a;
    box-shadow: 0 16px 34px rgba(245, 158, 11, 0.10);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    padding: 10px 14px;
    border-radius: 999px;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.filter-chip.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

.local-search {
    width: min(460px, 100%);
    border: 1px solid #fcd34d;
    outline: 0;
    border-radius: 999px;
    padding: 13px 18px;
    font-size: 15px;
    background: #ffffff;
}

.ranking-list {
    list-style: none;
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.rank-item a {
    display: grid;
    grid-template-columns: 64px 84px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.rank-number {
    font-size: 24px;
    font-weight: 900;
    color: #f59e0b;
    text-align: center;
}

.rank-item img {
    width: 84px;
    height: 58px;
    object-fit: cover;
    border-radius: 14px;
}

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

.rank-copy strong,
.mini-card strong {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-copy em,
.mini-card em {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-score {
    color: #ffffff;
    background: #f59e0b;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 900;
}

.detail-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 34px;
    align-items: center;
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.detail-copy p {
    color: #475569;
    font-size: 17px;
    line-height: 1.9;
}

.detail-actions {
    margin-top: 24px;
}

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

.player-panel,
.content-panel,
.related-panel {
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
    padding: 24px;
}

.player-box {
    position: relative;
    overflow: hidden;
    margin-top: 18px;
    border-radius: 24px;
    background: #020617;
    aspect-ratio: 16 / 9;
}

.video-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    color: #ffffff;
    border: 0;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.10), rgba(2, 6, 23, 0.70));
    transition: opacity 0.25s ease;
}

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

.play-circle {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 32px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.content-panel {
    margin-top: 24px;
}

.content-panel p {
    font-size: 16px;
    color: #334155;
}

.related-panel {
    position: sticky;
    top: 98px;
}

.mini-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.mini-card {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #fff7ed;
    border: 1px solid #fde68a;
}

.mini-card img {
    width: 80px;
    height: 56px;
    object-fit: cover;
    border-radius: 14px;
}

.breadcrumbs {
    margin-bottom: 22px;
}

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

.site-footer {
    margin-top: 72px;
    padding: 42px 0;
    color: #cbd5e1;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.footer-shell {
    display: grid;
    grid-template-columns: 1.1fr 1.7fr;
    gap: 24px;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: #fbbf24;
}

.site-footer p {
    margin: 0;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-content: start;
    justify-content: end;
}

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

.hidden-card {
    display: none !important;
}

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

    .hero-side {
        display: none;
    }
}

@media (max-width: 860px) {
    .nav-shell {
        flex-wrap: wrap;
        padding: 14px 0;
    }

    .brand {
        margin-right: auto;
    }

    .nav-search {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .nav-links {
        display: none;
        order: 4;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 12px 0 0;
    }

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

    .nav-link {
        padding: 12px 14px;
        border-radius: 12px;
        background: #fffbeb;
        border-bottom: 0;
    }

    .hero,
    .hero-slide img {
        min-height: 560px;
    }

    .hero-content {
        left: 22px;
        right: 22px;
        bottom: 86px;
    }

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

    .hero-dots {
        left: 22px;
    }

    .section-head,
    .footer-shell,
    .detail-grid,
    .content-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

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

    .detail-cover {
        max-width: 320px;
    }

    .related-panel {
        position: static;
    }

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

@media (max-width: 560px) {
    .nav-shell,
    .footer-shell,
    .section-shell {
        width: min(100% - 22px, 1180px);
    }

    .brand-copy small {
        display: none;
    }

    .hero,
    .hero-slide img {
        min-height: 510px;
    }

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

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

    .rank-item a {
        grid-template-columns: 42px 68px 1fr;
    }

    .rank-score {
        display: none;
    }

    .player-panel,
    .content-panel,
    .related-panel {
        padding: 16px;
        border-radius: 22px;
    }
}
