/* AORUS Кино — dark cinema UI, works on TV (remote), phone, desktop.
   Layout: fixed top bar · hero · horizontal rows of posters; title page with backdrop; full-screen player. */
:root {
  --bg: #0e0f12; --bg2: #16181d; --card: #1d2027; --line: #2a2e37;
  --fg: #eef0f3; --muted: #9aa1ad; --dim: #6b7280;
  --accent: #e5a13a; --accent-fg: #1a1203; --ok: #5cc79f; --warn: #e7a948; --bad: #e0685a;
  --focus: #ffffff;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 12px;
  --pad: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 16px; }
body { overflow-x: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }

/* focus: big and obvious for TV remotes */
.f { outline: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.f:focus-visible, .f.focus { box-shadow: 0 0 0 3px var(--focus); } /*fv*/.f.focus { box-shadow: 0 0 0 3px var(--focus); }/*fve*/
/* Рамку фокуса рисуем на постере, а не на всей карточке: иначе белая обводка
   накрывает название и год под картинкой и выглядит криво. */
.poster.f:focus-visible, .poster.f.focus { transform: scale(1.07); box-shadow: none; z-index: 2; } /*fv*/.poster.f.focus { transform: scale(1.07); box-shadow: none; z-index: 2; }/*fve*/
.poster.f:focus-visible img, .poster.f.focus img { box-shadow: 0 0 0 3px var(--focus), 0 12px 32px rgba(0,0,0,.6); } /*fv*/.poster.f.focus img { box-shadow: 0 0 0 3px var(--focus), 0 12px 32px rgba(0,0,0,.6); }/*fve*/

/* top bar */
.bar { position: fixed; /*c66*/top: 0; right: 0; bottom: auto; left: 0; /*c66e*/ inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; gap: 8px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) var(--pad) 12px;
  background: linear-gradient(to bottom, rgba(14,15,18,.95), rgba(14,15,18,0)); }
.logo { font-weight: 800; font-size: 20px; letter-spacing: -.01em; margin-right: 18px; white-space: nowrap; }
.logo b { color: var(--accent); }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
@media (max-width: 760px) { .nav.more { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); } }
.nav .f { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.nav .f.on { color: var(--fg); background: rgba(255,255,255,.1); }
.nav .f:focus-visible, .nav .f.focus { color: var(--fg); background: rgba(255,255,255,.18); box-shadow: none; } /*fv*/.nav .f.focus { color: var(--fg); background: rgba(255,255,255,.18); box-shadow: none; }/*fve*/
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #111; flex: none; }

/* pages */
.page { padding: 76px 0 60px; min-height: 100vh; }
.pad { padding-left: var(--pad); padding-right: var(--pad); }

/* hero */
.hero { position: relative; /*c66*/min-height: 334.8px; /*c66e*/ min-height: min(62vh, 560px); display: flex; align-items: flex-end; margin-top: -76px;
  padding: 120px var(--pad) 40px; background-size: cover; background-position: center top; }
.hero::before { content: ""; position: absolute; /*c66*/top: 0; right: 0; bottom: 0; left: 0; /*c66e*/ inset: 0;
  background: linear-gradient(to top, var(--bg) 2%, rgba(14,15,18,.55) 45%, rgba(14,15,18,.2)),
              linear-gradient(to right, rgba(14,15,18,.85), rgba(14,15,18,0) 60%); }
.hero > * { position: relative; }
.hero-in { max-width: 640px; display: grid; gap: 12px; }
.hero h1 { /*c66*/font-size: 43.2px; /*c66e*/ font-size: clamp(30px, 4.5vw, 54px); line-height: 1.05; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
.meta { color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.meta .rt { color: var(--ok); font-weight: 700; }
.lead { color: #cfd3da; line-height: 1.5; max-width: 62ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.tp .description .lead { -webkit-line-clamp: 5; }
.description.expanded .lead { display: block; -webkit-line-clamp: unset; overflow: visible; }
.description-toggle { color: var(--accent); padding: 10px 0; text-align: left; border-radius: 4px; }
.director-link { color: var(--accent); text-decoration: underline; }
.pr small { font-size: 8px; font-weight: 600; }
.rt small { font-size: 11px; font-weight: 600; }
.external-ratings { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.search { position: relative; }
.search input { padding-right: 54px; }
.search-clear { position: absolute; right: calc(var(--pad) + 8px); top: 14px; width: 40px; height: 40px; border-radius: 10px; color: var(--muted); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-filters { padding-top: 8px; padding-bottom: 8px; }
.search-status { min-height: 32px; }
.search-video-link { padding-top: 20px; padding-bottom: 20px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 700;
  background: rgba(255,255,255,.12); white-space: nowrap; }
.btn svg { width: 20px; height: 20px; }
.btn.main { background: var(--fg); color: #111; }
.btn.small { padding: 9px 14px; font-weight: 600; font-size: 14px; }
.btn.on { color: var(--accent); }
.btn:focus-visible, .btn.focus { box-shadow: 0 0 0 3px var(--accent); } /*fv*/.btn.focus { box-shadow: 0 0 0 3px var(--accent); }/*fve*/

/* rows */
.row { margin-top: 26px; }
.row h2 { font-size: 20px; margin: 0 0 12px; padding: 0 var(--pad); font-weight: 700; }
.strip { display: flex; gap: 14px; overflow-x: auto; overflow-y: visible; padding: 10px var(--pad) 18px; scroll-padding: 0 var(--pad);
  scrollbar-width: none; scroll-behavior: smooth; }
.strip::-webkit-scrollbar { display: none; }
.poster { flex: none; /*c66*/width: 124.8px; /*c66e*/ width: clamp(120px, 13vw, 176px); border-radius: var(--r); background: var(--card); position: relative; }
.poster img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: var(--r); background: var(--card); }
.poster .t { font-size: 14px; font-weight: 600; margin-top: 8px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.poster .y { font-size: 13px; color: var(--dim); margin-top: 2px; }
.badge { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px;
  background: rgba(14,15,18,.85); color: var(--accent); letter-spacing: .02em; }
.badge.ok { color: var(--ok); }
.wide { flex: none; /*c66*/width: 249.6px; /*c66e*/ width: clamp(240px, 26vw, 340px); border-radius: var(--r); background: var(--card); overflow: hidden; }
.wide .img { aspect-ratio: 16/9; background-size: cover; background-position: center; position: relative; }
/* постер вместо кадра: целиком по высоте, по центру; поля по бокам — тёмные, а не обрезанное лицо */
.wide .img.fit { background-size: contain; background-repeat: no-repeat; background-color: #14161a; }
.wide .bar2 { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.2); }
.wide .bar2 i { display: block; height: 100%; background: var(--accent); }
.wide .t { font-weight: 700; margin: 10px 12px 2px; line-height: 1.3; height: 2.6em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.wide .s { color: var(--muted); font-size: 13px; padding: 0 12px 12px; }
.wide.f:focus-visible, .wide.f.focus { box-shadow: 0 0 0 3px var(--focus); transform: scale(1.03); } /*fv*/.wide.f.focus { box-shadow: 0 0 0 3px var(--focus); transform: scale(1.03); }/*fve*/
.wide-clip { overflow: visible; transition: transform .2s ease, box-shadow .2s ease; }
.wide-play { display: block; width: 100%; padding: 0; text-align: left; border-radius: var(--r) var(--r) 0 0; overflow: hidden; }
.wide-clip.card-focus { box-shadow: 0 0 0 3px var(--focus); transform: scale(1.03); }
.wide-clip .f:focus-visible, .wide-clip .f.focus { box-shadow: none; } /*fv*/.wide-clip .f.focus { box-shadow: none; }/*fve*/
.wide-channel { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 5px 12px; font-size: 13px; color: var(--muted); }
.wide-channel span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wide-channel b { font-size: 20px; line-height: 1; color: var(--fg); }
a.wide-channel:hover, a.wide-channel.focus { color: var(--fg); text-decoration: underline; }
.wide-clip .s { padding-top: 2px; }

/* grid (search, genre pages) */
.grid { display: grid; /*c66*/grid-template-columns: repeat(auto-fill, minmax(124.8px, 1fr)); /*c66e*/ grid-template-columns: repeat(auto-fill, minmax(clamp(120px, 13vw, 170px), 1fr)); gap: 22px 14px; padding: 10px var(--pad); }
.grid .poster { width: auto; }

/* title page */
.tp { position: relative; }
.tp-bg { position: absolute; /*c66*/top: -76px; right: 0; bottom: auto; left: 0; /*c66e*/ inset: -76px 0 auto 0; height: 78vh; background-size: cover; background-position: center top; }
.tp-bg::after { content: ""; position: absolute; /*c66*/top: 0; right: 0; bottom: 0; left: 0; /*c66e*/ inset: 0;
  background: linear-gradient(to top, var(--bg) 3%, rgba(14,15,18,.6) 50%, rgba(14,15,18,.35)),
              linear-gradient(to right, rgba(14,15,18,.92) 10%, rgba(14,15,18,0) 70%); }
.tp-in { position: relative; padding: 18vh var(--pad) 0; display: grid; gap: 14px; max-width: 900px; }
.tp h1 { /*c66*/font-size: 38.4px; /*c66e*/ font-size: clamp(28px, 4vw, 50px); margin: 0; line-height: 1.05; letter-spacing: -.02em; }
.tagline { color: var(--accent); font-weight: 600; }
.orig { color: var(--muted); font-size: 15px; margin-top: -8px; }
.state { font-size: 14px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.state.ok { color: var(--ok); } .state.warn { color: var(--warn); } .state.dim { color: var(--muted); }
.people { display: flex; gap: 14px; overflow-x: auto; padding: 8px var(--pad) 12px; scrollbar-width: none; }
.person { flex: none; width: 96px; text-align: center; font-size: 13px; }
.person img, .person .ph { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--card); margin: 0 auto 6px; }
.person .r { color: var(--dim); font-size: 12px; }

/* seasons / episodes */
.seasons { display: flex; gap: 8px; overflow-x: auto; padding: 4px var(--pad) 10px; scrollbar-width: none; }
.seasons .f { padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.08); font-weight: 600; white-space: nowrap; }
.seasons .f.on { background: var(--fg); color: #111; }
.eps { display: grid; gap: 10px; padding: 6px var(--pad) 10px; }
.ep { display: grid; /*c66*/grid-template-columns: 172.8px 1fr; /*c66e*/ grid-template-columns: clamp(120px, 18vw, 220px) 1fr; gap: 14px; align-items: center; padding: 8px; border-radius: var(--r); background: var(--bg2); }
.ep .img { aspect-ratio: 16/9; border-radius: 8px; background: var(--card) center/cover; position: relative; overflow: hidden; }
.ep .img .bar2 { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.2); }
.ep .img .bar2 i { display: block; height: 100%; background: var(--accent); }
.ep .n { font-weight: 700; }
.ep .d { color: var(--muted); font-size: 13px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep.soon { opacity: .5; }
.ep .w { color: var(--ok); font-size: 13px; font-weight: 600; }

/* search */
.search { display: flex; gap: 10px; padding: 8px var(--pad) 4px; }
.search input { flex: 1; min-width: 0; font: inherit; font-size: 20px; padding: 14px 18px; border-radius: 12px; border: 2px solid var(--line);
  background: var(--bg2); color: var(--fg); outline: none; }
.search input:focus { border-color: var(--accent); }
.empty { color: var(--muted); padding: 30px var(--pad); }
/* экран не загрузился: объяснение и «Повторить» — не тупик, с пульта тоже */
.empty.fail { padding: 72px var(--pad); max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.empty.fail p { margin: 0; font-size: 17px; line-height: 1.45; }
.empty.fail .btn { background: var(--fg); color: #111; }
.empty.fail .btn:disabled { opacity: .55; }

/* profiles */
.prof { min-height: 100vh; display: grid; place-content: center; gap: 30px; text-align: center; padding: 30px var(--pad); }
.prof h1 { margin: 0; /*c66*/font-size: 38.4px; /*c66e*/ font-size: clamp(26px, 4vw, 40px); }
.prof-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.prof-item { display: grid; gap: 10px; justify-items: center; font-weight: 600; padding: 8px; border-radius: 16px; }
.prof-item .avatar { width: 110px; height: 110px; font-size: 42px; border-radius: 22px; }
.prof-item .k { font-size: 12px; color: var(--muted); font-weight: 500; }

/* dialogs */
.lw { position: fixed; /*c66*/top: 0; right: 0; bottom: 0; left: 0; /*c66e*/ inset: 0; z-index: 70; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px;
  touch-action: none; overscroll-behavior: none; }
.lw-card { background: #fff; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; /*c66*/width: 440px; /*c66e*/ width: min(440px, 100%); max-height: 100%;
  box-shadow: 0 24px 80px rgba(0,0,0,.55); }
.lw-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #f1f3f4; color: #202124; border-bottom: 1px solid #dadce0; }
.lw-x { width: 34px; height: 34px; padding: 0; border-radius: 50%; background: none; color: #5f6368; font-size: 17px; display: grid; place-items: center; flex: 0 0 auto; }
.lw-addr { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 7px 12px; font-size: 14px; }
.lw-lock { width: 14px; height: 14px; color: #188038; flex: 0 0 auto; } .lw-host { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #202124; }
.lw-done { background: none; color: #1a73e8; font-weight: 600; font-size: 15px; padding: 6px 8px; flex: 0 0 auto; }
.lw-done[hidden] { display: none; }
.lw-screen { position: relative; background: #fff; aspect-ratio: 2 / 3; width: 100%; max-height: calc(100dvh - 82px); overflow: hidden; }
.lw-screen > div { overflow: hidden !important; }
.lw-cover { position: absolute; /*c66*/top: 0; right: 0; bottom: 0; left: 0; /*c66e*/ inset: 0; z-index: 2; background: #fff; color: #5f6368; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; }
.lw-cover .spin { border-color: #dadce0; border-top-color: #1a73e8; }
.lw-in { position: fixed; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; font-size: 16px; border: 0; padding: 0; }
@media (max-width: 520px) { .lw { padding: 0; } .lw-card { width: 100%; height: 100%; border-radius: 0; } .lw-screen { flex: 1; max-height: none; aspect-ratio: auto; } }
.lw-qr { background: var(--bg2); color: var(--fg); position: relative; padding: 34px 40px 30px; display: grid; justify-items: center; gap: 16px; text-align: center; /*c66*/width: 560px; /*c66e*/ width: min(560px, 100%); }
.lw-qr .lw-x { position: absolute; top: 14px; right: 14px; color: var(--fg); background: rgba(255,255,255,.1); }
.lw-qr h2 { margin: 0; font-size: 28px; }
.lw-qrimg { width: 300px; height: 300px; background: #fff; border-radius: 16px; display: grid; place-items: center; padding: 10px; }
.lw-qrimg svg { width: 100%; height: 100%; }
.lw-qr p { margin: 0; font-size: 18px; line-height: 1.45; color: #d6d8de; max-width: 440px; }
.lw-qr small { color: var(--muted); font-size: 14px; }
.dlg-back { position: fixed; /*c66*/top: 0; right: 0; bottom: 0; left: 0; /*c66e*/ inset: 0; z-index: 60; background: rgba(0,0,0,.65); display: grid; place-items: center; padding: 20px; }
.dlg { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; /*c66*/width: 560px; /*c66e*/ width: min(560px, 100%); max-height: 86vh; overflow: auto; padding: 22px; display: grid; gap: 14px; }
.dlg h3 { margin: 0; font-size: 20px; line-height: 1.3; }
.dlg p { margin: 0; color: var(--muted); line-height: 1.5; }
.opts { display: grid; gap: 8px; }
.opt { text-align: left; padding: 13px 16px; border-radius: 10px; background: rgba(255,255,255,.06); display: grid; gap: 3px; }
.opt small { color: var(--muted); font-size: 13px; }
.opt.on { color: var(--accent); }
.opt:focus-visible, .opt.focus { background: rgba(255,255,255,.14); box-shadow: 0 0 0 2px var(--accent); } /*fv*/.opt.focus { background: rgba(255,255,255,.14); box-shadow: 0 0 0 2px var(--accent); }/*fve*/
.dlg input[type=text] { font: inherit; font-size: 18px; padding: 12px 14px; border-radius: 10px; border: 2px solid var(--line); background: var(--bg); color: var(--fg); outline: none; }
.dlg input[type=text]:focus { border-color: var(--accent); }

/* preparing overlay */
.prep { position: fixed; /*c66*/top: 0; right: 0; bottom: 0; left: 0; /*c66e*/ inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(8,9,11,.9); text-align: center; padding: 24px; }
.prep .box { display: grid; gap: 18px; justify-items: center; max-width: 520px; }
.prep h2 { margin: 0; font-size: 26px; }
.prep p { margin: 0; color: var(--muted); min-height: 1.5em; line-height: 1.5; }
.spin { width: 54px; height: 54px; border-radius: 50%; border: 4px solid rgba(255,255,255,.15); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 3s; } .f { transition: none; } }

/* player */
.player { position: fixed; /*c66*/top: 0; right: 0; bottom: 0; left: 0; /*c66e*/ inset: 0; z-index: 40; background: #000; }
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
/* айфон: двойной тап (перемотка) не должен увеличивать страницу; плеер — ровно по видимому экрану, кнопки не под «чёлкой» */
.player { touch-action: manipulation; -webkit-text-size-adjust: 100%; width: 100%; height: 100%; }
@supports (height: 100dvh) { .player { height: 100dvh; } }
.pl-top, .pl-bottom { padding-left: max(var(--pad), env(safe-area-inset-left, 0px)); padding-right: max(var(--pad), env(safe-area-inset-right, 0px)); }
html.plo, html.plo body { overflow: hidden; overscroll-behavior: none; }
.pl-ui { position: absolute; /*c66*/top: 0; right: 0; bottom: 0; left: 0; /*c66e*/ inset: 0; display: flex; flex-direction: column; justify-content: space-between; transition: opacity .25s;
  background: linear-gradient(to bottom, rgba(0,0,0,.7), rgba(0,0,0,0) 22%, rgba(0,0,0,0) 62%, rgba(0,0,0,.85)); }
.pl-ui.off { opacity: 0; pointer-events: none; }
.pl-top { display: flex; align-items: center; gap: 14px; padding: calc(env(safe-area-inset-top, 0px) + 16px) var(--pad) 0; }
.pl-title { font-weight: 700; font-size: 20px; }
.pl-sub { color: var(--muted); font-size: 14px; }
.pl-bottom { padding: 0 var(--pad) calc(env(safe-area-inset-bottom, 0px) + 22px); display: grid; gap: 12px; }
.seek { position: relative; height: 22px; cursor: pointer; display: flex; align-items: center; }
.seek .tr { position: absolute; left: 0; right: 0; height: 5px; border-radius: 3px; background: rgba(255,255,255,.25); }
.seek .bf { position: absolute; left: 0; height: 5px; border-radius: 3px; background: rgba(255,255,255,.4); }
.seek .pg { position: absolute; left: 0; height: 5px; border-radius: 3px; background: var(--accent); }
.seek .kn { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--fg); transform: translateX(-50%); }
.seek.f:focus-visible .tr, .seek.focus .tr { height: 8px; } /*fv*/.seek.focus .tr { height: 8px; }/*fve*/
.pl-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pl-row .tm { color: #ddd; font-variant-numeric: tabular-nums; font-size: 15px; margin-right: auto; }
.pbtn { padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,.12); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.pbtn svg { width: 22px; height: 22px; }
.pbtn:focus-visible, .pbtn.focus { background: rgba(255,255,255,.28); box-shadow: 0 0 0 2px var(--accent); } /*fv*/.pbtn.focus { background: rgba(255,255,255,.28); box-shadow: 0 0 0 2px var(--accent); }/*fve*/
.next-card { position: absolute; right: var(--pad); bottom: 120px; background: rgba(22,24,29,.95); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 10px; min-width: 260px; }
.next-card .n { font-weight: 700; }
.next-card.still { right: 50%; transform: translateX(50%); bottom: 40%; max-width: min(460px, calc(100% - 32px)); text-align: center; }
.next-card.still .btns { justify-content: center; } .next-card .nc-never { background: none; color: var(--muted); font-weight: 600; justify-self: center; }
/* экран паузы (как в Netflix): кнопки уходят, слева — что смотрим */
.pinfo-box { display: none; position: absolute; left: var(--pad); bottom: 14%; /*c66*/max-width: 620px; /*c66e*/ max-width: min(620px, 80%); pointer-events: none; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.player.pinfo .pinfo-box { display: block; }
.player.pinfo .pl-ui { opacity: 0; }
.player.pinfo::after { content: ""; position: absolute; /*c66*/top: 0; right: 0; bottom: 0; left: 0; /*c66e*/ inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.25) 70%); pointer-events: none; }
.pinfo-box { z-index: 3; }
.pi-k { color: var(--muted); font-size: 15px; }
.pi-t { /*c66*/font-size: 38.4px; /*c66e*/ font-size: clamp(26px, 4vw, 44px); font-weight: 800; margin: 4px 0 6px; line-height: 1.1; }
.pi-s { font-weight: 700; margin-bottom: 8px; }
.pi-d { color: #d6d9de; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pl-wait { position: absolute; /*c66*/top: 0; right: 0; bottom: 0; left: 0; /*c66e*/ inset: 0; display: grid; place-items: center; pointer-events: none; }
.pl-menu { position: absolute; right: var(--pad); bottom: 110px; width: min(420px, calc(100% - 32px)); max-height: 60vh; overflow: auto;
  background: rgba(22,24,29,.97); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 6px; }
.pl-menu h4 { margin: 4px 6px 6px; font-size: 15px; color: var(--muted); }
video::cue { background: rgba(0,0,0,.6); font-family: var(--font); font-size: 1.1em; }

/* toast */
#toast { position: fixed; left: 50%; /*c66*/bottom: 28px; /*c66e*/ bottom: calc(env(safe-area-inset-bottom, 0px) + 28px); transform: translateX(-50%); z-index: 90;
  background: rgba(30,33,40,.97); border: 1px solid var(--line); padding: 12px 18px; border-radius: 12px; font-weight: 600; max-width: 90vw; text-align: center; }

@media (max-width: 640px) {
  .logo { font-size: 17px; margin-right: 6px; }
  .hero { min-height: 56vh; }
  .ep { grid-template-columns: 120px 1fr; }
  .tp-in { padding-top: 22vh; }
  .pl-row .pbtn span { display: none; }
}

/* ---- v2: шапка с поиском и настройками, нижнее меню на телефоне ---- */
.ibtn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); flex: none; }
.ibtn svg { width: 22px; height: 22px; }
.ibtn.on, .ibtn:focus-visible, .ibtn.focus { color: var(--fg); background: rgba(255,255,255,.14); box-shadow: none; } /*fv*/.ibtn.on, .ibtn.focus { color: var(--fg); background: rgba(255,255,255,.14); box-shadow: none; }/*fve*/
.dlg p { white-space: pre-line; }

/* настройки */
.settings { display: grid; gap: 10px; max-width: 760px; }
.settings h2 { margin: 10px 0 0; font-size: 28px; }
.settings h3 { margin: 18px 0 2px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); font-weight: 700; }
.row2 { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.row2 b { color: var(--accent); font-weight: 600; min-width: 0; max-width: 55%; text-align: right; /*c66*/word-break: break-word; /*c66e*/ overflow-wrap: anywhere; }   /* длинное — переносом, не за край */
.row2 > span { flex: 0 1 auto; min-width: 0; }
.opt, .settings { min-width: 0; } .settings > * { max-width: 100%; }   /* длинное значение справа не растягивает настройки за край экрана */
.settings .note { color: var(--muted); line-height: 1.6; margin: 14px 0 0; font-size: 14px; }

/* интернет-видео */
.grid.clips { /*c66*/grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); /*c66e*/ grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.clip { text-align: left; border-radius: var(--r); display: block; padding: 0 0 6px; }
.clip .img { aspect-ratio: 16/9; border-radius: var(--r); background: var(--card) center/cover; position: relative; overflow: hidden; }
.clip .dur, .clip .srcb { position: absolute; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,.78); font-size: 12px; font-weight: 600; }
.clip .dur { right: 8px; font-variant-numeric: tabular-nums; }
.clip .srcb { left: 8px; color: var(--muted); }
.clip .t { font-weight: 600; font-size: 15px; line-height: 1.3; margin-top: 9px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clip .y { color: var(--muted); font-size: 13px; margin-top: 4px; }
.clip.f:focus-visible, .clip.f.focus { box-shadow: 0 0 0 3px var(--focus); } /*fv*/.clip.f.focus { box-shadow: 0 0 0 3px var(--focus); }/*fve*/

/* плеер v2 */
.player.nocursor { cursor: none; }
.pl-names { min-width: 0; }
.pl-title, .pl-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-mid { flex: 1; display: flex; align-items: center; justify-content: center; /*c66*/gap: 86.4px; /*c66e*/ gap: clamp(28px, 9vw, 90px); }
.pbig { width: 64px; height: 64px; border-radius: 50%; background: rgba(0,0,0,.45); display: grid; place-items: center; }
.pbig.main { width: 84px; height: 84px; }
.pbig svg { width: 34px; height: 34px; }
.pbig.main svg { width: 46px; height: 46px; }
@media (hover: hover) { .pbig:not(.main) { display: none; } .pbig.main { opacity: 0; pointer-events: none; } }
.pl-bubble { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); z-index: 3; background: rgba(0,0,0,.72); padding: 10px 18px;
  border-radius: 999px; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; pointer-events: none; white-space: nowrap; }
.seek { touch-action: none; }
.seek .tip { position: absolute; bottom: 26px; transform: translateX(-50%); background: rgba(0,0,0,.85); padding: 4px 9px; border-radius: 7px;
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none; }
.seek:hover .tr, .seek:hover .bf, .seek:hover .pg { height: 8px; }
.pl-row { row-gap: 8px; }
.vol { width: 90px; accent-color: var(--accent); }
@media (hover: none) { .vol, .vol-b, .pl-row [data-a=rw], .pl-row [data-a=ff], .pl-row [data-a=play] { display: none !important; } }
.pl-menu.pl-wide { width: min(520px, calc(100% - 32px)); /*c66*/max-height: 388.8px; /*c66e*/ max-height: min(72vh, 640px); top: auto; }
/* серии в плеере — шторка снизу на всю ширину, как в Иви (у карточек роликов есть класс .wide — поэтому у меню pl-wide) */
.pl-menu.eps-sheet { left: 0; right: 0; bottom: 0; width: auto; max-height: none; display: block; overflow: hidden; border: 0; border-top: 1px solid var(--line);
  border-radius: 16px 16px 0 0; padding: 14px var(--pad) 18px; background: #0e0f12; }
.es-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.es-seasons { display: flex; gap: 8px; overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: none; }
.es-seasons::-webkit-scrollbar, .es-list::-webkit-scrollbar { display: none; }
.es-ttl { font-weight: 700; font-size: 17px; }
.es-s { padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--fg); font-weight: 600; white-space: nowrap; flex: none; }
.es-s.on { background: var(--fg); color: #111; }
.es-list { display: flex; align-items: flex-start; gap: 12px; overflow-x: auto; padding: 3px 3px 4px; scroll-snap-type: x proximity; scrollbar-width: none; }
.es-card { flex: 0 0 236px; text-align: left; color: var(--fg); background: none; padding: 0; scroll-snap-align: center; display: block; }
.es-img { position: relative; aspect-ratio: 16/9; border-radius: 10px; background: var(--card) center/cover; overflow: hidden; }
.es-img.nostill::before { content: ""; position: absolute; /*c66*/top: 0; right: 0; bottom: 0; left: 0; /*c66e*/ inset: 0; background: rgba(14,15,18,.72); }
.es-img .epn { position: absolute; /*c66*/top: 0; right: 0; bottom: 0; left: 0; /*c66e*/ inset: 0; display: grid; place-items: center; font-size: 34px; font-weight: 800; color: rgba(255,255,255,.85); }
.es-badge { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; background: var(--accent); color: var(--accent-fg); }
.es-badge.ok { background: rgba(0,0,0,.65); color: var(--ok); }
.es-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.25); }
.es-bar i { display: block; height: 100%; background: var(--accent); }
.es-card.now .es-img { box-shadow: 0 0 0 2px var(--accent); }
.es-card:focus-visible .es-img, .es-card.focus .es-img { box-shadow: 0 0 0 3px var(--focus); } /*fv*/.es-card.focus .es-img { box-shadow: 0 0 0 3px var(--focus); }/*fve*/
.es-card:focus-visible, .es-card.focus { box-shadow: none; outline: none; background: none; } /*fv*/.es-card.focus { box-shadow: none; outline: none; background: none; }/*fve*/
.es-n { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.es-card.now .es-n { color: var(--accent); }
.es-t { margin-top: 2px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.es-d { margin-top: 4px; font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.es-card.soon { opacity: .5; }
.es-card.sk .es-img { background: var(--card); }
.es-list .empty { padding: 24px 0; color: var(--muted); }
@media (orientation: portrait) and (max-width: 700px) {      /* вертикальный телефон — список во всю ширину */
  .pl-menu.eps-sheet { max-height: 78vh; display: flex; flex-direction: column; padding: 12px 12px 16px; }
  .es-list { flex-direction: column; overflow-x: hidden; overflow-y: auto; scroll-snap-type: none; gap: 10px; }
  .es-card { flex: none; display: grid; grid-template-columns: 136px 1fr; column-gap: 12px; align-items: start; }
  .es-card .es-img { grid-row: 1 / span 3; }
  .es-n { margin-top: 0; }
}
html.tv .es-card { flex-basis: 200px; }
html.tv .es-card.f.focus { box-shadow: none; }               /* выделение — рамкой кадра, а не прямоугольником вокруг карточки с текстом */
.ep.now { background: rgba(229,161,58,.14); }
.ep.now .w { color: var(--accent); }
.next-card { z-index: 4; }
.player.cue-s video::cue { font-size: .85em; }
.player.cue-m video::cue { font-size: 1.1em; }
.player.cue-l video::cue { font-size: 1.5em; }
.player.sub-white video::cue { color: #fff; text-shadow: 0 0 4px #000; }
.player.sub-yellow video::cue { color: #ff0; text-shadow: 0 0 4px #000; }
.player.sub-cyan video::cue { color: #0ff; text-shadow: 0 0 4px #000; }
.player.sub-red video::cue { color: #f55; text-shadow: 0 0 4px #000; }

@media (max-width: 760px) {
  .bar { flex-wrap: wrap; row-gap: 0; padding-bottom: 4px; background: rgba(14,15,18,.92); }
  .bar .logo { margin-right: auto; }
  .nav { order: 5; flex: 1 0 100%; margin: 2px calc(var(--pad) * -1) 0; padding: 4px var(--pad) 6px; gap: 2px; }
  .nav .f { padding: 8px 14px; font-size: 15px; }
  .page { padding-top: 112px; }
  .hero { margin-top: -112px; }
  .pl-menu, .pl-menu.pl-wide { left: 8px; right: 8px; width: auto; bottom: 8px; max-height: 70vh; z-index: 5; }
  .pl-menu.eps-sheet { left: 0; right: 0; bottom: 0; }
  .pl-row .pbtn { padding: 9px 11px; }
}

/* крестик у меню и диалогов, крупный ползунок для пальца */
.pl-menu h4, .dlg h3 { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.x { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); flex: none; font-size: 16px; color: var(--fg); }
.pl-menu { z-index: 5; }
@media (hover: none) {
  .seek { height: 40px; }
  .seek .kn { width: 22px; height: 22px; }
  .seek .tr, .seek .bf, .seek .pg { height: 6px; }
  .seek .tip { bottom: 40px; font-size: 16px; padding: 6px 12px; }
}

.nav .sm { display: none; }
.player:has(.pl-wait:not([hidden])) .pbig.main { visibility: hidden; }
@media (max-width: 760px) {
  .nav .lg { display: none; } .nav .sm { display: inline; }
}
/* фон карточки не должен перекрывать блоки под ней (сезоны, актёры) */
.page .row, .page .search, .page .seasons, .page .grid, .page .empty { position: relative; z-index: 1; }
.tp { padding-bottom: 8px; }

/* сенсорный экран: без рамок фокуса */
body.touch .f.focus, body.touch .f:focus-visible { box-shadow: none; } /*fv*/body.touch .f.focus { box-shadow: none; }/*fve*/
body.touch .poster.f.focus, body.touch .poster.f:focus-visible { transform: none; } /*fv*/body.touch .poster.f.focus { transform: none; }/*fve*/
body.touch .opt.focus, body.touch .opt:focus-visible { background: rgba(255,255,255,.06); } /*fv*/body.touch .opt.focus { background: rgba(255,255,255,.06); }/*fve*/
body.touch .btn.main.focus { box-shadow: none; }
.sug { padding-top: 6px; flex-wrap: wrap; overflow: visible; }

@media (max-width: 760px) {
  .nav { gap: 0; }
  .nav .f { padding: 8px 10px; font-size: 14px; }
  .tp-bg { /*c66*/top: -112px; right: 0; bottom: auto; left: 0; /*c66e*/ inset: -112px 0 auto 0; }
  .tp .btns .btn { flex: 1 1 42%; justify-content: center; padding: 11px 12px; }
  .tp .btns .btn.main { flex: 1 1 100%; }
  .tp .btns .btn svg { flex: none; }
}

/* видео из интернета: полки, каналы */
.strip.clips .clip { flex: none; /*c66*/width: 230.4px; /*c66e*/ width: clamp(230px, 24vw, 300px); }
.strip.chans { gap: 18px; }
.row h2 small { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 12px; }
.clip .newb, .clip .seenb { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.clip .newb { background: var(--accent); color: var(--accent-fg); }
.clip .seenb { background: rgba(0,0,0,.72); color: var(--muted); font-weight: 600; }
.chan { flex: none; width: 150px; display: grid; gap: 6px; justify-items: center; text-align: center; }
.cav { width: 92px; height: 92px; border-radius: 50%; background: var(--card); display: grid; place-items: center; overflow: hidden; font-size: 34px; font-weight: 700; color: var(--muted); }
.cav img { width: 100%; height: 100%; object-fit: cover; }
.cav.big { width: 112px; height: 112px; flex: none; }
.cn { font-weight: 600; font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cs { color: var(--muted); font-size: 12px; }
.chan .btn.small, .btn.small { padding: 7px 14px; font-size: 13px; }
.chan .btn.on { background: rgba(92,199,159,.18); color: var(--ok); }
.chanhead { display: flex; gap: 22px; align-items: center; padding-top: 12px; padding-bottom: 8px; }
.chanhead h1 { margin: 0 0 4px; /*c66*/font-size: 32.6px; /*c66e*/ font-size: clamp(24px, 3.4vw, 40px); }
.hint { color: var(--muted); line-height: 1.55; padding-top: 14px; padding-bottom: 6px; max-width: 70ch; }
.hint b { color: var(--fg); }
.cav { position: relative; } .cav img { position: absolute; /*c66*/top: 0; right: 0; bottom: 0; left: 0; /*c66e*/ inset: 0; }

/* ТВ */
.tvgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.tvc { position: relative; }
.tvbtn { width: 100%; display: grid; gap: 10px; justify-items: center; padding: 16px 10px 12px; border-radius: var(--r); background: var(--card); text-align: center; }
.tvbtn .lg { width: 84px; height: 84px; border-radius: 18px; background: #fff; display: grid; place-items: center; overflow: hidden; position: relative; }
.tvbtn .lg b { color: #333; font-size: 26px; }
.tvbtn .lg img { position: absolute; /*c66*/top: 0; right: 0; bottom: 0; left: 0; /*c66e*/ inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8px; background: #fff; }
.tvbtn .nm { font-weight: 600; font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.star { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.35); display: grid; place-items: center; color: var(--muted); }
.star svg { width: 18px; height: 18px; }
.star.on { color: var(--accent); }
@media (max-width: 760px) { .nav .f { padding: 8px 8px; } .tvgrid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; } .tvbtn .lg { width: 68px; height: 68px; } }

/* карточка ролика с кнопкой подписки и ссылкой на канал */
.clipw { position: relative; }
.strip.clips .clipw { flex: none; /*c66*/width: 230.4px; /*c66e*/ width: clamp(230px, 24vw, 300px); }
.clipw .clip { width: 100%; }
.clipw .by { display: block; margin: 0 0 6px 2px; font-size: 13px; color: var(--muted); font-weight: 600; padding: 3px 4px; border-radius: 6px; width: fit-content; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clipw a.by:hover, .clipw a.by.focus { color: var(--fg); background: rgba(255,255,255,.08); }
.byrow { display: flex; align-items: center; gap: 6px; min-width: 0; margin: 0 0 6px; }
.byrow .by { margin: 0; flex: 0 1 auto; min-width: 0; }
.subq { flex: 0 0 auto; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--fg); font-size: 12px; font-weight: 600; line-height: 24px; white-space: nowrap; }
.subq.on { background: rgba(92,199,159,.16); color: var(--ok); }
.subq.f:focus-visible, .subq.f.focus { box-shadow: 0 0 0 3px var(--focus); } /*fv*/.subq.f.focus { box-shadow: 0 0 0 3px var(--focus); }/*fve*/

/* плеер: меньше визуального шума */
.pl-row .pbtn span { display: none; }
@media (hover: hover) and (min-width: 1100px) { .pl-row .pbtn span { display: inline; } }
.pl-row { gap: 6px; }
.pl-row .pbtn { padding: 10px 12px; background: rgba(255,255,255,.1); }
.pl-ui { background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,0) 18%, rgba(0,0,0,0) 65%, rgba(0,0,0,.8)); }
.pl-sub { font-size: 13px; opacity: .85; }
.skipb { position: absolute; right: var(--pad); bottom: 132px; z-index: 3; padding: 11px 18px; border-radius: 10px; background: rgba(20,22,27,.88); border: 1px solid rgba(255,255,255,.25); font-weight: 700; }
.skipb.focus, .skipb:focus-visible { box-shadow: 0 0 0 3px var(--focus); } /*fv*/.skipb.focus { box-shadow: 0 0 0 3px var(--focus); }/*fve*/
.ep .img.nostill { filter: none; position: relative; }
.ep .img.nostill::before { content: ""; position: absolute; /*c66*/top: 0; right: 0; bottom: 0; left: 0; /*c66e*/ inset: 0; background: rgba(14,15,18,.72); backdrop-filter: blur(3px); }
.ep .img .epn { position: absolute; /*c66*/top: 0; right: 0; bottom: 0; left: 0; /*c66e*/ inset: 0; display: grid; place-items: center; font-size: 34px; font-weight: 800; color: rgba(255,255,255,.85); z-index: 1; }

/* «Пропустить заставку» — компактная, над панелью, не закрывает полосу перемотки */
.skipb { bottom: 28px; padding: 8px 14px; font-size: 14px; border-radius: 999px; font-weight: 600; transition: bottom .2s; }
/* вертикальный телефон: один ряд — время, серии, следующая, настройки, во весь экран */
@media (orientation: portrait) and (max-width: 700px) {
  .pl-row { flex-wrap: nowrap; gap: 6px; }
  .pl-row [data-a=voice], .pl-row [data-a=subs], .pl-row [data-a=pip] { display: none !important; }
  .pl-top .pl-pip:not([hidden]) { display: inline-flex; margin-left: auto; }
  .pl-row .pbtn { padding: 9px 10px; }
  .pl-row .tm { font-size: 14px; white-space: nowrap; }
}
/* низкий экран (телефон в горизонтали): меню то же и там же, что в вертикали — снизу во всю ширину.
   Телевизор (960×540) исключаем по классу html.tv, у него своё меню. */
@media (max-height: 560px) {
  html:not(.tv) .pl-menu, html:not(.tv) .pl-menu.pl-wide { left: 8px; right: 8px; width: auto; bottom: 8px; max-height: 70vh; z-index: 5; }
  html:not(.tv) .pl-menu.eps-sheet { left: 0; right: 0; bottom: 0; }
  /* в горизонтали пункты в две колонки: иначе девять настроек не влезают по высоте */
  html:not(.tv) .pl-menu:not(.eps-sheet) .opts { grid-template-columns: 1fr 1fr; }
}
/* пункт меню плеера — всегда одна строка: название слева, пояснение справа, длинное обрезается */
.pl-menu .opts { display: grid; gap: 6px; }
.pl-menu .opt { display: flex; align-items: baseline; gap: 10px; padding: 10px 14px; }
.pl-menu .opt .t { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-menu .opt small { margin-left: auto; min-width: 0; max-width: 58%; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* карточка «другая версия» после смены источника: фактические длительности и возврат */
.pl-note { position: absolute; left: var(--pad); top: 64px; z-index: 4; display: grid; gap: 8px; max-width: min(420px, calc(100% - 32px));
  padding: 12px 14px; background: rgba(22,24,29,.95); border: 1px solid var(--line); border-radius: 14px; }
.pl-note .n { font-weight: 700; }
.pl-note .btns { display: flex; flex-wrap: wrap; gap: 8px; }
@media (orientation: portrait) and (max-width: 700px) { .pl-note { top: 56px; } }

/* переход между сериями: чёрный экран, как пауза между кадрами; подпись и кнопка — только если запуск затянулся */
.prep.quick { background: #000; }
.prep.quick .box { opacity: 0; animation: prepin .3s 1.1s forwards; }
@keyframes prepin { to { opacity: 1; } }
video { background: #000; }

/* окно «Что вы смотрите?» */
.dlg-sub { margin: -4px 0 12px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.opts.secs { display: grid; gap: 8px; margin-bottom: 14px; }
.opt.chk { display: flex; align-items: center; gap: 12px; }
.opt.chk .box { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--muted); display: inline-grid; place-items: center; font-size: 14px; line-height: 1; flex: none; }
.opt.chk.on .box { background: var(--accent); border-color: var(--accent); color: #111; font-weight: 800; }
.opt.main { background: var(--accent); color: #111; font-weight: 700; text-align: center; }

/* телефон: все вкладки умещаются в строку; длинные кнопки не растягивают страницу */
.btn { max-width: 100%; }
@media (max-width: 480px) { .nav .f { padding: 8px 8px; font-size: 14.5px; } .nav { gap: 0; } }
.tvc, .tvbtn { min-width: 0; max-width: 100%; }
.tvbtn .nm { /*c66*/word-break: break-word; /*c66e*/ overflow-wrap: anywhere; max-width: 100%; }
.tvgrid { /*c66*/grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /*c66e*/ grid-template-columns: repeat(auto-fill, minmax(min(120px, 100%), 1fr)); }
.page { overflow-x: clip; }

.bar.solid { background: rgba(14,15,18,.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
@media (max-width: 440px) { .nav .f { padding: 8px 6px; font-size: 14px; } }

/* история поиска */
.sh-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 6px; }
.sh-head h2 { margin: 0; font-size: 18px; }
.sh-list { display: grid; gap: 6px; }
.sh-item { display: flex; align-items: stretch; gap: 6px; }
.sh-q { flex: 1; text-align: left; padding: 12px 14px; border-radius: 12px; background: var(--card); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-x { width: 44px; border-radius: 12px; background: var(--card); color: var(--muted); }

/* карусель наверху главной */
.hc { position: relative; margin-top: -76px; }
.hc .hero { margin-top: 0; flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.hc-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.hc-track::-webkit-scrollbar { display: none; }
.hc-dots { position: absolute; left: var(--pad); bottom: 10px; display: flex; z-index: 3; }
.hc-dots button { width: 30px; height: 26px; padding: 0; background: none; position: relative; }
.hc-dots button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 4px; background: rgba(255,255,255,.4); transition: width .25s, margin .25s, background .25s; }
.hc-dots button.on::after { width: 24px; margin-left: -12px; background: #fff; }
@media (max-width: 760px) { .hc { margin-top: -112px; } .hc .hero { margin-top: 0; } }
/* сердечко «в избранное» на постере */
.pfav { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(14,15,18,.62); color: #fff; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .15s; cursor: pointer; z-index: 2; }
.pfav svg { width: 16px; height: 16px; }
.pfav.on { opacity: 1; color: var(--accent); }
.poster:hover .pfav, .poster:focus-visible .pfav, .poster.focus .pfav { opacity: 1; } /*fv*/.poster:hover .pfav, .poster.focus .pfav { opacity: 1; }/*fve*/
body.touch .pfav { opacity: .9; }
body.touch .pfav.on { opacity: 1; }

/* рейтинг на постере */
.pr { position: absolute; top: 6px; left: 6px; z-index: 2; padding: 2px 7px; border-radius: 6px; font-size: 12px; font-weight: 800; line-height: 1.5; color: #fff; letter-spacing: .01em; }
.pr.hi { background: #2c9a5b; } .pr.mid { background: #6b7280; } .pr.lo { background: #b0443a; }
/* топ-10: большие цифры, как у Netflix и Кинопоиска */
.topc { flex: none; display: flex; align-items: flex-end; /*c66*/width: 170px; /*c66e*/ width: clamp(170px, 17vw, 240px); position: relative; }
.topc .num { /*c66*/font-size: 100px; /*c66e*/ font-size: clamp(100px, 10vw, 150px); font-weight: 800; line-height: .78; letter-spacing: -.06em; color: #0e0f12;
  -webkit-text-stroke: 3px rgba(255,255,255,.55); margin-right: -.12em; flex: none; z-index: 0; user-select: none; }
.topc .tp-img { position: relative; z-index: 1; /*c66*/width: 96px; /*c66e*/ width: clamp(96px, 9.5vw, 138px); flex: none; }
.topc img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: var(--r); background: var(--card); display: block; box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.topc .tt { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.topc.f:focus-visible, .topc.f.focus { box-shadow: none; transform: scale(1.05); } /*fv*/.topc.f.focus { box-shadow: none; transform: scale(1.05); }/*fve*/
.topc.f:focus-visible img, .topc.f.focus img { box-shadow: 0 0 0 3px var(--focus), 0 12px 32px rgba(0,0,0,.6); } /*fv*/.topc.f.focus img { box-shadow: 0 0 0 3px var(--focus), 0 12px 32px rgba(0,0,0,.6); }/*fve*/
/* плитки студий и каналов (как бренды в Disney+) */
.strip.brands { gap: 14px; }
.brand { flex: none; /*c66*/width: 150px; /*c66e*/ width: clamp(150px, 15vw, 210px); aspect-ratio: 16/10; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 8px 22px rgba(0,0,0,.35); transition: transform .15s; position: relative; overflow: hidden; }
.brand::before { content: ""; position: absolute; /*c66*/top: 0; right: 0; bottom: 0; left: 0; /*c66e*/ inset: 0; background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.18), transparent 55%); }
.brand b { /*c66*/font-size: 17px; /*c66e*/ font-size: clamp(17px, 1.6vw, 22px); line-height: 1.1; letter-spacing: -.01em; position: relative; }
.brand small { font-size: 12px; opacity: .75; text-transform: uppercase; letter-spacing: .08em; position: relative; }
.brand.f:focus-visible, .brand.f.focus { transform: scale(1.06); box-shadow: 0 0 0 3px var(--focus), 0 12px 32px rgba(0,0,0,.6); } /*fv*/.brand.f.focus { transform: scale(1.06); box-shadow: 0 0 0 3px var(--focus), 0 12px 32px rgba(0,0,0,.6); }/*fve*/
/* страница студии и «Моё» */
.coll-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 18px; }
.coll-head h1 { margin: 0; /*c66*/font-size: 38.4px; /*c66e*/ font-size: clamp(26px, 4vw, 40px); }
.my-h { margin: 18px 0 0; /*c66*/font-size: 38.4px; /*c66e*/ font-size: clamp(28px, 4vw, 40px); }
.grid.wides { /*c66*/grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /*c66e*/ grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.grid.wides .wide { width: auto; }
.grid.chans { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* топ-10: цифра ровно по низу постера, название под ним */
.topc { padding-bottom: 46px; }
.topc .tt { position: absolute; left: 0; right: 0; top: 100%; margin-top: 6px; }
/* телефон: три постера в ряд, как в Netflix; семь вкладок умещаются */
@media (max-width: 480px) {
  .grid:not(.wides):not(.chans):not(.clips) { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .grid .poster .t { font-size: 12.5px; }
  .grid .pfav { width: 28px; height: 28px; top: 4px; right: 4px; } .grid .pfav svg { width: 15px; height: 15px; }
  .grid .pr { font-size: 11px; top: 4px; left: 4px; padding: 1px 6px; }
  .nav .f { padding: 8px 5px; font-size: 13.5px; }
  .topc { width: 148px; } .topc .num { font-size: 92px; } .topc .tp-img { width: 92px; }
}

/* логотипы на плитках студий: белый силуэт на фирменном фоне, как в Disney+ */
.brand.has-logo { align-items: center; justify-content: center; }
.brand .bl { max-width: 68%; max-height: 52%; object-fit: contain; position: relative; }
.brand.lg-white .bl { opacity: .97; }
.brand.lg-dark .bl { filter: brightness(0) invert(1); opacity: .95; }
.brand.lg-color .bl { background: rgba(255,255,255,.94); padding: 8px 12px; border-radius: 10px; box-sizing: content-box; max-width: 62%; max-height: 40%; }
.brand.lg-solid .bl { max-width: 78%; max-height: 62%; border-radius: 8px; }
.brand.has-logo b, .brand.has-logo small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* люди: круглые фото */
.pcard { flex: none; width: 112px; display: grid; justify-items: center; gap: 4px; text-align: center; border-radius: 14px; padding: 4px; }
.pcard .ph { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; background: var(--card); display: grid; place-items: center; }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.pcard .ph i { font-style: normal; font-size: 32px; color: var(--muted); }
.pcard b { font-size: 13.5px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard small { color: var(--muted); font-size: 12px; }
.pcard.f:focus-visible, .pcard.f.focus { box-shadow: 0 0 0 3px var(--focus); } /*fv*/.pcard.f.focus { box-shadow: 0 0 0 3px var(--focus); }/*fve*/
a.person { color: inherit; display: block; }
a.person.f:focus-visible, a.person.f.focus { box-shadow: 0 0 0 3px var(--focus); border-radius: 12px; } /*fv*/a.person.f.focus { box-shadow: 0 0 0 3px var(--focus); border-radius: 12px; }/*fve*/
/* страница человека */
.pers-head { display: flex; gap: 26px; padding-top: 22px; align-items: flex-start; }
.pers-ph { flex: none; /*c66*/width: 153.6px; /*c66e*/ width: clamp(110px, 16vw, 220px); aspect-ratio: 2/3; border-radius: 16px; overflow: hidden; background: var(--card); }
.pers-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pers-in { min-width: 0; display: grid; gap: 10px; }
.pers-in h1 { margin: 0; /*c66*/font-size: 38.4px; /*c66e*/ font-size: clamp(26px, 4vw, 44px); line-height: 1.08; letter-spacing: -.02em; }
.bio { margin: 0; color: #cfd3da; line-height: 1.55; max-width: 70ch; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.bio.open { -webkit-line-clamp: unset; display: block; }
@media (max-width: 560px) { .pers-head { flex-direction: column; align-items: stretch; } .pers-ph { width: 140px; } }

/* заготовки вместо «Загружаю…» */
.sk { padding-bottom: 20px; }
.sk i { display: block; background: linear-gradient(100deg, #1a1c22 30%, #23262e 50%, #1a1c22 70%); background-size: 220% 100%; animation: sk 1.4s linear infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -120% 0; } }
.sk-hero { /*c66*/height: 334.8px; /*c66e*/ height: min(62vh, 560px); margin-top: -76px; position: relative; background: #15171c; display: flex; align-items: flex-end; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 0 var(--pad) 42px; align-items: flex-start; }
.sk-hero i:nth-child(1) { /*c66*/width: 360px; /*c66e*/ width: min(60%, 360px); height: 40px; } .sk-hero i:nth-child(2) { /*c66*/width: 520px; /*c66e*/ width: min(80%, 520px); height: 16px; } .sk-hero i:nth-child(3) { width: 150px; height: 44px; border-radius: 10px; }
.sk-row { padding: 18px 0 6px; } .sk-t { width: 190px; height: 20px; margin: 0 var(--pad) 14px; }
.sk-strip { display: flex; gap: 12px; overflow: hidden; padding: 0 var(--pad); }
.sk-c { flex: none; /*c66*/width: 124.8px; /*c66e*/ width: clamp(120px, 13vw, 176px); aspect-ratio: 2/3; border-radius: var(--r); }
@media (prefers-reduced-motion: reduce) { .sk i { animation: none; } }
@media (max-width: 760px) { .sk-hero { height: 48vh; margin-top: -112px; } .hero { min-height: 48vh; padding-bottom: 30px; } }
/* подпись ряда, оценки Кинопоиска и IMDb, «смотреть позже» */
.row h2 small { margin-left: 10px; font-size: 13px; font-weight: 500; color: var(--muted); }
.rb { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 7px; font-weight: 800; font-size: 14px; color: #fff; }
.rb b { font-size: 11px; letter-spacing: .04em; opacity: .85; }
.rb.hi { background: #2c9a5b; } .rb.mid { background: #6b7280; } .rb.lo { background: #b0443a; }
.clipw { position: relative; }
.lat { position: absolute; top: 7px; right: 7px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; z-index: 3;
  background: rgba(14,15,18,.66); color: #fff; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .15s; }
.lat svg { width: 15px; height: 15px; }
.lat.on { opacity: 1; color: var(--accent); }
.clipw:hover .lat, .lat:focus-visible, .lat.focus { opacity: 1; } /*fv*/.clipw:hover .lat, .lat.focus { opacity: 1; }/*fve*/
body.touch .lat { opacity: .9; } body.touch .lat.on { opacity: 1; }

/* календарь серий */
.cal { display: grid; gap: 8px; padding-bottom: 30px; }
.cal-d { margin: 18px 0 2px; font-size: 16px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.cal-i { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 14px; background: var(--card); color: inherit; }
.cal-p { flex: none; width: 52px; aspect-ratio: 2/3; border-radius: 8px; overflow: hidden; background: #1a1c22; }
.cal-p img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cal-t { display: grid; gap: 2px; min-width: 0; } .cal-t b { font-size: 16px; } .cal-t small { color: var(--muted); font-size: 13.5px; }
.cal-i.f:focus-visible, .cal-i.f.focus { box-shadow: 0 0 0 3px var(--focus); } /*fv*/.cal-i.f.focus { box-shadow: 0 0 0 3px var(--focus); }/*fve*/

.wide .img { position: relative; }
.wbadge { position: absolute; top: 8px; left: 8px; padding: 3px 9px; border-radius: 7px; background: var(--accent); color: #1a1203; font-size: 12px; font-weight: 800; letter-spacing: .02em; z-index: 2; }
/* большой экран: карусель выше, чтобы кадр 16:9 не обрезался в узкую полосу и не растягивался */
/* на широком мониторе 44vw давало почти весь экран: подборки уезжали под сгиб. Ограничиваем высоту */
@media (min-width: 1200px) { .hero { /*c66*/min-height: 410.4px; /*c66e*/ min-height: min(44vw, 620px, 76vh); background-position: center 20%; } .sk-hero { /*c66*/height: 410.4px; /*c66e*/ height: min(44vw, 620px, 76vh); } }
.pl-top .pl-pip { display: none; }
.pl-wait { align-content: center; gap: 14px; }
.pl-wmsg { color: #ddd; font-size: 14px; text-align: center; max-width: 80%; text-shadow: 0 1px 4px #000; margin: 0; }
/* телевизор (определяется по устройству): весь интерфейс крупнее, как в приложениях для ТВ */

/* убрать из истории: крестик в углу карточки */
.xb { position: absolute; top: 7px; left: 7px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; z-index: 3; font-size: 13px; color: #fff;
  background: rgba(14,15,18,.7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .15s; cursor: pointer; }
.wide { position: relative; } .wide .xb { left: auto; right: 8px; top: 8px; }
/* «i» на плитке «Продолжить просмотр»: открыть карточку фильма, не включая видео */
.ib { position: absolute; left: 8px; top: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  z-index: 3; font-size: 14px; font-weight: 700; color: #fff; background: rgba(14,15,18,.78); border: 1px solid rgba(255,255,255,.35);
  opacity: .75; cursor: pointer; }
.wide:hover .ib, .ib:focus-visible, body.touch .ib { opacity: 1; } /*fv*/.wide:hover .ib, body.touch .ib { opacity: 1; }/*fve*/
.wide:hover .xb, .clipw:hover .xb, .xb:focus-visible, .xb.focus, body.touch .xb { opacity: .9; } /*fv*/.wide:hover .xb, .clipw:hover .xb, .xb.focus, body.touch .xb { opacity: .9; }/*fve*/
/* телефон: подпись ряда — отдельной строкой; страница фильма — картинка целиком, сразу под ней название */
@media (max-width: 760px) {
  .row h2 small { display: block; margin: 4px 0 0; }
  .tp-bg { height: calc(56.25vw + 150px); background-size: 100% auto; background-position: center 112px; background-repeat: no-repeat; }
  .tp-in { padding-top: calc(56.25vw - 10px); }
}
/* подсказки при наборе в поиске */
.sugg { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-top: 2px; padding-bottom: 10px; }
.sugg::-webkit-scrollbar { display: none; }
.sugg a { flex: 0 0 auto; display: grid; gap: 1px; padding: 8px 14px; border-radius: 12px; background: rgba(255,255,255,.07); max-width: 260px; }
.sugg a span { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sugg a small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.sugg a.focus, .sugg a:focus-visible { box-shadow: 0 0 0 3px var(--focus); } /*fv*/.sugg a.focus { box-shadow: 0 0 0 3px var(--focus); }/*fve*/
/* нравится / не нравится */
.votes { display: inline-flex; gap: 6px; }
.votes .btn { padding: 12px 14px; } .votes .btn svg { width: 20px; height: 20px; }
.votes .vup.on { color: var(--ok); background: rgba(92,199,159,.16); } .votes .vdn.on { color: var(--bad); background: rgba(224,96,86,.16); }
.vline { color: var(--ok); font-size: 14px; font-weight: 600; }
.vline[hidden] { display: none; }
/* вход в кинотеатр */
.signin { max-width: 380px; margin: 14vh auto 0; padding: 0 16px; display: grid; gap: 14px; }
.signin .logo { font-size: 30px; font-weight: 800; text-align: center; margin-bottom: 4px; }
.signin p { color: var(--muted); text-align: center; margin: 0 0 6px; }
.signin input, .frm input { font: inherit; font-size: 18px; padding: 13px 14px; border-radius: 10px; border: 2px solid var(--line); background: var(--bg2, #16181d); color: var(--fg); outline: none; width: 100%; box-sizing: border-box; }
.signin input:focus, .frm input:focus { border-color: var(--accent); }
.signin .btn, .frm .btn.main { justify-content: center; width: 100%; padding: 14px; font-size: 17px; }
.signin .err, .frm .err { color: var(--bad); font-weight: 600; }
.signin .err[hidden], .frm .err[hidden] { display: none; }
.signin .auth-link { text-align: center; color: var(--muted); background: none; border: 0; padding: 8px; border-radius: 8px; font: inherit; cursor: pointer; }
.signin .auth-link:hover { color: var(--fg); }
.signin [hidden] { display: none !important; }
.signup { margin-top: 7vh; padding-bottom: 32px; }
.signup h1 { font-size: 25px; margin: 0; text-align: center; }
.signup .register-fields { display: grid; gap: 14px; }
.signup label { display: block; font-size: 14px; color: var(--muted); }
.signup label input { display: block; margin-top: 6px; }
.signup small { display: block; font-size: 13px; margin-top: 6px; color: var(--muted); }
.signup .auth-code { text-align: center; letter-spacing: .35em; font-size: 25px; }
.frm { display: grid; gap: 12px; }
.fld { display: grid; gap: 6px; } .fld > span:first-child { font-size: 14px; color: var(--muted); }
.fin { display: flex; gap: 8px; align-items: center; } .fin .btn { flex: none; }
.dlg p { white-space: pre-line; }
/* «Моё»: подзаголовки «Фильмы и сериалы» / «Ролики» */
.my-sub { font-size: 20px; margin: 22px 0 12px; }
.nav .ic, .bar .lbl { display: none; }

/* ================= телевизор (Android TV, Smart TV): 10-футовый интерфейс как у Кинопоиска и Иви =================
   Экран 1080p в WebView — 960 точек в ширину. Плотная сетка, боковое меню слева, выделение крупное и заметное. */
html.tv { --pad: 34px; --side: 72px; }
html.tv, html.tv body { font-size: 13px; }
html.tv .strip, html.tv .seasons { scroll-behavior: auto; }
/* боковое меню */
html.tv .bar { /*c66*/top: 0; right: auto; bottom: 0; left: 0; /*c66e*/ inset: 0 auto 0 0; width: 230px; flex-direction: column; align-items: stretch; gap: 4px; padding: 18px 10px; background: none; overflow: visible; }
html.tv .bar::before { content: ""; position: absolute; /*c66*/top: 0; right: 0; bottom: 0; left: 0; /*c66e*/ inset: 0; z-index: -1; background: rgba(14,15,18,.97); transform: translateX(-158px);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s; }
html.tv .bar.open::before { transform: none; box-shadow: 18px 0 50px rgba(0,0,0,.65); }
html.tv .bar .nav .lg, html.tv .bar .lbl { display: inline; opacity: 0; transform: translateX(-10px); transition: opacity .2s ease, transform .25s cubic-bezier(.2,.8,.2,1); }
html.tv .bar.open .nav .lg, html.tv .bar.open .lbl { opacity: 1; transform: none; transition-delay: .04s; }
html.tv .bar:not(.open) .nav .f, html.tv .bar:not(.open) .ibtn, html.tv .bar:not(.open) .avatar { width: 52px; overflow: hidden; }   /* свёрнутое меню: подсветка — только под иконкой */
html.tv .bar:not(.open) .nav .f.on { background: rgba(255,255,255,.08); }
html.tv .bar .logo { display: none; }
html.tv .bar .nav { flex-direction: column; gap: 2px; flex: none; overflow: visible; order: 0; -webkit-mask-image: none; mask-image: none; }
html.tv .bar .avatar { order: -2; } html.tv .bar .ibtn[href^="#/search"] { order: -1; margin-bottom: 10px; } html.tv .bar .ibtn[href="#/settings"] { order: 1; margin-top: auto; }
html.tv .bar .nav .f, html.tv .bar .ibtn, html.tv .bar .avatar { display: flex; align-items: center; gap: 14px; width: auto; height: 42px; padding: 0 11px;
  border-radius: 10px; color: var(--muted); background: none; white-space: nowrap; font-weight: 600; font-size: 14px; }
html.tv .bar .avatar { color: var(--fg); background: none !important; padding: 0 5px 0 6px; margin-bottom: 6px; }
html.tv .bar .avatar::before { content: attr(data-l); width: 30px; height: 30px; border-radius: 50%; background: var(--av); color: #111; display: grid; place-items: center;
  font-size: 14px; font-weight: 800; flex: none; }
html.tv .bar .avatar.focus::before { box-shadow: 0 0 0 2px #111; }
html.tv .bar .ic, html.tv .bar .ibtn svg { display: inline-grid; width: 22px; height: 22px; flex: none; }
html.tv .bar .ic svg { width: 22px; height: 22px; }
html.tv .bar .nav .sm { display: none; }

html.tv .bar .nav .f.on { color: var(--fg); background: rgba(255,255,255,.08); }
html.tv .bar .f.focus, html.tv .bar .f:focus-visible { color: #111 !important; background: var(--fg) !important; box-shadow: none; } /*fv*/html.tv .bar .f.focus { color: #111 !important; background: var(--fg) !important; box-shadow: none; }/*fve*/
html.tv .bar .avatar { font-size: 0; }
html.tv .bar .avatar .lbl { font-size: 14px; }
html.tv .bar .avatar::after { content: none; }
/* страницы правее меню */
html.tv .page { padding: 18px 0 40px var(--side); }
html.tv .hc, html.tv .hero { margin-top: -18px; }
html.tv .hc .hero { margin-top: 0; }
html.tv .hero, html.tv .sk-hero { min-height: calc(58vh / var(--z, 1)); padding: 40px var(--pad) 34px; }   /* при масштабе браузера ТВ vh тоже растёт */
html.tv .hero h1 { font-size: 30px; }
html.tv .hero-in { max-width: 470px; gap: 9px; }
html.tv .meta { font-size: 12.5px; }
html.tv .lead { font-size: 13px; -webkit-line-clamp: 2; }
html.tv .btn { padding: 8px 16px; font-size: 13px; border-radius: 8px; }
html.tv .btn svg { width: 16px; height: 16px; }
html.tv .btn { transition: background .18s ease, color .18s ease; }
html.tv .btn.focus, html.tv .btn:focus-visible { background: var(--fg); color: #111; box-shadow: none; } /*fv*/html.tv .btn.focus { background: var(--fg); color: #111; box-shadow: none; }/*fve*/
html.tv .hc-dots { bottom: 6px; }
/* ряды */
html.tv .row { margin-top: 12px; }
html.tv .row h2 { font-size: 16px; margin-bottom: 4px; }
html.tv .row h2 small { font-size: 12px; }
html.tv .strip { gap: 16px; padding: 14px var(--pad) 18px; scroll-padding: 0; }
html.tv .poster { width: 104px; }
html.tv .poster .t { font-size: 11.5px; margin-top: 6px; }
html.tv .poster .y { font-size: 11px; }
html.tv .poster .pr, html.tv .badge { font-size: 10px; }
html.tv .wide { width: 196px; }
html.tv .wide .t { font-size: 12px; } html.tv .wide .s { font-size: 11px; }
html.tv .clipw, html.tv .strip.clips .clipw { width: 196px; }
html.tv .strip.clips .clip, html.tv .clipw .clip { width: 100%; }        /* кнопка внутри карточки — не шире карточки, названия не наезжают */
html.tv .clip .t { font-size: 12px; } html.tv .clip .y, html.tv .clipw .by { font-size: 11px; }
html.tv .topc { width: 150px; } html.tv .topc .tp-img { width: 90px; } html.tv .topc .num { font-size: 96px; }
html.tv .brand { width: 150px; }
html.tv .grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 16px 10px; }
html.tv .grid.wides, html.tv .grid.clips { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }
/* выделение: крупное и заметное с дивана */
html.tv .f.focus { box-shadow: 0 0 0 2px var(--focus); }
html.tv .poster.f, html.tv .wide.f, html.tv .clip.f, html.tv .tvbtn.f { transition: transform .24s cubic-bezier(.2,.8,.2,1), box-shadow .24s ease; }
html.tv .wide.f.focus, html.tv .wide-clip.card-focus { transform: scale(1.06); box-shadow: 0 0 0 3px var(--focus), 0 14px 30px rgba(0,0,0,.6); z-index: 3; }
html.tv .poster.f:focus-visible, html.tv .poster.f.focus { transform: scale(1.06); box-shadow: none; z-index: 3; } /*fv*/html.tv .poster.f.focus { transform: scale(1.06); box-shadow: none; z-index: 3; }/*fve*/
html.tv .poster.f:focus-visible img, html.tv .poster.f.focus img { box-shadow: 0 0 0 3px var(--focus), 0 14px 30px rgba(0,0,0,.6); } /*fv*/html.tv .poster.f.focus img { box-shadow: 0 0 0 3px var(--focus), 0 14px 30px rgba(0,0,0,.6); }/*fve*/
html.tv .topc.f:focus-visible, html.tv .topc.f.focus, html.tv .wide-clip .f:focus-visible, html.tv .wide-clip .f.focus { box-shadow: none; } /*fv*/html.tv .topc.f.focus, html.tv .wide-clip .f.focus { box-shadow: none; }/*fve*/
html.tv .wide-channel { font-size: 11px; }
html.tv .tvbtn.f.focus { transform: scale(1.05); box-shadow: 0 0 0 3px var(--focus); }
html.tv .clip.f.focus { box-shadow: none; } html.tv .clip.f.focus .img { box-shadow: 0 0 0 3px var(--focus); }
html.tv .seasons .f { padding: 6px 13px; font-size: 12.5px; }
html.tv .seasons .f.focus { background: var(--fg); color: #111; box-shadow: none; }
/* настройки, окна, профили */
html.tv .settings { max-width: 620px; gap: 8px; }
html.tv .settings h2 { font-size: 22px; }
html.tv .opt { padding: 10px 14px; font-size: 13.5px; }
html.tv .opt small { font-size: 11.5px; }
html.tv .opt.focus { background: var(--fg); color: #111; box-shadow: none; } html.tv .opt.focus small, html.tv .opt.focus b { color: #333; }
html.tv .dlg { /*c66*/width: 520px; /*c66e*/ width: min(520px, 100%); padding: 18px; gap: 10px; }
html.tv .dlg h3 { font-size: 17px; }
html.tv .prof-item .avatar { width: 84px; height: 84px; font-size: 32px; }
html.tv .prof h1 { font-size: 28px; }
html.tv .prof-item.focus { box-shadow: none; } html.tv .prof-item.focus .avatar { box-shadow: 0 0 0 3px var(--focus); transform: scale(1.06); }
html.tv .tvbtn { padding: 10px 6px 8px; gap: 6px; } html.tv .tvbtn .lg { width: 60px; height: 60px; border-radius: 14px; } html.tv .tvbtn .nm { font-size: 11.5px; }
/* телефон: компактнее, как в приложениях кинотеатров */
@media (max-width: 760px) {
  html:not(.tv) .row h2 { font-size: 18px; }
  html:not(.tv) .poster { width: 108px; }
  html:not(.tv) .poster .t { font-size: 13px; }
  html:not(.tv) .hero h1 { font-size: 28px; }
  html:not(.tv) .opt { padding: 11px 14px; font-size: 15px; }
  html:not(.tv) .settings h2 { font-size: 24px; }
  html:not(.tv) .wide { width: 230px; }
}
/* приложение Android: видео — нативный плеер под прозрачной страницей */
html.nvp, html.nvp body { background: transparent !important; }
html.nvp #app { visibility: hidden; }
html.nvp .player, html.nvp .player video { background: transparent !important; }
html.nvp .player video { opacity: 0; }
/* телевизор: плавность — экраны появляются мягко, меню и выделение без рывков */
@keyframes tvin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
html.tv .page > * { animation: tvin .32s cubic-bezier(.2,.8,.2,1) both; }
html.tv .bar .f { transition: background .18s ease, color .18s ease, width .2s ease; }
html.tv .dlg-back { animation: tvin .22s ease both; }
html.tv .grid { gap: 22px 14px; }
/* плеер на телевизоре: панель читается, кнопки не наезжают */
html.tv .pl-ui { background: linear-gradient(to bottom, rgba(0,0,0,.7), rgba(0,0,0,0) 22%, rgba(0,0,0,0) 55%, rgba(0,0,0,.85)); transition: opacity .3s ease; }
html.tv .pl-row { gap: 10px; flex-wrap: nowrap; }
html.tv .pbtn { padding: 8px 12px; font-size: 13px; background: rgba(255,255,255,.12); transition: background .18s ease, color .18s ease; }
html.tv .pbtn svg { width: 18px; height: 18px; }
html.tv .pbtn.focus, html.tv .pbtn:focus-visible { background: var(--fg); color: #111; box-shadow: none; } /*fv*/html.tv .pbtn.focus { background: var(--fg); color: #111; box-shadow: none; }/*fve*/
html.tv .seek.focus { box-shadow: none; } html.tv .seek.focus .kn { transform: translateX(-50%) scale(1.4); box-shadow: 0 0 0 4px rgba(255,255,255,.25); }
html.tv .pl-title { font-size: 18px; } html.tv .pl-row .tm { font-size: 13px; }
html.tv .pl-mid { display: none; }                                              /* большие кнопки по центру — для касаний, на ТВ мешают */
/* ТВ: пауза и перемотка — в нижней панели с подписями (по центру крупные кнопки — для касаний); громкость — пультом телевизора */
html.tv .pl-row [data-a=play], html.tv .pl-row [data-a=rw], html.tv .pl-row [data-a=ff] { display: inline-flex !important; }
html.tv .pl-row .vol, html.tv .pl-row .vol-b { display: none !important; }
html.tv .pl-row .pbtn span { display: inline; }
/* ТВ: под меню ничего не размывается — заголовки рядов видны */
html.tv .bar, html.tv .bar.solid { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.tv .pl-row [data-a=full] { display: none !important; }      /* телевизор и так во весь экран */
html.nofg .btn > svg { margin-right: 8px; }                                  /* старые ТВ: иконка не прилипает к тексту кнопки */
html.nofg.tv .bar .avatar .lbl { margin-left: 12px; }                           /* имя профиля — не вплотную к кружку */
html.tv .bar::before { background: #0e0f12; }                               /* открытое меню — непрозрачная панель */
html.tv .tvc .star:not(.on) { display: none; }                             /* ТВ: сердечко только у избранных (добавить — долгим «ОК») */
/* приложение: системное «окно в окне» — на маленьком окне только видео, без кнопок */
html.pipmode .pl-ui, html.pipmode .skipb, html.pipmode .pl-bubble, html.pipmode .pl-wait { display: none !important; }
html.pipmode .player > :not(video) { display: none !important; }
html:not(.tv) .page { padding-top: calc(var(--header-height, 112px) + 12px); }
html:not(.tv) .page > .hero, html:not(.tv) .page > .hc, html:not(.tv) .page > .sk > .sk-hero { margin-top: calc(-1 * (var(--header-height, 112px) + 12px)); }
html:not(.tv) .tp-bg { top: calc(-1 * (var(--header-height, 112px) + 12px)); }
/* ТВ: лёгкая графика для слабых приставок — без теней и размытий, анимация только у выделенного */
html.tv .wide.f.focus, html.tv .wide-clip.card-focus { box-shadow: 0 0 0 3px var(--focus); }
html.tv .topc img { box-shadow: none; }
html.tv .poster.f:focus-visible img, html.tv .poster.f.focus img, html.tv .topc.f:focus-visible img, html.tv .topc.f.focus img { box-shadow: 0 0 0 3px var(--focus); } /*fv*/html.tv .poster.f.focus img, html.tv .topc.f.focus img { box-shadow: 0 0 0 3px var(--focus); }/*fve*/
html.tv * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.tv .page > * { animation: none; }
html.tv .page { animation: tvin .25s ease both; }
/* ТВ: кнопка «Смотреть» в выделении — оранжевая (белая на белом не видна) */
html.tv .btn.main.focus, html.tv .btn.main:focus-visible { background: var(--accent); color: #111; } /*fv*/html.tv .btn.main.focus { background: var(--accent); color: #111; }/*fve*/
/* ТВ: карусель листается с точек вверху — «вверх» с кнопок; в выделении — плашка и подсказка */
html.tv .hc-dots { top: 18px; bottom: auto; left: var(--pad); padding: 6px 10px; border-radius: 999px; align-items: center; transition: background .2s ease, box-shadow .2s ease; }
html.tv .hc-dots.focus { background: rgba(14,15,18,.75); box-shadow: 0 0 0 2px var(--focus); }
html.tv .hc-dots::before, html.tv .hc-dots::after { color: #fff; font-size: 13px; font-weight: 700; opacity: 0; transition: opacity .2s ease; }
html.tv .hc-dots::before { content: "‹"; font-size: 18px; margin-right: 6px; }
html.tv .hc-dots::after { content: "›   листайте стрелками"; white-space: pre; margin-left: 6px; }
html.tv .hc-dots.focus::before, html.tv .hc-dots.focus::after { opacity: 1; }
html.tv .hc-dots button { width: 20px; }
/* ряд серий (как в Иви): картинка 16:9, номер и название под ней */
.epstrip .epc { flex: none; width: 240px; text-align: left; border-radius: var(--r); padding: 0 0 6px; }
.epc .img { aspect-ratio: 16/9; border-radius: var(--r); background: var(--card) center/cover; position: relative; overflow: hidden; }
.epc .img .bar2 { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.2); }
.epc .img .bar2 i { display: block; height: 100%; background: var(--accent); }
.epc .epw { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.7); color: var(--ok); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.epc .n { font-size: 13px; color: var(--muted); margin-top: 8px; }
.epc .t { font-weight: 600; font-size: 14px; line-height: 1.25; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.epc.soon { opacity: .5; }
.epc.f.focus .img { box-shadow: 0 0 0 3px var(--focus); }
.epc.f.focus, html.tv .epc.f.focus { box-shadow: none; }
html.tv .epstrip .epc { width: 196px; } html.tv .epc .t { font-size: 12px; } html.tv .epc .n { font-size: 11px; }
@supports not (aspect-ratio: 1 / 1) { .epc .img { height: 0; padding-top: 56.25%; } }
.epc .img.nostill::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(14,15,18,.72); }
.epc .img .epn { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; color: rgba(255,255,255,.85); }
/* клавиатура поиска на ТВ */
.tvkb { margin: 6px 0 14px; }
.tvkb .keys { display: flex; flex-wrap: wrap; max-width: 620px; }
.tvkb .k { min-width: 40px; height: 36px; margin: 0 6px 6px 0; padding: 0 10px; border-radius: 8px; background: rgba(255,255,255,.08); font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.tvkb .k svg { width: 16px; height: 16px; margin-right: 6px; }
.tvkb .k.wide { min-width: 140px; }
.tvkb .k.focus { background: var(--fg); color: #111; box-shadow: none; }
.tvkb .kbrow { display: flex; flex-wrap: wrap; margin-top: 4px; }
.tvkb .k.voice { background: rgba(229,161,58,.18); color: var(--accent); }
html.tv .search input[readonly] { pointer-events: none; }
/* выбор профиля: выделенный — рамка вокруг аватара, чуть крупнее, имя ярче */
.prof-item .avatar { transition: transform .2s ease, box-shadow .2s ease; }
.prof-item > span:nth-child(2) { color: var(--muted); transition: color .2s ease; }
.prof-item.focus, .prof-item:hover { box-shadow: none; background: none; }
.prof-item.focus .avatar, .prof-item:hover .avatar { box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px var(--fg); transform: scale(1.08); }
.prof-item.focus > span:nth-child(2), .prof-item:hover > span:nth-child(2) { color: var(--fg); }
.prof-edit { justify-self: center; margin-top: 8px; }
/* ТВ: ряды компактнее — на экране помещается больше, шаг прокрутки меньше */
html.tv .row { margin-top: 6px; }
html.tv .row h2 { margin-bottom: 0; }
html.tv .strip { padding-top: 10px; padding-bottom: 10px; }
html.tv .poster .t { -webkit-line-clamp: 1; margin-top: 5px; }
html.tv .poster .y { margin-top: 0; }
.pbtn.ch { font-size: 20px; font-weight: 700; } .pbtn.ch span { font-size: 13px; }
/* ТВ-браузер 1920 точек (Samsung): страница увеличена zoom, а vh при этом тоже растёт — экран профилей и плеер уезжали
   на пол-экрана вниз. Делим на масштаб (--z ставит app.js; в приложении Android его нет — там деление на 1). */
html.tv .page, html.tv .prof { min-height: calc(100vh / var(--z, 1)); }
html.tv .player { height: calc(100vh / var(--z, 1)); }
html.tv .tp-bg { height: calc(78vh / var(--z, 1)); }
html.tv .tp-in { padding-top: calc(18vh / var(--z, 1)); }
html.tv .dlg { max-height: calc(86vh / var(--z, 1)); }
html.tv .pl-menu { max-height: calc(60vh / var(--z, 1)); }
html.tv .pl-menu.pl-wide { max-height: calc(72vh / var(--z, 1)); }
html.tv .signin { margin-top: calc(14vh / var(--z, 1)); }
/* ТВ-каналы: «Все» — рядами, сверху — канал, который смотрели последним */
.tvrow .tvc { flex: none; width: 150px; }
.tvbtn .lg { margin: 0 auto; }                       /* старые ТВ: кнопка не умеет display:grid — логотип по центру и так */
.tvmore { flex: none; width: 150px; display: grid; place-content: center; gap: 4px; text-align: center; border-radius: var(--r);
  background: rgba(255,255,255,.05); border: 1px dashed var(--line); font-weight: 600; }
.tvmore b { font-size: 18px; } .tvmore span { font-size: 13px; color: var(--muted); }
.tvtop { padding-top: 14px; padding-bottom: 6px; }
.tvlast { flex: none; display: flex; align-items: center; gap: 18px; padding: 12px 14px; border-radius: 16px; text-align: left; min-width: 360px;
  background: linear-gradient(120deg, rgba(229,161,58,.20), rgba(255,255,255,.05)); }
.tvlast .lg { flex: none; width: 72px; height: 72px; border-radius: 16px; background: #fff; display: grid; place-items: center; overflow: hidden; position: relative; }
.tvlast .lg b { color: #333; font-size: 24px; }
.tvlast .lg img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; padding: 6px; background: #fff; }
.tvlast .tl small { display: block; color: var(--muted); font-size: 13px; font-weight: 500; }
.tvlast .tl b { font-size: 20px; }
.tvlast .go { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 10px; background: var(--fg); color: #111; font-weight: 700; }
.tvlast .go svg { width: 18px; height: 18px; }
html.nofg .tvlast > .tl { margin-left: 16px; } html.nofg .tvlast .go > svg { margin-right: 6px; }      /* старые ТВ без gap у flex */
html.tv .tvrow .tvc, html.tv .tvmore { width: 112px; }
html.tv .tvlast { min-width: 300px; padding: 10px 12px; } html.tv .tvlast .lg { width: 58px; height: 58px; } html.tv .tvlast .tl b { font-size: 16px; }
html.tv .tvlast.f.focus { transform: scale(1.03); box-shadow: 0 0 0 3px var(--focus); }
/* эфир: на кнопках переключения — названия соседних каналов (и на телефоне) */
.pl-row .pbtn.ch span { display: inline; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) { .pl-row .pbtn.ch span { max-width: 74px; } }
/* вход на телевизоре по коду */
.tvcode { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 14px; border-radius: 16px; background: var(--bg2, #16181d); margin-bottom: 8px; }
.tvcode h2 { margin: 0; font-size: 20px; }
.tc-qr { width: 168px; height: 168px; background: #fff; border-radius: 12px; display: grid; place-items: center; overflow: hidden; }
.tc-qr svg { width: 100%; height: 100%; }
.tc-code { font-size: 40px; font-weight: 800; letter-spacing: .12em; }
.tvcode p { margin: 0; color: var(--muted); font-size: 14px; }
.tvcode small { color: var(--muted); }
html.tv .signin { max-width: 460px; margin-top: 16px; gap: 10px; } html.tv .signin .logo { font-size: 24px; } html.tv .tc-qr { width: 150px; height: 150px; } html.tv .tc-code { font-size: 34px; }
.tc-alt { justify-self: center; }
/* раздел «Шоу» */
.shows-hint { color: var(--muted); margin: 18px 0 4px; }
.shows-all { margin: 30px 0 6px; font-size: 20px; } .shows-all small { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 10px; }
html.tv .shows-all { font-size: 16px; margin-top: 18px; }
/* пульт телевизора (телефон управляет ТВ своего аккаунта) */
.remote { max-width: 560px; margin: 0 auto; display: grid; gap: 14px; padding-top: 24px; }
.remote .rm-title { font-size: 22px; font-weight: 700; }
.remote .rm-sub, .remote .rm-tm { color: var(--muted); }
.rm-seek { height: 12px; border-radius: 6px; background: var(--line); cursor: pointer; overflow: hidden; }
.rm-seek .pg { height: 100%; width: 0; background: var(--accent); }
.rm-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.rm-btns .btn { flex: 1 1 0; justify-content: center; min-height: 54px; white-space: nowrap; }
.rm-btns .btn svg { width: 22px; height: 22px; }
.rm-btns .btn:disabled { opacity: .45; }
.rm-mic { justify-content: center; min-height: 60px; font-size: 17px; }
.rm-mic.on { background: var(--bad); color: #fff; animation: rmpulse 1s infinite alternate; }
@keyframes rmpulse { from { opacity: 1; } to { opacity: .7; } }
.rm-heard { color: var(--muted); min-height: 1.4em; text-align: center; }
/* ==== совместимость: старые ТВ (tools/compat.py) ==== */
@supports not (width: clamp(1px, 1px, 1px)) {
  .bar { padding: 12px var(--pad) 12px; }
  .pl-top, .pl-bottom { padding-left: max(var(--pad), 0px); }
  .pl-top, .pl-bottom { padding-right: max(var(--pad), 0px); }
  .pl-top { padding: 16px var(--pad) 0; }
  .pl-bottom { padding: 0 var(--pad) 22px; }
}
html.nofg .bar > * + * { margin-top: 8px; margin-left: 0; }
html.nofg .nav > * + * { margin-left: 4px; }
html.nofg .meta > * { margin-right: 14px; margin-bottom: 6px; }
html.nofg .external-ratings > * { margin-right: 8px; margin-bottom: 8px; }
html.nofg .btns > * { margin-right: 10px; margin-bottom: 10px; }
html.nofg .btn > * + * { margin-left: 8px; }
html.nofg .strip > * + * { margin-left: 14px; }
html.nofg .wide-channel > * + * { margin-left: 6px; }
html.nofg .state > * + * { margin-left: 8px; }
html.nofg .people > * + * { margin-left: 14px; }
html.nofg .seasons > * + * { margin-left: 8px; }
html.nofg .search > * + * { margin-left: 10px; }
html.nofg .empty.fail > * + * { margin-top: 16px; margin-left: 0; }
html.nofg .prof-list > * { margin-right: 22px; margin-bottom: 22px; }
html.nofg .lw-bar > * + * { margin-left: 8px; }
html.nofg .lw-addr > * + * { margin-left: 6px; }
html.nofg .pl-top > * + * { margin-left: 14px; }
html.nofg .pl-row > * + * { margin-left: 8px; }
html.nofg .pbtn > * + * { margin-left: 6px; }
html.nofg .row2 > * + * { margin-left: 14px; }
html.nofg .es-head > * + * { margin-left: 12px; }
html.nofg .es-seasons > * + * { margin-left: 8px; }
html.nofg .es-list > * + * { margin-left: 12px; }
html.nofg .pl-menu h4 > * + * { margin-left: 12px; }
html.nofg .dlg h3 > * + * { margin-left: 12px; }
html.nofg .chanhead > * + * { margin-left: 22px; }
html.nofg .byrow > * + * { margin-left: 6px; }
html.nofg .pl-row > * + * { margin-left: 6px; }
html.nofg .pl-menu .opt > * + * { margin-left: 10px; }
html.nofg .pl-note .btns > * { margin-right: 8px; margin-bottom: 8px; }
html.nofg .opt.chk > * + * { margin-left: 12px; }
html.nofg .sh-head > * + * { margin-left: 12px; }
html.nofg .sh-item > * + * { margin-left: 6px; }
html.nofg .brand > * + * { margin-top: 2px; margin-left: 0; }
html.nofg .coll-head > * { margin-right: 16px; margin-bottom: 16px; }
html.nofg .pers-head > * + * { margin-left: 26px; }
html.nofg .sk-hero > * + * { margin-top: 12px; margin-left: 0; }
html.nofg .sk-strip > * + * { margin-left: 12px; }
html.nofg .rb > * + * { margin-left: 5px; }
html.nofg .cal-i > * + * { margin-left: 14px; }
html.nofg .sugg > * + * { margin-left: 8px; }
html.nofg .votes > * + * { margin-left: 6px; }
html.nofg .fin > * + * { margin-left: 8px; }
html.nofg.tv .bar > * + * { margin-top: 4px; margin-left: 0; }
html.nofg.tv .bar .nav > * + * { margin-top: 2px; margin-left: 0; }
html.nofg.tv .bar .nav .f > * + * { margin-left: 14px; }
html.nofg.tv .bar .ibtn > * + * { margin-left: 14px; }
html.nofg.tv .bar .avatar > * + * { margin-left: 14px; }
html.nofg.tv .strip > * + * { margin-left: 16px; }
html.nofg.tv .pl-row > * + * { margin-left: 10px; }
html.nofg .tvlast > * + * { margin-left: 18px; }
html.nofg .tvlast .go > * + * { margin-left: 6px; }
html.nofg .rm-btns > * { margin-right: 10px; margin-bottom: 10px; }
@media (orientation: portrait) and (max-width: 700px) {
  html.nofg .es-list > * + * { margin-top: 10px; margin-left: 0; }
  html.nofg .pl-row > * + * { margin-left: 6px; }
}
@media (max-width: 760px) {
  html.nofg .nav > * + * { margin-left: 2px; }
  html.nofg .nav > * + * { margin-left: 0; }
}
@media (max-width: 480px) {
  html.nofg .nav > * + * { margin-left: 0; }
}
@supports not (aspect-ratio: 1 / 1) {
  .wide .img, .clip .img, .ep .img, .es-img { height: 0; padding-top: 56.25%; }
  .brand { height: 94px; } .sk-c { height: 156px; } .lw-screen { height: 70vh; }
  html.tv .strip .poster img { height: 156px; }
}
/* ==== конец совместимости ==== */
