/* Homechella — 16-bit broadcast UI */

@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap");

:root {
  --hc-bg: #0d0420;
  --hc-mid: #2a0e4d;
  --hc-glow: #ff5cf2;
  --hc-accent: #7be0ff;
  --hc-sun: #ffd23f;
  --hc-horizon: #ff5cf2;
  --hc-ink: #ffe9fa;
  --hc-ink-dim: #b48ed1;
  --hc-shadow-dk: #07021a;
  --hc-grid: #25104a;
  --pixel: "Press Start 2P", "VT323", monospace;
  --term: "VT323", "Press Start 2P", monospace;
}

* { box-sizing: border-box; }

html, body, #root {
  margin: 0; padding: 0;
  min-height: 100vh;
  background: var(--hc-bg);
  color: var(--hc-ink);
  font-family: var(--term);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

body {
  background:
    radial-gradient(ellipse 80% 60% at 50% 25%, color-mix(in oklab, var(--hc-glow) 22%, transparent), transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 90%, color-mix(in oklab, var(--hc-mid) 70%, transparent), transparent 60%),
    var(--hc-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ── Wordmark ──────────────────────────────────────────────────────────── */

.hc-logo {
  font-family: var(--pixel);
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1;
}
.hc-logo-1, .hc-logo-2 {
  font-size: 22px;
  letter-spacing: 0.06em;
}
.hc-logo-1 {
  color: var(--hc-ink);
  text-shadow:
    2px 2px 0 var(--hc-glow),
    4px 4px 0 var(--hc-shadow-dk);
}
.hc-logo-2 {
  color: var(--hc-accent);
  text-shadow:
    2px 2px 0 var(--hc-sun),
    4px 4px 0 var(--hc-shadow-dk);
}
.hc-logo-tag {
  font-family: var(--term);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--hc-ink-dim);
}
.hc-logo--big .hc-logo-1, .hc-logo--big .hc-logo-2 {
  font-size: 56px;
  letter-spacing: 0.08em;
}
.hc-logo--big .hc-logo-tag {
  font-size: 18px;
  letter-spacing: 0.3em;
}

/* ── CRT intro ─────────────────────────────────────────────────────────── */

.hc-intro {
  position: fixed; inset: 0; z-index: 9999;
  background: #000;
  display: grid; place-items: center;
  pointer-events: none;
}
.hc-intro--done { display: none; }
.hc-intro-flash {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 12% at 50% 50%, #fff, transparent 70%);
  opacity: 0;
  transition: opacity 0.16s ease-out, transform 0.5s ease-out;
  transform: scaleY(0.04);
}
.hc-intro--flash .hc-intro-flash {
  opacity: 1;
  transform: scaleY(1);
}
.hc-intro--scan .hc-intro-flash {
  opacity: 0.05;
  transform: scaleY(1);
}
.hc-intro--logo .hc-intro-flash {
  opacity: 0.05;
}
.hc-intro-scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(0,0,0,0.55) 3px 4px);
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 0.6s;
}
.hc-intro--scan .hc-intro-scan,
.hc-intro--logo .hc-intro-scan { opacity: 1; }
.hc-intro-logo {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  opacity: 0;
  transform: scale(0.6);
  filter: blur(3px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out, filter 0.5s ease-out;
}
.hc-intro--logo .hc-intro-logo {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}
.hc-intro-sub {
  font-family: var(--pixel);
  font-size: 12px;
  color: var(--hc-glow);
  letter-spacing: 0.3em;
  animation: hcBlink 0.7s infinite step-end;
}

@keyframes hcBlink {
  50% { opacity: 0.15; }
}

/* ── Marquee ───────────────────────────────────────────────────────────── */

.hc-marquee {
  position: relative;
  background: #000;
  border-top: 4px solid var(--hc-glow);
  border-bottom: 4px solid var(--hc-glow);
  overflow: hidden;
  font-family: var(--pixel);
  font-size: 12px;
  color: var(--hc-ink);
  height: 38px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.hc-marquee-track {
  display: flex;
  white-space: nowrap;
  animation: hcMarquee linear infinite;
}
.hc-marquee-item {
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.1em;
}
.hc-marquee-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--hc-sun);
  box-shadow: 0 0 8px var(--hc-sun);
}
@keyframes hcMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Lineup poster ─────────────────────────────────────────────────────── */

.hc-lineup {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
}

.hc-poster-bg {
  position: absolute; inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--mid) 60%, color-mix(in oklab, var(--horizon) 30%, var(--mid)) 90%, var(--horizon) 100%);
  overflow: hidden;
}
.hc-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 28% 7%, #fff, transparent),
    radial-gradient(1px 1px at 47% 22%, #fff, transparent),
    radial-gradient(1px 1px at 63% 9%, #fff, transparent),
    radial-gradient(1px 1px at 81% 14%, #fff, transparent),
    radial-gradient(1px 1px at 93% 30%, #fff, transparent),
    radial-gradient(1px 1px at 8% 35%, #fff, transparent),
    radial-gradient(1px 1px at 37% 33%, #fff, transparent),
    radial-gradient(1px 1px at 72% 27%, #fff, transparent),
    radial-gradient(1px 1px at 55% 5%, #fff, transparent),
    radial-gradient(2px 2px at 20% 24%, var(--accent), transparent),
    radial-gradient(2px 2px at 88% 8%, var(--sun), transparent);
  opacity: 0.85;
  animation: hcTwinkle 4s ease-in-out infinite;
}
@keyframes hcTwinkle {
  0%,100% { opacity: 0.85; }
  50% { opacity: 0.55; }
}
.hc-sun-wrap {
  position: absolute;
  left: 50%; top: 16%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 28px var(--sun)) drop-shadow(0 0 64px var(--horizon));
  z-index: 0;
  opacity: 0.85;
}
.hc-horizon {
  position: absolute;
  left: 0; right: 0;
  top: 58%;
  height: 2px;
  background: var(--horizon);
  box-shadow:
    0 -8px 24px color-mix(in oklab, var(--horizon) 60%, transparent),
    0 0 12px var(--horizon);
}
.hc-ground {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  top: 58%;
  background:
    repeating-linear-gradient(180deg,
      transparent 0 9px,
      color-mix(in oklab, var(--horizon) 30%, transparent) 9px 10px),
    linear-gradient(180deg,
      color-mix(in oklab, var(--mid) 40%, transparent),
      color-mix(in oklab, var(--bg) 90%, transparent));
  perspective: 400px;
  transform-origin: top;
}
.hc-ground::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg,
      color-mix(in oklab, var(--horizon) 50%, transparent) 0 1px,
      transparent 1px 64px);
  mask: linear-gradient(180deg, var(--horizon), transparent 70%);
}
.hc-palm {
  position: absolute;
  bottom: 0;
  filter: drop-shadow(0 0 20px var(--horizon));
  z-index: 1;
}
.hc-palm--l { left: 1.5%; }
.hc-palm--r { right: 1.5%; transform: scaleX(-1); }

/* ── Lineup header ─────────────────────────────────────────────────────── */

.hc-lineup-hd {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 32px 40px 18px;
  gap: 24px;
}

.hc-lineup-clock {
  font-family: var(--pixel);
  text-align: right;
  background: var(--hc-shadow-dk);
  border: 3px solid var(--hc-glow);
  padding: 12px 18px;
  box-shadow: 4px 4px 0 var(--hc-shadow-dk), inset 0 0 0 1px var(--hc-mid);
}
.hc-clock-day {
  font-size: 11px;
  color: var(--hc-ink-dim);
  letter-spacing: 0.16em;
  margin-bottom: 6px;
}
.hc-clock-time {
  font-size: 22px;
  color: var(--hc-sun);
  text-shadow: 2px 2px 0 var(--hc-shadow-dk);
}
.hc-clock-time--sm { font-size: 14px; }
.hc-clock-sim {
  margin-top: 6px;
  font-size: 9px;
  color: var(--hc-accent);
  letter-spacing: 0.16em;
  animation: hcBlink 1.4s step-end infinite;
}
.hc-clock-sim--sm { font-size: 8px; margin-top: 4px; }
.hc-clock-theme {
  margin-top: 6px;
  font-family: var(--pixel);
  font-size: 9px;
  color: var(--hc-sun);
  letter-spacing: 0.14em;
  text-shadow: 1px 1px 0 var(--hc-shadow-dk);
}

/* ── Channel list ──────────────────────────────────────────────────────── */

.hc-list {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  gap: 8px;
  padding: 20px 40px 40px;
}

.hc-row {
  --row-h: 72px;
  appearance: none;
  text-align: left;
  width: 100%;
  height: var(--row-h);
  min-height: var(--row-h);
  max-height: var(--row-h);
  background: rgba(13, 4, 32, 0.92);
  color: var(--hc-ink);
  font-family: var(--term);
  border: 3px solid var(--accent);
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
  box-shadow:
    4px 4px 0 var(--hc-shadow-dk),
    inset 0 0 0 1px var(--hc-shadow-dk);
  border-left: 6px solid var(--accent);
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out;
  overflow: hidden;
  cursor: pointer;
}
.hc-row:hover {
  transform: translate(-2px, -2px);
  box-shadow:
    6px 6px 0 var(--hc-shadow-dk),
    0 0 20px color-mix(in oklab, var(--accent) 45%, transparent),
    inset 0 0 0 1px var(--hc-shadow-dk);
}
.hc-row:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--hc-shadow-dk);
}

/* channel number + ON AIR badge column */
.hc-row-ch {
  width: 100px;
  min-width: 100px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  padding: 0 10px;
  border-right: 2px solid color-mix(in oklab, var(--accent) 30%, transparent);
  height: 100%;
}
.hc-row-chnum {
  font-family: var(--pixel);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.hc-row-onair {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--pixel);
  font-size: 8px;
  color: #fff;
  background: #ff2d6e;
  padding: 3px 6px;
  box-shadow: 2px 2px 0 var(--hc-shadow-dk);
  white-space: nowrap;
}
.hc-row-onair-dot {
  width: 5px; height: 5px; background: #fff;
  flex-shrink: 0;
  animation: hcBlink 0.8s step-end infinite;
}

/* icon column */
.hc-row-icon {
  width: 64px;
  min-width: 64px;
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 8px;
  background: radial-gradient(ellipse at center, color-mix(in oklab, var(--accent) 18%, transparent), transparent 70%);
}
.hc-row.is-dark .hc-row-icon { filter: grayscale(0.8) brightness(0.6); }

/* channel name + stage */
.hc-row-info {
  width: 180px;
  min-width: 140px;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 0 16px 0 10px;
  border-right: 2px solid color-mix(in oklab, var(--accent) 20%, transparent);
  height: 100%;
  overflow: hidden;
}
.hc-row-name {
  font-family: var(--pixel);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-shadow: 1px 1px 0 var(--hc-shadow-dk);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hc-row-stage {
  font-family: var(--term);
  font-size: 15px;
  color: var(--hc-ink-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* now playing — flex: 1 so it fills remaining space */
.hc-row-now {
  flex: 1;
  min-width: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
  padding: 0 16px;
  height: 100%;
  overflow: hidden;
}
.hc-row-now-l {
  font-family: var(--pixel);
  font-size: 8px;
  color: var(--hc-ink-dim);
  letter-spacing: 0.18em;
  white-space: nowrap;
}
.hc-row-now-a {
  font-family: var(--pixel);
  font-size: clamp(8px, 1.1vw, 12px);
  color: var(--hc-ink);
  letter-spacing: 0.04em;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hc-row.is-dark .hc-row-now { opacity: 0.55; }

/* TUNE IN button column */
.hc-row-tune {
  padding: 0 16px;
  flex-shrink: 0;
  display: flex; align-items: center;
  height: 100%;
}
.hc-row-tune-btn {
  font-family: var(--pixel);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--hc-shadow-dk);
  border: 2px solid var(--accent);
  padding: 8px 12px;
  white-space: nowrap;
  box-shadow: 3px 3px 0 var(--hc-shadow-dk);
  transition: background 0.08s;
}
.hc-row:hover .hc-row-tune-btn {
  background: color-mix(in oklab, var(--accent) 22%, var(--hc-shadow-dk));
}

.hc-lineup-ft {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between;
  padding: 16px 40px 24px;
  font-family: var(--pixel);
  font-size: 10px;
  color: var(--hc-ink-dim);
  letter-spacing: 0.14em;
}

/* ── Player screen ─────────────────────────────────────────────────────── */

.hc-player {
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--hc-bg);
}
.hc-player-hd {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 24px;
  background:
    linear-gradient(90deg,
      var(--hc-shadow-dk),
      color-mix(in oklab, var(--accent) 30%, var(--hc-shadow-dk)),
      var(--hc-shadow-dk));
  border-bottom: 3px solid var(--accent);
}
.hc-player-meta {
  flex: 1;
  display: flex; flex-direction: column; gap: 4px;
  align-items: center;
  text-align: center;
}
.hc-player-channel {
  font-family: var(--pixel);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-shadow: 2px 2px 0 var(--hc-shadow-dk);
}
.hc-player-stage {
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--hc-ink-dim);
}
.hc-player-clock {
  font-family: var(--pixel);
  text-align: right;
}

.hc-pix-btn {
  appearance: none;
  font-family: var(--pixel);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--hc-ink);
  background: var(--hc-shadow-dk);
  border: 3px solid var(--accent);
  padding: 10px 14px;
  box-shadow: 3px 3px 0 var(--hc-shadow-dk);
  transition: transform 0.08s, box-shadow 0.08s;
}
.hc-pix-btn:hover {
  background: color-mix(in oklab, var(--accent) 20%, var(--hc-shadow-dk));
}
.hc-pix-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--hc-shadow-dk);
}

.hc-ch-btn {
  font-size: 14px;
  padding: 14px 20px;
  letter-spacing: 0.12em;
}

.hc-player-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  padding: 24px;
  min-height: 0;
}
.hc-player-left {
  position: relative;
  display: flex; flex-direction: column; gap: 16px;
  min-width: 0;
}

/* ── CRT bezel ─────────────────────────────────────────────────────────── */

.hc-crt {
  position: relative;
  background:
    linear-gradient(180deg, #2a1146, #14062b 60%, #08021a);
  border: 4px solid color-mix(in oklab, var(--accent) 70%, #fff);
  border-radius: 14px 14px 18px 18px;
  padding: 14px 14px 0;
  box-shadow:
    0 0 0 4px var(--hc-shadow-dk),
    0 0 64px color-mix(in oklab, var(--accent) 30%, transparent),
    inset 0 4px 0 rgba(255,255,255,0.08),
    inset 0 -4px 0 rgba(0,0,0,0.6);
}
.hc-crt-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px / 6px;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 3px #000,
    inset 0 0 0 6px #1a0833,
    inset 0 0 80px rgba(0,0,0,0.7);
}
.hc-yt {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.hc-crt-scan {
  position: absolute; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg,
    transparent 0 2px,
    rgba(0,0,0,0.18) 2px 3px);
  mix-blend-mode: multiply;
  z-index: 3;
}
body[data-scanlines="off"] .hc-crt-scan { display: none; }
body[data-crt="soft"] .hc-crt-scan { opacity: 0.4; }
body[data-crt="heavy"] .hc-crt-scan {
  background: repeating-linear-gradient(180deg,
    transparent 0 2px,
    rgba(0,0,0,0.35) 2px 4px);
}
.hc-crt-vignette {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 110% 110% at 50% 50%,
      transparent 45%,
      rgba(0,0,0,0.6) 100%);
  z-index: 4;
}
body[data-crt="heavy"] .hc-crt-vignette {
  background:
    radial-gradient(ellipse 110% 110% at 50% 50%,
      transparent 30%,
      rgba(0,0,0,0.85) 100%);
}

.hc-crt-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  padding: 12px 4px 8px;
}
.hc-crt-brand {
  font-family: var(--pixel);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--hc-ink-dim);
  display: flex; align-items: center; gap: 8px;
}
.hc-crt-led {
  width: 8px; height: 8px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: hcBlink 1.4s step-end infinite;
}
.hc-crt-brand-name { color: var(--accent); }
.hc-crt-channel-readout {
  display: flex; align-items: baseline; gap: 8px;
  background: #1b0633;
  padding: 4px 12px;
  border: 2px solid color-mix(in oklab, var(--accent) 60%, #000);
}
.hc-crt-ch-label {
  font-family: var(--pixel); font-size: 9px;
  color: var(--hc-ink-dim);
  letter-spacing: 0.18em;
}
.hc-crt-ch-no {
  font-family: var(--pixel);
  font-size: 18px;
  color: var(--hc-sun);
  text-shadow: 0 0 12px var(--hc-sun);
}
.hc-crt-knobs {
  display: flex; gap: 10px;
}
.hc-crt-knob {
  width: 18px; height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #c4b8d8, #54426e 70%, #1b0633);
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.6), 0 0 0 2px #1b0633;
  position: relative;
}
.hc-crt-knob::after {
  content: ""; position: absolute;
  left: 50%; top: 2px; width: 2px; height: 6px;
  background: #1b0633; transform: translateX(-50%);
}

/* ── Now/next strip ────────────────────────────────────────────────────── */

.hc-now-strip {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: var(--hc-shadow-dk);
  border: 3px solid var(--accent);
  box-shadow: 4px 4px 0 var(--hc-shadow-dk);
  flex-wrap: wrap;
}
.hc-now-strip-l {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.hc-now-pill {
  font-family: var(--pixel);
  font-size: 11px;
  letter-spacing: 0.1em;
  background: #ff2d6e;
  color: #fff;
  padding: 6px 10px;
  box-shadow: 2px 2px 0 var(--hc-shadow-dk);
}
.hc-now-pill--soon { background: var(--hc-sun); color: var(--hc-shadow-dk); }
.hc-now-pill--dark { background: var(--hc-ink-dim); color: var(--hc-shadow-dk); }
.hc-now-artist {
  font-family: var(--pixel);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--hc-ink);
}
.hc-now-dur {
  font-family: var(--term);
  font-size: 18px;
  color: var(--hc-ink-dim);
  font-variant-numeric: tabular-nums;
}

.hc-now-strip-r {
  display: flex; gap: 8px;
}
.hc-react-btn {
  appearance: none;
  font-family: var(--pixel);
  font-size: 10px;
  background: var(--hc-mid);
  border: 2px solid var(--accent);
  color: var(--hc-ink);
  padding: 8px 10px;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 2px 2px 0 var(--hc-shadow-dk);
  transition: transform 0.06s;
}
.hc-react-btn span { font-size: 16px; }
.hc-react-btn:hover { background: color-mix(in oklab, var(--accent) 30%, var(--hc-mid)); }
.hc-react-btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--hc-shadow-dk); }

/* ── Floating reactions ────────────────────────────────────────────────── */

.hc-reactions {
  position: absolute;
  left: 14px; right: 14px;
  bottom: 100px;
  height: 0; pointer-events: none; z-index: 50;
}
.hc-react {
  position: absolute;
  bottom: 0;
  font-size: 28px;
  filter: drop-shadow(0 0 8px currentColor);
  animation: hcFloat 2s ease-out forwards;
}
@keyframes hcFloat {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  10% { transform: translateY(-20px) scale(1.1); opacity: 1; }
  100% { transform: translateY(-260px) scale(1) rotate(8deg); opacity: 0; }
}

/* ── Up-next strip ─────────────────────────────────────────────────────── */

.hc-upnext {
  background: var(--hc-shadow-dk);
  border: 3px solid color-mix(in oklab, var(--accent) 60%, var(--hc-shadow-dk));
  padding: 10px 14px 12px;
}
.hc-upnext-label {
  font-family: var(--pixel);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--hc-ink-dim);
  margin-bottom: 8px;
}
.hc-upnext-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 4px;
}
.hc-upnext-slot {
  background: var(--hc-mid);
  padding: 8px 10px;
  border-left: 3px solid var(--hc-ink-dim);
}
.hc-upnext-slot.is-live {
  border-left-color: #ff2d6e;
  background: linear-gradient(90deg, color-mix(in oklab, #ff2d6e 30%, var(--hc-mid)), var(--hc-mid));
}
.hc-upnext-slot.is-past { opacity: 0.42; }
.hc-upnext-time {
  font-family: var(--pixel); font-size: 9px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.hc-upnext-artist {
  font-family: var(--pixel); font-size: 10px;
  color: var(--hc-ink);
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* ── Countdown card (between sets) ─────────────────────────────────────── */

.hc-countdown {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 32px 36px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, color-mix(in oklab, var(--accent) 30%, transparent), transparent 70%),
    repeating-linear-gradient(135deg,
      #0d0420 0 18px,
      #14062b 18px 36px);
  color: var(--hc-ink);
}
.hc-countdown-stripe {
  grid-column: 1 / -1;
  height: 12px;
  background: repeating-linear-gradient(90deg,
    var(--accent) 0 18px,
    var(--hc-shadow-dk) 18px 36px);
}
.hc-countdown-glyph {
  grid-column: 1;
  align-self: center;
  padding: 18px;
  background: var(--hc-shadow-dk);
  border: 4px solid var(--accent);
  box-shadow: 6px 6px 0 var(--hc-shadow-dk);
}
.hc-countdown-meta {
  grid-column: 2;
  align-self: center;
  display: flex; flex-direction: column; gap: 12px;
}
.hc-countdown-up {
  font-family: var(--pixel);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.16em;
  animation: hcBlink 1.2s step-end infinite;
}
.hc-countdown-artist {
  font-family: var(--pixel);
  font-size: 36px;
  color: var(--hc-ink);
  letter-spacing: 0.04em;
  text-shadow: 4px 4px 0 var(--hc-shadow-dk);
  line-height: 1.1;
}
.hc-countdown-stage {
  font-family: var(--term);
  font-size: 22px;
  color: var(--hc-ink-dim);
  letter-spacing: 0.16em;
}
.hc-countdown-timer {
  grid-column: 3;
  align-self: center;
  text-align: center;
  background: var(--hc-shadow-dk);
  padding: 14px 20px;
  border: 3px solid var(--hc-sun);
  box-shadow: 4px 4px 0 var(--hc-shadow-dk);
}
.hc-countdown-label {
  font-family: var(--pixel);
  font-size: 9px;
  color: var(--hc-ink-dim);
  letter-spacing: 0.18em;
  margin-bottom: 6px;
}
.hc-countdown-clock {
  font-family: var(--pixel);
  font-size: 28px;
  color: var(--hc-sun);
  text-shadow: 0 0 16px var(--hc-sun);
  font-variant-numeric: tabular-nums;
}
.hc-countdown-tip {
  grid-column: 1 / -1;
  font-family: var(--pixel);
  font-size: 10px;
  color: var(--hc-ink-dim);
  letter-spacing: 0.2em;
  text-align: center;
  align-self: end;
  animation: hcBlink 2s step-end infinite;
}

/* ── Signed-off card ───────────────────────────────────────────────────── */

.hc-signedoff {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
}
.hc-signedoff-bars {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.hc-signedoff-bars span { display: block; }
.hc-signedoff-text {
  background: var(--hc-shadow-dk);
  padding: 18px 28px;
  display: flex; flex-direction: column; gap: 8px;
  align-items: center;
  text-align: center;
  border-top: 4px solid var(--hc-glow);
}
.hc-signedoff-1 {
  font-family: var(--pixel); font-size: 18px;
  color: var(--hc-ink);
  letter-spacing: 0.08em;
}
.hc-signedoff-2 {
  font-family: var(--pixel); font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.14em;
}
.hc-signedoff-3 {
  font-family: var(--term); font-size: 16px;
  color: var(--hc-ink-dim);
  letter-spacing: 0.14em;
}
.hc-signedoff-4 {
  font-family: var(--pixel); font-size: 10px;
  color: var(--hc-glow);
  letter-spacing: 0.2em;
  animation: hcBlink 1s step-end infinite;
}

/* ── Chat ──────────────────────────────────────────────────────────────── */

.hc-chat {
  display: flex; flex-direction: column;
  background: var(--hc-shadow-dk);
  border: 3px solid var(--hc-glow);
  box-shadow: 4px 4px 0 var(--hc-shadow-dk);
  min-height: 0;
  max-height: calc(100vh - 130px);
}
.hc-chat-hd {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(90deg, var(--hc-glow), var(--hc-mid));
  border-bottom: 3px solid var(--hc-glow);
  font-family: var(--pixel);
  font-size: 10px;
  letter-spacing: 0.14em;
}
.hc-chat-dot {
  width: 8px; height: 8px;
  background: #fff;
  animation: hcBlink 0.8s step-end infinite;
}
.hc-chat-title {
  flex: 1; color: #fff;
  text-shadow: 1px 1px 0 var(--hc-shadow-dk);
}
.hc-chat-count {
  color: rgba(255,255,255,0.85);
  font-size: 9px;
}
.hc-chat-feed {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
  display: flex; flex-direction: column; gap: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--hc-glow) transparent;
}
.hc-chat-feed::-webkit-scrollbar { width: 6px; }
.hc-chat-feed::-webkit-scrollbar-thumb { background: var(--hc-glow); }
.hc-chat-line {
  font-family: var(--term);
  font-size: 17px;
  line-height: 1.25;
  word-break: break-word;
  opacity: 1;
}
.hc-chat-u {
  font-family: var(--pixel);
  font-size: 9px;
  letter-spacing: 0.06em;
  margin-right: 8px;
  text-shadow: 1px 1px 0 var(--hc-shadow-dk);
}
.hc-chat-t { color: var(--hc-ink); }
.hc-chat-line--mine { background: rgba(255,255,255,0.07); border-radius: 2px; padding: 2px 4px; margin: 0 -4px; }
.hc-chat-line--mine .hc-chat-t { color: #fff; }
.hc-chat-you { font-family: var(--term); font-size: 11px; color: var(--hc-accent); opacity: 0.85; margin-left: 2px; font-style: normal; }
.hc-chat-ft {
  display: flex; gap: 6px;
  padding: 10px;
  border-top: 2px solid var(--hc-glow);
  background: var(--hc-mid);
}
.hc-chat-input {
  flex: 1;
  appearance: none;
  font-family: var(--term);
  font-size: 16px;
  background: var(--hc-shadow-dk);
  color: var(--hc-ink);
  border: 2px solid var(--hc-glow);
  padding: 6px 10px;
  letter-spacing: 0.04em;
}
.hc-chat-input::placeholder { color: var(--hc-ink-dim); }
.hc-chat-send {
  appearance: none;
  font-family: var(--pixel);
  font-size: 9px;
  background: var(--hc-glow);
  color: #fff;
  border: 0;
  padding: 0 12px;
  letter-spacing: 0.14em;
}

/* ── Picture-in-picture ────────────────────────────────────────────────── */

.hc-pip {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 320px;
  z-index: 100;
  background: var(--hc-shadow-dk);
  border: 3px solid var(--accent);
  box-shadow:
    6px 6px 0 var(--hc-shadow-dk),
    0 0 32px color-mix(in oklab, var(--accent) 60%, transparent);
  display: flex; flex-direction: column;
}
.hc-pip-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.hc-pip-screen iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hc-pip-scan {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 2px, rgba(0,0,0,0.3) 2px 3px);
}
.hc-pip-static {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: #000;
  color: #fff;
  font-family: var(--pixel);
  font-size: 11px;
  letter-spacing: 0.2em;
}
.hc-pip-static-bars {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 3px),
    repeating-linear-gradient(180deg, #555 0 1px, #000 1px 2px);
  opacity: 0.6;
  animation: hcStatic 0.12s steps(3) infinite;
}
@keyframes hcStatic {
  0% { transform: translate(0,0); }
  33% { transform: translate(1px,-1px); }
  66% { transform: translate(-1px,1px); }
}
.hc-pip-meta {
  padding: 8px 12px;
  display: flex; gap: 10px; align-items: baseline;
  font-family: var(--pixel);
}
.hc-pip-ch {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.14em;
}
.hc-pip-artist {
  font-size: 11px;
  color: var(--hc-ink);
  letter-spacing: 0.06em;
  flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hc-pip-ctrls {
  display: flex;
  border-top: 2px solid var(--accent);
}
.hc-pip-ctrls button {
  flex: 1;
  appearance: none;
  background: var(--hc-mid);
  color: var(--hc-ink);
  border: 0;
  font-family: var(--pixel);
  font-size: 12px;
  padding: 8px;
  letter-spacing: 0.1em;
}
.hc-pip-ctrls button:hover {
  background: color-mix(in oklab, var(--accent) 30%, var(--hc-mid));
}
.hc-pip-ctrls button + button {
  border-left: 2px solid var(--accent);
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .hc-player-main {
    grid-template-columns: 1fr;
  }
  .hc-chat { max-height: 360px; }
  .hc-countdown {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto;
    padding: 22px;
  }
  .hc-countdown-glyph { grid-column: 1; justify-self: center; }
  .hc-countdown-meta { grid-column: 1; text-align: center; align-items: center; }
  .hc-countdown-timer { grid-column: 1; }
  .hc-countdown-artist { font-size: 24px; }
}

@media (max-width: 720px) {
  .hc-lineup-hd { flex-direction: column; align-items: flex-start; padding: 20px 18px; }
  .hc-list { padding: 12px 12px 28px; gap: 6px; }
  .hc-logo-1, .hc-logo-2 { font-size: 18px; }
  .hc-palm--l, .hc-palm--r { display: none; }
  .hc-player-hd { flex-wrap: wrap; padding: 12px; }
}

@media (max-width: 540px) {
  /* hide icon column — frees ~64px on narrow screens */
  .hc-row-icon { display: none; }
  /* tighten channel number column */
  .hc-row-ch { width: 62px; min-width: 62px; padding: 0 6px; }
  .hc-row-chnum { font-size: 9px; }
  .hc-row-onair { font-size: 7px; padding: 2px 4px; gap: 3px; }
  /* let info column shrink freely, keep a readable minimum */
  .hc-row-info { width: auto; min-width: 72px; padding: 0 8px 0 8px; }
  .hc-row-name { font-size: 9px; }
  .hc-row-stage { font-size: 13px; }
  /* compact tune button */
  .hc-row-tune { padding: 0 10px; }
  .hc-row-tune-btn { padding: 6px 8px; font-size: 8px; letter-spacing: 0.06em; }
  /* now playing label only — hide on very tight screens if needed via ellipsis */
  .hc-row-now { padding: 0 8px; }
  .hc-row-now-a { font-size: clamp(7px, 2.2vw, 10px); }
  /* guide overlay cells — enforce word-boundary breaks only */
  .hc-guide-cell-artist {
    word-break: normal;
    overflow-wrap: break-word;
  }
  .hc-guide-cell-time {
    word-break: normal;
    overflow-wrap: normal;
  }
}

/* ── Full Lineup Guide ──────────────────────────────────────────────────────── */

.hc-guide-btn {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.12em;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 12px;
  flex-shrink: 0;
}

.hc-guide-back {
  position: fixed;
  inset: 0;
  background: rgba(4, 3, 15, 0.92);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  animation: fadeIn 0.15s ease-out;
}

.hc-guide {
  width: 100%;
  height: 85vh;
  background: #07051a;
  border-top: 2px solid var(--hc-glow);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
}

.hc-guide-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid #1a1630;
  flex-shrink: 0;
}

.hc-guide-title {
  font-family: var(--pixel);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--hc-glow);
  text-shadow: 0 0 10px var(--hc-glow);
}

.hc-guide-clock {
  font-family: var(--term);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--hc-ink-dim);
  margin-left: 8px;
}

.hc-guide-scroll {
  flex: 1;
  overflow: auto;
  position: relative;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}

.hc-guide-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #12102a;
  min-height: 88px;
}

.hc-guide-timehead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #07051a;
  border-bottom: 1px solid var(--hc-glow);
  min-height: 28px;
}

.hc-guide-chcol {
  width: 90px;
  min-width: 90px;
  padding: 10px;
  display: flex;
  align-items: flex-start;
  font-family: var(--pixel);
  font-size: 8px;
  letter-spacing: 0.06em;
  border-right: 1px solid #1a1630;
  position: sticky;
  left: 0;
  background: #07051a;
  z-index: 5;
  line-height: 1.2;
}

.hc-guide-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 88px;
}

.hc-guide-timehead .hc-guide-track {
  height: 36px;
}

.hc-guide-timelabel {
  position: absolute;
  top: 4px;
  font-family: var(--term);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--hc-ink-dim);
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
}

.hc-guide-nowline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--hc-glow);
  box-shadow: 0 0 8px var(--hc-glow);
  z-index: 3;
  pointer-events: none;
}

.hc-guide-cell {
  position: absolute;
  top: 3px;
  height: calc(100% - 6px);
  min-width: 4px;
  background: var(--hc-mid, #2a0e4d);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid var(--accent, #8e8ea0);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 6px 8px;
  cursor: default;
  transition: background 0.1s;
  box-sizing: border-box;
  gap: 4px;
}

.hc-guide-cell:hover {
  background: color-mix(in oklab, var(--accent, #8e8ea0) 15%, var(--hc-mid, #2a0e4d));
}

.hc-guide-cell.is-live {
  border-left-color: var(--accent, #fff);
  background: linear-gradient(90deg,
    color-mix(in oklab, var(--accent, #fff) 25%, var(--hc-mid, #2a0e4d)),
    var(--hc-mid, #2a0e4d));
}

.hc-guide-cell-time {
  font-family: var(--pixel);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--accent, #8e8ea0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  min-width: 0;
}

.hc-guide-cell-artist {
  font-family: var(--pixel);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--hc-ink);
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  min-width: 0;
  line-height: 1.4;
}

.hc-guide-cell.is-live .hc-guide-cell-time   { color: #fff; opacity: 0.7; }
.hc-guide-cell.is-live .hc-guide-cell-artist { color: #fff; }
