:root {
    --color-bg: #fffbeb;
    --color-bg-soft: #fff7ed;
    --color-surface: #ffffff;
    --color-surface-strong: #111827;
    --color-text: #1f2937;
    --color-muted: #6b7280;
    --color-line: #e5e7eb;
    --color-primary: #b45309;
    --color-primary-dark: #92400e;
    --color-primary-soft: #fef3c7;
    --shadow-soft: 0 18px 45px rgba(31, 41, 55, 0.12);
    --shadow-card: 0 12px 30px rgba(31, 41, 55, 0.08);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--color-text);
    background: linear-gradient(180deg, var(--color-bg) 0%, #ffffff 42%, #ffffff 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 231, 235, 0.82);
    backdrop-filter: blur(16px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 22px;
    color: #111827;
    white-space: nowrap;
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #92400e);
    box-shadow: 0 10px 24px rgba(180, 83, 9, 0.25);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #374151;
    font-weight: 600;
}

.site-nav a {
    padding: 9px 0;
    transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-current {
    color: var(--color-primary);
}

.header-search {
    width: min(280px, 30vw);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px 7px 14px;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
}

.header-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: #111827;
    background: transparent;
}

.header-search button,
.mobile-toggle,
.search-action {
    border: 0;
    cursor: pointer;
}

.header-search button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--color-primary);
}

.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--color-primary-soft);
    color: var(--color-primary-dark);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.mobile-nav a {
    display: block;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
}

.mobile-nav a:hover {
    background: var(--color-primary-soft);
    color: var(--color-primary-dark);
}

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

.main {
    min-height: 70vh;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

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

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

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

.hero-image {
    position: absolute;
    inset: 0;
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(17, 24, 39, 0.72) 42%, rgba(17, 24, 39, 0.2) 100%),
        linear-gradient(180deg, rgba(17, 24, 39, 0.05) 0%, rgba(17, 24, 39, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 72vh;
    display: flex;
    align-items: center;
    padding: 76px 0 96px;
}

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

.hero-label {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    margin-bottom: 24px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(180, 83, 9, 0.88);
    box-shadow: 0 10px 28px rgba(180, 83, 9, 0.32);
    backdrop-filter: blur(12px);
}

.hero-title {
    margin: 0;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.hero-desc {
    max-width: 620px;
    margin: 24px 0;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.86);
}

.hero-meta,
.detail-meta,
.card-meta,
.rank-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta span,
.detail-meta span,
.card-meta span,
.rank-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-meta span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
    color: #ffffff;
    background: var(--color-primary);
    box-shadow: 0 16px 34px rgba(180, 83, 9, 0.35);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
}

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

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

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

.hero-dot.is-active {
    width: 56px;
    background: #f59e0b;
}

.section {
    padding: 72px 0;
}

.section-soft {
    background: linear-gradient(90deg, #fff7ed 0%, #fef3c7 100%);
}

.section-dark {
    color: #ffffff;
    background: linear-gradient(180deg, #111827 0%, #1f2937 100%);
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    color: var(--color-primary);
    font-weight: 800;
}

.section-title {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-dark .section-title {
    color: #ffffff;
}

.section-desc,
.page-desc {
    margin: 10px 0 0;
    max-width: 760px;
    color: var(--color-muted);
    line-height: 1.75;
}

.section-dark .section-desc {
    color: rgba(255, 255, 255, 0.72);
}

.grid {
    display: grid;
    gap: 24px;
}

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

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
    transition: transform 0.26s ease, box-shadow 0.26s ease;
}

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

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

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

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

.poster::after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.78));
}

.score-badge,
.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 30px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(180, 83, 9, 0.92);
    font-weight: 900;
}

.score-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
    font-size: 13px;
}

.card-body {
    padding: 16px;
}

.card-title {
    margin: 0 0 10px;
    color: #111827;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
}

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

.card-meta span {
    color: var(--color-primary-dark);
    background: var(--color-primary-soft);
}

.category-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 178px;
    padding: 24px;
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-card h3 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 22px;
    font-weight: 900;
}

.category-card p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.7;
}

.category-arrow {
    margin-top: 20px;
    color: var(--color-primary);
    font-weight: 900;
}

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

.rank-item {
    display: grid;
    grid-template-columns: auto 112px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.07);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
}

.rank-cover {
    width: 112px;
    height: 72px;
    overflow: hidden;
    border-radius: 12px;
    background: #000000;
}

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

.rank-title {
    margin: 0 0 8px;
    font-size: 20px;
    color: #ffffff;
    font-weight: 900;
}

.rank-desc {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.55;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.rank-meta span {
    color: #fde68a;
    background: rgba(180, 83, 9, 0.28);
}

.page-hero {
    padding: 62px 0 42px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 52%, #fffbeb 100%);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

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

.breadcrumb a {
    color: var(--color-primary-dark);
    font-weight: 800;
}

.page-title {
    margin: 0;
    color: #111827;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 950;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    margin: 28px 0 0;
    padding: 16px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    outline: 0;
    color: #111827;
    background: #ffffff;
}

.search-action {
    min-height: 44px;
    padding: 0 20px;
    border-radius: 12px;
    color: #ffffff;
    background: var(--color-primary);
    font-weight: 900;
}

.detail-hero {
    color: #ffffff;
    background: #111827;
}

.detail-backdrop {
    position: relative;
    min-height: 520px;
    overflow: hidden;
}

.detail-backdrop img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.36;
    filter: blur(2px);
    transform: scale(1.04);
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.72) 52%, rgba(17, 24, 39, 0.35));
}

.detail-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 38px;
    align-items: center;
    min-height: 520px;
    padding: 56px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

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

.detail-title {
    margin: 0 0 18px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.05em;
}

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

.detail-meta span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-desc {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.85;
}

.player-section {
    padding: 58px 0;
    background: #0f172a;
}

.player-shell {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000000;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.42);
}

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

.video-wrap video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
    z-index: 3;
}

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

.play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(180, 83, 9, 0.94);
    box-shadow: 0 20px 50px rgba(180, 83, 9, 0.36);
    font-size: 34px;
    transform: translateZ(0);
}

.player-caption {
    padding: 22px 26px;
    color: rgba(255, 255, 255, 0.72);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 34px;
    padding: 58px 0;
}

.article-card,
.side-card {
    padding: 28px;
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.article-card h2,
.side-card h2 {
    margin: 0 0 18px;
    color: #111827;
    font-size: 26px;
    font-weight: 950;
}

.article-card p {
    margin: 0 0 18px;
    color: #374151;
    line-height: 1.9;
    font-size: 16px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.tag-list span {
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--color-primary-dark);
    background: var(--color-primary-soft);
    font-weight: 800;
    font-size: 13px;
}

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

.side-link {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.side-link:hover {
    background: #fffbeb;
}

.side-link img {
    width: 70px;
    height: 92px;
    border-radius: 10px;
    object-fit: cover;
}

.side-link strong {
    display: block;
    margin-bottom: 6px;
    color: #111827;
    line-height: 1.35;
}

.side-link span {
    color: var(--color-muted);
    font-size: 13px;
}

.site-footer {
    padding: 42px 0;
    color: rgba(255, 255, 255, 0.72);
    background: #111827;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 28px;
}

.footer-title {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
}

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

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

.empty-state {
    display: none;
    padding: 42px;
    border-radius: var(--radius-md);
    color: var(--color-muted);
    text-align: center;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

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

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

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

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

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

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

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

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

    .rank-item {
        grid-template-columns: auto 84px 1fr;
    }

    .rank-cover {
        width: 84px;
        height: 62px;
    }

    .rank-item .btn {
        grid-column: 2 / 4;
        width: 100%;
    }

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

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

    .filter-panel {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .header-inner {
        min-height: 64px;
    }

    .logo {
        font-size: 19px;
    }

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

    .section {
        padding: 52px 0;
    }

    .grid-6,
    .grid-4,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .card-body {
        padding: 18px;
    }

    .detail-backdrop,
    .detail-inner {
        min-height: auto;
    }

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

    .player-section,
    .detail-content {
        padding: 42px 0;
    }

    .article-card,
    .side-card {
        padding: 22px;
    }
}
