/* ═══════════════════════════════════════════════════════════
   Reset & Base
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ═══════════════════════════════════════════════════════════
   Палитра — глубокий «ночной» фон + тёплый янтарный акцент
   ═══════════════════════════════════════════════════════════ */
:root {
    --bg-0: #06080c;
    --bg-1: #0c1017;
    --bg-2: #131922;
    --bg-3: #1a2130;
    --bg-4: #232c3c;

    --line: #263041;
    --line-soft: #1a2130;
    --line-hi: #334155;

    --accent: #e2a355;
    --accent-hi: #f2bc7a;
    --accent-dim: #b07d36;
    --accent-glow: rgba(226, 163, 85, 0.14);

    --text: #e9edf3;
    --text-2: #a6b0be;
    --text-3: #6b7688;

    --radius: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);
}

/* ═══════════════════════════════════════════════════════════
   Body + кинематографичный фон с затемнением
   ═══════════════════════════════════════════════════════════ */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter',
                 Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-1);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(
            180deg,
            rgba(6, 8, 12, 0.96) 0%,
            rgba(12, 16, 23, 0.93) 45%,
            rgba(12, 16, 23, 0.98) 100%
        ),
        url('https://images.unsplash.com/photo-1478720568477-152d9b164e26?auto=format&fit=crop&w=1920&q=70')
        center / cover no-repeat fixed;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 90% 55% at 50% -10%, rgba(226, 163, 85, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 70% 50% at 90% 105%, rgba(80, 100, 140, 0.08) 0%, transparent 60%);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.18s ease;
}
a:hover { color: var(--accent-hi); }

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}
main { flex: 1; padding-bottom: 56px; }

/* ═══════════════════════════════════════════════════════════
   Header
   ═══════════════════════════════════════════════════════════ */
.site-header {
    background: rgba(12, 16, 23, 0.82);
    border-bottom: 1px solid var(--line-soft);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.header-top {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    letter-spacing: 0.01em;
}

.logo-mark {
    display: inline-flex;
    width: 34px;
    height: 34px;
    background: linear-gradient(140deg, var(--accent) 0%, var(--accent-dim) 100%);
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    color: #0a0d13;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.header-nav {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
    margin-left: 4px;
}
.header-nav a {
    padding: 7px 13px;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-2);
    transition: background 0.15s ease, color 0.15s ease;
}
.header-nav a:hover,
.header-nav a.active {
    background: var(--bg-3);
    color: var(--accent-hi);
}

.header-tools {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: auto;
    flex-wrap: wrap;
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 2px 4px 2px 14px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.search-form:focus-within {
    border-color: var(--accent-dim);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.search-form input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 0.86rem;
    width: 170px;
    padding: 8px 0;
    font-family: inherit;
}
.search-form input::placeholder { color: var(--text-3); }
.search-form button {
    background: var(--accent);
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0d13;
    font-weight: 900;
    font-size: 0.9rem;
    transition: background 0.15s ease, transform 0.15s ease;
}
.search-form button:hover { background: var(--accent-hi); transform: scale(1.05); }

.login-btn {
    padding: 9px 20px;
    border-radius: 100px;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    font-family: inherit;
}
.login-btn:hover { background: var(--accent); color: #0a0d13; }

/* ═══════════════════════════════════════════════════════════
   Login modal
   ═══════════════════════════════════════════════════════════ */
.login-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6, 8, 12, 0.82);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.login-modal.on { display: flex; }

.login-card {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 28px;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.login-card h3,
.login-card > div:first-of-type {
    font-size: 1.25rem;
    color: var(--accent);
    margin-bottom: 6px;
    font-weight: 800;
}
.login-card p.sub {
    font-size: 0.86rem;
    color: var(--text-2);
    margin-bottom: 22px;
}
.login-card input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 12px;
    background: var(--bg-3);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
}
.login-card input:focus {
    border-color: var(--accent-dim);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.login-card .submit {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(140deg, var(--accent) 0%, var(--accent-dim) 100%);
    color: #0a0d13;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.15s ease;
    font-family: inherit;
}
.login-card .submit:hover { filter: brightness(1.08); transform: translateY(-1px); }
.login-card .close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-2);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s ease;
}
.login-card .close:hover { color: var(--text); }

/* ═══════════════════════════════════════════════════════════
   Hero banner
   ═══════════════════════════════════════════════════════════ */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: clamp(360px, 54vh, 560px);
    display: flex;
    align-items: flex-start;
    padding: 40px 0 0px;
    margin-bottom: 28px;
    overflow: hidden;
    isolation: isolate;
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg,
            rgba(12, 16, 23, 0) 0%,
            rgba(12, 16, 23, 0) 58%,
            rgba(12, 16, 23, 0.45) 80%,
            rgba(12, 16, 23, 0.85) 93%,
            var(--bg-1) 100%),
        linear-gradient(180deg,
            rgba(6, 8, 12, 0.5) 0%,
            rgba(6, 8, 12, 0.08) 35%,
            rgba(12, 16, 23, 0.5) 62%,
            rgba(12, 16, 23, 0.9) 88%,
            rgba(12, 16, 23, 1) 100%),
        linear-gradient(90deg,
            rgba(12, 16, 23, 0.9) 0%,
            rgba(12, 16, 23, 0.55) 28%,
            rgba(12, 16, 23, 0.15) 55%,
            rgba(12, 16, 23, 0) 100%),
        var(--hero-bg, none) center 10% / cover no-repeat;
}

.hero-inner {
    display: flex;
    gap: 36px;
    align-items: flex-start;
    width: 100%;
}

.hero-poster {
    flex-shrink: 0;
    width: 210px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.06);
    background: var(--bg-2);
    margin-top: 2px;
}
.hero-poster img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}

.hero-info {
    flex: 1;
    min-width: 0;
}

.hero-info .crumbs {
    color: rgba(233, 237, 243, 0.6);
    margin-bottom: 14px;
    line-height: 1.4;
    font-size: 0.79rem;
}
.hero-info .crumbs a { color: var(--accent); }
.hero-info .crumbs span { color: rgba(233, 237, 243, 0.85); }

.hero-info .movie-title {
    font-size: clamp(1.6rem, 3.6vw, 2.6rem);
    margin-bottom: 18px;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}
.hero-info .movie-title::after {
    margin-top: 16px;
    width: 80px;
    height: 3px;
}

.hero-info .badge-row { margin-bottom: 20px; }

.hero-info .badge {
    background: rgba(19, 25, 34, 0.65);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e9edf3;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.hero-info .badge.hi {
    background: linear-gradient(140deg, var(--accent) 0%, var(--accent-dim) 100%);
    border-color: transparent;
    color: #0a0d13;
}

.hero-info .meta-table { max-width: 620px; }
.hero-info .meta-table td {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    padding: 8px 0;
}
.hero-info .meta-table td:last-child { color: rgba(233, 237, 243, 0.88); }

/* ── Общие компоненты ─────────────────────────────────────── */
.movie-title {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    color: var(--text);
}
.movie-title::after {
    content: '';
    display: block;
    width: 64px;
    height: 3px;
    margin-top: 14px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dim) 100%);
    border-radius: 2px;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 5px 14px;
    font-size: 0.8rem;
    color: var(--text-2);
    font-weight: 600;
}
.badge.hi {
    background: linear-gradient(140deg, var(--accent) 0%, var(--accent-dim) 100%);
    color: #0a0d13;
    border-color: transparent;
    font-weight: 800;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.meta-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.89rem;
}
.meta-table td {
    padding: 7px 0;
    vertical-align: top;
    border-bottom: 1px solid var(--line-soft);
}
.meta-table tr:last-child td { border-bottom: none; }
.meta-table td:first-child {
    color: var(--accent);
    white-space: nowrap;
    padding-right: 18px;
    min-width: 100px;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.meta-table td:last-child { color: var(--text-2); }

.crumbs {
    font-size: 0.79rem;
    color: var(--text-3);
    margin-bottom: 12px;
}
.crumbs a { color: var(--accent); }
.crumbs a:hover { color: var(--accent-hi); }
.crumbs span { color: var(--text-2); }

/* ═══════════════════════════════════════════════════════════
   Описание
   ═══════════════════════════════════════════════════════════ */
.desc-section {
    background: linear-gradient(160deg, var(--bg-2) 0%, var(--bg-1) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 28px;
    font-size: 0.96rem;
    line-height: 1.85;
    color: var(--text-2);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.desc-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dim) 100%);
}
.desc-section strong { color: var(--accent-hi); font-weight: 700; }

/* ═══════════════════════════════════════════════════════════
   Плеер
   ═══════════════════════════════════════════════════════════ */
.player-card {
    background: linear-gradient(160deg, var(--bg-2) 0%, var(--bg-3) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 36px;
    margin-bottom: 26px;
    position: relative;
    box-shadow: var(--shadow);
}
.player-card::before {
    content: '◆ СМОТРЕТЬ ' attr(data-badge) ' · HD 1080';
    position: absolute;
    top: -13px;
    left: 24px;
    background: linear-gradient(140deg, var(--accent) 0%, var(--accent-dim) 100%);
    color: #0a0d13;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    padding: 6px 15px;
    border-radius: 100px;
    box-shadow: 0 6px 18px var(--accent-glow);
}

.player-box {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    border: 1px solid var(--line);
}
#dcvideo {
    width: 100% !important;
    height: 100% !important;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ═══════════════════════════════════════════════════════════
   Навигация по сериям
   ═══════════════════════════════════════════════════════════ */
.ep-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
    justify-content: center;
}
.ep-nav a {
    padding: 9px 16px;
    border-radius: 10px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-2);
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.ep-nav a:hover {
    border-color: var(--accent-dim);
    color: var(--accent-hi);
    background: var(--bg-3);
}
.ep-nav a.active {
    background: linear-gradient(140deg, var(--accent) 0%, var(--accent-dim) 100%);
    border-color: transparent;
    color: #0a0d13;
    pointer-events: none;
    box-shadow: 0 6px 18px var(--accent-glow);
}

/* ═══════════════════════════════════════════════════════════
   «Смотрите новинки» — сетка + карусель
   ═══════════════════════════════════════════════════════════ */
.also-watch {
    margin-bottom: 36px;
    position: relative;
}

.also-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

/* По умолчанию (каталоги) — сетка */
.also-watch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 18px;
}

/* Карусель — только при наличии data-carousel-track */
.also-watch-grid[data-carousel-track] {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 4px 2px 12px;
    grid-template-columns: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.also-watch-grid[data-carousel-track]::-webkit-scrollbar { display: none; }

/* ── Карточка ─────────────────────────────────────────────── */
.also-card {
    display: flex;
    gap: 16px;
    background: linear-gradient(160deg, var(--bg-2) 0%, var(--bg-1) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    color: var(--text);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    min-width: 0;
}
.also-card:hover {
    border-color: var(--accent-dim);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* В карусели — фиксированная ширина */
.also-watch-grid[data-carousel-track] .also-card {
    flex: 0 0 auto;
    width: 300px;
    padding: 12px;
    gap: 14px;
    scroll-snap-align: start;
}

/* ── Постер ───────────────────────────────────────────────── */
.also-poster {
    position: relative;
    flex-shrink: 0;
    width: 112px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--line);
}
.also-watch-grid[data-carousel-track] .also-poster { width: 100px; }

.also-poster img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.also-card:hover .also-poster img { transform: scale(1.05); }

.also-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(140deg, var(--accent) 0%, var(--accent-dim) 100%);
    color: #0a0d13;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 100px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}
.also-watch-grid[data-carousel-track] .also-badge {
    top: 6px;
    left: 6px;
    font-size: 0.7rem;
    padding: 2px 8px;
}

/* ── Текст ───────────────────────────────────────────────── */
.also-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.also-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.25;
    margin-bottom: 6px;
    transition: color 0.15s ease;
}
.also-watch-grid[data-carousel-track] .also-title {
    font-size: 0.98rem;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.also-card:hover .also-title { color: var(--accent-hi); }

.also-meta {
    font-size: 0.78rem;
    color: var(--text-3);
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}
.also-watch-grid[data-carousel-track] .also-meta {
    font-size: 0.74rem;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.also-desc {
    font-size: 0.86rem;
    color: var(--text-2);
    line-height: 1.55;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.also-watch-grid[data-carousel-track] .also-desc {
    font-size: 0.8rem;
    line-height: 1.45;
    margin-bottom: 10px;
    -webkit-line-clamp: 2;
}
.also-cta {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 100px;
    background: linear-gradient(140deg, var(--accent) 0%, var(--accent-dim) 100%);
    color: #0a0d13;
    font-weight: 800;
    font-size: 0.82rem;
    transition: filter 0.15s ease, transform 0.15s ease;
}
.also-watch-grid[data-carousel-track] .also-cta {
    padding: 6px 12px;
    font-size: 0.76rem;
}
.also-card:hover .also-cta {
    filter: brightness(1.08);
    transform: translateX(2px);
}

/* ── Стрелки ──────────────────────────────────────────────── */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line-hi);
    background: rgba(19, 25, 34, 0.92);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}
.carousel-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #0a0d13;
}
.carousel-arrow:active { transform: translateY(-50%) scale(0.94); }
.carousel-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: rgba(19, 25, 34, 0.7);
    border-color: var(--line);
    color: var(--text-3);
}
.carousel-arrow svg { width: 18px; height: 18px; fill: currentColor; }

.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }

/* Шторки по краям */
.also-carousel::before,
.also-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 12px;
    width: 60px;
    pointer-events: none;
    z-index: 3;
    opacity: 1;
    transition: opacity 0.25s ease;
}
.also-carousel::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-1) 0%, transparent 100%);
}
.also-carousel::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-1) 0%, transparent 100%);
}
.also-carousel.at-start::before { opacity: 0; }
.also-carousel.at-end::after { opacity: 0; }

/* Точки */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
}
.carousel-dots button {
    width: 6px;
    height: 6px;
    border-radius: 100px;
    border: none;
    background: var(--line-hi);
    cursor: pointer;
    padding: 0;
    transition: width 0.2s ease, background 0.2s ease;
}
.carousel-dots button.active {
    width: 22px;
    background: var(--accent);
}

/* ═══════════════════════════════════════════════════════════
   Share block
   ═══════════════════════════════════════════════════════════ */
.share-block {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 0 0 28px;
    padding: 16px 20px;
    background: linear-gradient(160deg, var(--bg-2) 0%, var(--bg-1) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.share-title {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: var(--accent);
}
.share-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 100px;
    border: 1px solid var(--line);
    background: var(--bg-3);
    color: var(--text-2);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
    text-decoration: none;
    font-family: inherit;
}
.share-btn:hover { transform: translateY(-2px); color: #fff; }
.share-btn svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

.share-vk  { background: #0077FF; color: #fff; border-color: #0077FF; }
.share-vk:hover  { background: #0060d0; }
.share-tg  { background: #2AABEE; color: #fff; border-color: #2AABEE; }
.share-tg:hover  { background: #1e8fcb; }
.share-ok  { background: #EE8208; color: #fff; border-color: #EE8208; }
.share-ok:hover  { background: #d17005; }
.share-max { background: #7B5CFF; color: #fff; border-color: #7B5CFF; font-size: 0.78rem; letter-spacing: 0.04em; }
.share-max:hover { background: #6243e8; }
.share-wa  { background: #25D366; color: #fff; border-color: #25D366; }
.share-wa:hover  { background: #1da851; }

.share-copy, .share-native { color: var(--text-2); }
.share-copy:hover, .share-native:hover {
    color: var(--accent-hi);
    border-color: var(--accent-dim);
}
.share-copy.copied {
    background: var(--accent);
    color: #0a0d13;
    border-color: var(--accent);
}

.share-native { display: none; }

/* ═══════════════════════════════════════════════════════════
   Section titles
   ═══════════════════════════════════════════════════════════ */
.section-title {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.7px;
    color: var(--accent);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--line) 0%, transparent 100%);
}

/* ═══════════════════════════════════════════════════════════
   Комментарии
   ═══════════════════════════════════════════════════════════ */
.comments-section { margin-bottom: 48px; }

.comment {
    display: flex;
    gap: 14px;
    background: var(--bg-2);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-bottom: 12px;
    transition: border-color 0.18s ease, background 0.18s ease;
}
.comment:hover {
    border-color: var(--line-hi);
    background: var(--bg-3);
}
.comment-av {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--bg-3) 0%, var(--bg-2) 100%);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}
.comment-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 7px;
    flex-wrap: wrap;
}
.comment-user {
    font-weight: 800;
    font-size: 0.88rem;
    color: var(--accent);
}
.comment-date {
    font-size: 0.76rem;
    color: var(--text-3);
}
.comment-text {
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--bg-0);
    border-top: 1px solid var(--line-soft);
    padding: 24px 0;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-3);
}

/* ═══════════════════════════════════════════════════════════
   Адаптив
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .also-watch-grid[data-carousel-track] .also-card { width: 270px; }
    .carousel-arrow.prev { left: 8px; }
    .carousel-arrow.next { right: 8px; }
}

@media (max-width: 820px) {
    .header-nav { display: none; }
    .search-form input { width: 130px; }
    .movie-title { font-size: 1.7rem; }
}

@media (max-width: 760px) {
    .hero-banner {
        min-height: clamp(400px, 48vh, 480px);
        padding: 24px 0 28px;
        margin-bottom: 20px;
    }
    .hero-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
    .hero-poster { width: 140px; margin-top: 0; }
    .hero-info .movie-title::after { margin-left: 0; }
}

@media (max-width: 640px) {
    /* Каталоги: сетка в одну колонку */
    .also-watch-grid { grid-template-columns: 1fr; }

    /* Карусель: компактнее */
    .also-watch-grid[data-carousel-track] .also-card { width: 260px; }
    .also-watch-grid[data-carousel-track] .also-poster { width: 90px; }
    .also-watch-grid[data-carousel-track] .also-title { font-size: 0.94rem; }

    .desc-section { padding: 22px 20px; }
    .player-card { padding: 14px; }
    .share-block { padding: 14px 16px; gap: 10px; }
    .share-title { width: 100%; }
    .share-native { display: inline-flex; }
    .share-btn { height: 38px; padding: 0 12px; }
    .share-copy .copy-text { display: none; }
    .share-copy { width: 38px; padding: 0; }

    .carousel-arrow { width: 38px; height: 38px; }
    .carousel-arrow.prev { left: 6px; }
    .carousel-arrow.next { right: 6px; }
    .also-carousel::before,
    .also-carousel::after { width: 30px; }
}

@media (max-width: 580px) {
    .hero-banner { min-height: 400px; padding: 20px 0 24px; }
    .hero-poster { width: 120px; }
    .hero-info .movie-title { font-size: 1.4rem; }
    .hero-info .badge-row { justify-content: flex-start; }
    .meta-table td:first-child { min-width: 80px; }
    .search-form input { width: 100px; }
    .login-btn { padding: 8px 14px; font-size: 0.8rem; }
}