/* ==========================================================================
   KINORIFT — публичный интерфейс
   ========================================================================== */

:root {
    --bg: #07080d;
    --bg-soft: #0a0c13;
    --surface: #0f121c;
    --surface-2: #141827;
    --surface-3: #1a1f31;
    --text: #f4f5fa;
    --muted: #9aa1b5;
    --muted-2: #6f7689;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --accent: #ff7a18;
    --accent-2: #ff3d6e;
    --accent-rgb: 255, 122, 24;
    --accent-ink: #0a0b10;
    --radius: 24px;
    --radius-sm: 16px;
    --container: 1280px;
    --header-h: 78px;
    --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-display: "Unbounded", "Manrope", "Segoe UI", system-ui, sans-serif;
    --shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-accent="ocean"] {
    --accent: #26c6ff;
    --accent-2: #2f6bff;
    --accent-rgb: 38, 198, 255;
}

[data-accent="violet"] {
    --accent: #b06bff;
    --accent-2: #ff4fd8;
    --accent-rgb: 176, 107, 255;
}

[data-accent="lime"] {
    --accent: #c6ff3d;
    --accent-2: #35e0a1;
    --accent-rgb: 198, 255, 61;
}

[data-accent="mono"] {
    --accent: #e8eaf2;
    --accent-2: #9aa1b5;
    --accent-rgb: 232, 234, 242;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(60% 40% at 15% -5%, rgba(var(--accent-rgb), 0.08), transparent 60%),
        radial-gradient(50% 40% at 90% 5%, rgba(80, 90, 160, 0.1), transparent 60%),
        var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(80% 60% at 50% 0%, #000 0%, transparent 80%);
    pointer-events: none;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

::selection {
    background: rgba(var(--accent-rgb), 0.35);
    color: #fff;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.22);
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 1000;
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 800;
}

.skip-link:focus {
    top: 16px;
}

.grain {
    position: fixed;
    inset: 0;
    z-index: 500;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.container {
    width: min(100% - 48px, var(--container));
    margin-inline: auto;
}

.ico {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.ico-star {
    color: #ffd27a;
}

/* --------------------------------------------------------------------------
   Кнопки и мелкие элементы
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
    transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s, color 0.25s;
}

.btn .ico {
    width: 18px;
    height: 18px;
}

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

.btn:active {
    transform: translateY(0);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--accent-ink);
    box-shadow: 0 14px 34px rgba(var(--accent-rgb), 0.25);
}

.btn-accent:hover {
    box-shadow: 0 18px 44px rgba(var(--accent-rgb), 0.38);
    filter: brightness(1.05);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--line-strong);
    color: var(--text);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.26);
}

.btn-lg {
    height: 56px;
    padding: 0 28px;
    font-size: 16px;
}

.btn-small {
    height: 40px;
    padding: 0 16px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

.btn.icon-only {
    width: 48px;
    padding: 0;
}

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    transition: background 0.2s, border-color 0.2s, transform 0.2s, color 0.2s;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--line-strong);
}

.icon-btn.is-accent {
    color: var(--accent);
    border-color: rgba(var(--accent-rgb), 0.4);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: border-color 0.2s, background 0.2s;
}

a.chip:hover {
    border-color: rgba(var(--accent-rgb), 0.5);
    background: rgba(var(--accent-rgb), 0.08);
}

.chip .ico {
    width: 13px;
    height: 13px;
}

.chip-rating {
    color: #ffd27a;
    border-color: rgba(255, 210, 122, 0.22);
    background: rgba(255, 210, 122, 0.08);
}

.chip-muted {
    color: var(--muted);
}

.chip-age {
    border-color: rgba(var(--accent-rgb), 0.3);
    color: var(--accent);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.rating-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 28px;
    padding: 0 9px;
    border: 1px solid rgba(255, 210, 122, 0.22);
    border-radius: 999px;
    background: rgba(7, 8, 13, 0.72);
    color: #ffd27a;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.rating-badge .ico {
    width: 12px;
    height: 12px;
}

.text-success {
    color: #45e0a5 !important;
}

.text-error {
    color: #ff6b7d !important;
}

/* --------------------------------------------------------------------------
   Хедер
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(7, 8, 13, 0.92), rgba(7, 8, 13, 0.4) 70%, transparent);
    border-bottom: 1px solid transparent;
    transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.site-header.is-scrolled {
    background: rgba(7, 8, 13, 0.9);
    border-color: var(--line);
    backdrop-filter: blur(20px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--header-h);
}

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

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(var(--accent-rgb), 0.22);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.brand-text small {
    color: var(--muted-2);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.main-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s, background 0.2s;
}

.main-nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.main-nav a.is-active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    width: min(300px, 26vw);
    height: 44px;
    margin-left: auto;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    transition: border-color 0.2s, background 0.2s, width 0.3s;
}

.header-search:focus-within {
    width: min(340px, 30vw);
    border-color: rgba(var(--accent-rgb), 0.5);
    background: rgba(255, 255, 255, 0.06);
}

.header-search .search-ico {
    width: 17px;
    height: 17px;
    color: var(--muted);
}

.header-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    background: none;
    outline: none;
    font-size: 13px;
}

.header-search input::placeholder {
    color: var(--muted-2);
}

.header-search kbd {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    color: var(--muted-2);
    font-family: var(--font-body);
    font-size: 11px;
}

.suggest-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 60;
    padding: 8px;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: rgba(15, 18, 28, 0.98);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 12px;
    transition: background 0.15s;
}

.suggest-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.suggest-item img {
    width: 64px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--surface-2);
}

.suggest-item div {
    min-width: 0;
}

.suggest-item b {
    display: block;
    font-size: 13px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggest-item small {
    color: var(--muted);
    font-size: 11px;
}

.suggest-empty {
    padding: 14px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

/* --------------------------------------------------------------------------
   Мобильное меню
   -------------------------------------------------------------------------- */

.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 22px;
    background: rgba(7, 8, 13, 0.98);
    backdrop-filter: blur(24px);
    overflow-y: auto;
}

.mobile-drawer[hidden] {
    display: none;
}

.drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-title {
    font-family: var(--font-display);
    font-size: 18px;
}

.drawer-search {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 50px;
    padding: 0 16px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: var(--surface);
}

.drawer-search input {
    flex: 1;
    border: 0;
    background: none;
    outline: none;
}

.drawer-nav {
    display: grid;
    gap: 4px;
}

.drawer-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 6px;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
    font-weight: 700;
}

.drawer-nav a .ico {
    width: 18px;
    height: 18px;
    color: var(--muted);
}

.drawer-nav a.is-active {
    color: var(--accent);
}

.drawer-foot {
    display: flex;
    gap: 18px;
    margin-top: auto;
    padding-top: 16px;
    color: var(--muted);
    font-size: 13px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    min-height: 640px;
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 32px;
    overflow: hidden;
    isolation: isolate;
    background: var(--surface);
    box-shadow: var(--shadow);
}

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

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

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

.hero-bg {
    position: absolute;
    inset: -3%;
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    transition: transform 7s linear;
}

.hero-slide.is-active .hero-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 8, 13, 0.97) 0%, rgba(7, 8, 13, 0.8) 34%, rgba(7, 8, 13, 0.25) 68%, rgba(7, 8, 13, 0.55) 100%),
        linear-gradient(0deg, rgba(7, 8, 13, 0.98) 0%, rgba(7, 8, 13, 0.15) 48%, rgba(7, 8, 13, 0.35) 100%);
}

.hero-inner {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    min-height: 640px;
    padding-top: 120px;
    padding-bottom: 112px;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 660px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    height: 34px;
    padding: 0 13px;
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    border-radius: 999px;
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.hero-badge .ico {
    width: 14px;
    height: 14px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5.1vw, 4.7rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.03em;
    text-wrap: balance;
    text-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
}

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

.hero-desc {
    display: -webkit-box;
    max-width: 570px;
    overflow: hidden;
    color: #c9cdda;
    font-size: 15px;
    line-height: 1.65;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.hero-aside {
    position: absolute;
    right: 46px;
    bottom: 120px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 22px;
}

.hero-count {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-family: var(--font-display);
    color: rgba(255, 255, 255, 0.85);
}

.hero-count b {
    font-size: 40px;
    font-weight: 600;
    line-height: 1;
}

.hero-count span {
    color: var(--muted-2);
    font-size: 13px;
}

.hero-score {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    padding: 12px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: rgba(7, 8, 13, 0.4);
    backdrop-filter: blur(10px);
}

.hero-score span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-score strong {
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 26px;
    line-height: 1.1;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 30px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 18px;
    width: min(100% - 48px, var(--container));
    transform: translateX(-50%);
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    transition: width 0.3s var(--ease), background 0.3s;
}

.hero-dot.is-active {
    width: 26px;
    background: var(--accent);
}

.hero-progress {
    position: relative;
    flex: 1;
    height: 2px;
    max-width: 260px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.hero-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.hero-progress span.is-running {
    animation: hero-progress 8s linear forwards;
}

@keyframes hero-progress {
    from { width: 0; }
    to { width: 100%; }
}

.hero-arrows {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.hero-arrows .icon-btn {
    width: 42px;
    height: 42px;
    background: rgba(7, 8, 13, 0.45);
    backdrop-filter: blur(10px);
}

.hero-empty {
    display: grid;
    place-items: center;
    min-height: 520px;
    padding: 80px 0;
}

.hero-empty-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}

.hero-empty-inner h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 4rem);
    letter-spacing: -0.03em;
}

.hero-empty-inner p {
    max-width: 540px;
    color: var(--muted);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Статистика
   -------------------------------------------------------------------------- */

.stats-strip-wrap {
    position: relative;
    z-index: 6;
    margin-top: -34px;
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 20px 26px;
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    background: rgba(15, 18, 28, 0.88);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: 20px;
    border-right: 1px solid var(--line);
}

.stat strong {
    font-family: var(--font-display);
    font-size: 24px;
    line-height: 1.1;
}

.stat span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.stats-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 18px;
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    border-radius: 14px;
    background: rgba(var(--accent-rgb), 0.09);
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    transition: background 0.2s, border-color 0.2s;
}

.stats-cta:hover {
    background: rgba(var(--accent-rgb), 0.16);
    border-color: rgba(var(--accent-rgb), 0.55);
}

/* --------------------------------------------------------------------------
   Секции и карточки
   -------------------------------------------------------------------------- */

.section {
    padding: 54px 0;
}

.section-tight {
    padding: 26px 0 56px;
}

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

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.section-heading h2 {
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.2s;
}

.section-link .ico {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.section-link:hover {
    color: var(--accent);
}

.section-link:hover .ico {
    transform: translateX(3px);
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 28px 20px;
}

.movie-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 300px);
    gap: 20px;
    overflow-x: auto;
    padding: 2px 2px 14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.movie-row .movie-card {
    scroll-snap-align: start;
}

.movie-card {
    display: flex;
    flex-direction: column;
    gap: 11px;
    min-width: 0;
}

.card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-2);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.35s var(--ease);
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease), filter 0.4s;
}

.movie-card:hover .card-media {
    border-color: rgba(var(--accent-rgb), 0.45);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.45);
    transform: translateY(-4px);
}

.movie-card:hover .card-media img {
    transform: scale(1.07);
    filter: saturate(1.1);
}

.card-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), transparent 55%);
    pointer-events: none;
}

.card-duration,
.card-age {
    position: absolute;
    bottom: 9px;
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 8px;
    border-radius: 7px;
    background: rgba(7, 8, 13, 0.72);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

.card-duration {
    right: 9px;
}

.card-age {
    left: 9px;
    color: rgba(255, 255, 255, 0.75);
}

.card-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #0a0b10;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.25s, transform 0.3s var(--ease);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.card-play .ico {
    width: 24px;
    height: 24px;
    margin-left: 2px;
}

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

.card-body h3 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.card-body h3 a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s;
}

.card-body h3 a:hover {
    color: var(--accent);
}

.card-meta {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   Жанры и годы
   -------------------------------------------------------------------------- */

.genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.genre-grid-large {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.genre-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 3px;
    min-height: 132px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(145deg, var(--surface), var(--surface-2));
    transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}

.genre-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--accent-rgb), 0.45);
    background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.12), var(--surface-2));
}

.genre-letter {
    position: absolute;
    top: -22px;
    right: 4px;
    color: rgba(255, 255, 255, 0.045);
    font-family: var(--font-display);
    font-size: 112px;
    font-weight: 700;
    line-height: 1;
    transition: color 0.3s, transform 0.4s var(--ease);
}

.genre-tile:hover .genre-letter {
    color: rgba(var(--accent-rgb), 0.12);
    transform: translateY(4px);
}

/* Жанр-тайлы с постером */
.genre-tile.has-poster {
    justify-content: flex-end;
    min-height: 170px;
    padding-bottom: 22px;
    background-color: var(--surface-2);
    background-image: var(--tile-img);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.genre-tile.has-poster:hover {
    background-image: var(--tile-img);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: translateY(-4px) scale(1.01);
}

.genre-tile-shade {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(4, 5, 10, 0.30) 0%, rgba(4, 5, 10, 0.15) 38%, rgba(4, 5, 10, 0.92) 100%);
    pointer-events: none;
    transition: opacity 0.3s;
}

.genre-tile.has-poster:hover .genre-tile-shade {
    opacity: 0.85;
}

.genre-tile.has-poster .genre-letter {
    display: none;
}

.genre-tile.has-poster .genre-name,
.genre-tile.has-poster .genre-count,
.genre-tile.has-poster .genre-arrow {
    z-index: 1;
    position: relative;
}

.genre-tile.has-poster .genre-name {
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
    font-size: 19px;
}

.genre-tile.has-poster .genre-count {
    color: rgba(255, 255, 255, 0.78);
}

.genre-tile.has-poster .genre-arrow {
    z-index: 1;
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.genre-name {
    position: relative;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.genre-count {
    position: relative;
    color: var(--muted);
    font-size: 12px;
}

.genre-arrow {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--muted);
    opacity: 0.7;
    transition: opacity 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.genre-arrow .ico {
    width: 14px;
    height: 14px;
}

.genre-tile:hover .genre-arrow {
    opacity: 1;
    border-color: rgba(var(--accent-rgb), 0.5);
    color: var(--accent);
    transform: translateX(2px);
}

.year-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.year-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 84px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.year-pill b {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
}

.year-pill span {
    color: var(--muted);
    font-size: 11px;
}

.year-pill:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--accent-rgb), 0.45);
    background: rgba(var(--accent-rgb), 0.08);
}

.decade-block {
    margin-bottom: 38px;
}

.decade-head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 16px;
}

.decade-number {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.decade-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.year-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}

.year-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.year-card b {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 600;
}

.year-card span {
    color: var(--muted);
    font-size: 11px;
}

.year-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--accent-rgb), 0.4);
    background: rgba(var(--accent-rgb), 0.07);
}

.catalog-footnote {
    margin-top: 30px;
    color: var(--muted);
    font-size: 13px;
}

.catalog-footnote a {
    color: var(--accent);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Заголовок страницы / каталог
   -------------------------------------------------------------------------- */

.page-head {
    padding: 34px 0 26px;
    background: radial-gradient(60% 120% at 50% 0%, rgba(var(--accent-rgb), 0.07), transparent 70%);
}

.page-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-top: 20px;
}

.page-head h1 {
    margin: 8px 0 10px;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.03em;
}

.page-head p {
    max-width: 620px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.page-count {
    flex: 0 0 auto;
    text-align: right;
}

.page-count b {
    display: block;
    font-family: var(--font-display);
    font-size: 38px;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-count span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--muted-2);
    font-size: 12px;
}

.breadcrumbs a {
    transition: color 0.2s;
}

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

.breadcrumbs span {
    color: var(--muted);
}

.crumb-sep {
    color: var(--muted-2) !important;
    opacity: 0.6;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    padding-top: 8px;
    padding-bottom: 60px;
}

.filters {
    position: sticky;
    top: calc(var(--header-h) + 18px);
}

.filters-mobile-toggle {
    display: none;
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
}

.filter-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon > .ico {
    position: absolute;
    left: 13px;
    width: 16px;
    height: 16px;
    color: var(--muted-2);
    pointer-events: none;
}

.input-with-icon input {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 38px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
    outline: none;
    font-size: 13px;
    transition: border-color 0.2s, background 0.2s;
}

.input-with-icon input:focus {
    border-color: rgba(var(--accent-rgb), 0.55);
    background: var(--surface-3);
}

.input-with-icon input::placeholder {
    color: var(--muted-2);
}

.select-wrap {
    position: relative;
}

.select-wrap select {
    width: 100%;
    height: 44px;
    padding: 0 38px 0 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 13px;
    outline: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.select-wrap select:focus {
    border-color: rgba(var(--accent-rgb), 0.55);
}

.select-wrap > .ico {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 15px;
    height: 15px;
    color: var(--muted-2);
    transform: translateY(-50%);
    pointer-events: none;
}

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 4px;
}

.filter-actions .btn {
    height: 42px;
    padding: 0 16px;
    font-size: 13px;
}

.filter-promo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 14px;
    border: 1px dashed var(--line-strong);
    border-radius: 16px;
    color: var(--muted);
    transition: border-color 0.2s, background 0.2s;
}

.filter-promo:hover {
    border-color: rgba(var(--accent-rgb), 0.5);
    background: rgba(var(--accent-rgb), 0.05);
}

.filter-promo-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(var(--accent-rgb), 0.12);
    color: var(--accent);
}

.filter-promo b {
    display: block;
    color: var(--text);
    font-size: 13px;
}

.filter-promo small {
    display: block;
    font-size: 11px;
}

.filter-promo > .ico {
    width: 16px;
    height: 16px;
    margin-left: auto;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 18px;
}

.active-filters-label {
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 700;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    border-radius: 999px;
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
}

.filter-chip .ico {
    width: 12px;
    height: 12px;
}

.catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

/* --------------------------------------------------------------------------
   Пагинация
   -------------------------------------------------------------------------- */

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}

.page-link,
.page-arrow {
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.page-link:hover,
.page-arrow:hover {
    border-color: var(--line-strong);
    background: var(--surface-2);
    color: var(--text);
}

.page-link.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--accent-ink);
}

.page-arrow .ico {
    width: 17px;
    height: 17px;
}

.page-arrow.is-disabled {
    opacity: 0.3;
    cursor: default;
}

.page-dots {
    padding: 0 4px;
    color: var(--muted-2);
}

/* --------------------------------------------------------------------------
   Страница фильма
   -------------------------------------------------------------------------- */

.movie-page {
    padding-top: 22px;
    padding-bottom: 50px;
}

.movie-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
    gap: 30px;
    align-items: start;
    margin-top: 20px;
}

.player {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #000;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55);
}

.player-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.player-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(65% 65% at 50% 45%, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.55));
}

.player-play {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    background: none;
    color: #fff;
}

.play-ring {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--accent-ink);
    box-shadow: 0 0 0 12px rgba(var(--accent-rgb), 0.14), 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.play-ring .ico {
    width: 34px;
    height: 34px;
    margin-left: 4px;
}

.player-play:hover .play-ring {
    transform: scale(1.07);
    box-shadow: 0 0 0 20px rgba(var(--accent-rgb), 0.12), 0 24px 60px rgba(0, 0, 0, 0.55);
}

.play-label {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.player-note {
    position: absolute;
    left: 13px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.72);
    font-size: 10px;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.player-note .ico {
    width: 12px;
    height: 12px;
}

.player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.player-missing {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

.player-missing .ico {
    width: 38px;
    height: 38px;
    color: var(--accent);
}

.player-under {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
    color: var(--muted-2);
    font-size: 11px;
    line-height: 1.5;
}

.player-under span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.player-under .ico {
    width: 13px;
    height: 13px;
}

.player-under a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    white-space: nowrap;
}

.player-under a:hover {
    color: var(--accent);
}

.movie-side {
    position: sticky;
    top: calc(var(--header-h) + 18px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(160deg, var(--surface), rgba(20, 24, 39, 0.55));
}

.movie-rating {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.rating-value {
    font-family: var(--font-display);
    font-size: 46px;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rating-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars span {
    display: grid;
    place-items: center;
}

.stars .ico {
    width: 14px;
    height: 14px;
}

.stars .is-on {
    color: var(--accent);
}

.stars .is-off {
    color: rgba(255, 255, 255, 0.14);
}

.rating-info > span {
    color: var(--muted);
    font-size: 11px;
}

.movie-title {
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2.6vw, 2.1rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.movie-meta {
    gap: 7px;
}

.movie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.movie-actions .btn {
    height: 44px;
    padding: 0 16px;
    font-size: 13px;
}

.movie-facts {
    display: grid;
    margin-top: 2px;
}

.movie-facts > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
}

.movie-facts > div:last-child {
    border-bottom: 0;
}

.movie-facts dt {
    color: var(--muted);
}

.movie-facts dd {
    margin: 0;
    text-align: right;
    font-weight: 600;
}

.movie-facts dd a {
    color: var(--accent);
}

.movie-about {
    max-width: 920px;
    margin-top: 46px;
}

.prose {
    color: #c5c9d6;
    font-size: 15.5px;
    line-height: 1.8;
}

.prose a {
    color: var(--accent);
}

.prose-wrap {
    max-width: 840px;
}

.section-similar {
    padding-bottom: 0;
}

/* --------------------------------------------------------------------------
   Поиск
   -------------------------------------------------------------------------- */

.search-hero-form {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 720px;
    margin-top: 18px;
    padding: 8px 8px 8px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.search-hero-form > .ico {
    width: 20px;
    height: 20px;
    color: var(--muted);
}

.search-hero-form input {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: 0;
    background: none;
    outline: none;
    font-size: 16px;
}

.search-hero-form input::placeholder {
    color: var(--muted-2);
}

.search-hero-form .btn {
    height: 44px;
}

.search-summary {
    margin-top: 16px;
    color: var(--muted);
    font-size: 14px;
}

.search-summary b {
    color: var(--text);
}

.search-suggestions {
    padding-top: 8px;
}

/* --------------------------------------------------------------------------
   Пустые состояния, 404, баннер
   -------------------------------------------------------------------------- */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 64px 24px;
    border: 1px dashed var(--line-strong);
    border-radius: 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.015);
}

.empty-icon {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
}

.empty-icon .ico {
    width: 32px;
    height: 32px;
}

.empty-state h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
}

.empty-state p {
    max-width: 420px;
    color: var(--muted);
    font-size: 14px;
}

.empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.error-page {
    display: grid;
    place-items: center;
    min-height: 68vh;
    padding: 60px 0;
}

.error-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.error-code {
    font-family: var(--font-display);
    font-size: clamp(7rem, 22vw, 15rem);
    font-weight: 800;
    line-height: 0.8;
    letter-spacing: -0.08em;
    background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.9), rgba(var(--accent-rgb), 0.08));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 20px 60px rgba(var(--accent-rgb), 0.2));
}

.error-inner h1 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.error-inner p {
    max-width: 520px;
    color: var(--muted);
    line-height: 1.7;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.random-band {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 38px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        radial-gradient(110% 180% at 0% 0%, rgba(var(--accent-rgb), 0.22), transparent 55%),
        var(--surface);
}

.random-band::after {
    content: "";
    position: absolute;
    top: -90px;
    right: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.22), transparent 65%);
    pointer-events: none;
}

.random-copy {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.random-band h2 {
    margin: 8px 0 8px;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: -0.02em;
}

.random-band p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.random-band .btn {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   Футер
   -------------------------------------------------------------------------- */

.site-footer {
    margin-top: 40px;
    padding: 54px 0 26px;
    border-top: 1px solid var(--line);
    background: linear-gradient(0deg, #05060a, transparent);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.7fr repeat(3, 1fr);
    gap: 34px;
}

.footer-brand p {
    max-width: 360px;
    margin: 14px 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.footer-random {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}

.footer-random .ico {
    width: 16px;
    height: 16px;
}

.footer-col h4 {
    margin-bottom: 13px;
    color: var(--muted-2);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.footer-col ul {
    display: grid;
    gap: 8px;
    list-style: none;
}

.footer-col a {
    color: #c3c7d4;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-wordmark {
    margin: 44px 0 12px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.035);
    font-family: var(--font-display);
    font-size: clamp(3rem, 11vw, 9.5rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.05em;
    text-align: center;
    white-space: nowrap;
    user-select: none;
}

.footer-bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted-2);
    font-size: 11px;
    line-height: 1.6;
}

.footer-bottom p {
    max-width: 760px;
}

.footer-bottom-right {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 14px;
}

.footer-bottom-right a:hover {
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   Мобильная панель, cookie, flash
   -------------------------------------------------------------------------- */

.mobile-tabbar {
    display: none;
}

.cookie-note {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 460px;
    padding: 14px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: rgba(15, 18, 28, 0.96);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.cookie-note[hidden] {
    display: none;
}

.cookie-note a {
    color: var(--accent);
}

.cookie-note .btn {
    flex: 0 0 auto;
    height: 36px;
    padding: 0 14px;
    font-size: 12px;
}

.flash-stack {
    position: fixed;
    top: calc(var(--header-h) + 12px);
    right: 20px;
    z-index: 400;
    display: grid;
    gap: 8px;
    width: min(380px, calc(100vw - 40px));
}

.flash {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 15px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: rgba(15, 18, 28, 0.97);
    color: var(--text);
    font-size: 13px;
    line-height: 1.45;
    box-shadow: var(--shadow);
    animation: flash-in 0.4s var(--ease);
    backdrop-filter: blur(16px);
}

.flash .ico {
    width: 17px;
    height: 17px;
    margin-top: 1px;
}

.flash-success {
    border-color: rgba(69, 224, 165, 0.35);
}

.flash-success .ico {
    color: #45e0a5;
}

.flash-error {
    border-color: rgba(255, 107, 125, 0.4);
}

.flash-error .ico {
    color: #ff6b7d;
}

.flash-warning {
    border-color: rgba(255, 190, 90, 0.4);
}

.flash-warning .ico {
    color: #ffbe5a;
}

.flash-info .ico {
    color: var(--accent);
}

@keyframes flash-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   Анимация появления
   -------------------------------------------------------------------------- */

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   Адаптив
   -------------------------------------------------------------------------- */

@media (max-width: 1120px) {
    .header-search {
        width: 230px;
    }

    .header-search:focus-within {
        width: 270px;
    }

    .hero-aside {
        right: 32px;
    }

    .movie-stage {
        grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.8fr);
        gap: 22px;
    }
}

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

    .header-search {
        margin-left: auto;
    }

    .nav-toggle {
        display: inline-grid;
        place-items: center;
    }

    .hero {
        min-height: 590px;
    }

    .hero-inner {
        min-height: 590px;
        padding-bottom: 100px;
    }

    .hero-aside {
        display: none;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .filters {
        position: static;
    }

    .filters-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: 48px;
        padding: 0 16px;
        border: 1px solid var(--line-strong);
        border-radius: 14px;
        background: var(--surface);
        font-size: 14px;
        font-weight: 700;
    }

    .filters-mobile-toggle .ico:first-child {
        width: 17px;
        height: 17px;
        margin-right: 8px;
        color: var(--accent);
    }

    .filters .filter-form {
        display: none;
        margin-top: 10px;
    }

    .filters.is-open .filter-form {
        display: flex;
    }

    .filters.is-open .filters-mobile-toggle .ico:last-child {
        transform: rotate(180deg);
    }

    .filter-promo {
        display: none;
    }

    .movie-stage {
        grid-template-columns: 1fr;
    }

    .movie-side {
        position: static;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    :root {
        --header-h: 66px;
    }

    .container {
        width: min(100% - 32px, var(--container));
    }

    .header-inner {
        gap: 12px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .brand-text strong {
        font-size: 15px;
    }

    .brand-text small {
        display: none;
    }

    .header-search {
        display: none;
    }

    .hero {
        min-height: 540px;
        margin-top: 12px;
        border-radius: 24px;
    }

    .hero-inner {
        min-height: 540px;
        padding-top: 90px;
        padding-bottom: 92px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-desc {
        -webkit-line-clamp: 2;
        font-size: 14px;
    }

    .hero-badge {
        height: 30px;
        font-size: 10px;
    }

    .hero-actions .btn {
        height: 48px;
        padding: 0 20px;
        font-size: 14px;
    }

    .hero-controls {
        bottom: 20px;
        width: min(100% - 32px, var(--container));
        gap: 12px;
    }

    .hero-progress {
        max-width: none;
    }

    .hero-arrows .icon-btn {
        width: 38px;
        height: 38px;
    }

    .stats-strip-wrap {
        margin-top: -26px;
    }

    .stats-strip {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        padding: 16px;
    }

    .stat {
        padding-right: 0;
        border-right: 0;
    }

    .stat:nth-child(odd) {
        border-right: 1px solid var(--line);
        padding-right: 14px;
    }

    .stat strong {
        font-size: 21px;
    }

    .stats-cta {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .section {
        padding: 40px 0;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }

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

    .movie-row {
        grid-auto-columns: minmax(220px, 74vw);
    }

    .card-media {
        border-radius: 14px;
    }

    .card-body h3 {
        font-size: 13px;
    }

    .card-play {
        width: 44px;
        height: 44px;
        opacity: 1;
        transform: scale(1);
        background: rgba(7, 8, 13, 0.5);
        color: #fff;
        backdrop-filter: blur(4px);
    }

    .card-play .ico {
        width: 20px;
        height: 20px;
    }

    .rating-badge {
        top: 7px;
        right: 7px;
        height: 24px;
        padding: 0 7px;
        font-size: 10px;
    }

    .card-duration,
    .card-age {
        bottom: 7px;
        height: 20px;
        font-size: 9px;
    }

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

    .genre-tile {
        min-height: 112px;
        padding: 16px;
    }

    .genre-name {
        font-size: 15px;
    }

    .genre-letter {
        font-size: 86px;
    }

    .page-head {
        padding: 24px 0 20px;
    }

    .page-head-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        margin-top: 14px;
    }

    .page-head h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .page-count {
        text-align: left;
    }

    .page-count b {
        display: inline;
        font-size: 26px;
        margin-right: 6px;
    }

    .movie-page {
        padding-top: 16px;
    }

    .movie-stage {
        margin-top: 14px;
        gap: 16px;
    }

    .player {
        border-radius: 18px;
    }

    .play-ring {
        width: 68px;
        height: 68px;
    }

    .play-ring .ico {
        width: 26px;
        height: 26px;
    }

    .play-label {
        font-size: 12px;
    }

    .player-under {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .movie-side {
        padding: 20px;
        border-radius: 20px;
    }

    .movie-about {
        margin-top: 32px;
    }

    .prose {
        font-size: 14.5px;
    }

    .search-hero-form {
        flex-wrap: wrap;
        padding: 10px;
        border-radius: 18px;
    }

    .search-hero-form input {
        flex-basis: calc(100% - 36px);
        height: 40px;
    }

    .search-hero-form .btn {
        width: 100%;
    }

    .random-band {
        flex-direction: column;
        align-items: flex-start;
        padding: 26px;
    }

    .random-band .btn {
        width: 100%;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 26px;
    }

    .footer-wordmark {
        margin-top: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
    }

    .mobile-tabbar {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 150;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        height: 62px;
        border: 1px solid var(--line-strong);
        border-radius: 20px;
        background: rgba(15, 18, 28, 0.94);
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(20px);
        overflow: hidden;
    }

    .mobile-tabbar a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: var(--muted);
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.04em;
        transition: color 0.2s, background 0.2s;
    }

    .mobile-tabbar a .ico {
        width: 20px;
        height: 20px;
    }

    .mobile-tabbar a.is-active {
        color: var(--accent);
        background: rgba(var(--accent-rgb), 0.07);
    }

    body {
        padding-bottom: 86px;
    }

    .cookie-note {
        left: 12px;
        right: 12px;
        bottom: 86px;
        max-width: none;
    }

    .flash-stack {
        top: calc(var(--header-h) + 8px);
        right: 12px;
        width: calc(100vw - 24px);
    }

    .breadcrumbs {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .movie-grid {
        gap: 18px 10px;
    }

    .card-meta {
        font-size: 10.5px;
    }

    .hero {
        min-height: 500px;
    }

    .hero-inner {
        min-height: 500px;
    }

    .hero-meta .chip:nth-child(n + 5) {
        display: none;
    }

    .genre-name {
        font-size: 14px;
    }

    .genre-count {
        font-size: 10px;
    }

    .genre-arrow {
        display: none;
    }

    .movie-actions .btn {
        flex: 1;
    }

    .movie-actions .btn.icon-only {
        flex: 0 0 44px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }
}
