@charset "UTF-8";

:root {
    color-scheme: light;
    --color-text: #1f2937;
    --color-muted: #6b7280;
    --color-soft: #fef3c7;
    --color-cream: #fffbeb;
    --color-card: #ffffff;
    --color-amber: #f59e0b;
    --color-amber-dark: #92400e;
    --color-orange: #ea580c;
    --shadow-soft: 0 20px 45px rgba(146, 64, 14, 0.14);
    --shadow-card: 0 16px 34px rgba(17, 24, 39, 0.12);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --max-width: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--color-text);
    background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 34%, #fef3c7 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 251, 235, 0.92);
    box-shadow: 0 12px 32px rgba(146, 64, 14, 0.16);
    backdrop-filter: blur(18px);
}

.nav-shell {
    width: min(100% - 32px, var(--max-width));
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-amber), #eab308);
    box-shadow: 0 12px 22px rgba(245, 158, 11, 0.35);
    transition: transform 0.3s ease;
}

.brand:hover .brand-icon {
    transform: rotate(12deg) scale(1.05);
}

.brand-copy {
    display: grid;
    line-height: 1.05;
}

.brand-copy strong {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: transparent;
    background: linear-gradient(90deg, #d97706, #ca8a04);
    -webkit-background-clip: text;
    background-clip: text;
}

.brand-copy em {
    margin-top: 4px;
    font-size: 12px;
    font-style: normal;
    color: #b45309;
}

.nav-panel {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #78350f;
    font-weight: 700;
}

.nav-links a {
    position: relative;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: linear-gradient(90deg, var(--color-amber), #eab308);
    transition: transform 0.25s ease;
}

.nav-links a:hover {
    color: #d97706;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 2px solid rgba(245, 158, 11, 0.36);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(8px);
}

.nav-search input {
    width: 190px;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 8px 10px;
    color: #78350f;
}

.nav-search button {
    border: 0;
    border-radius: 999px;
    padding: 8px 15px;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(90deg, var(--color-amber), #eab308);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.68);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 3px;
    background: #78350f;
}

.hero {
    position: relative;
    height: 700px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(8%);
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.48) 52%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 76px;
    width: min(100% - 48px, var(--max-width));
    transform: translateX(-50%);
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 16px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: linear-gradient(90deg, var(--color-amber), #eab308);
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.3);
}

.hero-content h2,
.page-hero h1 {
    max-width: 900px;
    margin: 18px 0 16px;
    font-size: clamp(40px, 7vw, 72px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.hero-content p,
.page-hero p {
    max-width: 860px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.65;
}

.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.hero-meta span,
.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(6px);
}

.primary-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(90deg, var(--color-amber), #eab308);
    box-shadow: 0 16px 32px rgba(245, 158, 11, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.secondary-action {
    color: #b45309;
    background: #fef3c7;
    box-shadow: none;
}

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

.primary-action--block {
    width: 100%;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    transform: translateY(-50%);
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.36);
    transform: translateY(-50%) scale(1.05);
}

.hero-arrow--prev {
    left: 24px;
}

.hero-arrow--next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 6;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.25s ease, background 0.25s ease;
}

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

.section-shell {
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto;
    padding: 64px 0;
}

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

.page-hero {
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto;
    padding: 82px 0 32px;
    color: #ffffff;
}

.page-hero--small,
.page-hero--category {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 96px max(16px, calc((100% - var(--max-width)) / 2)) 56px;
    background: radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.45), transparent 32%), linear-gradient(135deg, #78350f, #92400e 48%, #f59e0b);
}

.page-hero--category {
    background: radial-gradient(circle at 82% 18%, rgba(254, 243, 199, 0.42), transparent 30%), linear-gradient(135deg, #92400e, #b45309, #f59e0b);
}

.page-hero h1 {
    color: #ffffff;
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: -38px;
    position: relative;
    z-index: 8;
    padding-top: 0;
}

.stat-card,
.category-card,
.category-overview-card,
.detail-card,
.player-card,
.poster-card,
.rank-panel,
.filter-panel {
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.stat-card {
    min-height: 130px;
    padding: 28px;
    color: #92400e;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card strong {
    font-size: 40px;
    line-height: 1;
    color: transparent;
    background: linear-gradient(90deg, #d97706, #eab308);
    -webkit-background-clip: text;
    background-clip: text;
}

.stat-card span {
    margin-top: 10px;
    color: var(--color-muted);
    font-weight: 700;
}

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

.section-heading--inline {
    align-items: center;
}

.section-heading span {
    display: block;
    color: #d97706;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 6px 0 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-heading a {
    color: #d97706;
    font-weight: 800;
}

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

.category-card {
    min-height: 214px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::after,
.category-overview-card::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -38px;
    top: -38px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.12);
}

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

.category-card span,
.category-number {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-amber), #eab308);
}

.category-card strong,
.category-overview-card h2 {
    display: block;
    margin-top: 18px;
    font-size: 22px;
    font-weight: 900;
    color: #111827;
}

.category-card em {
    display: block;
    margin-top: 8px;
    color: #d97706;
    font-style: normal;
    font-weight: 800;
}

.category-card p,
.category-overview-card p {
    margin: 12px 0 0;
    color: var(--color-muted);
    line-height: 1.65;
}

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

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

.movie-card {
    min-width: 0;
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(17, 24, 39, 0.08);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
    position: relative;
    margin: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #92400e, #f59e0b);
}

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

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

.movie-type,
.card-rank {
    position: absolute;
    top: 12px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
}

.movie-type {
    right: 12px;
    padding: 7px 10px;
    background: rgba(0, 0, 0, 0.58);
}

.card-rank {
    left: 12px;
    min-width: 38px;
    padding: 7px 10px;
    text-align: center;
    background: linear-gradient(135deg, #f97316, #eab308);
}

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

.movie-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #d97706;
    font-size: 13px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 10px 0 8px;
    color: #111827;
    font-size: 20px;
    line-height: 1.25;
}

.movie-card p {
    display: -webkit-box;
    min-height: 3.3em;
    margin: 0;
    overflow: hidden;
    color: var(--color-muted);
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.movie-tags span {
    padding: 6px 10px;
    border-radius: 999px;
    color: #b45309;
    font-size: 12px;
    font-weight: 800;
    background: #fef3c7;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 28px;
    align-items: start;
}

.rank-panel {
    padding: 24px;
}

.rank-panel--sticky {
    position: sticky;
    top: 104px;
}

.rank-panel h2 {
    margin: 0 0 20px;
    font-size: 24px;
    color: #111827;
}

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

.rank-row {
    display: grid;
    grid-template-columns: auto 82px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    transition: background 0.2s ease;
}

.rank-row:hover {
    background: #fffbeb;
}

.rank-row img {
    width: 82px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
}

.rank-number {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-amber), #eab308);
}

.rank-row strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-row em {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    color: var(--color-muted);
    font-size: 12px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-row b {
    color: #d97706;
    font-size: 12px;
}

.category-overview-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-overview-card strong {
    display: inline-flex;
    margin-top: 14px;
    color: #d97706;
}

.category-overview-card ul {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.category-overview-card li + li {
    margin-top: 8px;
}

.category-overview-card li a {
    color: #4b5563;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 16px;
    padding: 20px;
    margin-bottom: 14px;
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: #92400e;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 2px solid rgba(245, 158, 11, 0.28);
    border-radius: 14px;
    outline: none;
    padding: 0 14px;
    color: #111827;
    background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--color-amber);
}

.filter-count {
    margin: 0 0 22px;
    color: #92400e;
    font-weight: 800;
}

.empty-state {
    padding: 42px;
    margin-bottom: 22px;
    border-radius: var(--radius-md);
    color: #92400e;
    text-align: center;
    background: #fef3c7;
}

.breadcrumb {
    width: min(100% - 32px, var(--max-width));
    margin: 28px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #92400e;
    font-weight: 700;
}

.breadcrumb strong {
    color: #111827;
}

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

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

.player-card {
    overflow: hidden;
    background: #020617;
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.32), rgba(0, 0, 0, 0.72));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding-left: 5px;
    font-size: 34px;
    background: linear-gradient(135deg, var(--color-amber), #eab308);
    box-shadow: 0 18px 34px rgba(245, 158, 11, 0.36);
}

.player-overlay strong {
    font-size: 20px;
}

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

.detail-card {
    padding: 28px;
}

.detail-title-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: start;
}

.detail-title-row h1 {
    margin: 14px 0 0;
    color: #111827;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.detail-meta span {
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.18);
    background: #fffbeb;
}

.detail-tags {
    margin: 18px 0 8px;
}

.content-block {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(245, 158, 11, 0.18);
}

.content-block h2 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 24px;
}

.content-block p {
    margin: 0;
    color: #374151;
    line-height: 1.9;
    font-size: 17px;
}

.content-block p + p {
    margin-top: 14px;
}

.detail-sidebar {
    display: grid;
    align-content: start;
    gap: 24px;
}

.poster-card {
    padding: 16px;
}

.poster-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 16px;
}

.site-footer {
    margin-top: 36px;
    color: #fffbeb;
    background: linear-gradient(180deg, #78350f, #451a03);
}

.footer-shell {
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto;
    padding: 42px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-shell strong {
    color: #fcd34d;
    font-size: 22px;
}

.footer-shell p {
    margin: 8px 0 0;
    color: #fde68a;
}

.footer-shell nav {
    display: flex;
    gap: 18px;
    color: #fde68a;
    font-weight: 700;
}

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

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

    .rank-panel--sticky {
        position: static;
    }
}

@media (max-width: 860px) {
    .nav-shell {
        height: 72px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-panel {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        padding: 18px;
        border-radius: 22px;
        background: rgba(255, 251, 235, 0.96);
        box-shadow: var(--shadow-soft);
    }

    .nav-panel.is-open {
        display: grid;
        gap: 16px;
    }

    .nav-links {
        display: grid;
        gap: 14px;
    }

    .nav-search {
        width: 100%;
    }

    .nav-search input {
        width: 100%;
    }

    .hero {
        height: 620px;
    }

    .hero-content {
        bottom: 62px;
    }

    .hero-arrow {
        display: none;
    }

    .stats-strip,
    .movie-grid,
    .movie-grid--compact,
    .category-grid,
    .category-overview-grid,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .detail-title-row,
    .footer-shell {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .rank-row b {
        display: none;
    }
}

@media (max-width: 560px) {
    .brand-copy strong {
        font-size: 20px;
    }

    .brand-copy em {
        display: none;
    }

    .hero {
        height: 560px;
    }

    .hero-content h2,
    .page-hero h1 {
        font-size: 38px;
    }

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

    .section-shell {
        padding: 42px 0;
    }

    .detail-card {
        padding: 22px;
    }
}