:root {
    --amber: #d97706;
    --amber-dark: #b45309;
    --amber-soft: #fef3c7;
    --orange: #ea580c;
    --red-soft: #fef2f2;
    --gray-950: #111827;
    --gray-900: #1f2937;
    --gray-800: #374151;
    --gray-700: #4b5563;
    --gray-600: #6b7280;
    --gray-500: #9ca3af;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --shadow: 0 16px 40px rgba(17, 24, 39, 0.10);
    --shadow-strong: 0 24px 60px rgba(17, 24, 39, 0.18);
    --radius-lg: 18px;
    --radius-xl: 26px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--gray-900);
    background: var(--gray-50);
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.82);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-900);
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(217, 119, 6, 0.13);
    color: var(--amber);
    box-shadow: 0 0 0 8px rgba(217, 119, 6, 0.06);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--gray-700);
    font-weight: 700;
}

.desktop-nav a,
.mobile-nav a {
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: var(--amber);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--gray-100);
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--gray-900);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    background: rgba(255, 255, 255, 0.98);
}

.mobile-nav.is-open {
    display: grid;
    gap: 10px;
}

.hero-section {
    min-height: 700px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 112px 0 72px;
    background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 52%, #fef2f2 100%);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.glow {
    position: absolute;
    width: 310px;
    height: 310px;
    border-radius: 999px;
    filter: blur(38px);
    opacity: 0.20;
    animation: floatGlow 8s ease-in-out infinite alternate;
}

.glow-one {
    top: 70px;
    left: 6%;
    background: #f59e0b;
}

.glow-two {
    top: 170px;
    right: 7%;
    background: #fb923c;
    animation-delay: 1s;
}

.glow-three {
    left: 46%;
    bottom: 60px;
    background: #ef4444;
    animation-delay: 1.7s;
}

@keyframes floatGlow {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(22px, -18px, 0) scale(1.08);
    }
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-slider {
    min-height: 520px;
    position: relative;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
    gap: 48px;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-copy h1 {
    max-width: 780px;
    margin: 14px 0 0;
    font-size: clamp(40px, 7vw, 78px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.hero-copy h2 {
    margin: 16px 0 0;
    font-size: clamp(24px, 3.8vw, 44px);
    color: var(--amber);
}

.hero-copy p {
    max-width: 690px;
    margin: 24px 0 0;
    font-size: 19px;
    color: var(--gray-700);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 7px 14px;
    border-radius: 999px;
    color: var(--amber-dark);
    background: rgba(217, 119, 6, 0.10);
    font-weight: 800;
    letter-spacing: 0.04em;
}

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

.primary-button,
.secondary-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    padding: 14px 26px;
    color: var(--white);
    background: var(--amber);
    box-shadow: 0 14px 28px rgba(217, 119, 6, 0.25);
}

.primary-button:hover {
    transform: translateY(-2px);
    background: var(--amber-dark);
    box-shadow: 0 18px 34px rgba(217, 119, 6, 0.32);
}

.primary-button.small {
    padding: 10px 18px;
    font-size: 14px;
}

.secondary-button {
    padding: 12px 24px;
    color: var(--amber-dark);
    background: var(--white);
    border: 2px solid var(--amber);
}

.secondary-button:hover {
    transform: translateY(-2px);
    background: #fffaf0;
}

.hero-poster-link {
    display: block;
}

.hero-dots {
    position: absolute;
    left: 0;
    bottom: 10px;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.22);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: var(--amber);
}

.poster {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #111827, #92400e);
    box-shadow: var(--shadow);
}

.poster-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.2s ease;
}

.poster.is-fallback .poster-image,
.poster-image.is-hidden {
    display: none;
}

.poster-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 22px;
    text-align: center;
    color: rgba(255, 255, 255, 0.90);
    background:
        radial-gradient(circle at 22% 18%, rgba(245, 158, 11, 0.70), transparent 30%),
        radial-gradient(circle at 80% 78%, rgba(234, 88, 12, 0.65), transparent 34%),
        linear-gradient(135deg, #111827 0%, #451a03 100%);
    z-index: 0;
}

.poster-placeholder span {
    position: relative;
    z-index: 1;
    font-size: clamp(24px, 5vw, 48px);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.poster:not(.is-fallback) .poster-placeholder {
    z-index: -1;
}

.poster-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(17, 24, 39, 0.70);
    font-size: 13px;
    font-weight: 800;
}

.poster-hero {
    height: 490px;
    border-radius: 32px;
    box-shadow: var(--shadow-strong);
}

.poster-card {
    height: 280px;
}

.poster-compact {
    width: 112px;
    min-width: 112px;
    height: 146px;
}

.poster-rank {
    width: 86px;
    min-width: 86px;
    height: 112px;
}

.poster-detail {
    width: 100%;
    height: 430px;
}

.stats-section {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

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

.stats-grid div {
    text-align: center;
}

.stats-grid strong {
    display: block;
    color: var(--gray-900);
    font-size: 34px;
    line-height: 1;
}

.stats-grid span {
    display: block;
    margin-top: 8px;
    color: var(--gray-600);
}

.content-section {
    padding: 76px 0;
    background: var(--white);
}

.section-soft {
    background: linear-gradient(135deg, var(--gray-50), #fffbeb);
}

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

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

.section-heading p {
    margin: 10px 0 0;
    color: var(--gray-600);
}

.section-more {
    color: var(--amber);
    font-weight: 900;
}

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

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.movie-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.movie-card:hover .poster-image {
    transform: scale(1.08);
}

.movie-card-link {
    display: block;
    height: 100%;
}

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

.movie-meta-line,
.movie-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--gray-500);
    font-size: 13px;
}

.movie-meta-line span {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--gray-100);
}

.movie-meta-line strong {
    color: var(--amber);
}

.movie-card h3,
.compact-card h3,
.rank-row h3 {
    margin: 12px 0 8px;
    color: var(--gray-900);
    line-height: 1.25;
}

.movie-card p,
.compact-card p,
.rank-row p {
    margin: 0;
    color: var(--gray-600);
    font-size: 14px;
}

.movie-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.movie-tags span,
.tag-list span {
    padding: 4px 9px;
    border-radius: 999px;
    background: #fff7ed;
    color: var(--amber-dark);
    font-size: 12px;
    font-weight: 700;
}

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

.category-card a {
    min-height: 235px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #ffffff, #fffbeb);
    border: 1px solid rgba(217, 119, 6, 0.16);
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card a:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

.category-count {
    width: max-content;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.12);
    color: var(--amber-dark);
    font-size: 13px;
    font-weight: 900;
}

.category-card h3 {
    margin: 18px 0 8px;
    font-size: 23px;
}

.category-card p {
    margin: 0;
    color: var(--gray-600);
}

.category-samples {
    display: grid;
    gap: 6px;
    margin-top: 18px;
    font-size: 13px;
    color: var(--amber-dark);
}

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

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

.compact-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.compact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.compact-card a {
    display: flex;
    gap: 14px;
    padding: 14px;
    align-items: center;
}

.compact-card h3 {
    margin-top: 0;
    font-size: 17px;
}

.compact-card span,
.rank-row span {
    display: inline-block;
    margin-top: 8px;
    color: var(--gray-500);
    font-size: 13px;
}

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

.page-hero {
    padding: 74px 0;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

.compact-page-hero {
    padding: 60px 0;
}

.page-hero h1 {
    margin: 14px 0 12px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.90);
    font-size: 18px;
}

.page-hero .eyebrow {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.18);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 700;
}

.detail-breadcrumb {
    color: var(--gray-600);
}

.detail-breadcrumb a:hover,
.breadcrumb a:hover {
    color: var(--amber-soft);
}

.detail-breadcrumb a:hover {
    color: var(--amber);
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 16px;
    padding: 20px;
    margin-bottom: 18px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--gray-700);
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 12px 14px;
    color: var(--gray-900);
    background: var(--gray-50);
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

.result-count {
    color: var(--gray-600);
    font-weight: 800;
    margin: 0 0 22px;
}

.category-page-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 28px;
}

.category-sidebar {
    position: sticky;
    top: 96px;
    height: max-content;
    padding: 22px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow);
}

.category-sidebar h2 {
    margin: 0 0 14px;
}

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

.category-side-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--gray-700);
    background: var(--gray-50);
    font-weight: 800;
}

.category-side-links a.is-active,
.category-side-links a:hover {
    color: var(--white);
    background: var(--amber);
}

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

.category-result-head h2 {
    margin: 0;
    font-size: 30px;
}

.category-result-head p {
    margin: 0;
    color: var(--gray-600);
}

.category-overview-list {
    display: grid;
    gap: 28px;
}

.category-overview-block {
    padding: 24px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow);
}

.category-overview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.category-overview-head span {
    color: var(--amber);
    font-weight: 900;
}

.category-overview-head h2 {
    margin: 4px 0 6px;
    font-size: 30px;
}

.category-overview-head p {
    margin: 0;
    color: var(--gray-600);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 92px;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow);
}

.rank-number {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white) !important;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    font-size: 18px !important;
    font-weight: 900;
}

.rank-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rank-score {
    color: var(--amber);
    text-align: right;
}

.detail-section {
    background: linear-gradient(135deg, var(--gray-50), #fff7ed);
}

.detail-card {
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
    gap: 32px;
    padding: 28px;
    border-radius: 30px;
    background: var(--white);
    box-shadow: var(--shadow-strong);
}

.detail-media {
    display: grid;
    gap: 18px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: var(--gray-950);
    min-height: 310px;
}

.video-element {
    width: 100%;
    height: 310px;
    background: var(--gray-950);
    object-fit: contain;
}

.player-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--amber);
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: background 0.2s ease;
}

.player-play span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    font-size: 34px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.player-shell.is-playing .player-play {
    display: none;
}

.category-pill {
    display: inline-flex;
    width: max-content;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--amber-dark);
    background: #fff7ed;
    font-weight: 900;
}

.detail-info h1 {
    margin: 18px 0 12px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.08;
}

.rating-line {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    color: var(--gray-600);
    margin-bottom: 22px;
}

.stars {
    color: #f59e0b;
    letter-spacing: 2px;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 20px;
}

.meta-grid div {
    padding: 14px;
    border-radius: 16px;
    background: var(--gray-50);
}

.meta-grid dt {
    color: var(--gray-500);
    font-size: 13px;
}

.meta-grid dd {
    margin: 4px 0 0;
    color: var(--gray-900);
    font-weight: 900;
}

.one-line {
    color: var(--gray-700);
    font-size: 18px;
}

.text-panel {
    margin-top: 24px;
    padding: 28px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow);
}

.text-panel h2 {
    margin: 0 0 12px;
    font-size: 26px;
}

.text-panel p {
    margin: 0;
    color: var(--gray-700);
}

.review-panel {
    border-left: 5px solid var(--amber);
    background: #fffbeb;
}

.inner-heading {
    margin-bottom: 20px;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.8fr;
    gap: 34px;
    padding: 48px 0;
}

.footer-brand {
    color: var(--white);
}

.site-footer p {
    max-width: 420px;
    color: #9ca3af;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: var(--white);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
}

.footer-links a {
    color: #d1d5db;
}

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

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

@media (max-width: 1100px) {
    .movie-grid,
    .feature-grid,
    .compact-grid,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .poster-hero {
        height: 420px;
    }
}

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

    .mobile-menu-button {
        display: block;
    }

    .hero-section {
        min-height: auto;
        padding-top: 105px;
    }

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

    .stats-grid,
    .movie-grid,
    .feature-grid,
    .compact-grid,
    .category-grid,
    .footer-grid,
    .filter-panel,
    .category-page-layout {
        grid-template-columns: 1fr 1fr;
    }

    .section-heading,
    .category-overview-head,
    .category-result-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-sidebar {
        position: static;
    }

    .rank-row {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .rank-score {
        grid-column: 2;
        text-align: left;
    }
}

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

    .brand {
        font-size: 18px;
    }

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

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

    .poster-hero,
    .poster-detail {
        height: 340px;
    }

    .stats-grid,
    .movie-grid,
    .feature-grid,
    .compact-grid,
    .category-grid,
    .footer-grid,
    .filter-panel,
    .category-page-layout,
    .meta-grid {
        grid-template-columns: 1fr;
    }

    .compact-card a,
    .rank-main {
        align-items: flex-start;
    }

    .detail-card {
        padding: 18px;
    }

    .content-section {
        padding: 52px 0;
    }
}
