:root {
    --lamp-dark: #0f0f0f;
    --lamp-charcoal: #1a1a1a;
    --lamp-card: #201916;
    --lamp-brown: #4e342e;
    --lamp-warm: #ffa726;
    --lamp-gold: #ffb74d;
    --lamp-beige: #d7ccc8;
    --lamp-muted: rgba(215, 204, 200, 0.68);
    --lamp-soft: rgba(255, 167, 38, 0.18);
    --shadow-warm: 0 0 24px rgba(255, 167, 38, 0.18);
    --radius-xl: 22px;
    --radius-lg: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--lamp-beige);
    background:
        radial-gradient(circle at 14% 8%, rgba(255, 167, 38, 0.12), transparent 30%),
        radial-gradient(circle at 86% 22%, rgba(78, 52, 46, 0.28), transparent 32%),
        var(--lamp-dark);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 15, 15, 0.86);
    border-bottom: 1px solid rgba(78, 52, 46, 0.56);
    backdrop-filter: blur(14px);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fff;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #1b120d;
    background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
    box-shadow: var(--shadow-warm);
}

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

.nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: rgba(215, 204, 200, 0.78);
    transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--lamp-gold);
    background: rgba(78, 52, 46, 0.35);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(78, 52, 46, 0.75);
    border-radius: 14px;
    color: var(--lamp-gold);
    background: rgba(26, 26, 26, 0.85);
}

.mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
    border-radius: 2px;
}

.hero {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    border-bottom: 1px solid rgba(78, 52, 46, 0.42);
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    background-position: center;
    background-size: cover;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 15, 15, 0.96) 0%, rgba(15, 15, 15, 0.78) 44%, rgba(15, 15, 15, 0.25) 100%),
        linear-gradient(0deg, var(--lamp-dark) 0%, rgba(15, 15, 15, 0) 34%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 610px;
    display: grid;
    align-content: center;
    max-width: 700px;
    padding: 92px 0 110px;
}

.hero-eyebrow,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 167, 38, 0.32);
    border-radius: 999px;
    color: var(--lamp-gold);
    background: rgba(255, 167, 38, 0.08);
    font-size: 13px;
    letter-spacing: 0.08em;
}

.hero h1,
.page-title {
    margin: 18px 0 18px;
    color: #fff;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.text-gradient {
    color: transparent;
    background: linear-gradient(90deg, var(--lamp-warm), var(--lamp-gold));
    -webkit-background-clip: text;
    background-clip: text;
}

.hero p {
    max-width: 650px;
    margin: 0 0 24px;
    color: rgba(229, 231, 235, 0.86);
    font-size: 18px;
}

.meta-row,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border: 1px solid rgba(78, 52, 46, 0.7);
    border-radius: 999px;
    color: rgba(215, 204, 200, 0.86);
    background: rgba(26, 26, 26, 0.66);
    font-size: 13px;
}

.pill.gold {
    color: #1a120d;
    border-color: transparent;
    background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
    font-weight: 700;
}

.hero-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: 44px;
    padding: 11px 18px;
    border: 1px solid rgba(255, 167, 38, 0.28);
    border-radius: 999px;
    color: #1a120d;
    background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
    box-shadow: var(--shadow-warm);
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 34px rgba(255, 167, 38, 0.24);
}

.btn.ghost {
    color: var(--lamp-gold);
    background: rgba(26, 26, 26, 0.68);
    box-shadow: none;
}

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

.hero-dot {
    width: 38px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(215, 204, 200, 0.32);
    transition: background 0.2s ease, width 0.2s ease;
}

.hero-dot.active {
    width: 58px;
    background: var(--lamp-warm);
}

.section {
    padding: 64px 0;
}

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

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

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

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

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    border: 1px solid rgba(78, 52, 46, 0.5);
    border-radius: var(--radius-lg);
    background: rgba(26, 26, 26, 0.76);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 167, 38, 0.45);
    box-shadow: var(--shadow-warm);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: rgba(78, 52, 46, 0.2);
}

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

.movie-card:hover img {
    transform: scale(1.07);
    filter: brightness(1.08);
}

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 48%);
}

.card-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 2;
    padding: 4px 9px;
    border-radius: 999px;
    color: #1a120d;
    background: var(--lamp-gold);
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    padding: 14px;
}

.card-title {
    margin: 0 0 8px;
    color: #fff;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 800;
}

.card-title a:hover {
    color: var(--lamp-gold);
}

.card-meta {
    color: rgba(215, 204, 200, 0.56);
    font-size: 13px;
}

.card-desc {
    display: -webkit-box;
    min-height: 44px;
    margin-top: 8px;
    overflow: hidden;
    color: rgba(215, 204, 200, 0.68);
    font-size: 13px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.category-card {
    min-height: 178px;
    padding: 24px;
    border: 1px solid rgba(78, 52, 46, 0.55);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(255, 167, 38, 0.1), rgba(78, 52, 46, 0.14)),
        rgba(26, 26, 26, 0.78);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 167, 38, 0.44);
    box-shadow: var(--shadow-warm);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 22px;
}

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

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
    gap: 12px;
    margin: 24px 0 30px;
    padding: 16px;
    border: 1px solid rgba(78, 52, 46, 0.5);
    border-radius: var(--radius-xl);
    background: rgba(26, 26, 26, 0.72);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(78, 52, 46, 0.72);
    border-radius: 14px;
    color: var(--lamp-beige);
    outline: none;
    background: rgba(15, 15, 15, 0.78);
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(255, 167, 38, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 167, 38, 0.1);
}

.page-hero {
    padding: 64px 0 26px;
    border-bottom: 1px solid rgba(78, 52, 46, 0.42);
    background:
        radial-gradient(circle at 80% 0%, rgba(255, 167, 38, 0.13), transparent 30%),
        rgba(15, 15, 15, 0.56);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: rgba(215, 204, 200, 0.58);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--lamp-gold);
}

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

.player-card,
.content-card,
.side-card {
    border: 1px solid rgba(78, 52, 46, 0.52);
    border-radius: var(--radius-xl);
    background: rgba(26, 26, 26, 0.76);
    overflow: hidden;
}

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

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

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #1a120d;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.18));
    cursor: pointer;
}

.play-cover[hidden] {
    display: none;
}

.play-cover span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
    box-shadow: 0 0 32px rgba(255, 167, 38, 0.28);
    font-size: 32px;
    font-weight: 900;
}

.player-title {
    padding: 18px 20px;
}

.player-title h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 22px;
}

.player-title p {
    margin: 0;
    color: var(--lamp-muted);
}

.content-card {
    padding: 24px;
    margin-top: 22px;
}

.content-card h2,
.side-card h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 24px;
}

.content-card p {
    margin: 0 0 16px;
    color: rgba(215, 204, 200, 0.82);
}

.side-card {
    padding: 18px;
}

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

.info-item {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(78, 52, 46, 0.42);
}

.info-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.info-label {
    color: rgba(215, 204, 200, 0.52);
}

.info-value {
    color: rgba(255, 255, 255, 0.9);
}

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

.related-item {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(15, 15, 15, 0.54);
    transition: background 0.2s ease;
}

.related-item:hover {
    background: rgba(78, 52, 46, 0.28);
}

.related-item img {
    width: 76px;
    height: 96px;
    object-fit: cover;
    border-radius: 12px;
}

.related-item h3 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 15px;
    line-height: 1.35;
}

.related-item p {
    margin: 0;
    color: rgba(215, 204, 200, 0.58);
    font-size: 13px;
}

.rank-card {
    display: grid;
    grid-template-columns: 126px 1fr;
    gap: 18px;
    padding: 14px;
    border: 1px solid rgba(78, 52, 46, 0.5);
    border-radius: var(--radius-lg);
    background: rgba(26, 26, 26, 0.78);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.rank-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 167, 38, 0.42);
}

.rank-card img {
    width: 126px;
    height: 168px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-number {
    color: var(--lamp-warm);
    font-size: 26px;
    font-weight: 900;
}

.site-footer {
    margin-top: 50px;
    padding: 38px 0;
    border-top: 1px solid rgba(78, 52, 46, 0.48);
    color: rgba(215, 204, 200, 0.55);
    background: rgba(15, 15, 15, 0.76);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

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

.footer-links a:hover {
    color: var(--lamp-gold);
}

.empty-state {
    display: none;
    padding: 34px;
    text-align: center;
    border: 1px solid rgba(78, 52, 46, 0.5);
    border-radius: var(--radius-xl);
    color: var(--lamp-muted);
    background: rgba(26, 26, 26, 0.72);
}

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

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

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

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

@media (max-width: 780px) {
    .mobile-toggle {
        display: inline-grid;
        place-items: center;
    }

    .nav {
        position: fixed;
        inset: 72px 16px auto 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border: 1px solid rgba(78, 52, 46, 0.65);
        border-radius: 20px;
        background: rgba(15, 15, 15, 0.96);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    }

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

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

    .hero-content {
        padding: 74px 0 96px;
    }

    .section {
        padding: 46px 0;
    }

    .section-head {
        display: block;
    }

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

    .category-grid,
    .rank-grid {
        grid-template-columns: 1fr;
    }

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

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

    .rank-card img {
        width: 96px;
        height: 128px;
    }
}

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

    .logo {
        font-size: 18px;
    }

    .hero h1,
    .page-title {
        font-size: 36px;
    }

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

    .card-body {
        padding: 12px;
    }

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

    .content-card {
        padding: 18px;
    }
}
