:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --green: #22c55e;
    --shadow: 0 28px 80px rgba(2, 6, 23, 0.55);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 28rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 30rem),
        linear-gradient(135deg, #020617 0%, #0f172a 48%, #020617 100%);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img {
    max-width: 100%;
}

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

.site-header-inner {
    width: min(1280px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 12px 28px rgba(34, 211, 238, 0.28);
    color: #ffffff;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #cbd5e1;
    font-weight: 700;
    transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(34, 211, 238, 0.12);
}

.top-search {
    display: flex;
    align-items: center;
    width: min(320px, 30vw);
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.72);
}

.top-search input,
.filter-bar input,
.filter-bar select,
.hero-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #ffffff;
}

.top-search input {
    padding: 10px 12px;
}

.top-search button,
.hero-search button,
.filter-bar button,
.action-button {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.top-search button {
    padding: 9px 16px;
    margin-right: 2px;
}

.top-search button:hover,
.hero-search button:hover,
.filter-bar button:hover,
.action-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(34, 211, 238, 0.28);
}

.mobile-menu-button {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.86);
}

.mobile-panel {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel-strong);
}

.mobile-panel a {
    display: block;
    padding: 12px;
    border-radius: 12px;
    color: #cbd5e1;
}

.mobile-panel a:hover {
    background: rgba(34, 211, 238, 0.12);
    color: #ffffff;
}

.hero {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
}

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

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

.hero-media,
.hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-media img {
    object-fit: cover;
    filter: saturate(1.06) contrast(1.02);
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.88) 44%, rgba(2, 6, 23, 0.1) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.08) 45%, rgba(2, 6, 23, 0.45) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    min-height: 70vh;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(34, 211, 238, 0.5);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.15);
    color: var(--cyan);
    font-weight: 800;
}

.hero h1,
.hero h2 {
    margin: 0 0 24px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 720px;
    margin: 0 0 30px;
    color: #cbd5e1;
    font-size: clamp(17px, 2.2vw, 22px);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
}

.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.25s ease, transform 0.25s ease;
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.hero-search {
    display: flex;
    width: min(620px, 100%);
    padding: 6px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: var(--shadow);
}

.hero-search input {
    padding: 0 18px;
    font-size: 16px;
}

.hero-search button {
    min-width: 110px;
    padding: 13px 20px;
}

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

.hero-dots button {
    width: 34px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: var(--cyan);
}

main {
    position: relative;
}

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

.band-section {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.5), rgba(30, 41, 59, 0.52));
    border-block: 1px solid rgba(148, 163, 184, 0.08);
}

.band-section .section {
    padding: 64px 0;
}

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

.title-line {
    width: 5px;
    height: 38px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.section-title h2,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.section-title p,
.page-hero p,
.detail-title p {
    margin: 7px 0 0;
    color: var(--muted);
}

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

.movie-card {
    min-width: 0;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 12px 42px rgba(2, 6, 23, 0.28);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.48);
    box-shadow: 0 26px 70px rgba(8, 145, 178, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.poster-link img {
    width: 100%;
    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;
}

.card-badge,
.rank-badge,
.play-chip {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.card-badge {
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    background: rgba(8, 145, 178, 0.92);
    color: #ffffff;
}

.rank-badge {
    top: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #ffffff;
}

.play-chip {
    left: 50%;
    bottom: 16px;
    padding: 9px 14px;
    background: rgba(2, 6, 23, 0.78);
    color: #ffffff;
    opacity: 0;
    transform: translate(-50%, 12px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

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

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

.movie-card h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

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

.movie-meta {
    margin: 0 0 8px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 800;
}

.movie-line {
    min-height: 44px;
    margin: 0 0 12px;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-row span,
.info-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.72);
    font-size: 12px;
}

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

.category-card {
    position: relative;
    min-height: 160px;
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 26px;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 18%, rgba(34, 211, 238, 0.2), transparent 12rem),
        rgba(15, 23, 42, 0.78);
    transition: transform 0.28s ease, border-color 0.28s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.45);
}

.category-card h3 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 950;
}

.category-card p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.7;
}

.page-hero {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 58px 0 30px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

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

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 140px;
    gap: 14px;
    margin: 28px 0 8px;
}

.filter-bar input,
.filter-bar select {
    height: 46px;
    padding: 0 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
}

.filter-bar button {
    padding: 0 20px;
}

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

.player-card,
.detail-panel {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.82);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: radial-gradient(circle, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.72));
    cursor: pointer;
}

.play-overlay span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #ffffff;
    font-size: 34px;
    box-shadow: 0 22px 60px rgba(34, 211, 238, 0.38);
}

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

.detail-title {
    padding: 26px;
}

.detail-title h1 {
    margin-bottom: 12px;
}

.detail-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 0;
}

.detail-panel {
    padding: 24px;
}

.detail-cover {
    aspect-ratio: 3 / 4;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(30, 41, 59, 0.82);
}

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

.article-block {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.article-block h2 {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 950;
}

.article-block p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.9;
}

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

.site-footer {
    margin-top: 40px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(2, 6, 23, 0.62);
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
    gap: 28px;
    padding: 38px 0;
}

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

.footer-inner p {
    max-width: 720px;
    color: var(--muted);
    line-height: 1.8;
}

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

.footer-links a {
    padding: 8px 12px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.62);
}

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

.empty-state {
    display: none;
    padding: 38px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.72);
    text-align: center;
}

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

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

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

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

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

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

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

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

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

@media (max-width: 640px) {
    .site-header-inner {
        min-height: 64px;
    }

    .hero,
    .hero-content {
        min-height: 640px;
    }

    .hero-content {
        padding: 56px 0 84px;
    }

    .hero-actions,
    .hero-search {
        align-items: stretch;
        flex-direction: column;
        border-radius: 24px;
    }

    .hero-search input {
        min-height: 46px;
    }

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

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

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

    .section,
    .page-section,
    .page-hero {
        width: min(100% - 24px, 1280px);
    }
}

.center-link {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}
