:root {
    --amber-50: #fff7ed;
    --amber-100: #ffedd5;
    --amber-200: #fed7aa;
    --amber-300: #fdba74;
    --amber-400: #fb923c;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --text: #2b1705;
    --muted: #7c4a13;
    --panel: rgba(255, 255, 255, 0.88);
    --border: rgba(146, 64, 14, 0.16);
    --shadow: 0 24px 60px rgba(120, 53, 15, 0.16);
    --radius: 24px;
    --max: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(251, 146, 60, 0.26), transparent 32rem),
        linear-gradient(180deg, #fff7ed 0%, #fffbeb 48%, #fff7ed 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #fff;
    background: linear-gradient(90deg, var(--amber-700), var(--amber-500));
    box-shadow: 0 14px 40px rgba(146, 64, 14, 0.25);
}

.header-inner {
    width: min(var(--max), calc(100% - 32px));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: var(--amber-700);
    background: #fff;
    box-shadow: inset 0 0 0 4px rgba(245, 158, 11, 0.12);
    font-size: 18px;
}

.brand-text {
    display: grid;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 22px;
    letter-spacing: 0.02em;
}

.brand-text em {
    font-style: normal;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.78);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
    font-weight: 700;
}

.desktop-nav > a,
.nav-more > button {
    color: rgba(255, 255, 255, 0.92);
    background: transparent;
    border: 0;
    font: inherit;
    cursor: pointer;
    padding: 8px 0;
}

.desktop-nav > a:hover,
.nav-more > button:hover {
    color: #fff7ed;
}

.nav-more {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: 42px;
    left: 0;
    width: 172px;
    display: grid;
    gap: 2px;
    padding: 10px;
    color: var(--text);
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: 0.2s ease;
}

.nav-more:hover .nav-dropdown,
.nav-more:focus-within .nav-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-dropdown a {
    padding: 9px 12px;
    border-radius: 10px;
}

.nav-dropdown a:hover {
    background: var(--amber-100);
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 280px;
}

.header-search input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 10px 74px 10px 16px;
    color: #fff;
    outline: 0;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.76);
}

.header-search button {
    position: absolute;
    right: 5px;
    border: 0;
    border-radius: 999px;
    padding: 7px 14px;
    color: var(--amber-800);
    background: #fff;
    font-weight: 800;
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #fff;
}

.mobile-nav {
    display: none;
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

.mobile-nav a {
    display: block;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 700;
}

.mobile-nav.is-open {
    display: block;
}

main {
    min-height: 70vh;
}

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, var(--amber-800), var(--amber-500));
}

.hero-track {
    position: relative;
    min-height: 600px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    background-size: cover;
    background-position: center;
    transition: opacity 0.65s ease, visibility 0.65s ease;
}

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

.hero-content {
    width: min(var(--max), calc(100% - 32px));
    min-height: 600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.04fr 0.8fr;
    gap: 46px;
    align-items: center;
    padding: 56px 0 72px;
}

.hero-copy {
    max-width: 690px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 8px 14px;
    color: #78350f;
    background: rgba(255, 255, 255, 0.84);
    border-radius: 999px;
    font-weight: 900;
    font-size: 14px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.05em;
    text-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

.hero p {
    max-width: 640px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.24);
}

.button-primary {
    color: var(--amber-800);
    background: #fff;
}

.button-primary:hover {
    background: var(--amber-100);
}

.hero-panel {
    align-self: stretch;
    display: grid;
    align-content: end;
}

.hero-card {
    overflow: hidden;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(14px);
}

.hero-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: linear-gradient(135deg, var(--amber-700), var(--amber-300));
}

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

.hero-card-body strong {
    display: block;
    font-size: 22px;
    line-height: 1.25;
}

.hero-card-body span {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.78);
}

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

.hero-dot {
    width: 32px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

.hero-dot.is-active {
    background: #fff;
}

.section,
.page-hero,
.detail-layout,
.player-section,
.related-section {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
}

.section {
    padding: 54px 0 10px;
}

.page-hero {
    padding: 54px 0 22px;
}

.page-hero h1,
.section-heading h2,
.detail-title h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.page-hero p,
.section-heading p,
.detail-title p {
    max-width: 780px;
    margin: 12px 0 0;
    color: var(--muted);
}

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

.section-heading a {
    color: var(--amber-700);
    font-weight: 900;
}

.search-panel {
    display: grid;
    gap: 14px;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.search-panel input,
.search-panel select {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0 16px;
    color: var(--text);
    outline: 0;
    background: #fff;
    font: inherit;
}

.search-panel input:focus,
.search-panel select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

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

.filter-chip {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 13px;
    background: #fff;
    color: var(--muted);
    font-weight: 800;
    cursor: pointer;
}

.filter-chip.is-active {
    color: #fff;
    background: var(--amber-600);
    border-color: var(--amber-600);
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    box-shadow: 0 16px 36px rgba(146, 64, 14, 0.11);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(146, 64, 14, 0.2);
}

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-700), var(--amber-300));
}

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

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

.movie-poster img.image-missing,
.hero-card img.image-missing,
.category-covers img.image-missing,
.detail-poster img.image-missing {
    opacity: 0;
}

.play-cue {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--amber-800);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.rank-mark {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    min-width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, var(--amber-500));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.movie-info {
    padding: 16px;
}

.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.movie-meta span,
.detail-meta span {
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--amber-100);
}

.movie-info h3 {
    margin: 12px 0 8px;
    font-size: 18px;
    line-height: 1.3;
}

.movie-info p {
    margin: 0;
    color: #6f4513;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--amber-800);
    background: #fffbeb;
    font-size: 12px;
    font-weight: 800;
}

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

.category-tile a {
    min-height: 260px;
    display: grid;
    align-content: end;
    gap: 12px;
    padding: 18px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 247, 237, 0.95));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.category-tile a:hover {
    transform: translateY(-4px);
}

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

.category-covers img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--amber-700), var(--amber-300));
}

.category-tile strong {
    font-size: 24px;
}

.category-tile em {
    color: var(--muted);
    font-style: normal;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 58px 90px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: 0 12px 34px rgba(146, 64, 14, 0.1);
}

.rank-row > b {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--amber-700), var(--amber-400));
}

.rank-row img {
    width: 90px;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--amber-700), var(--amber-300));
}

.rank-row h3 {
    margin: 0 0 6px;
}

.rank-row p {
    margin: 0;
    color: var(--muted);
}

.rank-score {
    color: var(--amber-700);
    font-weight: 900;
}

.breadcrumb {
    width: min(var(--max), calc(100% - 32px));
    margin: 26px auto 0;
    color: var(--muted);
    font-weight: 800;
    font-size: 14px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 34px;
    padding: 32px 0 26px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, var(--amber-700), var(--amber-300));
}

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

.detail-title {
    display: grid;
    align-content: center;
}

.detail-title .tag-row {
    margin-top: 18px;
}

.synopsis {
    margin-top: 24px;
    padding: 22px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: 0 16px 36px rgba(146, 64, 14, 0.1);
}

.synopsis h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.synopsis p {
    margin: 0 0 12px;
    color: #5f3510;
}

.player-section {
    padding: 20px 0 30px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #140b04;
    box-shadow: 0 30px 80px rgba(61, 26, 3, 0.35);
}

.player-box video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #000;
    cursor: pointer;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, rgba(20, 11, 4, 0.2), rgba(120, 53, 15, 0.54));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-button {
    width: 92px;
    height: 92px;
    border: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: var(--amber-800);
    background: #fff;
    font-size: 30px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.32);
    cursor: pointer;
}

.player-caption {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 2px 0;
    color: var(--muted);
    font-weight: 800;
}

.related-section {
    padding: 20px 0 64px;
}

.site-footer {
    color: #fff7ed;
    background: linear-gradient(180deg, var(--amber-800), var(--amber-900));
    margin-top: 42px;
}

.footer-grid {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0 30px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px;
}

.footer-grid p {
    color: rgba(255, 247, 237, 0.74);
}

.footer-grid h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

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

.footer-links a {
    color: rgba(255, 247, 237, 0.78);
}

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

.footer-bottom {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 247, 237, 0.7);
    text-align: center;
}

.empty-state {
    display: none;
    padding: 24px;
    border-radius: var(--radius);
    color: var(--muted);
    background: var(--panel);
    border: 1px solid var(--border);
}

.empty-state.is-visible {
    display: block;
}

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

    .mobile-toggle {
        display: block;
    }

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

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

    .hero-panel {
        max-width: 420px;
    }
}

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

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

    .brand-icon {
        width: 40px;
        height: 40px;
    }

    .hero-track,
    .hero-content {
        min-height: 680px;
    }

    .hero-content {
        padding: 34px 0 70px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 16px;
    }

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

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

    .rank-row {
        grid-template-columns: 44px 72px 1fr;
    }

    .rank-row img {
        width: 72px;
    }

    .rank-score {
        grid-column: 3;
    }

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

    .detail-poster {
        max-width: 300px;
    }

    .player-button {
        width: 72px;
        height: 72px;
        font-size: 24px;
    }
}
