:root {
  /* Pro pop palette — deep near-black + electric cyan / cyan / laser purple */
  --bg: #07060d;
  --bg-elev: rgba(14, 12, 28, 0.78);
  --glass: rgba(16, 14, 32, 0.58);
  --glass-strong: rgba(10, 8, 22, 0.88);
  --stroke: rgba(255,255,255,0.14);
  --stroke-strong: rgba(255,255,255,0.26);
  --text: #f2f2f7;
  --muted: #c8c8d4;
  
  
  --neon-cyan: #19e6ff;
  --neon-teal: #19e6ff;
  --neon-purple: #8a2bff;
  --laser-purple: #8a2bff;
  --gold: #ffc83d; /* ONLY Top Rated + Fans' Choice */
  --neon-yellow: var(--gold);
  --accent: var(--neon-cyan);
  --accent2: var(--neon-cyan);
  --focus: var(--neon-cyan);
  --danger: #FF4D6D;
  --ok: #3DFF9A;
  
  --glow-primary: 0 0 24px rgba(25,230,255,.45);
  --glow-cyan: 0 0 22px rgba(25,230,255,.4);
  --glow-purple: 0 0 28px rgba(138,43,255,.4);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --shadow: 0 14px 44px rgba(0,0,0,.55);
  --shadow-soft: 0 8px 28px rgba(0,0,0,.4);
  --space: 8px;
  --font-ui: Inter, "SF Pro Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Arial Black", "Helvetica Neue", Impact, sans-serif;
  --tv-pad: clamp(16px, 2.2vw, 36px);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: var(--font-ui); }
body {
  background:
    radial-gradient(1200px 600px at 8% -12%, rgba(25,230,255,.16), transparent 58%),
    radial-gradient(900px 520px at 92% 0%, rgba(25,230,255,.10), transparent 55%),
    radial-gradient(800px 480px at 50% 110%, rgba(138,43,255,.12), transparent 50%),
    var(--bg);
  overflow-x: hidden;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
.hidden { display: none !important; }

img.logo-img { height: 42px; width: auto; display: block; }
.footer-logo { height: 28px; opacity: .9; }

button, .btn, .focusable, select, input, textarea {
  font-family: var(--font-ui);
  font-size: clamp(16px, 1.35vw, 18px);
  min-height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke-strong);
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  color: var(--text);
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
button:hover, .btn:hover { transform: translateY(-1px); }
button:focus, .btn:focus, .focusable:focus, select:focus, input:focus, textarea:focus,
.epg-cell:focus, .epg-ch:focus, .ad-bar:focus, .live-card:focus, .home-tile:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(25,230,255,.45), var(--glow-cyan), inset 0 1px 0 rgba(255,255,255,.28);
  transform: scale(1.04);
}
.btn.primary, button.primary {
  background: linear-gradient(180deg, #7af3ff, #19e6ff 45%, #0bb8d0);
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), var(--glow-primary), var(--shadow-soft);
  color: #041018;
  font-weight: 800;
}
.topbar {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  padding: calc(var(--space)*2) var(--tv-pad);
  background: linear-gradient(180deg, rgba(10,16,40,.92), rgba(10,16,40,.55));
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(20px);
  position: sticky; top: 0; z-index: 30;
}
.brand { display: flex; flex-direction: column; gap: 2px; }
.brand .tagline, #brand-tag { color: var(--muted); font-size: clamp(16px, 1.2vw, 16px); max-width: 52ch; }
.top-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.top-actions .nav-ico { width: 22px; height: 22px; vertical-align: -5px; margin-right: 6px; border-radius: 6px; }
.wallet { background: linear-gradient(180deg, rgba(168,85,247,.45), rgba(80,30,140,.45)); }

.view { padding: var(--tv-pad); min-height: calc(100vh - 88px); }
.view-title { font-family: var(--font-display); font-size: clamp(28px, 3vw, 44px); margin: 0 0 12px; letter-spacing: .02em; }
.lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); max-width: 62ch; }
.hint { color: var(--muted); font-size: max(16px, calc(16px * var(--text-scale))); font-weight: 600; }
.card-panel {
  background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--radius-lg);
  padding: 22px; margin: 18px 0; backdrop-filter: blur(18px); box-shadow: var(--shadow-soft);
}

/* Guide */
.guide-layout {
  display: grid;
  grid-template-columns: minmax(280px, 32vw) 1fr;
  gap: 14px;
  padding: 12px var(--tv-pad) 8px;
  height: calc(100vh - 170px);
  min-height: 640px;
}
@media (max-width: 960px) { .guide-layout { grid-template-columns: 1fr; } }
.pip {
  background: #000; border-radius: var(--radius-lg); overflow: hidden; position: relative;
  aspect-ratio: 16/9; box-shadow: var(--shadow); border: 1px solid var(--stroke);
}
#yt-player, #yt-player iframe { width: 100% !important; height: 100% !important; }
.pip-meta {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.88));
  font-size: clamp(16px, 1.4vw, 18px);
}
.epg-wrap {
  overflow: auto; border-radius: var(--radius-lg); border: 1px solid var(--stroke);
  background: var(--glass-strong); backdrop-filter: blur(22px); max-height: 70vh; box-shadow: var(--shadow);
}
.epg-times, .epg-row { display: grid; gap: 6px; min-width: 980px; padding: 6px; }
.epg-times { position: sticky; top: 0; z-index: 2; background: rgba(5,8,20,.92); }
.epg-corner, .epg-time, .epg-ch, .epg-cell {
  background: rgba(255,255,255,.04); border: 1px solid var(--stroke);
  border-radius: var(--radius-sm); padding: 12px; font-size: clamp(16px, 1.2vw, 16px);
}
.epg-time { color: var(--neon-yellow); font-weight: 700; text-align: center; }
.epg-ch { display: grid; grid-template-columns: 40px 1fr; gap: 8px; align-items: center; background: rgba(0,0,0,.25); }
.ch-icon { width: 40px; height: 40px; border-radius: 12px; }
.ch-num { font-family: var(--font-display); font-size: 1.35em; color: var(--neon-yellow); }
.ch-name { font-weight: 700; }
.ch-badge { font-size: .68em; text-transform: uppercase; letter-spacing: .06em; color: var(--accent2); }
.epg-cell { min-height: 72px; cursor: pointer; position: relative; overflow: hidden;
  background-size: cover; background-position: center; }
.epg-cell::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,12,32,.92), rgba(8,12,32,.55));
}
.epg-cell > * { position: relative; z-index: 1; }
.epg-cell.now { box-shadow: inset 0 0 0 2px var(--neon-cyan), var(--glow-cyan); border-color: var(--neon-cyan); }
.epg-cell.spotlight { box-shadow: inset 0 0 0 1px var(--neon-purple); }
.epg-cell.comedy { box-shadow: inset 0 0 0 1px #ffb020; }
.epg-cell.commercial, .epg-cell.grower { box-shadow: inset 0 0 0 1px var(--neon-teal); }
.epg-cell.live { box-shadow: inset 0 0 0 2px var(--danger); }
.now-tag {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  background: var(--neon-yellow); color: #111; font-size: 16px; font-weight: 800;
  padding: 3px 8px; border-radius: 999px;
}
.cell-label { display: block; line-height: 1.3; font-weight: 600; }

.ad-bar {
  margin-top: 14px; display: flex; gap: 16px; align-items: center;
  padding: 14px 18px; border-radius: var(--radius); border: 1px solid var(--stroke);
  background: linear-gradient(90deg, rgba(25,230,255,.18), rgba(61,232,255,.12));
  backdrop-filter: blur(16px); cursor: pointer; min-height: 84px;
}
.ad-bar .ad-thumb {
  width: 120px; height: 68px; border-radius: 12px; object-fit: cover; background: #111;
  box-shadow: var(--shadow-soft); flex: 0 0 auto;
}
.ad-bar .ad-copy { flex: 1; }
.ad-bar .ad-kicker { font-size: 16px; letter-spacing: .12em; text-transform: uppercase; color: var(--neon-yellow); font-weight: 800; }
.ad-bar h3 { margin: 2px 0; font-size: clamp(16px, 1.6vw, 22px); }
.ad-bar p { margin: 0; color: var(--muted); font-size: 16px; }

.ticker {
  margin-top: 12px; overflow: hidden; white-space: nowrap;
  border-radius: 999px; border: 1px solid var(--stroke); background: rgba(0,0,0,.35); padding: 8px 0;
}
#ticker-text { display: inline-block; padding-left: 100%; animation: tick 42s linear infinite; color: var(--neon-yellow); font-weight: 600; }
@keyframes tick { to { transform: translateX(-100%); } }
.disclaimer { color: var(--muted); font-size: 16px; margin-top: 10px; }

.clock-retro {
  font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent2);
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--stroke); background: rgba(0,0,0,.25);
}

/* Player chrome */
#app[data-view="player"] .guide-layout,
#app[data-view="player"] .ticker,
#app[data-view="player"] .disclaimer,
#app[data-view="player"] .ad-bar,
#app[data-view="player"] .site-footer { display: none; }
#app[data-view="player"] #view-guide { display: block !important; padding: 0; position: fixed; inset: 0; z-index: 1; pointer-events: none; }
#app[data-view="player"] #view-guide .pip {
  position: fixed; inset: 0; z-index: 1; border: none; border-radius: 0; aspect-ratio: auto; pointer-events: auto;
}
#app[data-view="player"] #view-guide .pip-meta,
#app[data-view="player"] #view-guide .epg-wrap { display: none; }
#app[data-view="player"] #view-player {
  display: block !important; position: fixed; inset: 0; z-index: 2; pointer-events: none; background: transparent; padding: 0;
}
#app[data-view="player"] #view-player .now-card,
#app[data-view="player"] #view-player .osd,
#app[data-view="player"] #view-player .spotlight-banner,
#app[data-view="player"] #view-player .channel-bug,
#app[data-view="player"] #view-player .upnext,
#app[data-view="player"] #view-player .vhs-play,
#app[data-view="player"] #lower-third,
#app[data-view="player"] #ad-fullscreen { pointer-events: auto; }

.osd {
  position: absolute; top: 7%; left: 4%;
  background: rgba(5,8,20,.7); backdrop-filter: blur(12px);
  padding: 14px 20px; border-radius: var(--radius); border: 1px solid var(--stroke);
  opacity: 0; transition: opacity .3s;
}
.osd.show { opacity: 1; }
.osd-ch { font-family: var(--font-display); font-size: clamp(48px, 7vw, 88px); line-height: 1; color: var(--neon-yellow); }
.osd-name { font-size: clamp(20px, 2.6vw, 32px); }
.channel-bug {
  position: absolute; top: 5%; right: 4%; width: 56px; height: 56px; border-radius: 16px;
  opacity: .92; filter: drop-shadow(0 6px 16px rgba(0,0,0,.5));
}
.vhs-play {
  position: absolute; top: 6%; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); letter-spacing: .2em; color: var(--danger);
  background: rgba(0,0,0,.45); padding: 6px 14px; border-radius: 8px; font-size: 16px;
  opacity: 0; transition: opacity .3s;
}
.vhs-play.show { opacity: .85; }
.spotlight-banner {
  position: absolute; top: 14%; right: 4%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  font-weight: 800; padding: 10px 16px; border-radius: 999px; letter-spacing: .04em;
}
.now-card {
  position: absolute; left: 3%; right: 3%; bottom: 4%;
  max-width: 880px; padding: 18px;
  background: var(--glass-strong); border: 1px solid var(--stroke); border-radius: var(--radius-lg);
  backdrop-filter: blur(18px); box-shadow: var(--shadow); display: grid; gap: 6px;
}
.np-artist { font-size: clamp(22px, 2.8vw, 34px); font-weight: 800; }
.np-title { color: var(--muted); }
.now-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.rating-box { margin-top: 8px; }
.stars button { background: transparent; border: none; box-shadow: none; font-size: 30px; color: #445; min-height: 40px; padding: 0 4px; }
.stars button.on { color: var(--neon-yellow); }
.upnext {
  position: absolute; right: 3%; bottom: 22%; width: min(360px, 40vw);
  background: var(--glass-strong); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 12px; backdrop-filter: blur(16px); display: flex; gap: 12px; align-items: center;
}
.upnext img { width: 96px; height: 54px; border-radius: 10px; object-fit: cover; }
.upnext.hidden { display: none !important; }

.lower-third {
  position: absolute; left: 4%; right: 4%; bottom: 18%;
  max-width: 720px; padding: 14px 16px; border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(25,230,255,.85), rgba(20,20,60,.85));
  border: 1px solid var(--stroke-strong); display: flex; gap: 12px; align-items: center;
}
.lower-third.hidden { display: none !important; }

/* Ad fullscreen / QR */
.ad-fs {
  position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.72);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.ad-fs.hidden { display: none !important; }
.ad-fs-card {
  width: min(920px, 96vw); background: var(--glass-strong); border: 1px solid var(--stroke);
  border-radius: var(--radius-lg); padding: 28px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px;
  backdrop-filter: blur(24px); box-shadow: var(--shadow);
}
@media (max-width: 800px) { .ad-fs-card { grid-template-columns: 1fr; } }
.ad-fs-card h2 { margin: 0 0 8px; font-size: clamp(26px, 3vw, 40px); }
.ad-creative {
  aspect-ratio: 16/9; border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: clamp(28px, 4vw, 48px); text-align: center;
  background: linear-gradient(135deg, #19e6ff, #3DE8FF 60%, #FFE566); color: #0a1440;
}
.qr-wrap { text-align: center; }
.qr-wrap canvas { width: 180px; height: 180px; border-radius: 12px; background: #fff; padding: 8px; }
.skip-btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Bumper / static — effects only here */
.bumper {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  background: #000; color: #fff; pointer-events: none;
}
.bumper.hidden { display: none !important; }
.bumper-inner { text-align: center; }
.bumper-logo { font-family: var(--font-display); font-size: clamp(40px, 8vw, 96px); letter-spacing: .08em;
  background: linear-gradient(90deg, #19e6ff, #FFE566, #3DE8FF); -webkit-background-clip: text; color: transparent; }
.scanlines::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.03), rgba(255,255,255,.03) 1px, transparent 2px, transparent 4px);
  mix-blend-mode: overlay;
}
.static-burst {
  position: fixed; inset: 0; z-index: 59; opacity: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  transition: opacity .12s;
}
.static-burst.show { opacity: .55; }
.reduce-fx .scanlines::after, .reduce-fx .static-burst, .reduce-fx #ticker-text { animation: none !important; opacity: 0 !important; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Info panel */
.info-panel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; max-height: 72vh; overflow: auto;
  background: var(--glass-strong); border-top: 2px solid var(--neon-yellow);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; backdrop-filter: blur(22px);
  transform: translateY(0); transition: transform .28s ease;
}
.info-panel.hidden { transform: translateY(110%); display: block !important; visibility: hidden; pointer-events: none; }
.info-panel:not(.hidden) { visibility: visible; }
.info-panel-inner { padding: var(--tv-pad); max-width: 1100px; margin: 0 auto; }
.info-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.info-head h2 { margin: 0; font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 42px); color: var(--neon-yellow); }
.info-meta { color: var(--muted); margin: 8px 0 12px; }
.info-bio { line-height: 1.5; max-width: 80ch; }
.info-members { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.member-chip { text-align: left; min-width: 160px; }
.member-chip .role { display: block; color: var(--accent2); font-size: .85em; }
.member-chip .years { display: block; color: var(--muted); font-size: .8em; }
.member-profile { margin-top: 16px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--accent); background: rgba(0,0,0,.25); }
.band-link .on-net { background: var(--ok); color: #042; font-size: 16px; font-weight: 800; padding: 2px 6px; border-radius: 6px; margin-left: 6px; }

.live-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 16px 0; }
.live-card { text-align: left; border-radius: var(--radius); }
.live-badge { background: var(--danger); color: #fff; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.soon-badge, .sample-badge, .preview-badge { background: #456; padding: 2px 8px; border-radius: 999px; }
.preview-badge { background: rgba(255,229,102,.2); color: var(--neon-yellow); }
.price { color: var(--neon-yellow); font-weight: 700; }
.ticket-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chart-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.chart-table th, .chart-table td { border-bottom: 1px solid var(--stroke); padding: 12px; text-align: left; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,.75); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal-card { background: var(--glass-strong); border: 1px solid var(--neon-yellow); padding: 24px; max-width: 520px; width: 92%; border-radius: var(--radius-lg); backdrop-filter: blur(20px); }
.modal-actions { display: flex; gap: 12px; margin-top: 16px; }

#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: rgba(10,14,30,.92); color: #fff; padding: 12px 18px; border-radius: 999px;
  border: 1px solid var(--stroke); transition: transform .25s; z-index: 70; max-width: 90vw;
}
#toast.show { transform: translateX(-50%) translateY(0); }

.skeleton { background: linear-gradient(90deg, #1a2140, #2a3358, #1a2140); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0; } }

.site-footer { margin-top: 28px; padding: 28px var(--tv-pad) 40px; border-top: 1px solid var(--stroke); color: var(--muted); }
.footer-inner { display: grid; gap: 12px; max-width: 1100px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 14px; }
.page-main { max-width: 820px; margin: 24px auto; padding: 16px var(--tv-pad) 48px; }
.page-main label { display: grid; gap: 6px; margin-bottom: 12px; }
.page-main input, .page-main textarea, .page-main select { width: 100%; }

@media (min-width: 1280px) { body { font-size: 17px; } }
@media (min-width: 1920px) { body { font-size: 18px; } .epg-cell { min-height: 80px; } }

/* Home rows */
.hero h1 { font-family: var(--font-display); font-size: clamp(32px, 4vw, 56px); margin: 8px 0; }
#home-rows { display: grid; gap: 22px; margin-top: 18px; }
.home-row h2 { margin: 0 0 10px; font-size: clamp(18px, 2vw, 24px); }
.home-scroller { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.home-tile {
  flex: 0 0 220px; scroll-snap-align: start; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--stroke); background: var(--glass); text-align: left; padding: 0;
  min-height: 148px; position: relative;
}
.home-tile img { width: 100%; height: 120px; object-fit: cover; display: block; }
.home-tile .cap { padding: 8px 10px 12px; font-weight: 700; font-size: 16px; }
.pip-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  background: #0a0a12;
}
#yt-player { position: relative; z-index: 1; }
.epg-ch .ch-icon { width: 56px; height: 56px; border-radius: 16px; }
.epg-ch { grid-template-columns: 56px 1fr; }


.host-bumper-inner { text-align: center; }
.parental-panel label { display: grid; gap: 6px; margin-bottom: 12px; }
.live-tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.live-tier { border-radius: var(--radius); border: 1px solid var(--stroke); padding: 16px; background: var(--glass); }
.live-tier h3 { margin-top: 0; color: var(--neon-yellow); }


/* Riff Mode — large MST3K-style character row */
.riff-stage {
  position: absolute; right: 2%; bottom: 2%; z-index: 8;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  pointer-events: none; width: min(52vw, 640px);
}
.riff-stage.hidden { display: none !important; }
.riff-hosts-row { display: flex; align-items: flex-end; justify-content: flex-end; gap: 8px; }
.riff-host {
  height: clamp(200px, 24vh, 280px); width: auto; min-width: 120px;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.55));
  transform-origin: bottom center;
}
.riff-host svg { height: 100%; width: auto; display: block; }
.riff-host.talking { animation: riff-bounce .45s ease-in-out infinite alternate; }
@keyframes riff-bounce {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-10px) scale(1.03); }
}
.riff-bubble {
  max-width: min(480px, 90%);
  background: #fff; color: #111; border-radius: 22px; padding: 14px 18px;
  font-size: clamp(20px, 2.3vw, 28px); font-weight: 800; line-height: 1.25;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(12px); transition: opacity .2s, transform .2s;
  border: 3px solid #111;
}
.riff-bubble.show { opacity: 1; transform: translateY(0); }
.riff-bubble.talk { animation: bubble-pop .35s ease-out; }
@keyframes bubble-pop {
  0% { transform: scale(.92) translateY(8px); }
  70% { transform: scale(1.04) translateY(0); }
  100% { transform: scale(1); }
}
.riff-bubble .who { display: block; font-size: .7em; color: #6B21A8; margin-bottom: 4px; letter-spacing: .04em; text-transform: uppercase; }
.riff-bubble.bleep { background: #FFE566; }
.bumper-hosts .riff-host { height: clamp(180px, 28vh, 300px); }
.host-bumper {
  position: fixed; inset: 0; z-index: 58; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.85); color: #fff;
}
.host-bumper.hidden { display: none !important; }
.host-bumper-inner { text-align: center; }

/* Fan Picks + Fans' Choice Live */
.callout.fan-picks-callout {
  border-radius: 20px; padding: 18px 20px; margin: 16px 0 22px;
  background: linear-gradient(135deg, rgba(25,230,255,.18), rgba(45,212,191,.12));
  border: 1px solid rgba(255,255,255,.18);
}
.fans-choice-banner {
  background: rgba(255,229,102,.15); border: 1px solid rgba(255,229,102,.35);
  border-radius: 14px; padding: 12px 14px; margin: 0 0 14px; font-size: 16px;
}
.fan-vote-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 10px 0; padding: 10px 12px; border-radius: 14px;
  background: rgba(18,28,64,.85); border: 1px solid rgba(255,255,255,.15);
}
.fan-vote-label { font-weight: 800; color: #FFE566; letter-spacing: .04em; text-transform: uppercase; font-size: 16px; }
.fans-choice-live { margin-top: 28px; }

/* Kid Profile chrome */
body.kid-profile .wallet-safe,
body.kid-profile #btn-wallet,
body.kid-profile #btn-tip,
body.kid-profile #btn-suggest,
body.kid-profile #btn-adfree,
body.kid-profile #btn-live-stage { display: none !important; }
body.kid-profile::after {
  content: "Kids Profile";
  position: fixed; top: 10px; right: 14px; z-index: 40;
  background: #22c55e; color: #04120a; font-weight: 800; font-size: 16px;
  padding: 6px 10px; border-radius: 999px; pointer-events: none;
}

/* Force larger riff hosts (TV couch distance) */
.riff-host {
  height: clamp(220px, 25vh, 300px) !important;
  min-width: 130px;
}
.riff-bubble {
  font-size: clamp(20px, 2.4vw, 28px) !important;
  padding: 16px 20px !important;
}

/* Artist Dashboard */
.artist-login, .artist-app { max-width: 960px; margin: 0 auto; }
.artist-login form { display: grid; gap: 12px; max-width: 420px; }
.artist-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.artist-nav button {
  border-radius: 999px; padding: 10px 16px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06); color: #fff; font-weight: 700; cursor: pointer;
}
.artist-nav button.active { background: #19e6ff; border-color: transparent; }
.artist-panel { border-radius: 20px; padding: 20px; background: rgba(18,28,64,.75); border: 1px solid rgba(255,255,255,.12); }
.artist-table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 16px; }
.artist-table th, .artist-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid rgba(255,255,255,.1); }
.demo-badge {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px;
  background: rgba(25,230,255,.2); color: var(--neon-cyan); border: 1px solid rgba(25,230,255,.45);
  font-size: 16px; font-weight: 800; vertical-align: middle;
}
.demo-badge.fans-choice, .top-rated-badge {
  background: rgba(255,200,61,.2); color: var(--gold); border: 1px solid rgba(255,200,61,.5);
}
.earn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; list-style: none; padding: 0; }
.earn-grid li { background: rgba(0,0,0,.25); border-radius: 14px; padding: 14px; display: grid; gap: 6px; }
.earn-grid span { font-size: 22px; font-weight: 800; color: #FFE566; }
.artist-app-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.error { color: #f88; min-height: 1.2em; }


/* Pro polish — gold ONLY for Top Rated + Fans' Choice */
.chart-title, .top-rated-badge, .fans-choice-banner, .demo-badge.fans-choice,
.fans-choice-live h2, [data-gold="1"] {
  color: var(--gold) !important;
}
.fans-choice-banner {
  background: rgba(255,200,61,.12) !important;
  border-color: rgba(255,200,61,.4) !important;
  color: var(--text) !important;
}
.fans-choice-banner strong { color: var(--gold); }

/* Selected tile / EPG now-playing cyan glow */
.epg-cell.now, .epg-cell.playing, .home-tile.active, .ch-icon.selected {
  box-shadow: 0 0 0 2px var(--neon-cyan), var(--glow-cyan);
  border-color: var(--neon-cyan);
}
.epg-cell {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-sm);
}
.now-card, .osd, .info-panel, .artist-panel, .callout, .pip-frame {
  background: var(--glass-strong);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--stroke-strong);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.12);
}

/* Glossy channel icon tiles */
.ch-icon, .epg-ch .ch-icon, .kid-tile img {
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(25,230,255,.35), rgba(138,43,255,.45) 50%, rgba(25,230,255,.25));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 20px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.2);
}

/* Logo / brand cyan accent */
.brand-mark, .logo-glow { filter: drop-shadow(0 0 12px rgba(25,230,255,.55)); }

/* WCAG-ish TV contrast helpers */
.muted, .hint { color: var(--muted); }
.lead { color: var(--text); }

/* Keep gold off primary UI chrome */
.osd-ch { color: var(--neon-cyan); text-shadow: 0 0 18px rgba(25,230,255,.5); }


/* ===== Fire TV density: Home featured hero + full rows ===== */
.view-home { padding: 0 0 24px; min-height: calc(100vh - 72px); }
.hero-featured {
  position: relative;
  width: 100%;
  height: clamp(300px, 36vh, 400px);
  border-radius: 0 0 28px 28px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #0a0814;
  border-bottom: 1px solid var(--stroke);
}
.hero-still {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transform: scale(1.04);
  filter: saturate(1.08) contrast(1.05);
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,6,13,.92) 0%, rgba(7,6,13,.55) 42%, rgba(7,6,13,.15) 70%, transparent 100%),
    linear-gradient(0deg, rgba(7,6,13,.85) 0%, transparent 45%);
}
.hero-copy {
  position: relative; z-index: 2;
  max-width: 720px;
  padding: clamp(28px, 4vh, 56px) var(--tv-pad);
  display: grid; gap: 8px;
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 52px);
  margin: 0; line-height: 1.05;
  text-shadow: 0 4px 24px rgba(0,0,0,.55);
}
.hero-channel {
  margin: 0; color: var(--neon-cyan); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: 16px;
}
.home-rows, #home-rows {
  display: grid; gap: 12px;
  padding: 4px var(--tv-pad) 20px;
}
.home-row h2 {
  margin: 0 0 10px;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 850;
}
.home-row-gold h2 { color: var(--gold) !important; }
.home-scroller {
  display: flex; gap: 14px;
  overflow-x: auto; padding: 6px 4px 14px;
  scroll-snap-type: x mandatory;
}
.home-tile {
  flex: 0 0 clamp(170px, 13.5vw, 220px);
  scroll-snap-align: start;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--glass-strong);
  text-align: left; padding: 0;
  min-height: 140px; position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}
.home-tile img, .home-tile .tile-ph {
  width: 100%; height: 100px; object-fit: cover; display: block;
}
.home-tile .tile-ph {
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(25,230,255,.35), rgba(138,43,255,.5));
  font-weight: 900; font-size: 22px; color: #fff;
}
.home-tile .cap { padding: 8px 10px 2px; font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-tile .tile-meta { padding: 0 10px 10px; color: var(--muted); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-tile.selected, .home-tile:focus {
  transform: scale(1.08);
  z-index: 2;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(25,230,255,.5), var(--glow-cyan), var(--shadow);
}

/* ===== Guide: fill viewport with all channel rows ===== */
#view-guide {
  display: flex; flex-direction: column;
  min-height: calc(100vh - 72px);
}
#view-guide .guide-layout {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(280px, 32vw) 1fr;
  gap: 12px;
  padding: 10px var(--tv-pad) 6px;
  min-height: 0;
}
#view-guide .pip {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--stroke-strong);
  background: #090814;
  position: relative;
  min-height: 220px;
  height: 42%;
  max-height: 360px;
  box-shadow: var(--shadow);
}
#view-guide .epg-wrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: var(--glass);
  backdrop-filter: blur(16px);
  min-height: 0;
}
#view-guide .epg-times, #view-guide .epg-row {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 4px 8px;
  align-items: stretch;
}
#view-guide .epg-ch, #view-guide .epg-cell, #view-guide .epg-time, #view-guide .epg-corner {
  min-height: clamp(44px, 5.2vh, 62px);
  font-size: clamp(16px, 1.05vw, 15px);
}
#view-guide .epg-ch {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
}
#view-guide .epg-ch .ch-icon { width: 44px; height: 44px; border-radius: 14px; }
#view-guide .ad-bar {
  margin: 8px var(--tv-pad);
  min-height: 64px;
  border-radius: 16px;
}
#view-guide .ticker { margin: 0 var(--tv-pad) 6px; opacity: .85; font-size: 16px; }
#view-guide .now-line {
  position: absolute; top: 0; bottom: 0; width: 2px;
  background: var(--neon-cyan);
  box-shadow: var(--glow-primary);
  z-index: 5; pointer-events: none;
}

.epg-time, .epg-corner { color: var(--muted) !important; }
.epg-time { font-variant-numeric: tabular-nums; }

.guide-left { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.guide-side {
  flex: 1 1 auto; min-height: 140px; overflow: auto;
  border-radius: 18px; padding: 12px 14px;
  background: var(--glass-strong); border: 1px solid var(--stroke-strong);
}
.guide-side-title { margin: 0 0 8px; color: var(--neon-cyan); font-size: 16px; letter-spacing: .04em; text-transform: uppercase; }
.guide-upnext { display: grid; gap: 8px; }
.guide-upnext .upn {
  display: grid; grid-template-columns: 64px 1fr; gap: 8px; align-items: center;
  text-align: left; background: transparent; border: 1px solid var(--stroke); border-radius: 12px; padding: 6px;
}
.guide-upnext .upn img { width: 64px; height: 40px; object-fit: cover; border-radius: 8px; }
.guide-fanvote { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--stroke); }
.home-tile.branded .tile-brand {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 100px;
  background: linear-gradient(145deg, rgba(25,230,255,.4), rgba(138,43,255,.5));
}
.home-tile.branded .tile-brand img { width: 48px; height: 48px; border-radius: 14px; }


/* EPG equal-height rows (no overlap / drift) */
#view-guide .epg-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: auto;
}
#view-guide .epg-times {
  flex: 0 0 34px;
  height: 34px;
  align-items: stretch;
}
#view-guide .epg-row {
  flex: 1 1 0;
  min-height: 42px;
  align-items: stretch;
  margin: 0;
}
#view-guide .epg-ch,
#view-guide .epg-cell,
#view-guide .epg-time,
#view-guide .epg-corner {
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  overflow: hidden;
}
#view-guide .epg-ch .ch-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
#view-guide .guide-left {
  display: grid;
  grid-template-rows: minmax(180px, 32%) 1fr;
  gap: 10px;
  min-height: 0;
  height: 100%;
}
#view-guide .guide-left .pip {
  height: auto;
  max-height: none;
  min-height: 160px;
}
#view-guide .guide-side {
  height: auto;
  min-height: 0;
}


/* ===== Display scale (Telegram-style) — CSS variables ===== */
:root {
  --text-scale: 1; /* JS sets 1.0–1.25 */
  --ui-scale: 1;   /* JS sets 0.9–1.15 */
  --font-body: clamp(16px, calc(20px * var(--text-scale)), 25px);
  --font-guide: clamp(16px, calc(18px * var(--text-scale)), 22px);
  --font-tile: clamp(16px, calc(18px * var(--text-scale)), 22px);
  --font-h1: clamp(28px, calc(34px * var(--text-scale)), 42px);
  --font-h2: clamp(20px, calc(24px * var(--text-scale)), 28px);
  --icon-size: clamp(36px, calc(44px * var(--ui-scale)), 52px);
  --tile-w: clamp(160px, calc(190px * var(--ui-scale)), 220px);
  --tile-img-h: clamp(88px, calc(100px * var(--ui-scale)), 115px);
  --btn-min-h: clamp(44px, calc(48px * var(--ui-scale)), 56px);
  --focus-ring: 4px;
}

/* Hard floor: nothing below 16px at 100% text-scale */
html, body, button, .btn, .focusable, input, select, textarea,
.hint, .muted, .tile-meta, .disclaimer, .pip-meta, .ch-badge, .ad-kicker,
.epg-time, .epg-corner, .cell-label, .np-title, .ticker, .setup-card,
.display-panel, .display-panel p, .display-panel label, .setup-pane p,
.up .hint, .upnext-item .hint, .guide-upnext .hint, .fan-vote-bar .hint,
.topbar .hint, .hero-channel, .tile-brand span {
  font-size: max(16px, 1em);
}
.hint, .muted, .tile-meta, .disclaimer, .pip-meta, .ch-badge, .ad-kicker,
.epg-time, .epg-corner, .up .hint, .guide-upnext .hint, .topbar span.hint {
  font-size: max(16px, calc(16px * var(--text-scale))) !important;
  font-weight: 600 !important;
  color: var(--muted);
}

html { font-size: var(--font-body); }
body {
  font-size: var(--font-body);
  font-weight: 600;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
h1, .hero-copy h1 { font-size: var(--font-h1); font-weight: 800; color: var(--text); }
h2, .home-row h2 { font-size: var(--font-h2); font-weight: 800; color: var(--text); }
h3 { font-size: calc(20px * var(--text-scale)); font-weight: 700; color: var(--text); }
.hint, .muted, .tile-meta, .disclaimer, .pip-meta, .ch-badge {
  color: var(--muted) !important;
  font-weight: 600;
}
.ad-kicker { color: var(--neon-cyan) !important; font-weight: 800; } /* Sponsored = cyan, not gold */
button, .btn, .focusable, select, input, textarea {
  font-size: calc(18px * var(--text-scale));
  font-weight: 700;
  min-height: var(--btn-min-h);
}
.btn.primary, button.primary {
  color: #041018 !important;
  background: linear-gradient(180deg, #7af3ff, #19e6ff 50%, #12b4cc) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 0 22px rgba(25,230,255,.4), var(--shadow-soft);
}
button:focus, .btn:focus, .focusable:focus, select:focus, input:focus, textarea:focus,
.epg-cell:focus, .epg-ch:focus, .ad-bar:focus, .live-card:focus, .home-tile:focus,
.display-panel .focusable:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 var(--focus-ring) rgba(25,230,255,.55), 0 0 22px rgba(25,230,255,.35);
}
.home-tile {
  flex-basis: var(--tile-w) !important;
  min-width: calc(140px * var(--ui-scale));
}
.home-tile .cap { font-size: var(--font-tile); font-weight: 800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-tile .tile-meta { font-size: calc(16px * var(--text-scale)); font-weight: 600; }
.home-tile img, .home-tile .tile-ph, .home-tile .tile-brand {
  height: var(--tile-img-h) !important;
}
.ch-icon, .epg-ch .ch-icon {
  width: var(--icon-size) !important;
  height: var(--icon-size) !important;
}
#view-guide .epg-ch, #view-guide .epg-cell, #view-guide .epg-time, #view-guide .epg-corner {
  font-size: var(--font-guide);
  font-weight: 700;
}
#view-guide .epg-cell .cell-label,
#view-guide .epg-cell span,
.cell span {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: block; max-width: 100%;
}

/* Display settings panel */
.display-panel {
  position: fixed; right: 24px; top: 80px; z-index: 80;
  width: min(420px, 92vw);
  padding: 20px;
  border-radius: 20px;
  background: rgba(10,8,22,.94);
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 20px 60px rgba(0,0,0,.55), 0 0 30px rgba(25,230,255,.15);
  backdrop-filter: blur(20px);
}
.display-panel.hidden { display: none !important; }
.display-panel h2 { margin: 0 0 6px; }
.display-panel .preview-line {
  margin: 12px 0 18px; padding: 12px 14px; border-radius: 14px;
  background: rgba(25,230,255,.08); border: 1px solid rgba(25,230,255,.25);
  font-size: var(--font-body); font-weight: 700; color: var(--text);
}
.display-panel label {
  display: grid; gap: 8px; margin-bottom: 16px; font-weight: 700; color: var(--text);
}
.display-panel input[type="range"] {
  width: 100%; accent-color: #19e6ff; min-height: 44px;
}
.display-panel .scale-val { color: var(--neon-cyan); font-weight: 800; }
.display-panel .icon-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.display-panel .icon-steps button {
  border-radius: 12px; font-size: calc(16px * var(--text-scale));
  padding: 10px 6px; min-height: 48px;
}
.display-panel .icon-steps button.active {
  background: linear-gradient(180deg, #7af3ff, #19e6ff);
  color: #041018; border-color: transparent;
}
.display-panel .panel-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }

/* First-launch setup */
.setup-screen {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(7,6,13,.92);
  backdrop-filter: blur(12px);
}
.setup-screen.hidden { display: none !important; }
.setup-card {
  width: min(640px, 96vw);
  max-height: 92vh; overflow: auto;
  border-radius: 24px; padding: 28px;
  background: rgba(12,10,28,.96);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 24px 80px rgba(0,0,0,.55), 0 0 40px rgba(25,230,255,.12);
}
.setup-steps { display: flex; gap: 10px; margin-bottom: 18px; }
.setup-steps span {
  width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center;
  font-weight: 800; border: 2px solid rgba(255,255,255,.2); color: var(--muted);
}
.setup-steps span.on {
  background: linear-gradient(180deg, #7af3ff, #19e6ff); color: #041018; border-color: transparent;
}
.setup-preview {
  margin: 14px 0 18px; padding: 14px 16px; border-radius: 14px;
  background: rgba(25,230,255,.1); border: 1px solid rgba(25,230,255,.3);
  font-size: var(--font-body); font-weight: 700;
}
.setup-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }
.setup-check { display: flex; align-items: center; gap: 10px; font-weight: 700; margin: 12px 0; }
.setup-pane label { display: grid; gap: 8px; margin-bottom: 14px; font-weight: 700; }
.setup-pane input[type="range"] { width: 100%; accent-color: #19e6ff; min-height: 44px; }
.setup-pane .icon-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.setup-pane .icon-steps button.active {
  background: linear-gradient(180deg, #7af3ff, #19e6ff); color: #041018; border-color: transparent;
}
body.setup-open #preview-gate { display: none !important; }

/* Keep chrome designed at max Display settings */
.topbar {
  flex-wrap: nowrap !important;
  gap: 10px;
  min-height: 64px;
  overflow-x: auto;
}
.topbar button, .topbar .btn {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0 14px;
  min-height: var(--btn-min-h);
  font-size: clamp(16px, calc(17px * var(--text-scale)), 20px);
}
.display-panel .icon-steps { grid-template-columns: repeat(3, 1fr); }
.setup-pane .icon-steps { grid-template-columns: repeat(3, 1fr); }
#view-guide .epg-ch .ch-icon { width: var(--icon-size); height: var(--icon-size); }
#view-guide .epg-row { min-height: 0; }
body.large-text .home-tile { flex-basis: var(--tile-w) !important; }


/* Guide typography scales with Display text size */
#view-guide .epg-cell,
#view-guide .epg-cell .cell-label,
#view-guide .epg-cell span,
.grid-panel .cell,
.grid-panel .cell span {
  font-size: max(16px, calc(18px * var(--text-scale))) !important;
  font-weight: 700 !important;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#view-guide .epg-ch,
#view-guide .epg-ch .ch-name,
#view-guide .epg-ch .ch-num,
.grid-panel .ch,
.grid-panel .ch-txt {
  font-size: max(16px, calc(17px * var(--text-scale))) !important;
  font-weight: 800 !important;
}
#view-guide .epg-time,
#view-guide .epg-corner,
.grid-panel .time,
.grid-panel .corner {
  font-size: max(16px, calc(16px * var(--text-scale))) !important;
  font-weight: 700 !important;
}
#view-guide .guide-side-title,
#view-guide .guide-side h3,
.side h3,
.side .hint,
.up .hint,
.guide-upnext .hint,
.guide-fanvote .hint,
#view-guide .ad-kicker,
#view-guide .ticker,
.topbar .hint,
.topbar span[style] {
  font-size: max(16px, calc(16px * var(--text-scale))) !important;
  font-weight: 600 !important;
}
#view-guide .pip-meta,
#view-guide .np-title,
#view-guide .np-artist {
  font-size: max(16px, calc(18px * var(--text-scale))) !important;
  font-weight: 700;
}
/* Rows grow with text; scroll whole rows if needed */
#view-guide .epg-wrap {
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
}
#view-guide .epg-times { scroll-snap-align: start; flex: 0 0 auto; }
#view-guide .epg-row {
  scroll-snap-align: start;
  flex: 0 0 auto;
  min-height: max(42px, calc(48px * var(--text-scale)));
  height: auto;
}
#view-guide .epg-ch,
#view-guide .epg-cell {
  min-height: max(42px, calc(48px * var(--text-scale)));
  height: 100%;
}

.display-panel p.hint,
.display-panel .hint,
.setup-pane p.hint,
.setup-pane .hint,
.setup-card .hint {
  font-size: max(16px, calc(16px * var(--text-scale))) !important;
  font-weight: 600 !important;
  color: var(--muted) !important;
  line-height: 1.35;
}


/* Guide channel column: full names at all text scales */
#view-guide .epg-times,
#view-guide .epg-row {
  grid-template-columns: minmax(220px, calc(220px + 120px * (var(--text-scale) - 1) / 0.25)) repeat(6, minmax(0, 1fr)) !important;
}
#view-guide .epg-ch {
  display: grid !important;
  grid-template-columns: var(--icon-size) 1fr !important;
  grid-template-rows: auto auto;
  align-content: center !important;
  align-items: center !important;
  gap: 4px 8px !important;
  padding: 6px 8px !important;
}
#view-guide .epg-ch .ch-icon {
  grid-row: 1 / span 2;
  align-self: center;
}
#view-guide .epg-ch .ch-num {
  display: block;
  font-size: max(16px, calc(15px * var(--text-scale))) !important;
  font-weight: 800 !important;
  color: var(--neon-cyan) !important;
  line-height: 1.1;
  white-space: nowrap;
}
#view-guide .epg-ch .ch-name {
  display: block;
  font-size: max(16px, calc(17px * var(--text-scale))) !important;
  font-weight: 800 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  line-height: 1.15;
  word-break: break-word;
}
#view-guide .epg-ch .ch-badge { display: none; } /* keep column clean */
#view-guide .epg-cell {
  display: flex !important;
  align-items: center !important; /* vertical center titles */
  justify-content: flex-start !important;
}
#view-guide .epg-cell .cell-label,
#view-guide .epg-cell span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
  line-height: 1.2;
  font-size: max(16px, calc(18px * var(--text-scale))) !important;
}
/* Up Next + Sponsored match grid scale */
#view-guide .guide-side-title,
#view-guide .guide-side h3 {
  font-size: max(16px, calc(17px * var(--text-scale))) !important;
  font-weight: 800 !important;
}
#view-guide .guide-upnext .upn strong,
#view-guide .guide-upnext strong {
  font-size: max(16px, calc(18px * var(--text-scale))) !important;
  font-weight: 800 !important;
}
#view-guide .guide-upnext .hint,
#view-guide .guide-fanvote,
#view-guide .guide-fanvote .hint,
#view-guide .ad-bar,
#view-guide .ad-bar p,
#view-guide .ad-bar h3,
#view-guide .ad-kicker,
#view-guide .ticker {
  font-size: max(16px, calc(16px * var(--text-scale))) !important;
  font-weight: 600 !important;
}
#view-guide .ad-bar h3 {
  font-size: max(16px, calc(18px * var(--text-scale))) !important;
  font-weight: 800 !important;
}

#view-guide .epg-times.epg-cols,
#view-guide .epg-row.epg-cols,
#view-guide .epg-times,
#view-guide .epg-row {
  grid-template-columns: minmax(220px, calc(220px + 120px * (var(--text-scale) - 1) / 0.25)) repeat(6, minmax(0, 1fr)) !important;
}


/* =====================================================================
   DEVICE-AWARE LAYOUT (js/device.js sets html.device-{phone|tablet|tv|desktop}
   and html.layout-phone for phones / narrow non-TV screens).
   Everything below only applies to phones; TV + desktop are untouched.
   ===================================================================== */

/* Phone nav pieces are hidden everywhere except the phone layout */
.m-burger, .m-tabs-wrap, .m-drawer, .m-scrim { display: none; }
.m-drawer[hidden], .m-scrim[hidden] { display: none !important; }

/* TV: D-pad focus rings stay as designed above (cyan glow), and stay visible always */
html.device-tv .home-tile:focus, html.device-tv .epg-cell:focus { outline: none; }
/* Desktop: mouse hover lift only where a real hover pointer exists */
html.layout-phone button:hover, html.layout-phone .btn:hover { transform: none; }

/* No-JS safety net: narrow screens still stop the nav from eating the page */
@media (max-width: 700px) {
  html:not(.device-ready) .topbar { flex-wrap: wrap !important; }
  html:not(.device-ready) .top-actions { flex-wrap: nowrap; overflow-x: auto; width: 100%; }
}

/* ---------- Phone: top bar = logo + hamburger, then swipeable tabs ---------- */
html.layout-phone .topbar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center;
  justify-content: space-between;
  gap: 0 8px !important;
  min-height: 0;
  overflow: visible !important;
  padding: calc(6px + env(safe-area-inset-top, 0px)) 12px 0 !important;
  background: rgba(7,6,13,.97) !important;
  position: sticky; top: 0; z-index: 60;
}
html.layout-phone .topbar > .top-actions,
html.layout-phone .topbar > nav.top-actions,
html.layout-phone .topbar > a:not(.brand-link),
html.layout-phone .topbar > .topbar-title,
html.layout-phone .topbar .tagline,
html.layout-phone #brand-tag { display: none !important; }
html.layout-phone .topbar .brand,
html.layout-phone .topbar .brand-link { display: flex; align-items: center; min-height: 48px; }
html.layout-phone img.logo-img { height: 34px; }

html.layout-phone .m-burger {
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 48px; height: 48px; min-height: 48px; padding: 0; margin-left: auto;
  border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--stroke-strong);
}
html.layout-phone .m-burger span { display: block; width: 22px; height: 3px; border-radius: 2px; background: var(--text); }
html.layout-phone .m-burger[aria-expanded="true"] { border-color: var(--neon-cyan); }

html.layout-phone .m-tabs-wrap {
  display: block; position: relative; flex: 1 0 100%; width: 100%;
  margin: 4px -12px 0; width: calc(100% + 24px); flex-basis: calc(100% + 24px);
  border-top: 1px solid var(--stroke);
}
html.layout-phone .m-tabs {
  display: flex; gap: 2px; overflow-x: auto; overflow-y: hidden;
  padding: 0 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
html.layout-phone .m-tabs::-webkit-scrollbar { display: none; }
html.layout-phone .m-tab {
  flex: 0 0 auto; display: inline-flex; align-items: center;
  min-height: 48px; padding: 0 14px;
  font-size: clamp(16px, calc(17px * var(--text-scale)), 20px); font-weight: 800;
  color: var(--muted); white-space: nowrap; text-decoration: none;
  border-bottom: 3px solid transparent;
}
html.layout-phone .m-tab:hover { text-decoration: none; }
html.layout-phone .m-tab.active { color: var(--neon-cyan); border-bottom-color: var(--neon-cyan); }
html.layout-phone .m-tab:focus-visible { outline: 3px solid var(--neon-cyan); outline-offset: -3px; }
html.layout-phone body.kid-profile .m-kidhide { display: none; }
html.layout-phone .m-tabs-wrap::before,
html.layout-phone .m-tabs-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 36px; pointer-events: none;
  opacity: 0; transition: opacity .2s; z-index: 1;
}
html.layout-phone .m-tabs-wrap::before { left: 0; background: linear-gradient(90deg, #07060d, rgba(7,6,13,0)); }
html.layout-phone .m-tabs-wrap::after { right: 0; background: linear-gradient(270deg, #07060d 20%, rgba(7,6,13,0)); }
html.layout-phone .m-tabs-wrap.fade-l::before,
html.layout-phone .m-tabs-wrap.fade-r::after { opacity: 1; }

/* ---------- Phone: hamburger drawer ---------- */
html.layout-phone .m-scrim {
  display: block; position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.65);
  opacity: 0; transition: opacity .2s;
}
html.layout-phone .m-scrim.open { opacity: 1; }
html.layout-phone .m-drawer {
  display: flex; flex-direction: column;
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 201;
  width: min(86vw, 360px); max-width: 100%;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px calc(16px + env(safe-area-inset-bottom, 0px));
  background: #0c0a1c; border-left: 1px solid var(--stroke-strong);
  box-shadow: -20px 0 60px rgba(0,0,0,.6);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform .22s ease;
}
html.layout-phone .m-drawer.open { transform: translateX(0); }
html.m-drawer-open, html.m-drawer-open body { overflow: hidden; }
.m-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.m-drawer-head strong { font-size: 22px; font-weight: 800; }
.m-drawer-close { width: 48px; min-height: 48px; padding: 0; font-size: 20px; border-radius: 14px; }
.m-drawer-group {
  margin: 14px 0 6px; font-size: 16px !important; letter-spacing: .06em; text-transform: uppercase;
  color: var(--neon-cyan) !important; font-weight: 800;
}
.m-drawer-list { display: grid; gap: 6px; }
.m-drawer-item {
  display: block; width: 100%; text-align: left; min-height: 50px; padding: 0 14px;
  font-size: clamp(16px, calc(18px * var(--text-scale)), 22px) !important; font-weight: 700;
  border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--stroke);
  white-space: normal;
}
.m-drawer-item.active { border-color: var(--neon-cyan); color: var(--neon-cyan); box-shadow: inset 4px 0 0 var(--neon-cyan); }
.m-drawer-device { margin: 16px 0 0; }

/* ---------- Phone: general ---------- */
html.layout-phone {
  --tv-pad: 14px;
  --tile-w: clamp(150px, calc(42vw * var(--ui-scale)), 210px);
  --tile-img-h: clamp(84px, calc(88px * var(--ui-scale)), 104px);
  --font-h1: clamp(26px, calc(28px * var(--text-scale)), 34px);
  --font-h2: clamp(20px, calc(21px * var(--text-scale)), 26px);
  --btn-min-h: clamp(44px, calc(48px * var(--ui-scale)), 54px);
  -webkit-text-size-adjust: 100%;
}
html.layout-phone body { overflow-x: hidden; }
html.layout-phone .view { min-height: 0; padding: 14px; }
html.layout-phone img, html.layout-phone video, html.layout-phone iframe { max-width: 100%; }
html.layout-phone button, html.layout-phone .btn, html.layout-phone select,
html.layout-phone input:not([type="checkbox"]):not([type="radio"]) { min-height: 44px; }
html.layout-phone input[type="checkbox"], html.layout-phone input[type="radio"] { width: 26px; height: 26px; min-height: 26px; }
html.layout-phone .site-footer { padding: 22px 14px 36px; }
html.layout-phone .footer-inner nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* Home: hero + swipeable tile rows */
html.layout-phone .view-home { padding: 0 0 20px; }
html.layout-phone .hero-featured { height: auto; min-height: 340px; border-radius: 0 0 22px 22px; display: flex; align-items: flex-end; }
html.layout-phone .hero-scrim {
  background: linear-gradient(0deg, rgba(7,6,13,.96) 0%, rgba(7,6,13,.75) 50%, rgba(7,6,13,.25) 100%);
}
html.layout-phone .hero-copy { max-width: 100%; width: 100%; padding: 70px 16px 18px; gap: 6px; }
html.layout-phone .hero-copy h1 { font-size: var(--font-h1); overflow-wrap: anywhere; }
html.layout-phone .hero-copy .lead { font-size: clamp(16px, calc(17px * var(--text-scale)), 21px); margin: 4px 0; }
html.layout-phone .hero-copy .now-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
html.layout-phone .hero-copy .now-actions .btn { min-height: 50px; width: 100%; }
html.layout-phone #home-rows { padding: 4px 0 16px; gap: 14px; }
html.layout-phone .home-row h2 { padding: 0 14px; }
html.layout-phone .home-scroller { padding: 4px 14px 12px; gap: 10px; scroll-padding-left: 14px; scroll-snap-type: x proximity; }
html.layout-phone .home-tile.selected, html.layout-phone .home-tile:focus { transform: none; }

/* Guide: full-width player, sideways-scrolling grid with sticky channel column */
html.layout-phone #view-guide { min-height: 0; display: block; padding: 0; }
html.layout-phone #view-guide .guide-layout { display: flex !important; flex-direction: column; gap: 12px; padding: 12px 12px 4px; }
html.layout-phone #view-guide .guide-left { display: contents !important; }
html.layout-phone #view-guide .guide-left .pip,
html.layout-phone #view-guide .pip {
  order: 1; width: 100%; height: auto !important; min-height: 0; max-height: none;
  aspect-ratio: 16 / 9; border-radius: 16px;
}
html.layout-phone #view-guide .epg-wrap {
  order: 2; display: block; height: auto; max-height: 68vh; max-height: 68dvh;
  overflow: auto !important; overscroll-behavior-x: contain; scroll-snap-type: none;
  -webkit-overflow-scrolling: touch; border-radius: 16px;
}
html.layout-phone #view-guide .guide-side { order: 3; max-height: 50vh; }
html.layout-phone #view-guide .epg-times,
html.layout-phone #view-guide .epg-row {
  grid-template-columns: calc(132px + 40px * (var(--text-scale) - 1) / 0.25) repeat(6, calc(132px + 30px * (var(--text-scale) - 1) / 0.25)) !important;
  width: max-content; min-width: 100%; gap: 6px; padding: 3px 6px;
}
html.layout-phone #view-guide .epg-times { position: sticky; top: 0; z-index: 4; background: #0b0a16; }
html.layout-phone #view-guide .epg-ch,
html.layout-phone #view-guide .epg-corner {
  position: sticky; left: 0; z-index: 3; background: #0f0d1f !important;
  box-shadow: 6px 0 10px -4px rgba(0,0,0,.7);
}
html.layout-phone #view-guide .epg-corner { z-index: 5; }
html.layout-phone #view-guide .epg-ch { grid-template-columns: 36px 1fr !important; gap: 2px 6px !important; padding: 4px 6px !important; }
html.layout-phone #view-guide .epg-ch .ch-icon { width: 36px !important; height: 36px !important; border-radius: 10px; }
html.layout-phone #view-guide .epg-ch .ch-name { font-size: 16px !important; overflow-wrap: anywhere; }
html.layout-phone #view-guide .epg-ch .ch-num { font-size: 16px !important; }
html.layout-phone #view-guide .epg-row { min-height: 56px; }
html.layout-phone #view-guide .epg-ch, html.layout-phone #view-guide .epg-cell { min-height: 56px; }
html.layout-phone #view-guide .now-line { display: none; }
html.layout-phone #view-guide .ad-bar { margin: 10px 12px; }
html.layout-phone #view-guide .ad-bar .ad-thumb { width: 72px; height: 72px; flex: 0 0 72px; }
html.layout-phone #view-guide .ticker { margin: 0 12px 6px; }
html.layout-phone .disclaimer { padding: 0 12px; }

/* Player: full-width 16:9 video under the top bar, controls below it */
html.layout-phone #app[data-view="player"] #view-guide .pip {
  position: fixed; inset: auto; left: 0; right: 0; top: var(--m-head-h, 110px);
  width: 100%; height: 56.25vw !important; aspect-ratio: auto; border-radius: 0;
}
html.layout-phone #app[data-view="player"] #view-player .now-card {
  position: fixed; left: 8px; right: 8px; bottom: auto;
  top: calc(var(--m-head-h, 110px) + 56.25vw + 8px);
  max-height: calc(100dvh - var(--m-head-h, 110px) - 56.25vw - 16px - env(safe-area-inset-bottom, 0px));
  overflow-y: auto; padding: 14px; max-width: none;
}
html.layout-phone #view-player .now-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
html.layout-phone #view-player .now-actions button { padding: 0 6px; min-height: 48px; }
html.layout-phone .np-artist { font-size: clamp(20px, calc(22px * var(--text-scale)), 28px); }
html.layout-phone .stars button { min-height: 48px; min-width: 44px; font-size: 32px; }
html.layout-phone .osd { top: calc(var(--m-head-h, 110px) + 8px); left: 8px; padding: 8px 12px; }
html.layout-phone .osd-ch { font-size: 40px; }
html.layout-phone .channel-bug { top: calc(var(--m-head-h, 110px) + 8px); right: 8px; width: 40px; height: 40px; }
html.layout-phone .vhs-play { top: calc(var(--m-head-h, 110px) + 10px); }
html.layout-phone .spotlight-banner { top: calc(var(--m-head-h, 110px) + 56px); right: 8px; padding: 6px 12px; }
html.layout-phone .upnext { top: calc(var(--m-head-h, 110px) + 56px); right: 8px; bottom: auto; width: min(300px, 80vw); padding: 8px; }
html.layout-phone .upnext img { width: 72px; height: 40px; }
html.layout-phone .lower-third { left: 8px; right: 8px; bottom: auto; top: calc(var(--m-head-h, 110px) + 56.25vw - 64px); padding: 8px 12px; }
html.layout-phone .riff-stage { max-width: 100vw; }

/* Info panel / modals / ads as phone sheets */
html.layout-phone .info-panel { max-height: 85vh; max-height: 85dvh; padding-bottom: env(safe-area-inset-bottom, 0px); z-index: 70; }
html.layout-phone .info-panel-inner { padding: 16px 14px 24px; }
html.layout-phone .info-head { position: sticky; top: -16px; background: rgba(10,8,22,.97); padding: 8px 0; z-index: 1; }
html.layout-phone .info-head h2 { font-size: clamp(22px, calc(24px * var(--text-scale)), 30px); overflow-wrap: anywhere; }
html.layout-phone .member-chip { min-width: 0; flex: 1 1 140px; }
html.layout-phone .modal-card { padding: 18px; max-height: 90dvh; overflow: auto; }
html.layout-phone .modal-actions { flex-wrap: wrap; }
html.layout-phone .modal-actions button { flex: 1 1 140px; }
html.layout-phone .ad-fs { padding: 12px; overflow: auto; }
html.layout-phone .ad-fs-card { grid-template-columns: 1fr !important; padding: 16px; max-height: 92dvh; overflow: auto; }
html.layout-phone .qr-wrap { display: none; }
html.layout-phone #wallet-safety { left: 12px; right: 12px !important; max-width: none !important; }
html.layout-phone .live-list { grid-template-columns: 1fr; }
html.layout-phone .chart-table th, html.layout-phone .chart-table td { padding: 10px 6px; }

/* Display settings = bottom sheet */
html.layout-phone .display-panel {
  left: 0; right: 0; top: auto; bottom: 0; width: 100%; z-index: 210;
  max-height: 88vh; max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain;
  border-radius: 22px 22px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
}
html.layout-phone .display-panel .icon-steps,
html.layout-phone .setup-pane .icon-steps { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
html.layout-phone .display-panel .icon-steps button,
html.layout-phone .setup-pane .icon-steps button { padding: 10px 4px; min-width: 0; }
html.layout-phone .display-panel .panel-actions { position: sticky; bottom: -18px; background: rgba(10,8,22,.97); padding: 10px 0; flex-wrap: wrap; }
html.layout-phone .display-panel .panel-actions button { flex: 1 1 140px; }
.display-device select { width: 100%; }

/* First-run setup: fits the screen, scrolls, buttons always reachable */
html.layout-phone .setup-screen { padding: 10px; align-items: stretch; }
html.layout-phone .setup-card {
  width: 100%; max-height: none; height: 100%; display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px 0; border-radius: 20px;
}
html.layout-phone .setup-pane:not(.hidden) { display: flex; flex-direction: column; flex: 1 0 auto; }
html.layout-phone .setup-pane h1 { font-size: var(--font-h1); margin: 4px 0 8px; }
html.layout-phone .setup-actions {
  position: sticky; bottom: 0; margin-top: auto; padding: 12px 0 calc(14px + env(safe-area-inset-bottom, 0px));
  background: rgba(12,10,28,.98); display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
html.layout-phone .setup-actions button { width: 100%; min-height: 52px; }
html.layout-phone .setup-actions button:only-child { grid-column: 1 / -1; }

/* Sub pages (submit, parental, artist, ...) */
html.layout-phone .page-main { margin: 12px auto; padding: 12px 14px 40px; }
html.layout-phone .page-main h1, html.layout-phone body.page h1 { font-size: var(--font-h1); overflow-wrap: anywhere; }
html.layout-phone body.page main, html.layout-phone body.page section { max-width: 100%; }
html.layout-phone body.page form label, html.layout-phone .parental-panel label { display: grid; gap: 6px; }
html.layout-phone body.page input:not([type="checkbox"]):not([type="radio"]),
html.layout-phone body.page select, html.layout-phone body.page textarea { width: 100%; max-width: 100%; }
html.layout-phone .artist-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 12px -14px; padding: 0 14px; }
html.layout-phone .artist-nav button { flex: 0 0 auto; }
html.layout-phone .artist-panel { padding: 14px; }
html.layout-phone .artist-table { display: block; overflow-x: auto; }
html.layout-phone .live-tier-grid { grid-template-columns: 1fr; }
html.layout-phone pre, html.layout-phone code { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Home rows: keep each row inside the screen so its tiles scroll sideways (all devices) */
#home-rows { grid-template-columns: minmax(0, 1fr); }
.home-row { min-width: 0; }
.home-scroller { max-width: 100%; }

/* Phone player polish */
html.layout-phone #app[data-view="player"] #view-guide { background: var(--bg); }
html.layout-phone #app[data-view="player"] #view-guide .guide-side,
html.layout-phone #app[data-view="player"] #view-guide .ticker,
html.layout-phone #app[data-view="player"] #view-guide .disclaimer { visibility: hidden; }
html.layout-phone #view-player .now-actions .nav-ico { width: 22px; height: 22px; vertical-align: -5px; margin-right: 6px; border-radius: 6px; }
html.layout-phone .upnext { top: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); left: 8px; right: 8px; width: auto; }
html.layout-phone .submit-main { padding: 12px 14px 40px; max-width: 100%; }
html.layout-phone .submit-main form label { display: grid; gap: 6px; margin-bottom: 14px; font-weight: 700; }
html.layout-phone .submit-main form button { width: 100%; min-height: 50px; margin-top: 6px; }
html.layout-phone .parental-panel button, html.layout-phone .page-main button { margin: 4px 0 10px; }

/* Moved out of inline style="" (the site CSP blocks inline styles, so they never applied live) */
.preview-gate { position: fixed; inset: 0; z-index: 9999; background: #07060d; display: flex; align-items: center; justify-content: center; padding: 24px; }
.preview-gate-card { max-width: 420px; width: 100%; background: rgba(16,14,32,.94); border: 1px solid rgba(255,255,255,.15); border-radius: 20px; padding: 28px; color: #fff; }
.preview-gate-card h1 { margin: 0 0 8px; font-size: 28px; }
.preview-gate-note { font-size: 16px; color: var(--muted); }
.preview-gate-label { display: grid; gap: 8px; margin: 16px 0; font-weight: 700; }
.preview-gate-label input { padding: 12px; border-radius: 12px; border: 1px solid #445; background: #0b0a18; color: #fff; min-height: 48px; font-size: 18px; }
.preview-gate-card .btn { min-height: 48px; padding: 0 22px; }
.preview-gate-err { color: #ff8a8a; min-height: 1.2em; }
.ad-fs-actions { margin-top: 14px; }
.wallet-safety { position: fixed; right: 16px; bottom: 16px; max-width: 320px; z-index: 40; }
