:root {
    color-scheme: light;
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --amber-500: #f59e0b;
    --yellow-500: #eab308;
    --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-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 8px 22px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 18px 50px rgba(15, 23, 42, 0.18);
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--gray-800);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 260px, #f9fafb 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: var(--white);
    background: linear-gradient(90deg, var(--orange-500), var(--amber-500), var(--yellow-500));
    box-shadow: var(--shadow-md);
}

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

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

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--orange-600);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}

.brand-text {
    font-size: 1.32rem;
}

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

.nav-link,
.mobile-nav-link {
    font-weight: 700;
    transition: color 180ms ease, background 180ms ease, opacity 180ms ease;
}

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

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 0;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border-radius: 12px;
}

.menu-button span {
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}

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

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

.mobile-nav-link {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    background: rgba(255, 255, 255, 0.18);
}

.hero {
    position: relative;
    height: clamp(520px, 72vh, 720px);
    overflow: hidden;
    background: var(--gray-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1000ms ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.58) 50%, rgba(0, 0, 0, 0.78));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 100%;
    color: var(--white);
}

.hero-copy {
    max-width: 820px;
    padding-top: 40px;
    text-align: center;
    margin: 0 auto;
}

.hero-kicker,
.eyebrow {
    margin: 0 0 12px;
    color: var(--orange-100);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 20px;
    font-size: clamp(2.7rem, 7vw, 5.4rem);
    line-height: 1.04;
    font-weight: 900;
    text-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.hero p {
    margin: 0 auto 22px;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions,
.page-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 26px;
}

.primary-button,
.ghost-button,
.section-link,
.search-row button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.primary-button,
.search-row button {
    color: var(--white);
    border: 0;
    background: linear-gradient(90deg, var(--orange-500), var(--amber-500));
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

.primary-button:hover,
.search-row button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(249, 115, 22, 0.36);
}

.ghost-button,
.section-link {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

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

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

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

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

.home-search-wrap {
    position: relative;
    z-index: 4;
    margin-top: -54px;
}

.search-panel {
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(249, 115, 22, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(14px);
}

.search-label {
    display: block;
    margin: 0 0 10px;
    color: var(--orange-600);
    font-weight: 900;
}

.search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.search-row input {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    color: var(--gray-800);
    background: var(--gray-50);
    outline: none;
    transition: border 180ms ease, box-shadow 180ms ease;
}

.search-row input:focus {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.filter-chip {
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    background: var(--white);
    border-radius: 999px;
    font-weight: 700;
    transition: color 180ms ease, background 180ms ease, border 180ms ease;
}

.filter-chip:hover,
.filter-chip.is-active {
    color: var(--white);
    border-color: var(--orange-500);
    background: var(--orange-500);
}

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

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

.section-heading h2,
.page-hero h1,
.story-card h2,
.related-panel h2 {
    margin: 0;
    color: var(--gray-900);
    font-weight: 900;
}

.section-heading h2 {
    font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.section-heading .eyebrow,
.page-hero .eyebrow,
.detail-copy .eyebrow {
    color: var(--orange-600);
}

.section-link {
    color: var(--orange-600);
    border-color: rgba(249, 115, 22, 0.35);
    background: var(--orange-50);
}

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

.movie-card {
    overflow: hidden;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

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

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--gray-200);
}

.movie-poster img,
.detail-poster img,
.ranking-cover img,
.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-poster img {
    transition: transform 350ms ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: opacity 220ms ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: var(--orange-600);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 220ms ease, transform 220ms ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.poster-badge {
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 4px 8px;
    color: var(--white);
    background: rgba(249, 115, 22, 0.9);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

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

.movie-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--gray-900);
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1.35;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.movie-title:hover,
.ranking-title:hover,
.category-preview a:hover {
    color: var(--orange-600);
}

.movie-meta,
.movie-one-line,
.ranking-body p,
.category-card p,
.page-hero p,
.story-card p,
.site-footer p {
    color: var(--gray-600);
}

.movie-meta {
    display: -webkit-box;
    overflow: hidden;
    margin: 6px 0;
    font-size: 0.85rem;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.movie-one-line {
    display: -webkit-box;
    overflow: hidden;
    min-height: 44px;
    margin: 0 0 10px;
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    color: var(--orange-700);
    background: var(--orange-50);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.hero-tags {
    justify-content: center;
}

.hero-tags span {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

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

.category-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(249, 115, 22, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

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

.category-card-main {
    display: block;
    padding: 24px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.10), rgba(245, 158, 11, 0.10));
}

.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-500), var(--amber-500));
    border-radius: 999px;
}

.category-card h2 {
    margin: 14px 0 8px;
    color: var(--gray-900);
    font-size: 1.25rem;
}

.category-preview {
    display: grid;
    gap: 9px;
    padding: 18px 24px 24px;
}

.category-preview a {
    display: -webkit-box;
    overflow: hidden;
    color: var(--gray-700);
    font-weight: 700;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: 34px;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 54px 90px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 14px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.ranking-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.ranking-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-500), var(--amber-500));
    border-radius: 999px;
    font-weight: 900;
}

.ranking-cover {
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--gray-200);
    border-radius: 12px;
}

.ranking-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--gray-900);
    font-size: 1.05rem;
    font-weight: 900;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.ranking-body p {
    display: -webkit-box;
    overflow: hidden;
    margin: 5px 0 6px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ranking-body span {
    color: var(--orange-600);
    font-size: 0.86rem;
    font-weight: 800;
}

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

.movie-card-compact {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: stretch;
}

.movie-card-compact .movie-poster {
    height: 100%;
    min-height: 138px;
}

.movie-card-compact .movie-card-body {
    min-width: 0;
}

.movie-card-compact .poster-play {
    width: 38px;
    height: 38px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 84px 0;
    background:
        radial-gradient(circle at top left, rgba(255, 237, 213, 0.8), transparent 360px),
        linear-gradient(135deg, #fff7ed 0%, #ffffff 50%, #f3f4f6 100%);
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 360px;
    height: 360px;
    background: rgba(249, 115, 22, 0.12);
    border-radius: 999px;
}

.page-hero .container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.page-hero h1 {
    font-size: clamp(2.1rem, 5vw, 4rem);
    line-height: 1.12;
}

.page-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    font-size: 1.08rem;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: var(--white);
    background: var(--gray-900);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.55;
    filter: blur(1px);
}

.detail-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.70), rgba(17, 24, 39, 0.90)),
        linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.95));
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.breadcrumb a:hover {
    color: var(--orange-100);
}

.detail-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: center;
    gap: 42px;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border: 6px solid rgba(255, 255, 255, 0.22);
    border-radius: 26px;
    box-shadow: var(--shadow-lg);
}

.detail-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: 1.08;
    font-weight: 900;
}

.detail-one-line {
    max-width: 800px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.18rem;
}

.detail-tags span {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.14);
}

.detail-copy .primary-button {
    margin-top: 28px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
    padding: 54px 0 72px;
}

.detail-main {
    display: grid;
    gap: 24px;
}

.player-card,
.story-card,
.related-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.player-card {
    overflow: hidden;
}

.player-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #050505;
}

.video-player {
    width: 100%;
    height: 100%;
    background: #050505;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.58));
    font-weight: 900;
    transition: opacity 220ms ease, visibility 220ms ease;
}

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

.play-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    color: var(--orange-600);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    box-shadow: var(--shadow-lg);
}

.story-card,
.related-panel {
    padding: 26px;
}

.story-card h2,
.related-panel h2 {
    margin-bottom: 12px;
    font-size: 1.35rem;
}

.story-card p {
    margin: 0;
    font-size: 1.02rem;
}

.related-panel {
    align-self: start;
    position: sticky;
    top: 88px;
}

.empty-state {
    margin: 26px 0 0;
    padding: 20px;
    text-align: center;
    color: var(--gray-600);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.site-footer {
    padding: 42px 0;
    color: rgba(255, 255, 255, 0.82);
    background: var(--gray-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 220px 260px;
    gap: 32px;
}

.footer-brand {
    color: var(--white);
    font-size: 1.28rem;
}

.site-footer p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.72);
}

.site-footer h2 {
    margin: 0 0 12px;
    color: var(--white);
    font-size: 1rem;
}

.site-footer a,
.site-footer span {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.74);
}

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

[hidden] {
    display: none !important;
}

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

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

    .menu-button {
        display: inline-flex;
    }

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

    .category-grid,
    .split-section,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .related-panel {
        position: static;
    }
}

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

    .brand-text {
        font-size: 1.05rem;
    }

    .hero {
        height: 580px;
    }

    .hero-copy {
        text-align: left;
    }

    .hero-tags,
    .hero-actions,
    .page-actions {
        justify-content: flex-start;
    }

    .search-row {
        grid-template-columns: 1fr;
    }

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

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

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

    .category-grid {
        gap: 16px;
    }

    .ranking-item {
        grid-template-columns: 44px 72px minmax(0, 1fr);
        gap: 12px;
    }

    .ranking-number {
        width: 38px;
        height: 38px;
    }

    .detail-hero {
        min-height: auto;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .detail-poster {
        width: 210px;
    }

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

    .story-card,
    .related-panel {
        padding: 20px;
    }
}

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

    .movie-card:not(.movie-card-compact) {
        display: grid;
        grid-template-columns: 116px minmax(0, 1fr);
    }

    .movie-card:not(.movie-card-compact) .movie-poster {
        height: 100%;
    }

    .movie-card:not(.movie-card-compact) .movie-one-line {
        -webkit-line-clamp: 2;
    }
}
