:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-800: #1f2937;
    --slate-900: #0f172a;
    --white: #ffffff;
    --radius-lg: 18px;
    --radius-xl: 26px;
    --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 12px 28px rgba(15, 23, 42, 0.1);
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96), rgba(255, 251, 235, 0.96));
    border-bottom: 1px solid rgba(251, 191, 36, 0.25);
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.08);
    backdrop-filter: blur(14px);
}

.header-inner {
    max-width: var(--max-width);
    height: 68px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark,
.footer-logo span {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-400), var(--orange-600));
    border-radius: 999px;
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 20px;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    margin-top: 4px;
    color: var(--slate-500);
    font-size: 12px;
}

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

.nav-link {
    color: var(--slate-700);
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(251, 191, 36, 0.14);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--amber-600);
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    padding: 8px 20px 16px;
    background: #ffffff;
    border-top: 1px solid var(--amber-100);
}

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

.mobile-link {
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--slate-700);
    font-weight: 700;
}

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

.hero {
    max-width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
}

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

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

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

.hero-bg,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-bg {
    background-position: center;
    background-size: cover;
    filter: blur(4px) saturate(1.15);
    transform: scale(1.04);
}

.hero-shade {
    background:
        radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.42), rgba(15, 23, 42, 0.76)),
        linear-gradient(135deg, rgba(245, 158, 11, 0.86), rgba(234, 88, 12, 0.84));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    min-height: 640px;
    margin: 0 auto;
    padding: 80px 20px 96px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 380px);
    align-items: center;
    gap: 48px;
    color: #ffffff;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    color: #92400e;
    background: rgba(254, 243, 199, 0.92);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-copy h1 {
    max-width: 780px;
    margin: 22px 0 16px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 720px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
}

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

.hero-tags span,
.tag-row span {
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

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

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

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 16px 36px rgba(249, 115, 22, 0.28);
}

.btn-glass {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.17);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
}

.btn-ghost {
    color: #fff7ed;
    border: 1px solid rgba(255, 255, 255, 0.32);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.42);
    transform: rotate(2deg);
}

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

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(245, 158, 11, 0.92);
    border-radius: 999px;
    transform: translate(-50%, -50%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

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

.hero-dots button {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-dots button.active {
    width: 56px;
    background: #ffffff;
}

.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 70px 20px;
}

.section-tight {
    padding-bottom: 28px;
}

.alt-section {
    max-width: none;
    padding-left: max(20px, calc((100vw - var(--max-width)) / 2 + 20px));
    padding-right: max(20px, calc((100vw - var(--max-width)) / 2 + 20px));
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.72), rgba(255, 237, 213, 0.75));
}

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

.section-head h2 {
    margin: 12px 0 0;
    color: var(--slate-900);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
}

.compact-head h2 {
    font-size: 30px;
}

.text-link {
    color: var(--amber-600);
    font-weight: 900;
}

.filter-panel {
    margin: 0 0 26px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid rgba(251, 191, 36, 0.42);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
}

.search-box span {
    color: var(--amber-600);
    font-size: 22px;
    font-weight: 900;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--slate-800);
    background: transparent;
    font-size: 16px;
}

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

.filter-chips button {
    border: 0;
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--slate-700);
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    cursor: pointer;
}

.filter-chips button.active,
.filter-chips button:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.empty-state {
    display: none;
    margin: 24px 0 0;
    padding: 18px;
    text-align: center;
    color: var(--slate-500);
    background: #ffffff;
    border-radius: 16px;
}

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

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

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

.movie-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.86);
    border-radius: 22px;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--slate-900);
}

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

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

.play-chip,
.rank-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 999px;
    font-weight: 900;
}

.play-chip {
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    background: rgba(245, 158, 11, 0.9);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rank-badge {
    top: 12px;
    left: 12px;
    min-width: 38px;
    height: 30px;
    padding: 0 10px;
    background: linear-gradient(135deg, #ef4444, var(--orange-600));
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.25);
}

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

.movie-meta-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--slate-500);
    font-size: 13px;
    font-weight: 700;
}

.movie-meta-line a {
    color: var(--amber-600);
}

.movie-card h3 {
    min-height: 52px;
    margin: 9px 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

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

.movie-card p {
    min-height: 50px;
    margin: 0 0 12px;
    color: var(--slate-500);
    font-size: 14px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card .tag-row span {
    color: var(--amber-700, #92400e);
    background: var(--amber-100);
}

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

.movie-card-compact .poster-wrap img {
    height: 100%;
    aspect-ratio: auto;
}

.movie-card-compact h3 {
    min-height: 0;
    font-size: 16px;
}

.movie-card-compact p {
    min-height: 0;
}

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

.category-card,
.category-overview-card a {
    display: block;
    min-height: 144px;
    padding: 24px;
    color: var(--slate-900);
    background: #ffffff;
    border: 1px solid rgba(251, 191, 36, 0.24);
    border-radius: 22px;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card span,
.category-overview-card span {
    display: block;
    margin-bottom: 10px;
    color: var(--amber-600);
    font-size: 21px;
    font-weight: 900;
}

.category-card strong,
.category-overview-card p {
    color: var(--slate-600, #475569);
    font-size: 15px;
    font-weight: 600;
}

.category-overview-card strong {
    display: inline-flex;
    margin-top: 14px;
    color: var(--orange-600);
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
    gap: 28px;
}

.rank-panel,
.recommend-panel,
.sticky-rank,
.side-card {
    background: #ffffff;
    border-radius: 26px;
    box-shadow: var(--shadow-card);
    padding: 24px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: auto 78px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    background: linear-gradient(90deg, #fffaf0, #ffffff);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.rank-item:hover {
    background: var(--amber-50);
}

.rank-num b {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    border-radius: 999px;
}

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

.rank-copy {
    min-width: 0;
}

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

.rank-copy small {
    color: var(--slate-500);
    font-size: 12px;
}

.page-hero {
    color: #ffffff;
    background:
        radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.22), transparent 26%),
        linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.small-hero > div {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 76px 20px;
}

.small-hero h1 {
    max-width: 860px;
    margin: 16px 0;
    font-size: clamp(38px, 6vw, 62px);
    line-height: 1.08;
}

.small-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
}

.link-cloud {
    margin-top: 42px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.link-cloud a {
    padding: 9px 13px;
    color: var(--amber-700, #92400e);
    background: var(--amber-100);
    border-radius: 999px;
    font-weight: 800;
}

.ranking-section {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) 330px;
}

.sticky-rank {
    position: sticky;
    top: 92px;
}

.sticky-rank h2,
.side-card h2 {
    margin: 0 0 18px;
    font-size: 24px;
}

.detail-shell {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 30px 20px 20px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    color: var(--slate-500);
    font-size: 14px;
}

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

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

.player-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #020617;
    border-radius: 26px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.movie-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.74));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-play {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 16px 36px rgba(249, 115, 22, 0.34);
    font-size: 34px;
}

.player-overlay strong {
    max-width: 86%;
    text-align: center;
    font-size: 24px;
}

.detail-card {
    margin-top: 22px;
    padding: 28px;
    background: #ffffff;
    border-radius: 26px;
    box-shadow: var(--shadow-card);
}

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

.detail-title-row h1 {
    margin: 14px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.18;
}

.detail-meta {
    margin: 22px 0 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-meta span {
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--slate-700);
    background: var(--slate-100);
    font-weight: 800;
    font-size: 13px;
}

.detail-tags span {
    color: #92400e;
    background: var(--amber-100);
}

.content-block {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--slate-200);
}

.content-block h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.content-block p {
    margin: 0;
    color: var(--slate-700);
    font-size: 17px;
    line-height: 1.85;
    white-space: pre-line;
}

.detail-side {
    position: sticky;
    top: 92px;
}

.detail-more {
    padding-top: 34px;
}

.hidden-by-filter {
    display: none !important;
}

.site-footer {
    margin-top: 60px;
    color: #cbd5e1;
    background: linear-gradient(135deg, #111827, #1f2937 50%, #0f172a);
}

.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 20px 30px;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr 1.1fr;
    gap: 28px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
}

.footer-logo span {
    width: 34px;
    height: 34px;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

.site-footer p {
    margin: 12px 0 0;
    color: #94a3b8;
}

.site-footer a {
    display: block;
    margin: 8px 0;
    color: #cbd5e1;
}

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

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 18px 20px 28px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    color: #94a3b8;
    font-size: 14px;
}

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

    .menu-toggle {
        display: block;
    }

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

    .hero-content {
        padding-top: 56px;
    }

    .hero-poster {
        max-width: 360px;
        margin: 0 auto;
    }

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

    .detail-side,
    .sticky-rank {
        position: static;
    }
}

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

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

    .brand-text small {
        display: none;
    }

    .hero-stage,
    .hero-content {
        min-height: 760px;
    }

    .hero-content {
        gap: 28px;
    }

    .hero-copy p {
        font-size: 17px;
    }

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

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

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

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

    .rank-item img {
        width: 70px;
        height: 52px;
    }

    .detail-card,
    .rank-panel,
    .recommend-panel,
    .side-card,
    .sticky-rank {
        padding: 18px;
        border-radius: 20px;
    }

    .player-card {
        border-radius: 20px;
    }
}
