:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: #111827;
    --bg-card-2: #1e293b;
    --cyan: #22d3ee;
    --cyan-dark: #0891b2;
    --blue: #60a5fa;
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-dark: #64748b;
    --line: rgba(34, 211, 238, 0.18);
    --glow: rgba(34, 211, 238, 0.22);
    --radius: 18px;
    --shadow: 0 24px 70px rgba(2, 6, 23, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 34rem),
        radial-gradient(circle at 85% 8%, rgba(96, 165, 250, 0.12), transparent 28rem),
        linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    overflow-x: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header__inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand__mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    border-radius: 14px;
    box-shadow: 0 0 26px var(--glow);
}

.brand__text {
    display: grid;
    gap: 2px;
}

.brand__text strong {
    font-size: 22px;
    line-height: 1;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    -webkit-background-clip: text;
    color: transparent;
}

.brand__text small {
    color: var(--muted);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #cbd5e1;
    font-weight: 600;
}

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

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

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

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

.mobile-nav {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.92);
}

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

.page-main {
    min-height: 70vh;
}

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

.section--compact {
    padding-top: 28px;
}

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

.section-heading h1,
.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    -webkit-background-clip: text;
    color: transparent;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
    max-width: 680px;
    line-height: 1.75;
}

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

.hero {
    position: relative;
    width: min(1280px, calc(100% - 32px));
    margin: 28px auto 0;
    min-height: 620px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.92));
    box-shadow: var(--shadow);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.24), transparent 30rem),
        radial-gradient(circle at 85% 10%, rgba(96, 165, 250, 0.18), transparent 26rem);
    pointer-events: none;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 34px;
    align-items: center;
    padding: 72px;
    opacity: 0;
    transform: translateX(26px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
}

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

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-bottom: 18px;
    color: var(--cyan);
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.hero h1,
.hero h2 {
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.hero h2 {
    background: linear-gradient(90deg, #ffffff, #a5f3fc 45%, #60a5fa);
    -webkit-background-clip: text;
    color: transparent;
}

.hero p {
    margin: 0;
    max-width: 660px;
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.85;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.hero-tags span,
.tag-list span {
    display: inline-flex;
    padding: 6px 10px;
    color: #a5f3fc;
    background: rgba(8, 145, 178, 0.14);
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 999px;
    font-size: 13px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, 0.24);
    color: white;
    background: rgba(15, 23, 42, 0.82);
    font-weight: 800;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 211, 238, 0.55);
}

.btn--primary {
    background: linear-gradient(135deg, var(--cyan-dark), var(--blue));
    box-shadow: 0 18px 38px rgba(8, 145, 178, 0.28);
}

.hero-visual {
    position: relative;
    z-index: 1;
    min-height: 430px;
}

.hero-poster {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, #0f172a, #111827);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}

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

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 28%, rgba(2, 6, 23, 0.86) 100%);
}

.hero-floating-card {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 2;
    max-width: 310px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(34, 211, 238, 0.28);
    backdrop-filter: blur(14px);
}

.hero-floating-card strong {
    display: block;
    margin-bottom: 6px;
    color: white;
    font-size: 20px;
}

.hero-floating-card small {
    color: var(--muted);
    line-height: 1.6;
}

.hero-controls {
    position: absolute;
    left: 72px;
    bottom: 34px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-controls button,
.hero-dots button {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--cyan);
    background: rgba(15, 23, 42, 0.8);
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    color: transparent;
    background: rgba(148, 163, 184, 0.45);
}

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

.hero-search {
    display: flex;
    width: min(560px, 100%);
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.45);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 18px;
    color: white;
    background: transparent;
}

.hero-search button {
    border: 0;
    padding: 0 22px;
    color: white;
    background: linear-gradient(135deg, var(--cyan-dark), var(--blue));
    font-weight: 800;
}

.quick-cats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.quick-cat {
    min-height: 118px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.7));
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quick-cat:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(34, 211, 238, 0.1);
}

.quick-cat strong {
    display: block;
    margin-bottom: 8px;
    color: #ecfeff;
    font-size: 18px;
}

.quick-cat span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

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

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

.movie-card {
    min-width: 0;
}

.movie-card a {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.1);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.82));
    box-shadow: 0 14px 38px rgba(2, 6, 23, 0.32);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card a:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.42);
    box-shadow: 0 24px 52px rgba(34, 211, 238, 0.12);
}

.movie-card__image {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #0f172a);
}

.movie-card__image--wide {
    aspect-ratio: 16 / 9;
}

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

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

.movie-card__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(2, 6, 23, 0.88) 100%);
}

.movie-card__play {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card a:hover .movie-card__play {
    opacity: 1;
}

.movie-card__score {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    padding: 4px 8px;
    color: white;
    background: rgba(234, 179, 8, 0.92);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.rank-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 3;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(135deg, var(--cyan-dark), var(--blue));
    border-radius: 12px;
    font-weight: 900;
}

.movie-card__body {
    padding: 14px;
}

.movie-card__body h3 {
    margin: 0 0 8px;
    color: white;
    font-size: 16px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.25s ease;
}

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

.movie-card__body p {
    margin: 0 0 12px;
    min-height: 42px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.62;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted-dark);
    font-size: 12px;
}

.movie-card__meta span:last-child {
    color: var(--cyan);
}

.movie-card--wide a {
    display: grid;
    grid-template-columns: 168px 1fr;
}

.movie-card--wide .movie-card__body {
    padding: 16px 18px;
}

.movie-card--wide .movie-card__body h3 {
    white-space: normal;
}

.category-panel,
.detail-panel,
.text-panel {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.68));
    box-shadow: var(--shadow);
}

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

.category-card {
    display: grid;
    gap: 14px;
    min-height: 200px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.88));
    transition: transform 0.25s ease, border-color 0.25s ease;
}

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

.category-card h2 {
    margin: 0;
    color: #ecfeff;
    font-size: 26px;
}

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

.category-card__samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-card__samples span {
    padding: 6px 9px;
    color: #a5f3fc;
    background: rgba(34, 211, 238, 0.08);
    border-radius: 999px;
    font-size: 12px;
}

.filter-panel {
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
}

.filter-panel__search input,
.filter-panel select,
.search-box input {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(34, 211, 238, 0.2);
    outline: none;
    border-radius: 999px;
    color: white;
    background: rgba(2, 6, 23, 0.56);
}

.filter-panel__search input,
.search-box input {
    padding: 0 18px;
}

.filter-panel__selects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.filter-panel select {
    padding: 0 14px;
}

.filter-panel__empty {
    display: none;
    margin-top: 16px;
    color: var(--muted);
    text-align: center;
}

.filter-panel__empty.is-visible {
    display: block;
}

.breadcrumb {
    width: min(1200px, calc(100% - 32px));
    margin: 24px auto 0;
    color: var(--muted);
    font-size: 14px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 28px;
    align-items: start;
}

.player-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: #020617;
    box-shadow: var(--shadow);
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.video-frame video {
    width: 100%;
    height: 100%;
    background: #020617;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 0;
    color: white;
    background: #020617;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.48;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.2), rgba(2, 6, 23, 0.78) 58%);
}

.player-cover span {
    position: relative;
    z-index: 2;
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan-dark), var(--blue));
    box-shadow: 0 0 44px rgba(34, 211, 238, 0.34);
    font-size: 30px;
}

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

.player-status {
    min-height: 44px;
    padding: 12px 18px;
    color: var(--muted);
    border-top: 1px solid rgba(34, 211, 238, 0.13);
    background: rgba(15, 23, 42, 0.82);
}

.detail-info {
    padding: 26px;
}

.detail-info h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.05;
    background: linear-gradient(90deg, white, #a5f3fc, #60a5fa);
    -webkit-background-clip: text;
    color: transparent;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 20px;
    color: #cbd5e1;
}

.detail-meta span {
    padding: 7px 10px;
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid rgba(34, 211, 238, 0.16);
    border-radius: 999px;
}

.detail-panel {
    padding: 26px;
}

.detail-panel h2,
.text-panel h2 {
    margin: 0 0 14px;
    color: var(--cyan);
    font-size: 24px;
}

.detail-panel p,
.text-panel p {
    margin: 0 0 18px;
    color: #cbd5e1;
    line-height: 1.9;
}

.detail-side {
    display: grid;
    gap: 18px;
}

.side-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.72));
}

.side-card h2 {
    margin: 0 0 12px;
    color: var(--cyan);
    font-size: 20px;
}

.side-list {
    display: grid;
    gap: 10px;
    color: #cbd5e1;
}

.side-list a {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

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

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

.search-box {
    display: flex;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.78);
}

.search-box input {
    flex: 1;
    min-width: 0;
}

.search-results-note {
    margin: 16px 0 0;
    color: var(--muted);
}

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

.site-footer__inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: 1.5fr 0.75fr 0.75fr;
    gap: 32px;
}

.footer-logo {
    margin-bottom: 12px;
    color: var(--cyan);
    font-size: 24px;
    font-weight: 900;
}

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

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

.footer-links h2 {
    margin: 0 0 8px;
    color: #e2e8f0;
    font-size: 17px;
}

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

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

.footer-copy {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: var(--muted-dark);
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    text-align: center;
}

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

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

    .quick-cats {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 52px;
    }

    .hero-visual {
        min-height: 300px;
    }

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

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

    .mobile-toggle {
        display: block;
    }

    .brand__text strong {
        font-size: 19px;
    }

    .hero {
        min-height: 760px;
        border-radius: 22px;
    }

    .hero-slide {
        padding: 34px 22px 92px;
    }

    .hero h1,
    .hero h2 {
        font-size: 42px;
    }

    .hero-controls {
        left: 22px;
        bottom: 26px;
    }

    .hero-search {
        border-radius: 20px;
        flex-direction: column;
    }

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

    .hero-search button {
        min-height: 48px;
    }

    .quick-cats,
    .category-grid,
    .movie-grid,
    .movie-grid--wide,
    .filter-panel__selects,
    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .movie-card--wide a {
        grid-template-columns: 132px 1fr;
    }

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

    .search-box {
        flex-direction: column;
    }
}

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

    .movie-card__body {
        padding: 12px;
    }

    .movie-card__body h3 {
        font-size: 14px;
    }

    .movie-card--wide a {
        grid-template-columns: 1fr;
    }
}
