:root {
    --color-bg: #0f172a;
    --color-bg-soft: #111827;
    --color-panel: rgba(255, 255, 255, 0.92);
    --color-panel-dark: rgba(15, 23, 42, 0.86);
    --color-text: #1f2937;
    --color-muted: #64748b;
    --color-light: #fff7ed;
    --color-gold: #d97706;
    --color-gold-soft: #f59e0b;
    --color-amber: #fef3c7;
    --color-line: rgba(148, 163, 184, 0.22);
    --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.16);
    --shadow-card: 0 14px 36px rgba(120, 53, 15, 0.13);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--color-text);
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.22), transparent 32rem),
        radial-gradient(circle at top right, rgba(217, 119, 6, 0.18), transparent 28rem),
        linear-gradient(180deg, #fff7ed 0%, #fffaf0 34%, #ffffff 100%);
    line-height: 1.65;
}

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

button,
input {
    font: inherit;
}

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

.page-shell {
    min-height: 100vh;
    overflow: hidden;
}

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

.header-inner,
.hero-inner,
.section,
.footer-grid,
.footer-bottom {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: #78350f;
    letter-spacing: 0.02em;
}

.logo-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #92400e);
    box-shadow: 0 12px 24px rgba(146, 64, 14, 0.25);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav > a,
.nav-dropdown > button {
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    color: #78350f;
    background: transparent;
    cursor: pointer;
    transition: 0.2s ease;
}

.main-nav > a:hover,
.nav-dropdown:hover > button {
    color: #ffffff;
    background: #d97706;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: none;
    min-width: 190px;
    padding: 10px;
    border: 1px solid rgba(217, 119, 6, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
}

.nav-dropdown:hover .nav-dropdown__panel {
    display: grid;
    gap: 6px;
}

.nav-dropdown__panel a {
    border-radius: 12px;
    padding: 9px 12px;
    color: #78350f;
}

.nav-dropdown__panel a:hover {
    background: #fef3c7;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #fef3c7;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    margin: 4px auto;
    border-radius: 99px;
    background: #92400e;
}

.hero {
    position: relative;
    padding: 52px 0 44px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -120px -80px auto -80px;
    height: 420px;
    background:
        radial-gradient(circle at 18% 24%, rgba(251, 191, 36, 0.36), transparent 23rem),
        radial-gradient(circle at 78% 12%, rgba(120, 53, 15, 0.2), transparent 22rem);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    align-items: stretch;
    gap: 28px;
}

.hero-copy {
    min-height: 520px;
    padding: 52px;
    border: 1px solid rgba(217, 119, 6, 0.18);
    border-radius: 36px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(120, 53, 15, 0.84)),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.32), transparent 20rem);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.32);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 8px 13px;
    border: 1px solid rgba(254, 243, 199, 0.3);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(255, 255, 255, 0.09);
}

.hero h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(2.4rem, 7vw, 5.6rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-lead {
    max-width: 640px;
    margin: 24px 0 0;
    color: rgba(255, 247, 237, 0.86);
    font-size: 1.1rem;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

.button-primary {
    color: #78350f;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    box-shadow: 0 16px 30px rgba(245, 158, 11, 0.24);
}

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

.button-secondary {
    color: #fff7ed;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.1);
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    max-width: 560px;
    margin-top: 34px;
    padding: 8px;
    border: 1px solid rgba(254, 243, 199, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
}

.hero-search input {
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 15px;
    color: #ffffff;
    background: transparent;
}

.hero-search input::placeholder {
    color: rgba(255, 247, 237, 0.68);
}

.hero-search button {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    color: #78350f;
    font-weight: 800;
    background: #fef3c7;
    cursor: pointer;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 36px;
}

.hero-stat {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
}

.hero-stat strong {
    display: block;
    font-size: 1.6rem;
    line-height: 1.1;
    color: #fde68a;
}

.hero-stat span {
    color: rgba(255, 247, 237, 0.76);
    font-size: 0.9rem;
}

.hero-slider {
    position: relative;
    min-height: 520px;
    border-radius: 36px;
    overflow: hidden;
    background: #111827;
    box-shadow: var(--shadow-soft);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: end;
    padding: 28px;
    color: #ffffff;
    opacity: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
    transition: opacity 0.65s ease, transform 1.2s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.86)),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.23), transparent 20rem);
}

.hero-slide__content {
    position: relative;
    z-index: 1;
}

.hero-slide__content h2 {
    margin: 0 0 10px;
    font-size: clamp(1.7rem, 4vw, 3.1rem);
    line-height: 1.08;
}

.hero-slide__content p {
    max-width: 480px;
    margin: 0 0 18px;
    color: rgba(255, 247, 237, 0.82);
}

.hero-slide__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.hero-slide__meta span {
    padding: 6px 10px;
    border-radius: 999px;
    color: #fde68a;
    background: rgba(255, 255, 255, 0.14);
}

.hero-dots {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 2;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 28px;
    background: #fde68a;
}

.section {
    padding: 44px 0;
}

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

.section-title {
    margin: 0;
    color: #78350f;
    font-size: clamp(1.55rem, 4vw, 2.35rem);
    line-height: 1.16;
}

.section-desc {
    max-width: 700px;
    margin: 8px 0 0;
    color: var(--color-muted);
}

.section-link {
    flex: none;
    color: #b45309;
    font-weight: 800;
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid rgba(217, 119, 6, 0.13);
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-card__cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

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

.movie-card__badge,
.movie-card__score,
.movie-card__play {
    position: absolute;
    z-index: 1;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.movie-card__badge {
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    color: #78350f;
    background: #fef3c7;
}

.movie-card__score {
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(12px);
}

.movie-card__play {
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    padding: 8px 13px;
    color: #78350f;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    opacity: 0;
    transition: 0.2s ease;
}

.movie-card:hover .movie-card__play {
    opacity: 1;
}

.movie-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px;
}

.movie-card__title {
    margin: 0;
    color: #1f2937;
    font-size: 1.05rem;
    line-height: 1.35;
}

.movie-card__title a:hover {
    color: #b45309;
}

.movie-card__meta {
    margin: 7px 0;
    color: #92400e;
    font-size: 0.88rem;
}

.movie-card__desc {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
}

.movie-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 14px 0;
}

.tag {
    display: inline-flex;
    border-radius: 999px;
    padding: 4px 8px;
    color: #92400e;
    background: #fffbeb;
    font-size: 0.78rem;
}

.movie-card__category {
    width: fit-content;
    margin-top: auto;
    color: #b45309;
    font-size: 0.88rem;
    font-weight: 800;
}

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

.category-card {
    position: relative;
    min-height: 166px;
    padding: 22px;
    border: 1px solid rgba(217, 119, 6, 0.14);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(254, 243, 199, 0.74)),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.2), transparent 10rem);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-3px);
}

.category-card h3 {
    margin: 0 0 8px;
    color: #78350f;
    font-size: 1.2rem;
}

.category-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.94rem;
}

.category-card strong {
    position: absolute;
    right: 18px;
    bottom: 12px;
    color: rgba(146, 64, 14, 0.2);
    font-size: 3.6rem;
    line-height: 1;
}

.rank-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.rank-panel,
.filter-panel,
.detail-panel,
.player-panel,
.content-panel {
    border: 1px solid rgba(217, 119, 6, 0.14);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-card);
}

.rank-panel {
    padding: 20px;
}

.rank-panel h3 {
    margin: 0 0 14px;
    color: #78350f;
}

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

.rank-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 46px;
    padding: 9px 11px;
    border-radius: 14px;
    background: #fffaf0;
}

.rank-item:hover {
    background: #fef3c7;
}

.rank-index {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 900;
    background: #d97706;
}

.rank-title {
    overflow: hidden;
    color: #1f2937;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-meta {
    color: #92400e;
    font-size: 0.86rem;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 22px;
    padding: 14px;
}

.filter-panel input,
.search-box input {
    width: 100%;
    border: 1px solid rgba(217, 119, 6, 0.16);
    border-radius: 16px;
    outline: 0;
    padding: 12px 14px;
    color: #1f2937;
    background: #ffffff;
}

.filter-panel span {
    color: #92400e;
    font-weight: 800;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #92400e;
    font-size: 0.94rem;
}

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

.detail-hero {
    padding: 36px 0 22px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    gap: 24px;
    align-items: start;
}

.detail-poster {
    min-height: 560px;
    border-radius: 32px;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-soft);
}

.detail-panel {
    padding: 30px;
}

.detail-title {
    margin: 0;
    color: #78350f;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.08;
}

.detail-subtitle {
    margin: 14px 0 0;
    color: #64748b;
    font-size: 1.04rem;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 22px 0;
}

.detail-meta span {
    border-radius: 999px;
    padding: 8px 12px;
    color: #92400e;
    background: #fef3c7;
    font-weight: 700;
}

.player-panel {
    margin-top: 24px;
    padding: 18px;
    background: rgba(15, 23, 42, 0.96);
}

.player-screen {
    position: relative;
    display: grid;
    min-height: 360px;
    place-items: center;
    border-radius: 22px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(120, 53, 15, 0.52)),
        radial-gradient(circle at center, rgba(245, 158, 11, 0.23), transparent 18rem);
    overflow: hidden;
}

.player-screen video {
    display: none;
    width: 100%;
    height: 100%;
    min-height: 360px;
    background: #000000;
}

.player-panel.is-playing .player-screen video {
    display: block;
}

.player-panel.is-playing .player-overlay {
    display: none;
}

.player-overlay {
    display: grid;
    gap: 16px;
    place-items: center;
    padding: 30px;
    text-align: center;
}

.play-button {
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #78350f;
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    box-shadow: 0 18px 34px rgba(245, 158, 11, 0.32);
    cursor: pointer;
}

.player-note {
    color: rgba(255, 247, 237, 0.72);
    font-size: 0.92rem;
}

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

.content-panel {
    padding: 26px;
}

.content-panel h2 {
    margin: 0 0 12px;
    color: #78350f;
}

.content-panel p {
    margin: 0 0 18px;
    color: #374151;
}

.info-table {
    display: grid;
    gap: 10px;
}

.info-table div {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(217, 119, 6, 0.12);
}

.info-table dt {
    color: #92400e;
    font-weight: 900;
}

.info-table dd {
    margin: 0;
    color: #374151;
}

.search-page {
    min-height: 520px;
}

.search-box {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
}

.search-results {
    display: grid;
    gap: 12px;
}

.search-result {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(217, 119, 6, 0.13);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
}

.search-result strong {
    color: #78350f;
}

.search-result span {
    color: #64748b;
}

.empty-state {
    padding: 28px;
    border-radius: 22px;
    color: #92400e;
    background: #fef3c7;
    text-align: center;
}

.sitemap-list {
    columns: 3 260px;
    column-gap: 32px;
}

.sitemap-list a {
    display: block;
    break-inside: avoid;
    padding: 6px 0;
    color: #78350f;
}

.site-footer {
    margin-top: 48px;
    padding: 46px 0 24px;
    color: rgba(255, 247, 237, 0.78);
    background:
        linear-gradient(135deg, #111827, #78350f),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 24rem);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1fr;
    gap: 28px;
}

.footer-logo {
    color: #ffffff;
}

.site-footer h3 {
    margin: 0 0 12px;
    color: #fde68a;
}

.site-footer a {
    display: block;
    margin: 5px 0;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    font-size: 0.92rem;
}

@media (max-width: 1040px) {
    .hero-inner,
    .detail-layout,
    .content-grid {
        grid-template-columns: 1fr;
    }

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

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

    .hero-copy,
    .hero-slider {
        min-height: 460px;
    }
}

@media (max-width: 760px) {
    .header-inner {
        min-height: 64px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 64px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid rgba(217, 119, 6, 0.18);
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow-soft);
    }

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

    .nav-dropdown {
        display: none;
    }

    .hero {
        padding-top: 26px;
    }

    .hero-copy {
        min-height: auto;
        padding: 30px 22px;
        border-radius: 28px;
    }

    .hero-slider {
        min-height: 420px;
        border-radius: 28px;
    }

    .hero-search {
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

    .hero-search input {
        min-height: 42px;
    }

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

    .movie-grid,
    .category-grid,
    .rank-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-head,
    .footer-bottom,
    .filter-panel,
    .search-result {
        align-items: stretch;
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .detail-poster {
        min-height: 430px;
    }

    .player-screen,
    .player-screen video {
        min-height: 240px;
    }

    .rank-item {
        grid-template-columns: auto 1fr;
    }

    .rank-meta {
        grid-column: 2;
    }
}
