:root {
    --site-bg: #f7f4ee;
    --site-ink: #111827;
    --site-muted: #6b7280;
    --site-panel: #ffffff;
    --site-amber: #d97706;
    --site-amber-dark: #78350f;
    --site-red: #ef4444;
    --site-border: rgba(120, 53, 15, 0.12);
    --site-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--site-ink);
    background: linear-gradient(180deg, #f9fafb 0%, var(--site-bg) 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #fff;
    background: linear-gradient(90deg, #78350f 0%, #92400e 48%, #78350f 100%);
    box-shadow: 0 12px 32px rgba(120, 53, 15, 0.32);
}

.nav-shell {
    max-width: 1280px;
    height: 64px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    color: #fff7ed;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32), 0 10px 20px rgba(0, 0, 0, 0.18);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 15px;
    font-weight: 600;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.86);
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fde68a;
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 9px 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.mobile-menu {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 24px 20px;
    border-top: 1px solid rgba(253, 230, 138, 0.28);
}

.mobile-menu.open {
    display: grid;
    gap: 10px;
}

.mobile-menu a {
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.9);
}

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

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

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

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

.hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.58) 48%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 64px;
    color: #fff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fde68a;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    font-size: 14px;
    font-weight: 700;
}

.hero h1 {
    max-width: 880px;
    margin: 0 0 16px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.03;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 760px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(16px, 2vw, 22px);
    line-height: 1.7;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 13px;
    font-weight: 700;
}

.hero .badge {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    backdrop-filter: blur(8px);
}

.hero .badge.primary {
    background: #f59e0b;
}

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

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

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

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 16px 30px rgba(217, 119, 6, 0.32);
}

.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.72);
    transform: translateY(-50%) scale(1.04);
}

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

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

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

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

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

.page-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px;
}

.section {
    margin-bottom: 64px;
}

.section-card {
    padding: 30px;
    border-radius: 28px;
    background: var(--site-panel);
    box-shadow: var(--site-shadow);
}

.section-soft {
    padding: 30px;
    border-radius: 28px;
    background: linear-gradient(135deg, #fffbeb, #fff7ed);
    border: 1px solid rgba(245, 158, 11, 0.18);
}

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

.eyebrow {
    margin: 0 0 8px;
    color: var(--site-amber);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

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

.section-desc,
.page-desc {
    max-width: 820px;
    margin: 12px 0 0;
    color: var(--site-muted);
    line-height: 1.8;
}

.text-link {
    color: var(--site-amber);
    font-weight: 800;
}

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

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

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

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

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

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

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

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

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

.poster-label {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 5px 9px;
    border-radius: 8px;
    color: #fff;
    background: rgba(0, 0, 0, 0.68);
    font-size: 12px;
    font-weight: 700;
}

.card-body {
    padding: 16px;
}

.card-title {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 10px;
    overflow: hidden;
    color: #111827;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 850;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-desc {
    display: -webkit-box;
    min-height: 42px;
    margin: 12px 0 0;
    overflow: hidden;
    color: var(--site-muted);
    font-size: 13px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mini-card {
    display: flex;
    gap: 14px;
    min-height: 132px;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.mini-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.15);
}

.mini-card img {
    width: 112px;
    min-width: 112px;
    height: 132px;
    object-fit: cover;
}

.mini-body {
    padding: 14px 14px 14px 0;
}

.mini-title {
    display: -webkit-box;
    margin: 0 0 10px;
    overflow: hidden;
    font-size: 15px;
    font-weight: 850;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.category-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 190px;
    padding: 22px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--site-border);
    box-shadow: 0 12px 24px rgba(120, 53, 15, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 42px rgba(120, 53, 15, 0.14);
}

.category-card h2,
.category-card h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
}

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

.search-panel {
    display: grid;
    gap: 14px;
    margin: 28px 0 34px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.search-panel input {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid rgba(120, 53, 15, 0.16);
    border-radius: 16px;
    color: #111827;
    background: #fff;
    outline: none;
}

.search-panel input:focus {
    border-color: rgba(217, 119, 6, 0.55);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    color: #92400e;
    background: #fef3c7;
    font-size: 13px;
    font-weight: 800;
}

.filter-chip.active,
.filter-chip:hover {
    color: #fff;
    background: var(--site-amber);
}

.empty-state {
    display: none;
    padding: 30px;
    border-radius: 22px;
    text-align: center;
    color: var(--site-muted);
    background: #fff;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 56px 92px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.13);
}

.rank-no {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    font-weight: 900;
}

.rank-poster {
    width: 92px;
    height: 122px;
    border-radius: 14px;
    object-fit: cover;
}

.rank-info h2,
.rank-info h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 900;
}

.rank-info p {
    display: -webkit-box;
    margin: 10px 0 0;
    overflow: hidden;
    color: var(--site-muted);
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.breadcrumb a {
    color: var(--site-amber);
    font-weight: 800;
}

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

.player-card {
    overflow: hidden;
    border-radius: 26px;
    background: #0f172a;
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.36);
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

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

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

.play-button {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 20px 42px rgba(239, 68, 68, 0.36);
    font-size: 34px;
    transform: translateZ(0);
}

.detail-main {
    padding: 28px;
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--site-shadow);
}

.detail-main h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.18;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.detail-main h2,
.sidebar-card h2 {
    margin: 30px 0 14px;
    font-size: 24px;
    font-weight: 900;
}

.detail-main p {
    color: #374151;
    line-height: 1.9;
}

.detail-cover {
    overflow: hidden;
    border-radius: 26px;
    background: #111827;
    box-shadow: var(--site-shadow);
}

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

.sidebar-card {
    margin-top: 22px;
    padding: 22px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 14px;
}

.site-footer {
    color: #d1d5db;
    background: #111827;
}

.footer-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 28px;
}

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

.footer-shell p,
.footer-shell a {
    color: #9ca3af;
    line-height: 1.8;
}

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

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

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

@media (max-width: 760px) {
    .nav-shell {
        padding: 0 16px;
    }

    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: inline-flex;
    }

    .logo {
        font-size: 18px;
    }

    .hero {
        min-height: 560px;
    }

    .hero-content {
        padding: 36px 18px 58px;
    }

    .hero-arrow {
        width: 40px;
        height: 40px;
    }

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

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

    .page-shell {
        padding: 38px 16px;
    }

    .section-card,
    .section-soft,
    .detail-main {
        padding: 20px;
        border-radius: 22px;
    }

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

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

    .card-body {
        padding: 13px;
    }

    .card-title {
        font-size: 14px;
    }

    .card-desc {
        display: none;
    }

    .mini-card {
        min-height: 118px;
    }

    .mini-card img {
        width: 96px;
        min-width: 96px;
        height: 118px;
    }

    .rank-item {
        grid-template-columns: 44px 76px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .rank-no {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .rank-poster {
        width: 76px;
        height: 104px;
    }

    .rank-info h2,
    .rank-info h3 {
        font-size: 16px;
    }

    .rank-info p {
        display: none;
    }

    .footer-shell {
        grid-template-columns: 1fr;
        padding: 34px 18px;
    }
}

@media (max-width: 430px) {
    .grid-6,
    .grid-5,
    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
}
