/* =========================================================
   luxKino — плеер
   Раскладки задаёт JS классами на .lkw:
   lay-desk (ПК / планшет), lay-phone (вертикально), lay-short (телефон боком)
   ========================================================= */

:root {
    /* Фирменный зелёный градиент luxKino — цвета меняются здесь */
    --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-accent-ink: #05140a;
    --lk-text: #f3fff0;
    --lk-muted: #a9b8a5;
    --lk-line: rgba(190, 255, 90, .16);
    --lk-line-strong: rgba(190, 255, 90, .42);
    --lk-glass: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.05));
    --lk-glass-line: rgba(255,255,255,.16);
    --lk-panel: linear-gradient(180deg, rgba(16,26,16,.95), rgba(5,9,5,.98));
    --lk-glow: 0 0 28px -6px rgba(143,232,44,.75);
    --lk-ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body.lkw-body {
    margin: 0; padding: 0; height: 100%;
    background: #000; overflow: hidden; overscroll-behavior: none;
}

.lkw {
    /* безопасные зоны (чёлка, «домашняя» полоска) */
    --sat: env(safe-area-inset-top, 0px);
    --sar: env(safe-area-inset-right, 0px);
    --sab: env(safe-area-inset-bottom, 0px);
    --sal: env(safe-area-inset-left, 0px);
    --pad: 24px;
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; height: 100dvh;
    overflow: hidden; background: #000; color: var(--lk-text);
    font: 500 15px/1.35 Onest, system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-user-select: none; user-select: none;
    -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none;
    -webkit-text-size-adjust: 100%;
}
.lkw:fullscreen { width: 100%; height: 100%; }
.lkw:-webkit-full-screen { width: 100%; height: 100%; }

/* Запасной полный экран */
.lkw.is-fake { z-index: 2147483000; }
.lkw.is-rot {
    left: 100%; width: 100vh; width: 100dvh; height: 100vw; height: 100dvw;
    transform-origin: 0 0; transform: rotate(90deg);
    /* при повороте стороны экрана меняются местами */
    --sat: env(safe-area-inset-right, 0px);
    --sar: env(safe-area-inset-bottom, 0px);
    --sab: env(safe-area-inset-left, 0px);
    --sal: env(safe-area-inset-top, 0px);
}

.lkw button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
.lkw a { color: inherit; text-decoration: none; touch-action: manipulation; }
.lkw button:focus-visible, .lkw a:focus-visible, .lkw input:focus-visible { outline: 2px solid var(--lk-g2); outline-offset: 2px; }
.lkw svg { display: block; }

.lkw-video, .lkw-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.lkw-video { object-fit: contain; }
.lkw-stage { position: absolute; inset: 0; z-index: 1; touch-action: none; }

/* ---------- Затемнения и панели ---------- */
.lkw-shade { position: absolute; left: 0; right: 0; z-index: 2; pointer-events: none; transition: opacity .3s; }
.lkw-shade-top { top: 0; height: 150px; background: linear-gradient(rgba(0,0,0,.78), transparent); }
.lkw-shade-bottom { bottom: 0; height: 210px; background: linear-gradient(transparent, rgba(0,0,0,.85)); }

.lkw-top {
    position: absolute; top: 0; left: 0; right: 0; z-index: 5;
    display: flex; align-items: center; gap: 14px;
    padding: calc(var(--sat) + 16px) calc(var(--sar) + var(--pad)) 10px calc(var(--sal) + var(--pad));
    transition: opacity .3s, transform .35s var(--lk-ease), visibility .3s;
}
.lkw-heading { flex: 1; min-width: 0; }
.lkw-name { font: 800 20px/1.25 Unbounded, Onest, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lkw-sub { margin-top: 2px; color: var(--lk-muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lkw-logo img { display: block; height: 30px; width: auto; }

.lkw-btn {
    flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-width: 44px; height: 44px; border-radius: 14px;
    transition: background-color .18s, transform .12s;
}
.lkw-btn svg { width: 24px; height: 24px; }
.lkw-btn:active { transform: scale(.92); }
.lkw-btn.is-on { background: rgba(255,255,255,.18); }
.lkw .lkw-btn-text { padding: 0 14px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.lkw .lkw-glass { background: rgba(255,255,255,.13); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

.lkw-bottom {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
    padding: 0 calc(var(--sar) + var(--pad)) calc(var(--sab) + 12px) calc(var(--sal) + var(--pad));
    transition: opacity .3s, transform .35s var(--lk-ease), visibility .3s;
}
.lkw-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lkw-group { display: flex; align-items: center; gap: 4px; min-width: 0; }
.lkw-time { margin-left: 10px; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lkw-time i { font-style: normal; opacity: .45; }

/* ---------- Полоса перемотки ---------- */
.lkw-seekrow { display: flex; align-items: center; gap: 12px; }
.lkw-tm { display: none; font-size: 12px; font-variant-numeric: tabular-nums; }
.lkw-seek { --p: 0; --b: 0; position: relative; flex: 1; height: 30px; cursor: pointer; touch-action: none; }
.lkw-track { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 9px; overflow: hidden; background: rgba(255,255,255,.24); transition: height .15s, margin .15s; }
.lkw-buf, .lkw-fill { position: absolute; inset: 0; transform-origin: 0 50%; }
.lkw-buf { background: rgba(255,255,255,.3); transform: scaleX(var(--b)); }
.lkw-fill { background: var(--lk-g2); transform: scaleX(var(--p)); }
.lkw-thumb { position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.18); transition: transform .15s; }
.lkw-tip { position: absolute; bottom: 30px; transform: translateX(-50%); padding: 4px 9px; border-radius: 8px; background: var(--lk-panel); font-size: 12px; font-variant-numeric: tabular-nums; opacity: 0; pointer-events: none; }
.lkw.seeking .lkw-track { height: 7px; margin-top: -3.5px; }
.lkw.seeking .lkw-thumb { transform: scale(1.35); }
.lkw.seeking .lkw-tip { opacity: 1; }
@media (hover: hover) {
    .lkw-btn:hover { background: rgba(255,255,255,.14); }
    .lkw .lkw-glass:hover { background: rgba(255,255,255,.24); }
    .lkw-seek:hover .lkw-track { height: 7px; margin-top: -3.5px; }
    .lkw-seek:hover .lkw-tip { opacity: 1; }
}

/* ---------- Громкость ---------- */
.lkw-volume { display: flex; align-items: center; }
.lkw-vol {
    --v: 100%; width: 0; height: 24px; margin: 0; opacity: 0; background: transparent;
    -webkit-appearance: none; appearance: none; cursor: pointer; transition: width .25s var(--lk-ease), opacity .2s, margin .25s;
}
.lkw-volume:hover .lkw-vol, .lkw-volume:focus-within .lkw-vol { width: 90px; margin: 0 6px; opacity: 1; }
.lkw-vol::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #fff var(--v), rgba(255,255,255,.25) var(--v)); }
.lkw-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; margin-top: -4.5px; border-radius: 50%; background: #fff; }
.lkw-vol::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255,255,255,.25); }
.lkw-vol::-moz-range-progress { height: 4px; border-radius: 4px; background: #fff; }
.lkw-vol::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: #fff; }
.lkw.is-touch .lkw-vol, .lkw.no-volume .lkw-vol { display: none; }

/* ---------- Центральные кнопки ---------- */
.lkw-center { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 44px; pointer-events: none; transition: opacity .25s, visibility .25s; }
.lkw .lkw-cbtn { display: flex; align-items: center; justify-content: center; border-radius: 50%; pointer-events: auto; background: rgba(0,0,0,.42); transition: transform .12s, background-color .2s; }
.lkw .lkw-cbtn:active { transform: scale(.9); }
.lkw-cbtn--side { width: 58px; height: 58px; }
.lkw-cbtn--side svg { width: 32px; height: 32px; }
.lkw .lkw-cbtn--main { width: 80px; height: 80px; background: var(--lk-g2); color: var(--lk-accent-ink); }
.lkw-cbtn--main svg { width: 36px; height: 36px; }
.lkw.lay-desk:not(.is-touch) .lkw-cbtn--side { display: none; }
.lkw.lay-desk:not(.is-touch):not(.is-paused) .lkw-center { opacity: 0; visibility: hidden; }

/* ---------- Скрытие интерфейса ---------- */
.lkw.is-idle { cursor: none; }
.lkw.is-idle .lkw-top { opacity: 0; visibility: hidden; transform: translateY(-14px); }
.lkw.is-idle .lkw-bottom { opacity: 0; visibility: hidden; transform: translateY(14px); }
.lkw.is-idle .lkw-center, .lkw.is-idle .lkw-shade { opacity: 0; visibility: hidden; }
.lkw.sheet-open .lkw-center, .lkw.has-error .lkw-center, .lkw.is-loading .lkw-center { opacity: 0 !important; visibility: hidden !important; }
.lkw.ui-lock.lay-phone .lkw-center, .lkw.ui-lock.lay-short .lkw-center { opacity: 0; visibility: hidden; }

/* ---------- Спиннер, вспышка, перемотка, громкость ---------- */
.lkw-spinner { position: absolute; top: 50%; left: 50%; z-index: 3; width: 56px; height: 56px; margin: -28px; border: 4px solid rgba(255,255,255,.2); border-top-color: var(--lk-g2); border-radius: 50%; opacity: 0; visibility: hidden; pointer-events: none; }
.lkw.is-loading .lkw-spinner { opacity: 1; visibility: visible; animation: lkw-spin .8s linear infinite; }
@keyframes lkw-spin { to { transform: rotate(360deg); } }

.lkw-flash { position: absolute; top: 50%; left: 50%; z-index: 4; width: 80px; height: 80px; margin: -40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; }
.lkw-flash svg { width: 36px; height: 36px; }
.lkw-flash.go { animation: lkw-flash .5s ease-out; }
@keyframes lkw-flash { from { opacity: 1; transform: scale(.8); } to { opacity: 0; transform: scale(1.35); } }
.lkw.lay-desk:not(.is-touch).is-paused .lkw-flash { display: none; }

.lkw-skip { position: absolute; top: 0; bottom: 0; z-index: 4; width: 34%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(255,255,255,.09); opacity: 0; pointer-events: none; transition: opacity .2s; }
.lkw-skip--l { left: 0; border-radius: 0 50% 50% 0; }
.lkw-skip--r { right: 0; border-radius: 50% 0 0 50%; }
.lkw-skip.show { opacity: 1; }
.lkw-skip-chev { display: flex; }
.lkw-skip--l .lkw-skip-chev { transform: scaleX(-1); }
.lkw-skip-chev svg { width: 20px; height: 20px; margin: 0 -3px; }
.lkw-skip.show svg { animation: lkw-chev .6s ease-in-out both; }
.lkw-skip.show svg:nth-child(2) { animation-delay: .1s; }
.lkw-skip.show svg:nth-child(3) { animation-delay: .2s; }
@keyframes lkw-chev { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

.lkw-hud, .lkw-toast { position: absolute; left: 50%; z-index: 6; top: calc(var(--sat) + 86px); transform: translate(-50%, -8px); border-radius: 14px; background: var(--lk-panel); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--lk-ease); }
.lkw-hud { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.lkw-hud-ico svg { width: 22px; height: 22px; }
.lkw-hud-bar { width: 120px; height: 5px; border-radius: 5px; overflow: hidden; background: rgba(255,255,255,.22); }
.lkw-hud-bar i { --v: 0%; display: block; width: var(--v); height: 100%; background: var(--lk-g2); }
.lkw-hud b { min-width: 42px; font-size: 13px; }
.lkw-toast { padding: 10px 16px; font-size: 14px; white-space: nowrap; }
.lkw-hud.show, .lkw-toast.show { opacity: 1; transform: translate(-50%, 0); }

.lkw-error { position: absolute; top: 50%; left: 50%; z-index: 4; width: min(360px, 86%); transform: translate(-50%, -50%); padding: 22px; border-radius: 20px; background: var(--lk-panel); text-align: center; }
.lkw .lkw-error button { margin-top: 16px; padding: 12px 24px; border-radius: 12px; background: var(--lk-g2); color: var(--lk-accent-ink); font-weight: 800; }

/* ---------- Подложка и меню настроек ---------- */
.lkw-scrim { position: absolute; inset: 0; z-index: 7; background: rgba(0,0,0,.5); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; touch-action: none; }
.lkw-scrim.open { opacity: 1; visibility: visible; }
.lkw.lay-desk:not(.sheet-open) .lkw-scrim { background: transparent; }

.lkw-menu {
    position: absolute; z-index: 8; right: calc(var(--sar) + var(--pad)); bottom: calc(var(--sab) + 96px);
    width: 280px; max-height: calc(100% - 130px - var(--sab)); overflow-y: auto; overscroll-behavior: contain;
    padding: 8px; border: 1px solid var(--lk-line); border-radius: 18px; background: var(--lk-panel); box-shadow: 0 20px 60px rgba(0,0,0,.5);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .2s, transform .3s var(--lk-ease), visibility .2s;
}
.lkw-menu.open { opacity: 1; visibility: visible; transform: none; }
.lkw-view { display: none; }
.lkw-view.is-active { display: block; }
.lkw .lkw-mrow, .lkw .lkw-opt, .lkw .lkw-vback { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 0 12px; border-radius: 12px; text-align: left; }
.lkw-mrow span, .lkw-opt span { flex: 1; }
.lkw-mrow em { font-style: normal; font-size: 13px; color: var(--lk-muted); }
.lkw-mrow svg { width: 16px; height: 16px; opacity: .6; }
.lkw .lkw-vback { margin-bottom: 4px; border-bottom: 1px solid var(--lk-line); border-radius: 0; font-weight: 800; }
.lkw-vback svg { width: 16px; height: 16px; transform: rotate(180deg); }
.lkw-opt svg { width: 18px; height: 18px; color: var(--lk-g2); opacity: 0; }
.lkw-opt.is-active svg { opacity: 1; }
@media (hover: hover) { .lkw-mrow:hover, .lkw-opt:hover { background: rgba(255,255,255,.1); } }

/* ---------- Следующая серия ---------- */
.lkw-next-pill { position: absolute; z-index: 6; right: calc(var(--sar) + var(--pad)); bottom: calc(var(--sab) + 104px); display: flex; align-items: center; overflow: hidden; border-radius: 14px; background: #fff; color: #111; box-shadow: 0 12px 34px rgba(0,0,0,.45); transition: bottom .35s var(--lk-ease); }
.lkw-next-pill-go { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 12px 0 18px; font-weight: 800; font-size: 14px; }
.lkw-next-pill svg { width: 17px; height: 17px; }
.lkw .lkw-next-pill-x { display: flex; align-items: center; justify-content: center; width: 44px; height: 46px; border-left: 1px solid rgba(0,0,0,.12); }
.lkw.is-idle .lkw-next-pill { bottom: calc(var(--sab) + 28px); cursor: auto; }
.lkw.ui-lock .lkw-next-pill { visibility: hidden; }

.lkw-next { position: absolute; z-index: 6; right: calc(var(--sar) + var(--pad)); bottom: calc(var(--sab) + 104px); width: min(340px, calc(100% - 32px)); padding: 18px; border: 1px solid var(--lk-line); border-radius: 20px; background: var(--lk-panel); box-shadow: 0 20px 60px rgba(0,0,0,.55); }
.lkw-next-label { font-size: 12px; color: var(--lk-muted); }
.lkw-next-name { margin: 4px 0 12px; font-size: 17px; font-weight: 800; }
.lkw-next-bar { height: 4px; border-radius: 4px; overflow: hidden; background: rgba(255,255,255,.18); }
.lkw-next-bar i { display: block; height: 100%; width: 0; background: var(--lk-g2); }
.lkw-next-actions { display: flex; gap: 8px; margin-top: 14px; }
.lkw .lkw-next-go, .lkw .lkw-next-cancel { display: flex; flex: 1; align-items: center; justify-content: center; min-height: 44px; border-radius: 12px; font-weight: 700; font-size: 14px; }
.lkw .lkw-next-go { background: var(--lk-g2); color: var(--lk-accent-ink); }
.lkw .lkw-next-cancel { background: rgba(255,255,255,.14); }

/* =========================================================
   Сезоны и серии
   ========================================================= */
.lkw-sheet {
    position: absolute; z-index: 9; left: 0; right: 0; bottom: 0;
    display: flex; flex-direction: column; max-height: 88%;
    padding-bottom: calc(var(--sab) + 8px);
    border-top: 1px solid var(--lk-line); border-radius: 26px 26px 0 0;
    background: var(--lk-panel); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
    visibility: hidden; transform: translateY(102%);
    transition: transform .38s var(--lk-ease), visibility 0s linear .38s;
}
.lkw-sheet.open { visibility: visible; transform: none; transition: transform .38s var(--lk-ease), visibility 0s; }
.lkw-sheet-grab { display: none; width: 42px; height: 5px; margin: 8px auto 0; border-radius: 5px; background: rgba(255,255,255,.28); }
.lkw-sheet-head { display: flex; align-items: center; gap: 12px; padding: 16px calc(var(--sar) + var(--pad)) 10px calc(var(--sal) + var(--pad)); }
.lkw-sheet-title { flex: 1; min-width: 0; }
.lkw-sheet-title strong { display: block; font: 800 18px/1.3 Unbounded, Onest, sans-serif; }
.lkw-sheet-title small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--lk-muted); font-size: 13px; }

/* Стрелки стоят в шапке и не перекрывают карточки */
.lkw-arrows { display: flex; gap: 8px; }
.lkw-arrows.is-off { display: none; }
.lkw .lkw-arrow { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.12); transition: background-color .18s, opacity .18s; }
.lkw-arrow svg { width: 18px; height: 18px; }
.lkw-arrow--prev svg { transform: rotate(180deg); }
.lkw .lkw-arrow:disabled { opacity: .3; cursor: default; }
@media (hover: hover) { .lkw .lkw-arrow:not(:disabled):hover { background: var(--lk-g2); color: var(--lk-accent-ink); } }

.lkw-seasons { display: flex; flex: none; gap: 8px; overflow-x: auto; padding: 10px calc(var(--sar) + var(--pad)) 10px calc(var(--sal) + var(--pad)); scrollbar-width: none; }
.lkw-seasons::-webkit-scrollbar, .lkw-eps::-webkit-scrollbar { display: none; }
.lkw .lkw-season { flex: none; min-height: 36px; padding: 0 16px; border-radius: 99px; background: rgba(255,255,255,.1); font-size: 13px; font-weight: 700; transition: background-color .18s, color .18s; }
.lkw .lkw-season.is-active { background: #fff; color: #111; }

.lkw-eplist { display: flex; flex-direction: column; min-height: 0; }
.lkw-eps {
    position: relative; display: flex; gap: 16px; min-height: 0; overflow-x: auto; overflow-y: hidden;
    padding: 8px calc(var(--sar) + var(--pad)) 14px calc(var(--sal) + var(--pad));
    scrollbar-width: none; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; cursor: grab;
}
.lkw-eps.is-grabbing, .lkw-eps.is-grabbing .lkw-ep { cursor: grabbing; }
.lkw-ep { display: flex; flex: none; flex-direction: column; gap: 10px; width: 240px; border-radius: 16px; -webkit-user-drag: none; }
.lkw-ep-thumb { position: relative; display: block; flex: none; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: linear-gradient(135deg, #2c2c36, #15151a); }
.lkw-ep-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; pointer-events: none; transition: opacity .25s, transform .45s var(--lk-ease); }
.lkw-ep-thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid transparent; background: linear-gradient(transparent 45%, rgba(0,0,0,.7)) padding-box; transition: border-color .2s; }
.lkw-ep-num { position: absolute; z-index: 1; left: 12px; bottom: 8px; font: 900 28px/1 Unbounded, Onest, sans-serif; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.lkw-ep-ico { position: absolute; z-index: 1; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -22px; border-radius: 50%; background: rgba(0,0,0,.55); transition: background-color .2s, color .2s, transform .25s var(--lk-ease); }
.lkw-ep-ico svg { width: 18px; height: 18px; }
.lkw-ep-prog { position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 3px; height: 3px; border-radius: 3px; overflow: hidden; background: rgba(255,255,255,.28); opacity: 0; }
.lkw-ep-prog i { display: block; height: 100%; width: 0; background: var(--lk-g2); }
.lkw-ep.has-prog .lkw-ep-prog { opacity: 1; }
.lkw-ep-text { display: block; min-width: 0; }
.lkw-ep-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-weight: 700; font-size: 14px; }
.lkw-ep-sub { display: block; margin-top: 3px; color: var(--lk-muted); font-size: 12px; }
.lkw-ep.is-active .lkw-ep-thumb::after { border-color: var(--lk-g2); }
.lkw-ep.is-active .lkw-ep-ico { background: var(--lk-g2); color: var(--lk-accent-ink); }
.lkw-ep.is-active .lkw-ep-sub { color: var(--lk-g2); font-weight: 700; }
@media (hover: hover) {
    .lkw-ep:hover img { opacity: .9; transform: scale(1.05); }
    .lkw-ep:hover .lkw-ep-ico { background: var(--lk-g2); color: var(--lk-accent-ink); transform: scale(1.1); }
}
.lkw-eq { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.lkw-eq b { width: 3px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: bottom; animation: lkw-eq .9s ease-in-out infinite alternate; }
.lkw-eq b:nth-child(2) { animation-delay: -.6s; }
.lkw-eq b:nth-child(3) { animation-delay: -.3s; }
@keyframes lkw-eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.lkw.is-paused .lkw-eq b, .lkw-sheet:not(.open) .lkw-eq b { animation-play-state: paused; }

/* =========================================================
   Телефон (обе ориентации): серии вертикальным списком
   ========================================================= */
.lkw.lay-phone, .lkw.lay-short { --pad: 14px; }
.lay-phone .lkw-arrows, .lay-short .lkw-arrows { display: none; }
.lay-phone .lkw-eplist, .lay-short .lkw-eplist { flex: 1; }
.lay-phone .lkw-eps, .lay-short .lkw-eps { flex: 1; flex-direction: column; gap: 6px; overflow-x: hidden; overflow-y: auto; touch-action: pan-x pan-y; cursor: auto; }
.lay-phone .lkw-ep, .lay-short .lkw-ep { flex-direction: row; align-items: center; gap: 12px; width: 100%; padding: 6px; }
.lay-phone .lkw-ep.is-active, .lay-short .lkw-ep.is-active { background: rgba(255,255,255,.09); }
.lay-phone .lkw-ep-thumb, .lay-short .lkw-ep-thumb { width: 128px; border-radius: 12px; }
.lay-phone .lkw-ep-num, .lay-short .lkw-ep-num { font-size: 18px; left: 9px; bottom: 9px; }
.lay-phone .lkw-ep-ico, .lay-short .lkw-ep-ico { width: 34px; height: 34px; margin: -17px; }
.lay-phone .lkw-ep-text, .lay-short .lkw-ep-text { flex: 1; }
.lay-phone .lkw-sheet { height: 76%; }
.lay-phone .lkw-sheet-grab { display: block; }
.lay-phone .lkw-sheet-drag { touch-action: none; }
.lay-phone .lkw-sheet-head { padding-top: 8px; }

/* Боком: список — панель справа на всю высоту */
.lay-short .lkw-sheet { left: auto; top: 0; width: min(420px, 62%); max-height: none; padding-top: var(--sat); border-radius: 22px 0 0 22px; transform: translateX(102%); }
.lay-short .lkw-sheet.open { transform: none; }
.lay-short .lkw-sheet-head { padding: 8px calc(var(--sar) + 12px) 6px 16px; }
.lay-short .lkw-seasons, .lay-short .lkw-eps { padding-left: 10px; padding-right: calc(var(--sar) + 10px); }

/* ---------- Панели на телефоне ---------- */
.lay-phone .lkw-name, .lay-short .lkw-name { font-size: 15px; }
.lay-phone .lkw-sub, .lay-short .lkw-sub { font-size: 12px; }
.lay-phone .lkw-logo { display: none; }
.lay-short .lkw-logo img { height: 22px; }
.lay-phone .lkw-top, .lay-short .lkw-top { gap: 10px; padding-top: calc(var(--sat) + 10px); }
.lay-phone .lkw-tm, .lay-short .lkw-tm { display: block; }
.lay-phone .lkw-time, .lay-short .lkw-time,
.lay-phone .lkw-play-s, .lay-short .lkw-play-s,
.lay-phone #lkw-back, .lay-short #lkw-back,
.lay-phone #lkw-fwd, .lay-short #lkw-fwd,
.lay-phone .lkw-vol, .lay-short .lkw-vol { display: none; }
.lay-phone .lkw-row .lkw-group:last-child, .lay-short .lkw-row .lkw-group:last-child { margin-left: auto; }
.lay-phone .lkw-bottom { padding-bottom: calc(var(--sab) + 8px); }
.lay-short .lkw-bottom { padding-bottom: calc(var(--sab) + 4px); }
.lay-phone .lkw-center { gap: 28px; }

/* Меню — шторка снизу */
.lay-phone .lkw-menu, .lay-short .lkw-menu { left: 0; right: 0; bottom: 0; width: auto; max-width: 480px; max-height: 80%; margin: 0 auto; padding: 10px 10px calc(var(--sab) + 10px); border-radius: 22px 22px 0 0; transform: translateY(30px); }
.lay-phone .lkw-menu.open, .lay-short .lkw-menu.open { transform: none; }

.lay-phone .lkw-next-pill, .lay-phone .lkw-next { bottom: calc(var(--sab) + 108px); }
.lay-short .lkw-next-pill { bottom: calc(var(--sab) + 92px); }
.lay-short .lkw-next { bottom: calc(var(--sab) + 12px); }
.lkw.lay-phone.is-idle .lkw-next-pill, .lkw.lay-short.is-idle .lkw-next-pill { bottom: calc(var(--sab) + 18px); }

/* Очень узкие экраны */
@media (max-width: 360px) {
    .lay-phone .lkw-btn-text span { display: none; }
    .lay-phone .lkw-center { gap: 18px; }
    .lay-phone .lkw-ep-thumb { width: 108px; }
}

/* =========================================================
   Режим iframe (YouTube, VK, Rutube): наши кнопки не закрывают чужой плеер
   ========================================================= */
.lkw.is-iframe { display: flex; flex-direction: column; }
.lkw.is-iframe .lkw-shade { display: none; }
.lkw.is-iframe .lkw-top { position: static; order: 1; flex: none; }
.lkw.is-iframe .lkw-frame { position: static; order: 2; flex: 1; min-height: 0; }
.lkw-floating { order: 3; flex: none; display: flex; justify-content: flex-end; gap: 8px; padding: 8px calc(var(--sar) + var(--pad)) calc(var(--sab) + 8px) calc(var(--sal) + var(--pad)); }
.lkw.is-iframe.lay-short .lkw-top { padding-top: calc(var(--sat) + 4px); padding-bottom: 4px; }
.lkw.is-iframe.lay-short .lkw-floating { position: absolute; z-index: 6; top: var(--sat); right: 0; padding-top: 4px; }
.lkw.is-iframe.lay-short .lkw-heading { margin-right: 300px; }

/* =========================================================
   Тема: зелёный градиент
   ========================================================= */
.lkw button:focus-visible, .lkw a:focus-visible, .lkw input:focus-visible { outline-color: var(--lk-g2); }

/* градиентные элементы */
.lkw .lkw-cbtn--main, .lkw .lkw-error button, .lkw .lkw-next-go, .lkw .lkw-next-pill-go,
.lkw .lkw-season.is-active, .lkw .lkw-ep.is-active .lkw-ep-ico {
    background: var(--lk-grad); color: var(--lk-accent-ink);
}

.lkw-btn.is-on { color: var(--lk-g1); background: rgba(190,255,90,.16); }
.lkw .lkw-glass { background: var(--lk-glass); border: 1px solid var(--lk-glass-line); }

/* центр */
.lkw .lkw-cbtn--side { background: rgba(10,18,10,.6); border: 1px solid var(--lk-line-strong); }
.lkw .lkw-cbtn--main { box-shadow: 0 0 0 8px rgba(143,232,44,.14), 0 0 44px -4px rgba(143,232,44,.8); }

/* перемотка и громкость */
.lkw-fill { background: var(--lk-grad); }
.lkw-thumb { background: var(--lk-grad); box-shadow: 0 0 0 4px rgba(143,232,44,.28), 0 0 18px rgba(143,232,44,.9); }
.lkw-tip { border: 1px solid var(--lk-line-strong); }
.lkw-vol::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--lk-g2) var(--v), rgba(255,255,255,.25) var(--v)); }
.lkw-vol::-webkit-slider-thumb { background: var(--lk-g1); box-shadow: 0 0 12px rgba(143,232,44,.85); }
.lkw-vol::-moz-range-progress { background: var(--lk-g2); }
.lkw-vol::-moz-range-thumb { background: var(--lk-g1); box-shadow: 0 0 12px rgba(143,232,44,.85); }
.lkw-hud-bar i { background: var(--lk-grad); }
.lkw-hud-ico, .lkw-flash { color: var(--lk-g1); }
.lkw-hud, .lkw-toast, .lkw-flash { border: 1px solid var(--lk-line-strong); }
.lkw-spinner { border-top-color: var(--lk-g2); border-right-color: var(--lk-g3); filter: drop-shadow(0 0 10px rgba(143,232,44,.6)); }
.lkw-skip { background: rgba(143,232,44,.16); }
.lkw-error { border: 1px solid var(--lk-line-strong); }

/* меню и следующая серия */
.lkw-menu { border-color: var(--lk-line-strong); box-shadow: 0 30px 80px -20px #000, 0 0 60px -30px rgba(143,232,44,.6); }
.lkw-mrow em { color: var(--lk-g1); }
.lkw .lkw-opt.is-active { color: var(--lk-g1); background: rgba(190,255,90,.11); }
.lkw-opt svg { color: var(--lk-g1); }
.lkw-next-pill { gap: 6px; padding: 7px; border: 1px solid var(--lk-line-strong); border-radius: 18px; background: var(--lk-panel); color: var(--lk-text); box-shadow: 0 18px 44px -10px #000, var(--lk-glow); }
.lkw .lkw-next-pill-go { min-height: 42px; padding: 0 16px; border-radius: 12px; }
.lkw .lkw-next-pill-x { width: 42px; height: 42px; border: 0; border-radius: 12px; background: rgba(255,255,255,.08); color: var(--lk-muted); }
.lkw-next { border-color: var(--lk-line-strong); box-shadow: 0 30px 80px -20px #000, var(--lk-glow); }
.lkw-next-label { color: var(--lk-g1); font-weight: 800; }
.lkw-next-bar i { background: var(--lk-grad); }
.lkw .lkw-next-cancel { background: var(--lk-glass); border: 1px solid var(--lk-glass-line); }

/* серии */
.lkw-sheet { border-color: var(--lk-line-strong); box-shadow: 0 -30px 80px -34px rgba(143,232,44,.55); }
.lkw-sheet-grab { background: var(--lk-grad); opacity: .75; }
.lkw .lkw-arrow { background: var(--lk-glass); border: 1px solid var(--lk-line-strong); color: var(--lk-g1); }
.lkw .lkw-season { background: var(--lk-glass); border: 1px solid var(--lk-glass-line); }
.lkw .lkw-season.is-active { border-color: transparent; box-shadow: var(--lk-glow); }
.lkw-ep-thumb { background: linear-gradient(135deg, #1d3a1c, #081008); }
.lkw-ep-thumb::after { border: 1px solid var(--lk-glass-line); background: linear-gradient(transparent 40%, rgba(3,12,4,.82)) padding-box; }
.lkw-ep.is-active .lkw-ep-thumb { box-shadow: var(--lk-glow); }
.lkw-ep.is-active .lkw-ep-thumb::after { border: 2px solid var(--lk-g2); }
.lkw-ep.is-active .lkw-ep-num { color: var(--lk-g1); }
.lkw-ep.is-active .lkw-ep-sub { color: var(--lk-g1); }
.lkw-ep-prog i { background: var(--lk-grad); }
.lkw.lay-phone .lkw-ep, .lkw.lay-short .lkw-ep { border: 1px solid transparent; }
.lkw.lay-phone .lkw-ep.is-active, .lkw.lay-short .lkw-ep.is-active { border-color: var(--lk-line-strong); background: linear-gradient(90deg, rgba(143,232,44,.2), rgba(37,185,74,.04)); }
.lkw.lay-phone .lkw-ep.is-active .lkw-ep-thumb, .lkw.lay-short .lkw-ep.is-active .lkw-ep-thumb { box-shadow: none; }

@media (hover: hover) {
    .lkw-btn:hover { color: var(--lk-g1); }
    .lkw .lkw-cbtn--main:hover { filter: brightness(1.07); }
    .lkw .lkw-arrow:not(:disabled):hover { background: var(--lk-grad); border-color: transparent; color: var(--lk-accent-ink); box-shadow: var(--lk-glow); }
    .lkw .lkw-season:not(.is-active):hover { border-color: var(--lk-line-strong); }
    .lkw-ep:hover .lkw-ep-ico { background: var(--lk-grad); color: var(--lk-accent-ink); }
    .lkw-ep:hover .lkw-ep-thumb::after { border-color: var(--lk-line-strong); }
}

/* На телефоне без размытия поверх видео — меньше нагрузка и нет подтормаживаний */
.lkw.is-touch .lkw-glass, .lkw.is-touch .lkw-sheet { -webkit-backdrop-filter: none; backdrop-filter: none; }
.lkw.is-touch .lkw-glass { background: rgba(10,18,10,.7); }

@media (prefers-reduced-motion: reduce) {
    .lkw *, .lkw *::before, .lkw *::after { transition-duration: .01ms !important; transition-delay: 0s !important; }
    .lkw-eq b, .lkw-skip.show svg { animation: none !important; }
}