:root {
    --bg: #f6f7fb;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --card: #ffffff;
    --amber: #d97706;
    --amber-dark: #92400e;
    --orange: #ea580c;
    --dark: #111827;
    --dark-soft: #1f2937;
    --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
    --soft-shadow: 0 10px 25px rgba(17, 24, 39, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    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: #ffffff;
    background: linear-gradient(90deg, #78350f 0%, #b45309 52%, #c2410c 100%);
    box-shadow: 0 10px 30px rgba(120, 53, 15, 0.25);
}

.nav-wrap {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.main-nav a {
    font-weight: 700;
    opacity: 0.92;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: #fde68a;
    opacity: 1;
}

.quick-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 300px;
}

.quick-search input,
.big-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 11px 14px;
    outline: none;
    color: var(--text);
    background: #ffffff;
}

.quick-search button,
.big-search button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    color: #ffffff;
    background: #111827;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease;
}

.quick-search button:hover,
.big-search button:hover,
.btn:hover {
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 8px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
}

.mobile-toggle span {
    display: block;
    height: 2px;
    margin: 6px 0;
    background: #ffffff;
    border-radius: 2px;
}

.mobile-menu {
    display: none;
    padding: 12px 16px 18px;
    background: rgba(120, 53, 15, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.mobile-menu a {
    display: block;
    padding: 10px 0;
    font-weight: 700;
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 540px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.46;
    transform: scale(1.03);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 50%, rgba(217, 119, 6, 0.28), transparent 32%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.58) 46%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
    color: #ffffff;
}

.eyebrow,
.hero-kicker-title {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fef3c7;
    background: rgba(217, 119, 6, 0.72);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-copy h1,
.page-hero h1,
.rank-copy h2 {
    margin: 0 0 14px;
    font-size: clamp(36px, 6vw, 70px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(30px, 5vw, 58px);
    line-height: 1.06;
    font-weight: 900;
}

.hero-copy p {
    max-width: 650px;
    margin: 0 0 28px;
    font-size: clamp(18px, 2.2vw, 26px);
    color: #e5e7eb;
    line-height: 1.7;
}

.hero-actions,
.detail-meta-row,
.movie-tags,
.detail-tags,
.footer-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.btn,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 13px 22px;
    font-weight: 900;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn.primary {
    color: #ffffff;
    background: var(--amber);
    box-shadow: 0 14px 28px rgba(217, 119, 6, 0.28);
}

.btn.ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.btn.subtle {
    color: #fde68a;
    background: rgba(0, 0, 0, 0.24);
}

.btn.text,
.section-more {
    color: var(--amber-dark);
    background: #fffbeb;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.48);
    font-size: 36px;
    line-height: 1;
    transform: translateY(-50%);
}

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

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

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

.hero-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}

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

.home-search-panel {
    margin-top: -42px;
    position: relative;
    z-index: 6;
}

.search-panel-inner {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 520px);
    gap: 28px;
    align-items: center;
    padding: 26px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.search-panel-inner h2,
.section-heading h2,
.category-overview-card h2,
.detail-content h1,
.detail-block h2,
.side-card h2 {
    margin: 0;
    color: var(--text);
    font-weight: 900;
}

.search-panel-inner p,
.section-heading p,
.page-hero p,
.category-overview-card p,
.rank-copy p {
    color: var(--muted);
    line-height: 1.8;
}

.big-search {
    display: flex;
    gap: 10px;
}

.big-search input {
    border-color: var(--border);
    border-radius: 14px;
}

.big-search button {
    min-width: 120px;
    background: var(--amber);
}

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

.warm-band {
    background: linear-gradient(90deg, #fffbeb 0%, #fff7ed 100%);
}

.editor-band {
    background: linear-gradient(90deg, #78350f 0%, #9a3412 100%);
}

.editor-band .section-heading h2,
.editor-band .section-heading p {
    color: #ffffff;
}

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

.section-heading h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: clamp(26px, 3vw, 38px);
}

.section-heading h2 span {
    width: 5px;
    height: 34px;
    border-radius: 99px;
    background: var(--amber);
}

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

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

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 18px;
    background: var(--card);
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card.is-hidden {
    display: none;
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #111827;
}

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

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

.movie-badge,
.movie-score {
    position: absolute;
    top: 10px;
    z-index: 2;
    border-radius: 999px;
    padding: 5px 9px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.movie-badge {
    left: 10px;
    background: rgba(217, 119, 6, 0.92);
}

.movie-score {
    right: 10px;
    background: rgba(17, 24, 39, 0.78);
}

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

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
}

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

.movie-one-line {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
}

.movie-meta a {
    color: var(--amber-dark);
    font-weight: 800;
}

.movie-tags {
    margin-top: 12px;
    gap: 7px;
}

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

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

.category-tile {
    display: block;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.category-thumbs img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.category-tile strong {
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 900;
}

.category-tile span {
    display: block;
    color: var(--muted);
    line-height: 1.65;
}

.rank-band {
    padding: 72px 0;
    color: #ffffff;
    background: linear-gradient(90deg, #111827 0%, #1f2937 52%, #78350f 100%);
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) 1.4fr;
    gap: 38px;
    align-items: center;
}

.rank-copy p {
    color: #d1d5db;
    margin-bottom: 26px;
}

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

.rank-mini-item {
    display: grid;
    grid-template-columns: 44px 58px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
}

.rank-mini-item span {
    color: #fcd34d;
    font-size: 22px;
    font-weight: 900;
}

.rank-mini-item img {
    width: 58px;
    height: 76px;
    object-fit: cover;
    border-radius: 10px;
}

.rank-mini-item strong,
.rank-mini-item em {
    display: block;
}

.rank-mini-item strong {
    margin-bottom: 5px;
}

.rank-mini-item em {
    color: #d1d5db;
    font-style: normal;
    font-size: 13px;
}

.page-hero {
    padding: 72px 0;
    color: #ffffff;
}

.page-hero.amber {
    background: linear-gradient(90deg, #78350f 0%, #b45309 50%, #c2410c 100%);
}

.page-hero.dark {
    background: linear-gradient(90deg, #111827 0%, #1f2937 55%, #78350f 100%);
}

.page-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: #ffedd5;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: #fef3c7;
    font-weight: 800;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.category-overview-list {
    display: grid;
    gap: 32px;
}

.category-overview-card {
    padding: 28px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.category-overview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 14px;
    align-items: end;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.filter-panel label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-size: 13px;
    font-weight: 900;
}

.filter-panel input,
.filter-panel select {
    border-color: var(--border);
    border-radius: 12px;
}

.filter-hint {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--muted);
}

.empty-result {
    display: none;
    padding: 36px;
    border-radius: 22px;
    text-align: center;
    color: var(--muted);
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.empty-result.is-active {
    display: block;
}

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

.top-rank-card {
    position: relative;
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 18px;
    min-height: 166px;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.top-rank-card img {
    width: 112px;
    height: 150px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-number {
    position: absolute;
    left: 8px;
    top: 8px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: var(--amber);
    font-weight: 900;
}

.top-rank-card strong {
    display: block;
    margin: 6px 0 8px;
    font-size: 22px;
    font-weight: 900;
}

.top-rank-card p,
.top-rank-card em {
    color: var(--muted);
    font-style: normal;
    line-height: 1.6;
}

.player-stage {
    padding: 28px 0 42px;
    background: linear-gradient(90deg, #111827 0%, #1f2937 58%, #78350f 100%);
}

.player-crumb {
    color: #fcd34d;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.movie-player-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000000;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.play-trigger {
    position: absolute;
    width: 94px;
    height: 94px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(217, 119, 6, 0.92);
    box-shadow: 0 18px 38px rgba(217, 119, 6, 0.36);
    transition: transform 0.2s ease, background 0.2s ease;
}

.play-trigger:hover {
    transform: scale(1.08);
    background: #ea580c;
}

.play-trigger span {
    margin-left: 6px;
    font-size: 42px;
    line-height: 1;
}

.detail-main {
    padding: 56px 0 72px;
}

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

.detail-content h1 {
    margin-bottom: 18px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
}

.detail-meta-row {
    margin-bottom: 24px;
}

.detail-meta-row span {
    border-radius: 999px;
    padding: 8px 13px;
    color: #92400e;
    background: #fef3c7;
    font-weight: 900;
}

.detail-block,
.side-card {
    margin-bottom: 22px;
    padding: 26px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.detail-block.warm {
    background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
}

.detail-block h2 {
    margin-bottom: 14px;
    font-size: 25px;
}

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

.detail-sidebar {
    min-width: 0;
}

.side-card {
    position: sticky;
    top: 96px;
}

.cover-card {
    padding: 0;
    overflow: hidden;
}

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

.side-card h2 {
    margin-bottom: 18px;
    font-size: 22px;
}

.side-card dl {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 10px 12px;
    margin: 0 0 18px;
}

.side-card dt {
    color: var(--muted);
    font-weight: 800;
}

.side-card dd {
    margin: 0;
    color: var(--text);
    font-weight: 800;
}

.related-section {
    padding-bottom: 0;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(90deg, #111827 0%, #1f2937 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 1fr;
    gap: 34px;
    padding: 48px 0;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

.site-footer p {
    margin: 0;
    line-height: 1.8;
}

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

.site-footer a:hover {
    color: #fcd34d;
}

.footer-tags {
    align-items: flex-start;
}

.footer-tags a {
    display: inline-flex;
    margin: 0;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #9ca3af;
}

@media (max-width: 1100px) {
    .quick-search {
        display: none;
    }

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

    .category-grid,
    .filter-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .nav-wrap {
        height: 64px;
    }

    .main-nav {
        display: none;
    }

    .mobile-toggle {
        display: inline-block;
        margin-left: auto;
    }

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

    .hero {
        min-height: 620px;
        height: 80vh;
    }

    .hero-arrow {
        display: none;
    }

    .hero-content {
        align-items: flex-end;
        padding-bottom: 76px;
    }

    .search-panel-inner,
    .rank-layout,
    .detail-layout,
    .footer-grid,
    .top-rank-grid {
        grid-template-columns: 1fr;
    }

    .movie-grid.compact,
    .movie-grid,
    .movie-grid.mini-grid,
    .category-grid,
    .rank-list-mini,
    .filter-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-heading,
    .category-overview-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .side-card {
        position: static;
    }
}

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

    .site-logo {
        font-size: 19px;
    }

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

    .hero-actions,
    .big-search,
    .detail-meta-row {
        align-items: stretch;
        flex-direction: column;
    }

    .btn,
    .big-search button {
        width: 100%;
    }

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

    .top-rank-card {
        grid-template-columns: 92px 1fr;
    }

    .top-rank-card img {
        width: 92px;
        height: 124px;
    }

    .play-trigger {
        width: 72px;
        height: 72px;
    }

    .play-trigger span {
        font-size: 32px;
    }
}
