:root {
    --amber-50: #fff8eb;
    --amber-100: #ffedd0;
    --amber-200: #fed7aa;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --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;
    --black: #050505;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.13);
    --shadow-soft: 0 12px 30px rgba(217, 119, 6, 0.14);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--gray-800);
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background:
        radial-gradient(circle at 10% 10%, rgba(253, 186, 116, 0.35), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(250, 204, 21, 0.28), transparent 28%),
        linear-gradient(135deg, #fff7ed 0%, #fffbeb 52%, #fff7ed 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.container {
    width: min(var(--max-width), calc(100% - 32px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(251, 191, 36, 0.22);
    backdrop-filter: blur(16px);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.1);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
}

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

.brand-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 16px;
    font-size: 25px;
    background: linear-gradient(135deg, #facc15, #f59e0b, #f97316);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.08) rotate(-4deg);
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-title {
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    background: linear-gradient(90deg, #d97706, #ea580c, #ca8a04);
    -webkit-background-clip: text;
    background-clip: text;
}

.brand-subtitle {
    color: var(--gray-600);
    font-size: 12px;
}

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

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

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

.nav-link::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 3px;
    content: "";
    background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
    border-radius: 999px;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    color: var(--gray-800);
    background: var(--amber-100);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border-top: 1px solid var(--amber-200);
}

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

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

.mobile-nav .nav-link:hover {
    background: var(--amber-100);
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero-stage {
    position: relative;
    height: min(72vh, 720px);
    min-height: 520px;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.85s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 5s ease;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.58) 45%, rgba(0, 0, 0, 0.12) 100%),
        radial-gradient(circle at 25% 28%, rgba(245, 158, 11, 0.24), transparent 36%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
}

.hero-copy {
    width: min(680px, 100%);
    color: var(--white);
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 10px 26px rgba(249, 115, 22, 0.26);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 640px;
    margin: 22px 0 0;
    color: #e5e7eb;
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.8;
}

.hero-meta,
.meta-row,
.stat-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.hero-meta span,
.meta-row span,
.stat-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: inherit;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 14px 32px rgba(249, 115, 22, 0.35);
}

.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.ghost-btn {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.primary-btn.small {
    min-height: 44px;
    padding: 0 18px;
    white-space: nowrap;
}

.hero-dots {
    position: absolute;
    right: max(24px, calc((100vw - var(--max-width)) / 2));
    bottom: 34px;
    z-index: 5;
    display: flex;
    gap: 10px;
}

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

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

.search-panel,
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 36px;
    padding: 24px;
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.search-panel h2,
.section-head h2,
.page-hero h1,
.content-card h2,
.sitemap-box h2 {
    margin: 0;
    color: var(--gray-800);
}

.search-box,
.filter-bar {
    display: flex;
}

.search-box {
    flex: 1;
    max-width: 560px;
    gap: 12px;
}

.search-box input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--amber-200);
    border-radius: 999px;
    padding: 0 18px;
    color: var(--gray-800);
    background: var(--white);
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.filter-bar select {
    width: min(220px, 100%);
}

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

.section-block {
    margin-top: 54px;
}

.soft-block {
    padding: 36px;
    border-radius: 32px;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.9), rgba(255, 237, 213, 0.9));
    box-shadow: var(--shadow-soft);
}

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

.section-head h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.section-head > a {
    color: var(--amber-600);
    font-weight: 900;
}

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

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

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

.movie-row {
    display: grid;
    grid-auto-columns: minmax(280px, 360px);
    grid-auto-flow: column;
    gap: 22px;
    overflow-x: auto;
    padding: 8px 4px 20px;
    scroll-snap-type: x mandatory;
}

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

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fbbf24, #f97316);
}

.wide-card .poster-link {
    aspect-ratio: 16 / 9;
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.78) 100%);
}

.hot-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 8px;
    border-radius: 8px;
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
    background: #ef4444;
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0 0 10px;
    color: var(--gray-900);
    font-size: 17px;
    line-height: 1.35;
}

.card-body h3 a:hover {
    color: var(--amber-600);
}

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

.meta-row {
    margin-top: 0;
    color: var(--gray-500);
    font-size: 12px;
}

.meta-row span {
    background: var(--gray-100);
}

.card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.card-tags span,
.detail-tags span {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    color: #92400e;
    font-size: 12px;
    font-weight: 800;
    background: #fef3c7;
}

.split-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 26px;
}

.rank-panel,
.category-panel {
    padding: 28px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
}

.inline-head {
    margin-bottom: 18px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 42px 74px 1fr;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border-radius: 18px;
    background: #fff7ed;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    background: #ffedd5;
    transform: translateX(4px);
}

.rank-no {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    font-weight: 900;
    background: linear-gradient(135deg, var(--yellow-500), var(--orange-600));
}

.rank-item img {
    width: 74px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-copy {
    display: grid;
    gap: 4px;
}

.rank-copy strong {
    color: var(--gray-900);
}

.rank-copy em {
    color: var(--gray-500);
    font-size: 13px;
    font-style: normal;
}

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

.category-card,
.category-overview-card {
    display: grid;
    gap: 9px;
    padding: 18px;
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 237, 0.92));
    box-shadow: 0 12px 24px rgba(251, 146, 60, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.category-card span,
.category-count {
    color: var(--amber-600);
    font-weight: 900;
}

.category-card strong,
.category-overview-card h2 {
    color: var(--gray-900);
    font-size: 18px;
}

.category-card em,
.category-overview-card p {
    color: var(--gray-600);
    font-size: 14px;
    font-style: normal;
    line-height: 1.65;
}

.page-hero {
    margin-top: 42px;
    padding: 42px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
}

.page-hero p {
    max-width: 820px;
    margin: 18px 0 0;
    color: var(--gray-600);
    font-size: 18px;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--gray-500);
    font-size: 14px;
}

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

.category-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 34px;
}

.mini-posters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.mini-posters img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    object-fit: cover;
}

.filter-bar {
    margin-top: 24px;
}

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

.detail-bg,
.detail-bg-mask {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.detail-bg {
    object-fit: cover;
    filter: blur(8px) saturate(1.1);
    transform: scale(1.08);
}

.detail-bg-mask {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.45)),
        radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.28), transparent 30%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 42px 0 58px;
}

.breadcrumb.light {
    color: rgba(255, 255, 255, 0.78);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(220px, 300px) 1fr;
    gap: 34px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    border: 6px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

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

.detail-copy p {
    max-width: 820px;
    color: #e5e7eb;
    font-size: 19px;
    line-height: 1.8;
}

.detail-meta span,
.stat-row span {
    background: rgba(255, 255, 255, 0.16);
}

.player-section {
    margin-top: 38px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: var(--black);
    box-shadow: var(--shadow);
}

.video-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--black);
}

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.54));
    cursor: pointer;
}

.play-cover.is-hidden {
    display: none;
}

.play-cover span {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    padding-left: 4px;
    border-radius: 50%;
    font-size: 30px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 18px 46px rgba(249, 115, 22, 0.36);
}

.play-cover strong {
    font-size: 20px;
}

.detail-content {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    margin-top: 34px;
}

.content-card {
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.content-card p {
    color: var(--gray-600);
    font-size: 17px;
    line-height: 1.9;
}

.accent-card {
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.sitemap-section {
    display: grid;
    gap: 24px;
    margin-top: 34px;
}

.sitemap-box {
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.sitemap-box ul {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.sitemap-box a {
    color: var(--gray-700);
    font-weight: 700;
}

.sitemap-box a:hover {
    color: var(--amber-600);
}

.two-col,
.movie-sitemap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.movie-sitemap span {
    color: var(--gray-500);
    font-size: 13px;
}

.site-footer {
    margin-top: 72px;
    padding: 46px 0;
    color: #ffedd5;
    background: linear-gradient(135deg, #7c2d12, #92400e, #78350f);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr 1.2fr;
    gap: 34px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 22px;
}

.site-footer p {
    max-width: 420px;
    color: #fed7aa;
    line-height: 1.8;
}

.site-footer h2 {
    margin-top: 0;
    color: #fde68a;
    font-size: 18px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

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

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

.compact-links a {
    width: calc(50% - 9px);
}

[data-search-hidden="true"] {
    display: none !important;
}

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

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

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

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

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .brand-title {
        font-size: 20px;
    }

    .hero-stage {
        min-height: 640px;
    }

    .search-panel,
    .filter-bar,
    .section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .search-box {
        max-width: none;
        flex-direction: column;
    }

    .compact-grid,
    .full-grid,
    .category-overview-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .two-col,
    .movie-sitemap {
        grid-template-columns: 1fr;
    }
}

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

    .nav-wrap {
        min-height: 66px;
    }

    .brand-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .brand-title {
        font-size: 18px;
    }

    .brand-subtitle {
        display: none;
    }

    .hero-stage {
        min-height: 590px;
    }

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

    .hero-copy p,
    .page-hero p,
    .detail-copy p {
        font-size: 16px;
    }

    .page-hero,
    .soft-block,
    .rank-panel,
    .category-panel,
    .content-card {
        padding: 22px;
        border-radius: 24px;
    }

    .compact-grid,
    .full-grid,
    .category-overview-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero-dots {
        right: 18px;
        bottom: 22px;
    }

    .detail-hero-inner {
        padding: 28px 0 42px;
    }
}
