:root {
    --gold-50: #fff8e6;
    --gold-100: #fff0bf;
    --gold-200: #ffe08a;
    --gold-300: #facc45;
    --gold-400: #f7b813;
    --gold-500: #e49a00;
    --gold-600: #bd7300;
    --gold-700: #8a4c08;
    --ink-900: #1b160a;
    --ink-700: #4d4022;
    --ink-500: #776849;
    --paper: #fffdf8;
    --white: #ffffff;
    --shadow: 0 18px 50px rgba(143, 91, 0, 0.16);
    --shadow-strong: 0 28px 80px rgba(143, 91, 0, 0.28);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink-900);
    background:
        radial-gradient(circle at top left, rgba(250, 204, 69, 0.28), transparent 30rem),
        linear-gradient(180deg, #fff6d8 0%, #fffdf8 32%, #ffffff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(135deg, rgba(247, 184, 19, 0.96), rgba(189, 115, 0, 0.96));
    color: #ffffff;
    box-shadow: 0 14px 36px rgba(128, 78, 0, 0.22);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    height: 72px;
    padding: 0 24px;
    margin: 0 auto;
}

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

.logo-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--gold-700);
    background: linear-gradient(135deg, #ffffff, var(--gold-100));
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 10px 22px rgba(111, 65, 0, 0.2);
}

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

.desktop-nav a,
.mobile-nav a,
.footer-links a {
    padding: 9px 14px;
    border-radius: 999px;
    transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;
    background: rgba(255, 255, 255, 0.18);
    border: 0;
    border-radius: 12px;
}

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

.mobile-nav {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 24px 18px;
    max-width: 1280px;
    margin: 0 auto;
}

main {
    min-height: 70vh;
}

.hero-slider {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    color: #ffffff;
    background: #3a2400;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 35%, rgba(250, 204, 69, 0.28), transparent 25rem),
        linear-gradient(90deg, rgba(35, 22, 0, 0.92) 0%, rgba(42, 29, 3, 0.78) 42%, rgba(42, 29, 3, 0.32) 100%),
        linear-gradient(180deg, transparent 54%, rgba(35, 22, 0, 0.84) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 56px;
    align-items: center;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding-top: 64px;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.lead-text {
    max-width: 760px;
    margin: 22px 0 0;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.86);
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: var(--gold-700);
    background: var(--gold-100);
    border: 1px solid rgba(228, 154, 0, 0.24);
    border-radius: 999px;
    padding: 6px 13px;
    font-size: 14px;
    font-weight: 700;
}

.hero-copy .eyebrow,
.detail-copy .eyebrow,
.page-hero .eyebrow {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.17);
    border-color: rgba(255, 255, 255, 0.22);
}

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

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    color: var(--gold-700);
    background: rgba(255, 248, 230, 0.92);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

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

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

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    box-shadow: 0 16px 36px rgba(228, 154, 0, 0.36);
}

.ghost-btn {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.14);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover,
.movie-card:hover,
.category-card:hover,
.category-large:hover {
    transform: translateY(-3px);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow-strong);
}

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

.hero-poster span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: grid;
    place-items: center;
    height: 48px;
    color: #ffffff;
    background: rgba(29, 17, 0, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    font-weight: 800;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
}

.hero-dot.active {
    width: 34px;
    background: var(--gold-300);
}

.page-main {
    padding-top: 38px;
}

.content-section {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 58px 0;
}

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

.section-heading h2,
.detail-section h2,
.player-section h2,
.ranking-sidebar h2 {
    margin: 10px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
}

.section-heading p {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--ink-500);
}

.section-link {
    color: var(--gold-700);
    background: var(--gold-100);
}

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

.category-card,
.category-large {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    border-radius: var(--radius-md);
    background: #2f1e03;
    color: #ffffff;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card img,
.category-large img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
    transition: transform 0.5s ease;
}

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

.category-card span,
.category-card small {
    position: relative;
    z-index: 2;
    display: block;
    padding: 0 18px;
}

.category-card span {
    margin-top: 128px;
    font-size: 24px;
    font-weight: 900;
}

.category-card small {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.82);
}

.category-card::after,
.category-large::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 10%, rgba(31, 18, 0, 0.86) 100%);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 190px));
    gap: 14px;
    padding: 18px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(228, 154, 0, 0.16);
    border-radius: 24px;
    box-shadow: 0 10px 28px rgba(143, 91, 0, 0.09);
}

.filter-panel label {
    display: grid;
    gap: 6px;
    color: var(--ink-500);
    font-size: 13px;
    font-weight: 700;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    color: var(--ink-900);
    background: #ffffff;
    border: 1px solid rgba(189, 115, 0, 0.18);
    border-radius: 14px;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--gold-400);
    box-shadow: 0 0 0 4px rgba(250, 204, 69, 0.22);
}

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

.movie-card {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(228, 154, 0, 0.13);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    box-shadow: var(--shadow-strong);
}

.movie-card.is-hidden {
    display: none;
}

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--gold-100);
}

.movie-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 50%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
}

.play-chip {
    left: 12px;
    bottom: 12px;
    height: 34px;
    padding: 0 12px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
}

.rank-badge {
    top: 12px;
    left: 12px;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    color: var(--gold-700);
    background: #ffffff;
    font-style: normal;
}

.movie-info {
    padding: 16px;
}

.movie-meta {
    color: var(--gold-600);
    font-size: 13px;
    font-weight: 800;
}

.movie-info h3 {
    margin: 7px 0;
    font-size: 18px;
    line-height: 1.25;
}

.movie-info p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0;
    overflow: hidden;
    color: var(--ink-500);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-row {
    margin-top: 12px;
}

.tag-row span {
    color: var(--gold-700);
    background: var(--gold-50);
    font-size: 12px;
}

.rank-section {
    padding-top: 30px;
}

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

.mini-movie {
    display: grid;
    grid-template-columns: auto 62px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: #ffffff;
    border: 1px solid rgba(228, 154, 0, 0.14);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(143, 91, 0, 0.08);
}

.mini-movie img {
    width: 62px;
    height: 82px;
    object-fit: cover;
    border-radius: 12px;
}

.mini-movie strong,
.mini-movie small {
    display: block;
}

.mini-movie small {
    margin-top: 4px;
    color: var(--ink-500);
}

.mini-rank {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    border-radius: 999px;
    font-weight: 900;
}

.page-hero {
    display: grid;
    align-items: center;
    min-height: 360px;
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 58px;
    color: #ffffff;
    background:
        radial-gradient(circle at right, rgba(255, 224, 138, 0.36), transparent 26rem),
        linear-gradient(135deg, #8a4c08, #2d1a00);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-strong);
}

.slim-hero {
    min-height: 300px;
}

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

.category-large {
    display: grid;
    align-items: end;
    min-height: 300px;
    padding: 26px;
}

.category-large > div:not(.category-thumbs) {
    position: relative;
    z-index: 2;
}

.category-large h2 {
    margin: 12px 0 8px;
    font-size: 30px;
}

.category-large p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
}

.category-thumbs img:nth-child(2) {
    transform: translateX(26%) scale(0.88);
}

.category-thumbs img:nth-child(3) {
    transform: translateX(-26%) scale(0.82);
}

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    align-items: start;
}

.ranking-sidebar {
    position: sticky;
    top: 96px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(228, 154, 0, 0.14);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.slim-list {
    grid-template-columns: 1fr;
    margin-top: 16px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto 22px;
    color: var(--ink-500);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--gold-700);
    font-weight: 700;
}

.detail-main {
    padding-top: 32px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 42px;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 42px;
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 224, 138, 0.26), transparent 28rem),
        linear-gradient(135deg, #3a2400, #8a4c08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-strong);
}

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

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

.detail-copy {
    align-self: center;
}

.detail-copy .lead-text {
    color: rgba(255, 255, 255, 0.88);
}

.detail-meta {
    margin-top: 22px;
}

.player-section,
.detail-section {
    width: min(1180px, calc(100% - 48px));
    margin: 34px auto 0;
    padding: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(228, 154, 0, 0.13);
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.player-section h2,
.detail-section h2 {
    margin-top: 0;
    color: var(--ink-900);
}

.player-shell {
    position: relative;
    overflow: hidden;
    margin-top: 18px;
    background: #090602;
    border-radius: 24px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.26);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.48));
    border: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    padding-left: 6px;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    border-radius: 999px;
    box-shadow: 0 18px 44px rgba(228, 154, 0, 0.42);
    font-size: 32px;
}

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

.player-status {
    min-height: 20px;
    margin-top: 12px;
    color: var(--ink-500);
}

.detail-section p {
    margin: 10px 0 0;
    color: var(--ink-700);
    font-size: 18px;
}

.related-section {
    padding-top: 36px;
}

.site-footer {
    margin-top: 42px;
    color: #ffffff;
    background: linear-gradient(135deg, #3a2400, #8a4c08);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 34px 0;
}

.footer-inner p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.76);
}

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

.footer-links a {
    background: rgba(255, 255, 255, 0.12);
}

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

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

    .ranking-layout {
        grid-template-columns: 1fr;
    }

    .ranking-sidebar {
        position: static;
    }
}

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

    .mobile-toggle {
        display: block;
    }

    .site-header.nav-open .mobile-nav {
        display: grid;
    }

    .hero-slider {
        min-height: 760px;
    }

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

    .hero-poster {
        width: min(280px, 72vw);
    }

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

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

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

    .page-hero,
    .detail-hero {
        padding: 30px;
    }
}

@media (max-width: 620px) {
    .header-inner,
    .content-section,
    .page-hero,
    .detail-hero,
    .player-section,
    .detail-section,
    .breadcrumb,
    .footer-inner {
        width: min(100% - 28px, 1280px);
    }

    .hero-content {
        width: min(100% - 28px, 1180px);
        gap: 30px;
    }

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

    .hero-copy p,
    .page-hero p,
    .lead-text {
        font-size: 17px;
    }

    .section-heading,
    .footer-inner {
        display: block;
    }

    .section-link {
        margin-top: 14px;
    }

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

    .movie-grid,
    .category-grid,
    .category-large-grid,
    .rank-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .movie-info {
        padding: 12px;
    }

    .movie-info h3 {
        font-size: 16px;
    }

    .detail-hero {
        padding: 22px;
    }

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

@media (max-width: 420px) {
    .movie-grid,
    .category-grid,
    .category-large-grid,
    .rank-list {
        grid-template-columns: 1fr;
    }
}
