:root {
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.86);
    --panel-strong: rgba(15, 23, 42, 0.96);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --amber: #f59e0b;
    --amber-light: #fbbf24;
    --orange: #f97316;
    --red: #ef4444;
    --radius: 22px;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.16), transparent 36rem),
        radial-gradient(circle at 80% 8%, rgba(239, 68, 68, 0.12), transparent 38rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(20px);
}

.nav-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #1f1300;
    background: linear-gradient(135deg, var(--amber-light), var(--orange));
    box-shadow: 0 16px 38px rgba(245, 158, 11, 0.28);
}

.brand-text {
    font-size: 1.18rem;
    background: linear-gradient(135deg, var(--amber-light), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    color: var(--soft);
    font-size: 0.96rem;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--amber-light);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
}

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

.mobile-nav {
    display: none;
    padding: 0 22px 18px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.95);
}

.mobile-nav a {
    display: block;
    padding: 12px 0;
    color: var(--soft);
    font-weight: 800;
}

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

main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 22px 48px;
}

.page-main {
    padding-top: 32px;
}

.hero-section {
    margin: 26px auto 46px;
}

.hero-carousel {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 34px;
    background: #0f172a;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-slide img {
    height: 100%;
    min-height: 72vh;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.76) 38%, rgba(2, 6, 23, 0.24) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.72) 0%, transparent 52%);
}

.hero-content {
    position: absolute;
    left: clamp(24px, 6vw, 78px);
    bottom: clamp(76px, 12vh, 132px);
    max-width: 680px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--amber-light);
    font-weight: 900;
    letter-spacing: 0.06em;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 5.8rem);
    line-height: 0.96;
    font-weight: 950;
    letter-spacing: -0.055em;
}

.hero-content p,
.page-hero p,
.detail-info p {
    margin: 18px 0 0;
    color: var(--soft);
    font-size: 1.08rem;
    line-height: 1.9;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.hero-tags span,
.tag-row span {
    padding: 6px 10px;
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.12);
    font-size: 0.82rem;
    font-weight: 800;
}

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

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.btn-primary {
    color: #211300;
    background: linear-gradient(135deg, var(--amber-light), var(--orange));
    box-shadow: 0 18px 42px rgba(245, 158, 11, 0.28);
}

.btn-ghost {
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.08);
}

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

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 6;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.68);
    backdrop-filter: blur(14px);
}

.hero-controls button {
    border: 0;
    color: var(--text);
    background: transparent;
    font-size: 1.4rem;
    line-height: 1;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
}

.hero-dot.is-active {
    width: 28px;
    background: var(--amber-light);
}

.intro-strip,
.page-hero,
.detail-hero,
.player-section,
.detail-text article,
.link-cloud,
.category-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.68));
    box-shadow: var(--shadow);
}

.intro-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 44px;
    padding: 28px;
}

.intro-strip h2,
.section-head h2,
.link-cloud h2,
.detail-text h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 950;
    letter-spacing: -0.035em;
}

.intro-strip p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.content-section {
    margin: 52px 0;
}

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

.more-link {
    color: var(--amber-light);
    font-weight: 900;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.72);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(251, 191, 36, 0.42);
    box-shadow: 0 24px 64px rgba(245, 158, 11, 0.14);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(2, 6, 23, 0.98));
}

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

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

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    transform: translate(-50%, -50%) scale(0.85);
    color: #1f1300;
    background: var(--amber-light);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #211300;
    background: linear-gradient(135deg, var(--amber-light), var(--orange));
    font-weight: 950;
}

.card-body {
    padding: 14px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--amber-light);
    font-size: 0.78rem;
    font-weight: 900;
}

.card-body h2 {
    margin: 0;
    min-height: 2.9em;
    font-size: 1rem;
    line-height: 1.45;
    font-weight: 900;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-body p {
    min-height: 3.4em;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.category-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #0f172a;
}

.category-tile img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
    opacity: 0.62;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.18));
}

.category-tile span,
.category-tile small {
    position: relative;
    z-index: 2;
}

.category-tile span {
    font-size: 1.3rem;
    font-weight: 950;
}

.category-tile small {
    margin-top: 8px;
    color: var(--soft);
    line-height: 1.7;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 14px;
    margin: 18px 0 24px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.72);
}

.search-panel label {
    display: grid;
    gap: 8px;
    color: var(--soft);
    font-size: 0.86rem;
    font-weight: 900;
}

.search-panel input,
.search-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    outline: 0;
    padding: 0 14px;
    color: var(--text);
    background: rgba(2, 6, 23, 0.68);
}

.search-panel option {
    color: #111827;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--muted);
    font-weight: 800;
}

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

.compact-hero {
    margin-bottom: 28px;
    padding: clamp(28px, 5vw, 54px);
}

.compact-hero h1 {
    font-size: clamp(2.3rem, 5vw, 4.6rem);
}

.category-card {
    padding: 22px;
}

.category-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--text);
    font-size: 1.35rem;
    font-weight: 950;
}

.category-card-head em {
    color: var(--amber-light);
    font-size: 0.88rem;
    font-style: normal;
}

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

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

.mini-card {
    overflow: hidden;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.58);
}

.mini-card img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.mini-card span,
.mini-card small {
    display: block;
    padding: 8px 10px 0;
}

.mini-card span {
    font-weight: 900;
    line-height: 1.4;
}

.mini-card small {
    padding-bottom: 10px;
    color: var(--muted);
}

.category-list,
.ranking-grid {
    margin-top: 20px;
}

.link-cloud {
    margin-top: 34px;
    padding: 24px;
}

.link-cloud div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.link-cloud a {
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--soft);
    background: rgba(255, 255, 255, 0.05);
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 34px;
    padding: clamp(22px, 4vw, 42px);
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    background: #0f172a;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

.detail-poster img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-info h1 {
    font-size: clamp(2.1rem, 5vw, 4.8rem);
}

.lead-text {
    max-width: 820px;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.detail-meta li {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.48);
}

.detail-meta span,
.detail-meta strong {
    display: block;
}

.detail-meta span {
    color: var(--muted);
    font-size: 0.82rem;
}

.detail-meta strong {
    margin-top: 5px;
    color: var(--text);
}

.large-tags span {
    font-size: 0.9rem;
}

.player-section {
    margin-top: 36px;
    padding: 22px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    aspect-ratio: 16 / 9;
}

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

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #211300;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.62));
    cursor: pointer;
}

.play-cover span {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-light), var(--orange));
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.34);
    font-size: 2.4rem;
    transform: translateX(3px);
}

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

.detail-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 34px;
}

.detail-text article {
    padding: 26px;
}

.detail-text p {
    margin: 14px 0 0;
    color: var(--soft);
    line-height: 2;
}

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

.site-footer {
    margin-top: 56px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.82);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 22px;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 34px;
}

.footer-brand {
    margin-bottom: 14px;
}

.site-footer p {
    max-width: 520px;
    color: var(--muted);
    line-height: 1.9;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 1.1rem;
}

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

.footer-links a {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--soft);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 22px 30px;
    color: var(--muted);
}

.card-item.is-hidden {
    display: none;
}

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

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

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

    .mobile-toggle {
        display: block;
    }

    .hero-carousel,
    .hero-slide img {
        min-height: 68vh;
    }

    .hero-content {
        left: 22px;
        right: 22px;
        bottom: 86px;
    }

    .intro-strip,
    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

    .search-panel {
        grid-template-columns: 1fr;
    }

    .detail-hero,
    .detail-text,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 560px) {
    main,
    .nav-wrap {
        padding-left: 14px;
        padding-right: 14px;
    }

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

    .hero-section {
        margin-top: 14px;
    }

    .hero-carousel {
        border-radius: 24px;
    }

    .hero-content h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 2.2rem;
    }

    .movie-grid,
    .related-grid,
    .category-grid,
    .category-overview-grid,
    .mini-card-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .card-body {
        padding: 12px;
    }

    .card-body h2 {
        font-size: 0.95rem;
    }

    .card-body p {
        font-size: 0.82rem;
    }

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