/* SportPanel: πάνελ ελέγχου μετάδοσης. Σκούρο θέμα από προεπιλογή, φωτεινό με το κουμπί στο header.
   Κόκκινο για LIVE, κεχριμπάρι για ό,τι αφορά τον ήχο. Τα στοιχεία πάνω στα βίντεο μένουν σκούρα. */
/* Γραματοσειρές από τον δικό μας server (όχι Google Fonts), άδεια SIL OFL */
@font-face { font-family: "Fira Sans Extra Condensed"; src: url("fonts/FiraSansExtraCondensed-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Sans Extra Condensed"; src: url("fonts/FiraSansExtraCondensed-ExtraBold.woff") format("woff"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Sans Extra Condensed"; src: url("fonts/FiraSansExtraCondensed-ExtraBoldItalic.woff") format("woff"); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Fira Sans Extra Condensed"; src: url("fonts/FiraSansExtraCondensed-BlackItalic.woff") format("woff"); font-weight: 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Commissioner"; src: url("fonts/Commissioner-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Commissioner"; src: url("fonts/Commissioner-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Commissioner"; src: url("fonts/Commissioner-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Commissioner"; src: url("fonts/Commissioner-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
:root {
  --bg: #07090c;
  --bg-2: #0d1116;
  --surface: #131820;
  --surface-2: #1a212b;
  --line: #222a35;
  --fg: #f2f5f9;
  --muted: #8a95a6;
  --live: #ff2e3e;
  --live-2: #ff8a3d;
  --audio: #ffb21f;
  --display: "Fira Sans Extra Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Commissioner", "Segoe UI", system-ui, sans-serif;
  --header-shade: rgba(0,0,0,.35);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f6f8;
  --bg-2: #eaedf1;
  --surface: #ffffff;
  --surface-2: #eef1f4;
  --line: #d6dce3;
  --fg: #0d1218;
  --muted: #5a6574;
  --live: #e5202f;
  --live-2: #f0612b;
  --audio: #c98000;
  --header-shade: rgba(13,18,24,.08);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); transition: background-color .25s, color .25s; font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; padding-top: env(safe-area-inset-top, 0px); }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--audio); outline-offset: 2px; border-radius: 4px; }
svg { display: block; }

.pad { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.inner { width: 100%; }

/* ---------- Header ---------- */
.bar .inner { padding-block: 16px 4px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.bar .count { justify-self: end; }

/* Κουμπί θέματος: διακόπτης με ήλιο και φεγγάρι, στο κέντρο του header */
/* Κέντρο header: ένταση ήχου + θέμα */
.hcenter { display: flex; align-items: center; gap: 10px; justify-self: center; }
.vol { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: inset 0 1px 2px var(--header-shade); }
.vol__btn { width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--fg); display: grid; place-items: center; cursor: pointer; padding: 0; }
.vol__btn:hover { background: var(--surface-2); }
.vol__btn svg { width: 18px; height: 18px; }
.vol__btn .i-off { display: none; }
.vol.is-muted .vol__btn .i-on { display: none; }
.vol.is-muted .vol__btn .i-off { display: block; color: var(--muted); }
.vol.is-low .w2 { display: none; }
.vol__range { -webkit-appearance: none; appearance: none; width: 110px; height: 6px; border-radius: 999px; cursor: pointer; background: linear-gradient(to right, var(--muted) var(--v, 100%), var(--line) var(--v, 100%)); transition: background .15s; }
/* Κεχριμπαρένια μόνο όταν το ποντίκι είναι πάνω της (ή όταν τη ρυθμίζεις με το πληκτρολόγιο) */
.vol:hover .vol__range, .vol__range:focus-visible { background: linear-gradient(to right, var(--audio) var(--v, 100%), var(--line) var(--v, 100%)); }
.vol.is-muted .vol__range { background: linear-gradient(to right, var(--muted) var(--v, 100%), var(--line) var(--v, 100%)); }
.vol__range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--fg); border: 3px solid var(--surface); box-shadow: 0 1px 4px var(--header-shade); }
.vol__range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--fg); border: 3px solid var(--surface); }
.vol__range::-moz-range-track { background: transparent; }
.vol__val { font: 600 12px/1 var(--body); font-variant-numeric: tabular-nums; color: var(--muted); min-width: 24px; text-align: right; }
@media (max-width: 760px) { .vol__range, .vol__val { display: none; } .vol { padding: 0 4px; } }
.theme { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; align-items: center; width: 84px; height: 40px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; justify-self: center; box-shadow: inset 0 1px 2px var(--header-shade); }
.theme__thumb { position: absolute; top: 4px; left: 4px; width: 38px; height: 30px; border-radius: 999px; background: var(--fg); box-shadow: 0 2px 6px var(--header-shade); transition: transform .28s cubic-bezier(.3, 1.3, .5, 1); }
:root[data-theme="light"] .theme__thumb { transform: translateX(0); }
:root:not([data-theme="light"]) .theme__thumb { transform: translateX(36px); }
.theme svg { position: relative; z-index: 1; width: 18px; height: 18px; justify-self: center; color: var(--muted); transition: color .2s; }
:root[data-theme="light"] .theme .i-sun, :root:not([data-theme="light"]) .theme .i-moon { color: var(--bg); }
.theme:hover { border-color: var(--muted); }
/* Logo: live δαχτυλίδι σε 4 τόξα (όσες οι οθόνες) με «SP» στη μέση */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; justify-self: start; width: max-content; }
.brand__mark { width: 46px; height: 46px; flex: 0 0 auto; }
.brand__text { display: flex; flex-direction: column; gap: 4px; }
.brand__word { font: italic 900 30px/.9 var(--display); letter-spacing: .02em; color: var(--fg); }
.brand__word b { font-weight: 900; color: var(--live); }
.brand__tag { font: 700 10px/1 var(--display); letter-spacing: .32em; color: var(--muted); padding-left: 2px; }
.foot__brand { color: var(--fg); font-weight: 600; }
.foot__meta { display: inline-flex; align-items: center; gap: 10px; }
.online { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; color: var(--muted); }
.online::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px color-mix(in srgb, #22c55e 22%, transparent); }
.count { display: flex; align-items: center; gap: 10px; }
.count__n { font: 800 32px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--live); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; min-width: 1.6em; text-align: center; text-shadow: 0 0 18px color-mix(in srgb, var(--live) 50%, transparent); }
.count__l { font-size: 11px; line-height: 1.2; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); text-align: right; }

/* ---------- Ticker ---------- */
.ticker { margin-top: 12px; border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; display: flex; }
.ticker__tag { flex: 0 0 auto; display: flex; align-items: center; padding: 0 14px 0 max(16px, env(safe-area-inset-left, 0px)); background: var(--live); color: #fff; font: italic 800 13px/1 var(--display); letter-spacing: .08em; position: relative; z-index: 1; }
.ticker__tag::after { content: ""; position: absolute; right: -10px; top: 0; bottom: 0; width: 10px; background: var(--live); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.ticker__track { display: flex; gap: 40px; padding: 8px 0 8px 28px; white-space: nowrap; animation: ticker 42s linear infinite; font-size: 13px; color: var(--muted); }
.ticker__track b { color: var(--fg); font-weight: 600; margin-right: 6px; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Σειρά καναλιών ---------- */
.strip__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 16px; }
.strip__head h2 { margin: 0; font: 600 13px/1 var(--display); letter-spacing: .14em; color: var(--muted); }

/* Καρτέλες κατηγορίας: Αθλητικά μέσα | Ομάδες */
.tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.tabs button { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 700 12px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background .15s, color .15s; }
.tabs button:hover { color: var(--fg); }
.tabs button[aria-selected="true"] { background: var(--fg); color: var(--bg); }
.tabs__n { font: 800 11px/1 var(--body); letter-spacing: 0; min-width: 18px; padding: 3px 5px; border-radius: 999px; background: var(--live); color: #fff; }
.tabs__n:empty, .tabs__n[data-zero] { background: var(--line); color: var(--muted); }

/* Φίλτρο ομάδας */
.teams { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 12px; }
.team-chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 8px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--fg); font-size: 13px; font-weight: 600; cursor: pointer; }
.team-chip:hover { border-color: var(--muted); }
.team-chip[aria-pressed="true"] { background: var(--surface-2); border-color: var(--fg); }
.team-chip .sw { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, var(--c1) 50%, var(--c2) 50%); box-shadow: 0 0 0 1px var(--line); }
.team-chip .n { font-size: 11px; color: var(--muted); font-weight: 600; }
.team-chip.is-all .sw { background: conic-gradient(var(--live), var(--live-2), var(--live)); }
.strip__head p { margin: 0; font-size: 12px; color: var(--muted); }
.strip__head kbd { font: 600 11px/1 var(--body); background: var(--surface); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 2px 5px; color: var(--fg); }
/* Η σειρά απλώνεται σε όλο το πλάτος, ώστε η λάμψη των λογοτύπων να μην κόβεται στις άκρες. */
.strip ul { list-style: none; margin: 0; max-width: none; padding-block: 24px 22px; --edge: max(16px, env(safe-area-inset-left, 0px)); padding-left: var(--edge); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--edge); scrollbar-width: none; }
.strip ul::-webkit-scrollbar { display: none; }
.strip li { flex: 0 0 auto; scroll-snap-align: start; }

.ch { position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; width: 92px; padding: 4px 0 0; background: none; border: 0; cursor: pointer; }
.ch.is-new { animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.ch__ring { position: relative; width: 78px; height: 78px; border-radius: 50%; padding: 3px; transition: transform .2s ease, filter .2s; isolation: isolate; }
.ch__ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: -1; background: conic-gradient(from var(--a, 0deg), var(--live), var(--live-2), var(--live), #c4122a, var(--live)); animation: spin 3s linear infinite; }
/* Κανάλια ομάδων: δαχτυλίδι στα χρώματα της ομάδας */
.ch.is-team .ch__ring::before { background: conic-gradient(from var(--a, 0deg), var(--c1), var(--c2), var(--c1), var(--c2), var(--c1)); }
.tile__team { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; background: linear-gradient(135deg, var(--c1) 50%, var(--c2) 50%); box-shadow: 0 0 0 1.5px rgba(255,255,255,.6); }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }
.ch__gap { display: block; width: 100%; height: 100%; border-radius: 50%; padding: 3px; background: var(--bg); }
.ch__img { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font: italic 800 22px/1 var(--display); color: #fff; background: radial-gradient(circle at 30% 25%, hsl(var(--h) 60% 48%), hsl(var(--h) 55% 24%)); }
.ch__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch__badge { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); background: var(--live); color: #fff; border: 2px solid var(--bg); font: 800 10px/1 var(--display); letter-spacing: .1em; padding: 2px 6px 3px; border-radius: 4px; }
.ch__slot, .ch__add { position: absolute; top: -2px; right: -2px; width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--bg); display: grid; place-items: center; }
.ch__slot { background: var(--fg); color: var(--bg); font: 800 13px/1 var(--display); font-variant-numeric: tabular-nums; }
.ch.has-audio .ch__slot { background: var(--audio); }
.ch__slot svg { width: 13px; height: 13px; }
.ch__add { background: var(--surface-2); opacity: 0; transform: scale(.7); transition: opacity .15s, transform .15s; }
.ch__add svg { width: 12px; height: 12px; }
.ch:hover .ch__add, .ch:focus-visible .ch__add { opacity: 1; transform: none; }
@media (hover: none) { .ch__add { opacity: 1; transform: none; } }
.ch:hover .ch__ring { transform: translateY(-3px); }
.ch.in-view .ch__ring { transform: translateY(-3px); filter: drop-shadow(0 4px 12px color-mix(in srgb, var(--live) 50%, transparent)); }
.ch.has-audio .ch__ring { filter: drop-shadow(0 4px 12px color-mix(in srgb, var(--audio) 50%, transparent)); }
.ch__name { font-size: 12.5px; font-weight: 500; line-height: 1.2; color: var(--muted); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.ch__v { font-size: 11px; color: color-mix(in srgb, var(--muted) 75%, transparent); font-variant-numeric: tabular-nums; margin-top: -6px; }
.ch:hover .ch__name, .ch.in-view .ch__name { color: var(--fg); }
.ch.in-view .ch__name { font-weight: 700; }
.ch.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.strip__empty { color: var(--muted); padding: 24px 0; }

/* ---------- Μπάρα εργαλείων ---------- */
main .inner { padding-block: 4px 48px; }
.tools { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.tools__info { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); min-width: 0; }
.slots { display: inline-flex; gap: 4px; }
.slots i { width: 18px; height: 6px; border-radius: 2px; background: var(--line); transition: background .2s; }
.slots i.on { background: var(--live); }
.nowaudio { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); font-weight: 500; min-width: 0; }
.nowaudio .eq, .nowaudio svg { color: var(--audio); }
.nowaudio svg { width: 15px; height: 15px; }
.tools__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.tbtn { display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; font-size: 13px; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s; }
.tbtn:hover { border-color: var(--muted); background: var(--surface-2); }
.tbtn svg { width: 16px; height: 16px; }
.tbtn[aria-pressed="true"] { border-color: var(--audio); color: var(--audio); }

/* ---------- Πλέγμα οθονών ---------- */
.grid { display: grid; gap: 8px; }
/* Δύο διατάξεις: «πλέγμα» (όλα ίσα) και «κύριο» (ένα μεγάλο αριστερά, τα άλλα στοιβαγμένα δεξιά) */
.grid.n1 { grid-template-columns: 1fr; }
.grid.lay-grid.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.lay-grid.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.lay-grid.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.lay-focus { align-items: start; }
.grid.lay-focus.n2, .grid.lay-focus.n4 { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
.grid.lay-focus.n3 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid.lay-focus.n3 .tile.is-first { grid-row: span 2; }
.grid.lay-focus.n4 .tile.is-first { grid-row: span 3; }
.grid:fullscreen { background: #000; padding: 8px; align-content: center; }
/* Ένα κανάλι: κεντραρισμένο, ώστε να φαίνεται όλο το ύψος του (το --avail το υπολογίζει το app.js).
   Με «Πλήρες πλάτος» απλώνεται σε όλη την οθόνη. */
.grid.n1:not(.is-wide) { max-width: calc(var(--avail, 9999px) * 16 / 9); margin-inline: auto; }
.grid.n1:fullscreen { max-width: none; }
@media (max-width: 700px) { .grid.n1:not(.is-wide) { max-width: none; } }

@media (max-width: 700px) {
  .grid.lay-grid.n2 { grid-template-columns: 1fr; }
  .grid.lay-grid.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.lay-grid.n3 .tile.is-first { grid-column: span 2; }
  .grid.lay-focus.n2, .grid.lay-focus.n3, .grid.lay-focus.n4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.lay-focus .tile.is-first { grid-column: 1 / -1; grid-row: auto !important; }
  .grid { gap: 6px; }
}

.tile { position: relative; aspect-ratio: 16 / 9; min-width: 0; border-radius: 10px; overflow: hidden; background: #000; color: #f2f5f9; isolation: isolate; animation: tileIn .35s ease-out both; }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: 10px; border: 2px solid transparent; pointer-events: none; z-index: 4; transition: border-color .2s; }
.tile.has-audio::after { border-color: var(--audio); }
@keyframes tileIn { from { opacity: 0; transform: scale(.97); } }

/* Ο player του YouTube */
.tile__player, .tile__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tile__loading { position: absolute; inset: 0; display: grid; place-items: center; z-index: -1; background: radial-gradient(ellipse at 50% 110%, hsl(var(--h) 70% 35% / .5), transparent 60%), #05070a; }
.tile__loading span { width: clamp(40px, 12%, 88px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font: italic 900 clamp(15px, 2.2vw, 28px)/1 var(--display); color: #fff; background: hsl(var(--h) 55% 30%); box-shadow: 0 0 0 3px #05070a, 0 0 0 6px var(--live); }
.tile__loading img { width: 100%; height: 100%; object-fit: cover; }

/* Διάφανο στρώμα πάνω από τις οθόνες χωρίς ήχο: ένα πάτημα = άκου αυτή */
.tile__shield { position: absolute; inset: 0; z-index: 2; cursor: pointer; display: grid; place-items: center; background: transparent; border: 0; padding: 0; transition: background .15s; }
.tile__shield span { display: inline-flex; align-items: center; gap: 8px; background: rgba(8,10,14,.78); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.12); padding: 9px 14px; border-radius: 999px; font: 700 12px/1 var(--body); letter-spacing: .05em; opacity: 0; transform: scale(.94); transition: opacity .15s, transform .15s; }
.tile__shield span svg { width: 16px; height: 16px; color: var(--audio); }
.tile__shield:hover { background: rgba(0,0,0,.18); }
.tile__shield:hover span, .tile__shield:focus-visible span { opacity: 1; transform: none; }
.tile.has-audio .tile__shield { display: none; }

/* Επάνω μπάρα κάθε οθόνης */
.tile__ui { position: absolute; left: 0; right: 0; top: 0; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 10px; background: linear-gradient(rgba(0,0,0,.6), transparent); pointer-events: none; }
.tile__ui > * { pointer-events: auto; }
.pill { font: 800 11px/1 var(--display); letter-spacing: .12em; padding: 5px 7px; border-radius: 4px; display: inline-flex; align-items: center; gap: 5px; background: var(--live); color: #fff; flex: 0 0 auto; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.2s steps(2) infinite; }
.tile__name { font: italic 800 14px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; text-shadow: 0 1px 3px rgba(0,0,0,.6); pointer-events: none; }
.chip { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); padding: 3px 8px; border-radius: 4px; flex: 0 0 auto; pointer-events: none; }
.tile__right { margin-left: auto; display: flex; gap: 4px; align-items: center; flex: 0 0 auto; }
.tile__ctrl { display: flex; gap: 4px; opacity: 0; transform: translateY(-4px); transition: opacity .15s, transform .15s; }
.tile:hover .tile__ctrl, .tile:focus-within .tile__ctrl { opacity: 1; transform: none; }
@media (hover: none) { .tile__ctrl { opacity: 1; transform: none; } }
.ibtn { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: rgba(8,10,14,.72); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.1); cursor: pointer; text-decoration: none; padding: 0; transition: background .15s; }
.ibtn:hover { background: rgba(30,36,46,.92); }
.ibtn svg { width: 16px; height: 16px; }

/* Κουμπί ήχου: πάντα ορατό, γιατί δείχνει κατάσταση */
.sound { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px 0 9px; border-radius: 999px; background: rgba(8,10,14,.72); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.12); font: 700 11px/1 var(--body); letter-spacing: .06em; cursor: pointer; }
.sound svg { width: 16px; height: 16px; }
.tile.has-audio .sound { background: var(--audio); color: #17120a; border-color: var(--audio); }
.tile.is-muted .sound { color: var(--muted); padding: 0 8px; }
.tile.is-muted .sound > span:not(.eq) { display: none; }
.tile.needs-tap .sound { background: var(--audio); color: #17120a; border-color: var(--audio); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--audio) 30%, transparent); } }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 3px; background: currentColor; border-radius: 1px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.4s; } .eq i:nth-child(3) { animation-delay: -.7s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }

@media (max-width: 700px) {
  .grid:not(.n1):not(.n2) .chip { display: none; }
  .grid:not(.n1):not(.n2) .tile__name { font-size: 11px; }
  .grid:not(.n1):not(.n2) .sound > span:not(.eq) { display: none; }
  .grid:not(.n1):not(.n2) .sound { padding: 0 8px; height: 28px; }
  .grid:not(.n1):not(.n2) .ibtn { width: 28px; height: 28px; }
  .grid:not(.n1):not(.n2) .tile__ui { padding: 6px; gap: 4px; }
  .grid:not(.n1):not(.n2) .pill { padding: 4px 5px; font-size: 9px; }
}

/* Κατάσταση χωρίς επιλογή */
.idle { aspect-ratio: 16 / 9; max-width: 100%; border-radius: 10px; border: 1px dashed var(--line); background: radial-gradient(ellipse at 50% 120%, rgba(255,46,62,.10), transparent 60%), var(--bg-2); display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 24px; }
.idle h2 { margin: 0; font: italic 800 clamp(24px, 3.6vw, 40px)/1.05 var(--display); letter-spacing: .01em; text-wrap: balance; }
.idle p { margin: 0; color: var(--muted); max-width: 36em; }
.idle__icon { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 64px; }
.idle__icon i { aspect-ratio: 16/9; border-radius: 3px; border: 1.5px solid var(--line); }
.idle__icon i:first-child { background: var(--live); border-color: var(--live); }

.foot .inner { padding-block: 22px 34px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 20; background: var(--surface-2); border: 1px solid var(--line); color: var(--fg); padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; box-shadow: 0 14px 40px rgba(0,0,0,.6); max-width: calc(100% - 32px); display: flex; align-items: center; gap: 8px; animation: rise .3s ease-out both; }
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--t, var(--live)); flex: 0 0 auto; }
@keyframes rise { from { transform: translate(-50%, 10px); opacity: 0; } }
@keyframes blink { 50% { opacity: .25; } }

@media (max-width: 600px) {
  .brand__word { font-size: 24px; } .brand__tag { display: none; }
  .brand__mark { width: 36px; height: 36px; } .brand { gap: 9px; }
  .count__n { font-size: 26px; }
  .theme { width: 72px; height: 36px; } .theme__thumb { width: 32px; height: 26px; } :root:not([data-theme="light"]) .theme__thumb { transform: translateX(30px); } .theme svg { width: 16px; height: 16px; }
  .strip__head p { display: none; }
  .strip ul { gap: 14px; }
  .ch { width: 76px; } .ch__ring { width: 66px; height: 66px; } .ch__img { font-size: 19px; }
  .tbtn .lbl { display: none; }
  .tbtn { padding: 7px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .theme__thumb, .ticker__track, .ch__ring::before, .pill::before, .ch.is-new, .tile, .eq i, .toast, .ch.shake, .tile.needs-tap .sound { animation: none; }
}
/* Στις μικρές οθόνες κρατάμε χώρο για το όνομα του καναλιού */
.grid.lay-grid.n4 .chip, .grid.lay-grid.n3 .chip, .grid.lay-focus .tile:not(.is-first) .chip { display: none; }
.grid.lay-focus .tile:not(.is-first) .tile__name { font-size: 12px; }

@media (max-width: 420px) {
  .bar .count__l { display: none; }
  .bar .inner { gap: 10px; }
  .brand__word { font-size: 21px; }
  .brand__mark { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) { body { transition: none; } }

/* Η σειρά λογοτύπων είναι πάντα «μαζεμένη». Όταν το πάνελ έχει ανοιχτά κανάλια, κρύβεται και το ticker. */
body.panel-on .ticker { display: none; }
body .strip__head { padding-top: 10px; }
body .strip ul { padding-block: 14px 12px; gap: 14px; }
body .ch { width: 68px; gap: 7px; }
body .ch__ring { width: 56px; height: 56px; padding: 2.5px; }
body .ch__gap { padding: 2px; }
body .ch__img { font-size: 16px; }
body .ch__badge { font-size: 8px; padding: 2px 4px; bottom: -5px; }
body .ch__slot, body .ch__add { width: 22px; height: 22px; font-size: 11px; top: -4px; right: -2px; }
body .ch__name { font-size: 11.5px; }
body .ch__v { display: none; }
body.panel-on main .inner { padding-top: 0; }
body.panel-on .tools { margin-bottom: 10px; }

/* Διακόπτης διάταξης στη μπάρα εργαλείων */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.seg button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; transition: background .15s, color .15s; }
.seg button svg { width: 18px; height: 18px; }
.seg button:hover { color: var(--fg); }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
@media (max-width: 600px) { .seg .lbl { display: none; } .seg button { padding: 0 8px; } }

/* Οθόνη που μόλις έκλεισε: κρυμμένη μέχρι να σβηστεί (δες retireTile στο app.js) */
.tile.is-retiring { display: none !important; }

@media (max-width: 600px) {
  .tabs button { padding: 0 10px; font-size: 11px; letter-spacing: .08em; }
}
body .teams { padding-top: 8px; }

/* Κανάλια εκτός αέρα: ορατά αλλά «σβηστά», χωρίς δαχτυλίδι και LIVE, δεν πατιούνται */
.ch.is-off { cursor: default; }
.ch.is-off .ch__ring { padding: 3px; }
.ch.is-off .ch__ring::before { background: var(--line); animation: none; }
.ch.is-off .ch__img { filter: grayscale(1); opacity: .45; }
.ch.is-off .ch__name { color: var(--muted); opacity: .7; }
.ch.is-off .ch__v { opacity: .7; }
.ch.is-off:hover .ch__ring { transform: none; }

/* Η σειρά λογοτύπων δεν κυλάει: όσα δεν χωράνε κρύβονται, και το δεξί άκρο ξεθωριάζει */
.strip ul { overflow: hidden; scroll-snap-type: none; }
.strip ul.is-overflow {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 150px), transparent calc(100% - 16px));
          mask-image: linear-gradient(to right, #000 calc(100% - 150px), transparent calc(100% - 16px));
}

/* Σε οθόνες αφής (κινητά/tablet) η σειρά κυλάει οριζόντια με το δάχτυλο */
@media (hover: none), (pointer: coarse), (max-width: 760px) {
  .strip ul { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; }
  .strip ul.is-overflow.at-end { -webkit-mask-image: none; mask-image: none; }
}

/* Κινητά: μικρότερο περιθώριο δεξιά-αριστερά (10px αντί για 16px) και header που δεν ξεχειλώνει */
@media (max-width: 600px) {
  .pad { padding-left: max(10px, env(safe-area-inset-left, 0px)); padding-right: max(10px, env(safe-area-inset-right, 0px)); }
  .strip ul { --edge: max(10px, env(safe-area-inset-left, 0px)); padding-right: max(10px, env(safe-area-inset-right, 0px)); }
  .bar .inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; }
  .hcenter { gap: 6px; }
}
html, body { overflow-x: clip; }
@media (max-width: 380px) { .brand__text { display: none; } }

/* Νομικά: 18+, συναίνεση YouTube, footer */
.ch__18 { position: absolute; top: -2px; left: -4px; z-index: 2; background: var(--bg); color: var(--fg); border: 1.5px solid var(--muted); font: 800 9px/1 var(--display); letter-spacing: .02em; padding: 2px 3px; border-radius: 5px; }
.ch.is-off .ch__18 { opacity: .6; }
.foot__about { max-width: 900px; }
.foot a { color: var(--fg); text-underline-offset: 2px; }
.consent { position: fixed; z-index: 30; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(620px, calc(100% - 20px)); background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: 0 18px 50px rgba(0,0,0,.55); display: grid; gap: 12px; animation: rise .3s ease-out both; }
.consent p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.consent p b { color: var(--fg); }
.consent a { color: var(--fg); }
.consent__btns { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.consent__yes { background: var(--live); color: #fff; border: 0; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 700; cursor: pointer; }
.consent__yes:hover { filter: brightness(1.08); }

/* Προσθήκη στην αρχική οθόνη (κινητά) */
.a2hs { position: fixed; z-index: 29; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(560px, calc(100% - 20px)); display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.55); animation: rise .3s ease-out both; }
.a2hs__icon { width: 44px; height: 44px; border-radius: 11px; flex: 0 0 auto; }
.a2hs__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.a2hs__txt b { color: var(--fg); font-size: 14px; }
.a2hs__share { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; color: #2f8cff; }
.a2hs__add { flex: 0 0 auto; background: var(--live); color: #fff; border: 0; border-radius: 9px; padding: 9px 14px; font-size: 13px; font-weight: 700; cursor: pointer; }
.a2hs__x { flex: 0 0 auto; align-self: flex-start; display: grid; place-items: center; width: 28px; height: 28px; background: none; border: 0; color: var(--muted); cursor: pointer; border-radius: 50%; }
.a2hs__x:hover { background: var(--surface); color: var(--fg); }

/* Κορδέλα «ΤΩΡΑ»: μικρότερη στα κινητά */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 600px) {
  .ticker__track { font-size: 11.5px; padding-block: 6px; gap: 28px; padding-left: 22px; }
  .ticker__tag { font-size: 11px; padding-right: 10px; padding-left: max(10px, env(safe-area-inset-left, 0px)); }
  .ticker__tag::after { right: -8px; width: 8px; }
}
