/*
 * VidaaTV — TV UI, same look as the native app (native-vidaatv): flat dark panels, white focus, violet progress.
 * Target: Chrome 42 / Firefox 40. No CSS variables, no gap, no grid. Base canvas 1280x720, scaled by JS.
 * Palette (as in native_app/fw/widgets.h): bg #07070a, panel #10131c, text #edeff5 / #c9cedc / #a3a9bf / #7d8398,
 * ink #0b0d14 on a white focus, live #ff5a5f, brand #8b6cff, gold #f6c453.
 */

@font-face { font-family: "Onest"; font-weight: 400; src: url("/vendor/fonts/Onest-Regular.ttf") format("truetype"); }
@font-face { font-family: "Onest"; font-weight: 600; src: url("/vendor/fonts/Onest-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Onest"; font-weight: 700; src: url("/vendor/fonts/Onest-Bold.ttf") format("truetype"); }

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; height: 100%; overflow: hidden;
  background: #07070a;
  color: #edeff5;
  font-family: "Onest", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none; -moz-user-select: none; user-select: none;
}

.app {
  position: absolute; left: 0; top: 0;
  width: 1280px; height: 720px; overflow: hidden;
  -webkit-transform-origin: 0 0; transform-origin: 0 0;
  background: #07070a;
  background-image: -webkit-radial-gradient(90% 0%, circle, rgba(139, 108, 255, 0.16) 0%, rgba(7, 7, 10, 0) 50%),
                    -webkit-radial-gradient(0% 100%, circle, rgba(255, 92, 168, 0.07) 0%, rgba(7, 7, 10, 0) 45%);
  background-image: radial-gradient(circle at 90% 0%, rgba(139, 108, 255, 0.16) 0%, rgba(7, 7, 10, 0) 50%),
                    radial-gradient(circle at 0% 100%, rgba(255, 92, 168, 0.07) 0%, rgba(7, 7, 10, 0) 45%);
}

/* ---------- top bar ---------- */
.topbar { position: absolute; left: 36px; right: 36px; top: 0; height: 64px; line-height: 64px; }
.brand { float: left; font-size: 22px; font-weight: 400; letter-spacing: 0.3px; color: #c9cedc; }
.brand b { font-weight: 700; color: #8b6cff; }
.brand-mark {
  display: inline-block; width: 34px; height: 34px; margin-right: 12px; vertical-align: middle;
  position: relative; top: -2px; border-radius: 9px;
}
.clock { float: right; font-size: 26px; font-weight: 400; color: #c9cedc; }

/* ---------- columns ---------- */
.col { position: absolute; top: 72px; bottom: 56px; }
.col-cats { left: 36px; width: 214px; }
.col-chans { left: 262px; width: 404px; }
.col-side { left: 678px; right: 36px; z-index: 5; }

.col-cats, .col-chans, .epg, .info {
  background: rgba(16, 19, 28, 0.8);
  border-radius: 16px;
}

.col-title {
  height: 46px; line-height: 46px; padding: 0 20px;
  font-size: 15px; font-weight: 700; color: #edeff5;
}
.col-count { float: right; color: #7d8398; font-weight: 400; font-size: 14px; }

.scroller { position: absolute; left: 0; right: 0; top: 46px; bottom: 10px; overflow: hidden; }
.list { position: relative; padding: 0 9px; }

/* custom scrollbar */
.scrollbar { position: absolute; right: 3px; top: 52px; bottom: 16px; width: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.05); }
.scrollbar-thumb {
  position: absolute; left: 0; top: 0; width: 4px; height: 40px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
}
.scrollbar.is-hidden { display: none; }

/* ---------- rows (shared): focus is a white pill with dark text ---------- */
.row {
  position: relative; overflow: hidden; white-space: nowrap; cursor: pointer;
  border-radius: 12px; margin-bottom: 3px;
  -webkit-transition: background-color 0.15s ease, color 0.15s ease;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.row.is-active { background: rgba(255, 255, 255, 0.15); color: #edeff5; }
.row.is-focus { background: #fff; color: #0b0d14; }
.zone-off .row.is-focus { background: rgba(255, 255, 255, 0.15); color: #edeff5; }

/* List rows switch focus instantly: with a fade, fast remote presses showed two half-lit rows. */
.cat, .chan, .prog { -webkit-transition: none; transition: none; }

/* virtualized channel list: rows are absolutely positioned by JS */
.list-virtual .row { position: absolute; left: 9px; right: 9px; margin: 0; }

/* categories */
.cat { height: 44px; line-height: 44px; padding: 0 16px; font-size: 16px; color: #c9cedc; }
.cat.is-active { font-weight: 600; color: #edeff5; }
.cat.is-focus { font-weight: 600; }
.cat-count { float: right; font-size: 14px; color: #7d8398; }
.cat.is-focus .cat-count { color: #5a6075; }
.zone-off .cat.is-focus .cat-count { color: #7d8398; }

/* channels */
.chan { height: 56px; padding: 6px 12px 6px 8px; }
.chan-num { float: left; width: 26px; line-height: 44px; font-size: 14px; color: #7d8398; text-align: right; margin-right: 10px; }
/* number column width by digits of the longest number (set from JS), bar starts under the logo */
.nd-1 .chan-num { width: 10px; } .nd-1 .chan-bar { left: 88px; }
.nd-2 .chan-num { width: 18px; } .nd-2 .chan-bar { left: 96px; }
.nd-3 .chan-num { width: 26px; } .nd-3 .chan-bar { left: 104px; }
.nd-4 .chan-num { width: 34px; } .nd-4 .chan-bar { left: 112px; }
.nd-5 .chan-num { width: 42px; } .nd-5 .chan-bar { left: 120px; }
.chan-logo {
  float: left; width: 42px; height: 42px; margin-right: 13px; border-radius: 9px;
  background: #1b1f2b; overflow: hidden;
}
.chan-logo img { display: block; width: 42px; height: 42px; }
.chan-body { overflow: hidden; }
.chan-name { font-size: 17px; font-weight: 600; line-height: 22px; overflow: hidden; text-overflow: ellipsis; }
.chan-prog { font-size: 13px; line-height: 17px; color: #a3a9bf; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.chan-bar { position: absolute; left: 120px; right: 16px; bottom: 4px; height: 3px; background: rgba(255, 255, 255, 0.14); border-radius: 2px; }
.chan-bar i { display: block; height: 3px; background: #8b6cff; border-radius: 2px; }
.chan.is-focus .chan-num { color: #5a6075; }
.chan.is-focus .chan-prog { color: #3b4154; }
.chan.is-focus .chan-bar { background: rgba(0, 0, 0, 0.18); }
.chan.is-focus .chan-bar i { background: #4c5eee; }
.zone-off .chan.is-focus .chan-num { color: #7d8398; }
.zone-off .chan.is-focus .chan-prog { color: #a3a9bf; }
.zone-off .chan.is-focus .chan-bar { background: rgba(255, 255, 255, 0.14); }
.zone-off .chan.is-focus .chan-bar i { background: #8b6cff; }
.chan-fav { position: absolute; right: 14px; bottom: 8px; font-size: 14px; line-height: 14px; color: #f6c453; }
.chan.is-focus .chan-fav { color: #d48a00; }
.zone-off .chan.is-focus .chan-fav { color: #f6c453; }
.key-inline { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; }
.chan-live {
  position: absolute; right: 14px; top: 10px; width: 8px; height: 8px; border-radius: 4px;
  background: #ff5a5f; display: none;
}
.chan.is-playing .chan-live { display: block; }

/* ---------- player ---------- */
.player {
  position: absolute; left: 0; top: 0; width: 570px; height: 300px; /* real size set by JS layout() */
  background: #000; border-radius: 16px; overflow: hidden; z-index: 10;
}
.player video { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #000; }
/* Some VIDAA TVs draw the video plane at CSS-pixel size on a 1.5x panel; the setting compensates. */
.vzoom .player.is-full video { -webkit-transform: scale(1.5); transform: scale(1.5); }
.player.is-focus { box-shadow: 0 0 0 3px #fff; }
.player.is-full { border-radius: 0; box-shadow: none; }

.player-msg {
  position: absolute; left: 0; right: 0; top: 50%; margin-top: -12px;
  text-align: center; font-size: 17px; color: #a3a9bf; line-height: 24px;
}
.player-msg.is-hidden { display: none; }

.spinner {
  position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px;
  border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.15); border-top-color: #fff;
  -webkit-animation: spin 0.9s linear infinite; animation: spin 0.9s linear infinite;
  display: none;
}
.spinner.is-on { display: block; }
@-webkit-keyframes spin { to { -webkit-transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

.progress { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.18); overflow: hidden; margin-top: 8px; }
.progress-bar { height: 4px; width: 0; border-radius: 2px; background: #8b6cff; }

/* ---------- data card over the full-screen video (Down) ---------- */
.osd { position: absolute; left: 0; top: 0; right: 0; bottom: 0; opacity: 0; visibility: hidden; }
.osd-shade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 330px;
  background-image: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
}
.card {
  position: absolute; left: 36px; right: 36px; bottom: 28px; padding: 22px 26px 20px; border-radius: 18px;
  background: rgba(14, 16, 24, 0.94);
}
.card-top { height: 84px; }
.osd-logo { float: left; width: 84px; height: 84px; border-radius: 17px; margin-right: 20px; background: #1b1f2b; }
.osd-clock { float: right; font-size: 34px; font-weight: 400; line-height: 40px; color: #edeff5; }
.card-head { overflow: hidden; }
.osd-name { font-size: 26px; font-weight: 700; line-height: 34px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.osd-num { color: #7d8398; font-weight: 400; margin-right: 10px; }
.osd-tags { margin-top: 6px; height: 24px; }
.tag {
  display: inline-block; height: 24px; line-height: 22px; padding: 0 10px; margin-right: 8px; border-radius: 7px;
  border: 1px solid #a3a9bf; color: #c9cedc; font-size: 12px; font-weight: 700; letter-spacing: 0.6px;
}
.tag.is-live { background: #ff5a5f; border-color: #ff5a5f; color: #fff; }
.tag.is-arch { background: #8b6cff; border-color: #8b6cff; color: #fff; }
.osd-prog { font-size: 22px; font-weight: 600; line-height: 30px; margin-top: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.osd-times { font-size: 14px; color: #a3a9bf; height: 20px; margin-top: 4px; }
.osd-end { float: right; }
.card .progress { margin-top: 6px; }
.osd-next { font-size: 15px; color: #a3a9bf; margin-top: 12px; height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-hint { white-space: pre; margin-top: 8px; font-size: 13px; color: #7d8398; }
.ctl {
  display: inline-block; height: 30px; line-height: 30px; padding: 0 14px; margin-right: 8px; border-radius: 15px;
  background: rgba(255, 255, 255, 0.12); color: #edeff5; font-size: 13px; cursor: pointer;
}
.ctl:hover { background: #fff; color: #0b0d14; }
.card-btns { position: absolute; right: 26px; bottom: 16px; }

.numpad {
  position: absolute; right: 30px; top: 26px; padding: 8px 18px; border-radius: 12px;
  background: rgba(0, 0, 0, 0.7); font-size: 40px; font-weight: 700; display: none;
}

/* mini player "on air" strip — always describes the playing channel */
.onair {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46px; line-height: 46px; padding: 0 16px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px;
  background-image: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
}
.onair.is-hidden, .player.is-full .onair { display: none; }
.onair-badge {
  display: inline-block; height: 20px; line-height: 20px; padding: 0 8px; margin-right: 10px; border-radius: 6px;
  background: #ff5a5f; color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
  vertical-align: 1px;
}
.onair-name { font-weight: 700; margin-right: 10px; }
.onair-prog { color: #c9cedc; }

/* ---------- info (preview of the focused channel) ---------- */
.info {
  position: absolute; left: 0; right: 0; padding: 10px 16px 12px; /* height follows content; layout() measures it */
}
.info-head { height: 30px; }
.info-logo { float: left; width: 30px; height: 30px; border-radius: 7px; margin-right: 10px; }
.chip {
  float: right; height: 22px; line-height: 20px; padding: 0 9px; margin-top: 4px; margin-left: 10px; border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.6px;
  border: 1px solid #7d8398; color: #c9cedc;
}
.chip.is-live { background: #ff5a5f; border-color: #ff5a5f; color: #fff; }
.info-name { font-size: 18px; font-weight: 700; line-height: 30px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.now-title { font-size: 17px; font-weight: 600; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-time { font-size: 12px; color: #a3a9bf; margin-top: 1px; }
.now-left { float: right; }
.info .progress { margin-top: 5px; }
.next-row { margin-top: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; color: #c9cedc; }
.next-label { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; color: #7d8398; margin-right: 10px; text-transform: uppercase; }
.next-time { color: #8b6cff; margin-right: 8px; font-weight: 600; }

/* ---------- technical stream info ---------- */
.tech {
  position: absolute; right: 14px; top: 14px; width: 250px; padding: 10px 12px; border-radius: 10px;
  background: rgba(0, 0, 0, 0.72);
  font-family: Consolas, "Courier New", monospace; font-size: 12px; line-height: 18px; color: #c9f5d7;
  display: none; z-index: 3;
}
.player.is-full .tech { right: 40px; top: 120px; width: 320px; font-size: 14px; line-height: 21px; }
.tech.is-on { display: block; }
.tech-row { white-space: nowrap; overflow: hidden; }
.tech-k { display: inline-block; width: 92px; color: #7d8398; }
.player.is-full .tech-k { width: 118px; }
.tech-warn { color: #f6c453; }
.tech-bad { color: #ff8a8a; }

/* ---------- player settings panel ---------- */
.psettings {
  position: absolute; right: 0; top: 0; bottom: 0; width: 300px; padding: 22px 18px; z-index: 4;
  background: rgba(14, 16, 24, 0.95);
  visibility: hidden;
}
.player.is-full .psettings { width: 420px; padding: 40px 30px; }
.psettings-title { font-size: 20px; font-weight: 700; margin-bottom: 18px; }
.player.is-full .psettings-title { font-size: 26px; margin-bottom: 26px; }
.pset { height: 52px; line-height: 52px; padding: 0 14px; font-size: 16px; }
.pset-val { float: right; color: #c9cedc; font-weight: 600; }
.pset.is-focus .pset-val { color: #0b0d14; }
.psettings-hint { position: absolute; left: 18px; right: 18px; bottom: 18px; font-size: 12px; color: #7d8398; }

/* ---------- EPG list ---------- */
.epg { position: absolute; left: 0; right: 0; bottom: 0; }
.epg .col-title { height: 34px; line-height: 34px; font-size: 14px; }
.epg .scroller { top: 34px; bottom: 6px; }
.epg .scrollbar { top: 38px; bottom: 10px; }
.prog { height: 36px; line-height: 36px; padding: 0 12px; font-size: 15px; color: #c9cedc; margin-bottom: 2px; }
.prog-time { display: inline-block; width: 52px; color: #7d8398; }
.prog.is-now { font-weight: 600; color: #edeff5; }
.prog.is-now .prog-time { color: #ff5a5f; }
.prog.is-past { color: #7d8398; }
.prog.has-rec { color: #a3a9bf; }
.prog.has-rec .prog-time:after { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 3px; background: #8b6cff; margin-left: 5px; vertical-align: 2px; }
.prog.is-rec { color: #edeff5; background: rgba(139, 108, 255, 0.25); }
.onair.is-archive .onair-badge { background: #8b6cff; }
.prog.is-focus, .prog.is-past.is-focus, .prog.has-rec.is-focus, .prog.is-now.is-focus { color: #0b0d14; }
.prog.is-focus .prog-time, .prog.is-past.is-focus .prog-time, .prog.is-now.is-focus .prog-time { color: #5a6075; }
.zone-off .prog.is-focus, .zone-off .prog.is-now.is-focus { color: #edeff5; }
.zone-off .prog.is-focus .prog-time { color: #7d8398; }

/* ---------- hints ---------- */
.hints { position: absolute; left: 36px; right: 36px; bottom: 0; height: 52px; line-height: 52px; font-size: 14px; color: #a3a9bf; white-space: nowrap; overflow: hidden; }
.hint { float: left; margin-right: 26px; }
.hint b { font-weight: 600; color: #edeff5; margin-right: 6px; }
.key { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 8px; vertical-align: -2px; }
.key-red { background: #ff5a5f; }
.key-green { background: #4cd38c; }
.key-yellow { background: #f6c453; }
.key-blue { background: #4aa3ff; }

/* ---------- modal (playlists, settings, linking) ---------- */
.modal {
  position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(5, 6, 10, 0.82); visibility: hidden; opacity: 0;
}
.modal-box {
  position: absolute; left: 50%; top: 50%; width: 560px; height: 520px; margin: -260px 0 0 -280px;
  padding: 28px 28px 20px; border-radius: 20px; overflow: hidden;
  background: #10131c;
}
.modal-title { font-size: 24px; font-weight: 700; }
.modal-sub { font-size: 14px; color: #a3a9bf; margin-top: 6px; min-height: 20px; }
.mview { display: none; margin-top: 18px; }
.mview.is-on { display: block; }
.mlist { position: relative; height: 390px; overflow: hidden; }
.pl { height: 58px; padding: 9px 16px; }
.pl-title { font-size: 17px; font-weight: 600; line-height: 22px; overflow: hidden; text-overflow: ellipsis; }
.pl-meta { font-size: 13px; color: #a3a9bf; line-height: 18px; overflow: hidden; text-overflow: ellipsis; }
.pl.is-focus .pl-meta { color: #3b4154; }
.pl-mark { float: right; font-size: 12px; font-weight: 700; color: #8b6cff; line-height: 40px; margin-left: 10px; }
.pl.is-focus .pl-mark { color: #4c5eee; }
.pl-val { float: right; font-size: 15px; font-weight: 700; color: #c9cedc; line-height: 40px; margin-left: 12px; }
.pl.is-focus .pl-val { color: #0b0d14; }
.pl-danger .pl-title { color: #ff8a8a; }
.pl-danger.is-focus .pl-title { color: #c02a3a; }
.pl-action .pl-title { color: #edeff5; }
.pl-action.is-focus .pl-title { color: #0b0d14; }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: #7d8398; margin: 0 0 5px 4px; text-transform: uppercase; letter-spacing: 1px; }
.finput {
  display: block; width: 100%; height: 46px; padding: 0 14px; margin: 0;
  border: 2px solid transparent; border-radius: 12px; outline: none;
  background: #1b1f2b; color: #edeff5; font-size: 16px; font-family: inherit;
  -webkit-user-select: text; -moz-user-select: text; user-select: text;
}
.finput.is-focus { border-color: #fff; background: #1d212c; }
.mbtn { height: 46px; line-height: 46px; text-align: center; font-size: 16px; font-weight: 600; background: rgba(255, 255, 255, 0.08); margin-top: 8px; }
.mbtn-main { background: rgba(255, 255, 255, 0.16); }
#viewAdd { height: 392px; overflow: hidden; position: relative; }
#viewAdd .field { margin-bottom: 8px; }
#viewAdd .finput { height: 42px; }
#viewAdd .mbtn { height: 42px; line-height: 42px; }
.msel { text-align: left; padding: 0 16px; margin: 0 0 8px 0; }
.msel-label { font-size: 13px; color: #a3a9bf; text-transform: uppercase; letter-spacing: 1px; }
.msel-val { float: right; color: #edeff5; font-weight: 700; }
.msel.is-focus .msel-label, .msel.is-focus .msel-val { color: #0b0d14; }

.link-code {
  margin-top: 26px; text-align: center; font-size: 72px; font-weight: 700; letter-spacing: 14px; color: #fff;
  font-family: Consolas, "Courier New", monospace;
}
.link-text { text-align: center; font-size: 17px; color: #c9cedc; line-height: 26px; margin-top: 14px; }
.link-text b { color: #fff; }
.link-timer { text-align: center; font-size: 14px; color: #7d8398; margin: 10px 0 22px; }

.list-msg { padding: 30px 20px; text-align: center; color: #a3a9bf; font-size: 16px; line-height: 24px; }

/* ---------- category manager rows and code entry ---------- */
.pl-btn {
  float: right; margin-left: 8px; padding: 0 10px; min-width: 34px; height: 30px; margin-top: 5px;
  border-radius: 8px; text-align: center; font-size: 13px; font-weight: 700; line-height: 30px;
  color: #c9cedc; background: rgba(255, 255, 255, 0.1); cursor: pointer;
}
.pl-btn.is-off { color: #ff8a8a; background: rgba(255, 138, 138, 0.16); }
.pl-btn.is-on { color: #ffd479; background: rgba(246, 196, 83, 0.18); }
.pl.is-focus .pl-btn { color: #0b0d14; background: rgba(0, 0, 0, 0.1); }
.pl-cat.is-off .pl-title { color: #5e6478; text-decoration: line-through; }
.pl-cat.is-off.is-focus .pl-title { color: #0b0d14; }

.pl-kv { height: 40px; padding: 8px 16px; }
.pl-kv .pl-title { font-weight: 500; color: #c9cedc; line-height: 24px; }
.pl-kv.is-focus .pl-title { color: #0b0d14; }
.pl-kv .kv-val { line-height: 24px; max-width: 330px; }
.pl-diag { padding-left: 40px; position: relative; }
.diag-dot { position: absolute; left: 16px; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: #5e6478; }
.diag-dot.st-ok { background: #4cd38c; }
.diag-dot.st-warn { background: #ffb86b; }
.diag-dot.st-bad { background: #ff5a5f; }
.diag-dot.st-run { background: #8b6cff; }
.diag-val { color: #edeff5; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl.is-focus .diag-val { color: #0b0d14; }
.pl-diag .pl-meta { margin-right: 160px; }

.pin {
  position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(5, 6, 10, 0.88); visibility: hidden;
}
.pin-box {
  position: absolute; left: 50%; top: 50%; width: 360px; margin: -230px 0 0 -180px; padding: 26px 24px 22px;
  border-radius: 20px; text-align: center; background: #10131c;
}
.pin-title { font-size: 22px; font-weight: 700; }
.pin-dots { margin-top: 20px; height: 22px; }
.pin-dot {
  display: inline-block; width: 16px; height: 16px; margin: 0 8px; border-radius: 50%;
  border: 2px solid #fff; vertical-align: middle;
}
.pin-dot.is-on { background: #fff; }
.pin-msg { margin-top: 14px; min-height: 36px; font-size: 14px; color: #a3a9bf; }
.pin-keys { margin-top: 8px; font-size: 0; }
.pin-key {
  display: inline-block; width: 90px; height: 52px; margin: 0 7px 10px; border-radius: 12px;
  font-size: 22px; font-weight: 700; line-height: 52px; background: #1b1f2b; cursor: pointer;
}
.pin-key:hover { background: #fff; color: #0b0d14; }

/* ---------- action menu (Left in the category column; Right over the full-screen video) ---------- */
.amenu {
  position: absolute; left: 36px; top: 90px; width: 420px; z-index: 45; padding: 14px 10px 12px; border-radius: 18px;
  background: rgba(14, 16, 24, 0.97); visibility: hidden; opacity: 0;
}
.amenu.is-over { left: auto; right: 36px; }
.amenu-title { height: 40px; line-height: 40px; padding: 0 16px; font-size: 20px; font-weight: 700; }
.amenu-item { height: 50px; line-height: 50px; padding: 0 16px; font-size: 18px; font-weight: 600; margin-bottom: 2px; }
.amenu-note { float: right; font-size: 14px; font-weight: 400; color: #7d8398; }
.amenu-item.is-focus .amenu-note { color: #5a6075; }
.amenu-hint { padding: 8px 16px 0; font-size: 12px; color: #7d8398; }

/* ---------- channels + programme + days (Left over the full-screen video) ---------- */
.tvg {
  position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 30; visibility: hidden; opacity: 0;
  background: rgba(7, 9, 17, 0.86);
}
.tvg-head { position: absolute; left: 36px; right: 36px; top: 30px; height: 150px; }
.tvg-logo { position: absolute; left: 0; top: 4px; width: 100px; height: 100px; border-radius: 20px; background: #1b1f2b; }
.tvg-num { position: absolute; left: 6px; top: 8px; font-size: 17px; font-weight: 700; text-shadow: 0 1px 3px #000; }
.tvg-info { position: absolute; left: 126px; right: 140px; top: 0; }
.tvg-chname { font-size: 18px; color: #a3a9bf; line-height: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tvg-title { font-size: 29px; font-weight: 700; line-height: 38px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tvg-when { font-size: 17px; color: #c9cedc; line-height: 26px; }
.tvg-desc { font-size: 15px; color: #a3a9bf; line-height: 21px; height: 42px; overflow: hidden; }
.tvg-clock { position: absolute; right: 0; top: 0; font-size: 36px; line-height: 44px; }
.tvg-label { position: absolute; left: 36px; top: 178px; font-size: 22px; font-weight: 700; }
.tvg-label span { margin-left: 12px; font-size: 18px; font-weight: 400; color: #a3a9bf; }
.tvg-chans { position: absolute; left: 36px; top: 215px; width: 400px; }
.tvg-progs { position: absolute; left: 493px; top: 215px; width: 627px; }
.tvg-days { position: absolute; left: 1140px; top: 242px; width: 76px; }
.tvg-chan { position: relative; height: 48px; margin-bottom: 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.19); overflow: hidden; }
.tvg-chan-logo { position: absolute; left: 6px; top: 4px; width: 40px; height: 40px; border-radius: 9px; background: #1b1f2b; }
.tvg-chan-logo img { display: block; width: 40px; height: 40px; }
.tvg-chan-name { position: absolute; left: 66px; right: 44px; top: 0; line-height: 48px; font-size: 20px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tvg-chan-num { position: absolute; left: 8px; top: 4px; font-size: 12px; font-weight: 700; text-shadow: 0 1px 2px #000; }
.tvg-arch { position: absolute; right: 14px; top: 15px; width: 18px; height: 18px; border-radius: 9px; border: 2px solid #a3a9bf; }
.tvg-arch:before { content: ''; position: absolute; left: 6px; top: 2px; width: 2px; height: 6px; background: #a3a9bf; }
.tvg-arch:after { content: ''; position: absolute; left: 6px; top: 7px; width: 5px; height: 2px; background: #a3a9bf; }
.tvg-prog { position: relative; height: 49px; margin-bottom: 8px; border-radius: 12px; overflow: hidden; }
.tvg-prog-time { position: absolute; left: 18px; top: 0; line-height: 49px; font-size: 18px; color: #a3a9bf; }
.tvg-prog-title { position: absolute; left: 94px; right: 100px; top: 0; line-height: 49px; font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tvg-prog.is-live .tvg-prog-title { line-height: 32px; font-weight: 700; }
.tvg-prog.is-past { color: #a3a9bf; }
.tvg-prog-bar { position: absolute; left: 94px; right: 28px; top: 36px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.25); }
.tvg-prog-bar i { display: block; height: 4px; border-radius: 2px; background: #fff; }
.tvg-live { position: absolute; right: 14px; top: 8px; height: 26px; line-height: 22px; padding: 0 9px; border-radius: 6px; border: 2px solid #fff; font-size: 13px; font-weight: 700; }
.tvg-day { height: 64px; margin-bottom: 8px; border-radius: 12px; text-align: center; background: rgba(255, 255, 255, 0.0); }
.tvg-day-wd { padding-top: 8px; font-size: 15px; color: #a3a9bf; line-height: 18px; }
.tvg-day-num { font-size: 24px; font-weight: 700; line-height: 30px; }
.tvg-msg { padding: 120px 20px 0; text-align: center; font-size: 18px; color: #a3a9bf; line-height: 28px; }
.tvg-hint { white-space: pre; position: absolute; left: 36px; right: 36px; bottom: 0; height: 52px; line-height: 52px; font-size: 14px; color: #a3a9bf; }

/* a focused tvg item: white pill in the active column, outline in the others */
.tvg .is-hot { background: #fff; color: #0b0d14; }
.tvg .is-hot .tvg-prog-time, .tvg .is-hot .tvg-day-wd { color: #5a6075; }
.tvg .is-hot .tvg-arch { border-color: #5a6075; }
.tvg .is-hot .tvg-arch:before, .tvg .is-hot .tvg-arch:after { background: #5a6075; }
.tvg .is-hot .tvg-prog-bar { background: rgba(0, 0, 0, 0.2); }
.tvg .is-hot .tvg-prog-bar i { background: #0b0d14; }
.tvg .is-hot .tvg-live { border-color: #0b0d14; }
.tvg .is-cur { box-shadow: inset 0 0 0 3px #fff; }

/* ---------- toast ---------- */
.toast {
  position: absolute; left: 50%; bottom: 76px; width: 420px; margin-left: -210px; z-index: 50;
  padding: 14px 20px; border-radius: 14px; text-align: center; font-size: 16px;
  background: rgba(14, 16, 24, 0.97);
  opacity: 0; visibility: hidden;
}

/* fullscreen: hide the UI underneath the player */
.app.is-full .col-cats, .app.is-full .col-chans, .app.is-full .info,
.app.is-full .epg, .app.is-full .hints, .app.is-full .topbar { visibility: hidden; }

/* ---------- light graphics (setting "Облегчённая графика") ---------- */
body.lite * { -webkit-transition: none !important; transition: none !important; box-shadow: none !important; }
body.lite .app { background-image: none; }
body.lite .player.is-focus { box-shadow: 0 0 0 3px #fff !important; }
