:root {
    --bg: #fff7ed;
    --paper: #ffffff;
    --ink: #0f172a;
    --muted: #64748b;
    --amber: #d97706;
    --amber-dark: #78350f;
    --gold: #facc15;
    --line: rgba(15, 23, 42, 0.1);
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
    color: var(--ink);
    background: linear-gradient(135deg, #fff7ed 0%, #f8fafc 44%, #fef3c7 100%);
    line-height: 1.65;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #fef3c7;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(120, 53, 15, 0.96));
    border-bottom: 1px solid rgba(250, 204, 21, 0.2);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.site-logo {
    font-size: clamp(21px, 3vw, 30px);
    background: linear-gradient(90deg, #fde68a, #fff7ed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-symbol {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #78350f;
    background: radial-gradient(circle at 35% 35%, #fff7ed, #facc15 54%, #d97706);
    border-radius: 999px;
    box-shadow: 0 0 24px rgba(250, 204, 21, 0.6);
    font-size: 15px;
}

.site-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-menu a {
    color: #fde68a;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-menu a:hover,
.site-menu a.active {
    color: #ffffff;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(253, 230, 138, 0.32);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    padding: 9px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #fde68a;
    border-radius: 99px;
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at 18% 18%, rgba(250, 204, 21, 0.28), transparent 30%), linear-gradient(135deg, #0f172a, #78350f 58%, #0f172a);
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 110px;
    background: linear-gradient(0deg, #fff7ed, rgba(255, 247, 237, 0));
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(46px);
    opacity: 0.36;
    animation: pulseGlow 5s ease-in-out infinite alternate;
}

.glow-one {
    width: 240px;
    height: 240px;
    top: 80px;
    left: 8%;
    background: #facc15;
}

.glow-two {
    width: 280px;
    height: 280px;
    right: 7%;
    bottom: 160px;
    background: #f97316;
    animation-delay: 1.1s;
}

@keyframes pulseGlow {
    from {
        transform: scale(0.92);
        opacity: 0.22;
    }
    to {
        transform: scale(1.08);
        opacity: 0.45;
    }
}

.hero-shell {
    position: relative;
    z-index: 2;
    padding: 84px 0 170px;
}

.hero-slide {
    position: absolute;
    inset: 84px 0 auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 460px;
    align-items: stretch;
    min-height: 440px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-image {
    position: absolute;
    inset: 0;
    border-radius: 34px;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
}

.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 34px;
    border: 1px solid rgba(253, 230, 138, 0.26);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding: 62px;
}

.eyebrow,
.section-heading span,
.page-hero span {
    display: inline-flex;
    align-items: center;
    color: #d97706;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #fde68a;
    margin-bottom: 18px;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.02;
    font-weight: 950;
    max-width: 680px;
}

.hero-one-line {
    max-width: 650px;
    margin: 0 0 16px;
    font-size: clamp(18px, 2vw, 24px);
    color: #fffbeb;
    font-weight: 800;
}

.hero-summary {
    max-width: 660px;
    margin: 0;
    color: #fde68a;
    font-size: 16px;
}

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

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

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    color: #78350f;
    background: linear-gradient(90deg, #facc15, #fef3c7);
    box-shadow: 0 16px 38px rgba(250, 204, 21, 0.36);
}

.btn.ghost {
    color: #fffbeb;
    border: 1px solid rgba(253, 230, 138, 0.46);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-panel {
    position: absolute;
    left: 32px;
    right: 32px;
    bottom: 64px;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 420px) auto;
    gap: 24px;
    align-items: center;
    padding: 22px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    box-shadow: var(--shadow);
}

.hero-panel div:first-child {
    display: grid;
    gap: 2px;
}

.hero-panel span {
    color: #d97706;
    font-weight: 900;
    font-size: 13px;
}

.hero-panel strong {
    font-size: 22px;
}

.hero-panel em {
    color: #64748b;
    font-style: normal;
}

.hero-search {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: #fff7ed;
}

.hero-search input {
    width: 100%;
    min-height: 46px;
    border: 0;
    outline: 0;
    padding: 0 16px;
    background: transparent;
}

.hero-search button {
    border: 0;
    padding: 0 18px;
    color: #ffffff;
    background: #d97706;
    font-weight: 900;
}

.hero-dots {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #fcd34d;
    opacity: 0.45;
}

.hero-dot.is-active {
    width: 34px;
    opacity: 1;
    background: #d97706;
}

.lift-section {
    position: relative;
    z-index: 6;
    margin-top: -70px;
}

.feature-card,
.detail-card,
.side-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.feature-card {
    padding: clamp(22px, 4vw, 42px);
}

.page-section {
    padding: 72px 0;
}

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

.section-heading h2 {
    margin: 8px 0 0;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.16;
}

.section-heading a {
    flex-shrink: 0;
    color: #92400e;
    font-weight: 900;
    border-bottom: 2px solid rgba(217, 119, 6, 0.3);
}

.light-heading {
    color: #ffffff;
}

.light-heading span,
.light-heading a {
    color: #fde68a;
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 70px rgba(120, 53, 15, 0.18);
}

.movie-poster {
    position: relative;
    display: block;
    height: 270px;
    overflow: hidden;
    background: linear-gradient(135deg, #78350f, #0f172a);
}

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

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

.movie-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.86));
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    color: #78350f;
    background: #facc15;
    font-weight: 950;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}

.play-chip {
    right: 14px;
    bottom: 14px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 13px;
}

.rank-badge {
    left: 14px;
    top: 14px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

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

.movie-meta,
.detail-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #92400e;
    font-size: 13px;
    font-weight: 900;
}

.movie-meta span,
.detail-topline span {
    padding: 3px 8px;
    border-radius: 999px;
    background: #fffbeb;
}

.movie-card h2 {
    margin: 12px 0 8px;
    font-size: 19px;
    line-height: 1.25;
}

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

.movie-card p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.tag-row span,
.detail-tags span {
    color: #78350f;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 12px;
    font-weight: 800;
}

.compact-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    min-height: 150px;
}

.compact-card .movie-poster {
    height: 100%;
}

.compact-card .movie-card-body {
    display: grid;
    align-content: center;
}

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

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

.category-block {
    display: block;
    min-height: 165px;
    padding: 24px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #78350f, #d97706);
    box-shadow: 0 18px 44px rgba(120, 53, 15, 0.18);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-block:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 70px rgba(120, 53, 15, 0.26);
}

.category-block span {
    display: block;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 950;
}

.category-block p {
    margin: 0;
    color: #fffbeb;
}

.rank-section {
    padding: 72px 0;
    background: radial-gradient(circle at 14% 20%, rgba(250, 204, 21, 0.18), transparent 25%), linear-gradient(135deg, #0f172a, #78350f 56%, #0f172a);
}

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

.filter-bar {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 0.7fr));
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

.filter-bar label {
    display: grid;
    gap: 7px;
    color: #475569;
    font-size: 13px;
    font-weight: 900;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    height: 46px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    padding: 0 14px;
    background: #ffffff;
    color: #0f172a;
    outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #d97706;
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.13);
}

.subpage-main,
.detail-main {
    min-height: 70vh;
}

.page-hero {
    color: #ffffff;
    background: radial-gradient(circle at 20% 25%, rgba(250, 204, 21, 0.24), transparent 24%), linear-gradient(135deg, #0f172a, #78350f 58%, #111827);
}

.compact-hero {
    padding: 74px 0 64px;
}

.page-hero h1 {
    max-width: 820px;
    margin: 10px 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #fde68a;
    font-size: 18px;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.category-pill {
    padding: 9px 14px;
    border-radius: 999px;
    color: #fffbeb;
    border: 1px solid rgba(253, 230, 138, 0.35);
    background: rgba(255, 255, 255, 0.08);
    font-weight: 850;
}

.category-pill.active,
.category-pill:hover {
    color: #78350f;
    background: #facc15;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    padding: 34px 0 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 0 0 18px;
    color: #92400e;
    font-weight: 850;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    border: 0;
    color: #ffffff;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.player-cover:hover .play-large {
    transform: scale(1.08);
}

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

.play-large {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    color: #78350f;
    background: #facc15;
    border-radius: 999px;
    font-size: 34px;
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.32);
    transition: transform 0.2s ease;
}

.player-cover strong {
    max-width: min(80%, 720px);
    font-size: clamp(24px, 4vw, 42px);
    text-align: center;
}

.detail-card {
    margin-top: 24px;
    padding: clamp(22px, 4vw, 36px);
}

.detail-card h1 {
    margin: 16px 0 12px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
}

.detail-lead {
    margin: 0 0 24px;
    color: #334155;
    font-size: 20px;
    font-weight: 800;
}

.detail-facts {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 20px;
    background: #fff7ed;
    color: #475569;
}

.detail-facts p {
    margin: 0;
}

.detail-card section {
    margin-top: 28px;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.detail-card section p {
    margin: 0;
    color: #475569;
}

.review-box {
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
}

.related-section {
    margin-top: 34px;
}

.detail-sidebar {
    display: grid;
    gap: 20px;
    align-content: start;
}

.side-card {
    padding: 22px;
    position: sticky;
    top: 96px;
}

.side-card + .side-card {
    position: static;
}

.side-item {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.side-item img {
    width: 104px;
    height: 68px;
    object-fit: cover;
    border-radius: 14px;
}

.side-item strong {
    display: block;
    color: #0f172a;
    line-height: 1.35;
}

.side-item em {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-style: normal;
    font-size: 13px;
}

.side-item:hover strong {
    color: #d97706;
}

.category-side {
    display: grid;
    gap: 10px;
}

.category-side a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 13px;
    border-radius: 14px;
    color: #78350f;
    background: #fff7ed;
    font-weight: 850;
}

.category-side a:hover {
    background: #fef3c7;
}

.site-footer {
    color: #fde68a;
    background: linear-gradient(180deg, #0f172a, #78350f 58%, #0f172a);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr 0.9fr 1fr;
    gap: 28px;
    padding: 54px 0;
}

.footer-logo {
    color: #fef3c7;
    font-size: 22px;
}

.site-footer p {
    color: #fde68a;
    margin: 14px 0 0;
}

.site-footer h2 {
    color: #facc15;
    margin: 0 0 14px;
    font-size: 18px;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(253, 230, 138, 0.18);
    padding: 18px 16px;
    text-align: center;
    color: #fcd34d;
    font-size: 14px;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1040px) {
    .hero-slide {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 46px;
    }

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

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

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

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

    .side-card {
        position: static;
    }

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

@media (max-width: 760px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .site-menu {
        position: fixed;
        inset: 72px 12px auto 12px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border-radius: 22px;
        background: rgba(15, 23, 42, 0.96);
        box-shadow: var(--shadow);
    }

    .site-menu.is-open {
        display: flex;
    }

    .site-menu a {
        padding: 12px 14px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.06);
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        min-height: auto;
    }

    .hero-shell {
        padding: 34px 0 210px;
    }

    .hero-slide {
        inset: 34px 0 auto 0;
        min-height: 560px;
    }

    .hero-image,
    .hero-image::after {
        border-radius: 24px;
    }

    .hero-content {
        padding: 30px;
    }

    .hero-panel {
        left: 12px;
        right: 12px;
        bottom: 34px;
        padding: 16px;
        border-radius: 22px;
    }

    .hero-dots {
        justify-content: flex-start;
    }

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

    .three-col,
    .four-col,
    .category-overview-grid,
    .large-grid,
    .rank-list,
    .detail-sidebar,
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .movie-poster {
        height: 230px;
    }

    .compact-card {
        grid-template-columns: 118px 1fr;
    }

    .compact-card .movie-poster {
        min-height: 150px;
    }

    .page-section {
        padding: 46px 0;
    }

    .compact-hero {
        padding: 52px 0 44px;
    }
}
