:root {
    --lamp-dark: #0f0f0f;
    --lamp-charcoal: #1a1a1a;
    --lamp-brown: #4e342e;
    --lamp-warm: #ffa726;
    --lamp-gold: #ffb74d;
    --lamp-beige: #d7ccc8;
    --lamp-muted: rgba(215, 204, 200, 0.72);
    --lamp-line: rgba(78, 52, 46, 0.45);
    --shadow-warm: 0 0 28px rgba(255, 167, 38, 0.22);
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 0%, rgba(255, 167, 38, 0.10), transparent 34rem),
        radial-gradient(circle at 85% 12%, rgba(78, 52, 46, 0.45), transparent 30rem),
        var(--lamp-dark);
    color: var(--lamp-beige);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body::selection {
    background: rgba(255, 167, 38, 0.28);
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--lamp-line);
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
    color: #2a160c;
    box-shadow: var(--shadow-warm);
    font-size: 16px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

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

.logo-text strong {
    font-size: 22px;
    font-weight: 800;
}

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

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

.nav-link,
.mobile-nav-link {
    color: rgba(215, 204, 200, 0.78);
    font-weight: 600;
    transition: color 0.25s ease, background 0.25s ease;
}

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

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: var(--lamp-gold);
    background: rgba(255, 167, 38, 0.10);
}

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

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

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

.mobile-nav.is-open {
    display: grid;
    gap: 6px;
}

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

.hero-section {
    padding: 32px 0 18px;
}

.hero-shell {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border: 1px solid rgba(255, 167, 38, 0.12);
    border-radius: 26px;
    background: var(--lamp-charcoal);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.hero-slide {
    display: none;
    position: absolute;
    inset: 0;
}

.hero-slide.is-active {
    display: block;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.90) 0%, rgba(0, 0, 0, 0.62) 44%, rgba(0, 0, 0, 0.22) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, transparent 52%);
}

.hero-content {
    position: absolute;
    left: clamp(24px, 7vw, 86px);
    bottom: clamp(30px, 8vw, 72px);
    width: min(680px, calc(100% - 48px));
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--lamp-warm);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--lamp-warm);
    box-shadow: 0 0 18px var(--lamp-warm);
}

.hero-content h1 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.75;
}

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

.hero-meta {
    margin-bottom: 24px;
}

.hero-meta span,
.detail-meta span {
    border: 1px solid rgba(255, 183, 77, 0.18);
    border-radius: 999px;
    background: rgba(78, 52, 46, 0.36);
    color: rgba(255, 255, 255, 0.82);
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 12px;
    padding: 0 20px;
    font-weight: 800;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.primary-button {
    background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
    color: #2a160c;
    box-shadow: var(--shadow-warm);
}

.secondary-button {
    border: 1px solid rgba(215, 204, 200, 0.18);
    background: rgba(0, 0, 0, 0.38);
    color: #ffffff;
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
}

.secondary-button:hover {
    border-color: rgba(255, 183, 77, 0.5);
    color: var(--lamp-gold);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.42);
    color: #ffffff;
    font-size: 34px;
    transform: translateY(-50%);
    transition: opacity 0.25s ease, background 0.25s ease;
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

.hero-arrow:hover {
    background: rgba(255, 167, 38, 0.78);
}

.hero-dots {
    position: absolute;
    right: 26px;
    bottom: 26px;
    display: flex;
    gap: 8px;
}

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

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

.section-block,
.quick-search {
    padding: 28px 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.section-heading h2,
.page-hero h1,
.detail-card h1 {
    margin: 0;
    background: linear-gradient(90deg, var(--lamp-warm), var(--lamp-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-heading h2 {
    font-size: clamp(24px, 3vw, 34px);
}

.section-heading a {
    color: var(--lamp-gold);
    font-weight: 700;
}

.compact-heading {
    margin-bottom: 14px;
}

.filter-toolbar {
    display: grid;
    gap: 14px;
    margin-bottom: 22px;
    border: 1px solid var(--lamp-line);
    border-radius: var(--radius-lg);
    background: rgba(26, 26, 26, 0.82);
    padding: 16px;
}

.search-box {
    display: grid;
    gap: 8px;
}

.search-box span {
    color: var(--lamp-gold);
    font-size: 13px;
    font-weight: 800;
}

.search-box input {
    width: 100%;
    border: 1px solid rgba(255, 183, 77, 0.16);
    border-radius: 12px;
    outline: none;
    background: rgba(15, 15, 15, 0.86);
    color: var(--lamp-beige);
    padding: 13px 14px;
}

.search-box input:focus {
    border-color: rgba(255, 167, 38, 0.76);
    box-shadow: var(--shadow-warm);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-button {
    border: 1px solid rgba(255, 183, 77, 0.14);
    border-radius: 999px;
    background: rgba(78, 52, 46, 0.25);
    color: rgba(215, 204, 200, 0.8);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
}

.filter-button:hover,
.filter-button.is-active {
    border-color: rgba(255, 183, 77, 0.5);
    background: rgba(255, 167, 38, 0.18);
    color: var(--lamp-gold);
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(78, 52, 46, 0.45);
    border-radius: var(--radius-md);
    background: rgba(26, 26, 26, 0.92);
}

.card-hover {
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

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

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--lamp-charcoal);
}

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

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

.movie-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.88));
}

.movie-play {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    min-height: 36px;
    border-radius: 10px;
    background: rgba(255, 167, 38, 0.92);
    color: #2a160c;
    font-size: 13px;
    font-weight: 900;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .movie-play {
    opacity: 1;
    transform: translateY(0);
}

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: grid;
    min-width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
    color: #2a160c;
    font-size: 13px;
    font-weight: 900;
}

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

.movie-card h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.4;
}

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

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

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

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.tag-row span,
.detail-tags span {
    border-radius: 999px;
    background: rgba(78, 52, 46, 0.34);
    color: rgba(215, 204, 200, 0.72);
    padding: 4px 8px;
    font-size: 12px;
}

.two-column-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
}

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

.rank-link {
    display: grid;
    grid-template-columns: auto 58px 1fr;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--lamp-line);
    border-radius: 14px;
    background: rgba(26, 26, 26, 0.88);
    padding: 10px;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.rank-link:hover {
    border-color: rgba(255, 167, 38, 0.45);
    transform: translateX(4px);
}

.rank-number {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 167, 38, 0.16);
    color: var(--lamp-gold);
    font-weight: 900;
}

.rank-link img {
    width: 58px;
    height: 78px;
    border-radius: 9px;
    object-fit: cover;
}

.rank-link strong,
.rank-link em {
    display: block;
}

.rank-link strong {
    color: #ffffff;
    line-height: 1.35;
}

.rank-link em {
    margin-top: 5px;
    color: rgba(215, 204, 200, 0.6);
    font-size: 12px;
    font-style: normal;
}

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

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

.category-tile {
    border: 1px solid rgba(255, 183, 77, 0.14);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(145deg, rgba(255, 167, 38, 0.12), rgba(78, 52, 46, 0.18)),
        rgba(26, 26, 26, 0.86);
    padding: 20px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile span {
    display: block;
    color: var(--lamp-gold);
    font-size: 20px;
    font-weight: 900;
}

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

.page-hero {
    margin-top: 32px;
    border: 1px solid rgba(255, 167, 38, 0.12);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 167, 38, 0.14), rgba(78, 52, 46, 0.18)),
        rgba(26, 26, 26, 0.92);
    padding: clamp(28px, 5vw, 54px);
}

.narrow-hero {
    max-width: 1280px;
}

.page-hero h1 {
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.12;
}

.page-hero p {
    max-width: 780px;
    margin: 16px 0 0;
    color: var(--lamp-muted);
    font-size: 17px;
    line-height: 1.8;
}

.detail-layout {
    padding-top: 32px;
}

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

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

.player-shell {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255, 167, 38, 0.15);
    border-radius: 20px;
    background: #000000;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    border: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.65));
    place-items: center;
}

.player-overlay.is-hidden {
    display: none;
}

.play-circle {
    display: grid;
    width: 84px;
    height: 84px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
    color: #2a160c;
    font-size: 32px;
    font-weight: 900;
    box-shadow: var(--shadow-warm);
}

.player-loading {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5;
    display: none;
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.18);
    border-top-color: var(--lamp-warm);
    border-radius: 999px;
    transform: translate(-50%, -50%);
    animation: spin 0.85s linear infinite;
}

.player-loading.is-visible {
    display: block;
}

.player-error {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 6;
    display: none;
    width: min(88%, 520px);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.82);
    color: var(--lamp-beige);
    padding: 18px;
    text-align: center;
    transform: translate(-50%, -50%);
}

.player-error.is-visible {
    display: block;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.detail-card {
    margin-top: 24px;
    border: 1px solid var(--lamp-line);
    border-radius: 20px;
    background: rgba(26, 26, 26, 0.92);
    padding: clamp(22px, 4vw, 36px);
}

.detail-card h1 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.18;
}

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

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

.detail-card section {
    border-top: 1px solid var(--lamp-line);
    padding-top: 24px;
    margin-top: 24px;
}

.detail-card h2 {
    margin: 0 0 14px;
    color: var(--lamp-warm);
    font-size: 22px;
}

.detail-card p {
    margin: 0;
    color: rgba(215, 204, 200, 0.82);
    font-size: 16px;
    line-height: 1.9;
}

.detail-card .lead-text {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

.empty-state {
    display: none;
    border: 1px dashed rgba(255, 183, 77, 0.25);
    border-radius: 16px;
    color: var(--lamp-muted);
    margin-top: 20px;
    padding: 24px;
    text-align: center;
}

.empty-state.is-visible {
    display: block;
}

.site-footer {
    margin-top: 52px;
    border-top: 1px solid var(--lamp-line);
    background: rgba(26, 26, 26, 0.96);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
    padding: 38px 0;
}

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

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

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

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

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

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

[data-search-card].is-hidden {
    display: none;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--lamp-charcoal);
}

::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--lamp-brown);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--lamp-warm);
}

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

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

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

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

    .desktop-nav {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .header-inner {
        height: 66px;
    }

    .logo-text strong {
        font-size: 19px;
    }

    .hero-shell {
        min-height: 560px;
        border-radius: 20px;
    }

    .hero-overlay {
        background:
            linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.38) 78%, rgba(0, 0, 0, 0.18) 100%);
    }

    .hero-content {
        left: 20px;
        right: 20px;
        bottom: 72px;
        width: auto;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-dots {
        left: 20px;
        right: auto;
        bottom: 24px;
    }

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

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

    .movie-card h3 {
        font-size: 15px;
    }

    .movie-card-summary {
        display: none;
    }

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

    .rank-link {
        grid-template-columns: auto 52px 1fr;
    }

    .rank-link img {
        width: 52px;
        height: 70px;
    }

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

    .play-circle {
        width: 68px;
        height: 68px;
        font-size: 26px;
    }
}
