:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(30, 41, 59, 0.46);
    --panel-strong: rgba(15, 23, 42, 0.78);
    --border: rgba(148, 163, 184, 0.18);
    --border-hot: rgba(245, 158, 11, 0.52);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --faint: #94a3b8;
    --amber: #fbbf24;
    --orange: #f97316;
    --red: #ef4444;
    --blue: #38bdf8;
    --green: #22c55e;
    --radius: 18px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 34rem),
        radial-gradient(circle at 85% 12%, rgba(239, 68, 68, 0.12), transparent 28rem),
        linear-gradient(135deg, #020617 0%, #0f172a 45%, #020617 100%);
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(2, 6, 23, 0.78);
    border-bottom: 1px solid rgba(245, 158, 11, 0.18);
    backdrop-filter: blur(18px);
}

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

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

.brand-icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    color: #0f172a;
    font-weight: 900;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.35);
}

.brand-text {
    font-size: 1.28rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #fbbf24, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    color: var(--muted);
    font-weight: 650;
    white-space: nowrap;
}

.desktop-nav a {
    transition: color 0.2s ease;
}

.desktop-nav a:hover {
    color: var(--amber);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.72);
    color: var(--text);
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: var(--muted);
}

.mobile-menu {
    display: none;
    border-top: 1px solid rgba(245, 158, 11, 0.16);
}

.mobile-menu.is-open {
    display: block;
}

.mobile-menu-inner {
    display: grid;
    gap: 8px;
    padding: 14px 0 18px;
}

.mobile-menu a {
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.45);
}

.mobile-menu a:hover {
    color: var(--amber);
    background: rgba(30, 41, 59, 0.7);
}

.hero-carousel {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
    background: #020617;
}

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

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

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

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

.hero-slide-image img.image-hidden {
    opacity: 0;
}

.hero-slide-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 20%, rgba(251, 191, 36, 0.18), transparent 26rem),
        linear-gradient(to top, #020617 0%, rgba(2, 6, 23, 0.92) 12%, rgba(15, 23, 42, 0.58) 52%, rgba(2, 6, 23, 0.18) 100%);
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 86px;
}

.hero-copy {
    width: min(720px, 100%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--amber);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.eyebrow::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--amber);
    box-shadow: 0 0 24px rgba(251, 191, 36, 0.85);
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(2.5rem, 6vw, 5.2rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-shadow: 0 14px 40px rgba(0, 0, 0, 0.58);
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.85;
}

.hero-meta,
.detail-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--faint);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.primary-btn,
.secondary-btn,
.text-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 850;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
    color: #0f172a;
    background: linear-gradient(90deg, #fbbf24, #f97316);
    box-shadow: 0 16px 40px rgba(245, 158, 11, 0.28);
}

.secondary-btn {
    color: var(--text);
    background: rgba(2, 6, 23, 0.44);
    border: 1px solid rgba(248, 250, 252, 0.18);
    backdrop-filter: blur(14px);
}

.text-btn {
    color: var(--amber);
    padding-inline: 0;
}

.primary-btn:hover,
.secondary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(245, 158, 11, 0.22);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 8;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(248, 250, 252, 0.14);
    border-radius: 999px;
    color: #fff;
    background: rgba(2, 6, 23, 0.48);
    backdrop-filter: blur(12px);
    transform: translateY(-50%);
}

.hero-arrow:hover {
    background: rgba(2, 6, 23, 0.72);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
    width: 34px;
    background: var(--amber);
}

.main-stack {
    padding: 72px 0;
}

.section-block {
    margin-bottom: 86px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}

.section-icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    color: #0f172a;
    font-weight: 900;
    background: linear-gradient(135deg, #fbbf24, #f97316);
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(14px);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hot);
    background: rgba(30, 41, 59, 0.62);
}

.poster-link,
.poster-frame {
    display: block;
}

.poster-frame {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 20%, rgba(251, 191, 36, 0.22), transparent 50%),
        linear-gradient(135deg, #111827, #020617);
}

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

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

.poster-frame img.image-hidden,
.compact-poster img.image-hidden,
.detail-poster img.image-hidden {
    opacity: 0;
}

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

.movie-card h3 {
    margin: 0 0 9px;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.38;
}

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

.movie-card p {
    display: -webkit-box;
    min-height: 3.2em;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--faint);
    font-size: 0.92rem;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-meta {
    font-size: 0.82rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.card-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.52);
    font-size: 0.78rem;
}

.movie-card-large .movie-card-body {
    padding: 20px;
}

.movie-card-large h3 {
    font-size: 1.18rem;
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
}

.movie-card-horizontal .poster-frame {
    height: 100%;
    aspect-ratio: auto;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.16), transparent 55%),
        rgba(30, 41, 59, 0.42);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.category-card h3 {
    margin: 0 0 12px;
    font-size: 1.38rem;
}

.category-card p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.75;
}

.category-card ul {
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.category-card li a {
    color: var(--faint);
}

.category-card li a:hover {
    color: var(--amber);
}

.page-hero {
    border-bottom: 1px solid rgba(245, 158, 11, 0.16);
    background:
        radial-gradient(circle at 20% 15%, rgba(251, 191, 36, 0.16), transparent 26rem),
        linear-gradient(90deg, rgba(245, 158, 11, 0.1), rgba(249, 115, 22, 0.06), transparent);
}

.page-hero .container {
    padding: 68px 0;
}

.page-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.06;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.85;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 190px 190px;
    gap: 14px;
    margin-bottom: 30px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.66);
    backdrop-filter: blur(14px);
}

.filter-bar label {
    display: grid;
    gap: 8px;
    color: var(--faint);
    font-size: 0.86rem;
    font-weight: 700;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    color: var(--text);
    outline: none;
    background: rgba(2, 6, 23, 0.58);
    padding: 0 13px;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--border-hot);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.13);
}

.no-results {
    display: none;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 18px;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.58);
    text-align: center;
}

.no-results.is-visible {
    display: block;
}

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

.rank-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.42);
}

.rank-no {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    color: #0f172a;
    font-weight: 900;
    background: linear-gradient(135deg, #fbbf24, #f97316);
}

.rank-title strong {
    display: block;
    margin-bottom: 4px;
}

.rank-title small {
    color: var(--faint);
}

.rank-score {
    color: var(--amber);
    font-weight: 900;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.42);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
    border-color: var(--border-hot);
    transform: translateY(-2px);
}

.compact-poster {
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #111827, #020617);
}

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

.compact-card strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
}

.compact-card small {
    color: var(--faint);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0;
    color: var(--faint);
    font-size: 0.92rem;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.86fr);
    gap: 32px;
    align-items: start;
}

.stream-player {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 24px;
    background: #000;
    box-shadow: var(--shadow);
}

.stream-player video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    border: 0;
    color: #fff;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.2));
}

.play-layer.is-hidden {
    display: none;
}

.play-disc {
    position: relative;
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 22px 50px rgba(245, 158, 11, 0.34);
}

.play-icon {
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 24px solid #0f172a;
}

.play-title {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.58);
    color: var(--text);
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.detail-main h1 {
    margin: 32px 0 16px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
}

.lead-card,
.content-card,
.side-card {
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--panel);
    backdrop-filter: blur(14px);
}

.lead-card {
    margin: 18px 0 24px;
    padding: 18px 20px;
    color: var(--amber);
    font-size: 1.06rem;
    font-weight: 750;
    line-height: 1.75;
}

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

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

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

.content-card h2,
.side-card h2 {
    margin: 0 0 15px;
    color: var(--amber);
    font-size: 1.28rem;
}

.content-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
    white-space: pre-line;
}

.side-card {
    position: sticky;
    top: 94px;
    padding: 22px;
}

.detail-poster {
    display: block;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 18px;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #111827, #020617);
}

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

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

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

.info-list dt {
    color: var(--faint);
    font-size: 0.82rem;
}

.info-list dd {
    margin: 0;
    color: var(--text);
}

.related-section {
    margin-top: 72px;
}

.site-footer {
    margin-top: 80px;
    border-top: 1px solid rgba(245, 158, 11, 0.18);
    background: rgba(2, 6, 23, 0.82);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 36px;
    padding: 52px 0 34px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--amber);
    font-size: 1.1rem;
}

.site-footer p {
    margin: 0;
    color: var(--faint);
    line-height: 1.8;
}

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

.footer-links a {
    color: var(--faint);
}

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

.footer-bottom {
    padding: 22px 0 34px;
    border-top: 1px solid rgba(245, 158, 11, 0.14);
    text-align: center;
}

.footer-bottom p {
    color: #64748b;
}

@media (max-width: 1180px) {
    .desktop-nav {
        gap: 12px;
        font-size: 0.92rem;
    }

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

@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-carousel {
        min-height: 520px;
        height: 68vh;
    }

    .hero-content {
        padding-bottom: 78px;
    }

    .hero-arrow {
        display: none;
    }

    .movie-grid,
    .movie-grid.medium,
    .category-grid,
    .rank-grid,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .side-card {
        position: static;
    }
}

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

    .brand-text {
        font-size: 1.1rem;
    }

    .hero-carousel {
        min-height: 560px;
        height: 72vh;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: 2.45rem;
    }

    .hero-meta,
    .hero-actions {
        gap: 10px;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
    }

    .movie-grid,
    .movie-grid.medium,
    .category-grid,
    .rank-grid,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal {
        grid-template-columns: 115px minmax(0, 1fr);
    }

    .rank-item {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .rank-score {
        grid-column: 2;
    }

    .main-stack {
        padding: 52px 0;
    }
}
