/* ARK TV — 0.6.3 (20 ноя 2026): + #video.video--compat (настройка «Плеер → совместимый»); остальное — 0.6.2.
   0.6.2 (20 ноя 2026): рамка карточки в фокусе нигде не режется (запас 1.1em сверху и 1.2em слева у всех лент и сеток), поиск — клавиатура
   12 в ряд с буквами языка сайта и сменой раскладки, результаты потоком под клавиатурой (не наезжают). Масштаб — min(ширина/80, высота/45).
   0.6.0 (19 ноя 2026): редизайн под «10-футовый» интерфейс уровня Lampa (слово заказчика после первых тестов на Samsung).
   Размеры в em от html.font-size (ставит app.js по ширине экрана: 1280 → 16px, 1920 → 24px, 3840 → 48px), то есть 1em ≈ 1/80 ширины экрана.
   Боковое меню с иконками (свёрнуто — только иконки, в фокусе — раскрыто поверх контента), крупные обложки (11.4em ≈ 274px на 1080p),
   «ambient»-фон из обложки выбранного тайтла (размытие; на слабых ТВ класс .lite — без размытия), сопряжение по центру экрана.
   Только flexbox/absolute с -webkit-префиксами: без CSS grid, переменных, gap у flex, clamp(), aspect-ratio (Tizen 2016+, webOS 3+, старые WebView).
   Шрифт Inter (SIL OFL 1.1) лежит рядом в fonts/ — woff2, latin + latin-ext (8 языков PAID-сайтов); запасной стек — системные шрифты ТВ. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/inter-400-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/inter-400-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/inter-600-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/inter-600-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/inter-800-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/inter-800-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ───── основа ───── */
html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: #0a0d14; color: #eef1f6;
  font-family: "Inter", "Samsung Sans", "SamsungOne", "LG Smart UI", "Roboto", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.3; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none; }
html { font-size: 16px; }   /* app.js scale() переписывает inline по ширине экрана */
body { font-size: 1em; }    /* 0.6.0: наследует от html. До этого у body стоял жёсткий 16px — масштаб 1920 → 24px НЕ работал, на ТВ всё было как для 1280 */
* { box-sizing: border-box; }
#app { position: absolute; left: 0; top: 0; right: 0; bottom: 0; }
.screen { position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: none; z-index: 1; }
.screen--active { display: block; }
.screen--black { background: #000; z-index: 20; }
.hint { color: #8b95a7; font-size: .95em; margin-top: 1em; }
.hint--dim { color: #636c80; }
.empty { color: #8b95a7; padding: 1.2em .6em; font-size: 1.05em; }
.center { position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-orient: vertical; -webkit-flex-direction: column; flex-direction: column; -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; }

/* ───── «ambient»-фон: размытая обложка выбранного тайтла под затемнением ───── */
.bg { position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 0; overflow: hidden; display: none; }
.bg--show { display: block; }
.bg__img { position: absolute; left: -8%; top: -8%; width: 116%; height: 116%; background-position: center 22%; background-size: cover; background-repeat: no-repeat;
  opacity: .42; -webkit-filter: blur(1.4em) saturate(1.25); filter: blur(1.4em) saturate(1.25); -webkit-transform: translateZ(0); transform: translateZ(0); }
.bg--card .bg__img { opacity: .5; -webkit-filter: blur(1em) saturate(1.2); filter: blur(1em) saturate(1.2); }
.bg__shade { position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  background: -webkit-linear-gradient(left, rgba(10,13,20,.94) 0%, rgba(10,13,20,.55) 40%, rgba(10,13,20,.78) 100%);
  background: linear-gradient(to right, rgba(10,13,20,.94) 0%, rgba(10,13,20,.55) 40%, rgba(10,13,20,.78) 100%); }
.bg__shade:after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60%;
  background: -webkit-linear-gradient(top, rgba(10,13,20,0), rgba(10,13,20,.92)); background: linear-gradient(to bottom, rgba(10,13,20,0), rgba(10,13,20,.92)); }
.lite .bg__img { -webkit-filter: none; filter: none; opacity: .18; }

/* ───── боковое меню: свёрнуто 5.4em (иконки), в фокусе раскрыто 16em поверх контента ───── */
.side { position: absolute; left: 0; top: 0; bottom: 0; width: 5.4em; z-index: 10; display: none; -webkit-transition: width .2s; transition: width .2s; }
.side--show { display: block; }
.side--open { width: 21em; background: -webkit-linear-gradient(left, rgba(7,9,15,.98) 0%, rgba(7,9,15,.96) 72%, rgba(7,9,15,0) 100%);
  background: linear-gradient(to right, rgba(7,9,15,.98) 0%, rgba(7,9,15,.96) 72%, rgba(7,9,15,0) 100%); }
.side__brand { position: absolute; left: 0; top: 2.1em; height: 2.4em; width: 16em; padding-left: 1.75em; display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center; white-space: nowrap; overflow: hidden; }
.side__mono { width: 1.9em; height: 1.9em; line-height: 1.9em; text-align: center; border-radius: .55em; background: #fff; color: #0a0d14; font-weight: 800; font-size: 1em; }
.side__logo { display: none; font-size: 1.45em; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.side__brand-tv { display: none; margin-left: .5em; padding: .12em .45em; border-radius: .35em; border: .1em solid rgba(255,255,255,.55); color: #fff; font-size: .75em; font-weight: 700; letter-spacing: .08em; }
.side--open .side__mono { display: none; }
.side--open .side__logo, .side--open .side__brand-tv { display: inline-block; }
.side__items { position: absolute; left: 0; top: 7.2em; width: 16em; }
.side__item { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  height: 3.1em; margin: .2em .9em; padding: 0 1.05em; border-radius: 1.55em; color: #8b95a7; white-space: nowrap; overflow: hidden; }
.side__item--active { color: #fff; }
.side__item--focus { background: #fff; color: #0a0d14; }
.side__ico { width: 1.55em; height: 1.55em; -webkit-flex: none; flex: none; margin-right: 1.05em; }
.side__ico svg { width: 100%; height: 100%; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.side__label { font-size: 1.25em; font-weight: 500; opacity: 0; -webkit-transition: opacity .15s; transition: opacity .15s; }
.side--open .side__label { opacity: 1; }
.side__user { position: absolute; left: 0; bottom: 2em; width: 16em; }
.side__user .side__item { height: 2.8em; color: #8b95a7; }
.side__user .side__label { font-size: .9em; overflow: hidden; text-overflow: ellipsis; }
.side__user .side__ico { width: 1.4em; height: 1.4em; }
/* раскрытое меню сдвигает контент вправо (как у Lampa) — левая карточка не прячется под меню */
.hero, .shelves-wrap, .cat, .live, .sport, .settings, .search { -webkit-transition: -webkit-transform .2s; transition: transform .2s; }
.side--open ~ .screen .hero, .side--open ~ .screen .shelves-wrap, .side--open ~ .screen .cat, .side--open ~ .screen .live, .side--open ~ .screen .sport,
.side--open ~ .screen .settings, .side--open ~ .screen .search { -webkit-transform: translateX(14.4em); transform: translateX(14.4em); }
.clock { position: absolute; right: 3em; top: 2.2em; color: #8b95a7; font-size: 1.05em; z-index: 6; display: none; font-variant-numeric: tabular-nums; }
.clock--show { display: block; }

/* ───── общие элементы: плашки, кнопки, строки списков ───── */
.chip { display: inline-block; padding: .28em .7em; margin: 0 .5em .45em 0; border-radius: .5em; background: rgba(255,255,255,.1); color: #dfe4ec; font-size: .92em; white-space: nowrap; }
.chip--rating { background: #ffd166; color: #1b1500; font-weight: 700; }
.chip--plain { background: none; padding-left: 0; color: #b8c1d1; }
.btns { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin-top: 1.2em; }
.btn { padding: .68em 1.6em; margin: 0 .8em .6em 0; border-radius: 2em; background: rgba(255,255,255,.1); color: #eef1f6; font-size: 1.1em; font-weight: 500; white-space: nowrap;
  border: .12em solid transparent; }
.btn--main { background: rgba(255,255,255,.2); }
.btn--focus, .btn--main.btn--focus { background: #fff; color: #0a0d14; border-color: #fff; }
.tab { display: inline-block; padding: .45em 1.15em; margin-right: .6em; border-radius: 1.4em; color: #9aa4b5; font-size: 1em; font-weight: 500; white-space: nowrap; background: rgba(255,255,255,.06); }
.tab--active { color: #fff; background: rgba(255,255,255,.14); }
.tab--focus { background: #fff; color: #0a0d14; }
.row, .ev, .erow, .frow, .srow, .chrow { border-radius: .6em; color: #c9d1de; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row--focus, .ev--focus, .erow--focus, .frow--focus, .srow--focus, .chrow--focus { background: #fff; color: #0a0d14; }
.row--focus small, .ev--focus small, .erow--focus small, .frow--focus small, .srow--focus small, .chrow--focus small,
.ev--focus .ev__time, .erow--focus .erow__num { color: #3c4556; }

/* ───── карточки: обложка 2:3 + подпись под ней ───── */
.card { display: inline-block; vertical-align: top; width: 11.4em; margin-right: 1.1em; white-space: normal; position: relative;
  -webkit-transition: -webkit-transform .16s ease-out; transition: transform .16s ease-out; }
.card__pic { position: relative; width: 100%; height: 17.1em; border-radius: .7em; overflow: hidden; background: #1a2130;
  -webkit-transition: box-shadow .16s; transition: box-shadow .16s; }
.card__pic img { width: 100%; height: 100%; display: block; -o-object-fit: cover; object-fit: cover; }
.card__cap { margin-top: .5em; height: 1.3em; line-height: 1.3em; font-size: 1.02em; color: #9aa3b5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 .15em; }
.card__bar { position: absolute; left: 0; right: 0; bottom: 0; height: .32em; background: rgba(0,0,0,.55); }
.card__fill { height: 100%; background: #fff; }
.card__badge { position: absolute; right: .5em; top: .5em; padding: .15em .5em; border-radius: .35em; background: rgba(0,0,0,.72); font-size: .72em; font-weight: 700; letter-spacing: .06em; color: #fff; }
.card__rate { position: absolute; left: .5em; top: .5em; padding: .15em .5em; border-radius: .35em; background: #ffd166; color: #1b1500; font-size: .78em; font-weight: 700; }
.card--focus { -webkit-transform: scale(1.07); transform: scale(1.07); z-index: 2; }
.card--focus .card__pic { box-shadow: 0 0 0 .2em #fff, 0 1em 2.4em rgba(0,0,0,.65); }
.card--focus .card__cap { color: #fff; font-weight: 600; }
.card--small { width: 9em; margin-right: .9em; }
.card--small .card__pic { height: 13.5em; }
.card--small .card__cap { font-size: .9em; }
.card--grid { width: 10em; margin-right: 1em; }
.card--grid .card__pic { height: 15em; }
/* 0.6.2: карточка в фокусе растёт на 7 % от центра и получает кольцо .2em — вверх до .88em (постер), влево до .83em (событие). Запас у обрезки: 1.1em сверху,
   1.2em слева (замечание заказчика 20 ноя: рамка резалась сверху под заголовком полки и слева). Обёртки лент (.shelves-wrap, .search, .cs) режут не ближе 1em. */
.rail-wrap { overflow: hidden; padding: 1.1em 0 1em 1.2em; margin-left: -1.2em; }
.rail { white-space: nowrap; -webkit-transition: -webkit-transform .2s ease-out; transition: transform .2s ease-out; }

/* ───── главная: описание выбранного + полки (прокрутка полок — translateY на .shelves, высота полки постоянна) ───── */
.hero { position: absolute; left: 7.6em; right: 3em; top: 2.6em; height: 12.2em; overflow: hidden; }
.hero__title { font-size: 2.5em; font-weight: 800; letter-spacing: -.02em; line-height: 1.12; max-height: 2.24em; overflow: hidden; }
.hero__meta { margin-top: .55em; min-height: 1.9em; }
.hero__desc { margin-top: .1em; color: #c9d1de; font-size: 1.05em; line-height: 1.4; max-height: 2.8em; overflow: hidden; max-width: 46em; }
.hero__tracks { margin-top: .5em; color: #7f889b; font-size: .9em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50em; }
.shelves-wrap { position: absolute; left: 6.2em; padding-left: 1.4em; right: 0; top: 15em; bottom: 0; overflow: hidden; }   /* обрезка на 1.4em левее контента: увеличенная карточка не режется */
.shelves { position: relative; -webkit-transition: -webkit-transform .25s ease-out; transition: transform .25s ease-out; }
.shelf { padding-bottom: 1.2em; }   /* постерная полка ≈ 24.6em (SHELF_H в app.js), полка событий ниже — сдвиг по offsetTop */
.shelf__title { color: #8b95a7; font-size: 1.45em; font-weight: 600; margin-bottom: .35em; -webkit-transition: color .2s; transition: color .2s; }
.shelf--cur .shelf__title { color: #fff; }
.shelf .card { opacity: .55; -webkit-transition: opacity .2s, -webkit-transform .16s ease-out; transition: opacity .2s, transform .16s ease-out; }
.shelf--cur .card { opacity: 1; }
.shelf--search { margin-top: .5em; padding-bottom: 0; }   /* результаты поиска — потоком под клавиатурой (0.6.2), не absolute снизу */

/* ───── каталог: фильтры слева, сетка справа ───── */
.cat { position: absolute; left: 7.6em; right: 0; top: 2.6em; bottom: 0; display: -webkit-box; display: -webkit-flex; display: flex; }
.cat__filters { width: 15em; padding-right: 1em; overflow: hidden; }
.cat__main { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; overflow: hidden; position: relative; padding-left: 1.2em; }   /* заголовок — потоком с отступом; сетка и подсказка — absolute, отступ у них свой */
.cat__title { color: #fff; font-size: 1.5em; font-weight: 700; margin-bottom: .5em; height: 1.4em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 0.6.2: сетка начинается на 1.2em правее обрезки .cat__main и на 1.1em ниже верха обёртки — рамка первой строки и левой колонки видна целиком
   (в 0.6.1 absolute-обёртка стояла от края .cat__main, и карточки оказывались вплотную к обрезке: рамку резало слева и сверху) */
.cat__grid-wrap { overflow: hidden; position: absolute; left: 0; right: 0; top: 2.8em; bottom: 2.6em; padding: 1.1em 0 0 1.2em; }
.cat .hint { position: absolute; left: 1.2em; bottom: .8em; margin: 0; }
.grid { -webkit-transition: -webkit-transform .2s ease-out; transition: transform .2s ease-out; }
.grid__row { white-space: nowrap; height: 18.2em; }   /* две строки целиком на экране 45em, третья — за обрезкой */
.frow { height: 2.7em; line-height: 2.7em; padding: 0 1em; font-size: 1em; margin-bottom: .15em; }
.frow--on { color: #fff; font-weight: 600; }
.frow--on.frow--focus { color: #0a0d14; }   /* выбранный И в фокусе: тёмный текст на белом (иначе белым по белому — замечание заказчика 19 ноя) */
.frow--head { color: #636c80; font-size: .78em; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; height: 2em; line-height: 2em; margin: .6em 0 .3em; }
.cat--hist { left: 3em; }

/* ───── спорт: афиша слева, матч справа ───── */
.sport { position: absolute; left: 7.6em; right: 3em; top: 2.6em; bottom: 1.4em; display: -webkit-box; display: -webkit-flex; display: flex; }
.sport__list { width: 36em; overflow: hidden; position: relative; }
.ev { height: 2.9em; line-height: 2.9em; padding: 0 1em; font-size: 1.02em; margin-bottom: .15em; }
.ev--head { color: #636c80; font-size: .78em; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; height: 2.2em; line-height: 2.2em; margin: .5em 0 .2em; }
.ev__time { display: inline-block; width: 4.4em; color: #8b95a7; font-variant-numeric: tabular-nums; }
.ev__live { display: inline-block; width: 4.4em; color: #ff4a3d; font-weight: 800; }
.ev small { color: #8b95a7; margin-left: .7em; font-size: .85em; }
.sport__side { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; padding-left: 3em; overflow: hidden; }
.sport__league { color: #8b95a7; font-size: 1em; }
.sport__teams { font-size: 2.1em; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-top: .3em; }
.sport__time { color: #c9d1de; font-size: 1.1em; margin-top: .6em; }
.sport__chtitle { color: #636c80; font-size: .78em; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-top: 1.6em; }
.chrow { height: 2.8em; line-height: 2.8em; padding: 0 1em; font-size: 1.02em; margin-top: .2em; }
.chrow small { color: #8b95a7; margin-left: .6em; font-size: .85em; }

/* ───── эфир: каналы слева, канал справа ───── */
.live { position: absolute; left: 7.6em; right: 3em; top: 2.6em; bottom: 1.4em; display: -webkit-box; display: -webkit-flex; display: flex; }
.live__list { width: 28em; overflow: hidden; position: relative; }
.row { height: 2.9em; line-height: 2.9em; padding: 0 1em; font-size: 1.02em; margin-bottom: .15em; }
.row small { color: #8b95a7; margin-left: .6em; font-size: .8em; }
.live__side { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; padding-left: 3em; }
.live__logo { width: 9em; height: 9em; border-radius: .8em; background: rgba(255,255,255,.08); margin-bottom: 1em; display: none; -o-object-fit: contain; object-fit: contain; padding: .8em; }
.live__logo--show { display: block; }
.live__name { font-size: 2.1em; font-weight: 800; letter-spacing: -.02em; }
.live__meta { color: #c9d1de; font-size: 1.1em; margin-top: .5em; }

/* ───── карточка тайтла: прокручиваемая колонка (translateY по зоне фокуса) ───── */
.cs { position: absolute; left: 3em; right: 3em; top: 0; bottom: 0; overflow: hidden; }
.cs__scroll { position: relative; padding: 3.2em 0 0 1em; -webkit-transition: -webkit-transform .25s ease-out; transition: transform .25s ease-out; }
.cs__head { display: -webkit-box; display: -webkit-flex; display: flex; }
.cs__poster { width: 16.5em; height: 24.75em; margin-right: 2.6em; border-radius: .8em; overflow: hidden; background: #1a2130; -webkit-flex: none; flex: none;
  box-shadow: 0 1.2em 3em rgba(0,0,0,.6); }
.cs__poster img { width: 100%; height: 100%; display: block; -o-object-fit: cover; object-fit: cover; }
.cs__body { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; overflow: hidden; min-width: 0; }
.cs__title { font-size: 2.8em; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; max-height: 2.2em; overflow: hidden; }
.cs__meta { margin-top: .7em; }
.cs__desc { margin-top: .3em; color: #d4dae5; font-size: 1.1em; line-height: 1.42; max-height: 5.7em; overflow: hidden; max-width: 50em; }
.cs__people { margin-top: .7em; color: #8b95a7; font-size: .95em; line-height: 1.4; max-height: 2.8em; overflow: hidden; max-width: 50em; }
.cs .hint { margin-top: .4em; }
.cs__series { margin-top: 1.6em; display: none; }
.cs__series--show { display: block; }
.seasons { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin-bottom: .6em; }
.seasons .tab { margin-bottom: .5em; }
.episodes { overflow: hidden; max-width: 60em; }
.erow { height: 2.9em; line-height: 2.9em; padding: 0 1em; font-size: 1.02em; margin-bottom: .15em; }
.erow small { color: #8b95a7; margin-left: .8em; font-size: .85em; }
.erow--off { color: #636c80; }
.erow__num { display: inline-block; width: 3.4em; color: #8b95a7; font-weight: 600; }
.erow__bar { display: inline-block; width: 4.5em; height: .3em; background: rgba(255,255,255,.25); vertical-align: middle; margin-left: .8em; border-radius: .15em; overflow: hidden; }
.erow--focus .erow__bar { background: rgba(0,0,0,.2); }
.erow__fill { height: 100%; background: #fff; }
.erow--focus .erow__fill { background: #0a0d14; }
.cs__similar { margin-top: 1.6em; padding-bottom: 2em; }
.cs__similar .shelf__title { color: #fff; }

/* ───── настройки ───── */
.settings { position: absolute; left: 7.6em; right: 3em; top: 2.6em; bottom: 1.6em; display: -webkit-box; display: -webkit-flex; display: flex; }
.settings__list { width: 34em; overflow: hidden; }
.settings__side { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; padding-left: 3em; color: #8b95a7; font-size: 1.05em; }
.srow { padding: .7em 1.1em; font-size: 1.05em; margin-bottom: .2em; white-space: normal; }
.srow small { display: block; color: #8b95a7; font-size: .85em; margin-top: .2em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow--head { color: #636c80; font-size: .78em; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 1em 1.1em .3em; }
.srow--danger.srow--focus { background: #ff4a3d; color: #fff; }
.srow--danger.srow--focus small { color: #ffe0dc; }

/* ───── сопряжение: всё по центру экрана ───── */
.pair__brand { font-size: 2.2em; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.pair__brand span { display: inline-block; margin-left: .35em; padding: .08em .4em; border-radius: .3em; border: .09em solid rgba(255,255,255,.55); font-size: .5em; font-weight: 700; letter-spacing: .1em; vertical-align: .35em; }
.pair__site { color: #8b95a7; font-size: 1.05em; margin-top: .3em; }
.pair__card { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; margin-top: 2.4em;
  padding: 2.2em 2.8em; border-radius: 1.4em; background: rgba(255,255,255,.06); border: .08em solid rgba(255,255,255,.1); max-width: 66em; }
.pair__left { text-align: left; padding-right: 3em; min-width: 0; }
.pair__right { -webkit-flex: none; flex: none; text-align: center; }
.pair__title { font-size: 2em; font-weight: 800; letter-spacing: -.02em; margin-bottom: .7em; }
.pair__step { color: #9aa3b5; font-size: 1.05em; margin-top: 1em; }
.pair__url { font-size: 1.5em; font-weight: 600; color: #fff; margin-top: .25em; word-break: break-all; }
.pair__code { display: inline-block; font-size: 3.6em; font-weight: 800; letter-spacing: .14em; color: #fff; margin-top: .25em; padding: .1em .35em .1em .5em; border-radius: .22em;
  background: rgba(0,0,0,.35); border: .04em solid rgba(255,255,255,.2); font-variant-numeric: tabular-nums; }
.pair__status { color: #9aa3b5; font-size: 1em; margin-top: .9em; min-height: 1.3em; }
.pair__qr { width: 17em; height: 17em; background: #fff; border-radius: .9em; padding: .7em; display: block; margin: 0 auto; }
.pair__right .hint { margin-top: .9em; }
.pair__btn { display: inline-block; margin-top: 2.2em; padding: .75em 1.8em; border-radius: 2em; border: .12em solid rgba(255,255,255,.3); color: #dfe4ec; font-size: 1.1em; font-weight: 500; }
.pair__btn--focus { background: #fff; color: #0a0d14; border-color: #fff; }

/* ───── вход с пульта ───── */
.login { width: 42em; text-align: center; }
.login .logo { font-size: 2em; font-weight: 800; letter-spacing: -.02em; margin-bottom: .4em; }
.login__title { color: #9aa3b5; font-size: 1.1em; margin-bottom: 1.2em; }
.login__field { display: -webkit-box; display: -webkit-flex; display: flex; height: 3em; line-height: 3em; margin-bottom: .5em; padding: 0 1em; background: rgba(255,255,255,.07);
  border-radius: .6em; border: .12em solid transparent; text-align: left; }
.login__field--cur { border-color: #fff; background: rgba(255,255,255,.12); }
.login__label { color: #8b95a7; width: 9em; font-size: .95em; }
.login__val { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; color: #fff; font-size: 1.2em; white-space: nowrap; overflow: hidden; }

/* ───── экранная клавиатура ───── */
.kb { display: block; margin-top: 1em; }
.kb__row { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; margin-bottom: .4em; }
.key { width: 2.9em; height: 2.9em; line-height: 2.9em; margin: 0 .2em; text-align: center; border-radius: .5em; background: rgba(255,255,255,.08); color: #eef1f6;
  text-transform: uppercase; font-size: 1.05em; font-weight: 500; }
.key--wide { width: 6.2em; }
.key--w4 { width: 12.8em; }
.key--asis { text-transform: none; }   /* ß: заглавной в шрифтах ТВ может не быть, а text-transform дал бы «SS» */
.key__lang { color: #6f7889; font-weight: 600; letter-spacing: .04em; }
.key__lang--on { color: #fff; font-weight: 800; }
.key__sep { color: #4d5565; margin: 0 .35em; }
.key--focus .key__lang, .key--focus .key__sep { color: #8b93a3; }
.key--focus .key__lang--on { color: #0a0d14; }
.key--go { background: rgba(255,255,255,.18); }
.key--focus { background: #fff; color: #0a0d14; }

/* ───── поиск ───── */
/* 0.6.2: одна колонка потоком — строка запроса, клавиатура, результаты; заголовок «Результаты» не может наехать на клавиатуру (замечание заказчика 20 ноя).
   Клавиатура 12 в ряд, выровнена по левому краю строки запроса: шаг клавиши 3.3em × 1.05 = 3.465em, 12 клавиш = 41.16em = ширина строки запроса (29.4em × 1.4).
   По высоте на экране 45em: 2.2 + 3.64 + .9 + 5 рядов × 3.213 + .5 + заголовок 2.39 + лента 17.22 = 42.9em. */
.search { position: absolute; left: 6.2em; right: 0; top: 2.2em; bottom: 0; padding-left: 1.4em; overflow: hidden; }
.search__q { width: 29.4em; height: 2.6em; line-height: 2.44em; padding: 0 .9em; background: rgba(255,255,255,.08); border-radius: .5em; font-size: 1.4em; font-weight: 500; white-space: nowrap; overflow: hidden;
  border: .08em solid rgba(255,255,255,.15); }
.caret { display: inline-block; width: .08em; height: 1.1em; background: #fff; vertical-align: -.15em; margin-left: .1em; }
.search__ph { color: #636c80; font-size: .7em; font-weight: 400; margin-left: .7em; }
.search .kb { margin-top: .9em; }
.search .kb--rows5 { min-height: 16.1em; }   /* у региональных сайтов место под 5 рядов держится и в английской раскладке (4 ряда) — результаты не прыгают */
.search .kb__row { -webkit-box-pack: start; -webkit-justify-content: flex-start; justify-content: flex-start; margin-bottom: 0; }
.search .key { font-size: 1.05em; height: 2.7em; line-height: 2.7em; margin: 0 .4em .36em 0; }

/* ───── плеер ───── */
#video { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #000; }
/* 0.6.3: настройка «Плеер → совместимый»: почти незаметный фильтр заставляет браузер рисовать видео в составе страницы, а не отдельной аппаратной плоскостью ТВ */
#video.video--compat { -webkit-filter: saturate(1.001); filter: saturate(1.001); }
.osd { position: absolute; left: 0; right: 0; bottom: 0; padding: 4em 4em 2.2em; display: none;
  background: -webkit-linear-gradient(top, rgba(0,0,0,0), rgba(0,0,0,.85)); background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.85)); }
.osd--show { display: block; }
.osd__title { font-size: 1.6em; font-weight: 700; letter-spacing: -.01em; margin-bottom: .7em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.osd__bar { height: .42em; background: rgba(255,255,255,.25); border-radius: .21em; overflow: hidden; }
.osd__fill { height: 100%; width: 0; background: #fff; border-radius: .21em; }
.osd__time { margin-top: .6em; color: #eef1f6; font-size: 1.1em; font-weight: 500; font-variant-numeric: tabular-nums; }
.osd__hint { margin-top: .3em; color: #8b95a7; font-size: .95em; }
.menu { position: absolute; right: 4em; top: 3.5em; width: 22em; background: rgba(10,14,22,.94); border-radius: .9em; padding: .9em; display: none; border: .08em solid rgba(255,255,255,.1); }
.menu--show { display: block; }
.menu__title { color: #8b95a7; font-size: .8em; font-weight: 700; padding: .4em .9em .6em; text-transform: uppercase; letter-spacing: .1em; }
.menu .row { height: 2.8em; line-height: 2.8em; }
.spinner { position: absolute; left: 50%; top: 50%; width: 3.4em; height: 3.4em; margin: -1.7em 0 0 -1.7em; border: .32em solid rgba(255,255,255,.2);
  border-top-color: #fff; border-radius: 50%; display: none; -webkit-animation: spin .9s linear infinite; animation: spin .9s linear infinite; }
.spinner--show { display: block; }
@-webkit-keyframes spin { to { -webkit-transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───── тост ───── */
.toast { position: absolute; left: 50%; bottom: 2.6em; -webkit-transform: translateX(-50%); transform: translateX(-50%); padding: .75em 1.4em;
  background: rgba(20,26,38,.96); border: .08em solid rgba(255,255,255,.18); border-radius: .7em; color: #fff; font-size: 1.1em; display: none; z-index: 30; max-width: 80%;
  box-shadow: 0 .8em 2em rgba(0,0,0,.5); }
.toast--show { display: block; }

/* ───── спортивное событие — широкая карточка (полоса «Топ события» на главной) ───── */
.chip--live { background: #ff4a3d; color: #fff; font-weight: 800; letter-spacing: .06em; }
.card--event { width: 17.4em; margin-right: 1.1em; }
.card--event .card__pic { height: 9.9em; padding: .85em 1em; background: #171e2c;
  background: -webkit-linear-gradient(top, #1c2434, #121825); background: linear-gradient(to bottom, #1c2434, #121825); }
.card--event.card--live .card__pic { box-shadow: inset .32em 0 0 #ff4a3d; }
.card--event.card--live.card--focus .card__pic { box-shadow: inset .32em 0 0 #ff4a3d, 0 0 0 .2em #fff, 0 1em 2.4em rgba(0,0,0,.65); }
.card__ev-top { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-pack: justify; -webkit-justify-content: space-between; justify-content: space-between;
  color: #8b95a7; font-size: .82em; white-space: nowrap; overflow: hidden; }
.card__ev-live { color: #ff4a3d; font-weight: 800; letter-spacing: .06em; }
.card__ev-teams { margin-top: .5em; font-size: 1.08em; font-weight: 700; line-height: 1.25; max-height: 2.5em; overflow: hidden; white-space: normal; color: #fff; padding-right: 5.2em; }
.card__ev-logos { position: absolute; right: .9em; top: 2.9em; }
.card__ev-logos img { width: 2.3em; height: 2.3em; -o-object-fit: contain; object-fit: contain; margin-left: .35em; background: rgba(255,255,255,.07); border-radius: .35em; padding: .2em; vertical-align: top; }
.card__ev-bottom { position: absolute; left: 1em; right: 1em; bottom: .8em; color: #8b95a7; font-size: .82em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card--event .card__cap { color: #8b95a7; }

/* ───── эфир и каналы: строки с логотипом и номером, список каналов и набор номера в плеере ───── */
.row--ch { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; height: 3.3em; line-height: normal; }
.row__num { width: 2.6em; -webkit-flex: none; flex: none; color: #8b95a7; font-weight: 600; font-variant-numeric: tabular-nums; }
.row__logo { width: 2.5em; height: 2.5em; -webkit-flex: none; flex: none; margin-right: .9em; border-radius: .45em; background: rgba(255,255,255,.08); -o-object-fit: contain; object-fit: contain; padding: .2em; }
.row--focus .row__logo { background: rgba(0,0,0,.1); }
.row--focus .row__num { color: #3c4556; }
.row__name { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__name small { margin-left: .6em; }
.chlist { position: absolute; left: 3em; top: 3em; bottom: 3em; width: 30em; background: rgba(10,14,22,.95); border-radius: 1em; padding: 1em; display: none; overflow: hidden;
  border: .08em solid rgba(255,255,255,.1); }
.chlist--show { display: block; }
.chlist .menu__title { padding-bottom: .5em; }
.chnum { position: absolute; right: 3em; top: 2.4em; padding: .2em .7em; border-radius: .4em; background: rgba(10,14,22,.9); color: #fff; font-size: 3em; font-weight: 800;
  font-variant-numeric: tabular-nums; letter-spacing: .08em; display: none; border: .05em solid rgba(255,255,255,.25); }
.chnum--show { display: block; }
.chnum--list { right: auto; left: 50%; top: 40%; -webkit-transform: translateX(-50%); transform: translateX(-50%); z-index: 9; }
.chrow { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; line-height: normal; }
.chrow img { width: 2.1em; height: 2.1em; -webkit-flex: none; flex: none; margin-right: .8em; border-radius: .4em; background: rgba(255,255,255,.08); -o-object-fit: contain; object-fit: contain; padding: .15em; }
.chrow span { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sport__logos { margin-top: .9em; height: 4.4em; }
.sport__logos img { width: 4.2em; height: 4.2em; -o-object-fit: contain; object-fit: contain; margin-right: .7em; border-radius: .6em; background: rgba(255,255,255,.07); padding: .35em; vertical-align: top; }
.sport__logos--empty { display: none; }
.side__user .side__item .side__label { display: block; -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* слабые ТВ (.lite): без тяжёлых переходов */
.lite .card, .lite .rail, .lite .shelves, .lite .cs__scroll, .lite .side { -webkit-transition: none; transition: none; }
