/* ==========================================================
   luxKino — главная страница
   Тёмная тема + зелёный градиент (lime → green)
   ========================================================== */

:root {
    --lk-bg: #000;
    --lk-surface: #0b0d0b;
    --lk-surface-2: #111411;
    --lk-line: rgba(190, 255, 90, .14);
    --lk-line-strong: rgba(190, 255, 90, .38);
    --lk-text: #f3fff0;
    --lk-mute: #8d9f89;
    --lk-g1: #e3ff5c;
    --lk-g2: #8fe82c;
    --lk-g3: #25b94a;
    --lk-grad: linear-gradient(135deg, var(--lk-g1) 0%, var(--lk-g2) 48%, var(--lk-g3) 100%);
    --lk-on-grad: #05140a;
    --lk-glow: 0 0 0 1px rgba(190, 255, 90, .35), 0 12px 40px -8px rgba(120, 230, 40, .45);
    --lk-ease: cubic-bezier(.22, .8, .28, 1);
    --lk-pad: clamp(14px, 3vw, 40px);
    --lk-font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --lk-font-display: 'Unbounded', 'Onest', system-ui, sans-serif;
}

/* Фон страницы: глубокий чёрно-зелёный градиент, закреплён и не двигается при прокрутке.
   !important — чтобы стили шапки не перебивали фон. */
html { background: #020503 !important; }
body {
    background: transparent !important;
    color: var(--lk-text);
    overflow-x: clip;
    position: relative;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(900px 620px at 0% 0%, rgba(70, 180, 40, .24), transparent 65%),
        radial-gradient(800px 620px at 100% 38%, rgba(30, 150, 75, .17), transparent 65%),
        radial-gradient(900px 700px at 18% 100%, rgba(130, 225, 40, .13), transparent 65%),
        linear-gradient(180deg, #030704 0%, #010201 100%);
}

.lk, .lk * { box-sizing: border-box; }

.lk {
    position: relative;
    max-width: 1480px;
    margin: 0 auto;
    padding: clamp(14px, 2.5vw, 28px) var(--lk-pad) 64px;
    font-family: var(--lk-font);
    color: var(--lk-text);
    -webkit-tap-highlight-color: transparent;
    isolation: isolate;
    overflow-x: hidden;
    overflow-x: clip;   /* страница не должна качаться вбок */
}

.lk a { color: inherit; text-decoration: none; }
.lk img { display: block; max-width: 100%; }

.lk-block { margin-top: clamp(30px, 5vw, 56px); scroll-margin-top: 80px; }
.lk-block:first-of-type { margin-top: 0; }

.lk-h2 {
    margin: 0 0 18px;
    font-family: var(--lk-font-display);
    font-weight: 700;
    font-size: clamp(18px, 2.2vw, 26px);
    letter-spacing: -.01em;
}

/* ---------- Появление при прокрутке ---------- */
.lk-js .lk-rv {
    opacity: 0;
    transform: translateY(24px) scale(.98);
    transition:
        opacity .65s var(--lk-ease) calc(var(--i, 0) * 55ms),
        transform .65s var(--lk-ease) calc(var(--i, 0) * 55ms);
}
.lk-js .lk-rv.is-in { opacity: 1; transform: none; }

/* ==========================================================
   HERO
   ========================================================== */
.lk-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: clamp(300px, 40vw, 440px);
    padding: clamp(22px, 4vw, 56px);
    border-radius: clamp(20px, 3vw, 32px);
    border: 1px solid var(--lk-line);
    overflow: hidden;
    isolation: isolate;
    background: var(--lk-surface);
}
.lk-hero-bg {
    position: absolute;
    inset: -40px;
    width: calc(100% + 80px);
    height: calc(100% + 80px);
    max-width: none !important;
    object-fit: cover;
    z-index: -3;
    filter: blur(30px) saturate(1.35) brightness(.55);
    transform: scale(1.08);
    animation: lk-bg-drift 18s ease-in-out infinite alternate;
}
.lk-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(5, 7, 5, .94) 0%, rgba(5, 7, 5, .62) 52%, rgba(10, 60, 20, .30) 100%),
        linear-gradient(0deg, rgba(5, 7, 5, .85) 0%, transparent 45%);
}
.lk-hero::after {
    content: '';
    position: absolute;
    width: 420px; height: 420px;
    right: -120px; top: -160px;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(143, 232, 44, .35), transparent 70%);
    animation: lk-pulse 6s ease-in-out infinite;
}
.lk-hero-body { max-width: 620px; position: relative; z-index: 2; }

.lk-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--lk-grad);
    color: var(--lk-on-grad);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.lk-hero-title {
    margin: 16px 0 14px;
    font-family: var(--lk-font-display);
    font-weight: 800;
    font-size: clamp(26px, 4.4vw, 58px);
    line-height: 1.05;
    letter-spacing: -.02em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.lk-chip {
    padding: 7px 13px;
    border-radius: 999px;
    border: 1px solid var(--lk-line);
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 13px;
    font-weight: 600;
    color: #dff5d6;
}
.lk-chip b { color: var(--lk-g1); font-weight: 800; }

.lk-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 16px;
    background: var(--lk-grad);
    color: var(--lk-on-grad) !important;
    font-weight: 800;
    font-size: 15px;
    overflow: hidden;
    box-shadow: var(--lk-glow);
    transition: transform .3s var(--lk-ease), box-shadow .3s var(--lk-ease);
}
.lk-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
    transform: translateX(-120%);
    animation: lk-shine 3.6s ease-in-out infinite;
}
.lk-btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 0 0 1px rgba(190, 255, 90, .6), 0 18px 50px -6px rgba(120, 230, 40, .65); }
.lk-btn:active { transform: scale(.97); }

.lk-hero-poster {
    position: relative;
    flex: 0 0 auto;
    width: clamp(150px, 19vw, 250px);
    aspect-ratio: 2 / 3;
    border-radius: 22px;
    overflow: hidden;
    transform: rotate(4deg);
    border: 1px solid var(--lk-line-strong);
    box-shadow: 0 30px 70px -10px rgba(0, 0, 0, .8), 0 0 60px -10px rgba(143, 232, 44, .5);
    transition: transform .5s var(--lk-ease);
    z-index: 2;
}
.lk-hero-poster img { width: 100%; height: 100%; object-fit: cover; }
.lk-hero:hover .lk-hero-poster { transform: rotate(1deg) scale(1.03); }

/* ==========================================================
   ДЕКОР: глянцевые звёзды и молнии
   ========================================================== */
.lk-deco {
    position: absolute;
    width: var(--s, 48px);
    height: var(--s, 48px);
    pointer-events: none;
    z-index: 3;
    filter: drop-shadow(0 8px 14px rgba(110, 220, 40, .45));
    transform: rotate(var(--r, 0deg));
    animation: lk-float 6s ease-in-out infinite;
    animation-delay: var(--dl, 0s);
}
.lk-deco--blur { filter: blur(3px) drop-shadow(0 8px 14px rgba(110, 220, 40, .35)); opacity: .85; }
.lk-deco--dim  { opacity: .55; filter: blur(1.5px); }

/* ==========================================================
   ЖАНРЫ
   ========================================================== */
.lk-tiles {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}
.lk-tile {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 88px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--lk-line);
    background: linear-gradient(150deg, #101810 0%, #090d09 100%);
    overflow: hidden;
    isolation: isolate;
    transition: transform .35s var(--lk-ease), border-color .35s, box-shadow .35s;
}
.lk-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(140px 90px at 100% 0%, rgba(143, 232, 44, .30), transparent 70%);
    opacity: .55;
    transition: opacity .35s;
}
.lk-tile-name {
    position: relative;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.15;
    max-width: 100%;
    z-index: 1;
}
.lk-tile-ico {
    position: absolute;
    right: 10px; top: 8px;
    font-size: 34px;
    line-height: 1;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5));
    transform: rotate(-8deg);
    transition: transform .45s var(--lk-ease);
}
.lk-tile:hover { transform: translateY(-4px); border-color: var(--lk-line-strong); box-shadow: 0 16px 36px -14px rgba(120, 230, 40, .5); }
.lk-tile:hover::before { opacity: 1; }
.lk-tile:hover .lk-tile-ico { transform: rotate(6deg) scale(1.2); }
.lk-tile:active { transform: scale(.97); }

.lk-tile.is-active {
    background: var(--lk-grad);
    border-color: transparent;
    color: var(--lk-on-grad);
    box-shadow: var(--lk-glow);
}
.lk-tile.is-active::before { opacity: 0; }

/* ==========================================================
   ТОП-10 (как на референсе)
   ========================================================== */
.lk-toplist {
    position: relative;
    display: grid;
    grid-template-columns: minmax(200px, 250px) minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    border-radius: 30px;
    background:
        radial-gradient(500px 260px at 0% 50%, rgba(143, 232, 44, .12), transparent 70%),
        #000;
    border: 1px solid var(--lk-line);
    overflow: hidden;
}

.lk-toplabel {
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: center;
    padding: 30px 0 30px clamp(22px, 3vw, 40px);
    min-height: 200px;
}
.lk-toplabel-txt {
    position: relative;
    z-index: 2;
    font-family: var(--lk-font-display);
    font-weight: 900;
    line-height: .98;
    letter-spacing: -.02em;
    text-transform: uppercase;
}
.lk-toplabel-txt .g {
    display: block;
    font-size: clamp(30px, 3.4vw, 46px);
    background: var(--lk-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 4px 18px rgba(143, 232, 44, .35));
}
.lk-toplabel-txt .w {
    display: block;
    margin-top: 4px;
    font-size: clamp(16px, 1.7vw, 23px);
    color: #fff;
}

.lk-toprail { position: relative; min-width: 0; }
.lk-toptrack {
    display: flex;
    align-items: flex-end;
    gap: clamp(26px, 3vw, 44px);
    padding: 36px clamp(30px, 4vw, 56px) 34px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}
.lk-toptrack::-webkit-scrollbar { display: none; }

.lk-top-item {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
    scroll-snap-align: start;
    --pw: clamp(124px, 12.5vw, 176px);
}
.lk-top-n {
    position: relative;
    z-index: 1;
    margin-right: -.2em;
    margin-bottom: 12%;
    font-family: var(--lk-font-display);
    font-weight: 900;
    font-size: calc(var(--pw) * .92);
    line-height: .8;
    letter-spacing: -.06em;
    transform: skewX(-5deg);
    background: linear-gradient(180deg, #ffffff 0%, #cfd2d6 42%, #6f747b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .7));
    transition: transform .5s var(--lk-ease), filter .5s;
}
.lk-top-poster {
    position: relative;
    z-index: 2;
    width: var(--pw);
    aspect-ratio: 2 / 3;
    border-radius: 16px;
    overflow: hidden;
    background: var(--lk-surface-2);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .9);
    transition: transform .5s var(--lk-ease), box-shadow .5s, border-color .5s;
}
.lk-top-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--lk-ease); }

.lk-top-item:hover .lk-top-poster {
    transform: translateY(-8px) scale(1.04);
    border-color: var(--lk-line-strong);
    box-shadow: 0 26px 50px -12px rgba(0, 0, 0, .9), 0 0 40px -6px rgba(143, 232, 44, .55);
}
.lk-top-item:hover .lk-top-poster img { transform: scale(1.07); }
.lk-top-item:hover .lk-top-n {
    transform: skewX(-5deg) translateY(-6px);
    background: var(--lk-grad);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 10px 22px rgba(143, 232, 44, .5));
}

/* декор у постеров: три позиции по кругу */
.lk-top-item:nth-child(3n+1) .lk-deco { top: -20px; left: calc(var(--pw) * .15); }
.lk-top-item:nth-child(3n+2) .lk-deco { top: -22px; right: -24px; }
.lk-top-item:nth-child(3n)   .lk-deco { bottom: -18px; left: calc(var(--pw) * .35); }

/* стрелки (только для мыши) */
.lk-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 46px; height: 46px;
    margin-top: -23px;
    border-radius: 50%;
    border: 1px solid var(--lk-line-strong);
    background: rgba(5, 7, 5, .75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--lk-g1);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: transform .25s var(--lk-ease), background .25s, color .25s;
}
.lk-arrow svg { width: 20px; height: 20px; }
.lk-arrow:hover { background: var(--lk-grad); color: var(--lk-on-grad); transform: scale(1.1); }
.lk-arrow--l { left: 8px; }
.lk-arrow--r { right: 12px; }
.lk-arrow[disabled] { opacity: 0; pointer-events: none; }
@media (hover: hover) and (min-width: 821px) { .lk-arrow { display: flex; } }

/* ==========================================================
   КАТАЛОГ
   ========================================================== */
.lk-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.lk-h1 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-family: var(--lk-font-display);
    font-weight: 800;
    font-size: clamp(22px, 3vw, 36px);
    letter-spacing: -.02em;
    line-height: 1.1;
}
.lk-count {
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--lk-line-strong);
    font-family: var(--lk-font);
    font-size: 13px;
    font-weight: 700;
    color: var(--lk-g1);
    letter-spacing: 0;
}
.lk-reset {
    padding: 9px 16px;
    border-radius: 12px;
    border: 1px solid var(--lk-line);
    font-size: 13px;
    font-weight: 600;
    color: var(--lk-mute);
    transition: .25s var(--lk-ease);
}
.lk-reset:hover { color: var(--lk-g1); border-color: var(--lk-line-strong); transform: translateY(-2px); }

.lk-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    padding: 4px 2px 8px;
    scrollbar-width: none;
}
.lk-tabs::-webkit-scrollbar { display: none; }
.lk-tab {
    flex: 0 0 auto;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--lk-line);
    background: var(--lk-surface);
    font-size: 14px;
    font-weight: 700;
    color: #c9d8c4;
    transition: transform .3s var(--lk-ease), background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.lk-tab:hover { border-color: var(--lk-line-strong); color: #fff; transform: translateY(-2px); }
.lk-tab.is-active { background: var(--lk-grad); color: var(--lk-on-grad); border-color: transparent; box-shadow: var(--lk-glow); }

/* сетка: ВСЕ карточки одинакового размера */
.lk-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 14px;
}
.lk-card { display: block; min-width: 0; }

/* плавная подгрузка при смене жанра (без перезагрузки страницы) */
#catalog .lk-tabs, #catalog .lk-grid, #catalog .lk-head { transition: opacity .2s ease; }
#catalog.is-loading .lk-grid,
#catalog.is-loading .lk-head { opacity: .35; pointer-events: none; }
#catalog { overflow-anchor: none; }

.lk-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;              /* фиксированная пропорция независимо от исходного фото */
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(110deg, #101810 30%, #1a241a 50%, #101810 70%);
    background-size: 200% 100%;
    animation: lk-skeleton 1.6s linear infinite;
    border: 1px solid rgba(255, 255, 255, .06);
    transition: transform .45s var(--lk-ease), box-shadow .45s, border-color .45s;
}
.lk-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;                /* фото обрезается под рамку, а не рамка под фото */
    object-position: center top;
    transition: transform .7s var(--lk-ease), filter .45s;
}
.lk-poster::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .55) 0%, transparent 38%);
    opacity: .7;
    transition: opacity .4s;
    pointer-events: none;
}
.lk-card:hover .lk-poster {
    transform: translateY(-6px);
    border-color: var(--lk-line-strong);
    box-shadow: 0 22px 44px -14px rgba(0, 0, 0, .9), 0 0 36px -8px rgba(143, 232, 44, .55);
}
.lk-card:hover .lk-poster img { transform: scale(1.07); filter: brightness(1.08) saturate(1.1); }
.lk-card:active .lk-poster { transform: scale(.98); }

.lk-score {
    position: absolute;
    top: 8px; left: 8px;
    z-index: 2;
    min-width: 38px;
    padding: 5px 9px;
    border-radius: 10px;
    background: rgba(5, 7, 5, .72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .1);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    line-height: 1;
}
.lk-score.is-good { color: var(--lk-g1); border-color: rgba(190, 255, 90, .4); }
.lk-score.is-mid  { color: #ffc94a; }
.lk-score.is-bad  { color: #ff6b6b; }

.lk-pro {
    position: absolute;
    top: 8px; right: 8px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 9px;
    background: var(--lk-grad);
    color: var(--lk-on-grad);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    line-height: 1;
}
.lk-badge {
    position: absolute;
    left: 8px; bottom: 8px;
    z-index: 2;
    max-width: calc(100% - 16px);
    padding: 5px 10px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* подписи — всегда одной высоты */
.lk-name {
    margin-top: 12px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    height: 1.25em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .3s;
}
.lk-card:hover .lk-name { color: var(--lk-g1); }
.lk-meta {
    margin-top: 4px;
    font-size: 12.5px;
    line-height: 1.3;
    height: 1.3em;
    color: var(--lk-mute);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* пустое состояние */
.lk-empty {
    padding: 56px 20px;
    text-align: center;
    border: 1px dashed var(--lk-line-strong);
    border-radius: 24px;
    background: radial-gradient(400px 200px at 50% 0%, rgba(143, 232, 44, .10), transparent 70%);
}
.lk-empty h3 { margin: 0 0 8px; font-family: var(--lk-font-display); font-size: 22px; }
.lk-empty p { margin: 0 0 22px; color: var(--lk-mute); }

/* ==========================================================
   АНИМАЦИИ
   ========================================================== */
@keyframes lk-float {
    0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
    50%      { transform: translateY(-9px) rotate(calc(var(--r, 0deg) + 7deg)); }
}
@keyframes lk-shine {
    0%, 55% { transform: translateX(-120%); }
    100%    { transform: translateX(120%); }
}
@keyframes lk-pulse {
    0%, 100% { opacity: .7; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.15); }
}
@keyframes lk-bg-drift {
    from { transform: scale(1.08) translate(0, 0); }
    to   { transform: scale(1.16) translate(-14px, -8px); }
}
@keyframes lk-skeleton {
    to { background-position: -200% 0; }
}

/* ==========================================================
   АДАПТИВ
   ========================================================== */
@media (min-width: 480px)  { .lk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; } }
@media (min-width: 768px)  { .lk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 18px; } }
@media (min-width: 1024px) { .lk-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px 20px; } }
@media (min-width: 1280px) { .lk-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1560px) { .lk-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }

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

@media (max-width: 820px) {
    .lk-toplist { grid-template-columns: 1fr; border-radius: 24px; }
    .lk-toplabel { min-height: 92px; padding: 22px 20px 0; }
    .lk-toplabel .lk-deco { --s: 40px !important; }
    .lk-toplabel .lk-deco:nth-of-type(n+3) { display: none; }
    .lk-toplabel .lk-deco:nth-of-type(1) { top: 14px !important; left: auto !important; right: 26px !important; bottom: auto !important; }
    .lk-toplabel .lk-deco:nth-of-type(2) { top: auto !important; bottom: -4px !important; right: 78px !important; left: auto !important; }
    .lk-toptrack { padding: 30px 30px 28px 14px; gap: 22px; }
    .lk-top-item { --pw: 118px; }

    .lk-hero { padding: 24px 20px; min-height: 0; }
    .lk-hero-poster { display: none; }
    .lk-hero-title { font-size: clamp(24px, 7vw, 34px); }
    .lk-btn { width: 100%; }

    /* жанры — горизонтальная лента */
    .lk-tiles {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;                 /* только вправо-влево, без вертикали */
        overscroll-behavior-x: contain;
        margin: 0 calc(var(--lk-pad) * -1);
        padding: 4px var(--lk-pad) 10px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }
    .lk-tiles::-webkit-scrollbar { display: none; }
    .lk-tile { flex: 0 0 auto; width: 138px; height: 78px; scroll-snap-align: start; }
    .lk-tile-ico { font-size: 28px; }
    .lk-tile-name { font-size: 14px; }
}

@media (max-width: 479px) {
    .lk-poster, .lk-top-poster { border-radius: 14px; }
    .lk-name { font-size: 14px; margin-top: 10px; }
    .lk-meta { font-size: 12px; }
    .lk-score { font-size: 12px; padding: 4px 8px; }
    .lk-tab { padding: 9px 16px; font-size: 13px; }
    .lk-tile-name { font-size: 13px; }
}

/* на тач-устройствах убираем «залипающий» hover */
@media (hover: none) {
    .lk-card:hover .lk-poster,
    .lk-top-item:hover .lk-top-poster,
    .lk-tile:hover { transform: none; box-shadow: none; }
    .lk-card:hover .lk-poster img,
    .lk-top-item:hover .lk-top-poster img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .lk *, .lk *::before, .lk *::after {
        animation: none !important;
        transition-duration: .01ms !important;
    }
    .lk-js .lk-rv { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}