/* LOVUL webOS — same visual language as the Android TV app (dark glass panels, white focus frame,
   white info pills, orange "now" strip, wine / indigo / teal home tiles). Canvas is fixed 1920x1080. */
:root {
  --primary: #38BDF8;
  --accent: #FF7A00;
  --accent-rgb: 255,122,0;
  --accent-fg: #000;
  --accent-bg: #FF7A00;
  --red: #E50914;
  --bg: #060A0F;
  --panel: rgba(0, 0, 0, 0.42);   /* was .55 - lighter (user) */
  --panel-strong: rgba(0, 0, 0, 0.65);   /* was .78 */
  --glass: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.13);
  --text: #FFFFFF;
  --muted: #fff;
  --dim: #fff;
  --focus: #FFFFFF;
  --sel: rgba(150, 32, 58, 0.55);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 1920px; height: 1080px; overflow: hidden; background: var(--bg); color: var(--text);
  font-family: "LG Smart UI", "Museo Sans", Inter, Roboto, Arial, sans-serif; font-size: 26px; }
button, input { font: inherit; color: inherit; background: none; border: none; outline: none; }
#bg { position: fixed; inset: 0; background: url(../img/bg.jpg) center/cover no-repeat; }
#bg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.30); }
.hidden { display: none !important; }
.screen { position: fixed; inset: 0; display: none; }
.screen.active { display: block; }
.cnt { color: var(--dim); font-size: 22px; padding: 2px 10px; background: rgba(255,255,255,.07); }

/* focus: white frame + slight lift */
.focusable { transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease; }
.focusable.focused { box-shadow: 0 0 0 3px var(--focus); transform: scale(1.03); z-index: 3; position: relative; }

.ico { width: 92px; height: 92px; fill: none; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.ico.sm { width: 36px; height: 36px; stroke-width: 1.8; }
.ico.xs { width: 28px; height: 28px; stroke-width: 2; flex: 0 0 auto; }
.ico.fillc { fill: #fff; stroke: none; }

/* Splash */
#splash img { width: 1920px; height: 1080px; object-fit: cover; }
.splash-bar { position: absolute; left: 760px; top: 820px; width: 400px; height: 6px; background: rgba(255,255,255,.15); }
#splashFill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #FDE047); transition: width .3s; }
.splash-text { position: absolute; top: 850px; width: 100%; text-align: center; color: var(--muted); font-size: 24px; }

/* Login */
.login-box { position: absolute; left: 560px; top: 90px; width: 800px; padding: 44px 48px; background: var(--panel-strong); border: 1px solid var(--line); }
.login-logo { display: block; width: 300px; margin: 0 auto 14px; }
.login-sub { text-align: center; color: var(--muted); margin-bottom: 30px; }
.tabs { display: flex; margin-bottom: 26px; }
.tab { flex: 1; height: 66px; background: rgba(255,255,255,.05); color: var(--muted); font-weight: bold; }
.tab.active { background: linear-gradient(90deg, #3B82F6, #1D4ED8); color: #fff; }
.form { display: flex; flex-direction: column; gap: 16px; }
.field { height: 70px; padding: 0 22px; background: rgba(0,0,0,.55); border: 1px solid var(--line); }
.field::placeholder { color: #fff; }
.login-actions { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.btn { height: 72px; padding: 0 34px; background: rgba(0,0,0,.55); border: 1px solid var(--line); font-weight: bold; display: inline-flex; align-items: center; justify-content: center; gap: 12px; }
.btn.primary { background: var(--red); border-color: var(--red); }
.btn.ghost { background: rgba(255,255,255,.12); }
.login-msg { min-height: 40px; margin-top: 20px; text-align: center; color: var(--accent); }

/* Home */
.topbar { position: absolute; left: 50px; right: 50px; top: 22px; height: 86px; display: flex; align-items: center; }
.brand { position: relative; }
.top-logo { height: 66px; display: block; }
.ver { position: absolute; right: 2px; bottom: -14px; font-size: 18px; font-weight: bold; }
.clock { margin-left: 46px; display: flex; gap: 22px; align-items: center; }
#clockTime { font-size: 58px; font-weight: bold; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
#clockDate { font-size: 32px; }
.top-actions { margin-left: auto; display: flex; gap: 14px; }
.icon-btn { width: 76px; height: 76px; background: var(--panel); display: flex; align-items: center; justify-content: center; }
.searchbar { position: absolute; left: 50px; right: 50px; top: 124px; height: 82px; }
.sb-field { width: 100%; height: 82px; display: flex; align-items: center; gap: 20px; padding: 0 12px 0 28px; background: var(--panel); text-align: left; color: var(--muted); font-size: 28px; }
.sb-field span:nth-child(2) { flex: 1; }
.sb-go { height: 58px; padding: 0 30px; display: flex; align-items: center; background: rgba(255,255,255,.14); color: #fff; font-weight: bold; }
.quick { position: absolute; left: 50px; right: 50px; top: 228px; display: flex; justify-content: center; gap: 22px; }
.qbtn { height: 70px; padding: 0 34px; background: var(--panel); display: flex; align-items: center; gap: 16px; font-weight: bold; font-size: 25px; letter-spacing: .5px; }
.home-cards { position: absolute; left: 50px; right: 50px; top: 322px; height: 406px; display: flex; gap: 40px; }
.home-card { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.home-card.c-live { background: rgba(84, 18, 34, 0.78); }
.home-card.c-movie { background: rgba(38, 32, 74, 0.78); }
.home-card.c-series { background: rgba(22, 56, 62, 0.78); }
.home-card .hc-icon { margin-bottom: 18px; }
.hc-title { font-size: 44px; letter-spacing: 1px; text-transform: uppercase; }
.hc-count { font-size: 30px; }
.hc-status { font-size: 25px; padding: 6px 18px; background: rgba(0,0,0,.35); color: var(--accent); min-height: 44px; }
.hc-status.ok { color: #fff; }
.row-title { position: absolute; left: 50px; top: 748px; font-size: 24px; text-transform: uppercase; }
.strip { position: absolute; left: 44px; right: 44px; top: 784px; height: 222px; display: flex; gap: 30px; overflow: hidden; padding: 6px; }
.na-card { flex: 0 0 284px; height: 206px; background: var(--panel-strong); display: flex; gap: 12px; padding: 6px; text-align: left; position: relative; }
.na-img { flex: 0 0 104px; height: 194px; background: #0b1118 center/cover no-repeat; position: relative; }
.na-badge { position: absolute; left: 6px; top: 6px; padding: 1px 8px; font-size: 19px; font-weight: bold; background: rgba(0,0,0,.65); }
.na-info { flex: 1; min-width: 0; display: flex; flex-direction: column; padding-top: 6px; }
.na-rate { align-self: flex-end; background: #fff; color: #000; font-weight: bold; font-size: 20px; padding: 0 8px; }
.na-name { font-weight: bold; font-size: 23px; line-height: 28px; margin-top: 8px; max-height: 56px; overflow: hidden; }
.na-genre { color: var(--muted); font-size: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.na-date { margin-top: auto; align-self: flex-end; color: var(--muted); font-size: 21px; padding-bottom: 4px; }
.home-foot { position: absolute; left: 50px; right: 50px; bottom: 16px; height: 52px; display: flex; align-items: center; gap: 24px; color: var(--dim); font-size: 23px; }
.home-foot .acc { display: flex; align-items: center; gap: 12px; }
.home-foot .acc .ico { fill: var(--dim); }
#accName { color: #fff; }
.home-foot .upd { margin-left: auto; }
.foot-btn { height: 50px; padding: 0 20px; display: flex; align-items: center; gap: 10px; background: var(--panel); color: #fff; font-size: 23px; }

/* Browse */
.navbar { position: absolute; left: 22px; right: 22px; top: 14px; height: 70px; display: flex; gap: 10px; }
.nb { width: 66px; height: 66px; display: flex; align-items: center; justify-content: center; background: var(--panel); }
.nb.on { background: var(--sel); }
.hero { position: absolute; left: 28px; right: 28px; top: 104px; height: 226px; background: var(--panel); border: 1px solid var(--line); display: flex; gap: 20px; padding: 12px; }
.h-art { flex: 0 0 384px; height: 200px; background: #0b1118 center/contain no-repeat; position: relative; }
.h-art.cover { background-size: cover; }
.h-badge { position: absolute; right: 8px; top: 8px; padding: 2px 10px; font-size: 19px; background: rgba(0,0,0,.8); }
.h-badge:empty, #dBadge:empty { display: none; }
/* home right panel ("pick up where you left off") */
.qpanel { position: fixed; right: 0; top: 0; bottom: 0; width: 660px; z-index: 40; background: linear-gradient(270deg, rgba(4,8,14,.97) 80%, rgba(4,8,14,.9)); border-left: 1px solid var(--line); padding: 30px 24px; display: flex; flex-direction: column; box-shadow: -30px 0 60px rgba(0,0,0,.6); }
.qpanel.hidden { display: none; }
.q-dice span { text-transform: uppercase; }
.q-dice circle { fill: currentColor; }
.qp-head { font-size: 32px; font-weight: bold; margin: 0 6px 6px; }
.qp-body { flex: 1; overflow: hidden; padding: 4px; }
.qp-sec { font-size: 21px; font-weight: bold; opacity: .65; text-transform: uppercase; letter-spacing: 1px; margin: 18px 6px 10px; }
.qp-row { display: flex; align-items: center; gap: 16px; width: 100%; padding: 10px 12px; background: rgba(255,255,255,.05); border-radius: 10px; margin-bottom: 8px; text-align: left; }
.qp-row.focused { transform: none; box-shadow: inset 0 0 0 3px var(--focus); background: rgba(255,255,255,.12); }
.qp-img { flex: 0 0 150px; height: 86px; border-radius: 6px; background-color: #0b1118; background-size: cover, 56px; background-position: center; background-repeat: no-repeat; }
.qp-img.live { background-size: contain, 56px; }
.qp-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.qp-name { font-size: 25px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qp-sub { font-size: 19px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qp-bar { height: 7px; background: rgba(255,255,255,.18); border-radius: 4px; overflow: hidden; margin-top: 3px; }
.qp-bar span { display: block; height: 100%; background: var(--accent); }
.qp-left { font-size: 18px; opacity: .85; }
.qp-clear { margin-top: 12px; flex: 0 0 62px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 24px; background: rgba(225,29,72,.2); border-radius: 10px; }
.qp-clear.focused { transform: none; box-shadow: inset 0 0 0 3px var(--focus); background: rgba(225,29,72,.35); }
.qp-clear.hidden { display: none; }
.h-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.h-top { display: flex; align-items: center; gap: 16px; }
.h-title { flex: 1; font-size: 34px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-cat { background: #fff; color: #000; font-size: 21px; padding: 4px 14px; max-width: 520px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-cat:empty { display: none; }
.now-box { margin-top: 10px; height: 100px; background: rgba(255,255,255,.10); border-left: 5px solid var(--accent); padding: 8px 14px; overflow: hidden; }
.nb-line { font-size: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-line b:first-child, .nb-line b:nth-child(2) { color: var(--accent); }
.nb-desc { color: var(--muted); font-size: 21px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-prog { height: 5px; background: rgba(255,255,255,.15); margin-top: 12px; }
#hNowFill { height: 100%; width: 0; background: var(--accent); }
.next-bar { margin-top: 8px; padding: 4px 14px; background: rgba(255,255,255,.06); font-size: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.next-bar b { color: var(--accent); }
.pills { display: flex; gap: 10px; margin-top: 12px; flex-wrap: nowrap; overflow: hidden; }
.pill { background: #fff; color: #000; font-size: 21px; padding: 3px 12px; white-space: nowrap; }
.h-plot { margin-top: 12px; color: #fff; font-size: 22px; line-height: 30px; max-height: 90px; overflow: hidden; }
.b-body { position: absolute; left: 28px; right: 28px; top: 346px; bottom: 20px; display: flex; gap: 22px; }
.panel { background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.p-head { height: 70px; flex: 0 0 70px; display: flex; align-items: center; gap: 16px; padding: 0 18px; font-size: 26px; }
.cats-panel { width: 470px; }
.cats-panel .p-head span:first-child { font-weight: bold; }
.cats { flex: 1; overflow: hidden; padding: 6px 12px 12px; }
.cat { display: flex; width: 100%; height: 64px; align-items: center; padding: 0 16px; gap: 12px; text-align: left; background: rgba(255,255,255,.04); margin-bottom: 8px; }
.cat .c-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat .c-n { color: var(--muted); font-size: 21px; padding: 0 8px; background: rgba(255,255,255,.07); }
.cat.current { background: var(--sel); border-left: 5px solid #e11d48; }
.items-panel { flex: 1; min-width: 0; }
.items-panel .p-head #bTitle { font-size: 28px; min-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 560px; }
.b-search { flex: 1; height: 52px; padding: 0 18px; background: rgba(0,0,0,.45); border: 1px solid var(--line); font-size: 23px; }
.items { flex: 1; overflow: hidden; padding: 6px 12px 12px; }
.grid { display: flex; flex-wrap: wrap; gap: 22px; padding: 4px; }
.poster { width: 196px; height: 344px; background: var(--panel-strong); text-align: left; position: relative; }
.poster .pimg { width: 196px; height: 282px; background: #0b1118 center/cover no-repeat; }
.poster.live .pimg { background-size: contain; background-color: #101823; }
.poster .pname { padding: 8px 10px; font-size: 20px; line-height: 24px; height: 58px; overflow: hidden; }
.poster .prating { position: absolute; right: 6px; top: 6px; background: #fff; color: #000; font-size: 18px; padding: 1px 7px; font-weight: bold; }
.poster .ptype { position: absolute; left: 6px; top: 6px; background: rgba(0,0,0,.75); font-size: 17px; padding: 1px 7px; font-weight: bold; }
.chan { display: flex; width: 100%; height: 86px; align-items: center; gap: 18px; padding: 0 20px; background: rgba(255,255,255,.04); margin-bottom: 8px; text-align: left; }
.chan .num { width: 52px; color: var(--muted); text-align: center; }
.chan .logo { flex: 0 0 64px; height: 64px; background: #101823 center/contain no-repeat; border: 1px solid var(--line); }
.chan .ctext { flex: 1; min-width: 0; }
.chan .cname { font-size: 27px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chan .cepg { font-size: 20px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.chan .cepg b { color: var(--accent); }
.chan .fav, .poster .fav { color: #fb7185; }
.chan .heart { width: 30px; height: 30px; stroke: #fff; fill: none; stroke-width: 1.8; flex: 0 0 auto; }
.chan .heart.on { fill: #fb7185; stroke: #fb7185; }
.empty { color: var(--muted); padding: 40px; }

/* Collection */
.c-head { position: absolute; left: 40px; right: 40px; top: 24px; height: 80px; display: flex; align-items: center; gap: 24px; }
.c-title { font-size: 40px; text-transform: uppercase; min-width: 300px; }
.c-body { position: absolute; left: 40px; right: 40px; top: 124px; bottom: 24px; overflow: hidden; padding: 6px; }
.c-body .grid { gap: 26px; }

/* Detail */
.d-side { position: absolute; left: 32px; top: 14px; width: 330px; bottom: 20px; display: flex; flex-direction: column; gap: 14px; }
.side-btn { height: 60px; background: var(--panel); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 23px; }
.d-poster { width: 330px; height: 330px; background: #0b1118 center/cover no-repeat; position: relative; }
.d-actions { display: flex; flex-direction: column; gap: 12px; }
.d-actions .btn { height: 62px; font-size: 23px; width: 100%; }
.seasons-box { background: var(--panel); border: 1px solid var(--line); padding: 12px; flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.sb-title { text-align: center; font-size: 22px; margin-bottom: 10px; }
.seasons { display: flex; flex-direction: column; gap: 10px; overflow: hidden; padding: 4px; }
.season { height: 64px; background: rgba(255,255,255,.06); }
.season.current { background: rgba(71, 85, 105, .75); box-shadow: inset 0 0 0 2px #fff; }
.d-main { position: absolute; left: 392px; right: 32px; top: 14px; bottom: 20px; background: var(--panel); border: 1px solid var(--line); padding: 18px 22px; display: flex; flex-direction: column; }
.d-top { display: flex; align-items: center; gap: 20px; }
.d-title { flex: 1; font-size: 46px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-box { margin-top: 18px; background: rgba(0,0,0,.35); border: 1px solid var(--line); padding: 16px 18px; }
.d-label { display: inline-block; font-size: 20px; padding: 3px 12px; border: 1px solid var(--line); margin-bottom: 10px; }
.d-plot { font-size: 26px; line-height: 36px; max-height: 144px; overflow: hidden; }
.d-eps { margin-top: 18px; flex: 1; min-height: 0; display: flex; flex-direction: column; background: rgba(0,0,0,.35); border: 1px solid var(--line); padding: 12px 14px; }
.d-eps-title { font-size: 24px; margin-bottom: 10px; }
.episodes { flex: 1; overflow: hidden; padding: 4px; }
.ep { display: flex; width: 100%; height: 108px; align-items: center; gap: 22px; padding: 10px 18px; background: rgba(0,0,0,.45); border: 1px solid var(--line); margin-bottom: 12px; text-align: left; }
.ep .ethumb { flex: 0 0 140px; height: 84px; background: #0b1118 url(../img/emblem.png) center/56px no-repeat; background-size: cover; }
.ep .et { flex: 1; font-size: 25px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep .edur { background: var(--accent); color: #000; font-weight: bold; font-size: 22px; padding: 4px 12px; }
.ep .ew { color: var(--primary); font-size: 22px; }

/* Player */
#player { background: #000; }
#player { overflow: hidden; }
#video { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; background: #000; transform-origin: 50% 50%; }
.p-clock { position: absolute; right: 48px; top: 36px; z-index: 2; font-size: 38px; font-weight: bold; text-shadow: 0 2px 6px #000; }
/* CANLI badge under the clock (top right) */
.p-livepos { position: absolute; right: 48px; top: 96px; z-index: 2; margin: 0; }
.p-livepos.hidden { display: none; }
.p-overlay { position: absolute; inset: 0; pointer-events: none; transition: none; }
.p-overlay.off { opacity: 0; }
.p-top { position: absolute; left: 0; right: 0; top: 0; padding: 36px 64px 90px; background: linear-gradient(rgba(0,0,0,.8), transparent); }
.live-pill { display: inline-block; background: #E11D24; font-weight: bold; font-size: 22px; padding: 4px 14px; margin-bottom: 12px; }
.p-title { font-size: 44px; font-weight: bold; }
.p-sub { color: var(--muted); margin-top: 8px; }
.p-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 80px 64px 40px; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.p-epg { margin-bottom: 18px; line-height: 38px; }
.p-epg b { color: var(--accent); }
.p-progress { height: 8px; background: rgba(255,255,255,.2); }
.p-fill { height: 100%; width: 0; background: var(--accent); }
.p-times { display: flex; justify-content: space-between; margin-top: 12px; color: var(--muted); font-size: 22px; }
.zap { position: absolute; right: 0; top: 420px; width: 620px; padding: 22px 28px 24px; background: rgba(0,0,0,.8); border-radius: 12px 0 0 12px; }
.ch-num { display: inline-block; background: #fff; color: #000; border-radius: 8px; padding: 0 12px; margin-right: 14px; font-weight: bold; line-height: 1.25; vertical-align: 2px; }
.z-name { font-size: 34px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.z-line { height: 3px; background: rgba(255,255,255,.25); margin: 12px 0 14px; }
.z-epg { font-size: 25px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.z-prog { height: 5px; background: rgba(255,255,255,.18); margin-top: 14px; }
#zFill { height: 100%; width: 0; background: var(--accent); }
.p-spinner { position: absolute; left: 920px; top: 500px; width: 80px; height: 80px; border: 8px solid rgba(255,255,255,.2); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.p-error { position: absolute; left: 460px; right: 460px; top: 420px; padding: 36px; background: rgba(0,0,0,.9); border-top: 4px solid var(--accent); text-align: center; line-height: 40px; }

/* Modal / toast */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 50; }
.m-box { position: absolute; left: 610px; top: 380px; width: 700px; padding: 44px; background: #0b1118; border-top: 4px solid var(--accent); }
.m-text { font-size: 32px; text-align: center; line-height: 44px; }
.m-actions { display: flex; gap: 18px; margin-top: 36px; }
.m-actions .btn { flex: 1; }
.toast { position: fixed; left: 50%; bottom: 60px; transform: translateX(-50%); padding: 18px 34px; background: rgba(0,0,0,.88); border: 0; z-index: 60; }   /* no coloured edge, no frame (user) */

/* image + small centred LOVUL emblem as fallback layer */
.na-img { background-size: cover, 56px; background-repeat: no-repeat; background-position: center; }
.poster .pimg { background-size: cover, 80px; background-repeat: no-repeat; background-position: center; }
.poster.live .pimg { background-size: contain, 80px; }
.chan .logo { background-size: contain, 34px; background-repeat: no-repeat; background-position: center; }
.h-art { background-size: contain, 90px; background-repeat: no-repeat; background-position: center; }
.h-art.cover { background-size: cover, 90px; }
.d-poster { height: 470px; flex: 0 0 auto; background-size: cover, 120px; background-repeat: no-repeat; background-position: center; }
/* Settings */
.nb-right { margin-left: auto; }
.s-body { position: absolute; left: 40px; right: 40px; top: 124px; bottom: 30px; display: flex; gap: 30px; }
.s-col { flex: 0 0 1060px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; padding: 6px; }
.s-sec { font-size: 24px; color: var(--accent); margin: 10px 0 0 4px; text-transform: uppercase; }
.s-row { display: flex; align-items: center; gap: 20px; min-height: 92px; padding: 14px 24px; background: var(--panel); border: 1px solid var(--line); text-align: left; }
.s-row .s-txt { flex: 1; }
.s-row .s-name { font-size: 28px; }
.s-row .s-desc { font-size: 21px; color: var(--muted); margin-top: 4px; }
.s-badge { font-size: 22px; font-weight: bold; padding: 4px 14px; background: #16A34A; }
.s-badge.off { background: #475569; }
.s-check { width: 48px; height: 48px; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.s-check.off { background: transparent; box-shadow: inset 0 0 0 3px var(--accent); }
.s-check svg { width: 32px; height: 32px; stroke: #fff; fill: none; stroke-width: 3; }
.s-check.off svg { display: none; }
.s-row.danger .s-name { color: #fda4af; }
.s-info { flex: 1; background: var(--panel); border: 1px solid var(--line); padding: 28px; font-size: 24px; line-height: 38px; color: #fff; }
.s-info b { color: #fff; }
.s-info .s-logo { width: 260px; display: block; margin-bottom: 20px; }
.s-info .s-legal { margin-top: 24px; font-size: 20px; line-height: 30px; color: var(--muted); }
/* Player control bar + pop-up menu */
.p-ctrl { position: absolute; left: 0; right: 0; bottom: 150px; display: flex; justify-content: center; gap: 18px; z-index: 5; }
.pc-btn { min-width: 150px; height: 96px; padding: 0 18px; background: rgba(0,0,0,.72); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 20px; }
.pc-btn .ico { width: 38px; height: 38px; }
.pc-btn.focused { background: var(--accent); }
.p-menu { position: absolute; right: 60px; bottom: 270px; width: 560px; max-height: 640px; background: rgba(0,0,0,.88); border: 1px solid var(--line); border-top: 4px solid var(--accent); padding: 18px; z-index: 6; display: flex; flex-direction: column; }
.pm-title { font-size: 28px; font-weight: bold; margin-bottom: 12px; }
.pm-list { overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 4px; }
.pm-item { display: flex; align-items: center; gap: 16px; height: 64px; flex: 0 0 64px; padding: 0 18px; background: rgba(255,255,255,.06); text-align: left; }
.pm-dot { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px #fff; flex: 0 0 auto; }
.pm-item.on .pm-dot { background: var(--accent); box-shadow: none; }
.pm-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-sub { color: var(--muted); font-size: 20px; }
video::cue { font-size: 44px; background: rgba(0,0,0,.6); }
/* home status pill fades once lists are up to date */
.hc-status.gone { display: none; }
/* settings: value pill, pick list, PIN */
.s-val { font-size: 24px; color: #fff; padding: 6px 16px; background: rgba(255,255,255,.1); white-space: nowrap; }
.m-actions.vertical { flex-direction: column; max-height: 560px; overflow: hidden; }
.m-actions.vertical .btn { flex: 0 0 64px; height: 64px; justify-content: flex-start; padding: 0 24px; }
.btn.pick.on { box-shadow: inset 6px 0 0 var(--accent); }
.swatch { width: 30px; height: 30px; display: inline-block; margin-right: 8px; }
.pin-in { font-size: 40px; letter-spacing: 16px; text-align: center; }
.m-box { top: 200px; }
/* EPG guide */
.e-now { margin-left: auto; font-size: 30px; color: var(--muted); }
.e-body { position: absolute; left: 40px; right: 40px; top: 120px; bottom: 24px; display: flex; gap: 20px; }
.e-cats { width: 380px; }
.e-chans { width: 600px; }
.e-chans .chan { height: 78px; }
.e-progs { flex: 1; min-width: 0; }
.e-list { flex: 1; overflow: hidden; padding: 8px 14px 14px; }
.prog { display: flex; gap: 18px; padding: 14px 16px; margin-bottom: 8px; background: rgba(255,255,255,.04); border-left: 5px solid transparent; }
.prog.past { opacity: .5; }
.prog.now { background: rgba(255,255,255,.10); border-left-color: var(--accent); }
.prog .pt { flex: 0 0 150px; color: var(--muted); font-size: 23px; font-variant-numeric: tabular-nums; }
.prog.now .pt { color: var(--accent); font-weight: bold; }
.prog .pb { flex: 1; min-width: 0; }
.prog .pn { font-size: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog .pd { font-size: 21px; color: var(--muted); margin-top: 4px; max-height: 58px; overflow: hidden; }
.prog .pp { height: 5px; background: rgba(255,255,255,.15); margin-top: 8px; }
.prog .pp div { height: 100%; background: var(--accent); }
/* home as a flexible column: works at every text scale (tiles take the free height) */
#home.active { display: flex; flex-direction: column; padding: 22px 50px 10px; }
#home .topbar, #home .searchbar, #home .quick, #home .home-cards, #home .row-title, #home .strip, #home .home-foot {
  position: relative; left: auto; right: auto; top: auto; bottom: auto; }
#home .topbar { flex: 0 0 86px; }
#home .searchbar { flex: 0 0 82px; margin-top: 16px; }
#home .quick { flex: 0 0 70px; margin-top: 22px; }
#home .home-cards { flex: 1 1 auto; height: auto; min-height: 180px; margin-top: 24px; }
#home .row-title { flex: 0 0 auto; margin-top: 18px; }
#home .strip { flex: 0 0 222px; margin: 8px -6px 0; }
#home .home-foot { flex: 0 0 52px; margin-top: 4px; }#home .home-card { overflow: hidden; gap: 10px; }
#home .home-card .hc-icon { margin-bottom: 6px; }
/* quick channel drawer + info panel (player) */
.p-drawer { position: absolute; right: 0; top: 0; bottom: 0; width: 680px; background: rgba(0,0,0,.86); border-left: 1px solid var(--line); z-index: 7; display: flex; flex-direction: column; padding: 26px 18px 18px; }
.pd-head { display: flex; align-items: center; gap: 14px; font-size: 28px; font-weight: bold; padding: 0 8px 14px; }
.pd-head #pdCat { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-arrow { color: var(--accent); font-size: 40px; line-height: 1; }
.pd-list { flex: 1; overflow: hidden; padding: 4px; }
.pd-item { display: flex; width: 100%; height: 84px; align-items: center; gap: 16px; padding: 0 16px; margin-bottom: 8px; background: rgba(255,255,255,.05); text-align: left; }
.pd-item.on { box-shadow: inset 5px 0 0 var(--accent); background: rgba(255,255,255,.1); }
.pd-item .num { width: 52px; color: var(--muted); text-align: center; }
.pd-item .logo { flex: 0 0 64px; height: 56px; background: #101823 center/contain no-repeat; background-size: contain, 30px; background-repeat: no-repeat; background-position: center; }
.pd-item .ctext { flex: 1; min-width: 0; }
.pd-item .cname { font-size: 25px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-item .cepg { font-size: 20px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-item .cepg b { color: var(--accent); }
.p-info { position: absolute; left: 64px; right: 64px; bottom: 150px; background: rgba(0,0,0,.84); border-top: 4px solid var(--accent); padding: 24px 30px; z-index: 6; }
.pi-title { font-size: 38px; font-weight: bold; }
.pi-sub { color: var(--muted); margin-top: 4px; }
.pi-body { margin-top: 14px; }
.pi-prog { padding: 10px 0; border-top: 1px solid var(--line); }
.pi-prog.now .pi-time { color: var(--accent); font-weight: bold; }
.pi-time { display: inline-block; width: 190px; color: var(--muted); }
.pi-name { font-size: 28px; }
.pi-desc { color: #fff; font-size: 22px; line-height: 32px; margin-top: 6px; max-height: 64px; overflow: hidden; }
.pi-bar { height: 6px; background: rgba(255,255,255,.15); margin-top: 8px; }
.pi-bar div { height: 100%; background: var(--accent); }
.e-ref { margin-left: auto; }
.e-ref + .e-now { margin-left: 24px; }
/* bigger hero (+50 %) with programme summary */
.hero { height: 340px; padding: 14px; gap: 24px; }
.h-art { flex: 0 0 560px; height: 310px; }
.h-title { font-size: 42px; }
.h-cat { font-size: 23px; }
.now-box { height: 190px; padding: 12px 18px; }
.nb-line { font-size: 30px; }
.nb-time { font-size: 23px; color: var(--muted); margin-top: 4px; }
.nb-desc { font-size: 23px; line-height: 32px; white-space: normal; max-height: 64px; margin-top: 6px; color: #fff; }
.nb-prog { margin-top: 10px; height: 6px; }
.next-bar { font-size: 23px; padding: 6px 18px; margin-top: 10px; }
.pills .pill { font-size: 23px; padding: 4px 14px; }
.h-plot { font-size: 25px; line-height: 35px; max-height: 175px; margin-top: 16px; }
.b-body { top: 462px; }

/* list rows: frame drawn inside the row, no zoom (it spilled over the panel edges) */
.chan.focused, .cat.focused, .ep.focused, .s-row.focused, .pd-item.focused, .pm-item.focused, .season.focused {
  transform: none; box-shadow: inset 0 0 0 3px var(--focus); }
/* side menu */
.side-menu { position: fixed; left: 0; top: 0; bottom: 0; width: 460px; z-index: 40; background: linear-gradient(90deg, rgba(4,8,14,.97) 80%, rgba(4,8,14,.88)); border-right: 1px solid var(--line); padding: 30px 22px; display: flex; flex-direction: column; box-shadow: 30px 0 60px rgba(0,0,0,.6); }
.side-menu.hidden { display: none; }
.sm-logo { width: 220px; margin: 0 0 26px 14px; }
.sm-list { display: flex; flex-direction: column; gap: 8px; overflow: hidden; padding: 4px; }
.sm-item { display: flex; align-items: center; gap: 20px; height: 70px; padding: 0 20px; background: transparent; text-align: left; font-size: 27px; }
.sm-item .ico { width: 34px; height: 34px; stroke-width: 1.8; flex: 0 0 auto; }
.sm-item.on { background: var(--sel); box-shadow: inset 5px 0 0 #e11d48; }
.sm-item.focused { transform: none; box-shadow: inset 0 0 0 3px var(--focus); background: rgba(255,255,255,.08); }
.sm-item.exit { margin-top: 10px; color: #fda4af; }
/* hero art exactly as wide as the categories panel below it (edges line up) */
.hero { padding: 14px 14px 14px 0; }
.h-art { flex: 0 0 470px; width: 470px; height: 312px; margin-left: -1px; }
.pill, .h-cat { color: #000 !important; font-weight: bold; }
/* pick lists in the modal: draw the focus frame inside (the list clips anything outside) */
.m-actions.vertical { padding: 4px; }
.m-actions.vertical .btn.focused { transform: none; box-shadow: inset 0 0 0 3px var(--focus); background: rgba(255,255,255,.12); }
.m-actions.vertical .btn.pick.on.focused { box-shadow: inset 0 0 0 3px var(--focus), inset 8px 0 0 var(--accent); }
/* LEFT key panel: categories | channels (always open) */
.p-catpanel { position: absolute; left: 0; top: 0; bottom: 0; width: 1180px; z-index: 7; display: flex; background: linear-gradient(90deg, rgba(0,0,0,.93) 85%, rgba(0,0,0,.8)); border-right: 1px solid var(--line); }
.pc-col { display: flex; flex-direction: column; padding: 26px 14px 18px; min-height: 0; }
.pc-left { width: 440px; border-right: 1px solid var(--line); }
.pc-right { flex: 1; min-width: 0; padding-top: 30px; }
.pc-list { flex: 1; overflow: hidden; padding: 4px; }
.pc-cat { display: flex; width: 100%; height: 66px; align-items: center; gap: 12px; padding: 0 16px; margin-bottom: 8px; background: rgba(255,255,255,.04); text-align: left; font-size: 25px; }
.pc-cat .c-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-cat .c-n { color: var(--muted); font-size: 20px; }
.pc-cat.on { box-shadow: inset 5px 0 0 var(--accent); }
.pc-cat.sel { background: var(--sel); }
.pc-cat.focused { transform: none; box-shadow: inset 0 0 0 3px var(--focus); }
.pc-cat.on.focused { box-shadow: inset 0 0 0 3px var(--focus), inset 8px 0 0 var(--accent); }
/* EPG: "only channels with a guide" switch */
.e-only { margin-left: auto; gap: 14px; }
.e-only .eo-state { font-weight: bold; padding: 2px 12px; background: #475569; font-size: 20px; }
.e-only.on .eo-state { background: #16A34A; }
.e-only + .e-ref { margin-left: 14px; }

/* EPG: programme rows are focusable; the focused one opens a pop-up with the full summary */
button.prog { width: 100%; text-align: left; display: flex; }
.prog.focused { transform: none; box-shadow: inset 0 0 0 3px var(--focus); }
.e-pop { position: absolute; right: 40px; bottom: 34px; width: 820px; max-height: 470px; z-index: 8; background: rgba(6,10,15,.97);
  border: 1px solid var(--line); border-top: 4px solid var(--accent); padding: 22px 26px; box-shadow: 0 20px 50px rgba(0,0,0,.7); overflow: hidden; }
.pop-time { color: var(--accent); font-weight: bold; font-size: 24px; }
.pop-live { background: #E11D24; color: #fff; font-size: 18px; padding: 2px 10px; margin-left: 10px; }
.pop-title { font-size: 34px; font-weight: bold; margin-top: 6px; }
.pop-desc { font-size: 24px; line-height: 35px; color: #fff; margin-top: 12px; max-height: 315px; overflow: hidden; }
.pop-hint { margin-top: 12px; color: var(--muted); font-size: 21px; }

/* EPG pop-up sits inside the programme panel: from its left frame to its right frame, at the bottom;
   while it is open the programme list ends above it, so the focused row is never hidden */
.e-progs { position: relative; }
.e-pop { left: 0; right: 0; bottom: 0; width: auto; height: 380px; max-height: none; box-shadow: 0 -10px 30px rgba(0,0,0,.6); }
.e-pop .pop-desc { max-height: 210px; }
.e-progs.has-pop .e-list { flex: 0 0 auto; height: calc(100% - 70px - 380px); }
/* info panel head: channel logo + title + stream badges (Android style) */
.pi-head { display: flex; align-items: center; gap: 26px; }
.pi-logo { flex: 0 0 150px; height: 110px; background: #101823 center no-repeat; background-size: contain, 50px; border: 1px solid var(--line); }
.pi-htext { flex: 1; min-width: 0; }
.pi-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.pi-badge { font-size: 20px; font-weight: bold; padding: 3px 12px; background: #fff; color: #000; }
.pi-badge.w { background: var(--accent); color: #000; }
/* time watched (live): clock icon + HH:MM:SS, white frame, black inside */
.pi-watch { display: inline-flex; align-items: center; gap: 8px; font-size: 21px; font-weight: bold; padding: 2px 12px; background: #000; color: #fff; border: 2px solid #fff; font-variant-numeric: tabular-nums; }
.pi-watch svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
/* movie / series info: tall poster left, plot beside it; badges readable on every accent colour */
.pi-head.vod { align-items: flex-start; }
.pi-logo.poster { flex: 0 0 230px; height: 330px; background-size: cover, 70px; border: 2px solid var(--line); }
.pi-meta { color: var(--muted); font-size: 22px; margin-top: 6px; }
.pi-plot { font-size: 24px; line-height: 34px; color: #fff; margin-top: 10px; max-height: 136px; overflow: hidden; }
.p-info .pi-badge { background: #000; color: #fff; border: 2px solid #fff; font-weight: bold; }
/* info window (▲), Android layout: art left; title + top-right time boxes and badges; chips, crew, description box */
/* EPG time table */
.grid-mode .e-chans, .grid-mode .e-progs { display: none; }
.e-grid { display: none; flex: 1; min-width: 0; position: relative; flex-direction: column; overflow: hidden; }
.grid-mode .e-grid { display: flex; }
.eg-head { display: flex; flex: 0 0 56px; height: 56px; border-bottom: 1px solid var(--line); }
.eg-corner { flex: 0 0 330px; display: flex; align-items: center; padding-left: 18px; font-size: 22px; font-weight: bold; color: var(--muted); }
.eg-ruler { position: relative; flex: 1; overflow: hidden; }
.eg-tick { position: absolute; top: 0; height: 100%; display: flex; align-items: center; padding-left: 8px; font-size: 21px; color: #fff; border-left: 1px solid rgba(255,255,255,.2); }
.eg-rows { flex: 1; overflow: hidden; }
.eg-row { display: flex; height: 96px; border-bottom: 1px solid rgba(255,255,255,.07); }
.eg-ch { flex: 0 0 330px; width: 330px; display: flex; align-items: center; gap: 12px; padding: 0 12px; overflow: hidden; }
.eg-ch .num { font-size: 20px; color: var(--muted); width: 40px; text-align: right; flex: 0 0 auto; }
.eg-logo { flex: 0 0 84px; height: 56px; background-repeat: no-repeat; background-position: center; background-size: contain, 40px; }
.eg-cn { font-size: 21px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eg-tl { position: relative; flex: 1; overflow: hidden; }
.eg-p { position: absolute; top: 8px; bottom: 8px; background: rgba(255,255,255,.08); border-radius: 6px; padding: 6px 12px; text-align: left; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.eg-p.now { background: rgba(var(--accent-rgb),.24); }
.eg-p.past { opacity: .5; }
.eg-p.focused { position: absolute; transform: none; box-shadow: inset 0 0 0 3px #fff; background: rgba(255,255,255,.24); opacity: 1; }
.eg-pt { font-size: 21px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eg-ph { font-size: 17px; opacity: .75; white-space: nowrap; }
.eg-p.rem .eg-pt { padding-right: 24px; }
.eg-bell { position: absolute; top: 6px; right: 8px; }
.eg-bell svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linejoin: round; }
.eg-bell.in { position: static; display: inline-block; vertical-align: -3px; margin: 0 8px; }
.eg-now { position: absolute; top: 0; bottom: 120px; width: 3px; margin-left: -1px; background: #ef4444; z-index: 3; pointer-events: none; }
.eg-now.hidden { display: none; }
.eg-now span { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: #ef4444; color: #fff; font-size: 18px; font-weight: bold; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.eg-info { flex: 0 0 120px; height: 120px; border-top: 1px solid var(--line); padding: 10px 18px; overflow: hidden; }
.eg-it { font-size: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eg-itime { color: var(--accent); font-weight: bold; margin-right: 14px; }
.eg-it .pop-live { margin-left: 12px; font-size: 18px; }
.eg-id { font-size: 20px; color: #fff; margin-top: 4px; overflow: hidden; max-height: 56px; line-height: 28px; }
@keyframes lvAutoScroll { 0%, 18% { transform: translateY(0); } 82%, 100% { transform: translateY(var(--asd)); } }
.as-in { will-change: transform; }
.eg-ih { display: none; }
.modal.wide .m-box { left: 50%; width: 1060px; margin-left: -530px; top: 90px; }
.modal.wide .m-text { text-align: left; }
.rl-list { margin-top: 20px; max-height: 560px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 4px; }
.rl-row { display: flex; align-items: center; gap: 22px; width: 100%; padding: 12px 18px; background: rgba(255,255,255,.06); text-align: left; border-radius: 8px; }
.rl-row.focused { transform: none; box-shadow: inset 0 0 0 3px var(--focus); background: rgba(255,255,255,.12); }
.rl-time { flex: 0 0 150px; display: flex; flex-direction: column; font-size: 20px; color: var(--muted); line-height: 28px; }
.rl-time b { font-size: 32px; color: var(--accent); line-height: 38px; }
.rl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 34px; }
.rl-main b { font-size: 27px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-main span { font-size: 21px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-x { font-size: 26px; color: #fda4af; opacity: .6; }
.rl-row.focused .rl-x { opacity: 1; }
.rl-hint { font-size: 19px; color: var(--muted); margin-top: 10px; text-align: center; }
.rc-box { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.rc-row { display: flex; align-items: center; gap: 14px; height: 70px; }
.rc-l { flex: 0 0 280px; font-size: 24px; color: #fff; }
.rc-b { flex: 0 0 64px; height: 60px; font-size: 28px; background: rgba(255,255,255,.08); border-radius: 8px; }
.rc-b.focused { transform: none; box-shadow: inset 0 0 0 3px var(--focus); background: rgba(255,255,255,.2); }
.rc-v { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-big { font-size: 38px; color: var(--accent); }
.rc-n { font-size: 19px; color: var(--muted); }
.rc-logo { flex: 0 0 64px; height: 44px; background-repeat: no-repeat; background-position: center; background-size: contain, 30px; }
.rc-sum { margin-top: 16px; font-size: 22px; color: #fff; text-align: center; }
.modal.rc .m-box { top: 30px; width: 1120px; margin-left: -560px; padding: 26px 40px 30px; border: 1px solid var(--accent); border-top: 4px solid var(--accent); }
.modal.rc .m-actions { margin-top: 18px; }
.modal.rc .m-actions .btn { height: 70px; font-size: 26px; }
.rc-tabs { display: flex; gap: 14px; justify-content: center; }
.rc-tab { display: inline-flex; align-items: center; gap: 10px; height: 60px; padding: 0 30px; font-size: 28px; font-weight: bold; background: rgba(255,255,255,.06); border-radius: 8px; }
.rc-tab svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; }
.rc-tab.on { background: rgba(var(--accent-rgb),.25); color: #fff; box-shadow: inset 0 -4px 0 var(--accent); }
.rc-tab.focused { transform: none; box-shadow: inset 0 0 0 3px var(--focus); }
.rc-cnt { background: var(--accent-bg); color: var(--accent-fg); border-radius: 14px; padding: 0 10px; font-size: 22px; }
.rc-sub { text-align: center; font-size: 22px; color: #fff; margin: 10px 0 6px; }
.rc-row { display: flex; align-items: center; gap: 14px; height: 74px; }
.rc-l { flex: 0 0 200px; font-size: 22px; color: #fff; font-weight: bold; }
.rc-b { flex: 0 0 72px; height: 62px; font-size: 26px; background: transparent; border: 2px solid rgba(255,255,255,.18); border-radius: 4px; }
.rc-b.focused { transform: none; box-shadow: none; border-color: #fff; background: rgba(255,255,255,.18); }
.rc-box1 { flex: 1; height: 62px; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(255,255,255,.18); font-size: 26px; font-weight: bold; }
.rc-chrow { gap: 18px; }
.rc-logo { flex: 0 0 90px; height: 56px; background-repeat: no-repeat; background-position: center; background-size: contain, 30px; }
.rc-chn { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 34px; }
.rc-chn b { font-size: 28px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-chn small { font-size: 20px; color: #fff; }
.rc-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 8px; width: 100%; box-sizing: border-box; }
.rc-col { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rc-cl { font-size: 21px; color: #fff; font-weight: bold; }
.rc-day { height: 66px; min-width: 190px; padding: 0 26px; font-size: 26px; font-weight: bold; background: transparent; border: 2px solid rgba(255,255,255,.18); }
.rc-day.focused { transform: none; box-shadow: none; border-color: #fff; background: rgba(255,255,255,.18); }
.rc-spin { display: flex; align-items: center; gap: 14px; }
.rc-spin b { width: 74px; text-align: center; font-size: 40px; }
.rc-spin .rc-b { flex: 0 0 64px; width: 64px; }
.rc-col { min-width: 0; }
.rc-nl { font-size: 21px; color: #fff; font-weight: bold; margin-top: 14px; }
.rc-note { width: 100%; height: 62px; margin-top: 8px; padding: 0 18px; font-size: 24px; background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.18); }
.rc-note.focused { border-color: #fff; }
.rc-pre { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 8px; }
.rc-rad { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 14px; font-size: 24px; background: transparent; white-space: nowrap; flex: 0 0 auto; width: auto; }
.rc-rad .radio-dot { flex: 0 0 30px; }
.rc-b, .rc-spin .rc-b { font-size: 30px; font-weight: bold; }
.rc-rad .radio-dot { width: 30px; height: 30px; border: 3px solid #fff; border-radius: 50%; display: inline-block; position: relative; }
.rc-rad.on .radio-dot::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.rc-rad.focused { transform: none; box-shadow: inset 0 0 0 3px var(--focus); }
.rc-sum2 { margin-top: 14px; padding: 12px 22px; background: rgba(255,255,255,.04); font-size: 23px; }
.rc-sum2 b { color: #7dd3fc; font-size: 21px; }
.rc-sum2 div { margin-top: 6px; font-weight: bold; }
.modal.rc .rl-list { max-height: 640px; }
.rl-empty { margin: 40px 0; text-align: center; }
.modal.rn .m-box { left: 50%; width: 1480px; margin-left: -740px; top: 220px; padding: 34px 40px 36px; border: 1px solid #333; border-top: 4px solid var(--accent); }
.modal.rn .m-text { text-align: left; }
.modal.rn .m-actions { margin-top: 28px; }
.modal.rn .m-actions .btn { height: 84px; font-size: 32px; font-weight: bold; }
.rn-snooze { color: #fbbf24; }
.rn-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.15); }
.rn-title { font-size: 44px; font-weight: bold; }
.rn-live { display: inline-flex; align-items: center; gap: 14px; padding: 8px 22px; border: 2px solid #ef4444; color: #f87171; font-size: 26px; font-weight: bold; background: rgba(239,68,68,.12); }
.rn-live i { width: 18px; height: 18px; background: #ef4444; display: inline-block; }
.rn-body { display: flex; gap: 36px; margin-top: 26px; align-items: center; }
.rn-pv { position: relative; flex: 0 0 560px; height: 315px; background: #05080c center no-repeat; background-size: contain, 80px; overflow: hidden; }
.rn-pv video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.rn-cap { position: absolute; left: 18px; bottom: 14px; font-size: 22px; text-shadow: 0 0 6px #000, 1px 1px 2px #000; }
.rn-info { flex: 1; min-width: 0; }
.rn-ch { display: flex; align-items: center; gap: 20px; }
.rn-ch b { font-size: 36px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rn-logo { flex: 0 0 110px; height: 66px; background-repeat: no-repeat; background-position: center; background-size: contain, 34px; background-color: rgba(255,255,255,.06); }
.rn-box { margin-top: 22px; border: 1px solid rgba(255,255,255,.18); padding: 20px 24px; }
.rn-prog { font-size: 34px; font-weight: bold; color: #fbbf24; }
.rn-prog span { font-size: 26px; color: #fcd34d; font-weight: normal; }
.rn-txt { font-size: 27px; margin-top: 12px; color: #fff; line-height: 38px; }
.rn-note { font-size: 24px; margin-top: 8px; color: #fff; }
.rem-h { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 26px; color: var(--accent); font-weight: bold; }
.rem-h svg { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 2; }
.rem-t { font-size: 34px; font-weight: bold; margin-top: 14px; }
.rem-c { font-size: 26px; color: #fff; margin-top: 8px; }
/* player top-left: title in a white box with black text, the category path in a black box with white text */
.p-top .p-title { display: inline-block; background: #fff; color: #000; padding: 4px 18px; text-shadow: none; }
.p-top .p-title .ch-num { background: #000; color: #fff; }
.p-top .p-sub { display: table; background: #000; color: #fff; padding: 3px 14px; margin-top: 8px; text-shadow: none; }
.p-top .p-sub:empty { display: none; }
.pi2-pills { margin-top: 18px; flex-wrap: wrap; }
/* incognito badge, top centre on every screen */
body.incog::after { display: none; content: attr(data-incog); position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 60; background: #6d28d9; color: #fff; font-size: 20px; font-weight: bold; padding: 4px 16px; letter-spacing: 1px; pointer-events: none; }
/* P+ / P− card in films and episodes: next on the right, previous on the left */
.p-navcard { position: absolute; top: 110px; bottom: 150px; width: 540px; z-index: 9; background: rgba(6,10,15,.95); border: 1px solid rgba(255,255,255,.18); padding: 26px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.p-navcard.hidden { display: none; }
.p-navcard.right { right: 40px; border-right: 4px solid var(--accent); }
.p-navcard.left { left: 40px; border-left: 4px solid var(--accent); }
.pnv-lbl { font-size: 22px; letter-spacing: 2px; color: var(--accent); font-weight: bold; text-transform: uppercase; }
.pnv-art { flex: 0 0 280px; height: 280px; background-color: #0b1118; background-position: center; background-repeat: no-repeat; background-size: cover, 80px; }
.pnv-title { font-size: 32px; font-weight: bold; line-height: 40px; }
.pnv-sub { font-size: 23px; color: #fff; }
.pnv-plot { font-size: 22px; line-height: 32px; color: #fff; max-height: 160px; overflow: hidden; }
.pnv-n { background: var(--accent-bg); color: var(--accent-fg); padding: 0 10px; margin-left: 8px; }
.pnv-hint span { font-size: 18px; font-weight: normal; }
.pnv-hint { margin-top: auto; font-size: 22px; font-weight: bold; color: #000; background: #fff; padding: 10px 14px; text-align: center; }
/* home "new arrivals" cards: the added date on its own bottom line, left like the other lines */
.na-card .na-info { align-self: stretch; }
.na-card .na-date { margin-top: auto; align-self: flex-start; text-align: left; padding-bottom: 10px; }
.pi2 { display: flex; gap: 30px; align-items: flex-start; }
.pi2 .pi-logo { flex: 0 0 250px; height: 160px; background-size: contain, 60px; border-radius: 10px; }
.pi2 .pi-logo.poster { flex: 0 0 210px; height: 300px; background-size: cover, 70px; border-radius: 4px; }
.pi2-main { flex: 1; min-width: 0; }
.pi2-top { display: flex; align-items: flex-start; gap: 20px; }
.pi2-tl { flex: 1; min-width: 0; }
.pi2-title { font-size: 46px; font-weight: bold; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pi2-ep { font-size: 24px; opacity: .8; margin-top: 4px; }
.pi2-tr { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex: 0 0 auto; }
.pi2-row { display: flex; gap: 12px; }
.pi2-row:empty { display: none; }
.pi2-white, .pi2-orange, .pi2-live, .pi2-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 24px; font-weight: bold; padding: 4px 16px; font-variant-numeric: tabular-nums; }
.pi2-white { background: #fff; color: #000; }
.pi2-orange { background: var(--accent-bg); color: var(--accent-fg); }
.pi2-orange svg { width: 24px; height: 24px; fill: none; stroke: var(--accent-fg); stroke-width: 2.2; stroke-linecap: round; }
.pi2-live { background: #e11d1d; color: #fff; }
.pi2-badge { background: #000; color: #fff; }
.pi2-chips { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.pi2-chip { background: #fff; color: #000; font-size: 24px; font-weight: bold; padding: 6px 18px; }
.pi2-crew { font-size: 24px; margin-top: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pi2-desc { margin-top: 8px; background: none; padding: 0; border: 0; font-size: 23px; line-height: 34px; color: #fff; overflow: hidden; max-height: 68px; box-sizing: border-box; }
.pi2-epg { display: flex; align-items: baseline; gap: 22px; margin-top: 16px; }
.pi2-time { color: var(--accent); font-size: 30px; font-weight: bold; flex: 0 0 auto; }
.pi2-pname { font-size: 30px; font-weight: bold; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pi2-next { font-size: 24px; flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 48%; }
.pi2-next b { color: var(--accent); }
.pi2-bar { height: 7px; background: rgba(255,255,255,.2); margin-top: 10px; }
.pi2-bar div { height: 100%; background: var(--accent); }
/* favorites / continue: category column */
.c-cats { display: none; position: absolute; left: 40px; top: 124px; bottom: 24px; width: 400px; padding-top: 10px; }
#coll.with-cats .c-cats { display: flex; }
#coll.with-cats .c-body { left: 462px; }
/* dice next to the search bar + its pop-up */
#home .searchbar { display: flex; gap: 16px; }
#home .searchbar .sb-field { flex: 1; }
.dice-btn { flex: 0 0 82px; height: 82px; width: 82px; }
#modal.dice .m-box { left: 360px; width: 1200px; top: 170px; }
.dice-title { font-size: 34px; font-weight: bold; text-align: left; margin-bottom: 18px; }
.dice-card { display: flex; gap: 28px; text-align: left; }
.dice-poster { flex: 0 0 260px; height: 390px; background: #0b1118 center no-repeat; background-size: cover, 80px; }
.dice-info { flex: 1; min-width: 0; }
.dice-name { font-size: 38px; font-weight: bold; line-height: 46px; }
.dice-meta { color: var(--muted); font-size: 24px; margin-top: 8px; }
.dice-plot { font-size: 24px; line-height: 34px; color: #fff; margin-top: 16px; max-height: 204px; overflow: hidden; }

/* detail: director / cast, similar titles; readable info pills everywhere */
.d-crew { margin-top: 12px; }
.crew { font-size: 23px; line-height: 34px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crew b { color: #fff; }
.crew .dot { color: var(--muted); margin: 0 10px; }
.d-similar { margin-top: 16px; flex: 0 0 auto; }
.d-sim-title { font-size: 25px; font-weight: bold; margin-bottom: 10px; }
.sim-row { display: flex; gap: 18px; overflow: hidden; padding: 4px; }
.sim { flex: 0 0 168px; width: 168px; height: 300px; background: var(--panel-strong); text-align: left; position: relative; }
.sim-img { display: block; width: 168px; height: 240px; background: #0b1118 center no-repeat; background-size: cover, 60px; }
.sim-name { display: block; padding: 6px 8px; font-size: 18px; line-height: 22px; height: 56px; overflow: hidden; }
.sim .prating { position: absolute; right: 6px; top: 6px; }
.d-eps:not(.hidden) ~ .d-similar .sim { flex-basis: 140px; width: 140px; height: 250px; }
.d-eps:not(.hidden) ~ .d-similar .sim-img { width: 140px; height: 196px; }
.pill, .h-cat { background: #000 !important; color: #fff !important; border: 2px solid #fff; font-weight: bold; }

/* browse hero: director / cast under the pills */
.h-crew { margin-top: 10px; }
.h-crew .crew { font-size: 22px; line-height: 31px; }
.h-crew:not(:empty) + .h-plot { max-height: 105px; margin-top: 8px; }

/* seek indicator in the middle of the screen */
.p-seek { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 9; min-width: 300px; padding: 26px 34px 22px; background: rgba(0,0,0,.72); border-radius: 18px; text-align: center; }
.p-seek svg { width: 110px; height: 110px; fill: #fff; }
.ps-amount { font-size: 40px; font-weight: bold; margin-top: 4px; }
.ps-time { font-size: 26px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
/* player info panel: accent line at the bottom, panel lower on screen */
.p-info { bottom: 46px; border-top: none; border-bottom: 4px solid var(--accent); }
/* video box follows the player box (text-size zoom aware); JS sets exact px for zoom/stretch modes */
#video { width: 100%; height: 100%; }

/* movies / series list: rows like the live list (Android style): number, 2:3 poster, title + category; date / progress / score on the right */
.vrow { height: 112px; }
.vrow .vr-poster { flex: 0 0 64px; height: 96px; background: #0b1118 center no-repeat; background-size: cover, 34px; border: 1px solid var(--line); }
.vr-date, .vr-prog, .vr-rate { flex: 0 0 auto; font-size: 20px; font-weight: bold; padding: 2px 10px; white-space: nowrap; }
.vr-date { background: #000; color: #fff; border: 2px solid #fff; }
.vr-prog { background: var(--accent); color: #000; }
.vr-rate { color: #fbbf24; }
.chan .vr-date { margin-left: 4px; }
/* IMDb score at the right edge of the movie / series hero: label over the number */
.h-imdb { flex: 0 0 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-left: 1px solid var(--line); padding-left: 14px; }
.h-imdb.hidden { display: none; }
.hi-lbl { background: #f5c518; color: #000; font-weight: 900; font-size: 26px; padding: 2px 12px; letter-spacing: .5px; }
.hi-val { font-size: 54px; font-weight: bold; line-height: 58px; color: #fff; }
.hi-max { font-size: 20px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 8px; }
.pill svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
#dPills { flex-wrap: wrap; }
/* home: the search bar is a real text field + ARA button */
.sb-field { padding: 0 10px 0 28px; }
.sb-input { flex: 1; height: 62px; background: transparent; border: none; color: #fff; font-size: 28px; padding: 0 12px; outline: none; }
.sb-input::placeholder { color: var(--muted); }
.sb-input.focused { box-shadow: inset 0 0 0 3px var(--focus); transform: none; }
#sbField .sb-go { height: 62px; padding: 0 30px; background: var(--accent); color: #000; font-weight: bold; font-size: 25px; }
#sbField .sb-go.focused { box-shadow: 0 0 0 3px var(--focus); }
/* LOVUL loader: the emblem outline with a laser running round it, the play cut pulses (Android OrbitLoadingView) */
.p-spinner { left: 50%; top: 50%; width: 170px; height: 170px; margin: -85px 0 0 -85px; border: none; border-radius: 50%; animation: none;
  background: radial-gradient(circle, rgba(255,255,255,.07) 0%, rgba(0,0,0,0) 68%); }
.lv-loader { width: 100%; height: 100%; overflow: visible; }
.lv-ghost { fill: rgba(255,255,255,.05); stroke: rgba(255,255,255,.16); stroke-width: 2.4; stroke-linejoin: round; }
.lv-play { fill: var(--accent); transform-origin: 48.4px 48.2px; animation: lvpulse 1.6s ease-in-out infinite; }
.lv-aura, .lv-laser, .lv-hot { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 34 66; animation: lvrun 1.6s linear infinite; }
.lv-aura { stroke: var(--accent); stroke-width: 7; opacity: .35; }
.lv-laser { stroke: var(--accent); stroke-width: 3.2; }
.lv-hot { stroke: #fff; stroke-width: 1.3; opacity: .9; }
@keyframes lvrun { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -100; } }
@keyframes lvpulse { 0%, 100% { opacity: .35; transform: scale(.92); } 30% { opacity: 1; transform: scale(1.08); } }
.loading-box { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 60px; }
.loading-box .lv-loader { width: 130px; height: 130px; }
.loading-box span { font-size: 24px; }
/* list headers: Sırala / Kategoride Ara / Tümü buttons (Android screens) */
.ph-sp { flex: 1; }
.hb { height: 52px; padding: 0 18px; display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.08); border: 1px solid var(--line); color: #fff; font-size: 22px; white-space: nowrap; flex: 0 0 auto; }
.hb.icon-only { width: 52px; padding: 0; justify-content: center; }
.hb .ico { width: 24px; height: 24px; }
.hb.focused { transform: none; box-shadow: inset 0 0 0 3px var(--focus); background: rgba(255,255,255,.16); }
.cats-panel .p-head { gap: 10px; }
.items-panel .p-head { gap: 12px; }
.items-panel .p-head #bTitle { min-width: 0; flex: 0 1 auto; }
#bSearch { flex: 1; min-width: 300px; }
#browse.searching .items-panel .ph-sp { display: none; }
#browse.searching .items-panel .p-head #bTitle { max-width: 320px; }
.cat-filter { flex: 0 0 52px; margin: 0 12px 8px; }
.b-search.focused { transform: none; box-shadow: inset 0 0 0 3px var(--focus); }
/* hero: trailer marker + score box with a star (no "IMDb" text) */
.h-trailer { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px; font-size: 22px; font-weight: bold; background: #000; color: #fff; border: 2px solid #fff; }
.h-trailer.hidden { display: none; }
.h-trailer svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; }
.hi-star { width: 54px; height: 54px; fill: #f5c518; }
.hi-lbl { display: none; }

/* Settings centre: tabs left, card grid right (Android layout) */
.s-head { height: 96px; }
.sh-text { display: flex; flex-direction: column; gap: 4px; }
.sh-title { display: flex; align-items: center; gap: 16px; font-size: 40px; text-transform: uppercase; letter-spacing: 1px; }
.sh-title .ico { width: 40px; height: 40px; }
.sh-sub { font-size: 23px; color: #fff; padding-left: 56px; }
.s-body2 { position: absolute; left: 40px; right: 40px; top: 146px; bottom: 30px; display: flex; gap: 30px; }
.s-tabs { flex: 0 0 470px; display: flex; flex-direction: column; gap: 14px; padding: 4px; overflow: hidden; border-right: 1px solid var(--line); padding-right: 26px; }
.s-tab { display: flex; align-items: center; gap: 22px; height: 92px; flex: 0 0 92px; padding: 0 28px; background: var(--panel); text-align: left; font-size: 27px; color: #fff; text-transform: uppercase; }
.s-tab .ico { width: 38px; height: 38px; flex: 0 0 auto; }
.s-tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-tab.on { color: #fff; box-shadow: inset 6px 0 0 var(--accent); background: rgba(255,255,255,.07); }
.s-tab.on .ico { stroke: var(--accent); }
.s-tab.focused { transform: none; box-shadow: inset 0 0 0 3px var(--focus), inset 8px 0 0 var(--accent); color: #fff; }
.s-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.s-sec-title { font-size: 32px; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin: 6px 0 22px 10px; font-weight: bold; }
.s-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 4px; align-content: start; overflow: hidden; }
.s-grid.hidden { display: none; }
.s-card { display: flex; align-items: center; gap: 18px; min-height: 172px; padding: 22px 34px; background: rgba(0,0,0,.45); border: 1px solid var(--line); text-align: left; }
.s-card .sc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.s-card .sc-name { font-size: 32px; line-height: 40px; }
.s-card .sc-val { font-size: 25px; color: #fff; }
.s-card .sc-chev { font-size: 46px; color: #fff; flex: 0 0 auto; }
.s-card .s-badge { font-size: 23px; }
.s-card.danger .sc-name { color: #fda4af; }
.s-card.focused { transform: none; box-shadow: inset 0 0 0 3px var(--focus); background: rgba(255,255,255,.08); }
.s-main .s-info { flex: 1; overflow: hidden; }
.s-info.hidden { display: none; }
/* choice dialog: radio buttons + GERİ, like Android */
#modal.radio .m-box { left: 460px; width: 1000px; top: 190px; padding: 46px 56px 30px; background: #000; border: 1px solid #333; border-top: 1px solid #333; }
#modal.radio .m-text { text-align: left; font-size: 40px; margin-bottom: 10px; }
#modal.radio .m-actions.vertical { max-height: 640px; }
#modal.radio .btn.pick { background: transparent; border: none; font-weight: normal; font-size: 34px; height: 92px; flex: 0 0 92px; gap: 40px; }
#modal.radio .btn.pick.on { box-shadow: none; }
.radio-dot { width: 40px; height: 40px; border-radius: 50%; border: 4px solid #cbd5e1; flex: 0 0 40px; position: relative; }
.btn.pick.on .radio-dot { border-color: #fff; }
.btn.pick.on .radio-dot::after { content: ''; position: absolute; left: 6px; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: #fff; }
#modal.radio .btn.pick.focused, #modal.radio .btn.pick.on.focused { box-shadow: inset 0 0 0 3px var(--focus); background: rgba(255,255,255,.08); }
.m-back { align-self: flex-end; flex: 0 0 64px !important; height: 64px; background: transparent !important; border: none; font-size: 30px; margin-top: 10px; justify-content: center !important; }
#modal:not(.radio) .m-back { display: none; }
/* "Yayın Bilgisi" window (Android stream info dialog) */
.p-stats { position: absolute; left: 400px; right: 400px; top: 60px; bottom: 50px; z-index: 12; background: rgba(15,20,30,.96); border: 1px solid rgba(255,170,60,.35);
  padding: 40px 50px 20px; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.p-stats.hidden { display: none; }
.ps-title { color: var(--accent); font-size: 40px; }
.ps-name { font-size: 30px; margin-top: 6px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-body { flex: 1; overflow: hidden; margin-top: 14px; border-bottom: 4px solid var(--accent); padding-bottom: 10px; }
.si-sec { color: var(--accent); font-size: 32px; margin: 26px 0 10px; }
.si-row { display: flex; gap: 20px; font-size: 27px; line-height: 44px; }
.si-k { flex: 0 0 38%; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.si-v { flex: 1; min-width: 0; color: #fff; }
.si-on { display: inline-block; margin-left: 12px; font-size: 19px; line-height: 26px; font-weight: bold; padding: 1px 10px; background: var(--accent); color: #000; vertical-align: middle; }
.si-ok { color: #4ade80; }
.si-warn { color: #fbbf24; }
.ps-close { align-self: center; margin-top: 14px; height: 72px; padding: 0 70px; background: transparent; font-size: 32px; color: #fff; }
.ps-close.focused { transform: none; box-shadow: inset 0 0 0 3px var(--focus); background: rgba(255,255,255,.08); }
/* LOVUL on-screen keyboard (bottom panel, like the TV's) */
.lv-kb { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: rgba(12,16,24,.98); border-top: 3px solid var(--accent);
  padding: 18px 150px 26px; box-shadow: 0 -20px 60px rgba(0,0,0,.7); }
.lv-kb.hidden { display: none; }
.kb-top { display: flex; align-items: center; gap: 20px; margin-bottom: 14px; }
.kb-ph { color: var(--muted); font-size: 22px; max-width: 520px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-text { flex: 1; min-height: 60px; background: #000; border: 2px solid #fff; padding: 8px 18px; font-size: 32px; line-height: 44px; white-space: nowrap; overflow: hidden; }
.kb-caret { display: inline-block; width: 3px; height: 34px; background: var(--accent); vertical-align: middle; margin-left: 2px; animation: kbblink 1s steps(1) infinite; }
@keyframes kbblink { 50% { opacity: 0; } }
.kb-row { display: flex; gap: 10px; justify-content: center; margin-bottom: 10px; }
.kb-key { flex: 0 0 104px; height: 70px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); font-size: 32px; color: #fff; display: flex; align-items: center; justify-content: center; }
.kb-key.wide { flex-basis: 170px; font-size: 25px; }
.kb-key.space { flex: 1 1 auto; font-size: 25px; }
.kb-key.ok { flex-basis: 220px; background: var(--accent); color: #000; font-weight: bold; font-size: 27px; }
.kb-key.focused { transform: none; box-shadow: inset 0 0 0 4px #fff; background: rgba(255,255,255,.28); }
.kb-key.ok.focused { background: #fff; color: #000; }
/* Favorites / Continue watching (Android layout) */
.coll-fav .c-head, .coll-continue .c-head { gap: 22px; }
#cTitle { display: flex; align-items: center; gap: 18px; min-width: 0; }
#cTitle .ico { width: 42px; height: 42px; fill: #fff; }
.ico.fillc { fill: #fff; }
.c-sub { font-size: 26px; color: #fff; white-space: nowrap; }
.c-acts { margin-left: auto; display: flex; gap: 18px; }
.c-act { height: 76px; padding: 0 30px; display: inline-flex; align-items: center; gap: 14px; background: rgba(0,0,0,.45); font-size: 26px; text-transform: uppercase; }
.c-act .ico { width: 30px; height: 30px; stroke: var(--accent); }
.c-act.on { background: var(--sel); }
.c-act.focused { transform: none; box-shadow: inset 0 0 0 3px var(--focus); }
.c-tabs { position: absolute; left: 40px; right: 40px; top: 124px; height: 84px; display: flex; gap: 22px; }
.c-tabs:empty { display: none; }
.c-tab { height: 82px; padding: 0 34px; display: inline-flex; align-items: center; gap: 18px; background: rgba(0,0,0,.4); font-size: 27px; color: #fff; text-transform: uppercase; white-space: nowrap; }
.c-tab .ico { width: 34px; height: 34px; }
.c-tab.on { background: #1e3a8a; color: #fff; }
.c-tab.focused { transform: none; box-shadow: inset 0 0 0 3px var(--focus); color: #fff; }
.coll-fav .c-body, .coll-continue .c-body { top: 232px; }
.coll-fav .c-body { bottom: 120px; }
.fv-row { display: flex; gap: 12px; margin-bottom: 14px; }
.fv-main { flex: 1; min-width: 0; height: 126px; display: flex; align-items: center; gap: 30px; padding: 0 24px; background: rgba(0,0,0,.4); text-align: left; }
.fv-img { flex: 0 0 92px; height: 106px; background: #0b1118 center no-repeat; background-size: cover, 40px; border: 1px solid var(--line); }
.fv-img.live { background-size: contain, 40px; }
.fv-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.fv-name { font-size: 32px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fv-chips { display: flex; gap: 14px; }
.fv-chip { font-size: 23px; padding: 3px 16px; background: rgba(255,255,255,.14); color: #fff; }
.fv-chip.rate { background: #000; color: #fbbf24; }
.fv-heart { flex: 0 0 126px; height: 126px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.4); }
.fv-heart .ico { width: 40px; height: 40px; fill: #fff; }
.fv-main.focused, .fv-heart.focused { transform: none; box-shadow: inset 0 0 0 3px var(--focus); background: rgba(255,255,255,.08); }
.fv-heart.focused .ico { fill: #fb7185; stroke: #fb7185; }
.c-clear { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); height: 74px; padding: 0 40px; display: inline-flex; align-items: center; gap: 16px;
  background: rgba(0,0,0,.45); color: #f87171; font-size: 27px; text-transform: uppercase; }
.c-clear .ico { stroke: #f87171; width: 30px; height: 30px; }
.c-clear.hidden { display: none; }
.c-clear.focused { transform: translateX(-50%); box-shadow: inset 0 0 0 3px var(--focus); }
.cw-grid { display: flex; flex-wrap: wrap; gap: 30px; padding: 6px; }
.cw-card { width: 590px; padding: 20px 20px 22px; background: rgba(0,0,0,.45); text-align: left; display: flex; flex-direction: column; gap: 10px; }
.cw-img { position: relative; display: block; height: 330px; background: #0b1118 center no-repeat; background-size: cover, 70px; margin-bottom: 10px; }
.cw-rate { position: absolute; left: 14px; top: 14px; background: rgba(0,0,0,.85); color: #fbbf24; font-size: 25px; padding: 4px 14px; }
.cw-left { position: absolute; right: 14px; bottom: 18px; background: rgba(0,0,0,.6); color: #fff; font-size: 25px; padding: 4px 14px; }
.cw-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; background: rgba(255,255,255,.2); }
.cw-bar span { display: block; height: 100%; background: var(--accent); }
.cw-check { position: absolute; right: 14px; top: 14px; width: 50px; height: 50px; border: 3px solid #fff; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; }
.cw-check .ico { width: 34px; height: 34px; stroke: #fff; stroke-width: 3; opacity: 0; }
.cw-card.sel .cw-check { background: var(--accent); border-color: var(--accent); }
.cw-card.sel .cw-check .ico { opacity: 1; }
.cw-title { font-size: 30px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-sub { font-size: 25px; color: #fff; }
.cw-date { font-size: 24px; color: #fff; }
.cw-card.focused { transform: none; box-shadow: inset 0 0 0 3px var(--focus); background: rgba(255,255,255,.08); }.cw-img { width: 550px; flex: 0 0 330px; align-self: flex-start; }
.cw-rate, .cw-left { white-space: nowrap; }
.cw-title, .cw-sub, .cw-date { display: block; width: 550px; }.cw-grid { gap: 26px; padding: 4px; }
.cw-card { width: 580px; }
.cw-img, .cw-title, .cw-sub, .cw-date { width: 540px; }
/* "Kim izliyor?" */
#profiles { text-align: center; }
.pf-title { position: absolute; left: 0; right: 0; top: 46px; font-size: 64px; font-weight: bold; }
.pf-close { position: absolute; right: 46px; top: 36px; }
.pf-list { position: absolute; left: 0; right: 0; top: 260px; display: flex; justify-content: center; gap: 70px; flex-wrap: wrap; padding: 0 80px; }
.pf-tile { display: flex; flex-direction: column; align-items: center; gap: 22px; background: transparent; padding: 10px; }
.pf-av { position: relative; width: 290px; height: 290px; display: flex; align-items: center; justify-content: center; font-size: 150px; color: #fff; }
.pf-av.add { background: #1e293b; font-size: 140px; color: #fff; font-weight: 300; }
.pf-edit { position: absolute; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; font-size: 90px; }
.pf-name { font-size: 34px; color: #fff; }
.pf-name.cur { color: #fff; }
.pf-tile.focused { transform: none; box-shadow: none; }
.pf-tile.focused .pf-av { box-shadow: 0 0 0 6px #fff; transform: scale(1.04); }
.pf-tile.focused .pf-name { color: #fff; }
.pf-manage { position: absolute; left: 50%; bottom: 70px; transform: translateX(-50%); height: 70px; padding: 0 40px; background: transparent; font-size: 32px; color: #fff; }
.pf-manage.focused { transform: translateX(-50%); box-shadow: inset 0 0 0 3px #fff; color: #fff; }
#btnProfile.pf-mini { font-size: 34px; font-weight: bold; color: #fff; }

/* search page (Android layout) */
.coll-search #cTitle { display: none; }
.coll-search #cSearch { order: 1; flex: 0 0 760px; height: 76px; font-size: 30px; padding: 0 24px; }
.coll-search .c-sub { order: 2; font-size: 27px; color: #fff; text-transform: uppercase; background: rgba(0,0,0,.4); padding: 18px 26px; }
.coll-search .c-sub:empty { display: none; }
.coll-search .cnt { display: none; }
.coll-search .c-acts { order: 3; }
.c-recent { position: absolute; left: 40px; right: 40px; top: 222px; height: 66px; display: flex; align-items: center; gap: 16px; }
.c-recent.hidden { display: none; }
.rs-lbl { font-size: 25px; text-transform: uppercase; margin-right: 8px; }
.rs-chip { height: 58px; padding: 0 24px; background: rgba(0,0,0,.45); font-size: 25px; }
.rs-clear { margin-left: auto; height: 58px; padding: 0 26px; background: rgba(0,0,0,.45); font-size: 25px; }
.rs-chip.focused, .rs-clear.focused { transform: none; box-shadow: inset 0 0 0 3px var(--focus); }
.coll-search .c-body { top: 232px; }
.coll-search .c-recent:not(.hidden) ~ .c-body { top: 304px; }
.sr-sec { font-size: 30px; font-weight: bold; text-transform: uppercase; margin: 14px 6px 16px; letter-spacing: 1px; }
.sr-sec span { font-weight: normal; color: #fff; text-transform: none; font-size: 26px; margin-left: 8px; }
.sr-grid { display: flex; flex-wrap: wrap; gap: 22px; padding: 4px; margin-bottom: 18px; }
.sr-card { position: relative; width: 340px; }
.sr-main { width: 340px; display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 16px; background: rgba(0,0,0,.45); text-align: left; }
.sr-img { position: relative; display: block; width: 316px; height: 316px; background: #0b1118 center no-repeat; background-size: cover, 60px; }
.sr-card.live .sr-img { height: 200px; background-size: contain, 60px; background-color: #101823; }
.sr-type { position: absolute; left: 12px; top: 12px; background: rgba(0,0,0,.85); font-size: 22px; font-weight: bold; padding: 3px 12px; text-transform: uppercase; }
.sr-rate { position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,.85); font-size: 24px; font-weight: bold; padding: 3px 12px; }
.sr-year { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.85); font-size: 24px; padding: 3px 12px; }
.sr-name { display: block; font-size: 27px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.sr-cat { display: block; font-size: 22px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-match { align-self: flex-start; font-size: 21px; padding: 3px 12px; background: rgba(255,255,255,.1); color: #fff; }
.sr-heart { position: absolute; right: 22px; top: 22px; width: 58px; height: 58px; background: rgba(0,0,0,.8); display: flex; align-items: center; justify-content: center; }
.sr-heart svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 2; }
.sr-heart.on svg { fill: #fb7185; stroke: #fb7185; }
.sr-main.focused { transform: none; box-shadow: inset 0 0 0 3px var(--focus); background: rgba(255,255,255,.08); }
.sr-heart.focused { transform: none; box-shadow: 0 0 0 3px var(--focus); }.sr-name, .sr-cat { width: 316px; }
.sr-heart { z-index: 5; }.pf-lock { position: absolute; right: 12px; top: 12px; width: 48px; height: 48px; background: rgba(0,0,0,.65); display: flex; align-items: center; justify-content: center; }
.pf-lock svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2; }
.pf-kids { position: absolute; left: 12px; bottom: 12px; background: #fff; color: #000; font-size: 22px; font-weight: bold; padding: 3px 12px; }
#btnProfile { display: flex; align-items: center; justify-content: center; font-size: 36px; line-height: 1; font-weight: bold; color: #fff; }
/* series: skip intro + next-episode card + intro/credits dialog (Android) */
.p-skip { position: absolute; right: 70px; bottom: 150px; z-index: 9; height: 76px; padding: 0 40px; background: rgba(0,0,0,.8); border: 3px solid #fff; color: #fff; font-size: 30px; font-weight: bold; letter-spacing: 1px; }
.p-skip.hidden { display: none; }
.p-next { position: absolute; right: 60px; bottom: 70px; width: 720px; z-index: 11; background: rgba(10,12,18,.97); box-shadow: 0 20px 60px rgba(0,0,0,.7); }
.p-next.hidden { display: none; }
.pn-art { position: relative; height: 360px; background: #0b1118 center no-repeat; background-size: cover, 90px; display: flex; align-items: flex-end; padding: 0 32px 30px; gap: 20px; }
.pn-art::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.85) 10%, rgba(0,0,0,0) 70%); }
.pn-txt { position: relative; flex: 1; min-width: 0; }
.pn-lbl { font-size: 23px; letter-spacing: 2px; color: #fff; }
.pn-title { font-size: 40px; font-weight: bold; margin-top: 4px; }
.pn-name { font-size: 25px; color: #fff; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-in { font-size: 24px; color: #fff; margin-top: 6px; }
.pn-count { position: relative; width: 110px; height: 110px; border: 5px solid var(--accent); display: flex; align-items: center; justify-content: center; font-size: 44px; background: rgba(0,0,0,.5); flex: 0 0 auto; }
.pn-bar { height: 6px; background: rgba(255,255,255,.12); }
.pn-bar div { height: 100%; background: var(--accent); transition: width 1s linear; }
.pn-btns { display: flex; gap: 20px; padding: 22px; }
.pn-btn { flex: 1; height: 86px; background: rgba(255,255,255,.1); font-size: 28px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; }
.pn-btn svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 2; }
.pn-btns { flex-wrap: wrap; }
.pn-auto { flex: 0 0 100%; height: 64px; font-size: 24px; }
.pn-bar.hidden { display: none; }
.pn-btn.focused { transform: none; box-shadow: inset 0 0 0 3px var(--focus); background: rgba(255,255,255,.2); }
.p-jen { position: absolute; left: 230px; right: 230px; top: 60px; z-index: 12; background: rgba(8,10,14,.97); border: 1px solid #333; padding: 36px 46px 30px; }
.p-jen.hidden { display: none; }
/* every player pop-up (audio, subtitles, picture, settings, Jenerik…) in the middle of the screen */
.p-menu { right: auto; bottom: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 640px; max-height: 760px; z-index: 9; box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.p-jen { top: 50%; transform: translateY(-50%); }
.pj-title { color: var(--accent); font-size: 40px; }
.pj-desc { color: #fff; font-size: 24px; line-height: 34px; margin-top: 8px; }
.pj-cols { display: flex; gap: 40px; margin-top: 10px; }
.pj-col { flex: 1; }
.pj-h { font-size: 30px; font-weight: bold; margin: 16px 0 6px; color: #fff; }
.pj-lbl { font-size: 24px; margin: 14px 0 10px; color: #fff; }
.pj-row { display: flex; gap: 10px; }
.pj-b { flex: 1; height: 70px; background: rgba(0,0,0,.6); border: 1px solid #444; font-size: 25px; color: #fff; }
.pj-b.on { color: var(--accent); border-color: var(--accent); }
.pj-b.focused, .pj-act.focused { transform: none; box-shadow: inset 0 0 0 3px var(--focus); background: rgba(255,255,255,.12); }
.pj-state { text-align: center; font-size: 28px; margin: 26px 0 18px; }
.pj-btns { display: flex; gap: 20px; }
.pj-act { flex: 1; height: 80px; background: rgba(0,0,0,.6); border: 1px solid #444; font-size: 28px; }
/* framed badges everywhere: white inside, black text, black icons (user request) */
.pill, .h-cat, .pi-badge, .p-info .pi-badge, .h-trailer, .pi-watch, .vr-date {
  background: #fff !important; color: #000 !important; border: 2px solid #fff !important; font-weight: bold; }
.pill svg, .h-trailer svg, .pi-watch svg { stroke: #000 !important; fill: none; }
/* absolutely placed buttons keep their place when focused (the generic focus rule made them position:relative,
   so "Profilleri Yönet" jumped off screen when the focus reached it) */
.pf-manage.focused, .pf-close.focused, .c-clear.focused, .sr-heart.focused { position: absolute; }
.pf-close.focused { transform: none; box-shadow: inset 0 0 0 3px #fff; }
/* profile tiles: a clear white frame on the focused one, also in "manage" mode */
.pf-tile.focused .pf-av { box-shadow: none; outline: 6px solid #fff; outline-offset: 4px; transform: none; }
#profiles.managing .pf-av { outline: 2px solid rgba(255,255,255,.35); outline-offset: 4px; }
#profiles.managing .pf-tile.focused .pf-av { outline: 6px solid #fff; }
.pf-manage { border: 2px solid rgba(255,255,255,.3); }
.pf-manage.focused { background: #fff; color: #000; box-shadow: none; }
/* exit question: profile row under the buttons (▼) */
.m-prof { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.mp-lbl { font-size: 24px; color: var(--muted); margin-bottom: 14px; text-align: left; }
.mp-list { display: flex; gap: 18px; }
.mp-item { flex: 1; display: flex; align-items: center; gap: 14px; height: 80px; padding: 0 16px; background: rgba(255,255,255,.06); font-size: 25px; text-align: left; min-width: 0; }
.mp-av { flex: 0 0 52px; height: 52px; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: bold; color: #fff; }
.mp-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-item.cur { box-shadow: inset 0 -4px 0 var(--accent); }
.mp-item.focused { transform: none; box-shadow: inset 0 0 0 3px #fff; background: rgba(255,255,255,.14); }
.m-actions .btn.primary { color: #fff; font-weight: bold; }
/* wallpaper preview in the picker */
#modal.radio .swatch { width: 120px; height: 68px; margin-right: 6px; border: 1px solid rgba(255,255,255,.3); }
/* "İzleme İstatistiklerim" (Android layout) */
.ws-title { text-transform: none; font-size: 44px; }
.ws-clear { margin-left: auto; color: #f87171; }
.ws-sum { position: absolute; left: 40px; right: 40px; top: 124px; height: 100px; display: flex; align-items: center; background: rgba(0,0,0,.45); }
.ws-s { flex: 1; display: flex; align-items: baseline; justify-content: center; gap: 14px; border-right: 2px solid rgba(255,255,255,.15); }
.ws-s:last-child { border-right: none; }
.ws-sl { font-size: 28px; color: #fff; text-transform: uppercase; }
.ws-sv { font-size: 40px; color: var(--accent); }
.ws-tabs { position: absolute; left: 40px; right: 40px; top: 244px; height: 76px; display: flex; gap: 18px; }
.ws-tab { flex: 1; height: 76px; background: rgba(255,255,255,.12); font-size: 30px; color: #fff; }
.ws-tab.on { background: var(--accent); color: #fff; }
.ws-tab.focused { transform: none; box-shadow: inset 0 0 0 4px #fff; }
.ws-body { position: absolute; left: 40px; right: 40px; top: 340px; bottom: 20px; overflow: hidden; padding: 4px; }
.ws-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.ws-card { display: flex; flex-direction: column; gap: 10px; padding: 26px 30px 24px; background: rgba(0,0,0,.5); text-align: left; min-width: 0; }
.ws-card.focused { transform: none; box-shadow: inset 0 0 0 3px var(--focus); }
.ws-ct { font-size: 30px; text-transform: uppercase; margin-bottom: 8px; }
.ws-row { display: flex; gap: 20px; font-size: 27px; line-height: 38px; }
.ws-k { flex: 1; min-width: 0; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-v { color: var(--accent); white-space: nowrap; }
/* movie / series rows like Android: [1 sa 35 dk] • Genre ... [%3 izlendi, kalan 1 sa 30 dk] */
.vr-sub { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.vr-dur { background: #fff; color: #000; font-weight: bold; font-size: 22px; padding: 1px 10px; white-space: nowrap; }
.vr-dot { color: #fff; }
.vr-genre { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vr-prog2 { flex: 0 0 auto; background: #000; color: #fff; font-weight: bold; font-size: 22px; padding: 6px 14px; white-space: nowrap; }
/* ⚙ next to every category / title row */
.cw, .iw { display: flex; gap: 8px; margin-bottom: 8px; }
.cw .cat, .iw .chan { flex: 1; min-width: 0; margin-bottom: 0; }
.cgear, .igear { flex: 0 0 60px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.04); }
.cgear-sp { flex: 0 0 60px; }
.cgear svg, .igear svg { width: 30px; height: 30px; fill: none; stroke: #94a3b8; stroke-width: 1.8; }
.cgear.focused, .igear.focused { transform: none; box-shadow: inset 0 0 0 3px var(--focus); background: rgba(255,255,255,.12); }
.cgear.focused svg, .igear.focused svg { stroke: #fff; }
.c-pin { color: #fff; margin-right: 4px; }
/* favourite marks in white (heart on rows, star on pinned categories) */
.heart.on, .chan .heart.on { fill: #fff !important; stroke: #fff !important; }
.cats-panel { width: 520px; }
/* player bottom bar: thicker progress bar, narrower than the screen, bigger times (user request) */
.p-bottom { padding: 80px 150px 44px; }
.p-progress { height: 14px; border-radius: 7px; background: rgba(255,255,255,.25); overflow: hidden; }
.p-fill { border-radius: 7px; }
.p-times { margin-top: 16px; font-size: 34px; color: #fff; font-weight: bold; font-variant-numeric: tabular-nums; align-items: center; }
#pHint { font-size: 24px; font-weight: normal; color: #fff; }
/* focused control button: white with a BLACK icon + label (the icon was white on white) */
.pc-btn.focused { background: #fff !important; color: #000; border-color: #fff; transform: none; }
.pc-btn.focused .ico { stroke: #000; }
.pc-btn.focused .ico path[fill] { fill: #000; }
/* remote: typed channel number + colour key legend */
.p-num { position: absolute; right: 70px; top: 130px; z-index: 13; min-width: 160px; padding: 10px 30px; background: rgba(0,0,0,.85); border: 3px solid var(--accent); font-size: 80px; font-weight: bold; text-align: center; font-variant-numeric: tabular-nums; }
.p-num.hidden { display: none; }
.ck-legend { margin-left: 26px; display: inline-flex; align-items: center; gap: 8px; }
.ck { display: inline-block; width: 18px; height: 18px; border-radius: 50%; margin-left: 14px; }
.ck.r { background: #ef4444; } .ck.g { background: #22c55e; } .ck.y { background: #eab308; } .ck.b { background: #3b82f6; }
/* Theme setting: ⚙ buttons off */
body.no-gear .cgear, body.no-gear .igear, body.no-gear .cgear-sp { display: none; }
/* LEFT (categories + channels) and RIGHT (quick channel list) panels: centred floating boxes, not glued to the edges */
.p-catpanel { left: 50%; top: 70px; bottom: 70px; width: 1240px; margin-left: -620px; border: 1px solid rgba(255,255,255,.18);
  border-top: 4px solid var(--accent); background: rgba(6,10,15,.94); box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.p-drawer { left: 50%; right: auto; top: 70px; bottom: 70px; width: 760px; margin-left: -380px; border: 1px solid rgba(255,255,255,.18);
  border-top: 4px solid var(--accent); background: rgba(6,10,15,.94); box-shadow: 0 30px 80px rgba(0,0,0,.7); }/* correction: keep them at their sides (left / right), only vertically centred with space above and below */
.p-catpanel { left: 40px; margin-left: 0; }
.p-drawer { left: auto; right: 40px; margin-left: 0; }
/* panels 25 % smaller (width + height, still vertically centred at their sides), text 15 % bigger */
.p-catpanel { top: 188px; bottom: 188px; width: 930px; }
.pc-left { width: 340px; }
.pc-cat { font-size: 29px; }
.pc-cat .c-n { font-size: 23px; }
.p-drawer { top: 188px; bottom: 188px; width: 570px; }
/* orange edge on the outer side: left panel → left, right panel → right */
.p-catpanel { border-top: 1px solid rgba(255,255,255,.18); border-left: 4px solid var(--accent); }
.p-drawer { border-top: 1px solid rgba(255,255,255,.18); border-right: 4px solid var(--accent); }
.pd-head { font-size: 32px; }
.pd-item .cname { font-size: 29px; }
.pd-item .cepg { font-size: 23px; }
.pd-item .num { font-size: 26px; }
.p-catpanel .pd-head { font-size: 32px; }
/* top card picture: inset from the frame (logo / poster no longer glued to the border) */
.h-art { margin-left: 14px; flex: 0 0 456px; width: 456px; height: 312px; border: 1px solid rgba(255,255,255,.14); border-radius: 6px; overflow: hidden;
  background-origin: content-box; background-clip: padding-box; background-color: #0b1118; }
.h-art:not(.cover) { padding: 28px 44px; }
.h-art.cover { padding: 10px; background-clip: content-box; }
/* live preview in the top card */
.pv { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #000; z-index: 1; }
.pv.hidden, .pv-hint.hidden { display: none; }
.pv-hint { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 6px 12px; background: rgba(0,0,0,.75); font-size: 20px; text-align: center; }
.h-art .h-badge { z-index: 3; right: 12px; top: 12px; padding: 2px 14px; font-size: 30px; font-weight: bold; line-height: 1.25; background: #fff; color: #000; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.chan.pv-on { box-shadow: inset 6px 0 0 var(--accent); }
.chan.pv-on.focused { box-shadow: inset 0 0 0 3px var(--focus), inset 8px 0 0 var(--accent); }
/* top card lines up with the lists below: picture = categories panel width, text starts where the titles panel starts */
.hero { gap: 22px; padding-left: 0; }
.h-art { margin-left: -1px; flex: 0 0 520px; width: 520px; height: 312px; }
.h-info { padding-left: 0; }
/* account info window (Android "Hesap & Sistem") */
#modal.ai .m-box { left: 260px; width: 1400px; top: 60px; padding: 40px 46px 34px; background: #05070b; border: 1px solid #333; border-top: 1px solid #333; }
#modal.ai .m-text { text-align: left; font-size: 26px; line-height: 1.3; }
.ai-head { display: flex; align-items: center; gap: 26px; margin-bottom: 30px; }
.ai-av { flex: 0 0 104px; height: 104px; display: flex; align-items: center; justify-content: center; font-size: 52px; font-weight: bold; color: #fff; background: linear-gradient(135deg, #3b82f6, #2563eb); }
.ai-who { flex: 1; min-width: 0; }
.ai-name { font-size: 40px; font-weight: bold; }
.ai-host { font-size: 26px; color: #fff; margin-top: 4px; }
.ai-status { font-size: 26px; font-weight: bold; color: #4ade80; padding: 10px 22px; border: 2px solid #6d28d9; background: rgba(76,29,149,.35); white-space: nowrap; }
.ai-status.off { color: #f87171; }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ai-cell { border: 1px solid #333; padding: 22px 26px; }
.ai-k { font-size: 22px; color: #fff; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.ai-v { font-size: 34px; font-weight: bold; }
.ai-v.blue { color: #38bdf8; }
.ai-bar { height: 8px; background: rgba(255,255,255,.12); margin-top: 14px; }
.ai-bar span { display: block; height: 100%; background: #38bdf8; }
.ai-msg { margin-top: 22px; border: 2px solid #a16207; background: rgba(161,98,7,.18); padding: 20px 26px; font-size: 27px; color: #fde68a; }
.ai-msg .ai-k { color: #f59e0b; }
#modal.ai .m-actions { justify-content: flex-end; }
#modal.ai .m-actions .btn { flex: 0 0 260px; }
/* speed test: big red start card */
.s-card.sp-start { background: #dc2626; border-color: #dc2626; }
.s-card.sp-start .sc-name { font-weight: bold; text-transform: uppercase; }
.s-card.sp-start .sc-val { color: #fee2e2; }
.s-card.sp-start.run { background: #7f1d1d; }
/* voice command box */
.voice-box { position: fixed; left: 460px; right: 460px; top: 120px; z-index: 65; background: rgba(6,10,15,.97); border: 1px solid rgba(255,255,255,.18);
  border-top: 4px solid var(--accent); padding: 34px 40px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.voice-box.hidden { display: none; }
.vb-mic svg { width: 90px; height: 90px; fill: none; stroke: var(--accent); stroke-width: 1.6; }
.vb-title { font-size: 36px; font-weight: bold; margin-top: 8px; }
.vb-hint { font-size: 25px; color: #fff; margin-top: 10px; }
.vb-in { width: 100%; height: 70px; margin-top: 24px; font-size: 30px; padding: 0 20px; background: #000; border: 2px solid #fff; color: #fff; }
.vb-txt { min-height: 40px; margin-top: 14px; font-size: 30px; color: var(--accent); }
/* right quick list: the current category only, no ‹ › */
.p-drawer .pd-arrow { display: none; }
/* TV GPU: the focus zoom (scale + box-shadow transition) on hundreds of rows left trails / doubled colours while
   moving with the remote. The focus frame now appears at once, lists do not zoom any more. */
.focusable { transition: none !important; }
#items .focused, #cats .focused, .items .focused, .cats .focused, #eChans .focused, #eProgs .focused, #egRows .focused,
.pd-item.focused, .pc-cat.focused, .pc-chan.focused, .chan.focused, .cat.focused, .ep.focused, .season.focused, .cw-card.focused, .fv-main.focused,
.na-card.focused, .poster.focused, .sr-card.focused, .qp-row.focused { transform: none !important; }
.as-in { will-change: auto; }

/* plain and fast: nothing slides, fades or grows - panels, menus, cards and screens appear at once
   (only the loading spinner, the keyboard caret and long-text scrolling keep moving) */
*, *::before, *::after { transition: none !important; }

/* hero art: it touched the panel's left edge but sat 15 px below its top edge, so the frame looked shifted -
   it now fills the left part of the panel from top to bottom (still 28-548, like the categories panel) */
#hero .h-art { height: 340px; margin-top: -15px; margin-bottom: -13px; align-self: flex-start; box-sizing: border-box; }

/* films / episodes control panel: square edges everywhere, no rounding */
.p-ctrl.vod { left: 40px; right: 40px; bottom: 40px; display: block; background: rgba(10,12,16,.9); border: 1px solid rgba(255,255,255,.18); padding: 22px 36px 26px; border-radius: 0; }
.pcv-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.pcv-title { font-size: 30px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcv-mid { display: flex; gap: 20px; justify-content: center; align-items: center; }
.pcv-right { display: flex; gap: 12px; justify-content: flex-end; align-items: center; }
.p-ctrl.vod .pc-btn { min-width: 0; width: 72px; height: 72px; padding: 0; gap: 0; background: transparent; border: 2px solid rgba(255,255,255,.12); border-radius: 0; position: relative; }
.p-ctrl.vod .pc-btn.big { width: 92px; height: 92px; }
.p-ctrl.vod .pc-btn .ico { width: 34px; height: 34px; }
.p-ctrl.vod .pc-btn.big .ico { width: 46px; height: 46px; }
.p-ctrl.vod .pc-btn span { display: none; }
.p-ctrl.vod .pc-btn.focused { background: #fff !important; border-color: #fff; color: #000; }
.p-ctrl.vod .pc-btn.focused span { display: block; position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 18px; font-weight: bold; background: #fff; color: #000; padding: 2px 10px; z-index: 2; }
.pcv-seek { margin-top: 34px; padding: 12px 0 0; border: 0; border-radius: 0; }
.pcv-track { position: relative; height: 10px; background: rgba(255,255,255,.8); }
.pcv-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--accent); }
.pcv-knob { position: absolute; left: 0; top: 50%; width: 20px; height: 30px; margin: -15px 0 0 -10px; background: #fff; border: 2px solid #000; border-radius: 0; }
.pcv-seek.focused { box-shadow: none !important; background: transparent !important; }
.pcv-seek.focused .pcv-track { height: 14px; outline: 3px solid #fff; outline-offset: 3px; }
.pcv-seek.focused .pcv-knob { width: 26px; height: 42px; margin: -21px 0 0 -13px; background: var(--accent); border-color: #fff; }
.pcv-times { display: flex; justify-content: space-between; margin-top: 14px; font-size: 24px; font-variant-numeric: tabular-nums; }
#pcvTarget { color: var(--accent); font-weight: bold; }
#player.pcv-on .p-bottom { display: none; }

.pcv-title { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.pcv-name { font-size: 30px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pcv-chip { background: #fff; color: #000; font-size: 22px; font-weight: bold; padding: 2px 12px; }

.p-top .p-sub.chip { background: #fff; color: #000; font-weight: bold; }

.pcv-sub { display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 100%; }
.pcv-ept { font-size: 22px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* EPG table: exactly 6 channel rows, the programme box starts right under the 6th and fills the rest (bigger text) */
.eg-rows { flex: 0 0 576px; height: 576px; }
.eg-info { flex: 1 1 auto; height: auto; padding: 18px 24px; }
.eg-it { font-size: 34px; }
.eg-it .pop-live { font-size: 24px; }
.eg-it .eg-bell.in svg { width: 28px; height: 28px; }
.eg-id { font-size: 27px; line-height: 40px; max-height: 200px; margin-top: 10px; display: block; -webkit-line-clamp: unset; }
.eg-now { bottom: auto; height: 632px; }

.p-asp-osd { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 20; background: rgba(0,0,0,.85); color: #fff; font-size: 44px; font-weight: bold; padding: 22px 48px; border: 2px solid #fff; white-space: nowrap; pointer-events: none; }
.p-asp-osd.hidden { display: none; }

/* player side panels: 1 s glide + fade, opening and closing (keyframe animations, not transitions) */
@keyframes lvInL { from { opacity: 0; } to { opacity: 1; } }
@keyframes lvInR { from { opacity: 0; } to { opacity: 1; } }
@keyframes lvInU { from { opacity: 0; } to { opacity: 1; } }
@keyframes lvOutL { from { opacity: 1; } to { opacity: 0; } }
@keyframes lvOutR { from { opacity: 1; } to { opacity: 0; } }
@keyframes lvOutU { from { opacity: 1; } to { opacity: 0; } }
.lv-in-l { animation: lvInL .5s cubic-bezier(.16,.84,.3,1) both; }
.lv-in-r { animation: lvInR .5s cubic-bezier(.16,.84,.3,1) both; }
.lv-in-u { animation: lvInU .5s cubic-bezier(.16,.84,.3,1) both; }
.lv-out-l { animation: lvOutL .5s cubic-bezier(.5,0,.75,.2) both; }
.lv-out-r { animation: lvOutR .5s cubic-bezier(.5,0,.75,.2) both; }
.lv-out-u { animation: lvOutU .5s cubic-bezier(.5,0,.75,.2) both; }

/* while the control panel is open its own title is enough: no top title box (it looked like it was growing) */
#player.pcv-on .p-top { display: none; }

/* clock + CANLI badge (and the whole player overlay) appear at once, never faded or animated */
.p-overlay, .p-overlay *, .p-clock, .p-livepos { transition: none !important; animation: none !important; }

/* player buttons: focused = chosen accent colour (Settings > Theme), icon/label black on gold, white on the others */
:root { --accent-fg: #fff; }
.pc-btn.focused, .p-ctrl.vod .pc-btn.focused { background: var(--accent-bg) !important; border-color: var(--accent-bg) !important; color: var(--accent-fg) !important; }
.pc-btn.focused .ico { stroke: var(--accent-fg) !important; }
.pc-btn.focused .ico path[fill], .pc-btn.focused .ico [fill]:not([fill="none"]) { fill: var(--accent-fg) !important; }
.p-ctrl.vod .pc-btn.focused span { background: var(--accent-bg) !important; color: var(--accent-fg) !important; }
.pcv-seek.focused .pcv-knob { background: var(--accent); }

/* EPG guide and favourites / continue / search carry the top button bar too: their content moves down under it */
#coll > :not(.navbar), #epg > :not(.navbar) { margin-top: 84px; }

/* live: no "Now / Next" lines on the channel start overlay */
#pEpg { display: none !important; }

/* exit question: in the middle of the screen; the "Yes" button in the theme colour, readable text */
#modal.mx-exit .m-box { top: 50%; left: 50%; margin: 0; transform: translate(-50%, -50%); }
.m-actions .btn.primary { background: var(--accent-bg); border-color: var(--accent-bg); color: var(--accent-fg); }

/* series detail: at least 5 episodes on screen - compact rows (episode summary in one line under the title when the
   provider has one), the series summary 2 lines, smaller "similar" posters */
#detail .d-eps { margin-top: 10px; padding: 8px 12px; }
#detail .d-eps-title { margin-bottom: 6px; }
#detail .ep { height: var(--ep-h, 80px); padding: 0 16px; gap: 18px; margin-bottom: var(--ep-gap, 8px); }
#detail .ep .ethumb { flex: 0 0 calc((var(--ep-h, 80px) - 14px) * 16 / 9); height: calc(var(--ep-h, 80px) - 14px); background-size: cover; }
#detail .ep .etx { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
#detail .ep .et { flex: none; font-size: 25px; line-height: 32px; }
#detail .ep .eplot { font-size: 20px; line-height: 26px; color: #fff; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#detail .ep .edur { font-size: 20px; padding: 2px 10px; }
#detail.has-eps .d-plot { max-height: 72px; }
#detail .d-eps:not(.hidden) ~ .d-similar .sim { flex-basis: 96px; width: 96px; height: 158px; }
#detail .d-eps:not(.hidden) ~ .d-similar .sim-img { width: 96px; height: 128px; }
#detail .d-eps:not(.hidden) ~ .d-similar .sim .sim-name, #detail .d-eps:not(.hidden) ~ .d-similar .sim span:not(.prating) { font-size: 17px; }

/* rating badges (similar films / series posters, title lists): white box, black text */
.prating, .sim .prating, .vr-rate { background: #fff !important; color: #000 !important; font-weight: bold; font-size: 18px; padding: 1px 8px; line-height: 26px; text-shadow: none; }

/* "Summary" tag: its text starts exactly where the summary lines start */
.d-label { margin-left: -13px; }

/* detail: "Back to list" at the left edge of its button */
#dBack { justify-content: flex-start; padding-left: 24px; }
/* episodes without a picture: only the LOVUL logo, complete, on black */
#detail .ep .ethumb { background: #000 url(../img/logo.png) center/86% auto no-repeat; }

/* episode rows: watched minutes and length in white boxes with black text */
#detail .ep .edur, #detail .ep .ew { background: #fff !important; color: #000 !important; font-weight: bold; font-size: 20px; padding: 2px 10px; line-height: 28px; white-space: nowrap; }

/* watched minutes (first badge): black box, white frame, white text */
#detail .ep .ew { background: #000 !important; color: #fff !important; border: none; line-height: 28px; }

/* Settings > Theme: in-app animations off -> panels appear / disappear at once */
body.no-anim .lv-in-l, body.no-anim .lv-in-r, body.no-anim .lv-in-u { animation: none !important; }
body.no-anim .lv-out-l, body.no-anim .lv-out-r, body.no-anim .lv-out-u { display: none !important; }

/* screensaver: black screen, white icons / logo fading in and out at random places */
#saver { position: fixed; left: 0; top: 0; right: 0; bottom: 0; background: #000; z-index: 9999; overflow: hidden; cursor: none; }
#saver .ss-it { position: absolute; opacity: 0; animation: ssPop 5s ease-in-out forwards !important; }
#saver .ss-it svg { width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
#saver .ss-it img { width: 100%; height: 100%; object-fit: contain; }
@keyframes ssPop { 0% { opacity: 0; } 25% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }

/* info card: live RAM / CPU line */
.pi2-sys { margin-top: 10px; font-size: 21px; font-variant-numeric: tabular-nums; color: #fff; white-space: nowrap; overflow: hidden; }
.pi2-sys .ps-k { background: #fff; color: #000; font-weight: bold; padding: 0 8px; margin-right: 8px; }
.pi2-sys .ps-sep { display: inline-block; width: 28px; }

/* while seeking films / episodes: no key hints line under the bar */
#player.seeking #pHint { visibility: hidden; }

/* film / episode start: bottom shows only the key hints */
#player.p-start #pProg, #player.p-start #pCur, #player.p-start #pDur { visibility: hidden !important; }   /* beats the inline style start() sets */

/* seek bar: same size focused or not (no growing / outline); focused = the empty part of the bar turns white */
.pcv-track { height: 10px; background: rgba(255,255,255,.35); }
.pcv-seek.focused .pcv-track { height: 10px !important; outline: none !important; background: #fff; }
.pcv-seek.focused .pcv-knob { width: 20px !important; height: 30px !important; margin: -15px 0 0 -10px !important; background: var(--accent); border-color: #000; }

/* watched series card: seasons / episodes up to two lines */
.cw-sub.grp { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }

/* "Watched": section titles (Films / Series) */
.cw-sec { font-size: 30px; font-weight: bold; text-transform: uppercase; margin: 10px 4px 14px; display: flex; align-items: center; gap: 12px; }
.cw-grid + .cw-sec { margin-top: 26px; }

/* favourites / continue / search and the EPG guide: no "<" back button next to the title (top bar + Back key) */
#cBack, #eBack { display: none !important; }

/* voice search: mic button in the home search bar + listening window */
#sbField .sb-mic { width: 62px; height: 62px; flex: 0 0 62px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.14); }
#sbField .sb-mic .ico { width: 32px; height: 32px; }
#sbField .sb-mic.focused { background: var(--accent-bg); box-shadow: 0 0 0 3px var(--focus); }
#sbField .sb-mic.focused .ico { stroke: var(--accent-fg); }
.voice-ov { position: fixed; left: 0; top: 0; right: 0; bottom: 0; background: rgba(0,0,0,.72); z-index: 80; display: flex; align-items: center; justify-content: center; }
.voice-ov.hidden { display: none; }
.vo-box { width: 900px; padding: 46px 50px; background: #0b1118; border-top: 4px solid var(--accent); text-align: center; }
.vo-mic { width: 130px; height: 130px; margin: 0 auto 22px; border-radius: 50%; background: var(--accent-bg); display: flex; align-items: center; justify-content: center; animation: voPulse 1.4s ease-in-out infinite; }
.vo-mic .ico { width: 70px; height: 70px; stroke: var(--accent-fg); }
@keyframes voPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.vo-t { font-size: 36px; font-weight: bold; }
.vo-heard { min-height: 50px; margin-top: 16px; font-size: 34px; color: var(--accent); }
.vo-hint { margin-top: 14px; font-size: 24px; color: #fff; opacity: .85; }

/* search screen: mic button left of the search line */
.c-mic { width: 74px; height: 74px; flex: 0 0 74px; display: flex; align-items: center; justify-content: center; background: var(--panel); }
.c-mic.hidden { display: none; }
.c-mic .ico { width: 36px; height: 36px; }
.c-mic.focused { background: var(--accent-bg); }
.c-mic.focused .ico { stroke: var(--accent-fg); }

/* home left panel (◀ on Live TV): voice search + favourite channels */
.qpanel.lpanel { left: 0; right: auto; border-left: none; border-right: 1px solid var(--line); box-shadow: 30px 0 60px rgba(0,0,0,.6); background: linear-gradient(90deg, rgba(4,8,14,.97) 80%, rgba(4,8,14,.9)); }
.lp-mic { display: flex; align-items: center; gap: 18px; height: 90px; margin: 14px 4px 4px; padding: 0 24px; font-size: 30px; font-weight: bold; background: rgba(255,255,255,.08); border-radius: 10px; }
.lp-mic .ico { width: 44px; height: 44px; }
.lp-mic.focused { transform: none; background: var(--accent-bg); color: var(--accent-fg); box-shadow: 0 0 0 3px var(--focus); }
.lp-mic.focused .ico { stroke: var(--accent-fg); }

/* home clock: the TV font ignores tabular digits, so the time gets a fixed-width box - the date next to it no longer moves every second */
#clockTime { display: inline-block; width: 262px; flex: 0 0 262px; white-space: nowrap; overflow: visible; }

/* EPG guide follows the theme colour: now line + its time chip, the playing programmes and the LIVE badge */
.eg-now { background: var(--accent); }
.eg-now span { background: var(--accent-bg); color: var(--accent-fg); }
.eg-p.now { background: rgba(var(--accent-rgb),.30); }
.eg-it .pop-live, .pop-live { background: var(--accent-bg); color: var(--accent-fg); font-weight: bold; }

/* marquee of a long focused name (nav.js) */
.mq-on { text-overflow: clip !important; }
.mq-in { display: inline-block; white-space: nowrap; will-change: transform; }

/* "Watch later" button: clock icon (Android ic_clock_line) */
.later-ico { width: 1em; height: 1em; vertical-align: -0.14em; margin-right: .4em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* film list in the player: 3 rich rows visible (poster, details, short plot, the film's picture behind) */
.p-menu.pm-wide { width: 820px; }
.pm-item.pm-rich { position: relative; height: 196px; flex: 0 0 196px; padding: 14px 18px; gap: 20px; align-items: stretch; overflow: hidden; background: #0b0e13; }
.pm-rich .pr-bg { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background-size: cover; background-position: center 25%; opacity: .32; }
.pm-rich::after { content: ''; position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.25) 100%); }
.pm-rich.focused .pr-bg { opacity: .55; }
.pm-rich.focused { box-shadow: inset 0 0 0 4px #fff; }
.pm-rich .pr-img { position: relative; z-index: 1; flex: 0 0 112px; width: 112px; background-color: #000; background-size: cover, 60px; background-position: center; background-repeat: no-repeat; }
.pm-rich .pr-body { position: relative; z-index: 1; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.pm-rich .pr-title { font-size: 30px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-rich .pr-now { display: inline-block; vertical-align: 4px; font-size: 17px; padding: 2px 10px; background: var(--accent-bg); color: var(--accent-fg); }
.pm-rich .pr-meta { font-size: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-rich .pr-meta i { font-style: normal; opacity: .6; margin: 0 10px; }
.pm-rich .pr-rate { color: #fbbf24; }
.pm-rich .pr-res { background: #fff; color: #000; padding: 0 8px; }
.pm-rich .pr-plot { font-size: 20px; line-height: 28px; max-height: 56px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; opacity: .9; }

/* film list: exactly 3 rows (3 x 196 + 2 gaps + list padding) */
.p-menu.pm-wide .pm-list { flex: 0 0 auto; height: 612px; }

.pm-rich .pr-tag { background: var(--accent-bg); color: var(--accent-fg); padding: 0 8px; }

/* "◀ …" hint in the player menu title */
.pm-title .pm-tt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-title { display: flex; align-items: center; gap: 16px; }
.pm-left { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font-size: 20px; text-transform: uppercase; padding: 4px 14px 4px 8px; background: var(--accent-bg); color: var(--accent-fg); }
.pm-left svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* seek bar: focusing it changes nothing but the knob, which takes the theme colour */
.pcv-seek.focused { transform: none !important; outline: none !important; }
.pcv-seek.focused .pcv-track { height: 10px !important; outline: none !important; background: rgba(255,255,255,.35) !important; }
.pcv-seek.focused .pcv-knob { background: var(--accent-bg) !important; border-color: #000 !important; }

/* info card: a see-through line between the cast and the plot */
.pi2-sep { height: 2px; background: rgba(255,255,255,.22); margin: 14px 0 12px; }
.pi2-sep + .pi2-desc { margin-top: 0; }

/* films / series hero: the same see-through line between the cast and the plot */
.h-crew:not(:empty) { padding-bottom: 12px; border-bottom: 2px solid rgba(255,255,255,.22); }
.h-crew:not(:empty) + .h-plot { margin-top: 12px; }

/* search: live channel cards like the Android app (red frame, logo box, red LIVE badge, NOW line, category) */
.sr-sec .sl-dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: #EF4444; margin-right: 12px; vertical-align: 3px; }
.sr-card.sl { width: 440px; }
.sl-main { width: 440px; padding: 18px; gap: 10px; background: rgba(0,0,0,.30); border: 2px solid rgba(239,68,68,.35); border-radius: 14px; }
.sl-main.focused { box-shadow: none; border-color: #fff; background: rgba(0,0,0,.45); }
.sl-top { display: flex; align-items: center; gap: 16px; }
.sl-logo { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 12px; border: 2px solid rgba(255,255,255,.12); background-color: rgba(0,0,0,.3);
  background-repeat: no-repeat; background-position: center; background-size: contain, 40px; background-origin: content-box; padding: 8px; box-sizing: border-box; }
.sl-head { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding-right: 50px; }
.sl-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: bold; color: #FCA5A5; background: rgba(239,68,68,.2); border: 2px solid rgba(239,68,68,.45); border-radius: 8px; padding: 2px 12px; text-transform: uppercase; }
.sl-badge i { width: 12px; height: 12px; border-radius: 50%; background: #EF4444; }
.sr-card.sl .sr-name { width: auto; margin: 0; font-size: 28px; }
.sl-now { display: block; font-size: 22px; color: #E2E8F0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.sl-now b { color: #FCA5A5; }
.sr-card.sl .sr-cat { width: auto; font-size: 20px; opacity: .75; }
.sr-card.sl .sr-heart { top: 18px; right: 18px; width: 50px; height: 50px; }

/* the card's rows took their content width (long names ran over the next cards): rows fill the card, text is cut */
.sl-main { overflow: hidden; align-items: stretch; }
.sl-main > .sl-top, .sl-main > .sl-now, .sl-main > .sr-cat { width: 100%; max-width: 100%; box-sizing: border-box; }
.sl-head { overflow: hidden; }
.sr-card.sl .sr-name { display: block; max-width: 100%; }

/* live results: 4 cards side by side, sharing the full width */
.sr-card.sl { width: calc((100% - 66px) / 4); }
.sr-card.sl .sl-main { width: 100%; box-sizing: border-box; }

/* home cards: the Android app's icons (same pictures) and its default focus animation, the "breathing neon halo":
   one breath per focus - the frame glows in the card's colour, a halo grows out and fades, it ends on the white frame */
.hc-img { width: 104px; height: 104px; display: block; object-fit: contain; }
.home-card { --neon: 251,113,133; }
.home-card.c-movie { --neon: 165,180,252; }
.home-card.c-series { --neon: 94,234,212; }
@keyframes hcBreath {
  0%   { box-shadow: inset 0 0 0 2px rgba(var(--neon),.9), inset 0 0 0 0 rgba(var(--neon),0), 0 0 0 0 rgba(var(--neon),.0), 0 0 0 0 rgba(var(--neon),0); }
  45%  { box-shadow: inset 0 0 0 5px rgba(var(--neon),1), inset 0 0 36px 4px rgba(var(--neon),.5), 0 0 0 7px rgba(var(--neon),.55), 0 0 34px 8px rgba(var(--neon),.55); }
  100% { box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 0 rgba(var(--neon),0), 0 0 0 20px rgba(var(--neon),0), 0 0 0 0 rgba(var(--neon),0); }
}
.home-card.focused { transform: none; box-shadow: inset 0 0 0 3px #fff; animation: hcBreath .83s cubic-bezier(.25,.8,.35,1) 1 both; }   /* 50% faster (user) */
body.no-anim .home-card.focused { animation: none; }

/* focused home card: its icon grows to 1.5x in 150 ms, like the Android app (FocusHelper.setupScaleOnFocus 1.50f) */
.hc-img { transition: transform .15s ease-out; transform-origin: 50% 50%; }
.home-card.focused .hc-img { transform: scale(1.5); }
#home .home-card { overflow: visible; }

/* home card focus: no coloured neon (user) - a soft white halo that breathes in and out while the card is focused.
   Drawn on a ::after layer and animated with opacity / scale only, so the TV composites it without repainting */
.home-card { position: relative; }
.home-card.focused { animation: none !important; box-shadow: inset 0 0 0 3px #fff; }
.home-card::after { content: ''; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 0 30px 8px rgba(255,255,255,.45), inset 0 0 30px 4px rgba(255,255,255,.22); }
@keyframes hcHalo { from { opacity: .25; transform: scale(1); } to { opacity: 1; transform: scale(1.025); } }
.home-card.focused::after { animation: hcHalo .83s ease-in-out infinite alternate; }
body.no-anim .home-card.focused::after { animation: none; opacity: .8; }

/* the halo breathes twice per focus, then rests on the white frame (user) */
@keyframes hcHalo2 { 0% { opacity: 0; transform: scale(1); } 50% { opacity: 1; transform: scale(1.025); } 100% { opacity: 0; transform: scale(1); } }
.home-card.focused::after { animation: hcHalo2 1.66s ease-in-out 2 both; }
body.no-anim .home-card.focused::after { animation: none; opacity: 0; }

/* the halo breathes once per focus (user) */
.home-card.focused::after { animation: hcHalo2 1.66s ease-in-out 1 both; }
body.no-anim .home-card.focused::after { animation: none; opacity: 0; }

/* live hero like the Android app: category + "N min left (%)" chips, "Now: title (start - end)" with a bar under it */
.h-left { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #000; font-size: 21px; padding: 4px 14px; margin-left: 10px; white-space: nowrap; }
.h-left svg { width: 22px; height: 22px; fill: none; stroke: #000; stroke-width: 2.2; stroke-linecap: round; }
.now-box .nb-t { color: var(--accent); font-weight: bold; }
.now-box .nb-prog { margin: 8px 0 6px; }
/* channel rows: progress bar under the "Now" line, minutes left box, heart */
.chan .cepg { white-space: normal; overflow: visible; }
.chan .ce-l { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chan .ce-t { color: var(--accent); font-weight: bold; }
.chan .ce-bar { display: block; height: 4px; margin-top: 6px; max-width: 520px; background: rgba(255,255,255,.18); }
.chan .ce-bar i { display: block; height: 100%; background: var(--accent); }
.chan .ce-left { flex: 0 0 auto; margin-left: 12px; background: #000; color: #fff; font-size: 21px; font-weight: bold; padding: 4px 12px; white-space: nowrap; }
.chan .ce-heart { flex: 0 0 auto; width: 40px; height: 40px; margin-left: 14px; display: flex; align-items: center; justify-content: center; }
.chan .ce-heart svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 2; }
.chan .ce-heart.on svg { fill: #fff; stroke: #fff; }   /* white, not red (user) */

/* Settings › View › home card colours off: the three home cards are black at 75% */
body.cards-black .home-card.c-live, body.cards-black .home-card.c-movie, body.cards-black .home-card.c-series { background: rgba(0,0,0,.65); }

/* EPG guide: 5 channels (5 x 96 px), the programme description below takes the room it frees */
.eg-rows { flex: 0 0 480px !important; height: 480px !important; }
.eg-now { height: 536px !important; }
.eg-id { max-height: 320px !important; }

/* top card text starts where the list text below starts (the titles panel has ~18 px inner space) */
#hero .h-info { padding-left: 18px; }

/* detail page poster: shown whole (cover cut its sides off) */
.d-poster { background-size: contain, 120px !important; background-color: #05070b; background-position: center !important; }

/* favourite hearts white everywhere (search cards, small ♥ marks) - no pink */
.sr-heart.on svg { fill: #fff !important; stroke: #fff !important; }
.chan .fav, .poster .fav { color: #fff !important; }
.chan .heart.on { fill: #fff !important; stroke: #fff !important; }

/* home profile button: the settings button's frame, the profile colour as an inner square */
#btnProfile.pf-mini .pf-dot { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: bold; color: #fff; border-radius: 4px; }

/* account actions dialog (Android style): big left-aligned rows, the first bold, "delete" red */
#modal.mx-act .btn.act { justify-content: flex-start; text-align: left; height: 92px; flex: 0 0 92px; padding: 0 36px; font-size: 32px; font-weight: normal; background: rgba(0,0,0,.6); border: 2px solid rgba(255,255,255,.14); }
#modal.mx-act .btn.act.first { font-weight: bold; }
#modal.mx-act .btn.act.danger { background: #dc2626; border-color: #dc2626; color: #fff; font-weight: bold; }
#modal.mx-act .btn.act.focused { box-shadow: inset 0 0 0 4px #fff; }

/* "other version" rows: category text, then white chips (added date, resolution) side by side */
.pm-item .pm-chip { flex: 0 0 auto; background: #fff; color: #000; font-size: 19px; font-weight: bold; padding: 2px 10px; white-space: nowrap; }
.pm-item .pm-sub { flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; color: #fff; opacity: .8; }

.pm-item .pm-chip.dark { background: #000; color: #fff; border: 1px solid rgba(255,255,255,.35); }
