/* ---------- Canlı TV (js/live.js) ---------- */
/* channel number before a name: small and quiet, one space after it */
.lv-no { color: var(--muted); font-size: .8em; font-weight: 700; font-variant-numeric: tabular-nums; }
.lv-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border-radius: 5px; background: var(--red); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .06em; vertical-align: .1em; }
.lv-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }   /* a steady dot: the badge already says live (docs/motion.md) */
.lv-bar { display: block; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.lv-bar > span { display: block; height: 100%; background: var(--red); }

/* Logos come in every shape; a coloured monogram sits underneath for the ones that fail. */
.lv-logo { position: relative; display: grid; place-items: center; flex: none; width: 64px; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden;
  background: linear-gradient(135deg, hsl(var(--h) 45% 26%), hsl(calc(var(--h) + 40) 40% 16%)); }
.lv-logo img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: contain; padding: 12%; background: #221e1a; }
.lv-mono { font-weight: 800; font-size: .95rem; letter-spacing: .02em; color: rgba(255, 255, 255, .85); }
.lv-logo.big { width: 100%; aspect-ratio: 16/9; }
.lv-logo.big img { padding: 10% 14%; }
.lv-logo.big .lv-mono { font-size: 1.6rem; }

/* ---------- Şimdi and the guide (round 4 S4) ----------
   Plates: a channel's logo on a dark neutral plate of fixed width (cream means focus and nothing
   else); a channel without a logo gets its name fitted to the plate. Tiles: the plate top left, the
   programme and its time left at the bottom, on one shared photo tinted by the channel's category. */
.lv-page, .lv-numpad { --pl-w: 72px; --pl-h: 36px; --lv-tw: var(--w-wide); }
html.tv .lv-page, html.tv .lv-numpad { --pl-w: 120px; --pl-h: 52px; }
.lv-page kbd, .lv-numpad kbd { display: inline-block; padding: 1px 8px; border: 2px solid currentColor; border-radius: var(--r1); font: inherit; font-weight: 700; font-size: .85em; line-height: 1.3; }
.lv-plate { display: inline-flex; align-items: center; flex: none; height: var(--pl-h); border-radius: var(--r1); background: #2e2924; color: var(--ink);
  font-weight: 700; font-size: var(--fs-detail); line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.lv-plate b { padding: 0 12px 0 10px; border-left: 2px solid var(--rule); font-weight: 700; }
.lv-pl { display: flex; align-items: center; justify-content: center; flex: none; width: var(--pl-w); height: 100%; overflow: hidden; }
.lv-pl img { display: block; max-width: 100%; max-height: 100%; padding: 6px 8px; object-fit: contain; }
.lv-pl.text { padding: 0 8px; font-size: 13px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; text-overflow: ellipsis; display: block; line-height: var(--pl-h); text-align: center; }
.lv-pl.text.fit-s { font-size: 12px; }
.lv-pl.text.fit-xs { font-size: 11px; letter-spacing: -.02em; }
html.tv .lv-pl.text, html.tv .lv-pl.text.fit-s, html.tv .lv-pl.text.fit-xs { font-size: 26px; padding: 0 10px; }
html.tv .lv-pl.text.fit-xs { letter-spacing: -.03em; }

/* the shared photo, tinted per category; lite TVs draw the tint alone */
.lv-art { position: absolute; top: 0; right: 0; bottom: 0; left: 0; --tint: 38, 34, 29;
  background-color: rgb(var(--tint)); background-image: linear-gradient(180deg, rgba(var(--tint), .62) 0%, rgba(var(--tint), .78) 45%, rgba(var(--tint), .96) 100%), url("/assets/art/live-night.jpg");
  background-repeat: no-repeat; background-size: auto, auto 170%; background-position: 0 0, var(--x, 50%) 62%; }
.cat-spor .lv-art, .lv-art.cat-spor { --tint: 22, 40, 30; }
.cat-haber .lv-art { --tint: 24, 32, 44; }
.cat-cocuk .lv-art { --tint: 29, 42, 31; }
.cat-ulusal .lv-art { --tint: 42, 32, 25; }
html.tier-lite .lv-art { background-image: none; }

/* ----- Şimdi ----- */
.lv-simdi .lv-reel { padding: calc(92px + env(safe-area-inset-top)) var(--m) 32px; }
.lv-shead { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 24px; row-gap: 8px; }
.lv-shead h1 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: var(--fs-title); line-height: 1.15; letter-spacing: -.02em; }
.lv-deck { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: var(--fs-deck); line-height: 1.3; color: var(--ink-2); }
.lv-numhint { display: flex; align-items: center; gap: 14px; margin: 0 0 0 auto; align-self: center; font-size: var(--fs-detail); font-weight: 600; color: var(--ink-2); }
.lv-gbtn { align-self: center; margin-left: auto; min-height: var(--h-btn); padding: 0 1.2em; border-radius: 999px; font-size: var(--fs-button); }
.lv-numhint + .lv-gbtn { margin-left: 0; }
.lv-alert { margin: 16px 0 0; padding: 10px 14px; border-left: 3px solid var(--warn); border-radius: 8px; background: rgba(244, 239, 230, .06); font-weight: 700; font-size: var(--fs-detail); }
.lv-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; padding: 18px var(--ring-out) var(--ring-out); margin: 0 calc(-1 * var(--ring-out)); }
.lv-chips::-webkit-scrollbar { display: none; }
.lv-chips button { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--panel-2); color: var(--ink-2);
  font-weight: 600; font-size: var(--fs-detail); white-space: nowrap; }
.lv-chips button.on { background: var(--ink); color: var(--ink-inv); }
.lv-chips .icon { width: 1em; height: 1em; }
.lv-note { color: var(--ink-2); font-size: var(--fs-detail); padding: 24px 0 0; margin: 0; }
.lv-empty { color: var(--ink-2); font-size: var(--fs-body); }
.lv-skel { height: 72px; margin-bottom: 8px; border-radius: var(--r2); background: rgba(244, 239, 230, .05); }

/* today's matches: the first big, the rest a list beside it (stacked on a phone) */
.lv-matches { margin-top: 28px; }
.lv-matches .track { display: grid; grid-template-columns: minmax(0, 41fr) minmax(0, 57fr); grid-auto-rows: 96px; gap: 16px 32px;
  overflow: visible; padding: 0; margin: 0; scroll-snap-type: none; }
.lv-match { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr) auto auto; grid-template-areas: "kick teams chip plate"; align-items: center; column-gap: 20px;
  min-width: 0; padding: 0 20px; border-radius: var(--r2); background: var(--panel-2); text-align: left; }
.lv-match .lv-plate { grid-area: plate; }
.lv-mchip { grid-area: chip; padding: 3px 9px 2px; border-radius: var(--r1); background: var(--red); color: #fff; font-size: var(--fs-detail); font-weight: 700; letter-spacing: .06em; line-height: 1.25; white-space: nowrap; }
.lv-mchip.off { background: var(--panel-3); color: var(--ink-2); letter-spacing: 0; }
.lv-mk { grid-area: kick; display: flex; flex-direction: column; }
.lv-mk b { font-family: var(--serif); font-weight: 500; font-size: calc(var(--fs-row) * 1.05); line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lv-mk span { font-size: var(--fs-detail); color: var(--ink-2); line-height: 1.3; }
.lv-mt { grid-area: teams; display: flex; flex-direction: column; min-width: 0; font-size: var(--fs-button); font-weight: 600; line-height: 1.25; }
.lv-mt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-mc { display: none; }
.lv-match + .lv-match { grid-column: 2; }
/* the first: the pitch, the kick-off time between the two sides, the channel under them */
.lv-match:first-child { grid-row: 1 / span 3; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-rows: 64px minmax(0, 1fr) auto;
  grid-template-areas: "plate . chip" "home kick away" "ch ch ch"; align-items: center; column-gap: 24px; padding: 20px 24px 26px;
  background: radial-gradient(ellipse at 50% 120%, rgba(60, 207, 142, .18), rgba(60, 207, 142, 0) 60%), linear-gradient(180deg, #1d3426, var(--cat-spor)); }
.lv-match:first-child .lv-plate { justify-self: start; align-self: start; }
.lv-match:first-child .lv-mchip { justify-self: end; align-self: start; }
.lv-match:first-child .lv-mk { align-items: center; text-align: center; }
.lv-match:first-child .lv-mk b { font-size: calc(var(--fs-title) * .8); line-height: 1.05; }
.lv-match:first-child .lv-mt { display: contents; }
.lv-match:first-child .lv-mt span { font-size: calc(var(--fs-button) * 1.1); font-weight: 600; line-height: 1.2; white-space: normal; overflow: visible; }
.lv-match:first-child .lv-mt span:first-child { grid-area: home; text-align: right; }
.lv-match:first-child .lv-mt span:last-child { grid-area: away; text-align: left; }
.lv-match:first-child .lv-mt span:only-child { grid-area: kick; grid-row: 3; text-align: center; }
.lv-match:first-child .lv-mc { grid-area: ch; display: block; text-align: center; font-size: var(--fs-detail); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Match tiles and channel tiles don't lift (§1.12 focus noScale): the ring says where the remote is. */
.lv-match:focus-visible, .lv-ctile:focus-visible { transform: none; border-radius: var(--r2); }

/* rows of channels */
.lv-crow { margin-top: var(--row-gap); }
.lv-crow h2 { margin: 0 0 14px; font-family: var(--serif); font-weight: 500; font-size: var(--fs-row); line-height: 1.15; letter-spacing: -.01em; }
.lv-crow .track { gap: var(--card-gap); padding: var(--ring-out); margin: calc(-1 * var(--ring-out)); }
.lv-ctile { position: relative; display: block; flex: 0 0 var(--lv-tw); width: var(--lv-tw); height: calc(var(--lv-tw) * .5625); border-radius: var(--r2); overflow: hidden;
  background: var(--panel-1); text-align: left; }
.lv-ctile.skel { background: var(--panel-1); }
.lv-ctile .lv-plate { position: absolute; top: 12px; left: 12px; z-index: 1; }
.lv-tw { position: absolute; left: 16px; right: 16px; bottom: 20px; display: flex; flex-direction: column; }
.lv-tt { font-size: var(--fs-button); font-weight: 600; line-height: 1.25; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-ts { font-size: var(--fs-detail); line-height: 1.3; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.lv-ctile .lv-bar { position: absolute; left: 16px; right: 16px; bottom: 10px; height: 4px; background: rgba(244, 239, 230, .3); }
.lv-ctile .lv-bar > span { background: var(--ink); }

/* the remote's digits */
.lv-numpad { position: fixed; top: 84px; right: var(--m); z-index: 25; display: flex; align-items: center; gap: 18px; padding: 14px 24px; border-radius: var(--r3);
  background: var(--panel-2); font-size: var(--fs-body); font-weight: 600; }
.lv-numpad b { font-family: var(--serif); font-weight: 500; font-size: calc(var(--fs-title) * .8); line-height: 1; font-variant-numeric: tabular-nums; }
.lv-numpad.none span { color: var(--ink-2); }
html.tv .lv-numpad { top: 64px; right: 106px; }

/* ----- the guide ----- */
.lv-guide { padding: calc(92px + env(safe-area-inset-top)) var(--m) 24px; }
.lv-ghead { display: grid; grid-template-columns: 240px minmax(0, 1fr) auto; align-items: center; column-gap: 32px; height: 135px; overflow: hidden; }
.lv-hart { position: relative; display: flex; align-items: center; justify-content: center; height: 100%; border-radius: var(--r2); overflow: hidden; background: var(--panel-1); }
.lv-hart .lv-plate { position: relative; z-index: 1; }
.lv-hbody { min-width: 0; }
.lv-heye { display: flex; align-items: center; gap: 12px; margin: 0; font-size: var(--fs-detail); font-weight: 600; line-height: 1.3; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.lv-heye .lv-mchip { flex: none; }
.lv-htitle { margin: 4px 0 0; font-family: var(--serif); font-weight: 500; font-size: calc(var(--fs-title) * .62); line-height: 1.15; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-hfacts { margin: 6px 0 0; font-size: var(--fs-body); line-height: 1.3; color: var(--ink-2); white-space: pre; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.lv-hdesc { margin: 6px 0 0; font-size: var(--fs-detail); line-height: 1.3; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-ok { display: flex; align-items: center; gap: 12px; margin: 0; font-size: var(--fs-detail); font-weight: 600; white-space: nowrap; }
.lv-hplay { border-radius: 999px; min-height: var(--h-btn); padding: 0 1.4em; font-size: var(--fs-button); }
.lv-gmain { display: flex; gap: 20px; margin-top: 20px; }
.lv-gbody { flex: 1; min-width: 0; }
.lv-cats { flex: 0 0 180px; display: flex; flex-direction: column; gap: 6px; max-height: calc(100vh - 300px); overflow-y: auto; scrollbar-width: none; padding: var(--ring-out); margin: 34px calc(-1 * var(--ring-out)) 0; }
.lv-cats::-webkit-scrollbar { display: none; }
/* A long name ("Günün maçları", the match nights' list) wraps to a second line instead of losing its end. */
.lv-cats button { position: relative; display: flex; align-items: center; gap: 10px; flex: none; min-height: 44px; padding: 6px 16px 6px 22px; border-radius: 22px; color: var(--ink-2);
  font-size: var(--fs-body); font-weight: 600; line-height: 1.2; text-align: left; }
.lv-cats button span { min-width: 0; overflow-wrap: break-word; }
.lv-cats button.on { color: var(--ink); font-weight: 700; }
.lv-cats button.on::before { content: ""; position: absolute; left: 8px; top: 30%; bottom: 30%; width: 4px; border-radius: 2px; background: currentColor; }
.lv-cats .icon { width: 1em; height: 1em; flex: none; }
.lv-cats button:focus-visible { background: var(--focus-c); color: var(--ink-inv); }
.lv-gtitle { margin: 0; font-family: var(--serif); font-weight: 500; font-size: var(--fs-title); line-height: 1.15; }

.lv-epg { --lead: 156px; position: relative; }
.lv-axisrow { position: relative; display: flex; align-items: center; height: 34px; }
.lv-axislead { flex: 0 0 var(--lead); display: flex; align-items: center; gap: 10px; font-size: var(--fs-detail); font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.lv-axis { position: relative; flex: 1; height: 100%; }
.lv-axis span { position: absolute; top: 0; padding-left: 10px; border-left: 2px solid var(--rule); font-size: var(--fs-detail); font-weight: 600; line-height: 30px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lv-nowpill { position: absolute; top: 0; z-index: 1; margin-left: -1.6em; padding: 0 .5em; border-radius: 999px; background: var(--red); color: #fff; font-size: var(--fs-detail); font-weight: 700; line-height: 30px; font-variant-numeric: tabular-nums; }
.lv-tprev, .lv-tnext { position: absolute; top: -4px; width: 36px; height: 36px; padding: 0; }
.lv-tprev { right: 42px; }
.lv-tnext { right: 0; }
.lv-tprev[disabled], .lv-tnext[disabled] { opacity: .3; cursor: default; }
.lv-gv { position: relative; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.lv-gsp { position: relative; }
.lv-grow { position: absolute; left: 0; right: 0; height: 64px; display: flex; }
.lv-gno { flex: 0 0 44px; padding-right: 8px; font-family: var(--serif); font-weight: 500; font-size: calc(var(--fs-row) * .85); line-height: 64px; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.lv-gplate { --pl-w: 96px; --pl-h: 64px; margin-right: 16px; justify-content: center; }
.lv-gplate .lv-pl.text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; overflow: hidden; }
.lv-cells { position: relative; flex: 1; min-width: 0; overflow: hidden; }
/* every row's programmes on one strip; the window over it is the strip's transform (live.js epg) */
.lv-strip { position: absolute; top: 0; bottom: 0; left: 0; width: 0; }
.lv-cell { position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 0 14px; border-radius: var(--r1);
  background: var(--panel-2); text-align: left; overflow: hidden; }
.lv-cell.cat-spor { background: var(--cat-spor); }
.lv-cell.cat-haber { background: var(--cat-haber); }
.lv-cell.cat-cocuk { background: var(--cat-cocuk); }
.lv-cell.past, .lv-cell.none { background: var(--panel-1); }
.lv-ce { font-size: var(--fs-detail); font-weight: 600; line-height: 1.3; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.lv-ce .f { display: none; }
.lv-ct { font-size: var(--fs-button); font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-cell.past .lv-ct, .lv-cell.none .lv-ct { color: var(--ink-2); }
.lv-el { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--live); }
/* The focused cell inverts (§1.12 focus invertedFill guideCell): its words say the whole time, the
   elapsed bar steps aside. No ring: the fill is the focus. */
.lv-cell:focus-visible { background: var(--focus-c); color: var(--ink-inv); box-shadow: none; }
.lv-cell:focus-visible .lv-ce, .lv-cell:focus-visible .lv-ct { color: var(--ink-inv); }
.lv-cell:focus-visible .lv-ce .f { display: inline; }
.lv-cell:focus-visible .lv-ce .r, .lv-cell:focus-visible .lv-el { display: none; }
.lv-grow.lv-off .lv-gplate, .lv-grow.lv-off .lv-gno { opacity: .5; }
.lv-grow.lv-off { opacity: 1; }

/* channel wall (24/7 channels without a guide) */
.lv-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.lv-tile { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 14px; align-items: center; padding: 12px; border-radius: var(--r2);
  background: var(--panel-1); text-align: left; }
.lv-tile .lv-plate { grid-row: 1 / span 3; }
.lv-tname { font-weight: 700; font-size: var(--fs-button); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-tnow { color: var(--ink-2); font-size: var(--fs-detail); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-tile .lv-bar { margin-top: 6px; }
.lv-tile:focus-visible { background: var(--panel-3); }

/* ----- a TV: Şimdi on a stage cut at the overscan edges (y 54..1026), moved a stop at a time ----- */
html.tv .lv-simdi .lv-stage { position: fixed; top: 54px; left: 0; right: 0; height: 972px; overflow: hidden; }
html.tv .lv-simdi .lv-reel { padding: 64px 106px 0; will-change: transform; }
html.tv .topbar.lv-away { visibility: hidden; }
html.tv .lv-page { --lv-tw: 397px; }
html.tv .lv-matches .track { grid-template-columns: 700px minmax(0, 1fr); grid-auto-rows: 120px; gap: 20px 40px; }
html.tv .lv-crow .track { overflow: hidden; scroll-snap-type: none; }
html.tv .lv-crow .lv-ctile:last-child { margin-right: 0; }
/* the guide: header 110..312, times, then six rows of 86 every 96 from y 384 to 950 */
html.tv .lv-guide { padding: 110px 106px 0; }
html.tv .lv-ghead { grid-template-columns: 360px minmax(0, 1fr) auto; column-gap: 40px; height: 202px; }
html.tv .lv-hart .lv-plate { --pl-w: 150px; --pl-h: 72px; font-size: 34px; }
html.tv .lv-gmain { margin-top: 18px; gap: 16px; }
html.tv .lv-cats { flex-basis: 220px; max-height: 586px; overflow: hidden; margin-top: 44px; gap: 10px; }
html.tv .lv-cats button { min-height: 62px; padding-left: 26px; }
html.tv .lv-epg { --lead: 230px; }
html.tv .lv-axisrow { height: 44px; }
html.tv .lv-axis span, html.tv .lv-nowpill { line-height: 40px; }
html.tv .lv-gv { overflow-y: hidden; }
html.tv .lv-grow { height: 86px; }
html.tv .lv-gno { flex-basis: 70px; padding-right: 10px; line-height: 86px; font-size: 44px; }
html.tv .lv-gplate { --pl-w: 140px; --pl-h: 86px; margin-right: 10px; }
html.tv .lv-cell { padding: 0 18px; }
html.tv .lv-ce { line-height: 1.25; }
html.tv .lv-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

@media (hover: hover) {
  .lv-cell:hover, .lv-tile:hover { background: var(--panel-3); }
  .lv-cats button:hover, .lv-chips button:not(.on):hover { color: var(--ink); }
}
@media (max-width: 720px) {
  .lv-simdi .lv-reel, .lv-guide { padding-top: calc(76px + env(safe-area-inset-top)); }
  .lv-page, .lv-numpad { --pl-w: 64px; --pl-h: 34px; }
  .lv-plate { font-size: 15px; }
  .lv-plate b { padding: 0 10px 0 8px; }
  .lv-shead h1, .lv-deck { flex: 1 0 100%; }
  .lv-gbtn { margin: 10px 0 0; min-height: 44px; }
  .lv-matches .track { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: 12px; }
  .lv-match { grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: "kick teams plate" "kick teams chip"; row-gap: 6px; min-height: 84px; padding: 10px 14px; }
  .lv-mchip { justify-self: end; }
  .lv-match + .lv-match { grid-column: auto; }
  .lv-match:first-child { grid-row: auto; grid-template-rows: 40px auto auto; min-height: 210px; padding: 14px 14px 16px; }
  .lv-chips button { min-height: 44px; }   /* thumb-sized, like .chip and .tab */
  .lv-crow .track { scroll-snap-type: x mandatory; }
  .lv-ctile { scroll-snap-align: start; }
  .lv-guide .lv-chips { padding-top: 14px; }
  .lv-guide .lv-list { margin-top: 12px; }
  .lv-guide .lv-item .lv-logo { width: 64px; }
}

/* now/next list (phones, search) */
.lv-list { display: grid; gap: 8px; }
.lv-item { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; text-align: left; padding: 10px; border-radius: var(--radius); background: rgba(244, 239, 230, .05); }
.lv-item .lv-logo { width: 72px; }
.lv-ibody { display: grid; gap: 4px; min-width: 0; }
.lv-iname { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-inow { font-size: .9rem; color: #e9e2d6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-inext { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-item:focus-visible { background: rgba(244, 239, 230, .12); }
.track > .lv-item { flex: 0 0 min(340px, 82vw); }

/* home row cards */
.lv-card { flex: 0 0 calc(var(--card) * 1.6); display: grid; gap: 4px; text-align: left; border-radius: var(--radius); scroll-snap-align: start; }
.lv-card.lv-skel { height: auto; aspect-ratio: 16/12; margin: 0; }
.lv-cart { position: relative; display: block; }
.lv-cart .lv-badge { position: absolute; top: 8px; left: 8px; }
.lv-cname { font-weight: 800; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.lv-csub { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-card:focus-visible { box-shadow: none; }
.lv-card:focus-visible .lv-logo { box-shadow: var(--focus-art); }
/* "Tümü" ends the row for remotes (liveRow): as wide as a channel card, its art's 16:9 height
   (written out, no aspect-ratio: Chromium 85). */
.lv-track > .card.more-tile { flex-basis: calc(var(--card) * 1.6); }
.lv-track > .card.more-tile .poster { height: calc(var(--card) * 1.6 * .5625); padding-top: 0; }
/* No aspect-ratio before Chromium 88 (Tizen 6.5): a spacer in the logo's one grid cell, with the
   monogram over it, makes it a share of its own width tall. */
@supports not (aspect-ratio: 1) {
  .lv-logo::before { content: ""; grid-area: 1 / 1; padding-top: 75%; }
  .lv-logo.big::before, .lv-schip .lv-logo::before { padding-top: 56.25%; }
  .lv-mono { grid-area: 1 / 1; }
  .lv-card.lv-skel { height: calc(var(--card) * 1.2); }
}

/* ---------- live player ---------- */
.lv-player .player-controls { background: linear-gradient(180deg, rgba(0, 0, 0, .75), transparent 26%, transparent 52%, rgba(0, 0, 0, .9)); }
.lv-phead { display: flex; align-items: center; gap: 14px; min-width: 0; }
.lv-phead .lv-logo { width: 72px; }
.lv-phead .pt-main { font-size: 1.3rem; font-weight: 800; }
.lv-phead .pt-sub { display: flex; align-items: center; gap: 8px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.lv-pinfo { max-width: 900px; }
/* The line is too slow for this channel (live.js lineShort): one line, and the HD version's button. */
.lv-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; max-width: 900px; margin-top: 10px; padding: 8px 12px; border-left: 3px solid var(--warn); border-radius: 8px; background: rgba(0, 0, 0, .55); }
.lv-hint[hidden] { display: none; }
.lv-hint p { margin: 0; font-weight: 700; }
/* Seen off air by the relay, or no HLS for the browser: dimmed in place, still tappable. */
.lv-off { opacity: .5; }
.lv-ptitle { font-size: clamp(1.3rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.01em; }
.lv-ptime { display: grid; grid-template-columns: auto minmax(80px, 320px) auto auto; justify-content: start; align-items: center; gap: 10px; margin-top: 8px; color: #ddd; font-size: .9rem; font-variant-numeric: tabular-nums; }
.lv-left { color: var(--muted); }
.lv-pdesc { margin: 8px 0 0; color: #ddd5c8; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lv-pnext { margin-top: 8px; color: var(--muted); }
.lv-pnext b { color: var(--ink); }
.lv-spacer { flex: 1; }
.lv-player .icon-btn[aria-pressed="true"] { color: var(--warn); }
.lv-slate { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: grid; place-items: center; background: radial-gradient(900px 500px at 50% 60%, rgba(70, 50, 34, .5), #000 70%); z-index: 1; }
.lv-slate-in { display: grid; justify-items: center; gap: 12px; text-align: center; width: min(420px, 80vw); }
.lv-slate-in .lv-logo { width: 200px; }
.lv-sname { font-size: 1.4rem; font-weight: 800; }
.lv-snow { color: var(--muted); }
.lv-sdown p, .lv-swait { color: var(--muted); margin: 8px 0 0; }
.lv-sdown .row-btns { justify-content: center; }
.lv-player .player-controls { z-index: 2; }
/* Only the bars take pointer input, so the slate's buttons under the controls stay tappable. */
.lv-player.show-ui .player-controls { pointer-events: none; }
.lv-player.show-ui .player-controls .top, .lv-player.show-ui .player-controls .bottom { pointer-events: auto; }
.lv-strip { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 18px 0 max(18px, env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(0, 0, 0, .95) 60%, transparent); }
.lv-player.strip-open .player-controls .bottom { visibility: hidden; }
.lv-schip { flex: 0 0 220px; display: grid; gap: 6px; text-align: left; padding: 10px; border-radius: 12px; background: rgba(38, 34, 29, .9); }
.lv-schip .lv-logo { width: 100%; aspect-ratio: 16/9; }
.lv-schip.current { outline: 2px solid var(--red); outline-offset: -2px; }
.lv-sct { font-weight: 800; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-scn { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-schip:focus-visible { background: var(--ink); color: var(--ink-inv); box-shadow: none; }
.lv-schip:focus-visible .lv-scn, .lv-schip:focus-visible .lv-no { color: #444; }
.lv-num { position: absolute; top: max(24px, env(safe-area-inset-top)); right: var(--gutter); z-index: 4; padding: 10px 20px; border-radius: 12px; background: rgba(0, 0, 0, .7); font-size: 2.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
/* inside the overscan edges on a TV (y 54, x 1824) */
html.tv .lv-num { top: 64px; right: 106px; }

@media (hover: hover) {
  .lv-item:hover, .lv-schip:hover { background: rgba(244, 239, 230, .18); }
}
@media (max-width: 720px) {
  .lv-item { grid-template-columns: 64px 1fr; }
  .lv-item .lv-logo { width: 64px; }
  .lv-phead .lv-logo { width: 52px; }
  .lv-pdesc { display: none; }
  .lv-ptime { grid-template-columns: auto 1fr auto; }
  .lv-left { display: none; }
  .lv-schip { flex-basis: 160px; }
  .lv-slate-in .lv-logo { width: 150px; }
}
