/* Slop TV — opening remote scene + galaxy crusty dripping TV + cable box + colored controls */

@font-face {
  font-family: "VT323";
  src: url("/tv/fonts/vt323-latin.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.stv-body {
  min-height: 100vh;
  background: #04050a;
  color: var(--text);
}

.stv-hud-kicker {
  font-family: var(--font-hud, var(--font-display));
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon-teal);
  text-shadow: 0 0 10px rgba(94, 232, 224, 0.5);
}

.stv-back-link,
.stv-hud-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-family: var(--font-hud, var(--font-display));
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #f2fbff;
  background: rgba(10, 14, 24, 0.88);
  border: 1px solid rgba(94, 232, 224, 0.48);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.stv-back-link:hover,
.stv-back-link:focus-visible,
.stv-hud-btn:hover,
.stv-hud-btn:focus-visible {
  outline: none;
  background: rgba(94, 232, 224, 0.16);
  border-color: var(--neon-teal);
  box-shadow: 0 0 14px rgba(94, 232, 224, 0.42);
}
.stv-hud-mod {
  border-color: rgba(232, 139, 200, 0.55);
  color: #ffd7f6;
}
.stv-hud-mod:hover,
.stv-hud-mod:focus-visible {
  background: rgba(232, 139, 200, 0.16);
  border-color: var(--neon-pink);
  box-shadow: 0 0 14px rgba(232, 139, 200, 0.42);
}

/* ============ Scene 1: Opening Remote Scene ============ */
.stv-opening {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(ellipse 65% 48% at 50% 62%, rgba(94, 232, 224, 0.14), rgba(180, 90, 255, 0.12) 48%, transparent 74%),
    linear-gradient(180deg, #04050a 0%, #090b16 65%, #05060b 100%);
  transition: opacity 0.35s var(--ease);
}
.stv-opening[hidden] { display: none; }
.stv-opening.is-powering { opacity: 0; }

.stv-open-top {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.35rem;
}

.stv-open-stage {
  position: relative;
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  padding: 0.5rem 1rem 2.2rem;
}

.stv-floor-grid {
  position: absolute;
  left: -15%;
  right: -15%;
  bottom: 0;
  height: 58%;
  background-image:
    linear-gradient(90deg, rgba(0, 240, 255, 0.09) 1px, transparent 1px),
    linear-gradient(0deg, rgba(212, 160, 255, 0.08) 1px, transparent 1px);
  background-size: 76px 40px;
  transform: perspective(420px) rotateX(62deg);
  transform-origin: 50% 0%;
  opacity: 0.55;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 100%);
}
.stv-floor-glow {
  position: absolute;
  width: min(34rem, 90vw);
  height: 15rem;
  bottom: 12%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(93, 255, 110, 0.2), rgba(0, 240, 255, 0.16) 45%, rgba(212, 160, 255, 0.14) 68%, transparent 78%);
  filter: blur(28px);
  pointer-events: none;
}

.stv-remote-launch {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 0.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
  transition: transform 0.35s var(--ease);
}
.stv-remote-launch:hover,
.stv-remote-launch:focus-visible {
  outline: none;
  transform: translateY(-4px);
}
.stv-remote-launch:focus-visible .stv-play-badge {
  box-shadow: 0 0 0 2px #5dff6e, 0 0 32px rgba(93, 255, 110, 0.65);
}

.stv-remote-figure {
  position: relative;
  display: block;
  width: min(21rem, 68vw);
  max-height: 60vh;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 76% 80% at 50% 50%, #000 44%, rgba(0, 0, 0, 0.55) 74%, transparent 98%);
  mask-image: radial-gradient(ellipse 76% 80% at 50% 50%, #000 44%, rgba(0, 0, 0, 0.55) 74%, transparent 98%);
  filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 28px rgba(0, 240, 255, 0.2));
}
.stv-remote-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.stv-remote-hotspot {
  position: absolute;
  left: 50%;
  top: 47.5%;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(110, 255, 140, 0.75);
  box-shadow: 0 0 22px rgba(93, 255, 110, 0.8);
  animation: stv-pulse-ring 2.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes stv-pulse-ring {
  0%, 100% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.18); opacity: 1; }
}

.stv-play-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 2.1rem;
  background:
    linear-gradient(180deg, rgba(10, 22, 18, 0.96), rgba(6, 10, 18, 0.94)) padding-box,
    linear-gradient(135deg, #5dff6e, #00f0ff 55%, #e88bc8) border-box;
  border: 1.5px solid transparent;
  border-radius: 2px;
  box-shadow: 0 0 24px rgba(93, 255, 110, 0.35), 0 0 36px rgba(0, 240, 255, 0.22);
  transition: box-shadow 0.25s var(--ease);
}
.stv-play-badge::before {
  content: "";
  position: absolute;
  inset: 4px;
  background:
    linear-gradient(#5dff6e, #5dff6e) top left / 8px 1.5px no-repeat,
    linear-gradient(#5dff6e, #5dff6e) top left / 1.5px 8px no-repeat,
    linear-gradient(#e88bc8, #e88bc8) bottom right / 8px 1.5px no-repeat,
    linear-gradient(#e88bc8, #e88bc8) bottom right / 1.5px 8px no-repeat;
}
.stv-play-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: #6aff7e;
  box-shadow: 0 0 12px #5dff6e;
}
.stv-play-word {
  font-family: var(--font-hud, var(--font-display));
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.28em;
  color: #e9fff0;
  text-shadow: 0 0 12px rgba(93, 255, 110, 0.85);
}
.stv-play-hint {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(208, 228, 240, 0.72);
}

/* ============ Scene 2: Galaxy + Crusty Dripping TV Room ============ */
.stv-room {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 1.25rem 3.2rem;
  overflow-x: clip;
  background: #03040b;
}
.stv-room[hidden] { display: none; }

.stv-galaxy-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 65% at 50% 48%, rgba(84, 38, 145, 0.22), transparent 68%),
    url("/tv/media/slop-tv-galaxy.webp") center 46% / cover no-repeat,
    #03040b;
  opacity: 0.88;
}

.stv-topbar,
.stv-console,
.stv-admin {
  position: relative;
  z-index: 2;
}

.stv-topbar {
  max-width: 78rem;
  width: 100%;
  margin: 0 auto;
  padding: 0.85rem 0 0.95rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(164, 118, 255, 0.24);
}
.stv-topbar-left,
.stv-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stv-console {
  max-width: 76rem;
  width: 100%;
  margin: 1.15rem auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17.5rem;
  gap: 1.4rem;
  align-items: start;
}

.stv-tv-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

/* Photographic SLOPCABLE cable box sitting on the crusty TV */
.stv-cablebox {
  position: relative;
  z-index: 5;
  width: min(86%, 38rem);
  margin: 0 auto -4.35rem;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  display: block;
  container-type: inline-size;
  container-name: cablebox;
}
.stv-cablebox-img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

/* Live VFD readout — percentages from slop-tv-cablebox.webp (1082x542) */
.stv-vfd {
  position: absolute;
  left: 32.15%;
  top: 41.15%;
  width: 36.1%;
  height: 16.7%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  padding: 0 0.6%;
}
.stv-vfd-text {
  font-family: "VT323", "DM Mono", ui-monospace, monospace;
  font-size: clamp(0.72rem, 7.1cqw, 1.7rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1;
  color: #7dff62;
  text-shadow:
    0 0 2px #7dff62,
    0 0 8px rgba(80, 255, 70, 0.95),
    0 0 16px rgba(40, 200, 40, 0.45);
  white-space: nowrap;
}

/* Transparent hit target over the orange submit button + blinking glow */
.stv-submit-hotspot {
  position: absolute;
  left: 80.68%;
  top: 66.6%;
  width: 10.54%;
  height: 15.13%;
  padding: 0;
  border: 0;
  border-radius: 14%;
  background: transparent;
  cursor: pointer;
  z-index: 3;
}
.stv-submit-hotspot:focus-visible {
  outline: 2px solid #ffe14d;
  outline-offset: 3px;
}
.stv-submit-glow {
  position: absolute;
  inset: -14%;
  border-radius: 16%;
  box-shadow:
    0 0 8px 3px rgba(255, 150, 40, 0.7),
    0 0 18px 7px rgba(255, 110, 20, 0.42);
  animation: stv-submit-pulse 1.15s ease-in-out infinite;
  pointer-events: none;
}
@keyframes stv-submit-pulse {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.4; filter: brightness(1.35); }
}
.stv-submit-hotspot:hover .stv-submit-glow,
.stv-submit-hotspot:focus-visible .stv-submit-glow {
  opacity: 1;
  box-shadow:
    0 0 12px 4px rgba(255, 190, 70, 0.85),
    0 0 22px 8px rgba(255, 130, 30, 0.55);
}

/* Crusty dripping TV container mapped directly to slop-tv-frame.webp (1000x1075) */
.stv-tv-unit {
  position: relative;
  width: min(44rem, 100%);
  aspect-ratio: 1000 / 1075;
  user-select: none;
}

.stv-tv-screen {
  position: absolute;
  left: 10.6%;
  top: 10.2%;
  width: 69.8%;
  height: 55.6%;
  z-index: 1;
  border-radius: 26px;
  background: radial-gradient(circle at 50% 45%, #121024 0%, #04050a 84%);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(164, 118, 255, 0.4) rgba(5, 6, 11, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0.55rem 0.65rem;
}

.stv-embed-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.stv-embed-wrap .twitter-tweet {
  margin: 0 auto !important;
}

.stv-scanlines {
  position: sticky;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: none;
}

.stv-osd {
  position: sticky;
  top: 0.25rem;
  align-self: flex-start;
  z-index: 4;
  max-width: calc(100% - 0.5rem);
  padding: 0.38rem 0.68rem;
  margin-bottom: 0.35rem;
  background: rgba(5, 8, 18, 0.94);
  border: 1px solid var(--neon-teal);
  border-radius: 2px;
  font-family: var(--font-hud, var(--font-display));
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: #dffaff;
  box-shadow: 0 0 18px rgba(94, 232, 224, 0.45);
  pointer-events: none;
}
.stv-osd[hidden] { display: none; }

.stv-tv-frame-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

/* Interactive hotspots mapped onto the TV's 2 knobs & 8 colored buttons */
.stv-tv-hotspots {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.stv-spot {
  position: absolute;
  left: 86.4%;
  transform: translate(-50%, -50%);
  padding: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}
.stv-spot:hover,
.stv-spot:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.85);
  transform: translate(-50%, -50%) scale(1.1);
}
.stv-spot.is-on {
  border-color: #ffffff;
  box-shadow: 0 0 16px #6aff7e, 0 0 24px rgba(255, 255, 255, 0.6);
}
.stv-spot-knob { width: 7.5%; aspect-ratio: 1; }
.stv-spot-btn { width: 4.7%; aspect-ratio: 1; }

.stv-k-vol { top: 12.0%; }
.stv-k-ch { top: 19.8%; }
.stv-b-red { top: 27.6%; }
.stv-b-blue { top: 32.3%; }
.stv-b-yellow { top: 37.3%; }
.stv-b-green { top: 42.1%; }
.stv-b-orange { top: 47.1%; }
.stv-b-purple { top: 52.0%; }
.stv-b-black { top: 56.8%; }
.stv-b-white { top: 61.9%; }

.stv-state-msg {
  margin: 0;
  color: rgba(215, 230, 242, 0.78);
  font-size: 0.9rem;
  text-align: center;
}

.stv-fallback-card {
  width: 100%;
  padding: 1.1rem 1rem;
  background: rgba(10, 14, 26, 0.88);
  border: 1px solid rgba(94, 232, 224, 0.38);
  border-radius: 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}
.stv-fallback-card strong {
  font-family: var(--font-hud, var(--font-display));
  color: var(--neon-teal);
  font-size: 0.92rem;
}
.stv-fallback-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Channel arrows left/right of the HUD placard */
.stv-ch-row {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  width: min(44rem, 100%);
  margin-top: -1rem;
  min-width: 0;
}
.stv-ch-arrow {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
  color: inherit;
}
.stv-ch-arrow-art {
  position: relative;
  display: block;
  height: 40px;
  width: fit-content;
  max-width: 36px;
  line-height: 0;
  pointer-events: none;
  transition: filter 0.18s ease, transform 0.12s ease;
}
.stv-ch-arrow-art img {
  width: auto;
  height: 40px;
  max-width: 36px;
  display: block;
  user-select: none;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.85));
}
.stv-ch-arrow-neon {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.stv-ch-arrow-neon path {
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.stv-neon-halo { stroke-width: 8; }
.stv-neon-tube { stroke-width: 2.6; }
.stv-neon-core { stroke-width: 0.95; }

/* Prev = slime green neon tube; next = slime purple. Stronger purple bloom so it reads on the galaxy. */
#stv-ch-arrow-prev .stv-neon-halo { stroke: #39ff6a; opacity: 0.5; }
#stv-ch-arrow-prev .stv-neon-tube { stroke: #39ff6a; }
#stv-ch-arrow-prev .stv-neon-core { stroke: #e9ffe9; opacity: 0.9; }
#stv-ch-arrow-prev .stv-ch-arrow-neon {
  filter:
    drop-shadow(0 0 3px #39ff6a)
    drop-shadow(0 0 8px rgba(57, 255, 106, 0.95))
    drop-shadow(0 0 16px rgba(57, 255, 106, 0.6));
}
#stv-ch-arrow-next .stv-neon-halo { stroke: #b44cff; stroke-width: 9; opacity: 0.65; }
#stv-ch-arrow-next .stv-neon-tube { stroke: #b44cff; stroke-width: 2.8; }
#stv-ch-arrow-next .stv-neon-core { stroke: #f3e8ff; opacity: 0.95; }
#stv-ch-arrow-next .stv-ch-arrow-neon {
  filter:
    drop-shadow(0 0 4px #d28cff)
    drop-shadow(0 0 10px rgba(180, 76, 255, 1))
    drop-shadow(0 0 22px rgba(180, 76, 255, 0.85))
    drop-shadow(0 0 32px rgba(180, 76, 255, 0.45));
}

#stv-ch-arrow-prev:hover .stv-ch-arrow-art,
#stv-ch-arrow-prev:focus-visible .stv-ch-arrow-art,
#stv-ch-arrow-next:hover .stv-ch-arrow-art,
#stv-ch-arrow-next:focus-visible .stv-ch-arrow-art {
  transform: scale(1.07);
}
#stv-ch-arrow-prev:hover .stv-ch-arrow-neon,
#stv-ch-arrow-prev:focus-visible .stv-ch-arrow-neon {
  filter:
    drop-shadow(0 0 4px #39ff6a)
    drop-shadow(0 0 12px rgba(57, 255, 106, 1))
    drop-shadow(0 0 24px rgba(57, 255, 106, 0.85));
}
#stv-ch-arrow-next:hover .stv-ch-arrow-neon,
#stv-ch-arrow-next:focus-visible .stv-ch-arrow-neon {
  filter:
    drop-shadow(0 0 5px #e0b3ff)
    drop-shadow(0 0 14px rgba(180, 76, 255, 1))
    drop-shadow(0 0 28px rgba(180, 76, 255, 1))
    drop-shadow(0 0 40px rgba(180, 76, 255, 0.7));
}
#stv-ch-arrow-prev:focus-visible {
  outline: 2px solid #39ff6a;
  outline-offset: 2px;
}
#stv-ch-arrow-next:focus-visible {
  outline: 2px solid #b44cff;
  outline-offset: 2px;
}
#stv-ch-arrow-prev:active .stv-ch-arrow-art,
#stv-ch-arrow-next:active .stv-ch-arrow-art {
  transform: scale(0.94);
}
#stv-ch-arrow-prev:active .stv-ch-arrow-neon {
  filter:
    drop-shadow(0 0 4px #39ff6a)
    drop-shadow(0 0 14px rgba(57, 255, 106, 1))
    drop-shadow(0 0 26px rgba(57, 255, 106, 0.9));
}
#stv-ch-arrow-next:active .stv-ch-arrow-neon {
  filter:
    drop-shadow(0 0 5px #e0b3ff)
    drop-shadow(0 0 16px rgba(180, 76, 255, 1))
    drop-shadow(0 0 32px rgba(180, 76, 255, 1));
}

/* HUD Placard below TV */
.stv-placard {
  position: relative;
  z-index: 5;
  width: min(44rem, 100%);
  margin-left: 0;
  margin-top: -1rem;
}
.stv-ch-row .stv-placard {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  margin-top: 0;
}
.stv-placard-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}
.stv-pl-ch {
  font-family: var(--font-hud, var(--font-display));
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #6aff7e;
}
.stv-pl-cats {
  font-family: var(--font-hud, var(--font-display));
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon-pink);
}
.stv-pl-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-hud, var(--font-display));
  font-size: 0.98rem;
  color: var(--neon-teal);
}
.stv-pl-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.84rem;
}
.stv-pl-meta a {
  color: #dffaff;
  text-decoration: none;
  border-bottom: 1px solid rgba(94, 232, 224, 0.4);
}
.stv-pl-meta a:hover,
.stv-pl-meta a:focus-visible {
  color: var(--neon-pink);
  border-bottom-color: var(--neon-pink);
  outline: none;
}

/* Side Control Panel matching the 2 knobs + 8 colored TV buttons */
.stv-side-panel {
  padding: 1rem 0.95rem 1.05rem;
  background:
    linear-gradient(165deg, rgba(20, 18, 32, 0.94), rgba(8, 9, 16, 0.95)) padding-box,
    linear-gradient(155deg, rgba(176, 86, 255, 0.65), rgba(94, 232, 224, 0.5) 55%, rgba(106, 255, 126, 0.6)) border-box;
  border: 1.5px solid transparent;
  border-radius: 10px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.82), 0 0 28px rgba(176, 86, 255, 0.16);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.stv-panel-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-hud, var(--font-display));
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #d4e8f8;
}
.stv-panel-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #6aff7e;
  box-shadow: 0 0 8px #5dff6e;
}
.stv-auto-chip {
  margin-left: auto;
  padding: 0.12rem 0.38rem;
  border: 1px solid #6aff7e;
  border-radius: 2px;
  font-size: 0.52rem;
  color: #6aff7e;
}

.stv-knob-controls {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.stv-knob-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.55rem 0.6rem;
  background: rgba(5, 6, 12, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}
.stv-knob-tag {
  font-family: var(--font-hud, var(--font-display));
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.stv-knob-btns {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}
.stv-pbtn {
  flex: 1 1 auto;
  padding: 0.4rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, #272938, #13141d);
  color: #f0f8ff;
  font-family: var(--font-hud, var(--font-display));
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.stv-pbtn:hover,
.stv-pbtn:focus-visible {
  outline: none;
  border-color: var(--neon-teal);
  box-shadow: 0 0 10px rgba(94, 232, 224, 0.35);
}
.stv-ch-led {
  min-width: 2.1rem;
  text-align: center;
  font-family: var(--font-hud, var(--font-display));
  font-size: 0.78rem;
  font-weight: 800;
  color: #6aff7e;
  text-shadow: 0 0 8px rgba(93, 255, 110, 0.65);
}
.stv-vol-note {
  margin: -0.2rem 0 0;
  font-size: 0.68rem;
  color: rgba(188, 206, 220, 0.7);
}

.stv-cat-legend {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
}
.stv-cbtn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 14, 22, 0.82);
  color: #e2effa;
  font-family: var(--font-hud, var(--font-display));
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.stv-cbtn:hover,
.stv-cbtn:focus-visible {
  outline: none;
  border-color: var(--neon-teal);
}
.stv-cbtn.is-on,
.stv-cbtn[aria-pressed="true"] {
  border-color: #6aff7e;
  background: rgba(24, 62, 38, 0.75);
  box-shadow: 0 0 14px rgba(93, 255, 110, 0.32);
}

.stv-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4);
}
.stv-dot-red { background: #dc2626; }
.stv-dot-blue { background: #2563eb; }
.stv-dot-yellow { background: #eab308; }
.stv-dot-green { background: #22c55e; }
.stv-dot-orange { background: #ea580c; }
.stv-dot-purple { background: #9333ea; }
.stv-dot-black { background: #141418; }
.stv-dot-white { background: #e5e7eb; }
.stv-dot-gold {
  background: radial-gradient(circle at 35% 30%, #fff3b0, #ffe14d 45%, #c49212 100%);
  border-color: rgba(255, 225, 77, 0.7);
  box-shadow: 0 0 8px rgba(255, 210, 80, 0.7);
}
.stv-dot-all {
  background: conic-gradient(#dc2626, #2563eb, #eab308, #22c55e, #ea580c, #9333ea, #141418, #e5e7eb, #dc2626);
}
.stv-dot-auto {
  background: transparent;
  border: 2px dashed #6aff7e;
  box-shadow: none;
}
.stv-dot-power {
  background: transparent;
  border: 2px solid rgba(210, 220, 230, 0.75);
  box-shadow: none;
}

.stv-cbtn-cartoons.is-on,
.stv-cbtn-cartoons[aria-pressed="true"] {
  border-color: #ffe14d;
  background: rgba(62, 46, 8, 0.78);
  box-shadow: 0 0 16px rgba(255, 210, 80, 0.4);
  color: #ffe9a8;
}

.stv-dot-horror {
  background: radial-gradient(circle at 35% 30%, #f87171, #991b1b 52%, #450a0a 100%);
  border-color: rgba(185, 28, 28, 0.8);
  box-shadow: 0 0 8px rgba(185, 28, 28, 0.65);
}
.stv-cbtn-horror.is-on,
.stv-cbtn-horror[aria-pressed="true"] {
  border-color: #ef4444;
  background: rgba(69, 10, 10, 0.84);
  box-shadow: 0 0 16px rgba(185, 28, 28, 0.4);
  color: #fecaca;
}

.stv-dot-adfree {
  background: transparent;
  border: 2px solid rgba(94, 232, 224, 0.7);
  box-shadow: none;
}
.stv-cbtn-adfree.is-on .stv-dot-adfree,
.stv-cbtn-adfree[aria-pressed="true"] .stv-dot-adfree {
  background: #5ee8e0;
  border-color: #9ff7f2;
  box-shadow: 0 0 8px rgba(94, 232, 224, 0.95), 0 0 16px rgba(94, 232, 224, 0.55);
}
.stv-cbtn-adfree.is-on,
.stv-cbtn-adfree[aria-pressed="true"] {
  border-color: #5ee8e0;
  background: rgba(8, 46, 44, 0.86);
  box-shadow: 0 0 16px rgba(94, 232, 224, 0.45);
  color: #b9fff9;
}


.stv-panel-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.58rem 0.75rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 90, 226, 0.72);
  background: linear-gradient(180deg, #21122b, #0e0814);
  color: #ffe3fa;
  font-family: var(--font-hud, var(--font-display));
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.stv-panel-submit:hover,
.stv-panel-submit:focus-visible {
  outline: none;
  border-color: #6aff7e;
  box-shadow: 0 0 16px rgba(106, 255, 126, 0.45);
}

/* Moderator drawer */
.stv-admin {
  max-width: 76rem;
  width: 100%;
  margin: 1.8rem auto 0;
}
.stv-admin[hidden] { display: none; }
.stv-admin-inner {
  padding: 1.15rem 1.25rem;
  background: rgba(12, 14, 24, 0.92);
  border: 1px solid rgba(232, 139, 200, 0.45);
  border-radius: 4px;
}
.stv-admin-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}
.stv-admin-bar h3 {
  margin: 0;
  font-family: var(--font-hud, var(--font-display));
  font-size: 0.9rem;
  color: var(--neon-pink);
}
.stv-admin-note {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.stv-admin-keywrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.stv-admin-keywrap input {
  padding: 0.42rem 0.65rem;
  background: rgba(5, 7, 14, 0.9);
  border: 1px solid rgba(94, 232, 224, 0.35);
  color: var(--text);
  font-family: var(--font-body);
}
.stv-admin-status {
  margin: 0.75rem 0 0;
  min-height: 1.2em;
  color: var(--neon-teal);
  font-size: 0.84rem;
}
.stv-admin-list {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.65rem;
}
.stv-admin-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.7rem 0.85rem;
  background: rgba(5, 7, 14, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.stv-admin-row a { color: var(--neon-teal); word-break: break-all; }
.stv-admin-row-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.stv-admin-pill {
  display: inline-block;
  padding: 0.1rem 0.42rem;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  margin-right: 0.4rem;
}
.stv-admin-pill.is-approved { color: #6aff7e; }
.stv-admin-pill.is-pending { color: #ffe14d; }
.stv-admin-pill.is-rejected { color: #ff7a9a; }
.stv-admin-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ============ Submission Modal ============ */
.stv-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  overflow-y: auto;
  background: rgba(4, 6, 12, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.stv-modal[hidden] { display: none; }
.stv-modal-card {
  position: relative;
  width: min(36rem, 100%);
  padding: 1.6rem 1.5rem 1.7rem;
  background:
    linear-gradient(180deg, rgba(12, 16, 28, 0.98), rgba(7, 9, 16, 0.98)) padding-box,
    linear-gradient(135deg, #00f0ff, #d4a0ff 55%, #ff5ae2) border-box;
  border: 1.5px solid transparent;
  border-radius: 3px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.9), 0 0 34px rgba(0, 240, 255, 0.25);
}
.stv-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 90, 226, 0.6);
  background: rgba(12, 14, 24, 0.9);
  color: #ffd7f6;
  font-family: var(--font-hud, var(--font-display));
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.stv-modal-kicker {
  margin: 0 0 0.35rem;
  padding-right: 6.5rem;
  font-family: var(--font-hud, var(--font-display));
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--neon-pink);
}
.stv-modal-card h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-hud, var(--font-display));
  font-size: 1.25rem;
  color: #f2fbff;
}
.stv-modal-lede {
  margin: 0 0 1.15rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.stv-form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}
.stv-cats-field {
  margin: 0;
  padding: 0.8rem 0.9rem 0.9rem;
  border: 1px solid rgba(110, 213, 206, 0.24);
  background: rgba(6, 8, 14, 0.55);
}
.stv-cats-field legend {
  padding: 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.stv-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.stv-check-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.72rem;
  border: 1px solid rgba(110, 213, 206, 0.28);
  background: rgba(14, 18, 30, 0.85);
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text);
}
.stv-check-pill input {
  width: 1rem;
  height: 1rem;
  accent-color: #6aff7e;
}
.stv-check-pill:has(input:checked) {
  border-color: #6aff7e;
  background: rgba(24, 64, 38, 0.65);
  box-shadow: 0 0 12px rgba(93, 255, 110, 0.28);
}
.stv-check-cartoons:has(input:checked) {
  border-color: #ffe14d;
  background: rgba(62, 46, 8, 0.7);
  box-shadow: 0 0 12px rgba(255, 210, 80, 0.32);
}
.stv-form-note {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}

.stv-form-msg {
  margin: 0;
  padding: 0.7rem 0.85rem;
  font-size: 0.88rem;
  border: 1px solid var(--neon-teal);
  background: rgba(94, 232, 224, 0.1);
  color: #e4fcfa;
}
.stv-form-msg.is-error {
  border-color: var(--neon-pink);
  background: rgba(232, 139, 200, 0.12);
  color: #ffd9f4;
}
.stv-form-actions .btn {
  width: 100%;
  color: #061212;
}

/* Mobile layout: TV + cable box on top, controls stack neatly underneath */
@media (max-width: 900px) {
  .stv-open-top { padding: 0.85rem 0.9rem; }
  .stv-remote-figure { width: min(17.5rem, 74vw); max-height: 55vh; }
  .stv-room { padding: 0 0.75rem 2.5rem; }
  .stv-console {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    margin-top: 0.9rem;
  }
  .stv-cablebox {
    width: min(100%, 28rem);
    margin-bottom: -2.55rem;
  }
  .stv-vfd-text { letter-spacing: 0.03em; }
  .stv-cbtn-all,
  .stv-cbtn-cartoons,
  .stv-cbtn-adfree { grid-column: 1 / -1; }
  .stv-tv-screen {
    border-radius: 14px;
    padding: 0.45rem;
  }
  .stv-ch-row { margin-top: -0.45rem; }
  .stv-placard { margin-top: -0.45rem; }
  .stv-ch-row .stv-placard { margin-top: 0; }
  .stv-cat-legend {
    grid-template-columns: 1fr 1fr;
  }
  .stv-modal { padding: 0.75rem; }
  .stv-modal-card { padding: 1.35rem 1rem 1.35rem; }
}

@media (max-width: 480px) {
  .stv-tv-screen { padding: 0.35rem 0.2rem; }
  .stv-pl-title { font-size: 0.88rem; }
  .stv-pl-ch { font-size: 0.62rem; }
  .stv-pl-cats { font-size: 0.56rem; }
  .stv-pl-meta { font-size: 0.78rem; gap: 0.4rem; }
}

@media (min-width: 720px) {
  .stv-ch-row { gap: 0.4rem; }
  .stv-ch-arrow {
    width: 52px;
    min-width: 52px;
    min-height: 52px;
    height: 52px;
  }
  .stv-ch-arrow-art {
    height: 48px;
    max-width: 44px;
  }
  .stv-ch-arrow-art img {
    height: 48px;
    max-width: 44px;
  }
}

/* ============ Spicy 18+ age gate ============ */
.stv-spicy-gate {
  z-index: 90;
}
.stv-spicy-card {
  width: min(28rem, 100%);
  background:
    linear-gradient(180deg, rgba(22, 12, 8, 0.98), rgba(8, 6, 10, 0.98)) padding-box,
    linear-gradient(135deg, #ea580c, #ff5ae2 55%, #00f0ff) border-box;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.9), 0 0 34px rgba(234, 88, 12, 0.35);
}
.stv-spicy-kicker {
  padding-right: 0;
  color: #ffb347;
  letter-spacing: 0.2em;
}
.stv-spicy-card h2 {
  color: #ffe8d2;
  text-shadow: 0 0 14px rgba(234, 88, 12, 0.65);
  letter-spacing: 0.04em;
}
.stv-spicy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.25rem;
}
.stv-spicy-enter {
  flex: 1 1 12rem;
  color: #1a1008;
  background: #ffb347;
  border-color: #ffb347;
}
.stv-spicy-enter:hover,
.stv-spicy-enter:focus-visible {
  background: #6aff7e;
  border-color: #6aff7e;
  outline: none;
}
.stv-spicy-leave {
  flex: 1 1 7rem;
  justify-content: center;
}

/* ============ Category artist logo row + panel ============ */
.stv-artists {
  width: min(44rem, 100%);
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.85rem 0.9rem;
  background:
    linear-gradient(165deg, rgba(20, 18, 32, 0.94), rgba(8, 9, 16, 0.95)) padding-box,
    linear-gradient(155deg, rgba(94, 232, 224, 0.55), rgba(232, 139, 200, 0.45) 60%, rgba(255, 179, 71, 0.5)) border-box;
  border: 1.5px solid transparent;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 22px rgba(94, 232, 224, 0.12);
}
.stv-artists-head {
  margin: 0 0 0.55rem;
}
.stv-artists-kicker {
  font-family: var(--font-hud, var(--font-display));
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neon-teal);
  text-shadow: 0 0 8px rgba(94, 232, 224, 0.45);
}
.stv-artists-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: flex-start;
}
.stv-artist-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  width: 5.4rem;
  padding: 0.2rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #e8f4ff;
  cursor: pointer;
  font-family: var(--font-hud, var(--font-display));
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.25;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.stv-video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #05060b;
}
.stv-video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 6px;
}
.stv-artist-tile span {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
}
.stv-artist-tile img {
  width: 4.6rem;
  height: 4.6rem;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(94, 232, 224, 0.55);
  background: #05060b;
  box-shadow: 0 0 12px rgba(94, 232, 224, 0.28);
  display: block;
}
.stv-artist-tile:hover,
.stv-artist-tile:focus-visible {
  outline: none;
  border-color: var(--neon-teal);
  box-shadow: 0 0 14px rgba(94, 232, 224, 0.35);
  transform: translateY(-1px);
}
.stv-artist-tile.is-on,
.stv-artist-tile[aria-pressed="true"] {
  border-color: #ffb347;
}
.stv-artist-tile.is-on img,
.stv-artist-tile[aria-pressed="true"] img {
  border-color: #ffb347;
  box-shadow: 0 0 16px rgba(255, 179, 71, 0.55);
}

.stv-artist-tile.is-wide {
  width: 8.8rem;
}
.stv-artist-tile.is-wide img,
.stv-artist-tile.is-wide img.is-wide {
  width: 8.4rem;
  height: 2.9rem;
  object-fit: contain;
  object-position: center;
  border-radius: 4px;
  background: #05060b;
}
.stv-artists-empty {
  margin: 0.15rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}
.stv-artists-empty button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--neon-pink);
  font: inherit;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.stv-artists-empty button:hover,
.stv-artists-empty button:focus-visible {
  color: var(--neon-teal);
  outline: none;
}

.stv-artist-panel {
  margin-top: 0.85rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(94, 232, 224, 0.35);
  border-radius: 6px;
  background: rgba(5, 7, 14, 0.78);
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-items: flex-start;
}
.stv-artist-panel[hidden] { display: none; }
.stv-artist-panel-logo {
  width: 5.2rem;
  height: 5.2rem;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--neon-teal);
  box-shadow: 0 0 14px rgba(94, 232, 224, 0.4);
  background: #05060b;
  flex: 0 0 auto;
}

.stv-artist-panel.is-wide .stv-artist-panel-logo.is-wide {
  width: min(16.5rem, 100%);
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
  background: #05060b;
  flex: 1 1 100%;
}
.stv-artist-panel-body {
  flex: 1 1 14rem;
  min-width: 0;
}
.stv-artist-panel-body h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-hud, var(--font-display));
  font-size: 0.98rem;
  color: var(--neon-teal);
  text-shadow: 0 0 8px rgba(94, 232, 224, 0.4);
}

.stv-artist-location {
  margin: -0.25rem 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.stv-artist-bio {
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 300;
  color: rgba(232, 244, 255, 0.86);
}
.stv-artist-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.stv-artist-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.7rem;
  border: 1px solid rgba(94, 232, 224, 0.55);
  border-radius: 3px;
  background: rgba(10, 16, 28, 0.9);
  color: #e8fbff;
  font-family: var(--font-hud, var(--font-display));
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.stv-artist-links a:hover,
.stv-artist-links a:focus-visible {
  outline: none;
  border-color: #ffb347;
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 179, 71, 0.4);
}
.stv-artist-panel-close {
  margin-left: auto;
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .stv-artists { width: 100%; margin-top: 0.7rem; }
  .stv-artists-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(94, 232, 224, 0.4) rgba(5, 6, 11, 0.7);
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stv-opening { transition: none; }
  .stv-remote-hotspot,
  .stv-blink-led,
  .stv-submit-glow { animation: none; }
  .stv-spicy-gate,
  .stv-spicy-card,
  .stv-spicy-enter { transition: none; }
  .stv-artist-tile { transition: none; }
}

/* Multi-source player: video fill + post-card frame + screen HUD */
.stv-screen-hud {
  position: absolute;
  left: 0.4rem;
  right: 0.4rem;
  bottom: 0.45rem;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.4rem;
  pointer-events: none;
}
.stv-screen-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-hud, var(--font-display));
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #5ee8e0;
  background: rgba(5, 8, 18, 0.92);
  border: 1px solid #5ee8e0;
  border-radius: 2px;
  padding: 0.38rem 0.62rem;
  box-shadow: 0 0 10px rgba(94, 232, 224, 0.35);
  cursor: pointer;
  line-height: 1;
}
.stv-screen-btn:hover,
.stv-screen-btn:focus-visible {
  color: #05060b;
  background: #5ee8e0;
  outline: none;
}
.stv-screen-btn[hidden] { display: none !important; }
.stv-screen-hud[hidden] { display: none !important; }

.stv-tv-screen.is-video {
  overflow: hidden;
  padding: 0;
  display: block;
}
.stv-tv-screen.is-video .stv-embed-wrap,
.stv-tv-screen.is-video .stv-video-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: inherit;
}
.stv-tv-screen.is-video .stv-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
}
.stv-tv-screen.is-video .stv-video-embed video,
.stv-native-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  object-fit: contain;
  background: #05060b;
}

.stv-tv-screen.is-video .stv-osd {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  margin: 0;
}
.stv-tv-screen.is-card {
  overflow-y: auto;
}
.stv-postcard {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto 2.4rem;
  padding: 0.4rem;
  border: 1px solid rgba(94, 232, 224, 0.45);
  border-radius: 6px;
  background: rgba(4, 6, 14, 0.85);
  box-shadow: 0 0 16px rgba(94, 232, 224, 0.12), inset 0 0 20px rgba(5, 8, 18, 0.5);
}
.stv-postcard iframe,
.stv-postcard .instagram-media,
.stv-postcard .twitter-tweet {
  margin: 0 auto !important;
  max-width: 100% !important;
}
.stv-tv-screen:fullscreen,
.stv-tv-screen:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  left: 0;
  top: 0;
  border-radius: 0;
  background: #000;
  z-index: 200;
}

.stv-profiles-field {
  margin: 0.85rem 0 0;
  padding: 0.65rem 0 0;
  border: 0;
  border-top: 1px solid rgba(94, 232, 224, 0.25);
}
.stv-profiles-field legend {
  font-family: var(--font-hud, var(--font-display));
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #5ee8e0;
  padding: 0;
}
.stv-profiles-field .opt {
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(232, 244, 255, 0.6);
  margin-left: 0.3rem;
  text-transform: lowercase;
}
.stv-profiles-field .hint {
  margin: 0.2rem 0 0.55rem;
}



.stv-artist-videos {
  list-style: none;
  margin: 0 0 0.7rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.stv-artist-videos-label {
  margin: 0 0 0.1rem;
  font-family: var(--font-hud, var(--font-display));
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.stv-artist-video {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 0.42rem 0.65rem;
  border: 1px solid rgba(94, 232, 224, 0.4);
  border-radius: 3px;
  background: rgba(10, 16, 28, 0.9);
  color: #e8fbff;
  font-family: var(--font-hud, var(--font-display));
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.stv-artist-video:hover,
.stv-artist-video:focus-visible {
  outline: none;
  border-color: #ffb347;
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 179, 71, 0.4);
}
.stv-artist-video.is-on,
.stv-artist-video[aria-current="true"] {
  border-color: var(--neon-teal);
  color: var(--neon-teal);
  box-shadow: 0 0 12px rgba(94, 232, 224, 0.35);
}

.stv-artist-empty {
  margin: 0.35rem 0 0.55rem;
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(232, 244, 255, 0.75);
}

/* Install app — unobtrusive row under the side-panel submit button */
.stv-install {
  margin-top: 0.65rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
}
.stv-install[hidden] { display: none !important; }
.stv-install-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.48rem 0.7rem;
  border-radius: 4px;
  border: 1px solid rgba(94, 232, 224, 0.42);
  background: rgba(8, 14, 24, 0.85);
  color: #c8fff9;
  font-family: var(--font-hud, var(--font-display));
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.stv-install-btn:hover,
.stv-install-btn:focus-visible {
  outline: none;
  border-color: #5ee8e0;
  box-shadow: 0 0 12px rgba(94, 232, 224, 0.28);
}
.stv-install-tip {
  margin: 0;
  font-family: system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--muted, #9a9198);
  text-align: center;
}
.stv-install-tip[hidden] { display: none !important; }

/* Standalone / installed app: safe areas, keep the opening remote screen */
@media (display-mode: standalone), (display-mode: fullscreen) {
  .stv-install { display: none !important; }
  .stv-body {
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .stv-open-top,
  .stv-topbar {
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }
}

/* Legal links + longer rights checkbox */
.stv-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  justify-content: center;
  margin: 0.85rem 0 0;
  padding: 0;
}
.stv-legal a {
  color: var(--muted, #9aa7b8);
  text-decoration: none;
  font-family: var(--font-hud, var(--font-display));
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.stv-legal a:hover,
.stv-legal a:focus-visible {
  color: var(--neon-teal);
  outline: none;
}
.stv-legal-open {
  margin: 0;
  margin-left: auto;
  justify-content: flex-end;
}
.stv-open-top {
  flex-wrap: wrap;
}
.stv-form .check label,
.stv-form .field.check label {
  align-items: flex-start;
  display: flex;
  gap: 0.5rem;
  line-height: 1.45;
}
.stv-form .check a {
  color: var(--neon-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.stv-token-note {
  margin-top: 0.35rem;
}

/* Hide the TV form honeypot (styles.css .hp is not loaded on /tv/). */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
