/* ============================================
   KINOMANIA — Netflix-grade UI
   ============================================ */

html[data-theme="light"] {
    --bg: #f7f7fa;
    --bg-2: #ececf2;
    --surface: #ffffff;
    --surface-2: #f2f2f7;
    --border: #e4e4ea;
    --text: #16161d;
    --text-2: #6a6a78;
    --accent: #4f46e5;
    --accent-2: #4f46e5;
    --accent-text: #ffffff;
    --rating: #d97706;
    --shadow-hover: 0 20px 40px rgba(20, 20, 50, .15);
    --cursor-default: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M3 2 L3 20 L8.5 15 L12 22 L15 20.5 L11.5 13.5 L20 13 Z" fill="%23111113" stroke="%23ffffff" stroke-width="1" stroke-linejoin="round"/></svg>') 3 2, auto;
    --cursor-pointer: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M3 2 L3 20 L8.5 15 L12 22 L15 20.5 L11.5 13.5 L20 13 Z" fill="%234f46e5" stroke="%23111113" stroke-width="1" stroke-linejoin="round"/></svg>') 3 2, pointer;
}

html[data-theme="dark"] {
    --bg: #0e0e11;
    --bg-2: #16161c;
    --surface: #17171e;
    --surface-2: #1e1e27;
    --border: #26262e;
    --text: #f5f5f7;
    --text-2: #9090a0;
    --accent: #5b8def;
    --accent-2: #5b8def;
    --accent-text: #ffffff;
    --rating: #f5c518;
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, .55);
    --cursor-default: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M3 2 L3 20 L8.5 15 L12 22 L15 20.5 L11.5 13.5 L20 13 Z" fill="%23ffffff" stroke="%23141419" stroke-width="1" stroke-linejoin="round"/></svg>') 3 2, auto;
    --cursor-pointer: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M3 2 L3 20 L8.5 15 L12 22 L15 20.5 L11.5 13.5 L20 13 Z" fill="%235b8def" stroke="%23ffffff" stroke-width="1" stroke-linejoin="round"/></svg>') 3 2, pointer;
}

html[data-theme="neon"] {
    --bg: #07070d;
    --bg-2: #0c0c18;
    --surface: #101020;
    --surface-2: #16162a;
    --border: rgba(0, 229, 255, .18);
    --text: #ffffff;
    --text-2: #8f92ad;
    --accent: #00e5ff;
    --accent-2: #ff2bd6;
    --accent-text: #07070d;
    --rating: #00e5ff;
    --shadow-hover: 0 20px 40px rgba(255, 43, 214, .3), 0 0 40px rgba(0, 229, 255, .2);
    --cursor-default: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M3 2 L3 20 L8.5 15 L12 22 L15 20.5 L11.5 13.5 L20 13 Z" fill="%2300e5ff" stroke="%23ff2bd6" stroke-width="1" stroke-linejoin="round"/></svg>') 3 2, auto;
    --cursor-pointer: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M3 2 L3 20 L8.5 15 L12 22 L15 20.5 L11.5 13.5 L20 13 Z" fill="%23ff2bd6" stroke="%2300e5ff" stroke-width="1" stroke-linejoin="round"/></svg>') 3 2, pointer;
}


/* 🎃 HALLOWEEN — 4-я тема: оранжево-фиолетовая, тёмный тыквенный фон */

html[data-theme="halloween"] {
    --bg: #0a0510;
    --bg-2: #14081c;
    --surface: #1a0e26;
    --surface-2: #241633;
    --border: rgba(255, 107, 26, .22);
    --text: #f7ead8;
    --text-2: #a89ac4;
    --accent: #ff6b1a;
    --accent-2: #a855f7;
    --accent-text: #0a0510;
    --rating: #ff6b1a;
    --shadow-hover: 0 20px 40px rgba(168, 85, 247, .35), 0 0 40px rgba(255, 107, 26, .25);
    --cursor-default: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M3 2 L3 20 L8.5 15 L12 22 L15 20.5 L11.5 13.5 L20 13 Z" fill="%23ff6b1a" stroke="%230a0510" stroke-width="1" stroke-linejoin="round"/></svg>') 3 2, auto;
    --cursor-pointer: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M3 2 L3 20 L8.5 15 L12 22 L15 20.5 L11.5 13.5 L20 13 Z" fill="%23a855f7" stroke="%23ff6b1a" stroke-width="1" stroke-linejoin="round"/></svg>') 3 2, pointer;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    background: var(--bg);
    color: var(--text);
    padding-bottom: 40px;
    min-height: 100vh;
    overflow-x: clip;
    transition: background .3s ease, color .3s ease;
    cursor: var(--cursor-default);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    line-height: 1.5;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 6px;
    border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--accent) 60%, var(--border));
}

a,
button,
.movie-card,
.poster,
.cat-btn,
.fav-icon,
.p-tab,
.close-btn,
.btn-play,
.btn-submit-comm,
.telegram-btn,
.fav-btn-header,
.theme-switcher button,
select,
.rec-arrow,
.movie-action-btn,
.movie-meta-tag--genre,
.premium-cat-btn,
.apply-cat-btn,
.load-more-btn {
    cursor: var(--cursor-pointer);
}

input[type="text"],
input[type="search"],
textarea {
    cursor: var(--cursor-pointer);
}

.bg-layer {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 15% 10%, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 45%), radial-gradient(circle at 85% 90%, color-mix(in srgb, var(--accent-2) 8%, transparent) 0%, transparent 45%), var(--bg);
    transition: background .4s ease;
}

html[data-theme="neon"] .bg-layer {
    background: radial-gradient(circle at 15% 10%, rgba(0, 229, 255, .1) 0%, transparent 50%), radial-gradient(circle at 85% 90%, rgba(255, 43, 214, .1) 0%, transparent 50%), var(--bg);
}


/* 🎃 HALLOWEEN — фон, логотип-свеча, оранжевая лупа, оранжевые стрелки селектов */

html[data-theme="halloween"] .bg-layer {
    background: radial-gradient(circle at 15% 10%, rgba(255, 107, 26, .14) 0%, transparent 50%), radial-gradient(circle at 85% 90%, rgba(168, 85, 247, .18) 0%, transparent 50%), var(--bg);
}

html[data-theme="halloween"] .logo-mark {
    animation: halloweenGlow 3.5s ease-in-out infinite;
}

@keyframes halloweenGlow {
    0%,
    100% {
        box-shadow: 0 6px 24px rgba(255, 107, 26, .5), 0 0 20px rgba(168, 85, 247, .2);
    }
    50% {
        box-shadow: 0 6px 32px rgba(255, 107, 26, .85), 0 0 36px rgba(168, 85, 247, .45);
    }
}

html[data-theme="halloween"] .search-box input {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ff6b1a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'></circle><line x1='21' y1='21' x2='16.65' y2='16.65'></line></svg>");
}

html[data-theme="halloween"] .search-box input:focus {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ff6b1a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'></circle><line x1='21' y1='21' x2='16.65' y2='16.65'></line></svg>");
    box-shadow: 0 0 0 4px rgba(255, 107, 26, .22);
}

html[data-theme="halloween"] .year-filter,
html[data-theme="halloween"] .type-filter,
html[data-theme="halloween"] .sort-filter {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ff6b1a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
}


/* PRELOADER */

.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transition: opacity .5s ease, visibility .5s ease;
    animation: autoHidePreloader 0s linear 1.8s forwards;
}

@keyframes autoHidePreloader {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.reel {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--accent);
    border-right-color: var(--accent-2);
    animation: spin .9s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.preload-text {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 1.6rem;
    letter-spacing: 6px;
    color: var(--text-2);
}


/* HEADER */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 4%;
    background: color-mix(in srgb, var(--bg) 50%, transparent);
    backdrop-filter: blur(30px) saturate(1.6);
    -webkit-backdrop-filter: blur(30px) saturate(1.6);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    gap: 12px;
    min-height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--accent-text);
    border-radius: 10px;
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 1.4rem;
    box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 40%, transparent);
    transition: transform .25s ease;
}

.logo:hover .logo-mark {
    transform: scale(1.05) rotate(-3deg);
}

.logo-text {
    color: var(--text);
    font-family: 'Bebas Neue', Impact, sans-serif;
    letter-spacing: 2px;
    font-size: 1.5rem;
    font-weight: 400;
}

.header-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
}


/* ============================================
   🔍 SEARCH BOX — с иконкой лупы
   ============================================ */

.search-box {
    min-width: 0;
    flex: 0 1 280px;
    position: relative;
}

.search-box input {
    background-color: var(--surface);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239090a0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'></circle><line x1='21' y1='21' x2='16.65' y2='16.65'></line></svg>");
    background-repeat: no-repeat;
    background-position: 16px center;
    background-size: 16px 16px;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 16px 10px 44px;
    border-radius: 100px;
    width: 100%;
    outline: none;
    font-size: .9rem;
    transition: border-color .2s, box-shadow .2s, background-color .2s, background-image .2s;
}

.search-box input:focus {
    border-color: var(--accent);
    background-color: color-mix(in srgb, var(--accent) 4%, var(--surface));
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b8def' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'></circle><line x1='21' y1='21' x2='16.65' y2='16.65'></line></svg>");
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.search-box input::placeholder {
    color: var(--text-2);
}


/* ============================================
   КОНЕЦ SEARCH BOX
   ============================================ */

.fav-btn-header {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 16px;
    border-radius: 100px;
    font-weight: 600;
    font-size: .88rem;
    transition: all .2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.fav-btn-header:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

.theme-switcher {
    display: flex;
    gap: 2px;
    padding: 3px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    flex-shrink: 0;
}

.theme-switcher button {
    background: transparent;
    border: none;
    color: var(--text-2);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1rem;
    transition: all .2s;
    display: grid;
    place-items: center;
}

.theme-switcher button:hover {
    color: var(--text);
    background: var(--surface-2);
}

.theme-switcher button.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--accent-text);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 40%, transparent);
}


/* ЗАГОЛОВКИ */

.section-title,
.recommend-title,
.similar-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.5px;
    color: var(--text);
    line-height: 1.2;
}

.section-title {
    padding: 0 4%;
    margin-bottom: 20px;
}

.recommend-title {
    margin-bottom: 4px;
}

.similar-title {
    flex-wrap: wrap;
    margin: 0;
}

.section-title::before,
.recommend-title::before,
.similar-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 26px;
    border-radius: 3px;
    flex-shrink: 0;
    order: -1;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 60%, transparent);
}

.recommend-sub {
    color: var(--text-2);
    font-size: .85rem;
    margin-left: 16px;
    font-weight: 500;
}

.similar-title-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.5px;
    color: var(--text);
    line-height: 1.2;
}

.similar-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--accent);
    filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 70%, transparent));
    animation: iconFloat 3s ease-in-out infinite;
}

.similar-title-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

@keyframes iconFloat {
    0%,
    100% {
        transform: translateY(0) rotate(-4deg);
    }
    50% {
        transform: translateY(-3px) rotate(4deg);
    }
}

.modal-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -.5px;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 8px;
}

#moviesGrid .empty-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -.5px;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 4px;
}


/* РЕЗУЛЬТАТЫ ПОИСКА */

#sectionTitle.section-title--search {
    display: grid;
    grid-template-columns: 4px 26px 1fr 300px;
    align-items: center;
    column-gap: 12px;
    padding: 20px 4% 16px;
    margin-bottom: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.5px;
    color: var(--text);
    line-height: 1.2;
}

#sectionTitle.section-title--search::before {
    content: '';
    grid-column: 1;
    grid-row: 1;
    width: 4px;
    height: 30px;
    border-radius: 3px;
    align-self: center;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 60%, transparent);
}

#sectionTitle.section-title--search .search-title-icon,
#sectionTitle.section-title--search .search-header-icon {
    grid-column: 2;
    grid-row: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: var(--accent);
    filter: drop-shadow(0 0 12px color-mix(in srgb, var(--accent) 55%, transparent));
    animation: iconFloat 3s ease-in-out infinite;
    align-self: center;
}

#sectionTitle.section-title--search .search-title-icon svg,
#sectionTitle.section-title--search .search-header-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

#sectionTitle.section-title--search .search-header-body {
    display: contents;
}

#sectionTitle.section-title--search .search-title-main,
#sectionTitle.section-title--search .search-header-title {
    grid-column: 3;
    grid-row: 1;
    text-align: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.5px;
    color: var(--text);
    line-height: 1.2;
    align-self: center;
}

#sectionTitle.section-title--search .search-title-meta,
#sectionTitle.section-title--search .search-header-sub {
    grid-column: 4;
    grid-row: 1;
    text-align: right;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-2);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    align-self: center;
    min-width: 0;
}

#sectionTitle.section-title--search .search-title-meta b,
#sectionTitle.section-title--search .search-header-sub b {
    color: var(--accent);
    font-weight: 800;
    font-size: 1rem;
    margin: 0 4px;
}

#sectionTitle.section-title--search .search-title-meta i,
#sectionTitle.section-title--search .search-header-query {
    color: var(--text);
    font-style: normal;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
    margin: 0 3px;
}


/* GRID КАРТОЧЕК */

.movies-grid {
    padding: 0 4%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

a.movie-card {
    text-decoration: none;
    color: inherit;
    display: block;
    -webkit-tap-highlight-color: transparent;
}

.movie-card {
    background: var(--surface);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    transition: transform .35s cubic-bezier(.2, .9, .3, 1.2), box-shadow .35s, border-color .35s;
    will-change: transform;
}

.movie-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.movie-card:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.poster {
    width: 100%;
    height: 260px;
    overflow: hidden;
    position: relative;
    background: var(--surface-2);
}

.poster::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .6) 100%);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
    z-index: 1;
}

.movie-card:hover .poster::after {
    opacity: 1;
}

.poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease, opacity .4s ease;
    display: block;
    opacity: 0;
    animation: posterFadeIn .5s ease forwards;
}

@keyframes posterFadeIn {
    to {
        opacity: 1;
    }
}

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

.fav-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1rem;
    z-index: 3;
    transition: all .25s;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .18);
    padding: 0;
    line-height: 1;
}

.fav-icon:hover {
    transform: scale(1.12);
    background: rgba(0, 0, 0, .85);
}

.fav-icon.active {
    color: #ff4a72;
    border-color: rgba(255, 74, 114, .5);
    box-shadow: 0 0 20px rgba(255, 74, 114, .5);
}

.card-info {
    padding: 12px 14px 14px;
}

.card-title {
    font-size: .92rem;
    font-weight: 700;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: .78rem;
    color: var(--text-2);
}

.card-rating {
    color: var(--rating);
    font-weight: 700;
}


/* ============================================
   RECOMMENDATIONS (Бесконечная карусель)
   ============================================ */

.recommend-block {
    padding: 28px 0 12px;
    margin-bottom: 8px;
    overflow: hidden;
}

.recommend-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 20px;
    padding: 0 4%;
    flex-wrap: wrap;
}


/* Прячем стрелки, так как теперь у нас автоматическая прокрутка */

.recommend-arrows {
    display: none !important;
}

.recommend-viewport {
    overflow: hidden;
    padding: 6px 0 20px;
    position: relative;
    /* Красивое затухание (маска) по краям экрана */
    mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
}

.recommend-track {
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* Расстояние между рядами */
    width: 100%;
}


/* Общие настройки для рядов */

.rec-row {
    display: flex;
    gap: 16px;
    width: max-content;
    animation-duration: 60s;
    /* Скорость прокрутки */
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
}


/* Останавливаем анимацию при наведении мыши */

.rec-row:hover {
    animation-play-state: paused;
}


/* Верхний ряд едет влево */

.row-left {
    animation-name: scrollLeft;
}


/* Нижний ряд едет вправо */

.row-right {
    animation-name: scrollRight;
}


/* Ключевые кадры анимации */

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 8px));
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(calc(-50% - 8px));
    }
    100% {
        transform: translateX(0);
    }
}

.recommend-track .movie-card {
    width: 200px;
    flex-shrink: 0;
    /* Убираем старую анимацию появления, чтобы не конфликтовала с каруселью */
    animation: none;
}

.recommend-track .poster {
    height: 290px;
}


/* Плашка РЕКОМЕНДУЕМ */

.recommend-track .movie-card::before,
.movie-card--rec::before {
    content: '★ РЕКОМЕНДУЕМ';
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 4;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--accent-text);
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .8px;
    padding: 4px 9px;
    border-radius: 6px;
    pointer-events: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
    white-space: nowrap;
}


/* HOME CTA */

.home-cta {
    padding: 20px 4% 30px;
    text-align: center;
}

.home-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 34px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--accent-text);
    border: none;
    border-radius: 100px;
    font-family: inherit;
    font-size: 1.02rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 12px 32px color-mix(in srgb, var(--accent) 40%, transparent);
}

.home-cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 44px color-mix(in srgb, var(--accent) 55%, transparent);
}

.home-cta-arrow {
    font-size: 1.2rem;
    transition: transform .22s ease;
}

.home-cta-btn:hover .home-cta-arrow {
    transform: translateX(5px);
}

.home-cta-sub {
    margin-top: 12px;
    color: var(--text-2);
    font-size: .85rem;
}


/* TELEGRAM */

.telegram-banner {
    margin: 20px 4% 24px;
    padding: 22px 28px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.telegram-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 6%, transparent) 0%, transparent 50%);
    pointer-events: none;
}

.telegram-banner>* {
    position: relative;
    z-index: 1;
}

.telegram-banner h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.telegram-banner p {
    color: var(--text-2);
    font-size: .85rem;
}

.telegram-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--accent-text);
    text-decoration: none;
    padding: 11px 22px;
    border-radius: 100px;
    font-weight: 700;
    font-size: .9rem;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 35%, transparent);
}

.telegram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px color-mix(in srgb, var(--accent) 50%, transparent);
}


/* ФИЛЬТРЫ */

.filters-container {
    padding: 24px 4% 0;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-actions-row {
    display: flex;
    gap: 10px;
}

.premium-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--surface), var(--surface-2));
    border: 1px solid var(--border);
    color: var(--text);
    font-family: inherit;
    font-size: .92rem;
    font-weight: 700;
    transition: all .25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.premium-cat-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 25%, transparent);
}

.cat-btn-icon {
    font-size: 1.1rem;
}

.filters-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    padding: 14px;
    background: color-mix(in srgb, var(--surface) 70%, transparent);
    border: 1px solid var(--border);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    margin: 0 4% 20px;
}

.year-filter,
.type-filter,
.sort-filter {
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--surface);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239090a0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 9px 34px 9px 14px;
    border-radius: 10px;
    outline: none;
    font-size: .86rem;
    font-family: inherit;
    font-weight: 500;
    transition: border-color .2s, box-shadow .2s;
    min-width: 150px;
}

.year-filter:hover,
.type-filter:hover,
.sort-filter:hover {
    border-color: var(--accent);
    background-color: color-mix(in srgb, var(--accent) 4%, var(--surface));
}

.year-filter:focus,
.type-filter:focus,
.sort-filter:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}


/* МОДАЛЬНОЕ ОКНО КАТЕГОРИЙ */

.cat-modal-content {
    max-width: 600px;
    padding: 28px;
}

.cat-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.cat-modal-grid .cat-btn {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-2);
    padding: 12px 10px;
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 600;
    text-align: center;
    transition: all .2s;
    font-family: inherit;
}

.cat-modal-grid .cat-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 8%, var(--surface-2));
}

.cat-modal-grid .cat-btn.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--accent-text);
    border-color: var(--accent);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent);
}

.cat-modal-footer {
    margin-top: 24px;
    text-align: right;
}

.apply-cat-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--accent-text);
    border: none;
    padding: 12px 32px;
    border-radius: 100px;
    font-weight: 700;
    font-size: .92rem;
    transition: transform .2s, box-shadow .2s;
    font-family: inherit;
}

.apply-cat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 45%, transparent);
}


/* РЕЖИМ ПОИСКА */

body.searching .recommend-block,
body.searching .telegram-banner,
body.searching .filters-container,
body.searching .filters-row,
body.searching .home-cta {
    display: none !important;
}


/* ⚠️ ВАЖНО: background-color (не background), чтобы не потерять иконку поиска */

body.searching .search-box input {
    border-color: var(--accent);
    background-color: color-mix(in srgb, var(--accent) 6%, var(--surface));
    animation: searchPulse 2s ease-in-out infinite;
}

@keyframes searchPulse {
    0%,
    100% {
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent), 0 0 20px color-mix(in srgb, var(--accent) 22%, transparent);
    }
    50% {
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent), 0 0 32px color-mix(in srgb, var(--accent) 40%, transparent);
    }
}

.card-title mark {
    background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 60%, transparent) 0%, color-mix(in srgb, var(--accent) 30%, transparent) 100%);
    color: var(--text);
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 5px;
    box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 45%, transparent);
}

body.searching .movies-grid .movie-card {
    animation: searchCardIn .5s cubic-bezier(.2, .9, .3, 1.2) both;
}

body.searching .movies-grid .movie-card:nth-child(1) {
    animation-delay: 0s;
}

body.searching .movies-grid .movie-card:nth-child(2) {
    animation-delay: .03s;
}

body.searching .movies-grid .movie-card:nth-child(3) {
    animation-delay: .06s;
}

body.searching .movies-grid .movie-card:nth-child(4) {
    animation-delay: .09s;
}

body.searching .movies-grid .movie-card:nth-child(5) {
    animation-delay: .12s;
}

body.searching .movies-grid .movie-card:nth-child(6) {
    animation-delay: .15s;
}

body.searching .movies-grid .movie-card:nth-child(7) {
    animation-delay: .18s;
}

body.searching .movies-grid .movie-card:nth-child(8) {
    animation-delay: .21s;
}

body.searching .movies-grid .movie-card:nth-child(9) {
    animation-delay: .24s;
}

body.searching .movies-grid .movie-card:nth-child(10) {
    animation-delay: .27s;
}

body.searching .movies-grid .movie-card:nth-child(n+11) {
    animation-delay: .3s;
}

@keyframes searchCardIn {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(.94);
        filter: blur(4px);
    }
    60% {
        opacity: 1;
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes titleFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#moviesGrid .empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    animation: titleFadeIn .4s ease;
}

#moviesGrid .empty-state--search {
    padding: 40px 20px;
    gap: 10px;
}

#moviesGrid .empty-hint {
    font-size: .95rem;
    color: var(--text-2);
    max-width: 400px;
    line-height: 1.5;
}


/* ПОХОЖИЕ */

.similar-block {
    padding: 40px 0 20px;
    margin-top: 20px;
    border-top: 1px solid var(--border);
    animation: titleFadeIn .5s ease;
    position: relative;
}

.similar-block::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 4%;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 60%, transparent);
}

.similar-head {
    padding: 0 4%;
    margin-bottom: 22px;
}

.similar-title-genres {
    font-size: .82rem;
    color: var(--accent);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    letter-spacing: .3px;
    text-transform: lowercase;
}


/* MOVIE PAGE */

.movie-page {
    padding: 24px 4% 10px;
}

.movie-page-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 80px 20px;
    color: var(--text-2);
}

.movie-error {
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.movie-error h2 {
    font-size: 1.6rem;
    font-weight: 800;
}

.movie-hero {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    margin-bottom: 32px;
}

.movie-hero-poster {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 2/3;
    background: var(--surface-2);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

.movie-hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.movie-hero-poster:hover img {
    transform: scale(1.03);
}

.movie-hero-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--accent-text);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 100px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}

.movie-hero-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.movie-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: .82rem;
    color: var(--text-2);
    align-items: center;
}

.movie-breadcrumb a {
    color: var(--text-2);
    text-decoration: none;
    transition: color .18s ease;
}

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

.movie-breadcrumb-sep {
    opacity: .5;
}

.movie-breadcrumb-current {
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

.movie-hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -.9px;
    line-height: 1.1;
    color: var(--text);
}

.movie-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.movie-meta-tag {
    display: inline-flex;
    align-items: center;
    font-size: .82rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 100px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-2);
    text-decoration: none;
    transition: all .18s ease;
}

.movie-meta-tag--year {
    background: color-mix(in srgb, var(--accent) 14%, var(--surface));
    border-color: color-mix(in srgb, var(--accent) 36%, transparent);
    color: var(--text);
}

.movie-meta-tag--genre:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.movie-meta-tag--rating {
    background: color-mix(in srgb, var(--rating) 16%, var(--surface));
    border-color: color-mix(in srgb, var(--rating) 42%, transparent);
    color: var(--rating);
    font-weight: 800;
}

.movie-meta-tag--type {
    background: var(--surface-2);
}

.movie-hero-tagline {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.7;
    opacity: .88;
    max-width: 720px;
}

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

.movie-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: inherit;
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none;
    transition: all .22s ease;
}

.movie-action-icon {
    font-size: .95rem;
    line-height: 1;
}

.movie-action-btn:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 25%, transparent);
}

.movie-action-btn--primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--accent-text);
    border-color: var(--accent);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 45%, transparent);
}

.movie-action-btn--primary:hover {
    box-shadow: 0 16px 36px color-mix(in srgb, var(--accent) 60%, transparent);
}

.movie-action-btn.active {
    background: color-mix(in srgb, #ff4a72 14%, var(--surface));
    border-color: #ff4a72;
    color: #ff4a72;
}

.movie-section {
    padding: 40px 0 20px;
    margin-top: 8px;
    animation: titleFadeIn .35s ease;
}

.movie-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.movie-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.5px;
    color: var(--text);
    line-height: 1.2;
    margin: 0;
}

.movie-section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 26px;
    border-radius: 3px;
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 60%, transparent);
}

.movie-section-sub {
    color: var(--text-2);
    font-size: .85rem;
    font-weight: 500;
}

.player-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.p-tab {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-2);
    padding: 10px 22px;
    border-radius: 100px;
    font-weight: 700;
    font-size: .88rem;
    transition: all .2s ease;
    font-family: inherit;
}

.p-tab:hover {
    color: var(--text);
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}

.p-tab.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--accent-text);
    border-color: var(--accent);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 40%, transparent);
}

.player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}

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

.player-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 20px;
    color: var(--text-2);
    font-weight: 600;
    font-size: .95rem;
    background: var(--bg-2);
}

.player-placeholder--error {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 30px;
}

.player-placeholder-icon {
    font-size: 2rem;
}

.player-placeholder-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
}

.player-placeholder-sub {
    font-size: .85rem;
    opacity: .75;
    max-width: 420px;
}

.player-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.player-actions a,
.player-actions button {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: .85rem;
    transition: all .2s;
    font-family: inherit;
}

.player-actions a:hover,
.player-actions button:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--accent-text);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.movie-about-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

.movie-about-text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text);
    opacity: .92;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.movie-about-text p {
    margin: 0;
}

.movie-about-note {
    color: var(--text-2);
    font-size: .92rem;
    line-height: 1.7;
    padding-left: 14px;
    border-left: 3px solid color-mix(in srgb, var(--accent) 60%, transparent);
}

.movie-about-facts {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 8px 20px;
    position: sticky;
    top: 100px;
}

.movie-fact-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--border);
    font-size: .9rem;
    align-items: baseline;
}

.movie-fact-row:last-child {
    border-bottom: none;
}

.movie-fact-row span {
    color: var(--text-2);
    font-weight: 500;
    flex-shrink: 0;
}

.movie-fact-row b {
    color: var(--text);
    font-weight: 700;
    text-align: right;
    min-width: 0;
}

.movie-fact-rating {
    color: var(--rating) !important;
    font-weight: 800 !important;
}

.comments-section {
    border-top: 0;
    padding-top: 0;
}

.comments-title {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 14px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.comment-input,
.comment-textarea {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 16px;
    border-radius: 10px;
    outline: none;
    font-family: inherit;
    font-size: .9rem;
    resize: vertical;
    transition: border-color .2s, box-shadow .2s;
}

.comment-input:focus,
.comment-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.comment-textarea {
    min-height: 90px;
}

.btn-submit-comm {
    align-self: flex-start;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--accent-text);
    border: none;
    padding: 12px 26px;
    border-radius: 10px;
    font-weight: 700;
    font-size: .9rem;
    transition: transform .2s, box-shadow .2s;
    font-family: inherit;
}

.btn-submit-comm:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 45%, transparent);
}

.comments-list {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-item {
    background: var(--surface);
    padding: 14px 16px;
    border-radius: 12px;
    border-left: 3px solid var(--accent);
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.comment-author {
    font-weight: 800;
    font-size: .84rem;
    color: var(--accent);
    margin-bottom: 4px;
}

.comment-text {
    font-size: .9rem;
    opacity: .88;
    line-height: 1.55;
}


/* MODAL */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .75);
    backdrop-filter: blur(8px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal.open {
    display: flex;
    animation: fadeIn .25s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    position: relative;
    color: var(--text);
    animation: modalIn .35s cubic-bezier(.2, .9, .3, 1.3);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(.95) translateY(15px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 1.7rem;
    line-height: 1;
    color: var(--text-2);
    background: none;
    border: none;
    transition: color .2s, transform .2s;
}

.close-btn:hover {
    color: var(--text);
    transform: rotate(90deg);
}

.modal-details {
    color: var(--text-2);
    font-size: .88rem;
    margin-bottom: 14px;
}

.modal-rating {
    color: var(--rating);
    font-weight: 700;
}

.modal-desc {
    font-size: .95rem;
    line-height: 1.6;
    margin-bottom: 22px;
    opacity: .9;
}

.series-controls {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.series-label {
    color: var(--text-2);
    font-size: .85rem;
    margin-right: 6px;
}

.series-select {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 8px;
    outline: none;
    font-size: .85rem;
}


/* PAGINATION */

.pagination {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    left: auto !important;
    top: auto !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .28), 0 4px 12px rgba(0, 0, 0, .12);
    z-index: 9998 !important;
    font-family: inherit;
    width: auto !important;
    max-width: calc(100vw - 32px);
    flex-wrap: nowrap;
    overflow: hidden;
    opacity: 0;
    transform: translate(60px, 40px) rotate(-8deg) scale(.7);
    animation: paginationCinemaIn .85s cubic-bezier(.2, .9, .3, 1.4) .5s forwards;
}

@keyframes paginationCinemaIn {
    0% {
        opacity: 0;
        transform: translate(60px, 40px) rotate(-8deg) scale(.7);
    }
    55% {
        opacity: 1;
        transform: translate(-8px, -8px) rotate(3deg) scale(1.06);
    }
    75% {
        transform: translate(2px, 2px) rotate(-1deg) scale(.98);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) rotate(0) scale(1);
    }
}

.pagination button {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-2);
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    border-radius: 9px;
    font-weight: 700;
    font-size: .84rem;
    font-family: inherit;
    transition: all .22s ease;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
}

.pagination button:hover:not(:disabled):not(.active) {
    color: var(--text);
    border-color: var(--border);
    background: var(--surface-2);
    transform: translateY(-2px);
}

.pagination button.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--accent-text);
    border-color: var(--accent);
    animation: projectorPulse 2.2s ease-in-out infinite;
}

@keyframes projectorPulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px 3px color-mix(in srgb, var(--accent) 55%, transparent);
        transform: scale(1.05);
    }
}

html[data-theme="neon"] .pagination button.active {
    animation: projectorPulseNeon 2.2s ease-in-out infinite;
}

@keyframes projectorPulseNeon {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 229, 255, .6), 0 0 0 0 rgba(255, 43, 214, .6);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 18px 4px rgba(0, 229, 255, .55), 0 0 28px 8px rgba(255, 43, 214, .4);
        transform: scale(1.06);
    }
}

.pagination button:disabled {
    opacity: .32;
    cursor: not-allowed;
}

.pagination .dots {
    color: var(--text-2);
    padding: 0 4px;
    user-select: none;
    font-weight: 700;
    font-size: .95rem;
    flex-shrink: 0;
}


/* LEGAL FOOTER */

.legal-footer {
    position: relative;
    margin-top: 80px;
    padding: 28px 4%;
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 30%, transparent);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    z-index: 1;
}

.legal-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px 10px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-2);
    font-family: inherit;
    font-size: .82rem;
    font-weight: 600;
    transition: all .22s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .1);
    white-space: nowrap;
}

.legal-toggle:hover {
    color: var(--text);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
}

.legal-icon {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--accent-text);
    font-size: .68rem;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}

.legal-toggle-text {
    line-height: 1;
}

.legal-panel {
    position: absolute;
    right: 4%;
    bottom: calc(100% + 12px);
    width: min(400px, calc(100vw - 40px));
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(.96);
    transform-origin: bottom right;
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
    pointer-events: none;
    overflow: hidden;
    z-index: 10;
}

.legal-footer.open .legal-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.legal-panel-inner {
    padding: 20px 22px 18px;
    color: var(--text-2);
    font-size: .82rem;
    line-height: 1.6;
    text-align: left;
}

.legal-panel-title {
    font-size: .95rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 12px;
    letter-spacing: -.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-panel-title::before {
    content: '';
    display: block;
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 50%, transparent);
    flex-shrink: 0;
}

.legal-text {
    margin: 0 0 10px;
    color: var(--text-2);
}

.legal-text b {
    color: var(--text);
    font-weight: 700;
}

.legal-text a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent);
    transition: color .2s, border-color .2s;
    padding-bottom: 1px;
}

.legal-text a:hover {
    color: var(--accent-2);
    border-bottom-style: solid;
}

.legal-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
    font-size: .74rem;
    opacity: .75;
}

.legal-sep {
    opacity: .5;
}

body:has(.modal.open) .legal-footer {
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}


/* RESPONSIVE */

@media (max-width: 1100px) {
    .recommend-track .movie-card {
        width: 185px;
    }
    .recommend-track .poster {
        height: 270px;
    }
}

@media (max-width: 900px) {
    .header {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 4%;
    }
    .logo {
        order: 1;
    }
    .header-controls {
        order: 2;
        flex: 1;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 6px;
    }
    .search-box {
        order: 5;
        flex: 1 1 100%;
    }
    .search-box input {
        width: 100%;
    }
    #sectionTitle.section-title--search {
        grid-template-columns: 4px 24px 1fr;
        row-gap: 6px;
        column-gap: 10px;
        padding: 18px 4% 14px;
    }
    #sectionTitle.section-title--search::before {
        height: 26px;
    }
    #sectionTitle.section-title--search .search-title-icon,
    #sectionTitle.section-title--search .search-header-icon {
        width: 24px;
        height: 24px;
    }
    #sectionTitle.section-title--search .search-title-main,
    #sectionTitle.section-title--search .search-header-title {
        font-size: 1.25rem;
        text-align: left;
    }
    #sectionTitle.section-title--search .search-title-meta,
    #sectionTitle.section-title--search .search-header-sub {
        grid-column: 3;
        grid-row: 2;
        text-align: right;
        font-size: .82rem;
        white-space: normal;
    }
    .recommend-track .movie-card {
        width: 170px;
    }
    .recommend-track .poster {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .theme-switcher {
        display: none;
    }
    .recommend-track .movie-card {
        width: 155px;
    }
    .recommend-track .poster {
        height: 225px;
    }
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 14px;
    }
    .poster {
        height: 210px;
    }
    .section-title,
    .recommend-title,
    .similar-title {
        font-size: 1.25rem;
    }
    .section-title::before,
    .recommend-title::before,
    .similar-title::before {
        height: 22px;
    }
    .similar-title-text {
        font-size: 1.25rem;
    }
    .similar-title-icon {
        width: 22px;
        height: 22px;
    }
    .modal-content {
        padding: 20px;
    }
    .modal-title {
        font-size: 1.4rem;
    }
    #moviesGrid .empty-title {
        font-size: 1.4rem;
    }
    .filters-row {
        flex-direction: column;
        align-items: stretch;
        margin: 0 4% 16px;
    }
    .year-filter,
    .type-filter,
    .sort-filter {
        width: 100%;
        min-width: 0;
    }
    .movie-hero {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .movie-hero-poster {
        max-width: 240px;
        margin: 0 auto;
    }
    .movie-hero-title {
        font-size: 1.7rem;
    }
    .movie-page {
        padding: 20px 4% 10px;
    }
    .movie-about-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .movie-about-facts {
        position: static;
    }
    .movie-section {
        padding: 30px 0 16px;
    }
    .movie-section-title {
        font-size: 1.25rem;
    }
    .movie-section-title::before {
        height: 22px;
    }
    .legal-footer {
        margin-top: 50px;
        padding: 24px 4% 20px;
    }
    .cat-modal-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
}

@media (max-width: 640px) {
    .pagination {
        bottom: 12px !important;
        right: 12px !important;
        padding: 6px 8px !important;
        gap: 2px;
        border-radius: 12px;
        max-width: calc(100vw - 24px);
    }
    .pagination button {
        min-width: 30px;
        height: 30px;
        font-size: .78rem;
        padding: 0 6px;
    }
    .filters-container,
    .section-title,
    .movies-grid,
    .recommend-head,
    .similar-head {
        padding-left: 3%;
        padding-right: 3%;
    }
    .telegram-banner {
        margin: 16px 3% 20px;
        padding: 16px 20px;
    }
    .recommend-track .movie-card {
        width: 145px;
    }
    .recommend-track .poster {
        height: 210px;
    }
    .legal-footer {
        margin-top: 40px;
        padding: 20px 3% 16px;
    }
    .legal-panel {
        right: 3%;
    }
    .p-tab {
        padding: 9px 16px;
        font-size: .82rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 3%;
        gap: 8px;
    }
    .logo-text {
        display: none;
    }
    .logo-mark {
        width: 34px;
        height: 34px;
        font-size: 1.3rem;
    }
    .fav-btn-header {
        padding: 8px 12px;
        font-size: .82rem;
    }
    .lang-btn {
        min-width: 30px;
        height: 30px;
        font-size: 0.72rem;
        padding: 0 6px;
    }
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .poster {
        height: 190px;
    }
    .card-title {
        font-size: .82rem;
    }
    .card-info {
        padding: 10px 12px 12px;
    }
    .fav-icon {
        width: 30px;
        height: 30px;
        font-size: .9rem;
    }
    .recommend-track .movie-card {
        width: 140px;
    }
    .recommend-track .poster {
        height: 200px;
    }
    .section-title,
    .recommend-title,
    .similar-title {
        font-size: 1.1rem;
    }
    .section-title::before,
    .recommend-title::before,
    .similar-title::before {
        height: 20px;
    }
    .similar-title-text {
        font-size: 1.1rem;
    }
    .similar-title-icon {
        width: 20px;
        height: 20px;
    }
    .player-placeholder {
        font-size: .85rem;
        padding: 14px;
    }
    .player-actions a,
    .player-actions button {
        font-size: .8rem;
        padding: 7px 12px;
    }
    .modal-content {
        padding: 16px;
        border-radius: 12px;
    }
    .modal-title {
        font-size: 1.25rem;
    }
    #moviesGrid .empty-title {
        font-size: 1.25rem;
    }
    .telegram-banner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .telegram-btn {
        width: 100%;
        text-align: center;
    }
    .home-cta {
        padding: 16px 4% 24px;
    }
    .home-cta-btn {
        padding: 13px 26px;
        font-size: .92rem;
    }
    .movie-page {
        padding: 16px 4% 10px;
    }
    .movie-hero {
        gap: 18px;
    }
    .movie-hero-poster {
        max-width: 200px;
    }
    .movie-hero-title {
        font-size: 1.4rem;
    }
    .movie-hero-tagline {
        font-size: .92rem;
    }
    .movie-hero-actions {
        gap: 8px;
    }
    .movie-action-btn {
        padding: 10px 16px;
        font-size: .82rem;
        border-radius: 10px;
    }
    .movie-section {
        padding: 24px 0 12px;
    }
    .movie-section-head {
        margin-bottom: 16px;
    }
    .movie-section-title {
        font-size: 1.1rem;
    }
    .movie-section-title::before {
        height: 20px;
    }
    .movie-section-sub {
        font-size: .78rem;
    }
    .movie-breadcrumb {
        font-size: .76rem;
        gap: 6px;
    }
    .movie-breadcrumb-current {
        max-width: 140px;
    }
    .movie-meta-tag {
        font-size: .74rem;
        padding: 4px 10px;
    }
    .movie-fact-row {
        font-size: .84rem;
        padding: 10px 0;
    }
    .p-tab {
        padding: 8px 14px;
        font-size: .78rem;
    }
    .movie-about-text {
        font-size: .94rem;
        line-height: 1.7;
    }
    .movie-about-note {
        font-size: .86rem;
    }
    #sectionTitle.section-title--search {
        grid-template-columns: 4px 20px 1fr;
        padding: 16px 4% 12px;
        column-gap: 8px;
    }
    #sectionTitle.section-title--search::before {
        height: 22px;
    }
    #sectionTitle.section-title--search .search-title-icon,
    #sectionTitle.section-title--search .search-header-icon {
        width: 20px;
        height: 20px;
    }
    #sectionTitle.section-title--search .search-title-main,
    #sectionTitle.section-title--search .search-header-title {
        font-size: 1.1rem;
    }
    #sectionTitle.section-title--search .search-title-meta,
    #sectionTitle.section-title--search .search-header-sub {
        font-size: .78rem;
    }
    .legal-footer {
        margin-top: 30px;
        padding: 18px 4% 14px;
    }
    .legal-toggle {
        padding: 8px 14px 8px 10px;
        font-size: .74rem;
    }
    .legal-icon {
        width: 16px;
        height: 16px;
        font-size: .64rem;
    }
    .cat-modal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .cat-modal-grid .cat-btn {
        padding: 10px 8px;
        font-size: .78rem;
    }
    .premium-cat-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
        font-size: .85rem;
    }
    /* Мобилка: уменьшаем отступ иконки поиска */
    .search-box input {
        padding-left: 40px;
        background-position: 14px center;
        background-size: 15px 15px;
    }
}


/* Английское название под русским */

.card-title-eng {
    font-size: 0.7rem;
    color: var(--text-2);
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.1px;
    margin-top: -4px;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.7;
    transition: opacity .2s ease;
}

.movie-card:hover .card-title-eng {
    opacity: 0.95;
}

.movie-hero-title-eng {
    font-size: 1rem;
    color: var(--text-2);
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.2px;
    margin-top: -10px;
    margin-bottom: 4px;
    opacity: 0.75;
}


/* Переключатель языка RU / EN */

.lang-switcher {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    flex-shrink: 0;
    margin-right: 4px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-2);
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 50%;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: var(--cursor-pointer);
    transition: all .2s;
    display: grid;
    place-items: center;
}

.lang-btn:hover {
    color: var(--text);
    background: var(--surface-2);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--accent-text);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 40%, transparent);
}


/* ============================================
   ИДЕАЛЬНАЯ Кнопка "Показать ещё" (Premium Load More)
   ============================================ */

.load-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 50px 0 70px;
    padding: 0 4%;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 42px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 100px;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: var(--cursor-pointer);
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    outline: none;
}

.load-more-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.load-more-btn span,
.load-more-btn svg {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.load-more-btn:hover {
    border-color: transparent;
    color: var(--accent-text);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px color-mix(in srgb, var(--accent) 45%, transparent);
}

.load-more-btn:hover::before {
    opacity: 1;
}

.load-more-btn:hover svg {
    transform: translateY(3px);
}

.load-more-btn:active {
    transform: translateY(0) scale(0.96);
}


/* ============================================
   МОБИЛЬНАЯ АДАПТАЦИЯ (Mobile Fixes)
   ============================================ */

@media (max-width: 480px) {
    /* 1. Улучшаем шапку */
    .header {
        padding: 8px 12px;
        gap: 6px;
    }
    .header-controls {
        gap: 6px;
        flex-wrap: nowrap;
    }
    .search-box {
        order: 5;
        flex: 1 1 100%;
        margin-top: 4px;
    }
    .fav-btn-header,
    .lang-switcher,
    .theme-switcher {
        padding: 4px;
        height: 34px;
    }
    .lang-btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    .theme-switcher button {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    /* 2. Сетка карточек 2 в ряд */
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 3%;
    }
    .poster {
        height: 210px;
    }
    .card-info {
        padding: 10px;
    }
    .card-title {
        font-size: 0.85rem;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 2.4em;
    }
    .card-title-eng {
        font-size: 0.65rem;
        margin-top: -2px;
    }
    /* 3. Модальное окно категорий */
    .modal-content.cat-modal-content {
        padding: 16px;
        width: 95%;
        margin: 10px auto;
        border-radius: 16px;
    }
    .cat-modal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .cat-modal-grid .cat-btn {
        padding: 10px 6px;
        font-size: 0.78rem;
    }
    .apply-cat-btn {
        width: 100%;
        padding: 14px;
    }
    /* 4. Плеер и кнопки на мобилках */
    .player-wrapper {
        border-radius: 12px;
    }
    .movie-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .movie-action-btn {
        justify-content: center;
    }
}


/* ============================================
   ЗАГЛУШКА ПРИ ЗАВИСАНИИ ПЛЕЕРА (Timeout Overlay)
   ============================================ */

.player-timeout-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.player-timeout-inner {
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.player-timeout-inner h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 6px;
}

.player-timeout-inner p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.player-timeout-inner .timer-text {
    font-size: 0.8rem;
    margin-top: 16px;
    color: var(--accent);
    font-weight: bold;
}

.player-timeout-inner .btn-play {
    background: var(--accent);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.player-timeout-inner .btn-play:hover {
    transform: scale(1.05);
}


/* ============================================
   МОБИЛЬНОЕ МЕНЮ НАСТРОЕК (Mobile Settings)
   ============================================ */

.mobile-settings-btn {
    display: none;
    /* Скрыта на ПК */
    position: relative;
    /* 🎃 HALLOWEEN — для абсолютного позиционирования NEW-бейджа */
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    flex-shrink: 0;
    margin-left: 4px;
}

.mobile-settings-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}


/* 🎃 HALLOWEEN — пульсирующий NEW-бейдж на кнопке ⚙️ */

.mobile-settings-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: linear-gradient(135deg, #ff6b1a, #a855f7);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 6px;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(255, 107, 26, .55);
    pointer-events: none;
    z-index: 3;
    animation: halloweenBadgePulse 1.6s ease-in-out infinite;
}

@keyframes halloweenBadgePulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 2px 10px rgba(255, 107, 26, .55);
    }
    50% {
        transform: scale(1.12);
        box-shadow: 0 3px 16px rgba(255, 107, 26, .95), 0 0 12px rgba(168, 85, 247, .6);
    }
}


/* Уважаем пользователей с отключённой анимацией */

@media (prefers-reduced-motion: reduce) {
    .mobile-settings-badge,
    html[data-theme="halloween"] .logo-mark {
        animation: none;
    }
}

.mobile-settings-content {
    max-width: 360px;
    padding: 24px;
}

.settings-group {
    margin-top: 20px;
    margin-bottom: 24px;
    text-align: left;
}

.settings-group h4 {
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: var(--text-2);
    font-weight: 700;
}

.theme-switcher-mobile {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.theme-switcher-mobile button {
    flex: 1;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.theme-switcher-mobile button span:first-child {
    font-size: 1.4rem;
}

.theme-switcher-mobile button span:last-child {
    font-size: 0.75rem;
}

.theme-switcher-mobile button.active {
    background: color-mix(in srgb, var(--accent) 15%, var(--surface-2));
    border-color: var(--accent);
    color: var(--accent);
}

.lang-switcher-mobile {
    display: flex;
    gap: 10px;
}

.lang-switcher-mobile button {
    flex: 1;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-switcher-mobile button.active {
    background: var(--accent);
    color: var(--accent-text);
    border-color: var(--accent);
}


/* Прячем десктопные переключатели на мобилках и показываем шестеренку */

@media (max-width: 768px) {
    .header .lang-switcher,
    .header .theme-switcher {
        display: none !important;
    }
    .mobile-settings-btn {
        display: flex;
    }
}


/* ============================================
   ПРЕМИАЛЬНАЯ СТРАНИЦА ОШИБКИ (404)
   ============================================ */

.premium-404-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease;
}


/* Красивое свечение на фоне */

.premium-404-wrap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 15%, transparent) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.premium-404-card {
    background: color-mix(in srgb, var(--surface) 80%, transparent);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 60px 50px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glitch-gradient-text {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 9rem;
    line-height: 0.9;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 30px color-mix(in srgb, var(--accent) 40%, transparent));
    margin-bottom: 24px;
    letter-spacing: 4px;
}

.premium-404-info h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.premium-404-sub {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 700;
    font-style: italic;
    margin-bottom: 16px;
}

.premium-404-desc {
    font-size: 0.95rem;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.premium-404-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.premium-404-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.premium-404-actions .btn-primary:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.premium-404-actions .btn-telegram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: linear-gradient(135deg, #2AABEE, #229ED9);
    /* Цвета Telegram */
    color: #fff;
    border: none;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(34, 158, 217, 0.4);
}

.premium-404-actions .btn-telegram:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(34, 158, 217, 0.6);
}


/* Адаптация под мобилки */

@media (max-width: 640px) {
    .premium-404-card {
        padding: 40px 24px;
        border-radius: 24px;
    }
    .glitch-gradient-text {
        font-size: 6rem;
        margin-bottom: 16px;
    }
    .premium-404-info h2 {
        font-size: 1.4rem;
    }
    .premium-404-actions {
        flex-direction: column;
        width: 100%;
    }
    .premium-404-actions a {
        width: 100%;
    }
}


/* ============================================
   ПОИСК ВНУТРИ МОДАЛКИ ЖАНРОВ
   ============================================ */

.cat-search-wrap {
    margin: 15px 0 5px;
}

.cat-search-wrap input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
}

.cat-search-wrap input:focus {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 5%, var(--surface-2));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}


/* Двухколоночная сетка для жанров на мобилках */

@media (max-width: 480px) {
    .cat-modal-grid {
        grid-template-columns: 1fr 1fr;
    }
}
/* KinoMania — Cinema edition. Shared layout and accessible interactions. */
html[data-theme="dark"] {
  --bg: #101112;
  --bg-2: #171819;
  --surface: #191b1d;
  --surface-2: #232527;
  --border: #303234;
  --text: #f3f1eb;
  --text-2: #a4a6a7;
  --accent: #e9b86c;
  --accent-2: #d7a153;
  --accent-text: #17130d;
  --shadow-hover: 0 20px 45px #0005;
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #f5f2ec;
  --bg-2: #ebe7df;
  --surface: #fffdf8;
  --surface-2: #eae6df;
  --border: #d4cec2;
  --text: #24231f;
  --text-2: #68665f;
  --accent: #916020;
  --accent-2: #a26c29;
  --accent-text: #fff;
  color-scheme: light;
}
html[data-theme="neon"] {
  --accent: #8ce7ce;
  --accent-2: #92afd9;
  --bg: #0d1517;
  --surface: #152124;
  --surface-2: #1d2d31;
  --border: #2c4548;
  color-scheme: dark;
}
:root {
  --page-width: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --radius: 16px;
}
html {
  scroll-padding-top: 110px;
  scrollbar-color: var(--border) var(--bg);
  scrollbar-width: thin;
}
body {
  font-size: 15px;
  line-height: 1.6;
  cursor: auto;
  padding-bottom: 0;
}
a,
button,
select,
.poster,
.movie-card {
  cursor: pointer;
}
input[type="text"],
input[type="search"],
textarea {
  cursor: text;
}
a {
  text-underline-offset: 4px;
}
button,
input,
select {
  font: inherit;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
::selection {
  background: var(--accent);
  color: var(--accent-text);
}
.bg-layer {
  background:
    radial-gradient(
      ellipse at 80% 0,
      color-mix(in srgb, var(--accent) 4%, transparent),
      transparent 50%
    ),
    var(--bg);
}
.header {
  padding: 18px var(--gutter);
  min-height: 86px;
  gap: 32px;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.logo {
  gap: 12px;
}
.logo-mark {
  border-radius: 10px;
  background: var(--accent);
  box-shadow: none;
  width: 38px;
  height: 42px;
  color: var(--accent-text);
  font-size: 26px;
}
.logo-text {
  font-family: inherit;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.8px;
}
.primary-nav {
  display: flex;
  gap: 26px;
  align-items: center;
  white-space: nowrap;
}
.primary-nav a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-2);
  position: relative;
  padding: 10px 0;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--text);
}
.primary-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 2px;
  background: var(--accent);
  bottom: 0;
  left: 0;
}
.header-controls {
  gap: 12px;
}
.search-box {
  flex: 0 1 300px;
}
.search-box input {
  border-radius: 9px;
  height: 44px;
  background-color: var(--surface);
  font-size: 14px;
  padding-right: 12px;
}
.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}
.lang-switcher,
.theme-switcher {
  padding: 3px;
  border-color: var(--border);
  border-radius: 9px;
  background: transparent;
  gap: 2px;
}
.lang-switcher button,
.theme-switcher button {
  border-radius: 6px;
  min-height: 32px;
  min-width: 30px;
  font-size: 14px;
}
.fav-btn-header {
  height: 42px;
  min-width: 52px;
  border-radius: 9px;
  background: transparent;
  border: 1px solid var(--border);
  font-size: 16px;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  z-index: 9999;
  background: var(--accent);
  color: var(--accent-text);
  padding: 12px 20px;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}
.home-main {
  max-width: var(--page-width);
  margin: auto;
}
.cinema-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 600px;
  align-items: center;
  margin: 0 var(--gutter);
  border-bottom: 1px solid var(--border);
  padding: 72px 0 76px;
  gap: 30px;
  overflow: hidden;
}
.eyebrow {
  font-size: 14px;
  letter-spacing: 2.6px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.5;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.eyebrow > span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.cinema-hero h1 {
  font-size: clamp(36px, 4.4vw, 66px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -2.6px;
  margin-bottom: 26px;
}
.cinema-hero h1 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -1.9px;
}
.hero-description {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.85;
  max-width: 430px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}
.primary-button {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 25px;
  border-radius: 8px;
  color: var(--accent-text);
  background: var(--accent);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px color-mix(in srgb, var(--accent) 16%, transparent);
}
.text-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.text-link:hover {
  color: var(--accent);
}
.hero-footnote {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-2);
  letter-spacing: 0.6px;
}
.hero-footnote > span:first-child {
  border: 1px solid var(--border);
  padding: 0 5px;
  border-radius: 3px;
  font-weight: 700;
  letter-spacing: 0;
}
.hero-art {
  height: 440px;
  position: relative;
  perspective: 1000px;
  transform: rotate(-7deg);
  margin-right: -20px;
  pointer-events: none;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 10%;
  background: var(--accent);
  filter: blur(90px);
  opacity: 0.08;
}
.hero-art img {
  position: absolute;
  width: 48%;
  height: 78%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 20px 40px #0008;
  border: 1px solid #ffffff20;
  transition: opacity 0.5s;
}
.hero-art img:nth-of-type(1) {
  left: 0;
  top: 11%;
  transform: rotate(-12deg);
  filter: brightness(0.6);
}
.hero-art img:nth-of-type(2) {
  left: 48%;
  top: 6%;
  transform: rotate(13deg);
  filter: brightness(0.65);
}
.hero-art img:nth-of-type(3) {
  left: 24%;
  top: 17%;
  z-index: 1;
  transform: rotate(1deg);
  box-shadow: 0 35px 65px #000b;
}
.hero-art-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  font-family: Georgia, serif;
  font-size: 240px;
  line-height: 1;
  color: var(--surface-2);
}
.hero-art-placeholder span {
  font: 14px sans-serif;
  text-align: center;
  letter-spacing: 12px;
  color: var(--text-2);
}
.hero-art-caption {
  position: absolute;
  bottom: 23px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  color: var(--text-2);
  font-size: 14px;
  letter-spacing: 2px;
}
.mood-section {
  padding: 46px var(--gutter) 38px;
}
.section-heading h2,
.recommend-title {
  font-family: inherit;
  font-size: clamp(23px, 2.5vw, 34px);
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -1px;
  color: var(--text);
}
.section-heading .eyebrow {
  margin-bottom: 10px;
}
.mood-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.mood-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 16px;
  text-decoration: none;
  color: var(--text);
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.mood-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.mood-symbol {
  font-size: 28px;
  color: var(--accent);
  font-family: Georgia, serif;
  line-height: 1;
}
.mood-card > div {
  flex: 1;
}
.mood-card strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.mood-card small {
  display: block;
  font-size: 14px;
  color: var(--text-2);
  margin-top: 4px;
}
.mood-card > span:last-child {
  font-size: 14px;
  color: var(--text-2);
}
.recommend-block {
  padding: 28px var(--gutter) 32px;
  margin: 0;
  overflow: visible;
}
.recommend-head {
  padding: 0;
  margin-bottom: 22px;
  flex-wrap: nowrap;
}
.recommend-head .eyebrow {
  margin-bottom: 10px;
}
.recommend-sub {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 10px;
}
.recommend-arrows {
  display: flex !important;
  gap: 8px;
}
.rec-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 23px;
  transition: background 0.2s;
}
.rec-arrow:hover {
  background: var(--surface-2);
  border-color: var(--accent);
}
.recommend-viewport {
  padding: 0 0 18px;
  overflow-x: auto;
  overflow-y: hidden;
  mask-image: none;
  -webkit-mask-image: none;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}
.recommend-track {
  display: flex;
  flex-direction: row;
  gap: 18px;
  width: max-content;
}
.recommend-track .movie-card {
  width: 190px;
  flex: 0 0 190px;
  scroll-snap-align: start;
}
.recommend-track .poster {
  height: auto;
  aspect-ratio: 2/3;
}
.recommend-track .movie-card::before,
.movie-card--rec::before {
  display: none;
}
.movies-grid {
  max-width: var(--page-width);
  margin: auto;
  padding: 0 var(--gutter);
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 26px 20px;
}
.movie-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  will-change: auto;
  transition: transform 0.2s;
}
.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: none;
}
.poster {
  height: auto;
  aspect-ratio: 2/3;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
  overflow: hidden;
  isolation: isolate;
}
.poster::after {
  background: linear-gradient(0deg, #0009, transparent 60%);
}
.poster::before {
  content: "▶";
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -40%);
  background: #101112a6;
  border: 1px solid #ffffff60;
  border-radius: 50%;
  color: #fff;
  font-size: 17px;
  opacity: 0;
  transition:
    opacity 0.2s,
    transform 0.2s;
  pointer-events: none;
  backdrop-filter: blur(8px);
}
.movie-card:hover .poster::before,
.movie-card:focus-visible .poster::before {
  opacity: 1;
  transform: translate(-50%, -50%);
}
.movie-card:hover .poster img {
  transform: scale(1.04);
}
.card-info {
  padding: 12px 0 0;
}
.card-title {
  font-size: 14px;
  font-weight: 600;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.5;
  margin-bottom: 5px;
  min-height: 18px;
}
.card-title-eng {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 6px;
}
.card-meta {
  font-size: 14px;
  letter-spacing: 0.5px;
}
.card-meta span:last-child {
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0 4px;
  line-height: 1.5;
}
.fav-icon {
  width: 34px;
  height: 34px;
  border: 1px solid #ffffff30;
  border-radius: 9px;
  top: 9px;
  right: 9px;
  background: #1011129e;
  backdrop-filter: blur(8px);
  z-index: 5;
  color: #fff;
}
.fav-icon.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}
.home-cta {
  padding: 25px var(--gutter) 55px;
  margin: 0;
}
.home-cta-btn {
  font-size: 14px;
  border-radius: 8px;
  padding: 15px 28px;
  background: transparent;
  border: 1px solid var(--border);
  box-shadow: none;
  color: var(--text);
}
.home-cta-btn:hover {
  border-color: var(--accent);
  background: var(--surface);
}
.home-cta-sub {
  font-size: 14px;
  margin-top: 12px;
  color: var(--text-2);
}
.telegram-banner {
  margin: 0 var(--gutter) 50px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  background: var(--surface);
  box-shadow: none;
}
.telegram-banner::before {
  display: none;
}
.telegram-banner h3 {
  font-size: 18px;
  letter-spacing: -0.5px;
}
.telegram-banner p {
  font-size: 14px;
  color: var(--text-2);
}
.telegram-btn {
  border-radius: 7px;
  background: transparent;
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
  box-shadow: none;
  padding: 12px 22px;
}
.catalog-intro {
  max-width: var(--page-width);
  margin: auto;
  padding: 52px var(--gutter) 30px;
}
.catalog-intro .eyebrow {
  margin-bottom: 14px;
}
.catalog-intro h1 {
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -2px;
  font-weight: 650;
  line-height: 1.2;
}
.catalog-intro > p:last-child {
  max-width: 600px;
  color: var(--text-2);
  font-size: 14px;
  margin-top: 14px;
}
.filters-container,
.filters-row {
  max-width: var(--page-width);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  margin: 0 auto 16px;
}
.filters-container {
  padding-top: 4px;
  padding-bottom: 0;
}
.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 24px;
}
.premium-cat-btn,
.year-filter,
.type-filter,
.sort-filter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 44px;
  font-size: 14px;
  box-shadow: none;
  color: var(--text);
}
.premium-cat-btn {
  padding: 10px 20px;
}
.year-filter,
.type-filter,
.sort-filter {
  padding: 10px 32px 10px 14px;
}
.sort-filter {
  margin-left: auto;
}
.filter-actions-row {
  justify-content: flex-start;
}
body.searching .filters-container,
body.searching .filters-row {
  display: flex !important;
}
.section-title {
  max-width: var(--page-width);
  margin: 0 auto 24px;
  padding: 0 var(--gutter);
  font-size: 24px;
  font-family: inherit;
  letter-spacing: -0.8px;
}
.section-title::before,
.section-title::after {
  display: none;
}
#sectionTitle.section-title--search {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0 auto 24px;
  padding: 0 var(--gutter);
  max-width: var(--page-width);
}
#sectionTitle.section-title--search .search-header-title {
  font-size: 24px;
}
#sectionTitle.section-title--search .search-header-sub {
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
#sectionTitle.section-title--search .search-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}
.load-more-container {
  margin: 36px auto 56px;
}
.load-more-btn {
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
  min-width: 210px;
  font-size: 14px;
}
.load-more-btn:hover {
  background: var(--surface);
  border-color: var(--accent);
}
.empty-state {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 50px 24px;
  color: var(--text-2);
  grid-column: 1/-1;
}
.empty-title {
  color: var(--text);
  font-size: 20px;
}
.empty-hint {
  font-size: 14px;
  margin: 12px 0;
}
.empty-icon {
  color: var(--accent);
}
#catalogLoadError {
  margin: 20px var(--gutter);
  font-size: 14px;
  color: var(--text-2);
}
.movie-page {
  max-width: 1240px;
  margin: auto;
  padding: 46px var(--gutter) 0;
}
.movie-hero {
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 52px;
  align-items: center;
  margin-bottom: 56px;
}
.movie-hero-poster {
  border-radius: 12px;
  box-shadow: 0 24px 50px #0005;
}
.movie-hero-poster:hover img {
  transform: none;
}
.movie-hero-badge {
  border-radius: 5px;
  font-size: 14px;
  box-shadow: none;
  top: 12px;
  left: 12px;
}
.movie-hero-info {
  gap: 18px;
}
.movie-breadcrumb {
  font-size: 14px;
  margin-bottom: 4px;
}
.movie-hero-title {
  font-family: inherit;
  font-size: clamp(30px, 3.5vw, 50px);
  letter-spacing: -1.7px;
  line-height: 1.13;
  font-weight: 650;
}
.movie-hero-title-eng {
  font-size: 14px;
  margin: 0;
  color: var(--text-2);
  letter-spacing: 1px;
}
.movie-hero-tagline {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-2);
  max-width: 650px;
}
.movie-meta-tag {
  font-size: 14px;
  border-radius: 5px;
  padding: 5px 10px;
}
.movie-hero-actions {
  gap: 10px;
  margin-top: 6px;
}
.movie-action-btn {
  min-height: 48px;
  border-radius: 8px;
  font-size: 14px;
  padding: 12px 18px;
  box-shadow: none;
}
.movie-action-btn--primary {
  background: var(--accent);
  color: var(--accent-text);
}
.movie-section {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin-bottom: 44px;
}
.movie-section-head {
  padding: 0 0 16px;
  margin-bottom: 0;
  border: 0;
}
.movie-section-title {
  font-family: inherit;
  font-size: 23px;
  letter-spacing: -0.7px;
}
.movie-section-sub {
  font-size: 14px;
  color: var(--text-2);
}
.player-help {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 18px;
  max-width: 700px;
}
.player-tabs {
  padding: 0;
  gap: 8px;
  margin-bottom: 12px;
  justify-content: flex-start;
}
.p-tab {
  border-radius: 6px;
  font-size: 14px;
  padding: 9px 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
}
.p-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
  box-shadow: none;
}
.player-wrapper {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #050505;
  aspect-ratio: 16/9;
  height: auto;
}
.player-actions {
  gap: 10px;
  margin-top: 12px;
  padding: 0;
  justify-content: flex-start;
}
.player-actions button {
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 14px;
  padding: 9px 15px;
}
.movie-about-grid {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  gap: 40px;
}
.movie-about-text {
  font-size: 14px;
  line-height: 1.95;
}
.movie-about-note {
  font-size: 14px;
  color: var(--text-2);
}
.movie-about-facts {
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px;
}
.movie-fact-row {
  font-size: 14px;
  padding: 10px 0;
}
.movie-fact-row b {
  font-weight: 500;
}
.similar-block {
  max-width: 1240px;
  margin: 0 auto 60px;
  padding: 0 var(--gutter);
}
.similar-head {
  padding: 0;
  margin-bottom: 24px;
}
.similar-title {
  font-family: inherit;
  font-size: 25px;
  letter-spacing: -0.7px;
}
.similar-title-genres {
  font-size: 14px;
  border-radius: 5px;
}
.similar-block .movies-grid {
  padding: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.legal-footer {
  border-top: 1px solid var(--border);
  margin: 0;
  padding: 26px var(--gutter);
  background: var(--bg);
}
.legal-toggle {
  font-size: 14px;
}
.legal-panel {
  max-width: 900px;
  margin: auto;
}
.legal-panel-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.modal {
  background: #0009;
  backdrop-filter: blur(10px);
}
.modal-content {
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 25px 100px #0007;
  max-height: 85dvh;
  overflow: auto;
}
.modal-title {
  font-family: inherit;
  font-size: 22px;
  letter-spacing: -0.7px;
}
.cat-btn {
  border-radius: 7px;
  font-size: 14px;
}
.cat-btn.active,
.apply-cat-btn {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
  box-shadow: none;
}
.cat-search-wrap input {
  border-radius: 8px;
}
.apply-cat-btn {
  border-radius: 8px;
}
.close-btn {
  min-width: 40px;
  min-height: 40px;
}
body:has(.modal.open) {
  overflow: hidden;
}
.mobile-settings-btn {
  border-radius: 8px;
  box-shadow: none;
  background: var(--surface);
  border: 1px solid var(--border);
}
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 20px;
  box-shadow: 0 5px 20px #0003;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.back-top[hidden] {
  display: none;
}
.preloader {
  background: var(--bg);
}
.reel {
  border-top-color: var(--accent);
}
.preload-text {
  font-family: inherit;
  letter-spacing: 5px;
  font-size: 14px;
}
@media (min-width: 1500px) {
  .header {
    padding-left: max(var(--gutter), calc((100vw - 1312px) / 2));
    padding-right: max(var(--gutter), calc((100vw - 1312px) / 2));
  }
}
@media (max-width: 1200px) {
  .header {
    gap: 22px;
  }
  .primary-nav {
    gap: 18px;
  }
  .header-controls {
    gap: 8px;
  }
  .theme-switcher {
    display: none;
  }
  .movies-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .mood-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cinema-hero {
    min-height: 540px;
  }
  .hero-art {
    height: 380px;
  }
  .cinema-hero h1 {
    font-size: 48px;
  }
}
@media (max-width: 900px) {
  .header {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 14px var(--gutter);
    gap: 14px 24px;
  }
  .header-controls {
    width: auto;
    flex: 1;
  }
  .primary-nav {
    order: 3;
    flex: 1 0 100%;
    gap: 24px;
  }
  .primary-nav a {
    padding: 3px 0 8px;
  }
  .lang-switcher {
    display: none;
  }
  .mobile-settings-btn {
    display: flex;
  }
  .cinema-hero {
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 480px;
    padding: 46px 0 65px;
    gap: 5px;
  }
  .cinema-hero h1 {
    font-size: 39px;
    letter-spacing: -1.6px;
  }
  .hero-art {
    height: 320px;
  }
  .hero-description {
    font-size: 14px;
  }
  .movies-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .movie-hero {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 30px;
  }
  .similar-block .movies-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .mood-card {
    padding: 18px;
  }
  .hero-actions {
    gap: 20px;
  }
  .primary-button {
    padding: 13px 18px;
    font-size: 14px;
  }
}
@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }
  .header {
    gap: 10px 14px;
    padding: 12px var(--gutter);
  }
  .logo-text {
    font-size: 17px;
  }
  .logo-mark {
    width: 31px;
    height: 35px;
    font-size: 23px;
  }
  .logo {
    gap: 8px;
  }
  .header-controls {
    gap: 7px;
  }
  .search-box {
    flex: 1;
    min-width: 50px;
  }
  .search-box input {
    height: 38px;
    font-size: 14px;
    background-position: 11px center;
    padding-left: 34px;
    width: 100%;
  }
  .fav-btn-header {
    height: 38px;
    min-width: 38px;
    padding: 0 8px;
    font-size: 14px;
  }
  .fav-btn-header span {
    font-size: 14px;
  }
  .mobile-settings-btn {
    width: 36px;
    min-width: 36px;
    height: 38px;
    font-size: 18px;
  }
  .primary-nav {
    justify-content: center;
    gap: 38px;
  }
  .primary-nav a {
    font-size: 14px;
  }
  .cinema-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 35px 0 55px;
    gap: 0;
    min-height: 0;
    overflow: clip;
  }
  .hero-copy {
    max-width: 100%;
  }
  .eyebrow {
    font-size: 14px;
    letter-spacing: 1.8px;
    margin-bottom: 18px;
  }
  .cinema-hero h1 {
    font-size: clamp(35px, 8vw, 49px);
    letter-spacing: -1.5px;
    margin-bottom: 18px;
  }
  .cinema-hero h1 em {
    letter-spacing: -1.3px;
  }
  .hero-description {
    max-width: 360px;
    line-height: 1.8;
    margin-bottom: 24px;
  }
  .hero-actions {
    gap: 24px;
  }
  .hero-footnote {
    margin-top: 22px;
  }
  .hero-art {
    height: 280px;
    width: 300px;
    margin: 20px auto -8px;
    transform: rotate(-7deg);
  }
  .hero-art img {
    height: 85%;
  }
  .hero-art-placeholder {
    font-size: 180px;
  }
  .hero-art-caption {
    bottom: 17px;
    font-size: 14px;
    letter-spacing: 1.3px;
  }
  .mood-section {
    padding: 30px var(--gutter) 20px;
  }
  .section-heading h2 {
    font-size: 24px;
  }
  .mood-grid {
    gap: 9px;
    margin-top: 18px;
  }
  .mood-card {
    padding: 15px 12px;
    gap: 10px;
  }
  .mood-symbol {
    font-size: 24px;
  }
  .mood-card strong {
    font-size: 14px;
  }
  .mood-card small {
    font-size: 14px;
    line-height: 1.5;
  }
  .mood-card > span:last-child {
    display: none;
  }
  .recommend-block {
    padding: 25px var(--gutter) 12px;
  }
  .recommend-title {
    font-size: 25px;
  }
  .recommend-sub {
    font-size: 14px;
    max-width: 240px;
  }
  .recommend-arrows {
    gap: 5px;
    align-self: flex-end;
  }
  .rec-arrow {
    width: 33px;
    height: 33px;
  }
  .recommend-track {
    gap: 13px;
  }
  .recommend-track .movie-card {
    width: 145px;
    flex-basis: 145px;
  }
  .recommend-track .poster {
    height: auto;
  }
  .home-cta {
    padding: 20px var(--gutter) 35px;
  }
  .telegram-banner {
    padding: 23px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
  }
  .telegram-banner h3 {
    font-size: 17px;
  }
  .telegram-banner p {
    font-size: 14px;
  }
  .telegram-btn {
    align-self: flex-start;
  }
  .catalog-intro {
    padding-top: 30px;
    padding-bottom: 24px;
  }
  .catalog-intro h1 {
    font-size: 38px;
  }
  .catalog-intro > p:last-child {
    font-size: 14px;
  }
  .filters-row {
    gap: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .filters-row select {
    width: 100%;
    min-width: 0;
    font-size: 14px;
    padding-left: 11px;
  }
  .sort-filter {
    grid-column: 1/-1;
    margin-left: 0;
  }
  .premium-cat-btn {
    font-size: 14px;
    min-height: 42px;
  }
  .section-title {
    font-size: 22px;
    margin-bottom: 20px;
  }
  .movies-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 12px;
  }
  .poster {
    height: auto;
    border-radius: 8px;
  }
  .card-info {
    padding-top: 9px;
  }
  .card-title {
    font-size: 14px;
  }
  .card-title-eng {
    display: none;
  }
  .card-meta {
    font-size: 14px;
  }
  .fav-icon {
    width: 29px;
    height: 29px;
    top: 6px;
    right: 6px;
    font-size: 14px;
  }
  .movie-page {
    padding-top: 26px;
  }
  .movie-hero {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    margin-bottom: 32px;
  }
  .movie-hero-poster {
    border-radius: 9px;
  }
  .movie-hero-title {
    font-size: 28px;
    letter-spacing: -1px;
  }
  .movie-hero-info {
    gap: 12px;
  }
  .movie-breadcrumb {
    font-size: 14px;
    flex-wrap: wrap;
  }
  .movie-breadcrumb-current {
    display: none;
  }
  .movie-hero-title-eng {
    font-size: 14px;
    letter-spacing: 0.4px;
  }
  .movie-hero-meta {
    gap: 5px;
  }
  .movie-meta-tag {
    font-size: 14px;
    padding: 3px 6px;
  }
  .movie-hero-tagline {
    font-size: 14px;
    line-height: 1.8;
  }
  .movie-hero-actions {
    flex-wrap: wrap;
    gap: 7px;
  }
  .movie-action-btn {
    font-size: 14px;
    min-height: 40px;
    padding: 9px 11px;
  }
  .movie-action-btn--primary {
    flex: 1 0 100%;
  }
  .movie-hero-badge {
    font-size: 14px;
    padding: 4px 7px;
    top: 7px;
    left: 7px;
  }
  .movie-section-title {
    font-size: 22px;
  }
  .movie-section-sub {
    font-size: 14px;
  }
  .player-help {
    font-size: 14px;
    margin-bottom: 14px;
  }
  .player-wrapper {
    border-radius: 8px;
    min-height: 0;
  }
  .p-tab {
    font-size: 14px;
    padding: 8px 17px;
  }
  .movie-section {
    margin-bottom: 30px;
  }
  .movie-about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 20px;
  }
  .movie-about-text {
    font-size: 14px;
  }
  .similar-block {
    margin-bottom: 35px;
  }
  .similar-block .movies-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 12px;
  }
  .similar-title {
    font-size: 23px;
  }
  .legal-footer {
    padding: 22px var(--gutter);
  }
  .back-top {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }
  .modal-content {
    width: calc(100% - 28px);
    padding: 24px 18px;
  }
  .cat-modal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 380px) {
  .logo-text {
    display: none;
  }
  .movies-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .similar-block .movies-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .movie-hero {
    grid-template-columns: 95px minmax(0, 1fr);
    gap: 15px;
  }
  .movie-hero-title {
    font-size: 23px;
  }
  .mood-grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    width: 260px;
    height: 255px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .poster img {
    opacity: 1;
  }
  .hero-art {
    transform: none;
  }
}

/* Final responsive refinements. */
.card-title {
  height: auto;
  min-height: 3em;
}
.recommend-title::before,
.movie-section-title::before {
  display: none;
}
.primary-button > span[aria-hidden] {
  font-family: Arial, sans-serif;
}
.hero-art-caption {
  font-family: Arial, sans-serif;
}
@media (max-width: 1200px) {
  .mobile-settings-btn {
    display: flex;
  }
}
@media (max-width: 640px) {
  .logo-text {
    display: inline;
  }
  .header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
  }
  .header-controls {
    display: contents;
  }
  .primary-nav {
    grid-column: 1/-1;
    grid-row: 3;
  }
  .header .logo {
    grid-column: 1;
    grid-row: 1;
  }
  .fav-btn-header {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin-right: 44px;
  }
  .mobile-settings-btn {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .search-box {
    grid-column: 1/-1;
    grid-row: 2;
    width: 100%;
    margin-top: 0;
    order: 0;
  }
  .search-box input {
    height: 42px;
    font-size: 14px;
  }
  .lang-switcher,
  .theme-switcher {
    display: none;
  }
  .hero-art {
    height: 260px;
  }
  .card-title {
    min-height: 3em;
  }
}
@media (max-width: 480px) {
  .movies-grid,
  .similar-block .movies-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
  }
  .card-title {
    font-size: 14px;
  }
  .poster {
    border-radius: 10px;
  }
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 10px;
}
.movie-card:focus-within .poster::before {
  opacity: 1;
  transform: translate(-50%, -50%);
}
html[data-theme] {
  --cursor-default: auto;
  --cursor-pointer: pointer;
}

/* Discovery: cinematic feature, quick choices and clear feedback. */
[hidden] {
  display: none !important;
}
.section-description {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 10px;
}
.spotlight-section {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: center;
  gap: 60px;
  margin: 12px var(--gutter) 54px;
  padding: 52px 64px;
  min-height: 460px;
  border: 1px solid #ffffff18;
  border-radius: 16px;
  overflow: hidden;
  background: #151719;
  color: #f4f2ee;
}
.spotlight-art {
  position: absolute;
  inset: -70px;
  z-index: -2;
  background-position: 70% 30%;
  background-size: cover;
  filter: blur(34px) saturate(0.6);
  opacity: 0.38;
  transform: scale(1.1);
  transition: background-image 0.3s;
}
.spotlight-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    #101112fa 0%,
    #101112e6 35%,
    #10111260 100%
  );
}
.spotlight-content {
  max-width: 610px;
}
.spotlight-section .eyebrow {
  color: #e9b86c;
  margin-bottom: 16px;
}
.spotlight-meta {
  font-size: 14px;
  letter-spacing: 1px;
  color: #bdbdb8;
  margin-bottom: 14px;
  max-width: 500px;
}
.spotlight-section h2 {
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 650;
  letter-spacing: -1.3px;
  line-height: 1.12;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.spotlight-description {
  font-size: 14px;
  color: #c1c2bf;
  line-height: 1.85;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 510px;
  margin-bottom: 26px;
  min-height: 44px;
}
.spotlight-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.spotlight-section .primary-button {
  background: #e9b86c;
  color: #17130d;
  border: 1px solid #e9b86c;
  min-height: 46px;
  font-size: 14px;
}
.spotlight-save {
  border: 1px solid #ffffff3d;
  border-radius: 8px;
  padding: 12px 18px;
  background: #ffffff09;
  color: #f4f2ee;
  font-size: 14px;
  min-height: 46px;
  cursor: pointer;
}
.spotlight-save.active {
  border-color: #e9b86c;
  color: #e9b86c;
}
.spotlight-poster {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 9px;
  box-shadow: 0 25px 50px #0009;
  transform: rotate(5deg);
  border: 1px solid #ffffff25;
  position: relative;
  z-index: 1;
  transition: transform 0.3s;
}
.spotlight-section:hover .spotlight-poster {
  transform: rotate(2deg) translateY(-3px);
}
.spotlight-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}
.spotlight-dots {
  display: flex;
  gap: 6px;
  margin-right: 12px;
}
.spotlight-dot {
  width: 20px;
  height: 24px;
  border: 0;
  position: relative;
  background: none;
  cursor: pointer;
}
.spotlight-dot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  height: 3px;
  border-radius: 4px;
  background: #ffffff35;
  transition: background 0.2s;
}
.spotlight-dot.active::after {
  background: #e9b86c;
}
.spotlight-controls > span {
  font:
    14px ui-monospace,
    SFMono-Regular,
    monospace;
  letter-spacing: 1px;
  color: #bdbdb8;
  margin-right: 8px;
}
.spotlight-controls > button {
  width: 32px;
  height: 32px;
  border: 1px solid #ffffff25;
  border-radius: 50%;
  color: #f4f2ee;
  background: transparent;
  font-size: 14px;
}
.spotlight-controls > button:hover {
  border-color: #e9b86c;
  color: #e9b86c;
}
.spotlight-watermark {
  position: absolute;
  bottom: 18px;
  right: 24px;
  font-size: 14px;
  letter-spacing: 3px;
  color: #ffffff6b;
}
.recent-section {
  padding: 0 var(--gutter) 48px;
}
.recent-section .movies-grid {
  padding: 0;
  margin-top: 24px;
  gap: 18px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.recent-section .poster {
  aspect-ratio: 2/3;
}
.cinema-hero {
  background: radial-gradient(
    ellipse at 75% 45%,
    color-mix(in srgb, var(--accent) 5%, transparent),
    transparent 50%
  );
}
.cinema-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent 45%);
  pointer-events: none;
}
.mood-card:nth-child(2) {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, #aa7a76 8%, var(--surface)),
    var(--surface)
  );
}
.mood-card:nth-child(3) {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, #72938a 9%, var(--surface)),
    var(--surface)
  );
}
.mood-card:nth-child(4) {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, #8387a6 10%, var(--surface)),
    var(--surface)
  );
}
.header--scrolled {
  box-shadow: 0 8px 30px #0000000a;
}
.poster {
  box-shadow: 0 8px 20px #0000000d;
}
.movie-card:hover .poster {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--border));
  box-shadow: 0 15px 30px #0002;
}
.movie-hero {
  position: relative;
  isolation: isolate;
}
.movie-hero::before {
  content: "";
  position: absolute;
  inset: -60px -30px;
  z-index: -1;
  background-image:
    linear-gradient(90deg, var(--bg), transparent 45%, var(--bg)),
    var(--movie-backdrop, none);
  background-size: cover;
  background-position: center;
  filter: blur(45px);
  opacity: 0.07;
  pointer-events: none;
}
.catalog-quick-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  max-width: var(--page-width);
  margin: 0 auto 22px;
  padding: 0 var(--gutter);
}
.catalog-quick-nav > div {
  display: flex;
  gap: 4px;
  border: 1px solid var(--border);
  padding: 4px;
  background: var(--surface);
  border-radius: 10px;
}
.catalog-quick-nav button {
  padding: 9px 20px;
  border-radius: 6px;
  background: none;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  border: 0;
  min-height: 38px;
}
.catalog-quick-nav button.active {
  background: var(--text);
  color: var(--bg);
}
.catalog-quick-nav .text-link {
  font-size: 14px;
  color: var(--text-2);
}
.active-filters {
  max-width: var(--page-width);
  padding: 0 var(--gutter);
  margin: 0 auto 24px;
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
  border-radius: 6px;
  min-height: 32px;
  font-size: 14px;
  padding: 5px 10px;
  max-width: 100%;
}
.filter-chip span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 240px;
}
.filter-chip b {
  font-weight: 400;
  color: var(--text-2);
  font-size: 14px;
}
.reset-filters {
  color: var(--accent);
  font-size: 14px;
  padding: 6px 10px;
  border: 0;
  background: none;
  min-height: 32px;
}
.skeleton-card {
  min-width: 0;
}
.skeleton-poster {
  border-radius: 10px;
  aspect-ratio: 2/3;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.skeleton-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--text) 5%, transparent),
    transparent
  );
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.4s ease infinite;
}
.skeleton-title {
  height: 10px;
  background: var(--surface-2);
  border-radius: 3px;
  margin: 14px 20% 10px 0;
}
.skeleton-meta {
  height: 7px;
  background: var(--surface);
  border-radius: 3px;
  margin-right: 55%;
}
@keyframes skeleton-shimmer {
  to {
    transform: translateX(100%);
  }
}
.ui-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 1200;
  background: var(--text);
  color: var(--bg);
  border: 1px solid color-mix(in srgb, var(--bg) 15%, transparent);
  border-radius: 10px;
  padding: 13px 22px;
  font-size: 14px;
  box-shadow: 0 15px 40px #0003;
  pointer-events: none;
  max-width: calc(100% - 40px);
  text-align: center;
}
.watch-dock {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 950;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 14px 12px 22px;
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 14px 40px #0003;
  max-width: calc(100% - 40px);
  width: 600px;
}
.watch-dock > span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}
.watch-dock button {
  border: 0;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: 7px;
  padding: 11px 18px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}
.watch-dock ~ .ui-toast {
  bottom: 100px;
}
.search-shortcut {
  pointer-events: none;
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-2);
  font:
    14px ui-monospace,
    monospace;
  border: 1px solid var(--border);
  padding: 2px 4px;
  border-radius: 3px;
}
.search-box:focus-within .search-shortcut {
  display: none;
}
.header .search-box input {
  padding-right: 45px;
}
.collection-footer {
  max-width: var(--page-width);
  margin: 50px auto;
  padding: 0 var(--gutter);
}
@media (max-width: 1000px) {
  .spotlight-section {
    padding: 36px;
    gap: 35px;
    grid-template-columns: minmax(0, 1fr) 180px;
    min-height: 400px;
  }
  .spotlight-section h2 {
    font-size: 32px;
  }
  .recent-section .movies-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .recent-section .movie-card:nth-child(n + 5) {
    display: none;
  }
}
@media (max-width: 640px) {
  .spotlight-section {
    margin: 8px var(--gutter) 32px;
    padding: 28px 24px;
    grid-template-columns: minmax(0, 1fr) 96px;
    align-items: start;
    gap: 18px;
    min-height: 0;
    border-radius: 12px;
  }
  .spotlight-section .eyebrow {
    font-size: 14px;
    letter-spacing: 1.5px;
    grid-column: 1/-1;
  }
  .spotlight-section h2 {
    font-size: 27px;
    letter-spacing: -0.7px;
    margin-bottom: 15px;
  }
  .spotlight-meta {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
  }
  .spotlight-description {
    font-size: 14px;
    -webkit-line-clamp: 4;
    max-height: 80px;
    line-height: 1.75;
    margin-bottom: 20px;
  }
  .spotlight-poster {
    margin-top: 30px;
    transform: rotate(4deg);
  }
  .spotlight-controls {
    margin-top: 20px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .spotlight-dots {
    gap: 3px;
    margin-right: 2px;
  }
  .spotlight-dot {
    width: 15px;
  }
  .spotlight-controls > span {
    font-size: 14px;
  }
  .spotlight-controls > button {
    width: 30px;
    height: 30px;
  }
  .spotlight-actions {
    gap: 8px;
    flex-direction: column;
    align-items: stretch;
  }
  .spotlight-section .primary-button,
  .spotlight-save {
    font-size: 14px;
    min-height: 40px;
    padding: 10px 12px;
  }
  .spotlight-section::before {
    background: linear-gradient(90deg, #101112f5, #101112a0);
  }
  .spotlight-watermark {
    font-size: 14px;
    letter-spacing: 1.5px;
    right: 16px;
    bottom: 13px;
  }
  .recent-section {
    padding-bottom: 30px;
  }
  .recent-section .movies-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
  }
  .recent-section .movie-card:nth-child(n + 4) {
    display: none;
  }
  .catalog-quick-nav {
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
  }
  .catalog-quick-nav > div {
    width: 100%;
    justify-content: stretch;
  }
  .catalog-quick-nav button {
    flex: 1;
    padding: 8px 12px;
    min-height: 35px;
  }
  .catalog-quick-nav .text-link {
    font-size: 14px;
  }
  .active-filters {
    margin-bottom: 20px;
  }
  .filter-chip {
    font-size: 14px;
  }
  .watch-dock {
    bottom: 12px;
    max-width: calc(100% - 24px);
    gap: 12px;
    padding: 10px 10px 10px 14px;
  }
  .watch-dock > span {
    font-size: 14px;
  }
  .watch-dock button {
    font-size: 14px;
    padding: 10px 14px;
  }
  .watch-dock ~ .ui-toast {
    bottom: 84px;
  }
  .search-shortcut {
    display: none;
  }
  .header .search-box input {
    padding-right: 12px;
  }
  .ui-toast {
    font-size: 14px;
    bottom: 18px;
  }
  .cinema-hero::after {
    top: 14px;
  }
}
@media (max-width: 380px) {
  .spotlight-section {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .spotlight-poster {
    display: none;
  }
  .spotlight-actions {
    flex-direction: row;
  }
  .spotlight-content {
    min-width: 0;
  }
  .recent-section .movies-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .recent-section .movie-card:nth-child(3) {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton-poster::after {
    animation: none;
  }
  .spotlight-poster,
  .spotlight-section:hover .spotlight-poster {
    transform: none;
  }
}
@media (max-width: 640px) {
  .spotlight-controls {
    width: calc(100% + 114px);
    flex-wrap: nowrap;
  }
  .spotlight-dots {
    flex-shrink: 0;
  }
  .spotlight-controls > button {
    flex-shrink: 0;
  }
}
@media (max-width: 380px) {
  .spotlight-controls {
    width: 100%;
  }
}

/* Readable cinema: real text sizes, clear actions and inexpensive rendering. */
:root {
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Arial,
    sans-serif;
}
*,
*::before,
*::after {
  font-family: inherit;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body {
  font-size: 16px;
  line-height: 1.65;
}
html[data-theme="dark"] {
  --bg: #101318;
  --surface: #1b222c;
  --surface-2: #283342;
  --border: #526174;
  --text: #f6f8fc;
  --text-2: #c1cad6;
  --accent: #f0bd70;
  --accent-text: #171109;
}
html[data-theme="light"] {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-2: #e5eaf1;
  --border: #7d8a9a;
  --text: #121b29;
  --text-2: #43516a;
  --accent: #80500c;
  --accent-text: #fff;
}
html[data-theme="neon"] {
  --text-2: #c0d5d7;
  --border: #52797e;
}
.header {
  background: var(--bg);
  gap: 24px;
}
.header--scrolled {
  box-shadow: 0 4px 12px #0002;
}
.header-controls {
  gap: 10px;
}
.primary-nav a {
  font-size: 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
}
.primary-nav {
  gap: 24px;
}
.logo-text {
  font-size: 22px;
}
.search-box input,
.header .search-box input {
  height: 48px;
  font-size: 16px;
}
.search-shortcut {
  font-size: 12px;
}
.lang-switcher button,
.theme-switcher button {
  min-height: 44px;
  min-width: 40px;
  font-size: 15px;
}
.lang-switcher button.active,
.theme-switcher button.active,
.lang-switcher-mobile button.active,
.theme-switcher-mobile button.active {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: none;
  border-color: var(--accent);
}
.fav-btn-header,
.mobile-settings-btn {
  min-height: 44px;
  min-width: 44px;
}
.fav-btn-header span {
  font-size: 15px;
}
.hero-art::before,
.movie-hero::before,
.cinema-hero::after,
.hero-art-caption,
.spotlight-watermark {
  display: none;
}
.hero-art img {
  filter: none;
}
.spotlight-art {
  filter: none;
  opacity: 0.17;
}
.bg-layer {
  background: var(--bg);
}
.hero-description,
.hero-footnote,
.recommend-sub,
.section-description,
.catalog-intro > p:last-child,
.movie-hero-tagline,
.movie-about-text,
.spotlight-description,
.telegram-banner p {
  font-size: 17px;
  line-height: 1.75;
}
.cinema-hero h1 {
  font-size: clamp(38px, 4.3vw, 64px);
  letter-spacing: -1.8px;
}
.cinema-hero {
  min-height: 520px;
  padding: 48px 0 56px;
}
.hero-actions,
.movie-hero-actions,
.spotlight-actions {
  gap: 12px;
}
.hero-actions .text-link {
  font-size: 16px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}
.primary-button,
.movie-action-btn,
.home-cta-btn,
.telegram-btn,
.spotlight-save,
.spotlight-section .primary-button,
.load-more-btn,
.apply-cat-btn {
  font-size: 16px;
  min-height: 48px;
  padding: 12px 22px;
  font-weight: 650;
  border-radius: 10px;
  box-shadow: none;
}
.primary-button,
.movie-action-btn--primary,
.apply-cat-btn {
  background: var(--accent);
  color: var(--accent-text);
}
button:hover,
a.primary-button:hover,
.movie-action-btn:hover {
  filter: brightness(1.08);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.mood-grid {
  gap: 14px;
}
.mood-card {
  padding: 22px 18px;
  min-height: 104px;
}
.mood-card strong {
  font-size: 17px;
}
.mood-card small {
  font-size: 14px;
  color: var(--text-2);
}
.movies-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 30px 22px;
}
.recommend-track .movie-card {
  width: 210px;
  flex-basis: 210px;
}
.card-title {
  font-size: 17px;
  line-height: 1.45;
  min-height: 2.9em;
}
.card-title-eng {
  font-size: 14px;
  opacity: 1;
  color: var(--text-2);
}
.card-meta {
  font-size: 15px;
}
.card-meta span:last-child {
  font-size: 13px;
  padding: 2px 6px;
}
.poster img {
  opacity: 1;
  animation: none;
}
.fav-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 20px;
  background: #111b29e8;
  border: 1px solid #d7deeb;
  color: #fff;
}
.fav-icon.active {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}
.rec-arrow,
.spotlight-controls > button {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  font-size: 22px;
}
.spotlight-section {
  gap: 36px;
  padding: 40px;
  grid-template-columns: minmax(0, 1fr) 220px;
}
.spotlight-meta {
  font-size: 15px;
  color: #d2d8e0;
  letter-spacing: 0;
}
.spotlight-description {
  font-size: 17px;
  color: #e1e6ee;
  max-width: 620px;
  min-height: 80px;
}
.spotlight-section h2 {
  font-size: 38px;
}
.spotlight-save {
  border-color: #b4bfcd;
  color: #f5f7fa;
}
.spotlight-save.active {
  background: #f0bd70;
  color: #171109;
}
.spotlight-controls {
  display: grid;
  grid-template-columns: 1fr 48px 48px;
  gap: 10px;
  width: 100%;
  margin-top: 20px;
}
.spotlight-dots {
  grid-column: 1/-1;
  display: flex;
  gap: 6px;
  margin: 0;
}
.spotlight-dot {
  height: 44px;
  min-height: 44px;
  width: auto;
  flex: 1;
}
.spotlight-dot::after {
  top: 20px;
  height: 4px;
}
.spotlight-controls > span {
  font-size: 14px;
}
.spotlight-controls > button {
  border-color: #b4bfcd;
}
.catalog-quick-nav > div {
  gap: 6px;
  padding: 5px;
}
.catalog-quick-nav button {
  font-size: 16px;
  min-height: 46px;
  padding: 10px 22px;
}
.catalog-quick-nav button.active {
  background: var(--accent);
  color: var(--accent-text);
}
.catalog-quick-nav .text-link {
  font-size: 15px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.filters-container {
  margin-bottom: 12px;
}
.filters-row {
  gap: 12px;
  padding-bottom: 18px;
}
.premium-cat-btn,
.year-filter,
.type-filter,
.sort-filter {
  font-size: 16px;
  min-height: 48px;
}
.filter-chip,
.reset-filters {
  font-size: 15px;
  min-height: 44px;
  padding: 8px 14px;
}
.filter-chip b {
  font-size: 21px;
}
.filter-chip {
  border-color: var(--border);
  background: var(--surface-2);
}
.cat-modal-grid {
  gap: 10px;
}
.cat-btn {
  min-height: 48px;
  font-size: 16px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.cat-btn.active {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
  box-shadow: none;
}
.cat-btn small {
  font-size: 14px;
  color: inherit;
}
.cat-search-wrap input {
  font-size: 16px;
  min-height: 48px;
}
.modal {
  background: #000b;
}
.modal-content {
  background: var(--surface);
}
.movie-breadcrumb {
  font-size: 14px;
}
.movie-meta-tag {
  font-size: 14px;
}
.movie-hero-title-eng {
  font-size: 16px;
}
.movie-section-sub,
.player-help {
  font-size: 15px;
}
.p-tab {
  font-size: 16px;
  min-height: 48px;
  padding: 10px 24px;
}
.p-tab.active {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: none;
}
.player-actions button {
  min-height: 44px;
  font-size: 15px;
  padding: 10px 16px;
}
.movie-fact-row {
  font-size: 15px;
}
.movie-about-note {
  font-size: 14px;
}
.similar-title-genres {
  font-size: 15px;
}
.watch-dock > span {
  font-size: 16px;
}
.watch-dock button {
  font-size: 16px;
  min-height: 48px;
}
.ui-toast {
  font-size: 16px;
}
.legal-toggle,
.legal-text,
.legal-bottom {
  font-size: 14px;
}
.legal-toggle {
  min-height: 44px;
}
.home-cta-sub {
  font-size: 15px;
}
.preloader {
  display: none !important;
}
.skeleton-poster::after {
  animation: none;
}
.spotlight-poster {
  transform: none;
}
.spotlight-section:hover .spotlight-poster {
  transform: none;
}
.movie-card:hover {
  transform: translateY(-3px);
}
@media (max-width: 1100px) {
  .movies-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .header {
    gap: 18px;
  }
  .primary-nav {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .movies-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .spotlight-section {
    grid-template-columns: minmax(0, 1fr) 160px;
    padding: 30px;
    gap: 24px;
  }
}
@media (max-width: 640px) {
  .header {
    gap: 10px;
  }
  .logo-text {
    font-size: 21px;
  }
  .search-box input,
  .header .search-box input {
    font-size: 16px;
    height: 46px;
  }
  .primary-nav {
    gap: 28px;
  }
  .primary-nav a {
    font-size: 16px;
  }
  .fav-btn-header {
    margin-right: 54px;
  }
  .mobile-settings-btn {
    height: 44px;
    width: 44px;
  }
  .hero-art {
    display: none;
  }
  .cinema-hero {
    padding: 30px 0 32px;
    min-height: 0;
  }
  .cinema-hero h1 {
    font-size: 40px;
    letter-spacing: -1.3px;
  }
  .hero-description {
    font-size: 17px;
    margin-bottom: 24px;
  }
  .hero-actions {
    gap: 12px;
  }
  .hero-footnote {
    margin-top: 20px;
    font-size: 14px;
  }
  .hero-actions .primary-button {
    flex: 1;
  }
  .hero-actions .text-link {
    padding: 8px 12px;
  }
  .mood-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .mood-card {
    padding: 16px;
    display: block;
  }
  .mood-symbol {
    display: block;
    margin-bottom: 12px;
  }
  .mood-card strong {
    font-size: 16px;
  }
  .mood-card small {
    font-size: 14px;
  }
  .recommend-title,
  .section-heading h2 {
    font-size: 28px;
  }
  .recommend-sub {
    font-size: 16px;
    max-width: 100%;
  }
  .recommend-head {
    align-items: flex-start;
    gap: 12px;
  }
  .recommend-arrows {
    align-self: center;
  }
  .rec-arrow {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  .movies-grid,
  .similar-block .movies-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 16px;
  }
  .card-title {
    font-size: 16px;
  }
  .card-meta {
    font-size: 14px;
  }
  .fav-icon {
    width: 44px;
    height: 44px;
  }
  .recommend-track .movie-card {
    width: 175px;
    flex-basis: 175px;
  }
  .spotlight-section {
    display: block;
    padding: 26px;
    margin-bottom: 34px;
  }
  .spotlight-poster {
    display: none;
  }
  .spotlight-section h2 {
    font-size: 32px;
  }
  .spotlight-meta {
    font-size: 14px;
  }
  .spotlight-description {
    font-size: 16px;
    max-height: none;
    -webkit-line-clamp: 4;
    min-height: 100px;
  }
  .spotlight-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .spotlight-section .primary-button,
  .spotlight-save {
    font-size: 15px;
    padding: 12px 10px;
    min-height: 48px;
  }
  .spotlight-controls {
    width: 100% !important;
    display: grid;
    grid-template-columns: 1fr 48px 48px;
    gap: 10px;
  }
  .catalog-intro h1 {
    font-size: 38px;
  }
  .catalog-intro > p:last-child {
    font-size: 16px;
  }
  .catalog-quick-nav button {
    font-size: 16px;
    padding: 10px 12px;
    min-height: 46px;
  }
  .catalog-quick-nav .text-link {
    font-size: 16px;
  }
  .filters-row select {
    font-size: 16px;
    min-height: 48px;
  }
  .premium-cat-btn {
    font-size: 16px;
  }
  .filter-chip,
  .reset-filters {
    font-size: 14px;
  }
  .cat-modal-grid {
    grid-template-columns: 1fr;
  }
  .cat-btn {
    font-size: 16px;
  }
  .movie-hero {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 30px;
  }
  .movie-hero-info {
    display: contents;
  }
  .movie-breadcrumb {
    grid-column: 1/-1;
    grid-row: 1;
    font-size: 14px;
  }
  .movie-hero-poster {
    grid-column: 1;
    grid-row: 2 / span 3;
    align-self: start;
  }
  .movie-hero-title {
    grid-column: 2;
    grid-row: 2;
    font-size: 29px;
    letter-spacing: -0.7px;
  }
  .movie-hero-title-eng {
    grid-column: 2;
    grid-row: 3;
    font-size: 14px;
  }
  .movie-hero-meta {
    grid-column: 2;
    grid-row: 4;
    align-self: start;
  }
  .movie-meta-tag {
    font-size: 13px;
  }
  .movie-hero-tagline {
    grid-column: 1/-1;
    grid-row: 5;
    font-size: 16px;
    line-height: 1.7;
  }
  .movie-hero-actions {
    grid-column: 1/-1;
    grid-row: 6;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .movie-action-btn {
    font-size: 16px;
    min-height: 48px;
    padding: 12px;
  }
  .movie-action-btn--primary {
    grid-column: 1/-1;
  }
  .movie-section-title {
    font-size: 26px;
  }
  .movie-section-sub,
  .player-help {
    font-size: 14px;
  }
  .p-tab {
    font-size: 16px;
    min-height: 48px;
    flex: 1;
  }
  .player-tabs {
    gap: 12px;
  }
  .movie-about-text {
    font-size: 16px;
  }
  .movie-about-note {
    font-size: 14px;
  }
  .movie-fact-row {
    font-size: 14px;
  }
  .telegram-banner p {
    font-size: 16px;
  }
  .telegram-btn {
    font-size: 16px;
    align-self: stretch;
  }
  .watch-dock > span {
    font-size: 14px;
  }
  .watch-dock button {
    font-size: 14px;
  }
  .ui-toast {
    font-size: 15px;
  }
  .recent-section .movies-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .recent-section .movie-card:nth-child(3) {
    display: none;
  }
}
.browse-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px var(--gutter) 0;
}
.browse-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 16px;
  background: var(--surface);
}
.browse-links a:hover {
  background: var(--surface-2);
  border-color: var(--accent);
}
.spotlight-description {
  height: 90px;
  min-height: 90px;
}
@media (max-width: 640px) {
  .spotlight-description {
    height: 112px;
    min-height: 112px;
  }
}
.cat-modal-content{display:flex;flex-direction:column;max-height:min(84dvh,760px);overflow:hidden;padding:24px}.cat-modal-content .modal-title{margin:0 44px 16px 0}.cat-modal-content .cat-search-wrap{flex-shrink:0;margin-bottom:14px}.cat-modal-content .cat-modal-grid{min-height:0;overflow-y:auto;overscroll-behavior:contain;flex:1;padding:4px}.cat-modal-content .cat-modal-footer{flex-shrink:0;display:flex;margin-top:16px;padding-top:16px;border-top:1px solid var(--border)}.cat-modal-footer .apply-cat-btn{width:100%}.close-btn{min-width:44px;min-height:44px}

/* Unified catalog controls, with compact responsive wrapping. */
.catalog-filter-panel { max-width:var(--page-width); margin:0 auto 28px; padding:0 var(--gutter); }
.catalog-filter-panel .filters-row { max-width:none; margin:0; padding:16px; display:flex; align-items:center; gap:12px; border-radius:16px; background:var(--surface); border:1px solid var(--border); }
.catalog-filter-panel .premium-cat-btn { background:var(--surface-2); flex:0 1 auto; justify-content:center; transform:none; }
.catalog-filter-panel select { width:auto; max-width:100%; flex:0 1 auto; background-color:var(--bg); }
.catalog-filter-panel #typeFilter { display:none; }
.catalog-filter-panel .sort-filter { margin-left:0; }
.catalog-quick-nav { margin-bottom:16px; flex-wrap:wrap; }
.catalog-quick-nav > div { max-width:100%; }
.catalog-quick-nav button { white-space:nowrap; }
.header .search-box { min-width:0; }
.header .search-box input { width:100%; min-width:0; padding-right:14px; text-overflow:ellipsis; }
@media(max-width:700px) {
 .catalog-intro { padding-top:28px; padding-bottom:24px; }
 .catalog-quick-nav { gap:16px; }
 .catalog-quick-nav > div { width:100%; }
 .catalog-quick-nav button { flex:1; padding-inline:10px; }
 .catalog-filter-panel .filters-row { display:grid !important; grid-template-columns:minmax(0,1fr); padding:12px; gap:10px; }
 .catalog-filter-panel .premium-cat-btn { grid-column:1 / -1; width:100%; }
 .catalog-filter-panel select { width:100%; min-width:0; padding-left:12px; padding-right:24px; font-size:14px; }
 .catalog-filter-panel .sort-filter { margin-left:0; }
}
@media(max-width:380px) { .catalog-filter-panel .filters-row { grid-template-columns:minmax(0,1fr); } }
