:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: #0f172a;
    --panel-soft: rgba(15, 23, 42, 0.76);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-2: #cbd5e1;
    --cyan: #22d3ee;
    --blue: #38bdf8;
    --orange: #fb923c;
    --green: #34d399;
    --shadow: 0 22px 80px rgba(8, 47, 73, 0.34);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.13), transparent 32%), radial-gradient(circle at 90% 15%, rgba(59, 130, 246, 0.18), transparent 30%), var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

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

.nav-shell,
.footer-inner,
.section-wrap,
.hero-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.nav-shell {
    height: 68px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--cyan), #2563eb);
    box-shadow: 0 0 34px rgba(34, 211, 238, 0.28);
}

.brand-text,
.footer-brand {
    font-size: 22px;
    background: linear-gradient(90deg, var(--cyan), #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 24px;
    margin-left: auto;
}

.nav-links a,
.mobile-panel a,
.footer-links a {
    color: var(--muted-2);
    transition: color 0.2s ease;
}

.nav-links a:hover,
.mobile-panel a:hover,
.footer-links a:hover {
    color: var(--cyan);
}

.top-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-search input,
.inline-search input,
.filter-select {
    width: 220px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.78);
    color: var(--text);
    outline: none;
    padding: 11px 14px;
}

.top-search input:focus,
.inline-search input:focus,
.filter-select:focus {
    border-color: rgba(34, 211, 238, 0.72);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}

button,
.button,
.top-search button {
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    padding: 11px 16px;
    font-weight: 700;
    transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

button:hover,
.button:hover,
.top-search button:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid var(--line);
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
    gap: 12px;
    flex-direction: column;
}

.mobile-panel.open {
    display: flex;
}

.hero {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    background: #0f172a;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
}

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

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(15, 23, 42, 0.82) 45%, rgba(2, 6, 23, 0.18) 100%), linear-gradient(0deg, #020617 0%, transparent 45%);
}

.hero-inner {
    position: relative;
    min-height: 610px;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 720px;
    padding: 92px 0;
}

.eyebrow,
.detail-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan);
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 14px;
}

.hero h1,
.page-hero h1,
.detail-title h1 {
    margin: 20px 0 14px;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero p,
.page-hero p,
.detail-title p {
    margin: 0;
    color: var(--muted-2);
    font-size: 18px;
    max-width: 780px;
}

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

.button.secondary {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
}

.hero-arrow,
.hero-dot {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(12px);
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    padding: 0;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    padding: 0;
}

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

.section-wrap {
    padding: 72px 0;
}

.section-wrap.tight {
    padding-top: 38px;
}

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

.section-title h2,
.section-title h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
}

.section-title p {
    margin: 8px 0 0;
    color: var(--muted);
}

.title-mark {
    width: 6px;
    height: 36px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--cyan), #2563eb);
    flex: 0 0 auto;
}

.title-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

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

.movie-card {
    overflow: hidden;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 46px rgba(2, 6, 23, 0.24);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.36);
    box-shadow: var(--shadow);
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #111827;
}

.card-cover img,
.wide-cover img,
.detail-poster img,
.related-cover img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover img,
.wide-card:hover img,
.related-card:hover img {
    transform: scale(1.06);
}

.play-mark {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(34, 211, 238, 0.86);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-mark {
    opacity: 1;
    transform: scale(1);
}

.card-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 50%;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.95), transparent);
}

.rank-badge,
.list-rank {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    min-width: 34px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #fff;
    font-weight: 800;
}

.card-body {
    padding: 16px;
}

.card-body h3,
.wide-body h3,
.related-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

.card-body h3 a:hover,
.wide-body h3 a:hover,
.related-card h3 a:hover {
    color: var(--cyan);
}

.card-meta,
.tag-row,
.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.card-meta span,
.tag-row span,
.meta-line span {
    display: inline-flex;
    align-items: center;
}

.card-desc {
    min-height: 48px;
    margin: 10px 0;
    color: var(--muted-2);
    font-size: 14px;
}

.tag-row span,
.filter-chip {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.11);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.panel {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.72));
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: clamp(24px, 4vw, 46px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

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

.wide-card {
    position: relative;
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 18px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--line);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.wide-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.32);
}

.wide-cover {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 16px;
    background: #111827;
}

.wide-body {
    min-width: 0;
}

.wide-body p {
    color: var(--muted-2);
    margin: 8px 0 12px;
}

.list-rank {
    position: static;
    margin-bottom: 8px;
}

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

.category-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.2), rgba(30, 41, 59, 0.76));
    border: 1px solid rgba(34, 211, 238, 0.16);
    box-shadow: 0 16px 44px rgba(2, 6, 23, 0.22);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
}

.category-card p {
    margin: 0;
    color: var(--muted-2);
}

.inline-search,
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.filter-chip {
    color: var(--muted-2);
    background: rgba(15, 23, 42, 0.84);
}

.filter-chip.active,
.filter-chip:hover {
    color: #fff;
    background: rgba(34, 211, 238, 0.22);
    border-color: rgba(34, 211, 238, 0.42);
}

.page-hero {
    padding: 76px 0 28px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    margin-bottom: 20px;
}

.breadcrumbs a:hover {
    color: var(--cyan);
}

.detail-head {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: clamp(24px, 5vw, 52px);
    align-items: start;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 3 / 4;
    background: #111827;
    box-shadow: var(--shadow);
}

.detail-title h1 {
    font-size: clamp(34px, 5vw, 58px);
}

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

.info-item {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid var(--line);
}

.info-item b {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 4px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 26px 90px rgba(0, 0, 0, 0.35);
}

.video-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #000;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 40%, rgba(34, 211, 238, 0.18), rgba(2, 6, 23, 0.74));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-shell.is-playing .play-cover {
    opacity: 0;
    visibility: hidden;
}

.big-play {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 30px;
    background: linear-gradient(135deg, var(--cyan), #2563eb);
    box-shadow: 0 18px 46px rgba(34, 211, 238, 0.28);
}

.article-block {
    color: var(--muted-2);
    font-size: 17px;
}

.article-block p {
    margin: 0 0 18px;
}

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

.related-card {
    overflow: hidden;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid var(--line);
}

.related-cover {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #111827;
}

.related-card h3,
.related-card p {
    padding: 0 14px;
}

.related-card h3 {
    margin-top: 12px;
}

.related-card p {
    color: var(--muted);
    margin-bottom: 14px;
    font-size: 13px;
}

.no-result {
    display: none;
    color: var(--muted-2);
    padding: 22px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--line);
}

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

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    padding: 38px 0;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 18px;
    align-items: center;
}

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

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

@media (max-width: 820px) {
    .nav-links,
    .top-search {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero,
    .hero-inner {
        min-height: 560px;
    }

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

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

    .detail-poster {
        width: min(320px, 100%);
    }

    .footer-inner {
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .hero-content {
        padding-top: 70px;
    }

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

    .wide-card {
        grid-template-columns: 110px 1fr;
    }

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

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

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