:root {
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-900: #78350f;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow: 0 12px 30px rgba(17, 24, 39, 0.1);
    --shadow-lg: 0 24px 60px rgba(17, 24, 39, 0.18);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --gradient-main: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
    --gradient-soft: linear-gradient(135deg, #fff7ed 0%, #fffbeb 48%, #ffffff 100%);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: var(--gray-800);
    background: var(--gradient-soft);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96));
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 24px rgba(120, 53, 15, 0.08);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: inline-grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--gradient-main);
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.35);
}

.brand-text strong,
.footer-brand strong {
    display: block;
    font-size: 24px;
    line-height: 1;
    color: transparent;
    background: linear-gradient(90deg, var(--orange-600), var(--amber-600));
    -webkit-background-clip: text;
    background-clip: text;
}

.brand-text em,
.footer-brand p {
    display: block;
    margin: 4px 0 0;
    color: var(--gray-600);
    font-size: 12px;
    font-style: normal;
}

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

.nav-link {
    color: var(--gray-700);
    font-weight: 700;
    transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--orange-600);
}

.header-search {
    display: flex;
    align-items: center;
    border: 1px solid #fed7aa;
    background: var(--white);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.08);
}

.header-search input {
    width: 220px;
    border: 0;
    outline: none;
    padding: 10px 14px 10px 18px;
    color: var(--gray-700);
    background: transparent;
}

.header-search button {
    border: 0;
    color: var(--white);
    padding: 10px 18px;
    background: var(--gradient-main);
}

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

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--orange-600);
}

.mobile-nav {
    display: none;
    padding: 0 16px 18px;
}

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

.mobile-nav a {
    font-weight: 700;
    color: var(--gray-700);
}

.mobile-nav form {
    display: flex;
    gap: 8px;
}

.mobile-nav input {
    flex: 1;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 10px 14px;
}

.mobile-nav button {
    border: 0;
    border-radius: 999px;
    color: var(--white);
    padding: 10px 16px;
    background: var(--gradient-main);
}

.hero-section {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(120deg, #fb923c 0%, #f59e0b 45%, #ea580c 100%);
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    filter: blur(1px);
    animation: pulseGlow 3s ease-in-out infinite;
}

.hero-glow-a {
    top: 80px;
    left: 8%;
    width: 180px;
    height: 180px;
}

.hero-glow-b {
    right: 8%;
    bottom: 80px;
    width: 260px;
    height: 260px;
    animation-delay: 0.8s;
}

.hero-container {
    position: relative;
    min-height: 640px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    align-items: center;
    gap: 48px;
    opacity: 0;
    transform: translateY(28px);
    pointer-events: none;
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 14px;
    font-weight: 700;
}

.hero-copy h1 {
    max-width: 760px;
    margin: 0 0 22px;
    font-size: clamp(40px, 6vw, 74px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 720px;
    margin: 0 0 28px;
    color: #fff7ed;
    font-size: clamp(18px, 2vw, 24px);
}

.hero-tags,
.tag-row,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-row span,
.tag-cloud a {
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--orange-600);
    background: var(--orange-50);
}

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

.primary-button,
.ghost-button,
.section-more,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
    color: var(--white);
    border: 0;
    padding: 13px 24px;
    background: var(--gradient-main);
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.32);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.primary-button.full {
    width: 100%;
}

.ghost-button {
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.7);
    padding: 11px 22px;
}

.ghost-button:hover {
    color: var(--orange-600);
    background: var(--white);
}

.hero-poster {
    position: relative;
    width: min(380px, 90%);
    justify-self: end;
    border-radius: 34px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: linear-gradient(135deg, #fed7aa, #f97316);
}

.hero-poster span {
    position: absolute;
    right: 16px;
    top: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--white);
    font-weight: 800;
    background: rgba(17, 24, 39, 0.75);
}

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

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

.hero-dot.active {
    width: 36px;
    background: var(--white);
}

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

.feature-card,
.movie-card,
.filter-panel,
.article-card,
.side-card,
.category-card-large,
.category-tile {
    background: var(--white);
    box-shadow: var(--shadow);
}

.feature-card {
    border-radius: var(--radius-xl);
    padding: 26px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover,
.movie-card:hover,
.category-card-large:hover,
.category-tile:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card span {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 50%;
    color: var(--white);
    font-weight: 900;
    background: var(--gradient-main);
}

.feature-card h3 {
    margin: 0 0 6px;
    font-size: 21px;
}

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

.soft-section,
.page-hero {
    background: linear-gradient(90deg, var(--amber-100), var(--orange-100));
}

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

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

.section-heading h2,
.light-heading h2,
.callout-section h2,
.filter-panel h2 {
    margin: 0 0 8px;
    color: var(--gray-800);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
}

.section-heading p,
.light-heading p,
.callout-section p,
.filter-panel p {
    margin: 0;
    color: var(--gray-600);
}

.section-more,
.text-link {
    color: var(--orange-600);
}

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

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

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

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-width: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #f97316);
}

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

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

.poster-badge,
.poster-score,
.rank-number {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
}

.poster-badge {
    top: 10px;
    left: 10px;
    padding: 5px 9px;
    background: var(--gradient-main);
}

.poster-score {
    right: 10px;
    bottom: 10px;
    padding: 5px 9px;
    background: rgba(17, 24, 39, 0.72);
}

.rank-number {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.movie-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 9px;
    padding: 15px;
}

.movie-card-body h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-body p {
    margin: 0;
    color: var(--gray-600);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta,
.detail-quick-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--gray-500);
    font-size: 13px;
}

.compact-card .movie-card-body h3 {
    font-size: 16px;
}

.orange-section {
    padding: 64px 0;
    background: linear-gradient(135deg, var(--orange-500), var(--amber-600));
}

.light-heading {
    margin-bottom: 30px;
    text-align: center;
    color: var(--white);
}

.light-heading h2,
.light-heading p {
    color: var(--white);
}

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

.category-tile {
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile h3 {
    margin: 0 0 8px;
    color: var(--orange-600);
    font-size: 22px;
}

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

.callout-section {
    padding: 74px 0;
    text-align: center;
}

.callout-section p {
    max-width: 820px;
    margin: 0 auto 28px;
    font-size: 18px;
}

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

.page-hero .eyebrow {
    color: var(--white);
}

.page-hero h1 {
    max-width: 820px;
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.1;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: var(--amber-50);
    font-size: 18px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1.8fr);
    gap: 24px;
    align-items: end;
    border-radius: var(--radius-xl);
    padding: 26px;
    margin-bottom: 30px;
}

.filter-controls {
    display: grid;
    grid-template-columns: repeat(4, minmax(130px, 1fr));
    gap: 14px;
}

.filter-controls label {
    display: grid;
    gap: 6px;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 700;
}

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

.filter-controls input:focus,
.filter-controls select:focus {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.empty-state {
    display: none;
    margin: 28px 0;
    border-radius: var(--radius-lg);
    padding: 38px;
    text-align: center;
    color: var(--gray-600);
    background: var(--white);
    box-shadow: var(--shadow);
}

.empty-state.show {
    display: block;
}

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

.category-card-large {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 22px;
    align-items: center;
    border-radius: var(--radius-xl);
    overflow: hidden;
    padding: 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-poster-strip img {
    aspect-ratio: 3 / 4;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, #fed7aa, #f97316);
}

.category-card-large h2 {
    margin: 0 0 8px;
    color: var(--gray-800);
}

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

.category-card-large span {
    color: var(--orange-600);
    font-weight: 800;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: #111827;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.28;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px) saturate(1.15);
    transform: scale(1.08);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.62));
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    padding: 54px 0 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
    color: var(--amber-100);
    font-size: 14px;
}

.detail-title-block h1 {
    max-width: 920px;
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
}

.detail-title-block p {
    max-width: 860px;
    margin: 0 0 20px;
    color: #fffbeb;
    font-size: 19px;
}

.detail-quick-meta span {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 6px 12px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(280px, 0.8fr);
    gap: 28px;
    padding: 48px 0 12px;
}

.player-card,
.article-card,
.side-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.player-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle, rgba(17, 24, 39, 0.16), rgba(17, 24, 39, 0.72));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-start span {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    border-radius: 50%;
    color: var(--orange-600);
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.player-start strong {
    font-size: 18px;
}

.player-wrap.is-playing .player-start {
    opacity: 0;
    visibility: hidden;
}

.article-card,
.side-card {
    padding: 28px;
    margin-bottom: 22px;
    border-radius: var(--radius-xl);
}

.article-card h2 {
    margin: 0 0 16px;
    font-size: 27px;
}

.article-card p {
    margin: 0 0 14px;
    color: var(--gray-700);
    font-size: 17px;
}

.review-card {
    background: linear-gradient(135deg, var(--amber-50), var(--orange-50));
}

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

.detail-poster {
    width: 100%;
    aspect-ratio: 3 / 4;
    margin-bottom: 16px;
    border-radius: 18px;
    object-fit: cover;
    background: linear-gradient(135deg, #fed7aa, #f97316);
}

.info-table {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    padding-top: 18px;
    border-top: 1px solid var(--gray-200);
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--gray-600);
    font-size: 14px;
}

.info-row strong {
    color: var(--gray-800);
    text-align: right;
}

.prose-card {
    max-width: 840px;
    margin: 0 auto;
}

.prose-card .text-link {
    margin-right: 16px;
}

.narrow-section {
    padding-top: 52px;
}

.site-footer {
    color: var(--amber-50);
    background: linear-gradient(135deg, var(--amber-900), #7c2d12);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 34px;
    padding: 48px 0;
}

.footer-brand .brand-mark {
    width: 42px;
    height: 42px;
    color: var(--orange-600);
    background: var(--amber-50);
}

.footer-brand strong,
.footer-brand p {
    color: var(--amber-50);
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.footer-copy {
    max-width: 360px;
    color: var(--amber-100);
}

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

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li {
    margin: 8px 0;
}

.site-footer a {
    color: var(--amber-100);
}

.site-footer a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding: 18px 0;
    text-align: center;
    color: var(--amber-100);
}

.footer-bottom p {
    margin: 0;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.22;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.36;
    }
}

@media (max-width: 1080px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

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

    .hero-slide,
    .detail-layout,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        justify-self: start;
        width: min(300px, 75%);
    }

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

    .movie-list-grid,
    .feature-grid,
    .category-grid,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .hero-section,
    .hero-container {
        min-height: 720px;
    }

    .hero-slide {
        gap: 26px;
        align-content: center;
    }

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

    .hero-actions {
        gap: 10px;
    }

    .primary-button,
    .ghost-button {
        width: 100%;
    }

    .hero-dots {
        bottom: 24px;
    }

    .feature-grid,
    .movie-grid.six-col,
    .movie-grid.four-col,
    .movie-grid.three-col,
    .movie-list-grid,
    .category-grid,
    .category-large-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

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

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

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

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

    .article-card,
    .side-card {
        padding: 20px;
    }

    .movie-card-body h3 {
        font-size: 15px;
    }

    .movie-card-body p,
    .tag-row {
        display: none;
    }
}

@media (max-width: 460px) {
    .feature-grid,
    .movie-grid.six-col,
    .movie-grid.four-col,
    .movie-grid.three-col,
    .movie-list-grid,
    .category-grid,
    .category-large-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .brand-text strong {
        font-size: 20px;
    }
}
