:root {
  --black: #000;
  --ink: #f4f1ea;
  --west: #0057b8;
  --net: #cd040b;
  --paper: #efe6d4;
  --paper-2: #e5d7c0;
  --rule: #cbb892;
  --type: #1b1714;
  --quiet: #5c5348;
  --slip: #f7f1e4;
}

* { box-sizing: border-box; }
html, body { background: #000; color: #f4f1ea; }
body {
  margin: 0;
  font-family: Outfit, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
}
button, input, select { font: inherit; color: inherit; }
a { color: #0057b8; }
a:focus, button:focus, input:focus, select:focus { outline: 2px solid #0057b8; outline-offset: 2px; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #efe6d4;
  color: #1b1714;
  padding: 6px 10px;
}
.skip:focus { top: 8px; z-index: 9; }

.mast {
  background: #000;
  border-bottom: 3px solid #0057b8;
  padding: 12px 16px;
}
.mast .find { margin: 10px 0 0; max-width: 420px; }
.brand {
  text-decoration: none;
  font-family: "Archivo Black", "Arial Black", Arial, sans-serif;
  font-size: 28px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.brand-mark {
  height: 34px;
  width: auto;
  vertical-align: middle;
  mix-blend-mode: screen;
}
.west { color: #0057b8; }
.net { color: #cd040b; }
.product {
  display: inline-block;
  margin-left: 10px;
  font-family: Outfit, "Segoe UI", Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: #f4f1ea;
  vertical-align: middle;
}
.nav { margin-top: 8px; }
.nav a { color: #f4f1ea; text-decoration: none; margin-right: 14px; }
.nav a[aria-current="page"] { color: #0057b8; }
.pkg { margin: 8px 0 0; color: #f4f1ea; }

.stage { padding: 14px 16px 0; }
.screen-wrap {
  position: relative;
  height: 0;
  padding-bottom: 56.25%;
  background: #000;
  border-top: 3px solid #cd040b;
}
video, .plate, .playglass { position: absolute; }
video {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
}
video::cue { background: #000; color: #fff; }
.plate {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  background: #000;
}
.plate-kicker { margin: 0; color: #0057b8; }
.plate-name {
  margin: 0;
  font-family: Newsreader, Palatino, "Palatino Linotype", serif;
  font-size: 40px;
  font-weight: 650;
  line-height: 1.05;
  color: #f4f1ea;
}
.playglass {
  left: 50%;
  top: 50%;
  margin-left: -36px;
  margin-top: -18px;
  background: #efe6d4;
  color: #1b1714;
  border: 0;
  padding: 10px 22px;
  cursor: pointer;
}
.transport { padding: 8px 0; }
.tuned { margin: 0; display: inline; }
.transport-actions { display: inline; margin-left: 12px; }
#captions, #quality, #stats, #share, .add-form button, .src-list button, .filter {
  background: transparent;
  color: #f4f1ea;
  border: 1px solid #0057b8;
  padding: 6px 12px;
  cursor: pointer;
  text-decoration: none;
}
#quality, #stats { margin-left: 6px; }
#captions[aria-pressed="true"], #stats[aria-pressed="true"], #quality[aria-expanded="true"], .filter[aria-current="page"] {
  background: #0057b8;
  color: #fff;
}
.qwrap { display: inline-block; position: relative; }
.qmenu {
  position: absolute;
  left: 0;
  bottom: 100%;
  z-index: 6;
  min-width: 210px;
  max-height: 240px;
  overflow: auto;
  background: #000;
  border: 1px solid #0057b8;
  padding: 4px;
}
.qmenu button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  color: #f4f1ea;
  border: 0;
  padding: 6px 8px;
  cursor: pointer;
}
.qmenu button[aria-checked="true"] { background: #0057b8; color: #fff; }
.qnote { margin: 0; padding: 6px 8px; color: #f4f1ea; font-size: 13px; }
.nerd {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  width: 320px;
  max-width: 78%;
  background: #000;
  color: #f4f1ea;
  border-left: 3px solid #0057b8;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.35;
}
.nerd-title {
  margin: 0 0 6px;
  color: #0057b8;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.nerd dl { margin: 0; }
.nerd dt {
  float: left;
  clear: left;
  width: 7.6em;
  color: #0057b8;
}
.nerd dd { margin: 0 0 2px 7.8em; word-break: break-all; }
.playglass { z-index: 4; }
.track-label select, .add-form input {
  background: #000;
  color: #f4f1ea;
  border: 1px solid #0057b8;
  padding: 6px 8px;
}
.cc-note { margin: 6px 0 0; color: #f4f1ea; }
.status, .open-line { min-height: 1.4em; margin: 0; color: #f4f1ea; }
#share { margin-left: 6px; background: transparent; color: #f4f1ea; border: 1px solid #0057b8; padding: 6px 12px; cursor: pointer; }
.open-line a { color: #f4f1ea; }
.keys { margin: 8px 0 0; color: #f4f1ea; }
.keys summary { cursor: pointer; font-weight: 700; }
.keys summary:focus { outline: 2px solid #0057b8; outline-offset: 2px; }
.keys ul { margin: 8px 0 0; padding: 10px 12px 10px 28px; background: #efe6d4; color: #1b1714; }
.keys li { margin: 0 0 4px; }
.bezel:fullscreen,
.bezel:-webkit-full-screen,
.bezel:-moz-full-screen,
.bezel:-ms-fullscreen {
  width: 100%;
  height: 100%;
  background: #000;
  padding: 12px 16px;
  overflow: auto;
}
.bezel:fullscreen .screen-wrap,
.bezel:-webkit-full-screen .screen-wrap,
.bezel:-moz-full-screen .screen-wrap,
.bezel:-ms-fullscreen .screen-wrap {
  height: calc(100vh - 150px);
  padding-bottom: 0;
}

.slip {
  background: #f7f1e4;
  color: #1b1714;
  padding: 16px 16px 18px;
  margin-top: 14px;
}
.slip-num { margin: 0; color: #0057b8; }
.slip h1 {
  margin: 4px 0 8px;
  font-family: Newsreader, Palatino, "Palatino Linotype", serif;
  font-weight: 650;
  font-size: 34px;
  line-height: 1.05;
}
.slip-meta, .slip-blurb { margin: 0; }
.slip-blurb { margin-top: 8px; }

.filters {
  display: flex;
  flex-wrap: wrap;
  padding: 14px 16px 0;
}
.filter { display: inline-block; margin: 0 8px 8px 0; white-space: nowrap; }
.switcher {
  display: flex;
  align-items: stretch;
  padding: 12px 16px 0;
}
#step-prev { margin-right: 8px; }
.step {
  flex: 0 0 auto;
  min-width: 72px;
  min-height: 44px;
  padding: 10px 12px;
  background: #000;
  color: #f4f1ea;
  border: 1px solid #0057b8;
  text-align: center;
  text-decoration: none;
  line-height: 22px;
}
.step.is-off { opacity: 0.35; pointer-events: none; }
.find { flex: 1 1 auto; margin: 0; min-width: 0; position: relative; }
.find-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.find input {
  width: 100%;
  min-height: 44px;
  background: #000;
  color: #f4f1ea;
  border: 1px solid #0057b8;
  padding: 8px 10px;
}
.is-hidden { display: none !important; } /* must beat .station/.lineup-board display rules so search filters the grid */

.paper {
  margin: 14px 16px;
  background: #efe6d4;
  color: #1b1714;
}
.paper-head { padding: 12px 12px 0; }
.paper-head h2 {
  margin: 0;
  font-family: Newsreader, Palatino, serif;
  font-size: 28px;
  font-weight: 650;
}
.paper-head p { margin: 4px 0 0; color: #5c5348; }
.guide-scroll { overflow-x: auto; padding: 8px 0 12px; }
.guide-frame { position: relative; }
.grid-tools { display: none; margin: 8px 0 0; }
.grid-tools button {
  background: transparent;
  color: #1b1714;
  border: 1px solid #0057b8;
  min-height: 44px;
  padding: 6px 12px;
  cursor: pointer;
}
.guide-cards { display: none; }
.dock { display: none; }
.guide-table { border-collapse: collapse; min-width: 980px; width: 100%; }
.guide-table th, .guide-table td {
  border-top: 1px solid #cbb892;
  vertical-align: top;
  text-align: left;
  font-weight: 400;
}
.guide-table thead th {
  color: #5c5348;
  font-size: 13px;
  padding: 6px;
  background: #efe6d4;
}
.guide-table tbody th {
  width: 168px;
  padding: 8px 10px;
  background: #efe6d4;
  border-left: 4px solid transparent;
}
.guide-table tbody tr:nth-child(even) th,
.guide-table tbody tr:nth-child(even) td { background: #e5d7c0; }
.guide-table tr.is-on th { border-left-color: #0057b8; background: #fffdf6; }
.guide-table a { color: #1b1714; text-decoration: none; display: block; }
.guide-table .n { color: #0057b8; }
.guide-table small { display: block; color: #5c5348; }
.guide-table .prog { padding: 8px; }
.prog-title {
  display: block;
  font-family: Newsreader, Palatino, serif;
  font-weight: 650;
  font-size: 17px;
}
.prog-meta { display: block; color: #5c5348; font-size: 13px; }
.slot-now { color: #cd040b; font-weight: 700; }

.station-pad { padding: 12px; }
.station-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.lineup-board { padding: 0 12px 8px; }
.lineup-label {
  margin: 16px 0 8px;
  font-family: Outfit, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5c5348;
}
.station {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 10px;
  background: #fffdf8;
  color: #1b1714;
  text-decoration: none;
}
.station.is-on { background: #0057b8; color: #fff; }
.station-mark {
  flex: 0 0 72px;
  width: 72px;
  height: 48px;
  object-fit: contain;
  background: #fff;
}
.station-num {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0057b8;
  color: #fff;
  font-family: "Archivo Black", "Arial Black", Arial, sans-serif;
  font-size: 20px;
}
.station.is-on .station-num { background: #000; }
.station-copy { min-width: 0; }
.station-name {
  display: block;
  font-family: Newsreader, Palatino, serif;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.15;
}
.station-now {
  display: block;
  margin-top: 3px;
  color: #5c5348;
  font-size: 13px;
  line-height: 1.3;
}
.station.is-on .station-now { color: #d6e6f8; }
.empty { padding: 12px; }
.foot { margin: 0; padding: 0 16px 28px; color: #f4f1ea; }

.admin-main { padding: 8px 16px 40px; max-width: 960px; }
.admin-main h1, .admin-main h2 {
  font-family: Newsreader, Palatino, serif;
  font-weight: 650;
}
.lede, .fine, .note { max-width: 62ch; }
.note { padding: 8px 10px; background: #efe6d4; color: #1b1714; }
.note.bad { border-left: 4px solid #cd040b; }
.note.ok { border-left: 4px solid #0057b8; }
.add-form { display: block; max-width: 720px; }
.add-form label { display: block; margin: 0 0 8px; }
.add-form .check { display: block; }
.add-form textarea {
  display: block;
  width: 100%;
  min-height: 180px;
  margin-top: 4px;
  background: #000;
  color: #f4f1ea;
  border: 1px solid #0057b8;
  padding: 8px;
}
.src-list { list-style: none; padding: 0; max-width: none; }
.src-list li { border-top: 1px solid #cbb892; }
.src-list form { padding: 8px 0; overflow: hidden; }
.src-list button { float: right; }
.src-meta { display: block; margin-right: 88px; }
.src-url { display: block; margin-top: 4px; word-break: break-all; font-size: 13px; }
.src-sample { color: #f4f1ea; }
.admin-main .keys { max-width: 720px; }
.skip-list { max-width: 720px; }
.skip-list li { margin: 0 0 10px; }
code { color: #f4f1ea; }

@media (min-width: 900px) {
  .mast { overflow: hidden; }
  .brand { float: left; }
  .brand-mark { height: 42px; }
  .nav { float: left; margin: 14px 0 0 18px; }
  .mast .find { float: right; width: 280px; margin: 6px 0 0; }
  .pkg { float: right; margin: 6px 0 0; }
  .bezel { float: left; width: 62%; }
  .slip { float: right; width: 35%; margin-top: 0; }
  .stage { overflow: hidden; }
  .switcher { width: 62%; padding-right: 0; }
  .plate-name { font-size: 52px; }
  .station-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1200px) {
  .station-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.guide-scroll { -webkit-overflow-scrolling: touch; }
.guide-table thead th:first-child,
.guide-table tbody th {
  position: sticky;
  left: 0;
}
.guide-table thead th:first-child { z-index: 4; }
.guide-table tbody th { z-index: 4; }

@media (max-width: 700px) {
  .mast { padding: 10px 12px; }
  .mast .find { max-width: none; }
  .nav .viewlink { display: none; }
  .nav a {
    display: inline-block;
    margin: 0 12px 4px 0;
    padding: 8px 0;
  }
  .stage { padding: 10px 12px 0; }
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 12px 0;
  }
  .paper { margin: 12px; }
  .foot { padding: 0 12px 88px; }
  .grid-tools { display: block; }
  .guide-cards.station-grid { display: grid; grid-template-columns: 1fr; }
  .guide-scroll { display: none; }
  body.show-grid .guide-scroll { display: block; }
  body.show-grid .guide-cards { display: none; }
  .dock {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 8;
    background: #000;
    border-top: 3px solid #0057b8;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .dock a {
    flex: 1 1 0;
    text-align: center;
    color: #f4f1ea;
    text-decoration: none;
    padding: 14px 4px;
    min-height: 48px;
  }
  .dock a[aria-current="page"] { background: #0057b8; color: #fff; }
  body { padding-bottom: 64px; }
  .switcher { padding: 10px 12px 0; }
  .station { min-height: 72px; }
  .guide-table tbody th a { min-height: 44px; }
  .tuned { display: block; font-size: 18px; }
  .transport-actions { display: block; margin: 8px 0 0; }
  #captions, #quality, #stats, #share, .filter {
    min-height: 44px;
    margin: 0 8px 8px 0;
  }
  #quality, #stats { margin-left: 0; }
  .plate-name { font-size: 28px; }
  .slip { margin-top: 10px; padding: 14px 12px; }
  .slip h1 { font-size: 28px; }
  .qmenu { max-width: calc(100vw - 24px); max-height: 50vh; }
  .nerd { max-width: calc(100% - 16px); }
  .nerd dt { float: none; width: auto; }
  .nerd dd { margin: 0 0 6px; }
  .src-list button { float: none; display: inline-block; margin: 0 0 8px; min-height: 44px; }
  .src-meta { margin-right: 0; }
  .admin-main { padding: 8px 12px 32px; }
  .add-form input, .add-form textarea { max-width: 100%; }
}
@media (max-width: 374px) {
  .brand-mark { height: 26px; }
  .product { font-size: 14px; }
  .slip h1 { font-size: 26px; }
}

/* Docked player: keeps the picture on screen while the channel list scrolls. */
.screen-ph { height: 0; }
.screen-wrap.is-docked {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: 56.25vw;
  max-height: 40vh;
  padding-bottom: 0;
  background: #000;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}
.screen-wrap.is-docked video { object-fit: contain; }
.screen-wrap.is-docked .plate-name { font-size: 28px; }
@media (min-width: 900px) {
  .screen-wrap.is-docked { max-height: 46vh; }
}

/* ===== WestNet IPTV v2.0 (2026-10-29): header, search, now playing, stats, About ===== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #ffd400; outline-offset: 2px; }

/* Header: one slim row */
.mast {
  display: flex; align-items: center; gap: 8px; flex-wrap: nowrap;
  padding: 6px 10px; overflow: visible; position: relative; z-index: 31;
  background: linear-gradient(180deg, #050b16 0%, #000 100%);
}
.mast .brand { float: none; display: inline-flex; align-items: center; flex: 0 0 auto; color: #fff; min-height: 44px; }
.brand-mark { height: 22px; }
.product {
  margin-left: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  padding: 2px 5px; border: 1px solid #f4f1ea; border-radius: 4px; line-height: 1.1;
}
.nowchip {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0; flex: 0 1 auto;
  min-height: 44px; padding: 3px 8px 3px 4px; border: 1px solid #2c4f7c; border-radius: 10px;
  color: #fff; text-decoration: none; background: #0a1424;
}
.nowchip:hover { border-color: #5b9bff; }
.nowchip-logo { display: inline-flex; flex: 0 0 auto; }
.nowchip-logo:empty { display: none; }
.nowchip-logo img { width: 36px; height: 26px; object-fit: contain; background: #fff; border-radius: 4px; display: block; }
.nowchip-num { font-family: "Archivo Black", "Arial Black", Arial, sans-serif; font-size: 17px; line-height: 1; color: #fff; }
.nowchip-name { display: none; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.mast .nav { float: none; margin: 0; display: none; gap: 4px; align-items: center; }
.mast .nav a { margin: 0; padding: 10px 8px; color: #f4f1ea; }
.mast .nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 #0057b8; }
.mast-tools { margin-left: auto; display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.tool {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 42px; min-height: 44px; padding: 0 6px; margin: 0;
  color: #fff; background: transparent; border: 1px solid transparent; border-radius: 10px;
  text-decoration: none; cursor: pointer; font-size: 15px; line-height: 1.1;
}
.tool:hover { background: #0e1d33; border-color: #2c4f7c; }
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.tool-icon .tool-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.tool-user { flex-direction: column; gap: 1px; padding: 2px 4px; max-width: 64px; }
.tool-user .ico { width: 22px; height: 22px; }
.tool-user .tool-label { font-size: 11px; max-width: 58px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Player: no overlay, smooth pinning */
.playglass { display: none !important; }
.screen-wrap.is-docked { animation: wn-dock-in 0.22s ease-out; }
@keyframes wn-dock-in { from { transform: translateY(-24px); opacity: 0.4; } to { transform: none; opacity: 1; } }
.cc-badge {
  display: inline-flex; align-items: center; vertical-align: middle; margin: 0 0 0 6px;
  font-size: 12px; font-weight: 700; padding: 2px 6px; border: 1px solid #f4f1ea; border-radius: 4px; color: #f4f1ea;
}
.status { min-height: 0; }
.status:empty { margin: 0; }

/* Search: right above the categories, sticks under the pinned player */
.finder {
  position: -webkit-sticky; position: sticky; top: var(--dockh, 0px); z-index: 25;
  background: #000; padding: 10px 16px 8px; border-bottom: 1px solid #1d3557;
}
.finder .find { max-width: 760px; margin: 0; }
.find-box { position: relative; display: flex; align-items: center; }
.find-ico { position: absolute; left: 12px; top: 50%; margin-top: -12px; color: #9cc3ff; pointer-events: none; }
.find-box input, .find input#find {
  width: 100%; min-height: 52px; font-size: 18px; color: #fff; background: #0a0f18;
  border: 2px solid #3d7bd6; border-radius: 12px; padding: 10px 52px 10px 44px;
  -webkit-appearance: none; appearance: none;
}
.find-box input::placeholder { color: #b9c6d8; opacity: 1; }
.find-box input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.find-clear {
  position: absolute; right: 4px; top: 50%; margin-top: -22px; width: 44px; height: 44px;
  border: 0; background: transparent; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; border-radius: 10px;
}
.find-clear[hidden] { display: none; }
.find-list {
  position: absolute; left: 0; right: 0; top: 58px; z-index: 26; margin: 0; padding: 4px; list-style: none;
  background: #0a0f18; border: 2px solid #3d7bd6; border-radius: 12px;
  max-height: min(60vh, 440px); overflow: auto; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.7);
}
.find-list[hidden] { display: none; }
.find-list li {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px; border-radius: 8px;
  color: #fff; cursor: pointer;
}
.find-list li[aria-selected="true"], .find-list li:hover { background: #0057b8; }
.find-list .sugg-more { min-height: 0; cursor: default; color: #cfd8e3; font-size: 14px; }
.find-list .sugg-more:hover { background: transparent; }
.sugg-logo { flex: 0 0 56px; width: 56px; height: 38px; object-fit: contain; background: #fff; border-radius: 5px; }
.sugg-num { display: flex; align-items: center; justify-content: center; background: #1d4f91; color: #fff; font-weight: 700; }
.sugg-text { min-width: 0; }
.sugg-name { display: block; font-size: 18px; font-weight: 700; line-height: 1.2; }
.sugg-ch { color: #9cc3ff; margin-right: 2px; }
.find-list li[aria-selected="true"] .sugg-ch, .find-list li:hover .sugg-ch { color: #fff; }
.sugg-meta { display: block; font-size: 14px; color: #dbe5f1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.find-count { margin: 4px 2px 0; font-size: 14px; color: #cfd8e3; }
.find-count:empty { display: none; }

/* What's playing on every channel card */
.station-live {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 3px; font-size: 15px; font-weight: 500; line-height: 1.3; color: #1b1714;
}
.live-dot { display: inline-block; width: 9px; height: 9px; margin: 0 6px 1px 0; border-radius: 50%; background: #cd040b; vertical-align: middle; }
.station.is-on .station-live { color: #fff; }
.station.is-on .live-dot { background: #fff; }
.station-now { font-size: 13px; color: #4a4239; }

/* Stats panel: readable white on black, under the picture */
.nerd {
  position: static; width: auto; max-width: none; margin: 8px 0; padding: 12px 14px;
  background: #000; color: #fff; border: 2px solid #3d7bd6; border-left-width: 2px; border-radius: 12px;
  font-size: 16px; line-height: 1.45;
}
.nerd-head { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.nerd-title { flex: 1 1 auto; margin: 0; color: #fff; font-size: 19px; font-weight: 700; letter-spacing: 0; }
.nerd-reset {
  min-height: 44px; padding: 0 12px; background: transparent; color: #fff;
  border: 1px solid #fff; border-radius: 8px; cursor: pointer; font-size: 14px;
}
.nerd-x {
  width: 48px; height: 48px; flex: 0 0 48px; padding: 0; font-size: 32px; line-height: 1;
  color: #fff; background: #1b1b1b; border: 2px solid #fff; border-radius: 10px; cursor: pointer;
}
.nerd-x:hover, .nerd-reset:hover { background: #333; }
.nerd dl { margin: 0; display: grid; grid-template-columns: minmax(9em, max-content) 1fr; gap: 3px 14px; }
.nerd dt { float: none; clear: none; width: auto; color: #fff; font-weight: 700; }
.nerd dd { margin: 0; color: #fff; word-break: break-word; overflow-wrap: anywhere; }
.nerd-note { margin: 10px 0 0; font-size: 14px; color: #e8e8e8; }

/* Footer version + About button */
.foot-about {
  background: none; border: 0; padding: 10px 0; color: #f4f1ea; text-decoration: underline; cursor: pointer; font-size: inherit;
}

/* About / splash */
.splash {
  position: fixed; inset: 0; top: 0; left: 0; right: 0; bottom: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 14px;
  background: radial-gradient(ellipse at top, rgba(0, 60, 140, 0.55), rgba(0, 0, 0, 0.9) 70%);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); overflow: auto;
}
.splash[hidden] { display: none; }
body.splash-on { overflow: hidden; }
.splash.is-open { animation: wn-fade 0.3s ease-out; }
.splash.is-open .splash-card { animation: wn-pop 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.splash.is-closing { opacity: 0; transition: opacity 0.25s ease-in; }
@keyframes wn-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wn-pop { from { transform: translateY(18px) scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }
.splash-card {
  position: relative; width: 100%; max-width: 640px; max-height: calc(100vh - 28px); overflow: auto;
  padding: 22px 22px 18px; border-radius: 20px; color: #fff;
  background: linear-gradient(155deg, #0c1f45 0%, #070b14 50%, #2d060a 100%);
  border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.75);
}
.splash-x {
  position: absolute; top: 10px; right: 10px; width: 48px; height: 48px; font-size: 32px; line-height: 1;
  color: #fff; background: rgba(255, 255, 255, 0.08); border: 2px solid rgba(255, 255, 255, 0.6); border-radius: 12px; cursor: pointer;
}
.splash-logo { display: block; height: 40px; width: auto; max-width: 70%; mix-blend-mode: screen; }
.splash-hero { display: flex; align-items: center; gap: 18px; margin: 16px 0 14px; }
.splash-selfie {
  flex: 0 0 auto; width: 104px; height: 130px; object-fit: cover; border-radius: 16px;
  border: 3px solid #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6); transform: rotate(-3deg); background: #222;
}
.splash-title {
  margin: 0; font-family: "Archivo Black", "Arial Black", Arial, sans-serif; font-size: 34px; line-height: 1.05; letter-spacing: -0.02em;
}
.splash-ver {
  display: inline-block; margin: 8px 0 0; padding: 3px 10px; font-size: 14px; font-weight: 700;
  border-radius: 999px; background: rgba(0, 87, 184, 0.45); border: 1px solid #5b9bff;
}
.splash-tag { margin: 10px 0 0; font-size: 18px; line-height: 1.35; color: #fff; }
.splash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
.sstat { padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); }
.sstat-n { display: block; font-family: "Archivo Black", "Arial Black", Arial, sans-serif; font-size: 28px; line-height: 1.05; }
.sstat-l { display: block; margin-top: 4px; font-size: 14px; color: #e3ebf6; }
.splash-cats { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.splash-cats li { display: grid; grid-template-columns: 8.5em 1fr 3em; align-items: center; gap: 10px; font-size: 15px; }
.scat-bar { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.scat-bar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #2f86ff, #cd040b); }
.scat-n { text-align: right; font-weight: 700; }
.splash-soon {
  margin: 16px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 16px;
  background: rgba(205, 4, 11, 0.16); border-left: 4px solid #cd040b;
}
.splash-links { margin: 12px 0 0; font-size: 16px; }
.splash-links a { color: #a9cdff; }
.splash-go {
  display: block; width: 100%; min-height: 54px; margin: 16px 0 0; font-size: 19px; font-weight: 700;
  color: #fff; border: 0; border-radius: 14px; cursor: pointer;
  background: linear-gradient(90deg, #0057b8, #6b2bd0 55%, #cd040b);
}
.splash-hint { margin: 10px 0 0; font-size: 13px; color: #cdd7e4; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .screen-wrap.is-docked, .splash.is-open, .splash.is-open .splash-card { animation: none; }
  .splash.is-closing { transition: none; }
}

/* Phones: compact, no wasted room above the picture */
@media (max-width: 700px) {
  .mast { padding: 4px 6px; gap: 4px; }
  .stage { padding: 0; }
  .screen-wrap { border-top-width: 2px; }
  .transport { padding: 6px 10px 2px; }
  .tuned { font-size: 17px; }
  .transport-actions { margin: 6px 0 0; }
  .cc-note, .open-line { padding: 0 10px; }
  .status { padding: 0 10px; }
  .open-line { font-size: 14px; }
  .keys { margin: 4px 10px 0; }
  .nerd { margin: 8px 10px; padding: 10px 12px; }
  .nerd dl { grid-template-columns: minmax(8.5em, max-content) 1fr; gap: 2px 10px; font-size: 15px; }
  .slip { margin: 8px 10px 0; padding: 10px 12px; }
  .slip h1 { font-size: 22px; margin: 2px 0 4px; }
  .slip-blurb { margin-top: 4px; font-size: 15px; }
  .finder { padding: 8px 10px 6px; }
  .find-list { max-height: 52vh; }
  .splash { padding: 8px; align-items: flex-start; }
  .splash-card { padding: 18px 14px 14px; max-height: calc(100vh - 16px); border-radius: 16px; }
  .splash-logo { height: 30px; }
  .splash-hero { gap: 12px; }
  .splash-selfie { width: 84px; height: 105px; }
  .splash-title { font-size: 26px; }
  .splash-tag { font-size: 16px; }
  .sstat-n { font-size: 24px; }
  .splash-stats { grid-template-columns: repeat(2, 1fr); }
  .splash-cats li { grid-template-columns: 7.5em 1fr 2.6em; font-size: 14px; }
}
@media (max-width: 700px) and (hover: none) {
  .keys { display: none; }
}
@media (max-width: 360px) {
  .product { display: none; }
  .brand-mark { height: 20px; }
}
@media (min-width: 701px) {
  .mast { padding: 8px 16px; gap: 14px; }
  .brand-mark { height: 34px; }
  .product { font-size: 14px; }
  .nowchip { padding: 4px 12px 4px 6px; gap: 8px; }
  .nowchip-logo img { width: 48px; height: 32px; }
  .nowchip-num { font-size: 20px; }
  .nowchip-name { display: inline; }
  .mast .nav { display: flex; }
  .mast .nav .viewlink { display: inline-block; }
  .mast-tools { gap: 6px; }
  .tool { padding: 0 12px; }
  .tool-icon .tool-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .tool-user { flex-direction: row; gap: 6px; max-width: 220px; padding: 0 12px; }
  .tool-user .tool-label { font-size: 15px; max-width: 160px; }
}
@media (min-width: 701px) and (max-width: 1100px) {
  .tool-icon .tool-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .nowchip-name { max-width: 150px; }
}
@media (min-width: 900px) {
  .brand-mark { height: 38px; }
  .finder { padding: 10px 16px 8px; }
}
@media (min-width: 701px) {
  .splash-cats { grid-template-columns: 1fr 1fr; column-gap: 22px; }
  .splash-cats li { grid-template-columns: 7.5em 1fr 2.6em; }
}
/* v2.0.1: keep the stats close button reachable under the pinned player; tighter phone header */
.nerd-head { position: -webkit-sticky; position: sticky; top: var(--dockh, 0px); z-index: 2; background: #000; padding: 4px 0; }
.nowchip { flex: 0 0 auto; }
@media (max-width: 700px) {
  .mast .brand { position: relative; padding-bottom: 6px; }
  .mast .product {
    position: absolute; right: 0; bottom: 0; margin: 0; font-size: 9px; padding: 0 3px;
    background: #000; letter-spacing: 0.1em;
  }
  .tool { min-width: 40px; padding: 0 4px; }
  .tool-user { max-width: 58px; }
  .tool-user .tool-label { max-width: 54px; }
}
@media (max-width: 360px) {
  .mast .product { display: inline-block; }
  .nowchip-logo img { width: 30px; height: 22px; }
}
/* v2.0.2: About screen: solid cherry-red buttons, solid bars, logo + IPTV inline, sticky Start button */
.splash-brand { display: flex; align-items: center; gap: 10px; padding-right: 56px; }
.splash-brand .splash-logo { height: 40px; max-width: 60%; }
.splash-brand .splash-title { margin: 0; font-size: 30px; line-height: 1; }
.splash-hero { margin: 14px 0 12px; }
.splash-ver { margin: 0; background: transparent; border: 1px solid rgba(255, 255, 255, 0.7); color: #fff; }
.splash-tag { margin: 8px 0 0; font-size: 17px; }
.splash-x, .splash-go {
  background: #C8102E; color: #fff; border: 2px solid #C8102E;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.splash-x:hover, .splash-go:hover { background: #A00D25; border-color: #A00D25; }
.splash-x:active, .splash-go:active { background: #8A0B20; }
.splash-x:focus-visible, .splash-go:focus-visible { outline: 3px solid #fff; outline-offset: 3px; background: #A00D25; }
.splash-go { margin: 0; }
.scat-bar span { background: #C8102E; }
.splash-foot {
  position: -webkit-sticky; position: sticky; bottom: -18px; z-index: 2;
  margin: 14px -22px -18px; padding: 12px 22px 14px;
  background: #0b0d14; border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.splash-foot .splash-hint { margin: 8px 0 0; }
@media (prefers-reduced-motion: reduce) { .splash-x, .splash-go { transition: none; } }
@media (max-width: 700px) {
  .splash { padding: 6px; }
  .splash-card { padding: 12px 12px 14px; max-height: calc(100vh - 12px); max-height: calc(100dvh - 12px); }
  .splash-x { top: 8px; right: 8px; width: 44px; height: 44px; font-size: 28px; }
  .splash-brand { gap: 8px; padding-right: 52px; min-height: 44px; }
  .splash-brand .splash-logo { height: 26px; }
  .splash-brand .splash-title { font-size: 22px; }
  .splash-hero { gap: 10px; margin: 8px 0; }
  .splash-selfie { width: 58px; height: 72px; border-width: 2px; border-radius: 10px; }
  .splash-ver { font-size: 12px; padding: 2px 8px; }
  .splash-tag { font-size: 15px; margin-top: 4px; }
  .splash-stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .sstat { padding: 7px 8px; border-radius: 9px; }
  .sstat-n { font-size: 19px; }
  .sstat-l { font-size: 12px; margin-top: 2px; line-height: 1.2; }
  .splash-cats { grid-template-columns: 1fr 1fr; column-gap: 12px; gap: 3px 12px; margin-top: 10px; }
  .splash-cats li { grid-template-columns: 6.4em 1fr 2.2em; gap: 5px; font-size: 12.5px; }
  .scat-bar { height: 7px; }
  .splash-soon { margin-top: 10px; padding: 7px 10px; font-size: 14px; }
  .splash-links { margin-top: 8px; font-size: 14px; }
  .splash-foot { bottom: -14px; margin: 10px -12px -14px; padding: 10px 12px 12px; }
  .splash-go { min-height: 50px; font-size: 18px; }
  .splash-foot .splash-hint { font-size: 12px; margin-top: 6px; }
}
/* v2.1: sign-in gate, compact channel box, admin feed button, no sideways scrolling */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
img, video { max-width: 100%; }
.stage, .bezel, .slip, .finder, .filters, .paper, .station, .station-copy, .transport, .transport-actions { min-width: 0; }
.station-name, .station-live, .station-now, .slip h1, .slip-blurb, .sugg-name { overflow-wrap: anywhere; }
.screen-wrap.is-docked { width: 100%; max-width: 100%; }
.tuned { display: none; }

.feedbtn {
  display: inline-block; margin-left: 6px; padding: 6px 12px; min-height: 0;
  background: #C8102E; color: #fff; border: 1px solid #C8102E; text-decoration: none; cursor: pointer;
}
.feedbtn:hover { background: #A00D25; border-color: #A00D25; }

/* Channel box under the picture */
.slip { padding: 12px 14px; }
.slip-row { display: flex; align-items: center; gap: 12px; }
.slip-logo { flex: 0 0 64px; width: 64px; height: 44px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px #d8cbb3; }
.slip-logo img { width: 64px; height: 44px; object-fit: contain; display: block; }
.slip-lnum { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; background: #0057b8; color: #fff; font-family: "Archivo Black", "Arial Black", Arial, sans-serif; font-size: 20px; }
.slip-text { min-width: 0; }
.slip-chan { margin: 0; font-size: 14px; color: #5c5348; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slip-chan .slip-num { display: inline; margin: 0; color: #0057b8; font-weight: 700; }
.slip h1 { margin: 2px 0 0; font-size: 26px; }
.slip-meta { margin: 8px 0 0; font-size: 14px; color: #3d362f; }
.slip-blurb { margin: 4px 0 0; font-size: 15px; line-height: 1.35; }

/* Sign-in prompt inside the picture */
.lockpane {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 0; cursor: pointer; color: #fff; text-align: center; padding: 12px;
  background: radial-gradient(ellipse at center, rgba(20, 30, 50, 0.85), rgba(0, 0, 0, 0.95));
}
.lockpane-ico { display: flex; width: 64px; height: 64px; align-items: center; justify-content: center; border-radius: 50%; background: #C8102E; font-size: 26px; padding-left: 4px; }
.lockpane-t { font-size: 20px; font-weight: 700; }
.lockpane-s { font-size: 15px; color: #dfe6ef; }
.lockpane:hover .lockpane-ico, .lockpane:focus-visible .lockpane-ico { background: #A00D25; }

/* Sign-in dialog, same look as the WestNet account portal */
.gate {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 110;
  display: flex; align-items: center; justify-content: center; padding: 12px;
  background: rgba(0, 0, 0, 0.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); overflow: auto;
}
.gate[hidden] { display: none; }
body.gate-on { overflow: hidden; }
.gate-card {
  position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 24px); overflow: auto;
  border-radius: 14px; background: #fff; color: #111; box-shadow: 0 12px 60px rgba(0, 0, 0, 0.7);
  animation: wn-pop 0.3s ease-out;
}
.gate-hero { position: relative; height: 120px; overflow: hidden; background: #111; }
.gate-hero-bg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
.gate-tint { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.65)); }
.gate-logo { position: absolute; left: 20px; bottom: 16px; height: 34px; width: auto; }
.gate-x {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 44px; height: 44px; font-size: 28px; line-height: 1;
  color: #fff; background: rgba(0, 0, 0, 0.55); border: 2px solid #fff; border-radius: 10px; cursor: pointer;
}
.gate-body { padding: 18px 20px 20px; }
.gate-title { margin: 0; font-size: 24px; color: #111; }
.gate-sub { margin: 4px 0 10px; font-size: 15px; color: #444; }
.gate-msg { margin: 0 0 10px; font-size: 15px; min-height: 0; }
.gate-msg:empty { display: none; }
.gate-msg.is-err { color: #9b0c22; background: #fdecee; border-left: 4px solid #C8102E; padding: 8px 10px; border-radius: 6px; }
.gate-msg.is-ok { color: #0b5d1e; background: #e9f7ee; border-left: 4px solid #1e8e3e; padding: 8px 10px; border-radius: 6px; }
.gate-msg.is-busy { color: #333; }
.gate-label { display: block; margin: 0 0 4px; font-size: 15px; font-weight: 700; color: #222; }
.gate-inp {
  display: block; width: 100%; min-height: 50px; margin: 0 0 14px; padding: 12px 14px;
  font-size: 17px; color: #000; background: #fff; border: 1px solid #bbb; border-radius: 8px; box-sizing: border-box;
}
.gate-inp:focus { border-color: #C8102E; box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.18); outline: none; }
.gate-pw { position: relative; }
.gate-pw .gate-inp { padding-right: 76px; }
.gate-show {
  position: absolute; right: 4px; top: 3px; height: 44px; min-width: 64px; padding: 0 10px;
  background: transparent; color: #333; border: 0; font-size: 15px; font-weight: 700; cursor: pointer;
}
.gate-keep { margin: -4px 0 14px; font-size: 13px; color: #555; }
.gate-btn {
  display: block; width: 100%; min-height: 52px; border: 0; border-radius: 8px; cursor: pointer;
  background: #C8102E; color: #fff; font-size: 18px; font-weight: 700;
}
.gate-btn:hover { background: #A00D25; }
.gate-btn:focus-visible { outline: 3px solid #111; outline-offset: 3px; }
.gate-btn[disabled] { opacity: 0.75; cursor: progress; }
.gate-foot { margin: 14px 0 0; font-size: 14px; color: #555; line-height: 1.6; }
.gate-foot a { color: #C8102E; }
@media (max-width: 700px) {
  .gate { padding: 8px; align-items: flex-start; }
  .gate-hero { height: 90px; }
  .gate-body { padding: 14px 14px 16px; }
  .slip { padding: 10px 12px; }
  .slip-logo { flex-basis: 56px; width: 56px; height: 40px; }
  .slip-logo img { width: 56px; height: 40px; }
  .slip h1 { font-size: 21px; }
  .slip-meta { margin-top: 6px; font-size: 13px; }
  .slip-blurb { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .transport-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .transport-actions > * { margin: 0 !important; }
  .feedbtn { min-height: 44px; line-height: 30px; }
}
@media (prefers-reduced-motion: reduce) { .gate-card { animation: none; } }
/* v2.1.1: fixed one-row control strip; the CC slot never changes the layout */
.transport-actions { display: flex !important; flex-wrap: nowrap; align-items: center; gap: 6px; margin: 6px 0 0 !important; min-width: 0; }
.transport-actions > * { margin: 0 !important; flex: 0 1 auto; min-width: 0; }
.transport-actions button, .transport-actions .feedbtn {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 44px; padding: 0 12px; line-height: 42px;
}
.ccslot { flex: 0 0 auto !important; display: inline-flex; align-items: center; justify-content: center; min-width: 52px; height: 44px; }
.ccslot #captions { padding: 0 10px; }
.cc-badge {
  margin: 0; height: 26px; min-width: 40px; padding: 0 6px; justify-content: center;
  font-size: 13px; line-height: 24px; border-width: 2px; border-radius: 5px; white-space: nowrap;
}
.qwrap { flex: 0 0 auto !important; }
.track-label { white-space: nowrap; }
.track-label select { max-width: 120px; }
@media (max-width: 400px) {
  .transport-actions { gap: 4px; }
  .transport-actions button, .transport-actions .feedbtn { padding: 0 9px; font-size: 15px; }
}

/* v2.2: sign-in dialog centred in the visible area on phones; channel preview boxes */
.gate { align-items: flex-start !important; justify-content: center; padding: 10px !important; box-sizing: border-box; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.gate-card { margin: auto; max-height: none !important; overflow: visible !important; flex: 0 1 440px; }
@supports (height: 100dvh) { .gate { height: 100dvh; } }
@media (max-width: 700px) {
  .gate-hero { height: 76px; }
  .gate-logo { height: 28px; bottom: 12px; }
  .gate-body { padding: 12px 14px 14px; }
  .gate-title { font-size: 21px; }
  .gate-sub { margin-bottom: 8px; font-size: 14px; }
  .gate-inp { min-height: 46px; margin-bottom: 10px; font-size: 16px; }
  .gate-keep { margin-bottom: 10px; }
}
@media (max-height: 600px) { .gate-hero { display: none; } .gate-x { color: #111; background: #fff; border-color: #ccc; } }
.gate-prev { display: flex; gap: 10px; align-items: center; margin: 0 0 10px; padding: 8px 10px; border: 1px solid #ddd; border-radius: 10px; background: #f6f6f6; min-width: 0; }
.gate-prev[hidden], .sprev[hidden] { display: none; }
.prev-art { position: relative; flex: 0 0 64px; width: 64px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: #111; overflow: hidden; }
.prev-art img { max-width: 60px; max-height: 40px; object-fit: contain; }
.prev-num { color: #fff; font-weight: 800; font-size: 18px; }
.prev-live { position: absolute; left: 2px; bottom: 2px; padding: 0 4px; font-size: 9px; font-weight: 800; line-height: 14px; color: #fff; background: #C8102E; border-radius: 3px; }
.prev-copy { display: flex; flex-direction: column; min-width: 0; }
.prev-head { font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #C8102E; }
.prev-name { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prev-title { font-size: 13px; color: #444; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sprev { grid-column: span 2; display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid rgba(255, 255, 255, 0.85); border-radius: 10px; background: rgba(0, 0, 0, 0.35); color: #fff; min-width: 0; }
.sprev .prev-head { color: #fff; opacity: 0.85; }
.sprev .prev-title { color: #e6e6e6; }
.sprev { cursor: pointer; text-align: left; }
.sprev:hover { background: rgba(200, 16, 46, 0.35); }
.sprev:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
/* v2.2.1: live miniature in the preview box (muted server clip over the logo) */
.prev-vid { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; background: #000; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.is-live .prev-vid { opacity: 1; }
.prev-live { z-index: 1; }
.sprev .prev-art, .gate-prev .prev-art { flex-basis: 96px; width: 96px; height: 54px; }
.sprev .prev-head { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) { .sprev .prev-art { flex-basis: 80px; width: 80px; height: 45px; } .sprev { gap: 8px; padding: 8px; } }

/* v2.3: fixed action bar. Equal slots in a fixed order; a slot that does not apply keeps its space. */
.transport-actions.actbar { display: grid !important; grid-template-columns: repeat(var(--act-n, 6), minmax(0, 1fr)); gap: 6px; margin: 8px 0 0 !important; max-width: 560px; flex-wrap: nowrap; }
.actbar > .act-slot { min-width: 0; display: flex; position: relative; }
.actbar .ccslot, .actbar .qwrap { display: flex !important; width: 100%; min-width: 0 !important; height: auto; flex: 1 1 auto !important; }
.actbar .act {
  flex: 1 1 auto; width: 100%; min-width: 0; min-height: 52px; height: 52px; margin: 0 !important; padding: 4px 2px !important;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; box-sizing: border-box;
  border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); color: #fff;
  font: inherit; font-size: 12px; line-height: 1.1; text-decoration: none; cursor: pointer; white-space: nowrap; overflow: hidden;
}
.actbar .act svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.actbar .act-big { font-size: 14px; font-weight: 800; letter-spacing: 0.02em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.actbar .act-lab { font-size: 11px; font-weight: 600; opacity: 0.85; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.actbar .act:hover { background: rgba(255, 255, 255, 0.14); }
.actbar .act:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.actbar .act[aria-pressed="true"], .actbar .act[aria-expanded="true"] { background: #C8102E; border-color: #C8102E; }
.actbar #fav[aria-pressed="true"] .heart { fill: currentColor; }
.actbar .cc-badge { cursor: default; background: transparent; border-style: dashed; width: 100% !important; }
.actbar .act-na { cursor: default; opacity: 0.38; border-style: dashed; background: transparent; }
.actbar .act-ph { visibility: hidden; }
.actbar .feedbtn { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.22); }
.actbar .feedbtn:hover { background: #A00D25; border-color: #A00D25; }
@media (max-width: 700px) {
  .transport-actions.actbar { gap: 4px; max-width: none; }
  .actbar .act { min-height: 48px; height: 48px; font-size: 11px; }
  .actbar .act svg { width: 18px; height: 18px; }
  .actbar .act-big { font-size: 13px; }
  .actbar .act-lab { font-size: 10.5px; }
}
.track-label { display: inline-block; margin-top: 6px; }
.station-fav { display: none; color: #C8102E; }
.station.is-fav .station-fav { display: inline; }
.filter-favs .fav-count { display: inline-block; min-width: 1.4em; padding: 0 5px; border-radius: 9px; background: rgba(200, 16, 46, 0.9); color: #fff; font-size: 12px; text-align: center; }
.actbar #captions, .actbar #quality, .actbar #stats, .actbar #share, .actbar #fav, .actbar #open-feed {
  margin: 0 !important; padding: 4px 2px !important; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); color: #fff; font-size: 12px;
}
.actbar #captions[aria-pressed="true"], .actbar #stats[aria-pressed="true"], .actbar #quality[aria-expanded="true"], .actbar #fav[aria-pressed="true"] { background: #C8102E; border-color: #C8102E; }
.actbar #captions:hover, .actbar #quality:hover, .actbar #stats:hover, .actbar #share:hover, .actbar #fav:hover, .actbar #open-feed:hover { background: rgba(255, 255, 255, 0.16); }

/* v2.4: white/light channel logos sit on a dark tile so they stay visible. */
.station-mark.is-light { background: #0b0b0d; padding: 4px 6px; box-sizing: border-box; border-radius: 4px; }

/* v2.5: About screen (black / cherry / gold), sign-in Subscribe button, membership expiry */
.splash { background: rgba(0, 0, 0, 0.86); }
.splash-card.sp2 {
  max-width: 660px; background: #000; color: #fff;
  border: 1px solid rgba(212, 175, 55, 0.55); border-top: 4px solid #C8102E;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.8); padding: 20px 22px 18px;
}
.sp2 .splash-x { top: 12px; }
.sp2 .splash-logo { mix-blend-mode: normal; background: #fff; border-radius: 6px; padding: 4px 8px; height: 38px; box-sizing: border-box; }
.sp2 .splash-title { color: #D4AF37; letter-spacing: 0.02em; }
.sp-intro { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 16px; margin: 16px 0 14px; }
.sp-me { display: block; width: 96px; height: 96px; }
.sp2 .splash-selfie, .sp2 .sp-me img {
  display: block; width: 96px; height: 96px; object-fit: cover; border-radius: 50%;
  border: 3px solid #D4AF37; box-shadow: 0 0 0 3px #000, 0 6px 18px rgba(0, 0, 0, 0.7); transform: none; background: #111; box-sizing: border-box;
}
.sp2 .splash-tag { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.3; color: #fff; }
.sp2 .splash-ver { display: inline-block; margin: 8px 0 0; padding: 3px 10px; font-size: 13px; font-weight: 600; color: #D4AF37; background: transparent; border: 1px solid rgba(212, 175, 55, 0.6); border-radius: 999px; }
.sp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sp2 .sstat { padding: 12px 10px; border-radius: 12px; background: #0d0d0f; border: 1px solid rgba(212, 175, 55, 0.35); text-align: center; min-width: 0; }
.sp2 .sstat-n { color: #D4AF37; font-size: 26px; }
.sp2 .sstat-l { color: #fff; font-size: 13px; line-height: 1.25; }
.sp2 .sprev { grid-column: 1 / -1; border-color: rgba(212, 175, 55, 0.6); background: #0d0d0f; }
.sp2 .sprev:hover { background: #1a0006; border-color: #C8102E; }
.sp2 .scat-bar { background: rgba(255, 255, 255, 0.1); }
.sp2 .scat-bar span { background: #C8102E; }
.sp2 .scat-n { color: #D4AF37; }
.sp2 .splash-soon { background: #0d0d0f; border-left: 4px solid #D4AF37; color: #fff; font-size: 15px; line-height: 1.5; }
.sp2 .splash-links, .sp2 .splash-soon { overflow-wrap: anywhere; }
.sp2 .splash-links a, .sp2 .splash-soon a { color: #D4AF37; }
.sp2 .splash-foot { background: #000; border-top: 1px solid rgba(212, 175, 55, 0.35); }
.sp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sp-actions.is-one { grid-template-columns: 1fr; }
.sp2 .splash-go { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; margin: 0; padding: 0 12px; font-size: 17px; font-weight: 700; text-decoration: none; border-radius: 12px; box-sizing: border-box; text-align: center; line-height: 1.2; }
.gate-ar { font-family: Tajawal, "Segoe UI", Arial, sans-serif; font-weight: 700; opacity: 0.9; font-size: 0.92em; }
@media (max-width: 700px) {
  .splash-card.sp2 { padding: 12px 12px 14px; }
  .sp2 .splash-logo { height: 28px; padding: 3px 6px; }
  .sp-intro { grid-template-columns: 72px 1fr; gap: 12px; margin: 10px 0; }
  .sp-me, .sp2 .splash-selfie, .sp2 .sp-me img { width: 72px; height: 72px; }
  .sp2 .splash-tag { font-size: 16px; }
  .sp2 .splash-ver { font-size: 12px; margin-top: 6px; }
  .sp-stats { gap: 6px; }
  .sp2 .sstat { padding: 8px 4px; }
  .sp2 .sstat-n { font-size: 20px; }
  .sp2 .sstat-l { font-size: 11.5px; }
  .sp2 .splash-soon { font-size: 13.5px; }
  .sp-actions { gap: 8px; }
  .sp2 .splash-go { min-height: 48px; font-size: 15.5px; padding: 0 8px; }
}
/* sign-in: Create account / Subscribe sits right under Sign in */
.gate-join { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 0; text-decoration: none; box-sizing: border-box; text-align: center; line-height: 1.2; padding: 0 12px; }
.gate-join:hover { color: #fff; }
.gate-join:focus-visible { outline: 3px solid #111; outline-offset: 3px; }
/* expired membership screen */
.xgate .gate-card { border-top: 4px solid #C8102E; }
.xgate-kicker { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9a7b1f; }
.xgate-ar { margin: 4px 0 6px; font-family: Tajawal, "Segoe UI", Arial, sans-serif; font-size: 17px; font-weight: 700; color: #111; }
.xgate .gate-btn { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; margin-top: 12px; }
.xgate .gate-x { color: #111; background: #fff; border-color: #ccc; }
/* header: expiry notice */
.exp-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; margin: 0 4px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; text-decoration: none; color: #000; background: #D4AF37; }
.exp-pill.is-out { background: #C8102E; color: #fff; }
.exp-pill .exp-s { display: none; }
@media (max-width: 700px) { .exp-pill { padding: 0 7px; margin: 0 2px; font-size: 11px; min-height: 24px; } .exp-pill .exp-l { display: none; } .exp-pill .exp-s { display: inline; } }

/* v3: on-screen channel banner (OSD) + programme details panel.
   Inspired by the classic satellite receiver info banner: number box, call letters, title, time bar, rating chips. */
.osd { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; pointer-events: none; opacity: 0; transition: opacity 0.22s ease; }
.osd[hidden], .osdx[hidden] { display: none; }
.osd.is-on { opacity: 1; }
.osd-bar {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; align-items: center;
  padding: 9px 12px calc(8px + env(safe-area-inset-bottom, 0px)); color: #fff; text-align: left;
  background: linear-gradient(180deg, rgba(12, 12, 14, 0.66), rgba(0, 0, 0, 0.86));
  -webkit-backdrop-filter: blur(12px) saturate(1.25); backdrop-filter: blur(12px) saturate(1.25);
  border-top: 1px solid rgba(212, 175, 55, 0.45);
  transform: translateY(8px); transition: transform 0.26s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.osd.is-on .osd-bar { transform: none; }
.osd.no-anim, .osd.no-anim .osd-bar { transition: none; transform: none; }
/* live time bar along the top edge: red track, gold progress */
.osd-pl { position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: rgba(200, 16, 46, 0.9); }
.osd-pl b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #b8932a, #f1d27a); box-shadow: 0 0 6px rgba(241, 210, 122, 0.6); transition: width 0.6s ease; }
.osd-logo { width: 46px; height: 32px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 6px; padding: 3px; box-sizing: border-box; overflow: hidden; }
.osd-logo img, .osdx-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.osd-lnum { font: 800 14px/1 "Archivo Black", Arial, sans-serif; color: #C8102E; }
.osd-main { min-width: 0; pointer-events: auto; cursor: pointer; }
.osd-main p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.osd-top { display: flex; align-items: center; gap: 6px; min-width: 0; line-height: 1.25; }
.osd-num { font: 800 14px/1 "Archivo Black", Arial, sans-serif; color: #D4AF37; flex: 0 0 auto; }
.osd-name { font-size: 14px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.osd-live { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; border-radius: 999px; background: #C8102E; font-size: 9.5px; font-weight: 800; letter-spacing: 0.06em; line-height: 16px; flex: 0 0 auto; }
.osd-live i { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: osd-blink 1.4s infinite; }
@keyframes osd-blink { 50% { opacity: 0.25; } }
.osd-badges { display: inline-flex; gap: 4px; flex: 0 0 auto; }
.osd-b, .osdx-b { padding: 0 4px; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 3px; font-size: 9.5px; font-weight: 800; line-height: 14px; letter-spacing: 0.03em; }
.osd-prog { margin-top: 2px !important; font-size: 13px; line-height: 1.3; }
.osd-t { font-weight: 700; color: #D4AF37; }
.osd-meta { color: #d9d9d9; font-weight: 500; }
.osd-side { display: grid; grid-template-columns: auto auto; column-gap: 6px; row-gap: 3px; align-items: center; justify-items: end; text-align: right; }
.osd-side p { margin: 0; white-space: nowrap; }
.osd-clock { grid-column: 1 / 3; font-size: 12px; font-weight: 700; color: #fff; line-height: 1.2; font-variant-numeric: tabular-nums; }
.osd-wx { position: relative; font-size: 12px; font-weight: 600; color: #e9e9e9; pointer-events: auto; line-height: 1.2; }
.osd-wcity { color: #D4AF37; }
.osd-city-wrap { position: absolute; inset: 0; }
.osd-city { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.osd-ctl { display: flex; gap: 5px; pointer-events: auto; }
.osd-fav, .osd-auto { height: 24px; min-width: 26px; padding: 0 6px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.08); color: #fff; font: inherit; font-size: 10.5px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.osd-fav svg, .osdx-fav svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.osd-fav[aria-pressed="true"], .osdx-fav[aria-pressed="true"] { background: #C8102E; border-color: #C8102E; }
.osd-fav[aria-pressed="true"] svg, .osdx-fav[aria-pressed="true"] svg { fill: currentColor; }
.osd-auto[aria-pressed="false"] { opacity: 0.75; border-style: dashed; }
.osd-fav:focus-visible, .osd-auto:focus-visible, .osd-main:focus-visible, .osdx-x:focus-visible, .osdx-fav:focus-visible { outline: 2px solid #D4AF37; outline-offset: 2px; }
.actbar .act-i { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 19px; font-weight: 800; width: 22px; height: 22px; line-height: 20px; border: 2px solid currentColor; border-radius: 50%; text-align: center; }
.actbar #osd-btn.is-off .act-i { opacity: 0.7; }

/* ---- details panel ---- */
.osdx { position: absolute; inset: 0; z-index: 8; display: flex; align-items: flex-end; justify-content: center; padding: 10px; box-sizing: border-box;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.6)); opacity: 0; transition: opacity 0.2s ease; }
.osdx.is-on { opacity: 1; }
.osdx-card { width: 100%; max-width: 760px; max-height: 100%; overflow: auto; overscroll-behavior: contain; box-sizing: border-box; color: #fff; text-align: left;
  background: linear-gradient(180deg, rgba(14, 14, 16, 0.84), rgba(0, 0, 0, 0.92)); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(212, 175, 55, 0.5); border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  transform: translateY(10px); transition: transform 0.24s cubic-bezier(0.2, 0.9, 0.3, 1); }
.osdx.is-on .osdx-card { transform: none; }
.osdx-head { position: sticky; top: 0; z-index: 1; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 10px;
  background: linear-gradient(90deg, #8f0b20, #C8102E 55%, #8f0b20); border-bottom: 2px solid #D4AF37; border-radius: 11px 11px 0 0; }
.osdx-num { min-width: 44px; padding: 3px 6px; text-align: center; box-sizing: border-box; font: 800 20px/1.1 "Archivo Black", Arial, sans-serif; color: #000; background: linear-gradient(180deg, #f1d27a, #c9a032); border-radius: 5px; font-variant-numeric: tabular-nums; }
.osdx-logo { width: 54px; height: 34px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 5px; padding: 3px; box-sizing: border-box; }
.osdx-call { min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.osdx-call b { font-size: 15px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.osdx-call span { font-size: 11px; color: #ffe9b0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.osdx-clock { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.osdx-x { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.6); background: rgba(0, 0, 0, 0.25); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.osdx-body { padding: 10px 14px 4px; }
.osdx-body p { margin: 0; }
.osdx-kick { font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #D4AF37; }
.osdx-title { margin: 2px 0 0; font-size: 20px; line-height: 1.2; font-weight: 800; color: #fff; }
.osdx-title small { font-size: 15px; font-weight: 600; color: #e6c766; }
.osdx-ep { margin-top: 2px !important; font-size: 13px; color: #e8e8e8; font-style: italic; }
.osdx-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px !important; }
.osdx-chips:empty { display: none; }
.osdx-chip { padding: 1px 7px; border-radius: 4px; font-size: 11px; font-weight: 700; line-height: 18px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.25); }
.osdx-chip.is-rate { background: #fff; color: #000; border-color: #fff; font-weight: 800; }
.osdx-chip.is-gold { border-color: rgba(212, 175, 55, 0.7); color: #f1d27a; }
.osdx-time { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; margin-top: 9px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.osdx-bar { position: relative; height: 6px; border-radius: 3px; background: rgba(200, 16, 46, 0.55); overflow: hidden; }
.osdx-bar b { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #b8932a, #f1d27a); border-radius: 3px; transition: width 0.6s ease; }
.osdx-left { grid-column: 1 / 4; justify-self: end; font-style: normal; font-weight: 600; font-size: 11px; color: #cfcfcf; margin-top: -3px; }
.osdx-desc { margin-top: 9px !important; font-size: 13.5px; line-height: 1.5; color: #ececec; }
.osdx-desc:empty { display: none; }
.osdx-cred { margin-top: 6px !important; font-size: 12.5px; color: #dedede; }
.osdx-cred b { color: #D4AF37; font-weight: 800; margin-right: 4px; }
.osdx-next { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 12.5px; }
.osdx-next p { display: flex; gap: 8px; align-items: baseline; margin: 2px 0 0 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.osdx-next em { font-style: normal; flex: 0 0 auto; min-width: 62px; color: #D4AF37; font-weight: 700; font-variant-numeric: tabular-nums; }
.osdx-next .k { color: #fff; font-weight: 800; font-size: 10px; letter-spacing: 0.1em; background: #C8102E; border-radius: 3px; padding: 0 5px; line-height: 16px; }
.osdx-foot { display: flex; align-items: center; gap: 8px; padding: 8px 14px 12px; flex-wrap: wrap; }
.osdx-badges { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.osdx-b.is-live { background: #C8102E; border-color: #C8102E; }
.osdx-src { flex: 1 1 auto; font-size: 10.5px; color: #9b9b9b; text-align: right; }
.osdx-fav { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.08); color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.osdx-fav svg { width: 15px; height: 15px; }

/* desktop: roomier banner */
@media (min-width: 701px) {
  .osd-bar { padding: 11px 16px 10px; column-gap: 14px; }
  .osd-logo { width: 64px; height: 42px; }
  .osd-num, .osd-name { font-size: 16px; }
  .osd-prog { font-size: 14px; }
  .osd-clock { font-size: 14px; }
  .osd-wx { font-size: 13px; }
  .osd-fav, .osd-auto { height: 26px; font-size: 11px; }
  .osdx { padding: 16px; }
  .osdx-title { font-size: 24px; }
}
/* phones (portrait, and landscape where the picture is short) */
@media (max-width: 700px), (max-height: 500px) and (pointer: coarse) {
  .osd-bar { padding: 7px 8px calc(6px + env(safe-area-inset-bottom, 0px)); column-gap: 8px; }
  .osd-logo { width: 40px; height: 28px; padding: 2px; border-radius: 5px; }
  .osd-num { font-size: 12px; }
  .osd-name { font-size: 13px; }
  .osd-prog { font-size: 12px; }
  .osd-clock, .osd-wx { font-size: 11px; }
  .osd-wcity { display: none; }
  .osd-fav, .osd-auto { height: 22px; min-width: 24px; padding: 0 5px; font-size: 10px; }
  .osd-fav svg { width: 13px; height: 13px; }
  .osdx { padding: 6px; }
  .osdx-head { gap: 7px; padding: 6px 8px; grid-template-columns: auto auto minmax(0, 1fr) auto; }
  .osdx-clock { display: none; }
  .osdx-num { min-width: 36px; font-size: 16px; }
  .osdx-logo { width: 44px; height: 28px; }
  .osdx-call b { font-size: 13px; }
  .osdx-body { padding: 8px 11px 2px; }
  .osdx-title { font-size: 17px; }
  .osdx-desc { font-size: 12.5px; }
  .osdx-foot { padding: 6px 11px 10px; }
}
/* phones held upright (not fullscreen): the picture is short, so details open as a sheet from the bottom of the screen */
@media (max-width: 700px) and (orientation: portrait) {
  .osdx { position: fixed; z-index: 2000; padding: 0; background: rgba(0, 0, 0, 0.45); }
  .osdx-card { max-width: none; max-height: 78vh; border-radius: 14px 14px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .osdx-head { border-radius: 13px 13px 0 0; }
}
.bezel:fullscreen .osd-bar, .bezel:-webkit-full-screen .osd-bar { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); padding-left: calc(16px + env(safe-area-inset-left, 0px)); padding-right: calc(16px + env(safe-area-inset-right, 0px)); }
.bezel:fullscreen .osdx-card, .bezel:-webkit-full-screen .osdx-card { max-width: 900px; }
@media (prefers-reduced-motion: reduce) { .osd, .osd-bar, .osdx, .osdx-card, .osd-pl b, .osdx-bar b { transition: none; transform: none; } .osd-live i { animation: none; } }
@media (max-width: 400px) { .actbar .act { padding-left: 2px; padding-right: 2px; } .actbar .act-lab { font-size: 9.5px; letter-spacing: -0.01em; } }
@media (max-width: 400px) { .osd-live { font-size: 0; gap: 0; padding: 0 5px; line-height: 14px; } .osd-live i { width: 6px; height: 6px; } }
/* phones on their side: details over the whole screen (the picture alone is too short) */
@media (max-height: 500px) and (pointer: coarse) {
  .osdx { position: fixed; z-index: 2000; padding: 8px; align-items: center; background: rgba(0, 0, 0, 0.5); }
  .osdx-card { max-height: calc(100vh - 16px); }
}

/* Playback path status chip (direct / Calgary / Seattle gateway). Absolutely placed: no layout shift. */
.gwchip { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 7; pointer-events: none;
  max-width: calc(100% - 24px); box-sizing: border-box; padding: 4px 10px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.72); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff;
  font: 600 12px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: 0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity 0.3s ease; }
.gwchip.on { opacity: 1; }
@media (max-width: 400px) { .gwchip { font-size: 11px; padding: 3px 8px; top: 6px; } }
@media (prefers-reduced-motion: reduce) { .gwchip { transition: none; } }
.splash-privacy { font-size: 12px; opacity: 0.8; margin: 6px 0 0; }

/* Save clip panel (assets/iptv-clip.js, loaded on first use) */
.clippanel { margin: 8px 0 0; max-width: 560px; box-sizing: border-box; padding: 10px 12px; border-radius: 10px; background: #15151a; border: 1px solid rgba(255, 255, 255, 0.14); color: #f4f1ea; font-size: 13px; }
.cliphead { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cliphead strong { font-size: 14px; }
.clipinfo { flex: 1 1 auto; opacity: 0.8; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clipx { background: none; border: 0; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }
.clipbar { position: relative; height: 30px; margin: 4px 10px 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.10); touch-action: none; }
.clipsel { position: absolute; top: 0; bottom: 0; background: rgba(200, 16, 46, 0.55); border-radius: 4px; }
.cliph { position: absolute; top: -4px; bottom: -4px; width: 18px; margin-left: -9px; border-radius: 5px; background: #fff; cursor: ew-resize; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); touch-action: none; }
.cliph::after { content: ""; position: absolute; left: 8px; top: 9px; bottom: 9px; width: 2px; background: #C8102E; }
.cliph:focus-visible { outline: 3px solid #C8102E; }
.clipnow { position: absolute; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; background: #ffd34d; pointer-events: none; }
.cliprow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.cliprow button { min-height: 34px; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.07); color: inherit; font: 600 12px/1.2 inherit; cursor: pointer; }
.cliprow button:disabled { opacity: 0.4; cursor: default; }
.cliprow .clipgo { background: #C8102E; border-color: #C8102E; color: #fff; padding: 8px 18px; font-size: 13px; }
.clipmsg { flex: 1 1 160px; font-size: 12px; opacity: 0.85; word-break: break-word; }
@media (max-width: 420px) { .cliprow button { padding: 6px 8px; font-size: 11.5px; } .clipmark { flex: 1 1 40%; } }

/* No page zoom on phones (player page): no pinch or double-tap zoom, no iOS focus zoom. */
html { touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { touch-action: pan-x pan-y; }
a, button, input, select, textarea, label, summary, [role="button"] { touch-action: manipulation; }
@media (max-width: 900px) { input, select, textarea { font-size: 16px !important; } }

/* ===================== v2.6 desktop and big screens =====================
   One scale factor (--z) for 1440p and 4K monitors; the player is sized to the screen height, the right column
   carries programme details, Upcoming and Related; one action row holds Prev, Next and Search. Phones unchanged. */
:root { --z: 1; }
@media (min-width: 2200px) { :root { --z: 1.25; } }
@media (min-width: 2900px) { :root { --z: 1.5; } }
@media (min-width: 3500px) { :root { --z: 1.75; } }

/* direct channel entry number (all screens) */
.chnum { position: absolute; top: 12px; right: 14px; z-index: 9; pointer-events: none; text-align: right; padding: 6px 14px 8px; border-radius: 8px;
  background: linear-gradient(180deg, rgba(14, 14, 16, 0.78), rgba(0, 0, 0, 0.9)); border: 1px solid rgba(212, 175, 55, 0.55); box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5); }
.chnum[hidden] { display: none; }
.chnum-n { display: block; font-family: "Archivo Black", "Arial Black", Arial, sans-serif; font-size: 52px; line-height: 1; color: #f3cf5b; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 #000; }
.chnum-s { display: block; max-width: 18em; margin-top: 3px; font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chnum-s:empty { display: none; }
.chnum.is-bad { border-color: #C8102E; }
.chnum.is-bad .chnum-n:empty { display: none; }
.chnum.is-bad .chnum-s { font-size: 16px; color: #ffd7dc; margin: 0; }
@media (max-width: 700px) { .chnum { top: 8px; right: 8px; padding: 4px 10px 5px; } .chnum-n { font-size: 34px; } .chnum-s { font-size: 12px; max-width: 12em; } }

/* search result line above the grid */
.find-sum { margin: 10px 16px 0; padding: 8px 12px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-radius: 10px; background: #15151a; border: 1px solid rgba(212, 175, 55, 0.4); color: #f4f1ea; font-size: 15px; font-weight: 600; }
.find-sum[hidden] { display: none; }
.find-sum-x { margin-left: auto; min-height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid #C8102E; background: #C8102E; color: #fff; font: inherit; font-size: 13px; cursor: pointer; }

/* keyboard shortcuts: never a row of its own */
.keys { display: none; }
.keys[open] { display: block; position: fixed; z-index: 3000; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; padding: 0; width: min(560px, calc(100vw - 24px)); }
.keys > summary { display: none; }
.keys-pop { max-height: calc(100vh - 40px); overflow: auto; padding: 14px 18px 16px; border-radius: 14px; background: linear-gradient(160deg, #141418, #070708); border: 1px solid rgba(212, 175, 55, 0.5); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75); color: #fff; }
.keys-h { display: flex; align-items: center; margin: 0 0 8px; font-size: 17px; font-weight: 800; color: #f3cf5b; }
.keys-x { margin-left: auto; background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.keys-dl { display: grid; grid-template-columns: max-content 1fr; gap: 5px 14px; margin: 0; font-size: 14px; }
.keys-dl dt { font-weight: 800; color: #fff; white-space: nowrap; }
.keys-dl dt::before { content: none; }
.keys-dl dd { margin: 0; color: #d8d3c8; }
.actbar .act-slot[data-slot="keys"] { display: none; }

/* number pad (touch screens) */
.step-pad { font: inherit; cursor: pointer; margin-left: 8px; min-width: 56px; letter-spacing: 0.05em; font-weight: 800; }
.numpad { position: fixed; inset: 0; z-index: 2500; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, 0.45); }
.numpad[hidden] { display: none; }
.numpad-card { width: min(340px, 100%); margin: 0 0 calc(10px + env(safe-area-inset-bottom, 0px)); padding: 10px 12px 12px; border-radius: 16px; background: #0d0d10; border: 1px solid rgba(212, 175, 55, 0.5); box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.6); }
.numpad-disp { display: flex; align-items: center; margin: 0 0 8px; padding: 6px 10px; border-radius: 8px; background: #000; color: #f3cf5b; font-family: "Archivo Black", "Arial Black", Arial, sans-serif; font-size: 22px; min-height: 34px; white-space: nowrap; overflow: hidden; }
.numpad-disp span { overflow: hidden; text-overflow: ellipsis; }
.numpad-x { margin-left: auto; background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.numpad-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.numpad-keys button { min-height: 52px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.07); color: #fff; font: inherit; font-size: 22px; font-weight: 800; cursor: pointer; touch-action: manipulation; }
.numpad-keys button:active { background: rgba(255, 255, 255, 0.2); }
.numpad-keys .numpad-fn { font-size: 15px; }
.numpad-keys .numpad-ok { background: #C8102E; border-color: #C8102E; font-size: 17px; }

/* side column pieces (shown on wide screens only) */
.dk { display: none; }
@media (min-width: 1100px) {
  .is-desk .step-pad { display: none; }
  .dk { display: block; }
  .dk[hidden], .dk-prog[hidden], .dk-sec[hidden], .dk-src[hidden], .dk-sub[hidden], .dk-chips[hidden], .dk-cred[hidden] { display: none; }

  /* ---- grid: player sized to the screen, side column takes the rest ---- */
  .stage { display: grid; grid-template-columns: minmax(0, calc((100vh - 170px * var(--z)) * 16 / 9)) minmax(max(calc(340px * var(--z)), 22vw), 1fr);
    column-gap: calc(16px * var(--z)); align-items: stretch; padding: calc(12px * var(--z)) calc(16px * var(--z)) 0; overflow: visible; }
  .bezel { float: none; width: auto; min-width: 0; position: relative; container-type: inline-size; }
  .slip { float: none; width: auto; margin: 0; contain: size; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #3a3a40 transparent;
    zoom: var(--z); border-radius: 12px; padding: 14px 16px; background: linear-gradient(180deg, #111114, #08080a); color: #f4f1ea; border: 1px solid rgba(255, 255, 255, 0.08); }
  .switcher, .finder { display: none; }
  .mast, .transport, .filters, .find-sum, .empty, .paper, .foot, .osd, .osdx-card, .chnum, .gwchip, .nerd, .clippanel, .keys[open], .splash-card, .gate-card { zoom: var(--z); }
  .keys[open] { width: min(560px, calc(100vw / var(--z) - 24px)); }
  .keys-pop { max-height: calc(100vh / var(--z) - 40px); }
  .splash-card { max-height: calc(100vh / var(--z) - 28px); }
  .find-list { max-height: min(calc(60vh / var(--z)), 440px); }

  /* ---- right column ---- */
  .slip-row { gap: 14px; }
  .slip-logo { flex: 0 0 84px; width: 84px; height: 56px; background: #fff; box-shadow: none; }
  .slip-logo img { width: 84px; height: 56px; }
  .slip-chan { color: #b8b0a2; font-size: 14px; }
  .slip-chan .slip-num { color: #f3cf5b; }
  .slip h1 { font-size: 26px; line-height: 1.12; color: #fff; margin-top: 3px; }
  .slip-meta { color: #d4a838; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; margin-top: 10px; }
  .slip-blurb { color: #e6e1d6; font-size: 15px; line-height: 1.45; margin-top: 6px; }
  .dk-prog { margin-top: 10px; }
  .dk-sub { margin: 0 0 6px; color: #fff; font-weight: 700; font-size: 14px; }
  .dk-chips { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
  .dk-chips span { padding: 2px 8px; border-radius: 5px; border: 1px solid rgba(212, 175, 55, 0.55); color: #f3cf5b; font-size: 12px; font-weight: 700; }
  .dk-time { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; font-size: 13px; color: #cfc8bb; font-variant-numeric: tabular-nums; }
  .dk-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
  .dk-bar b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #C8102E, #e8304a); }
  .dk-time em { grid-column: 1 / -1; font-style: normal; color: #9d968a; font-size: 12px; margin-top: -2px; }
  .dk-cred { margin: 8px 0 0; font-size: 13.5px; color: #e6e1d6; line-height: 1.4; }
  .dk-cred b { color: #f3cf5b; margin-right: 4px; }
  .dk-sec { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .dk-h { margin: 0 0 8px; font-family: Outfit, Arial, sans-serif; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #d4a838; }
  .dk-up { list-style: none; margin: 0; padding: 0; }
  .dk-up li { display: grid; grid-template-columns: 4.9em minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 14px; }
  .dk-up li:last-child { border-bottom: 0; }
  .dk-at { color: #f3cf5b; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .dk-ut { min-width: 0; }
  .dk-ut b { display: block; color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dk-ud { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; color: #a9a294; font-size: 12.5px; line-height: 1.35; }
  .dk-ul { color: #8a8478; font-size: 12px; white-space: nowrap; }
  .dk-rel { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }
  .dk-ch { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 8px; border-radius: 9px; text-decoration: none; color: #fff; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06); }
  .dk-ch:hover, .dk-ch:focus-visible { background: rgba(200, 16, 46, 0.22); border-color: rgba(200, 16, 46, 0.7); outline: none; }
  .slip-logo.is-light, .dk-ch img.is-light { background: #0b0b0d; }
  .dk-ch img, .dk-num { flex: 0 0 56px; width: 56px; height: 38px; object-fit: contain; border-radius: 6px; background: #fff; }
  .dk-num { display: flex; align-items: center; justify-content: center; background: #0057b8; color: #fff; font-family: "Archivo Black", "Arial Black", Arial, sans-serif; font-size: 15px; }
  .dk-ct { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
  .dk-ct b { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dk-ct b i { font-style: normal; color: #f3cf5b; margin-right: 2px; }
  .dk-ct span { font-size: 12px; color: #9d968a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dk-ct span.is-epg { color: #d8d3c8; }
  .dk-src { margin: 12px 0 0; font-size: 11px; color: #6f6a61; }

  /* ---- one action row: Favorite ... Info, Keys, Prev, Next, Search ---- */
  .transport { padding: 8px 0 0; }
  .tuned { display: none; }
  .transport-actions.actbar { display: flex !important; max-width: none; gap: 6px; margin: 0 !important; align-items: stretch; }
  .actbar > .act-slot { flex: 0 0 64px; width: 64px; }
  .actbar .act-slot[data-slot="keys"] { display: flex; }
  .actbar > .act-slot[data-slot="search"] { flex: 1 1 auto; width: auto; min-width: 240px; margin-left: 6px; }
  .actbar > .act-slot[data-slot="prev"] { margin-left: 10px; }
  .actbar .step { flex: 1 1 auto; min-width: 0; min-height: 52px; height: 52px; padding: 4px 2px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); color: #fff; font-size: 11px; font-weight: 600; line-height: 1.1; margin: 0 !important; }
  .actbar .step::before { font-size: 18px; line-height: 20px; font-weight: 800; }
  .actbar #step-prev::before { content: "\2039"; }
  .actbar #step-next::before { content: "\203A"; }
  .actbar .step:hover { background: rgba(255, 255, 255, 0.14); }
  .actbar .find { width: 100%; margin: 0; max-width: none; }
  .actbar .find-box { height: 52px; }
  .actbar .find-box input, .actbar .find input#find { height: 52px; min-height: 52px; box-sizing: border-box; border-radius: 10px; font-size: 15px; }
  .actbar .find-list { top: 58px; z-index: 60; }
  .actbar .find-count { display: none; }
  .status:empty, .cc-note:empty, .status.is-gone { display: none; }
  .status { position: absolute; left: 14px; top: calc(56.25cqw - 96px * var(--z)); z-index: 12; margin: 0; max-width: 60%; padding: 5px 12px; border-radius: 8px; pointer-events: none;
    background: rgba(0, 0, 0, 0.78); border: 1px solid rgba(255, 255, 255, 0.16); color: #fff; font-size: calc(14px * var(--z)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .track-label { margin-top: 6px; }

  /* ---- stats for nerds: over the picture, never pushing the page ---- */
  .nerd { position: absolute; top: 10px; left: 10px; z-index: 20; margin: 0 !important; width: min(560px, calc(100% / var(--z) - 20px)); max-width: none;
    max-height: calc(56.25cqw / var(--z) - 20px); overflow: auto; background: rgba(6, 8, 14, 0.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-sizing: border-box; font-size: 13px; }


  /* ---- grids fill the width ---- */
  .station-grid, .guide-cards.station-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important; }
  .filters { padding: 12px 16px 0; }
}
@media (min-width: 1100px) and (max-height: 700px) {
  .stage { grid-template-columns: minmax(0, calc((100vh - 150px * var(--z)) * 16 / 9)) minmax(calc(320px * var(--z)), 1fr); }
}
@media (min-width: 1100px) {
  .actbar > .act-slot[data-slot="keys"] { order: 1; flex-basis: 52px; width: 52px; }
  .actbar > .act-slot:has(> .act-ph) { display: none; }
}

/* free preview: countdown chip (over the picture, no row of its own) and the frosted picture when it ends */
.fpchip { position: absolute; top: 10px; left: 10px; z-index: 13; display: none; align-items: center; gap: 7px; max-width: calc(100% - 20px);
  padding: 3px 3px 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.74); border: 1px solid rgba(212, 175, 55, 0.65);
  color: #f3cf5b; font-size: 12.5px; line-height: 1.2; font-weight: 800; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); pointer-events: auto; cursor: default; }
.fpchip.on { display: inline-flex; }
.fpchip[hidden] { display: none !important; }
.fpchip-ico { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.fpchip-t { overflow: hidden; text-overflow: ellipsis; }
.fpchip-in { flex: none; border: 0; border-radius: 999px; padding: 4px 11px; min-height: 24px; background: #C8102E; color: #fff; font: inherit; font-weight: 800; cursor: pointer; letter-spacing: 0; }
.fpchip-in:hover { background: #A00D25; }
.fpchip-in:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.fpchip.low { border-color: #ff5a6e; color: #fff; background: rgba(200, 16, 46, 0.9); }
.fpchip.low .fpchip-ico { animation: wn-fp-blink 1s steps(2, start) infinite; }
.fpchip.low .fpchip-in { background: #fff; color: #C8102E; }
.fpchip.low .fpchip-in:hover { background: #FBE9EC; }
@keyframes wn-fp-blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .fpchip.low .fpchip-ico { animation: none; } }
.screen-wrap.is-mini .fpchip { top: 6px; left: 6px; font-size: 11px; padding: 2px 2px 2px 8px; gap: 5px; }
.screen-wrap.is-mini .fpchip-in { padding: 3px 8px; min-height: 20px; }
.screen-wrap.is-frost video { filter: blur(14px) saturate(0.7) brightness(0.7); transform: scale(1.04); transition: filter 0.8s ease, transform 0.8s ease; }
.screen-wrap.is-frost::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02)); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.screen-wrap.is-frost .lockpane { z-index: 12; }
.screen-wrap { overflow: hidden; }
@media (min-width: 1100px) { .fpchip { zoom: var(--z); } }
@media (max-width: 700px) { .fpchip { top: 6px; left: 6px; font-size: 11.5px; padding: 2px 2px 2px 8px; gap: 5px; } .fpchip-in { padding: 4px 10px; min-height: 26px; } }
/* signed-out: optional 5-minute free preview from the sign-in overlay */
.gate-fp { margin: 10px 0 0; background: #fff; color: #C8102E; border: 2px solid #C8102E; font-size: 16px; min-height: 46px; }
.gate-fp:hover { background: #FBE9EC; color: #A00D25; }
.gate-fp[hidden] { display: none; }
/* Desktop floating mini-player (scrolled down to the grid) */
.mini-bar { display: none; }
.screen-wrap.is-mini {
  position: fixed; right: 20px; bottom: 20px; left: auto; top: auto; z-index: 60;
  width: clamp(320px, 26vw, 560px); height: auto; aspect-ratio: 16 / 9; padding: 0; margin: 0;
  background: #000; border: 2px solid #C8102E; border-radius: 10px; overflow: hidden;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.65); animation: wn-mini-in 0.2s ease-out;
}
.screen-wrap.is-mini video { width: 100%; height: 100%; object-fit: contain; }
.screen-wrap.is-mini .osd, .screen-wrap.is-mini .osdx-card, .screen-wrap.is-mini .gwchip { display: none !important; }
.screen-wrap.is-mini .mini-bar { display: flex; gap: 6px; position: absolute; top: 6px; right: 6px; z-index: 20; opacity: 0; transition: opacity 0.15s; }
.screen-wrap.is-mini:hover .mini-bar, .screen-wrap.is-mini:focus-within .mini-bar { opacity: 1; }
.mini-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.72); color: #fff; font-size: 20px; line-height: 34px; cursor: pointer; padding: 0; }
.mini-btn:hover { background: #C8102E; }
.mini-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@keyframes wn-mini-in { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen-wrap.is-mini { animation: none; } }
.has-mini .bezel { container-type: normal; }

/* Live teaser inside the Splash.jpg monitor (assets/iptv-monitor.js; corners in /IPTV/splash-monitor.json). */
.gate-mon { position: absolute; left: 0; top: 0; width: 480px; height: 300px; transform-origin: 0 0; pointer-events: none;
  border-radius: 6px; opacity: 0; transition: opacity 0.5s ease; filter: brightness(0.9) contrast(1.06) saturate(1.05);
  box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.35); backface-visibility: hidden; }
.gate-mon.is-on { opacity: 0.97; }
@media (max-height: 600px) { .gate-mon { display: none; } }

/* ?f free-pass: one-time welcome note */
.passnote { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 120; max-width: calc(100% - 28px); padding: 9px 16px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.86); border: 1px solid rgba(212, 175, 55, 0.7); color: #f3cf5b; font-weight: 800; font-size: 14px; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  transition: opacity 0.6s; pointer-events: none; text-align: center; }
.passnote.off { opacity: 0; }
@media (min-width: 1100px) { .passnote { zoom: var(--z); } }

/* ---------- live tuning status (quiet line, top-left of the picture; fades ~1 s after the first frame) ---------- */
.tunest { position: absolute; top: 10px; left: 10px; z-index: 8; pointer-events: none; display: flex; align-items: center; gap: 8px;
  max-width: calc(100% - 20px); box-sizing: border-box; padding: 5px 12px 5px 10px; border-radius: 10px;
  background: linear-gradient(90deg, rgba(10, 12, 16, 0.62), rgba(10, 12, 16, 0.38));
  -webkit-backdrop-filter: blur(6px) saturate(120%); backdrop-filter: blur(6px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.9);
  font: 500 12.5px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: 0.015em;
  opacity: 0; transform: translateY(-4px); transition: opacity 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1); }
.tunest.on { opacity: 1; transform: none; }
.tunest-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; transition: opacity 0.14s ease; }
.tunest.swap .tunest-t { opacity: 0; }
.tunest-ms { flex: none; font-variant-numeric: tabular-nums; font-size: 0.86em; color: rgba(255, 255, 255, 0.45); }
.tunest-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: #8fd3ff; opacity: 0.9; animation: wn-ts-breathe 2.4s ease-in-out infinite; }
.tunest.done .tunest-dot { background: #7ee2a8; animation: none; }
@keyframes wn-ts-breathe { 0%, 100% { opacity: 0.35; transform: scale(0.85); } 50% { opacity: 0.95; transform: scale(1); } }
.screen-wrap.is-mini .tunest { top: 6px; left: 6px; padding: 3px 8px 3px 7px; gap: 6px; font-size: 10.5px; border-radius: 8px; }
.screen-wrap.is-mini .tunest-ms { display: none; }
@media (max-width: 700px) { .tunest { top: 6px; left: 6px; font-size: 11.5px; padding: 4px 10px 4px 8px; gap: 6px; } }
@media (min-width: 1100px) { .tunest { zoom: var(--z); } }
@media (prefers-reduced-motion: reduce) { .tunest, .tunest-t { transition: none; transform: none; } .tunest-dot { animation: none; } }

/* ===== BEGIN wn-mobile-top-fix (2026-10-29): phone header + Info/About always reachable. CSS only; delete this block to roll back. ===== */
/* About stays in the tool row, to the right of the WestNet logo. */
@media (max-width: 700px), (max-height: 500px) and (pointer: coarse) {
  .mast { min-width: 0; padding-left: calc(6px + env(safe-area-inset-left, 0px)); }
  .mast-tools { flex: 0 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .mast-tools::-webkit-scrollbar { display: none; }
  .mast-tools > * { flex: 0 0 auto; }
  .nowchip { flex: 0 1 auto; min-width: 0; }
}
@media (max-width: 400px) {
  .mast { gap: 5px; padding-right: 6px; }
  .mast .brand-mark { height: 19px; }
  .tool { min-width: 40px; padding: 0 3px; }
}
/* phones on their side: one slim header row that fits, and the picture fits the screen height so the banner/Info shows */
@media (max-height: 500px) and (pointer: coarse) and (orientation: landscape) {
  .mast { gap: 8px; padding-top: 4px; padding-bottom: 4px; padding-right: calc(10px + env(safe-area-inset-right, 0px)); }
  .mast .brand-mark { height: 24px; }
  .mast .product { font-size: 11px; }
  .nowchip { padding: 2px 8px 2px 4px; }
  .nowchip-logo img { width: 36px; height: 26px; }
  .nowchip-num { font-size: 17px; }
  .nowchip-name { max-width: 120px; font-size: 14px; }
  .mast .nav { gap: 2px; flex: 0 1 auto; min-width: 0; }
  .mast .nav a { padding: 8px 6px; white-space: nowrap; font-size: 14px; }
  .mast-tools { gap: 2px; }
  .tool { padding: 0 6px; min-width: 42px; }
  .tool-icon .tool-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .tool-user .tool-label { font-size: 12px; max-width: 90px; }
  .bezel { max-width: calc((100vh - 76px) * 16 / 9); margin-left: auto; margin-right: auto; }
  @supports (height: 100dvh) { .bezel { max-width: calc((100dvh - 76px) * 16 / 9); } }
}
@media (max-height: 500px) and (pointer: coarse) and (orientation: landscape) and (max-width: 760px) {
  .nowchip-name { display: none; }
}
/* Info details sheet: measure against the visible screen (iOS toolbars), so its top row is never above the screen */
@media (max-width: 700px) and (orientation: portrait) {
  @supports (height: 100dvh) { .osdx-card { max-height: 78dvh; } }
}
@media (max-height: 500px) and (pointer: coarse) {
  @supports (height: 100dvh) { .osdx-card { max-height: calc(100dvh - 16px); } }
}
/* ===== END wn-mobile-top-fix ===== */

/* Programme title sits under the station, then length and time left on their own line. */
.station { align-items: flex-start; }
.station-copy { display: flex; flex-direction: column; gap: 6px; padding: 2px 0; }
.station-live, .station-now { margin-top: 0; }
.osd-prog { margin-top: 8px !important; }
.osd-main p.osd-meta { margin-top: 3px; font-size: 12px; color: #d9d9d9; font-weight: 500; }
.osd-meta:empty { display: none; }
.slip h1 { margin-top: 12px; }
.osdx-title { margin-top: 8px; }
.osdx-time { margin-top: 12px; }
.osdx-left { margin-top: 4px; }
.guide-table .prog { padding: 10px 14px 10px 18px; }
.prog-meta { margin-top: 4px; }
@media (min-width: 1100px) {
  .slip h1 { margin-top: 14px; }
  .dk-prog { margin-top: 14px; }
  .dk-time em { margin-top: 4px; }
}

/* Guide cells show the programme that is on, with length and time left. */
.guide-table td.prog.is-now { background: #fffdf6; box-shadow: inset 3px 0 0 #0057b8; }
.guide-table tr.is-on td.prog.is-now { background: #fffdf6; }
.prog-title { overflow: hidden; }
.station-when { display: block; margin: 0; font-size: 12px; line-height: 1.35; color: #5c5348; font-variant-numeric: tabular-nums; }
.station.is-on .station-when { color: #d6e6f8; }
/* Station preview well: logo until hover, then the muted clip. Logo stays as a corner bug. */
.station-prev { position: relative; flex: 0 0 148px; width: 148px; height: 92px; overflow: hidden; background: #fff; border-radius: 6px; }
.station-prev .station-mark { width: 100%; height: 100%; flex: none; object-fit: contain; display: block; background: #fff; }
.station-prev .station-num { width: 100%; height: 100%; flex: none; }
.station-prev .pv { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; background: #000; opacity: 0; z-index: 1; }
.station-prev.is-live .pv { opacity: 1; }
.station-prev.is-live .station-mark { position: absolute; z-index: 2; top: 4px; right: 4px; width: 42%; height: auto; max-height: 38%; padding: 2px 3px; border-radius: 4px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.45); object-fit: contain; }
.station-prev.is-live .station-mark.is-light { background: #0b0b0d; }
.station-prev .pvb { position: absolute; z-index: 3; left: 4px; bottom: 4px; display: none; align-items: center; gap: 4px; padding: 1px 6px; border-radius: 999px; background: #cd040b; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .04em; line-height: 1.5; }
.station-prev .pvb i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.station-prev.is-pv .pvb { display: inline-flex; }
.station-prev.is-pv:not(.is-live) .pvb { background: rgba(0,0,0,.72); }
.station-prev.is-pv:not(.is-live) .pvb i { animation: wn-pvblink 1s infinite; }
@keyframes wn-pvblink { 50% { opacity: .2; } }
@media (max-width: 700px) {
  .station-prev { flex-basis: 120px; width: 120px; height: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  .station-prev .pv, .station-prev.is-live .station-mark { transition: none; }
  .station-prev.is-pv:not(.is-live) .pvb i { animation: none; }
}

/* Time-grid station column: same preview well as the Arabic teaser tiles. */
.guide-table tbody th { width: 196px; }
.guide-table .gprev { flex: none; width: 168px; height: 94px; margin: 0 0 6px; display: block; }
.guide-table .gprev .station-num { font-size: 22px; }

/* Lineup of ~960 stations stays compact. The preview frame does not reserve a big tile. The picture pops out only while it plays. */
.station { align-items: center; min-height: 64px; }
.station-prev { flex: 0 0 72px; width: 72px; height: 48px; }
.station-name, .station-live, .station-when, .station-now { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.station-live { display: block; -webkit-line-clamp: unset; }
.guide-table tbody th { width: 168px; }
.guide-table .gprev { width: 64px; height: 36px; margin: 0 0 4px; }
.station-prev.is-live, .guide-table .gprev.is-live { overflow: visible; z-index: 6; }
.station-prev.is-live .pv, .guide-table .gprev.is-live .pv { width: 240px; height: 135px; border-radius: 6px; box-shadow: 0 10px 28px rgba(0,0,0,.55); }
@media (min-width: 1100px) {
  .lineup-board .station-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important; }
}

/* Phones: Previous and Next sit under the picture as two equal thumb buttons, with the channel number. */
@media (max-width: 1099px) {
  .switcher { display: flex; gap: 8px; padding: 8px 10px 0; align-items: stretch; }
  .switcher .step { flex: 1 1 0; min-width: 0; min-height: 56px; margin: 0; padding: 6px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 12px; font-size: 13px; font-weight: 700; line-height: 1.15; }
  .switcher #step-prev { margin-right: 0; }
  .switcher .step-n { font-size: 18px; font-weight: 800; letter-spacing: 0.02em; }
  .switcher .step-pad { flex: 0 0 64px; min-width: 56px; margin-left: 0; }
}
@media (min-width: 1100px) {
  .actbar .step-n { display: none; }
  .actbar .step-k { display: block; }
}

.filter-xxx { outline: 1px solid #c45c26; outline-offset: -1px; }
