* {
    box-sizing: border-box;
}

:root {
    --lamp-dark: #0f0f0f;
    --lamp-charcoal: #1a1a1a;
    --lamp-panel: #241a17;
    --lamp-brown: #4e342e;
    --lamp-warm: #ffa726;
    --lamp-gold: #ffb74d;
    --lamp-beige: #d7ccc8;
    --text-soft: rgba(215, 204, 200, 0.72);
    --line-soft: rgba(78, 52, 46, 0.5);
    --shadow-warm: 0 0 24px rgba(255, 167, 38, 0.28);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", sans-serif;
    color: var(--lamp-beige);
    background:
        radial-gradient(circle at 20% -10%, rgba(255, 167, 38, 0.15), transparent 32rem),
        radial-gradient(circle at 88% 8%, rgba(255, 183, 77, 0.12), transparent 28rem),
        var(--lamp-dark);
    line-height: 1.7;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(26, 26, 26, 0.94);
    backdrop-filter: blur(14px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #1a1a1a;
    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.15;
}

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

.brand-text small {
    margin-top: 4px;
    color: rgba(215, 204, 200, 0.62);
    font-size: 12px;
}

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

.main-nav a {
    color: rgba(215, 204, 200, 0.82);
    font-size: 15px;
    font-weight: 650;
    transition: color 0.22s ease;
}

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

.menu-toggle {
    display: none;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    padding: 8px 12px;
    color: var(--lamp-beige);
    background: rgba(255, 255, 255, 0.04);
}

.hero-slider {
    position: relative;
    min-height: 690px;
    overflow: hidden;
    border-bottom: 1px solid var(--line-soft);
    background: #050505;
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 15, 15, 0.98), rgba(15, 15, 15, 0.56), rgba(15, 15, 15, 0.88)),
        linear-gradient(0deg, var(--lamp-dark), transparent 42%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 720px;
    padding-top: 72px;
}

.hero-kicker,
.section-kicker {
    margin: 0 0 12px;
    color: var(--lamp-gold);
    letter-spacing: 0.08em;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

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

.hero-content p,
.page-hero p,
.feature-card p,
.category-overview-card p,
.detail-one-line {
    color: var(--text-soft);
}

.hero-content p {
    max-width: 660px;
    margin: 22px 0;
    font-size: 20px;
}

.hero-tags,
.card-tags,
.detail-tags,
.feature-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.card-tags span,
.detail-tags a,
.feature-links a,
.card-meta span,
.poster-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 167, 38, 0.24);
    background: rgba(255, 167, 38, 0.12);
    color: rgba(255, 219, 166, 0.92);
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span,
.detail-tags a,
.feature-links a {
    padding: 6px 12px;
}

.card-tags span,
.card-meta span {
    padding: 4px 9px;
}

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

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

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

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

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

.hero-control {
    position: absolute;
    left: 50%;
    bottom: 42px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.hero-dots {
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 38px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(215, 204, 200, 0.28);
}

.hero-dot.is-active {
    background: linear-gradient(90deg, var(--lamp-warm), var(--lamp-gold));
}

.hero-search input,
.toolbar input,
.toolbar select {
    width: 100%;
    border: 1px solid rgba(255, 183, 77, 0.24);
    border-radius: 999px;
    outline: none;
    color: var(--lamp-beige);
    background: rgba(26, 26, 26, 0.75);
}

.hero-search input {
    width: min(420px, 48vw);
    padding: 13px 18px;
}

.section {
    padding: 74px 0;
}

.section-raised {
    background: linear-gradient(180deg, rgba(36, 26, 23, 0.52), rgba(15, 15, 15, 0));
}

.section-head,
.page-hero-inner,
.category-overview-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.section-head.tight {
    margin-bottom: 18px;
}

.section-head h2,
.feature-card h2,
.category-overview-card h2,
.detail-content h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.15;
}

.section-link {
    color: var(--lamp-gold);
    font-weight: 750;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    background: rgba(26, 26, 26, 0.74);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.28);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

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

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 10%, rgba(255, 183, 77, 0.26), transparent 22rem),
        linear-gradient(135deg, #211713, #060606);
}

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

.movie-card:hover .poster-frame img,
.category-tile:hover img {
    transform: scale(1.07);
}

img.cover-hidden {
    opacity: 0;
}

.poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    backdrop-filter: blur(8px);
}

.poster-play {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #1a1a1a;
    background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
    box-shadow: var(--shadow-warm);
}

.movie-card-body {
    padding: 17px;
}

.movie-card h2 {
    margin: 12px 0 8px;
    color: #fff;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card p {
    min-height: 58px;
    margin: 0 0 14px;
    color: rgba(215, 204, 200, 0.72);
    font-size: 14px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 28px;
}

.rank-panel,
.feature-card,
.category-overview-card,
.detail-content article,
.player-shell {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-xl);
    background: rgba(26, 26, 26, 0.74);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.rank-panel,
.feature-card,
.category-overview-card,
.detail-content article {
    padding: 28px;
}

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

.hot-list a {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 14px;
    align-items: center;
    border-radius: 16px;
    padding: 13px 14px;
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hot-list a:hover {
    transform: translateX(4px);
    background: rgba(255, 167, 38, 0.12);
}

.hot-list span,
.hot-list em {
    color: var(--lamp-gold);
    font-style: normal;
    font-weight: 850;
}

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

.category-tile {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    background: var(--lamp-panel);
}

.category-tile img {
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
    opacity: 0.38;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-tile span,
.category-tile p {
    position: absolute;
    left: 18px;
    right: 18px;
}

.category-tile span {
    bottom: 70px;
    color: #fff;
    font-size: 22px;
    font-weight: 850;
}

.category-tile p {
    bottom: 18px;
    margin: 0;
    color: rgba(215, 204, 200, 0.8);
    font-size: 13px;
}

.page-hero,
.detail-hero {
    padding: 86px 0 58px;
    border-bottom: 1px solid var(--line-soft);
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 167, 38, 0.18), transparent 36rem),
        linear-gradient(180deg, rgba(78, 52, 46, 0.35), rgba(15, 15, 15, 0));
}

.small-hero h1,
.category-hero h1,
.rank-hero h1 {
    font-size: clamp(40px, 6vw, 64px);
}

.toolbar {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 16px;
    margin-bottom: 26px;
}

.toolbar input,
.toolbar select {
    min-height: 48px;
    padding: 0 18px;
}

.overview-list {
    display: grid;
    gap: 24px;
}

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

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

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

.rank-row {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 16px;
    align-items: center;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    padding: 12px;
    background: rgba(26, 26, 26, 0.72);
}

.rank-poster {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #211713, #060606);
}

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

.rank-info a {
    display: inline-block;
    color: #fff;
    font-weight: 850;
    font-size: 18px;
}

.rank-info p {
    margin: 6px 0 10px;
    color: rgba(215, 204, 200, 0.72);
}

.detail-grid {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.large-poster {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-warm);
}

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

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

.detail-info h1 {
    font-size: clamp(38px, 6vw, 68px);
}

.detail-one-line {
    max-width: 850px;
    margin: 20px 0 24px;
    font-size: 19px;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 20px;
}

.detail-meta div {
    border: 1px solid rgba(255, 183, 77, 0.18);
    border-radius: 16px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
}

.detail-meta span {
    display: block;
    color: rgba(215, 204, 200, 0.55);
    font-size: 12px;
}

.detail-meta strong {
    color: #fff;
}

.detail-tags {
    margin-bottom: 28px;
}

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

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    background:
        radial-gradient(circle, rgba(255, 167, 38, 0.18), transparent 19rem),
        rgba(0, 0, 0, 0.44);
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
    border: 0;
    border-radius: 999px;
    padding: 16px 26px;
    cursor: pointer;
    color: #1a1a1a;
    background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
    box-shadow: var(--shadow-warm);
    font-weight: 900;
}

.detail-content {
    display: grid;
    gap: 22px;
}

.detail-content p {
    color: rgba(215, 204, 200, 0.78);
    font-size: 17px;
}

.site-footer {
    padding: 48px 0;
    border-top: 1px solid var(--line-soft);
    background: rgba(26, 26, 26, 0.86);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px;
}

.footer-grid h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 18px;
}

.footer-grid p,
.footer-links a {
    color: rgba(215, 204, 200, 0.68);
}

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

.is-filter-hidden {
    display: none !important;
}

@media (max-width: 1024px) {
    .movie-grid,
    .mini-card-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .two-column,
    .detail-grid {
        grid-template-columns: 1fr;
    }

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

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

    .header-inner {
        min-height: 66px;
    }

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

    .main-nav {
        position: absolute;
        left: 12px;
        right: 12px;
        top: 70px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border: 1px solid var(--line-soft);
        border-radius: 18px;
        padding: 10px;
        background: rgba(26, 26, 26, 0.97);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 12px 14px;
        border-radius: 12px;
    }

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

    .hero-content {
        padding-top: 60px;
        justify-content: center;
    }

    .hero-content p {
        font-size: 17px;
    }

    .hero-control {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-search input {
        width: 100%;
    }

    .section,
    .page-hero,
    .detail-hero {
        padding: 52px 0;
    }

    .section-head,
    .page-hero-inner,
    .category-overview-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-grid,
    .mini-card-row,
    .featured-rank-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

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

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

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

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

@media (max-width: 480px) {
    .movie-grid,
    .mini-card-row,
    .featured-rank-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .brand-text small {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}
