:root {
    --bg: #fffaf2;
    --bg-soft: #fff7ed;
    --panel: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(245, 158, 11, 0.25);
    --brand: #d97706;
    --brand-strong: #ea580c;
    --brand-soft: #fef3c7;
    --accent: #f59e0b;
    --shadow: 0 18px 45px rgba(146, 64, 14, 0.14);
    --radius: 22px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 8%, rgba(251, 191, 36, 0.18), transparent 30%),
        radial-gradient(circle at 85% 0%, rgba(249, 115, 22, 0.12), transparent 34%),
        linear-gradient(180deg, #fffaf2 0%, #ffffff 46%, #fffaf2 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 247, 237, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--brand-strong));
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.28);
}

.brand-name {
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand);
    background: rgba(245, 158, 11, 0.12);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.12);
    padding: 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--brand);
    border-radius: 999px;
}

.hero {
    position: relative;
    min-height: 88vh;
    display: grid;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 45%, #ffffff 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(4px);
    pointer-events: none;
}

.hero::before {
    width: 420px;
    height: 420px;
    left: -120px;
    top: 80px;
    background: rgba(251, 191, 36, 0.18);
}

.hero::after {
    width: 520px;
    height: 520px;
    right: -160px;
    bottom: -120px;
    background: rgba(249, 115, 22, 0.16);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
    gap: 42px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #92400e;
    background: rgba(254, 243, 199, 0.9);
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.hero h1,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(2.35rem, 7vw, 5.6rem);
    line-height: 1.02;
    letter-spacing: -0.06em;
    font-weight: 950;
    background: linear-gradient(135deg, #b45309, #f97316 50%, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    max-width: 680px;
    margin: 24px 0 0;
    color: #4b5563;
    font-size: clamp(1.06rem, 2.2vw, 1.35rem);
}

.hero-actions,
.section-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--brand-strong));
    box-shadow: 0 16px 34px rgba(234, 88, 12, 0.28);
}

.btn-secondary {
    color: var(--brand);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(245, 158, 11, 0.42);
}

.btn:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 18px 36px rgba(146, 64, 14, 0.18);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 620px;
    margin-top: 36px;
}

.hero-stats a,
.hero-stats span {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    box-shadow: 0 14px 34px rgba(146, 64, 14, 0.08);
}

.hero-stats strong {
    display: block;
    color: #92400e;
    font-size: 1.3rem;
    line-height: 1.1;
}

.hero-stats small {
    display: block;
    color: var(--muted);
    margin-top: 5px;
}

.hero-slider {
    position: relative;
    min-height: 560px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: end;
    border-radius: 34px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    transition: opacity 0.55s ease, transform 0.55s ease;
    box-shadow: var(--shadow);
    background: #111827;
}

.hero-slide.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.48) 52%, rgba(0, 0, 0, 0.82) 100%),
        linear-gradient(135deg, rgba(245, 158, 11, 0.22), transparent 48%);
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    color: #ffffff;
}

.hero-slide-content h2 {
    margin: 12px 0 8px;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1.08;
    font-weight: 950;
}

.hero-slide-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
}

.hero-pills,
.card-meta,
.rank-meta,
.detail-meta,
.breadcrumbs,
.tag-row,
.tag-cloud {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-pills span,
.tag-row span,
.detail-meta span,
.rank-meta span,
.rank-meta a,
.breadcrumbs a,
.breadcrumbs span,
.tag-cloud a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    color: #92400e;
    background: rgba(254, 243, 199, 0.92);
}

.hero-dots {
    position: absolute;
    z-index: 3;
    right: 22px;
    top: 22px;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    padding: 0;
}

.hero-dot.active {
    width: 30px;
    background: #ffffff;
}

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

.section-wide {
    padding: 72px 0;
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(255, 251, 235, 0.92));
}

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

.section-head h2,
.page-section h2,
.detail-section h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3.2vw, 2.5rem);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.section-head p,
.page-hero p,
.page-section > p,
.detail-section p {
    margin: 8px 0 0;
    color: var(--muted);
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 32px rgba(146, 64, 14, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.48);
    box-shadow: var(--shadow);
}

.card-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

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

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

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

.play-mark {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--brand-strong));
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    min-width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #b45309);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.card-body {
    padding: 16px;
}

.card-meta {
    color: var(--muted);
    font-size: 0.82rem;
    margin-bottom: 9px;
}

.card-meta a,
.card-meta span {
    color: #92400e;
}

.card-body h3 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.3;
    font-weight: 900;
}

.card-body h3 a:hover,
.rank-copy h2 a:hover {
    color: var(--brand);
}

.card-body p {
    min-height: 48px;
    margin: 8px 0 12px;
    color: var(--muted);
    font-size: 0.94rem;
}

.tag-row span {
    background: #fff7ed;
}

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

.category-tile {
    display: grid;
    gap: 12px;
    min-height: 220px;
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 32px rgba(146, 64, 14, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

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

.category-covers img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    background: #fed7aa;
}

.category-title {
    color: #92400e;
    font-size: 1.24rem;
    font-weight: 950;
}

.category-desc {
    color: var(--muted);
    font-size: 0.92rem;
}

.page-hero {
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
    border-bottom: 1px solid var(--line);
}

.page-hero-inner {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 58px 0 46px;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 4.4rem);
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-top: 24px;
}

.search-input {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 0 18px;
    outline: none;
    color: var(--text);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 28px rgba(146, 64, 14, 0.08);
}

.search-input:focus {
    border-color: rgba(245, 158, 11, 0.72);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 86px 48px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 24px rgba(146, 64, 14, 0.07);
}

.rank-cover {
    overflow: hidden;
    border-radius: 16px;
    background: #fed7aa;
}

.rank-cover img {
    width: 86px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.rank-number {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 950;
    background: linear-gradient(135deg, var(--accent), var(--brand-strong));
}

.rank-copy h2 {
    margin: 0 0 6px;
    font-size: 1.12rem;
    line-height: 1.25;
}

.rank-copy p {
    margin: 0 0 8px;
    color: var(--muted);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    background: #111827;
    color: #ffffff;
}

.detail-bg {
    position: absolute;
    inset: 0;
    opacity: 0.32;
    filter: blur(12px);
    transform: scale(1.05);
}

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

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.98) 0%, rgba(17, 24, 39, 0.82) 50%, rgba(17, 24, 39, 0.38) 100%),
        linear-gradient(180deg, rgba(146, 64, 14, 0.28), transparent 70%);
}

.detail-inner {
    position: relative;
    z-index: 2;
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 58px;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
    background: #fed7aa;
}

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

.breadcrumbs {
    margin-bottom: 16px;
}

.detail-title h1 {
    color: #ffffff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    font-size: clamp(2.2rem, 5.2vw, 4.6rem);
}

.detail-title .summary-line {
    max-width: 780px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
}

.detail-meta {
    margin-top: 18px;
}

.detail-layout {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0 76px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.detail-main,
.detail-aside,
.player-card,
.content-card {
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 38px rgba(146, 64, 14, 0.08);
}

.player-card {
    overflow: hidden;
    margin-bottom: 24px;
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
    color: #ffffff;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.65)),
        rgba(17, 24, 39, 0.28);
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-trigger {
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--brand-strong));
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.32);
}

.play-trigger span {
    margin-left: 5px;
    font-size: 2rem;
}

.player-caption {
    padding: 18px 22px 22px;
}

.player-caption h2 {
    margin: 0;
    font-size: 1.45rem;
}

.player-caption p {
    margin: 8px 0 0;
    color: var(--muted);
}

.content-card,
.detail-aside {
    padding: 24px;
}

.detail-section + .detail-section {
    margin-top: 28px;
}

.detail-section h2 {
    font-size: 1.55rem;
}

.detail-section p {
    color: #374151;
}

.info-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.13);
}

.info-list dt {
    color: var(--muted);
}

.info-list dd {
    margin: 0;
    font-weight: 800;
}

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

.site-footer {
    margin-top: 36px;
    color: #ffffff;
    background: linear-gradient(135deg, #78350f, #9a3412 52%, #7c2d12);
}

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

.footer-brand p {
    max-width: 460px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.78);
}

.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.82);
}

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

.footer-bottom {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

.empty-state {
    padding: 32px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    color: var(--muted);
    text-align: center;
}

@media (max-width: 1100px) {
    .hero-inner,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-slider {
        min-height: 520px;
    }

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

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

@media (max-width: 780px) {
    .top-nav {
        width: min(100% - 24px, var(--max));
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 68px;
        left: 12px;
        right: 12px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-link {
        border-radius: 14px;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner,
    .detail-inner {
        grid-template-columns: 1fr;
        padding: 42px 0;
    }

    .hero-slider {
        min-height: 460px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

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

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

    .detail-inner {
        align-items: start;
    }

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

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

    .rank-cover img {
        width: 72px;
    }

    .rank-number,
    .rank-item .text-link {
        display: none;
    }

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

@media (max-width: 520px) {
    .brand-name {
        font-size: 1.05rem;
    }

    .hero-actions,
    .section-actions,
    .detail-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-slider {
        min-height: 420px;
    }

    .hero-slide-content {
        padding: 22px;
    }

    .movie-grid,
    .movie-grid.featured-grid,
    .category-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .page-hero-inner,
    .section,
    .page-section,
    .detail-layout {
        width: min(100% - 24px, var(--max));
    }
}
