:root {
    color-scheme: dark;
    --lamp-dark: #0f0f0f;
    --lamp-charcoal: #1a1a1a;
    --lamp-card: #211816;
    --lamp-brown: #4e342e;
    --lamp-warm: #ffa726;
    --lamp-gold: #ffb74d;
    --lamp-beige: #d7ccc8;
    --lamp-muted: rgba(215, 204, 200, 0.68);
    --lamp-line: rgba(78, 52, 46, 0.45);
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.32);
    --shadow-warm: 0 16px 42px rgba(255, 167, 38, 0.18);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% -10%, rgba(255, 167, 38, 0.14), transparent 35%),
        radial-gradient(circle at 90% 5%, rgba(255, 183, 77, 0.10), transparent 32%),
        linear-gradient(180deg, #120f0e 0%, var(--lamp-dark) 45%, #090909 100%);
    color: var(--lamp-beige);
}

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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(26, 26, 26, 0.94);
    border-bottom: 1px solid var(--lamp-line);
    backdrop-filter: blur(16px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #1a120c;
    font-weight: 900;
    background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
    box-shadow: var(--shadow-warm);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

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

.brand-text strong {
    font-size: 22px;
    letter-spacing: 0.02em;
}

.brand-text em {
    margin-top: 4px;
    color: rgba(215, 204, 200, 0.58);
    font-size: 12px;
    font-style: normal;
}

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

.desktop-nav a,
.mobile-nav a {
    color: rgba(215, 204, 200, 0.78);
    font-size: 15px;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--lamp-gold);
}

.mobile-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--lamp-line);
    border-radius: 12px;
    background: rgba(78, 52, 46, 0.25);
    color: var(--lamp-beige);
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--lamp-line);
    padding: 12px 16px 18px;
    background: rgba(26, 26, 26, 0.98);
}

.mobile-nav a {
    display: block;
    padding: 12px 0;
}

.hero-shell {
    padding: 34px 0 26px;
}

.hero-carousel {
    position: relative;
    min-height: 540px;
    border-radius: 28px;
    overflow: hidden;
    background: #050505;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 183, 77, 0.13);
}

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

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

.hero-slide img {
    position: absolute;
    inset: 0;
    filter: saturate(1.08) contrast(1.03);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.58) 45%, rgba(0, 0, 0, 0.15) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, transparent 58%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 540px;
    max-width: 700px;
    padding: 70px 56px;
}

.hero-kicker,
.eyebrow {
    color: var(--lamp-gold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 900;
}

.hero-content h1 {
    margin: 14px 0 16px;
    font-size: clamp(36px, 5vw, 68px);
    line-height: 1;
    color: #fff;
}

.hero-content p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    line-height: 1.8;
}

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

.hero-meta span,
.meta-line span,
.detail-meta span {
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(78, 52, 46, 0.42);
    color: var(--lamp-beige);
    font-size: 13px;
}

.hero-actions,
.section-head,
.filter-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-ghost,
.search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-radius: 14px;
    padding: 0 20px;
    font-weight: 900;
    border: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary,
.search-submit {
    background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
    color: #1a120c;
    box-shadow: var(--shadow-warm);
}

.btn-primary:hover,
.search-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 50px rgba(255, 167, 38, 0.26);
}

.btn-ghost {
    border: 1px solid rgba(255, 183, 77, 0.35);
    background: rgba(0, 0, 0, 0.38);
    color: var(--lamp-gold);
}

.btn-ghost:hover {
    background: rgba(255, 167, 38, 0.14);
}

.hero-search {
    position: absolute;
    z-index: 3;
    right: 34px;
    bottom: 34px;
    width: min(420px, calc(100% - 68px));
    display: flex;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(26, 26, 26, 0.78);
    border: 1px solid rgba(255, 183, 77, 0.18);
    backdrop-filter: blur(12px);
}

.hero-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--lamp-line);
    border-radius: 14px;
    outline: 0;
    background: rgba(15, 15, 15, 0.86);
    color: var(--lamp-beige);
    padding: 0 14px;
}

.hero-dots {
    position: absolute;
    z-index: 4;
    left: 56px;
    bottom: 34px;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

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

.section {
    padding: 38px 0;
}

.section-head {
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title h2,
.page-title h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.15;
}

.section-title p,
.page-title p {
    margin: 8px 0 0;
    color: var(--lamp-muted);
    line-height: 1.7;
}

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

.movie-card {
    min-width: 0;
}

.poster-frame {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(78, 52, 46, 0.48), rgba(0, 0, 0, 0.46));
    border: 1px solid rgba(255, 183, 77, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.poster-frame img,
.mini-poster img,
.rank-row img,
.detail-cover img {
    transition: transform 0.36s ease;
}

.poster-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.05));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.poster-play {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: rgba(255, 167, 38, 0.95);
    color: #1b1208;
    font-size: 20px;
    box-shadow: var(--shadow-warm);
}

.type-badge,
.rank-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 2;
    border-radius: 999px;
    padding: 5px 9px;
    background: rgba(0, 0, 0, 0.58);
    color: var(--lamp-gold);
    font-size: 12px;
    font-weight: 900;
}

.rank-badge {
    left: auto;
    right: 10px;
    background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
    color: #1b1208;
}

.movie-card-body {
    padding-top: 10px;
}

.movie-card h3,
.mini-card strong {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0 0 7px;
    color: #fff;
    font-size: 15px;
    line-height: 1.45;
    transition: color 0.2s ease;
}

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

.movie-meta {
    gap: 8px;
    color: rgba(215, 204, 200, 0.55);
    font-size: 12px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.tag-row span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: 999px;
    padding: 4px 8px;
    background: rgba(78, 52, 46, 0.38);
    color: rgba(255, 183, 77, 0.9);
    font-size: 12px;
}

.card-hover {
    transition: transform 0.28s ease, filter 0.28s ease;
}

.card-hover:hover {
    transform: translateY(-6px) scale(1.02);
}

.card-hover:hover .poster-layer {
    opacity: 1;
}

.card-hover:hover img,
.mini-card:hover img,
.rank-row:hover img {
    transform: scale(1.08);
}

.card-hover:hover h3,
.mini-card:hover strong,
.rank-row:hover strong {
    color: var(--lamp-gold);
}

.feature-layout {
    display: grid;
    grid-template-columns: 1fr 370px;
    gap: 28px;
}

.rank-panel,
.category-tile,
.info-panel,
.filter-bar,
.detail-box,
.search-empty {
    border: 1px solid var(--lamp-line);
    border-radius: 22px;
    background: rgba(26, 26, 26, 0.72);
    box-shadow: var(--shadow-soft);
}

.rank-panel {
    padding: 20px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 34px 74px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(15, 15, 15, 0.52);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    background: rgba(78, 52, 46, 0.36);
    transform: translateX(4px);
}

.rank-number {
    color: var(--lamp-gold);
    font-weight: 900;
    text-align: center;
}

.rank-row img {
    width: 74px;
    height: 98px;
    border-radius: 12px;
    overflow: hidden;
}

.rank-info {
    min-width: 0;
}

.rank-info strong,
.rank-info em,
.rank-tags,
.mini-card em {
    display: block;
}

.rank-info strong {
    color: #fff;
    font-size: 15px;
}

.rank-info em {
    margin-top: 6px;
    color: rgba(215, 204, 200, 0.62);
    font-size: 12px;
    font-style: normal;
    line-height: 1.5;
}

.rank-tags {
    color: rgba(215, 204, 200, 0.55);
    font-size: 12px;
    white-space: nowrap;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 168px;
    padding: 24px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    right: -36px;
    bottom: -42px;
    width: 138px;
    height: 138px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 167, 38, 0.22), transparent 65%);
}

.category-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 183, 77, 0.38);
}

.category-tile strong {
    display: block;
    color: #fff;
    font-size: 22px;
    margin-bottom: 12px;
}

.category-tile p {
    margin: 0;
    color: var(--lamp-muted);
    line-height: 1.65;
    font-size: 14px;
}

.page-hero {
    padding: 52px 0 20px;
}

.page-title {
    max-width: 820px;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, minmax(140px, 1fr));
    gap: 12px;
    margin: 24px 0 28px;
    padding: 16px;
}

.search-empty {
    display: none;
    padding: 28px;
    text-align: center;
    color: var(--lamp-muted);
}

.search-empty.visible {
    display: block;
}

.detail-hero {
    padding: 34px 0;
}

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

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

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

.player-card {
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    border: 1px solid rgba(255, 183, 77, 0.18);
    box-shadow: var(--shadow-soft);
}

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

.video-shell video {
    width: 100%;
    height: 100%;
    background: #000;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    align-content: center;
    background:
        radial-gradient(circle, rgba(255, 167, 38, 0.16), transparent 34%),
        rgba(0, 0, 0, 0.68);
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-layer.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-button {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
    color: #1b1208;
    font-size: 28px;
    box-shadow: var(--shadow-warm);
    cursor: pointer;
}

.play-layer strong {
    color: #fff;
    font-size: 18px;
}

.player-status {
    position: absolute;
    left: 18px;
    bottom: 18px;
    right: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    text-align: center;
    pointer-events: none;
}

.player-caption {
    padding: 18px 20px 22px;
    background: rgba(26, 26, 26, 0.96);
}

.player-caption h1,
.detail-title h1 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.2;
}

.player-caption p {
    margin: 0;
    color: var(--lamp-muted);
    line-height: 1.75;
}

.detail-side {
    display: grid;
    gap: 18px;
}

.detail-cover {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 22px;
    border: 1px solid rgba(255, 183, 77, 0.16);
    background: rgba(78, 52, 46, 0.3);
    box-shadow: var(--shadow-soft);
}

.info-panel {
    padding: 20px;
}

.info-panel h2,
.detail-box h2,
.rank-panel h2 {
    margin: 0 0 16px;
    color: var(--lamp-gold);
    font-size: 20px;
}

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

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(78, 52, 46, 0.35);
    padding-bottom: 9px;
    color: rgba(215, 204, 200, 0.72);
    font-size: 14px;
}

.info-list strong {
    color: var(--lamp-beige);
    white-space: nowrap;
}

.detail-box {
    margin-top: 28px;
    padding: 26px;
}

.detail-box p {
    margin: 0 0 18px;
    color: rgba(215, 204, 200, 0.86);
    line-height: 1.9;
}

.detail-box p:last-child {
    margin-bottom: 0;
}

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

.mini-card {
    min-width: 0;
}

.mini-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 10px;
    background: rgba(78, 52, 46, 0.32);
}

.mini-poster span {
    position: absolute;
    inset: auto 10px 10px auto;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 167, 38, 0.92);
    color: #1a120c;
}

.mini-card em {
    color: rgba(215, 204, 200, 0.56);
    font-size: 12px;
    font-style: normal;
}

.site-footer {
    margin-top: 58px;
    border-top: 1px solid var(--lamp-line);
    background: rgba(12, 10, 10, 0.92);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px;
    padding: 42px 0;
}

.footer-grid p {
    max-width: 520px;
    color: var(--lamp-muted);
    line-height: 1.8;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: var(--lamp-gold);
    font-size: 17px;
}

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

.footer-links a {
    color: rgba(215, 204, 200, 0.68);
    transition: color 0.2s ease;
}

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

.footer-bottom {
    border-top: 1px solid var(--lamp-line);
    padding: 18px 16px 22px;
    color: rgba(215, 204, 200, 0.45);
    text-align: center;
    font-size: 13px;
}

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

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

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

@media (max-width: 760px) {
    .header-inner {
        height: 66px;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: inline-grid;
        place-items: center;
    }

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

    .brand-text strong {
        font-size: 18px;
    }

    .brand-text em {
        display: none;
    }

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

    .hero-content {
        padding: 42px 24px 150px;
    }

    .hero-search {
        left: 18px;
        right: 18px;
        bottom: 78px;
        width: auto;
        flex-direction: column;
    }

    .hero-dots {
        left: 24px;
        bottom: 32px;
    }

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

    .feature-layout {
        gap: 18px;
    }

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

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

    .rank-row {
        grid-template-columns: 30px 62px 1fr;
    }

    .rank-row img {
        width: 62px;
        height: 82px;
    }

    .rank-tags {
        display: none;
    }

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