:root {
    --bg: #fff7ed;
    --surface: #ffffff;
    --surface-soft: #fffbeb;
    --ink: #1f1304;
    --muted: #725a38;
    --line: rgba(146, 64, 14, 0.16);
    --brand: #b45309;
    --brand-strong: #92400e;
    --gold: #f59e0b;
    --gold-light: #fde68a;
    --shadow: 0 18px 45px rgba(120, 53, 15, 0.16);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 44%, #ffffff 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #78350f 0%, #92400e 48%, #78350f 100%);
    box-shadow: 0 12px 28px rgba(69, 26, 3, 0.24);
}

.site-nav {
    max-width: 1240px;
    height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #fff7ed;
    letter-spacing: 0.03em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #78350f;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.32);
}

.brand-name {
    font-size: 21px;
}

.nav-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
}

.nav-link {
    padding: 10px 13px;
    border-radius: 10px;
    color: rgba(255, 251, 235, 0.86);
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
    background: rgba(251, 191, 36, 0.18);
    transform: translateY(-1px);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}

.nav-search input,
.filter-panel input,
.filter-panel select {
    border: 1px solid rgba(146, 64, 14, 0.24);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    outline: none;
}

.nav-search input {
    width: 190px;
    padding: 10px 12px;
}

.nav-search button,
.btn,
.section-more,
.text-link {
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #b45309);
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button {
    padding: 10px 15px;
}

.btn,
.section-more,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
}

.btn:hover,
.section-more:hover,
.text-link:hover,
.nav-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(180, 83, 9, 0.24);
}

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

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

.hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: #1c1003;
}

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

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 34%, rgba(245, 158, 11, 0.3), transparent 34%),
        linear-gradient(90deg, rgba(28, 16, 3, 0.94) 0%, rgba(28, 16, 3, 0.72) 45%, rgba(28, 16, 3, 0.36) 100%),
        linear-gradient(0deg, rgba(28, 16, 3, 0.72), rgba(28, 16, 3, 0.1));
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    min-height: 650px;
    margin: 0 auto;
    padding: 76px 22px 90px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    align-items: end;
    gap: 64px;
}

.hero-copy {
    max-width: 720px;
    color: #fff7ed;
}

.eyebrow,
.section-kicker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #fcd34d;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-copy h1,
.intro-card h1 {
    margin: 16px 0;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.hero p,
.page-hero p,
.detail-line,
.intro-card p {
    margin: 0;
    color: rgba(255, 247, 237, 0.86);
    font-size: 18px;
    line-height: 1.75;
}

.hero-meta,
.card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.hero-meta span,
.card-meta span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff7ed;
    font-size: 13px;
    font-weight: 800;
}

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

.hero-poster {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 32px 75px rgba(0, 0, 0, 0.45);
    transform: rotate(1.5deg);
}

.hero-poster img {
    height: 500px;
    object-fit: cover;
}

.hero-controls {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

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

.hero-dot.is-active {
    background: #f59e0b;
}

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

.intro-section {
    padding-top: 34px;
}

.intro-card,
.article-card,
.ranking-box,
.category-overview-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.intro-card {
    padding: 34px;
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.94), rgba(255, 237, 213, 0.94));
}

.intro-card h1,
.section-head h2,
.article-card h2,
.ranking-box h2,
.category-overview-card h2 {
    color: var(--ink);
}

.intro-card p {
    max-width: 860px;
    color: var(--muted);
}

.quick-links a {
    margin-top: 22px;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--brand-strong);
    background: #ffedd5;
    border: 1px solid rgba(180, 83, 9, 0.2);
    font-weight: 800;
}

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

.section-head h2 {
    margin: 8px 0 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.12;
}

.section-head .section-kicker {
    color: var(--brand);
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 32px rgba(120, 53, 15, 0.11);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(217, 119, 6, 0.38);
    box-shadow: 0 24px 48px rgba(120, 53, 15, 0.18);
}

.poster-link,
.rank-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #78350f, #f59e0b);
}

.poster-link img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 9px;
    border-radius: 999px;
    color: #78350f;
    background: #fcd34d;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.card-body {
    padding: 16px;
}

.card-body h2 {
    margin: 8px 0 8px;
    font-size: 19px;
    line-height: 1.35;
}

.card-body p {
    margin: 0;
    min-height: 50px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

.card-meta {
    gap: 6px;
    margin: 0;
}

.card-meta span {
    color: var(--brand-strong);
    background: #ffedd5;
    font-size: 12px;
}

.tag-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tag-row span {
    padding: 5px 8px;
    border-radius: 999px;
    color: #92400e;
    background: #fef3c7;
    font-size: 12px;
    font-weight: 800;
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
}

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

.category-tile {
    min-height: 210px;
    padding: 24px;
    border-radius: 22px;
    color: #fff7ed;
    background:
        radial-gradient(circle at top right, rgba(252, 211, 77, 0.28), transparent 36%),
        linear-gradient(135deg, #92400e, #451a03);
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 48px rgba(69, 26, 3, 0.22);
}

.category-tile span {
    display: block;
    color: #fde68a;
    font-size: 23px;
    font-weight: 900;
}

.category-tile p {
    color: rgba(255, 247, 237, 0.78);
    line-height: 1.65;
}

.category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-links a {
    padding: 6px 9px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.14);
    font-size: 12px;
}

.ranking-box {
    padding: 24px;
    align-self: start;
    position: sticky;
    top: 88px;
}

.ranking-box ol {
    padding: 0;
    margin: 0;
    list-style: none;
}

.ranking-box li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.ranking-box li:last-child {
    border-bottom: 0;
}

.ranking-box a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.ranking-box a span,
.rank-number {
    color: #f59e0b;
    font-weight: 900;
}

.ranking-box em {
    color: var(--brand);
    font-style: normal;
    font-weight: 900;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff7ed;
    background:
        linear-gradient(90deg, rgba(69, 26, 3, 0.96), rgba(120, 53, 15, 0.7)),
        var(--hero-image),
        linear-gradient(135deg, #78350f, #f59e0b);
    background-size: cover;
    background-position: center;
}

.slim-hero,
.rank-hero {
    min-height: 330px;
    display: flex;
    align-items: end;
}

.page-hero > div,
.detail-hero-inner {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 70px 22px;
}

.page-hero h1 {
    margin-top: 12px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 180px 180px;
    gap: 12px;
    padding: 16px;
    margin-bottom: 24px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 28px rgba(120, 53, 15, 0.09);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    padding: 13px 14px;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
}

.poster-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.poster-strip img {
    height: 118px;
    object-fit: cover;
    border-radius: 12px;
}

.category-overview-card h2 {
    margin: 6px 0 10px;
    font-size: 24px;
}

.category-overview-card p {
    color: var(--muted);
    line-height: 1.65;
}

.category-overview-card ul {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-overview-card li a {
    padding: 6px 9px;
    border-radius: 999px;
    background: #ffedd5;
    color: var(--brand-strong);
    font-size: 13px;
    font-weight: 800;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 64px 94px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 14px;
}

.rank-number {
    font-size: 28px;
    text-align: center;
}

.rank-poster img {
    width: 94px;
    height: 124px;
    border-radius: 14px;
    object-fit: cover;
}

.rank-body h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.rank-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.detail-hero {
    min-height: 560px;
}

.detail-hero::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(28, 16, 3, 0.76), rgba(28, 16, 3, 0.12));
}

.detail-hero-inner,
.page-hero > div {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: rgba(255, 247, 237, 0.76);
    font-size: 14px;
}

.breadcrumb a {
    color: #fde68a;
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 36px;
    align-items: end;
}

.detail-poster {
    height: 430px;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: 0 32px 68px rgba(0, 0, 0, 0.42);
}

.detail-copy h1 {
    max-width: 880px;
}

.detail-tags span {
    color: #78350f;
    background: #fde68a;
}

.player-section {
    padding-bottom: 28px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #070707;
    box-shadow: 0 28px 68px rgba(0, 0, 0, 0.28);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    cursor: pointer;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.54));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #78350f;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    box-shadow: 0 18px 38px rgba(245, 158, 11, 0.34);
    font-size: 32px;
}

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

.article-card {
    padding: 26px;
}

.article-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.article-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.82;
}

.info-table dl {
    margin: 0;
}

.info-table div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.info-table div:last-child {
    border-bottom: 0;
}

.info-table dt {
    color: var(--brand);
    font-weight: 900;
}

.info-table dd {
    margin: 0;
    color: var(--muted);
}

.related-grid .movie-card {
    min-width: 0;
}

.card-compact .card-body p {
    min-height: auto;
}

.site-footer {
    margin-top: 44px;
    color: #fff7ed;
    background: linear-gradient(180deg, #78350f, #451a03);
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 46px 22px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 34px;
}

.footer-brand p {
    color: rgba(255, 247, 237, 0.74);
    line-height: 1.7;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #fde68a;
    font-size: 16px;
}

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

.site-footer a {
    color: rgba(255, 247, 237, 0.8);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 16px 22px;
    text-align: center;
    color: rgba(255, 247, 237, 0.66);
}

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

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        align-items: center;
    }

    .hero-poster {
        display: none;
    }

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

    .two-column-section,
    .detail-content,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .ranking-box {
        position: static;
    }
}

@media (max-width: 760px) {
    .site-nav {
        height: auto;
        min-height: 64px;
        flex-wrap: wrap;
        padding: 12px 16px;
    }

    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .nav-panel {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 0 4px;
    }

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

    .nav-search {
        margin-left: 0;
    }

    .nav-search input {
        flex: 1;
        width: 100%;
    }

    .hero,
    .hero-content {
        min-height: 590px;
    }

    .hero-content {
        padding: 54px 18px 82px;
    }

    .hero h1,
    .page-hero h1,
    .detail-copy h1,
    .intro-card h1 {
        font-size: 38px;
    }

    .section {
        padding: 42px 16px;
    }

    .section-head,
    .hero-actions,
    .quick-links {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .category-grid,
    .filter-panel,
    .detail-layout,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: 220px;
        height: 310px;
    }

    .rank-card {
        grid-template-columns: 48px 78px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-poster img {
        width: 78px;
        height: 102px;
    }

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

@media (max-width: 480px) {
    .movie-grid {
        grid-template-columns: 1fr;
    }

    .hero p,
    .page-hero p,
    .detail-line,
    .intro-card p {
        font-size: 16px;
    }

    .hero-meta span,
    .card-meta span {
        font-size: 12px;
    }
}
