/* =========================================================
   WWF ATTITUDE TV — friendly, phone-first layout
   ========================================================= */
:root {
  --bg: #0a0a0c;
  --panel: #121218;
  --panel-2: #1a1a22;
  --line: rgba(255, 255, 255, 0.08);
  --gold: #ffcc00;
  --green: #39ff14;
  --text: #f4f4f7;
  --muted: #9a9aab;

  /* Default Theme: Radioactive Glow-in-the-dark Neon Green */
  --accent: #19ff45;
  --accent-rgb: 25, 255, 69;
  --accent-glow: rgba(25, 255, 69, 0.65);
  --accent-gradient: linear-gradient(135deg, #19ff45 0%, #00a827 100%);
  --accent-border: #75ff8f;
  --accent-text: #031406;
  --accent-light: rgba(3, 20, 6, 0.75);
  --welcome-bg: radial-gradient(circle at 50% 20%, #0a240f 0%, #050a06 75%);
}

/* 🟢 Radioactive Glow (DX Lime) */
[data-theme="toxic"] {
  --accent: #19ff45;
  --accent-rgb: 25, 255, 69;
  --accent-glow: rgba(25, 255, 69, 0.65);
  --accent-gradient: linear-gradient(135deg, #19ff45 0%, #00a827 100%);
  --accent-border: #75ff8f;
  --accent-text: #031406;
  --accent-light: rgba(3, 20, 6, 0.75);
  --welcome-bg: radial-gradient(circle at 50% 20%, #0a240f 0%, #050a06 75%);
}

/* 🟡 Electric Gold & Yellow */
[data-theme="yellow"] {
  --accent: #ffdb1a;
  --accent-rgb: 255, 219, 26;
  --accent-glow: rgba(255, 219, 26, 0.65);
  --accent-gradient: linear-gradient(135deg, #ffdb1a 0%, #c49200 100%);
  --accent-border: #ffe866;
  --accent-text: #171200;
  --accent-light: rgba(23, 18, 0, 0.75);
  --welcome-bg: radial-gradient(circle at 50% 20%, #241e06 0%, #0a0906 75%);
}

/* 🔴 Attitude Red (RAW is WAR) */
[data-theme="red"] {
  --accent: #ff1a2b;
  --accent-rgb: 255, 26, 43;
  --accent-glow: rgba(255, 26, 43, 0.5);
  --accent-gradient: linear-gradient(135deg, #ff1a2b 0%, #a3000d 100%);
  --accent-border: #ff5966;
  --accent-text: #ffffff;
  --accent-light: #ffd6d9;
  --welcome-bg: radial-gradient(circle at 50% 20%, #1c1018 0%, #08080a 75%);
}

/* 🔵 SmackDown Blue */
[data-theme="blue"] {
  --accent: #00b4ff;
  --accent-rgb: 0, 180, 255;
  --accent-glow: rgba(0, 180, 255, 0.6);
  --accent-gradient: linear-gradient(135deg, #00b4ff 0%, #005bd2 100%);
  --accent-border: #52cbff;
  --accent-text: #ffffff;
  --accent-light: #c2ecff;
  --welcome-bg: radial-gradient(circle at 50% 20%, #07192b 0%, #05070a 75%);
}

/* 🟣 Ministry Purple */
[data-theme="purple"] {
  --accent: #c429ff;
  --accent-rgb: 196, 41, 255;
  --accent-glow: rgba(196, 41, 255, 0.6);
  --accent-gradient: linear-gradient(135deg, #c429ff 0%, #6800a8 100%);
  --accent-border: #da6eff;
  --accent-text: #ffffff;
  --accent-light: #f3caff;
  --welcome-bg: radial-gradient(circle at 50% 20%, #1e0729 0%, #09050a 75%);
}

/* 🟠 HeAT Fire Orange */
[data-theme="orange"] {
  --accent: #ff6a00;
  --accent-rgb: 255, 106, 0;
  --accent-glow: rgba(255, 106, 0, 0.6);
  --accent-gradient: linear-gradient(135deg, #ff6a00 0%, #b33900 100%);
  --accent-border: #ff9147;
  --accent-text: #ffffff;
  --accent-light: #ffd8bf;
  --welcome-bg: radial-gradient(circle at 50% 20%, #241108 0%, #0a0706 75%);
}

/* 🩵 Cyber Teal */
[data-theme="cyan"] {
  --accent: #00ffd5;
  --accent-rgb: 0, 255, 213;
  --accent-glow: rgba(0, 255, 213, 0.65);
  --accent-gradient: linear-gradient(135deg, #00ffd5 0%, #009980 100%);
  --accent-border: #6effe3;
  --accent-text: #021a15;
  --accent-light: rgba(2, 26, 21, 0.75);
  --welcome-bg: radial-gradient(circle at 50% 20%, #06211c 0%, #050a09 75%);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: var(--bg); }
body {
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}
button { font-family: inherit; color: inherit; cursor: pointer; border: none; background: none; }
input { -webkit-user-select: text; user-select: text; }

.app {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- HEADER ---------- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(8px + env(safe-area-inset-top)) 14px 8px;
  flex-shrink: 0;
}
.logo { display: flex; align-items: baseline; gap: 8px; }
.logo-wwf {
  font-family: 'Orbitron', Impact, sans-serif;
  font-weight: 900; font-style: italic; font-size: 22px;
  color: var(--accent);
  text-shadow: 0 0 14px var(--accent-glow);
}
.logo-text { font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 2px; }
.header-actions { display: flex; gap: 6px; align-items: center; }
.icon-btn {
  font-size: 11.5px; font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: #ddd;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.icon-btn:active { transform: scale(0.96); }
.theme-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  flex-shrink: 0;
}

/* ---------- TV SCREEN ---------- */
.stage {
  position: relative;
  flex: 1;
  min-height: 180px;
  background: #000;
  overflow: hidden;
  margin: 0 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
}
#video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }

.static { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; z-index: 5; transition: opacity .08s; image-rendering: pixelated; }
.static.on { opacity: .35; }
.scanlines, .vignette { position: absolute; inset: 0; pointer-events: none; z-index: 4; display: none; }
.scanlines {
  background: linear-gradient(rgba(0,0,0,0) 50%, rgba(0,0,0,.08) 50%);
  background-size: 100% 3px;
}
.vignette {
  box-shadow: inset 0 0 35px rgba(0,0,0,.35);
}
body.crt-on .scanlines, body.crt-on .vignette { display: block; }

.tap-zone { position: absolute; inset: 0; z-index: 6; }

.skip-bubble {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 7; pointer-events: none;
  background: rgba(0,0,0,.65); padding: 10px 16px; border-radius: 999px;
  font-weight: 800; font-size: 15px; opacity: 0; transition: opacity .2s;
}
.skip-bubble.left { left: 8%; }
.skip-bubble.right { right: 8%; }
.skip-bubble.on { opacity: 1; }

/* Stage Full Screen Button */
.stage-full-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 15;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(14, 14, 18, 0.82);
  border: 1px solid var(--line);
  color: #fff;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  transition: transform 0.12s, border-color 0.15s, opacity 0.2s, background 0.15s;
  cursor: pointer;
}
.stage-full-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
}
.stage-full-btn:active {
  transform: scale(0.92);
  background: var(--accent);
  color: var(--accent-text);
}
body.welcome-open .stage-full-btn {
  display: none !important;
}

/* Center Big Play Button Overlay */
.center-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  z-index: 16;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: rgba(14, 14, 20, 0.88);
  border: 2.5px solid var(--accent);
  box-shadow: 0 0 35px var(--accent-glow), 0 8px 32px rgba(0, 0, 0, 0.7);
  color: var(--accent);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.center-play-icon {
  font-size: 34px;
  line-height: 1;
  margin-left: 5px;
}
.center-play-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
}
.center-play:active {
  transform: translate(-50%, -50%) scale(0.92);
  background: var(--accent);
  color: var(--accent-text);
}
.center-play.on {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
body.welcome-open .center-play {
  display: none !important;
}

.btn#btn-play.is-paused {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.16);
  box-shadow: 0 0 12px var(--accent-glow);
  color: #fff;
}

/* Retro OSD */
.osd {
  position: absolute; top: 14px; left: 16px; z-index: 8;
  font-family: 'VT323', monospace; color: var(--green);
  text-shadow: 0 0 8px rgba(57,255,20,.7);
  letter-spacing: 2px; line-height: 1.05;
  opacity: 0; transition: opacity .35s; pointer-events: none;
}
.osd.on { opacity: 1; }
.osd-ch { font-size: 34px; }
.osd-name { font-size: 24px; text-transform: uppercase; max-width: 80vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.osd-date { font-size: 20px; color: var(--gold); text-shadow: 0 0 8px rgba(255,204,0,.5); }

/* Loading */
.loading {
  position: absolute; inset: 0; z-index: 9;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: rgba(0,0,0,.45);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.loading.on { opacity: 1; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid rgba(255,255,255,.15); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-family: 'VT323', monospace; font-size: 22px; color: var(--green); letter-spacing: 2px; }

/* Toast */
.toast {
  position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 10px);
  z-index: 10; background: rgba(20,20,28,.92); border: 1px solid var(--line);
  padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  opacity: 0; pointer-events: none; transition: all .25s; white-space: nowrap;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- WELCOME ---------- */
.welcome {
  position: absolute; inset: 0; z-index: 20;
  background: var(--welcome-bg);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 22px 14px;
}
.welcome.hidden { display: none; }
.welcome-inner { width: 100%; max-width: 640px; text-align: center; margin: auto 0; }
.welcome-kicker { font-size: 11px; font-weight: 800; letter-spacing: 2px; color: var(--gold); }
.welcome-title {
  font-family: 'Orbitron', Impact, sans-serif; font-weight: 900;
  font-size: clamp(26px, 7vw, 40px); letter-spacing: 2px; margin: 6px 0 8px;
  text-shadow: 0 0 22px var(--accent-glow);
}
.welcome-sub { color: var(--muted); font-size: 14px; line-height: 1.5; margin-bottom: 18px; }
.welcome-sub b { color: var(--text); }

.tile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile {
  text-align: left;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 12px;
  display: flex; flex-direction: column; gap: 3px;
  transition: transform .12s, border-color .12s;
}
.tile:active { transform: scale(0.97); }
.tile:hover { border-color: rgba(var(--accent-rgb),.6); }
.tile-icon { font-size: 24px; }
.tile-name { font-weight: 800; font-size: 15px; }
.tile-desc { font-size: 11px; color: var(--muted); }
.tile.featured {
  grid-column: 1 / -1;
  background: var(--accent-gradient);
  border-color: var(--accent-border);
  box-shadow: 0 8px 30px var(--accent-glow);
  flex-direction: row; align-items: center; gap: 12px;
}
.tile.featured .tile-desc { color: var(--accent-light); }
.tile.featured .tile-name { color: var(--accent-text); }
.tile.featured .tile-icon { font-size: 30px; }

/* ---------- CONTROLS ---------- */
.controls {
  flex-shrink: 0;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 8px;
}

.now-playing { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.np-text { display: flex; align-items: center; gap: 8px; min-width: 0; }
.np-badge {
  flex-shrink: 0;
  font-size: 10px; font-weight: 800; letter-spacing: .5px;
  background: var(--accent); color: var(--accent-text); padding: 3px 7px; border-radius: 6px;
}
.np-name { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-date { flex-shrink: 0; font-size: 12px; color: var(--muted); margin-left: auto; }
.np-progress { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.np-time { font-family: 'VT323', monospace; font-size: 17px; color: var(--muted); min-width: 46px; }
.np-time:last-child { text-align: right; }
.bar { position: relative; flex: 1; height: 22px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.bar::before { content: ''; position: absolute; left: 0; right: 0; height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); }
.bar-fill { position: absolute; left: 0; height: 6px; border-radius: 3px; background: var(--accent); width: 0%; }
.bar-knob { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #fff; left: 0%; transform: translateX(-50%); box-shadow: 0 0 8px var(--accent-glow); }

.skip-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  transition: all 0.12s ease;
  user-select: none;
  -webkit-user-select: none;
}
.skip-btn:hover {
  background: var(--panel-hover);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 10px var(--accent-glow);
}
.skip-btn:active {
  transform: scale(0.92);
  background: var(--accent);
  color: var(--accent-text);
}

.section-label { font-size: 10px; font-weight: 800; letter-spacing: 1.5px; color: var(--muted); padding-left: 2px; }

.chip-row {
  flex-shrink: 0;
  display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: 2px; scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
  padding: 9px 13px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line);
  font-size: 13px; font-weight: 700; color: #ddd; white-space: nowrap;
}
.chip .count { font-size: 11px; color: var(--muted); font-weight: 600; }
.chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-text); box-shadow: 0 0 14px var(--accent-glow); }
.chip.active .count { color: var(--accent-light); }
.chip:active { transform: scale(0.96); }

.button-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.big-btn.shuffle {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 13px 16px; border-radius: 14px;
  background: var(--accent-gradient);
  border: 1px solid var(--accent-border);
  box-shadow: 0 6px 24px var(--accent-glow);
  color: var(--accent-text);
}
.big-btn.shuffle:active { transform: scale(0.98); }
.bb-icon { font-size: 26px; }
.bb-text { display: flex; flex-direction: column; text-align: left; }
.bb-text b { font-family: 'Orbitron', sans-serif; font-size: 17px; letter-spacing: 2px; }
.bb-text small { font-size: 11px; color: var(--accent-light); font-weight: 600; }
.big-btn.full { width: 100%; margin-top: 14px; }
.big-btn.full .bb-text { text-align: center; }

.btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 10px 4px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--line);
  font-size: 11px; font-weight: 700; color: #e6e6ee;
}
.btn:active { transform: scale(0.96); background: #24242e; }
.b-icon { font-size: 19px; line-height: 1; }

/* ---------- SHEETS (Episode list / Help) ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0,0,0,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
  width: 100%; max-width: 680px; max-height: 86dvh;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 20px 20px 0 0;
  padding: 16px 14px calc(16px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 10px;
  transform: translateY(30px); transition: transform .25s;
}
.sheet-backdrop.open .sheet { transform: translateY(0); }
.sheet.small { max-width: 520px; }
.sheet-head { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; }
.sheet-title { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 18px; letter-spacing: 1px; }
.sheet-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.close-btn { width: 36px; height: 36px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line); font-size: 15px; }

.search {
  flex-shrink: 0;
  width: 100%; padding: 11px 14px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--line);
  color: var(--text); font-size: 15px; outline: none;
}
.search:focus { border-color: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }

.episode-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 6px; min-height: 120px; scrollbar-width: thin; scrollbar-color: #2a2a35 transparent; }
.welcome { scrollbar-width: thin; scrollbar-color: #2a2a35 transparent; }
.episode-list::-webkit-scrollbar, .welcome::-webkit-scrollbar { width: 6px; }
.episode-list::-webkit-scrollbar-thumb, .welcome::-webkit-scrollbar-thumb { background: #2a2a35; border-radius: 3px; }
.ep {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--line);
  text-align: left; width: 100%;
}
.ep.playing { border-color: var(--accent); background: rgba(var(--accent-rgb),.14); }
.ep-main { flex: 1; min-width: 0; }
.ep-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ep-actions { display: flex; gap: 6px; flex-shrink: 0; }
.ep-btn { padding: 8px 10px; border-radius: 10px; font-size: 12px; font-weight: 800; background: #2a2a35; border: 1px solid var(--line); }
.ep-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.empty { text-align: center; color: var(--muted); padding: 30px 0; font-size: 14px; }

/* Theme Palette Sheet */
.theme-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-height: 65vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px;
  scrollbar-width: thin;
  scrollbar-color: #2a2a35 transparent;
}
.theme-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--panel-2);
  border: 1.5px solid var(--line);
  text-align: left;
  transition: all .15s ease;
  position: relative;
  cursor: pointer;
}
.theme-card:active { transform: scale(0.97); }
.theme-card.active {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
  box-shadow: 0 0 16px var(--accent-glow);
}
.theme-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: 0 0 14px var(--swatch-glow);
  background: var(--swatch-color);
}
.theme-info {
  flex: 1;
  min-width: 0;
}
.theme-name {
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}
.theme-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.theme-check {
  font-size: 16px;
  font-weight: 900;
  color: var(--accent);
  opacity: 0;
  margin-left: auto;
  flex-shrink: 0;
}
.theme-card.active .theme-check {
  opacity: 1;
}

.help-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.help-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: #ddd; }
.help-list li span { font-size: 20px; width: 26px; text-align: center; flex-shrink: 0; }

/* ---------- RABBIT HOLES (MINIMAL NEED-TO-KNOW) ---------- */
.app-footer {
  margin: 10px 10px 16px;
}
body.welcome-open .app-footer {
  display: none;
}
.rabbit-bar-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 14px;
  color: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
}
.rabbit-bar-btn:hover {
  background: var(--panel-hover);
  border-color: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
}
.rabbit-bar-btn:active {
  transform: scale(0.98);
}
.rabbit-icon {
  font-size: 16px;
  line-height: 1;
}
.rabbit-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: #fff;
}
.rabbit-badge {
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.5px;
  background: var(--accent);
  color: var(--accent-text);
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 0 8px var(--accent-glow);
}
.rabbit-arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
}

/* Rabbit Holes List */
.rabbit-list {
  padding: 14px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rabbit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}
.rabbit-item.current {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}
.rabbit-item.coming-soon {
  cursor: default;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  user-select: none;
  -webkit-user-select: none;
}
.rabbit-item.coming-soon:hover {
  border-style: solid;
  border-color: #ff7700;
  background: rgba(255, 119, 0, 0.09);
  box-shadow: 0 0 16px rgba(255, 119, 0, 0.35);
  transform: translateY(-1px);
}
.rabbit-item.coming-soon:hover .rabbit-dot.nba {
  background: #ff7700;
  box-shadow: 0 0 12px #ff7700, 0 0 20px #ff7700;
}
.rabbit-item.coming-soon:hover .rabbit-tag.coming {
  color: #ffaa44;
  border-color: rgba(255, 119, 0, 0.65);
  background: rgba(255, 119, 0, 0.22);
  box-shadow: 0 0 10px rgba(255, 119, 0, 0.4);
}
.rabbit-item.placeholder {
  opacity: 0.6;
  border-style: dashed;
}
.rabbit-item:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 12px var(--accent-glow);
}
.rabbit-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  flex-shrink: 0;
}
.rabbit-dot.nba {
  background: #ff7700;
  box-shadow: 0 0 8px rgba(255, 119, 0, 0.7);
}
.rabbit-dot.dim {
  background: #666;
  box-shadow: none;
}
.rabbit-name {
  flex: 1;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.3px;
}
.rabbit-tag {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.5px;
}
.rabbit-tag.coming {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: #ff9933;
  letter-spacing: 0.8px;
  background: rgba(255, 119, 0, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 119, 0, 0.35);
  transition: all 0.15s ease;
}
.rabbit-tag.dim {
  color: var(--muted);
}

/* ---------- DESKTOP / TABLET ---------- */
@media (min-width: 820px) {
  .header { padding: 12px 18px; }
  .stage { margin: 0 18px; }
  .controls { padding: 12px 18px 16px; }
  .button-row { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; }
  .big-btn.shuffle { grid-column: auto; }
  .tile-grid { grid-template-columns: repeat(4, 1fr); }
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
  .sheet { border-radius: 20px; margin-bottom: 5vh; }
  .sheet-backdrop { align-items: center; }
}

/* ---------- PHONE SIDEWAYS = FULL SCREEN TV ---------- */
@media (orientation: landscape) and (max-height: 520px) {
  .header, .app-footer { display: none; }
  .app { max-width: none; }
  .stage { position: fixed; inset: 0; margin: 0; border-radius: 0; border: none; z-index: 1; }
  .controls {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 30px calc(14px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(14px + env(safe-area-inset-left));
    background: linear-gradient(transparent, rgba(0,0,0,.88) 35%);
    transition: opacity .25s, transform .25s;
  }
  .section-label { display: none; }
  .now-playing { background: transparent; border: none; padding: 0; }
  .button-row { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; }
  .big-btn.shuffle { grid-column: auto; padding: 8px 12px; }
  .bb-text small { display: none; }
  .bb-icon { font-size: 20px; }
  .btn { padding: 6px 4px; }
  body.controls-hidden .controls { opacity: 0; transform: translateY(20px); pointer-events: none; }
  body.controls-hidden .stage-full-btn { opacity: 0; transform: translateY(10px); pointer-events: none; }
  .osd { top: calc(10px + env(safe-area-inset-top)); left: calc(16px + env(safe-area-inset-left)); }
  .tile-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Browser full screen (desktop) */
.app:fullscreen { max-width: none; }

/* Welcome screen gets the whole screen */
body.welcome-open .controls { display: none; }
body.welcome-open .stage { margin-bottom: calc(10px + env(safe-area-inset-bottom)); }

/* =========================================================
   LEGIT SHOW FULL SCREEN (STAGE FULLSCREEN / CINEMA MODE)
   ========================================================= */
#stage:fullscreen,
#stage:-webkit-full-screen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: #000 !important;
  z-index: 2147483647 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#stage:fullscreen #video,
#stage:-webkit-full-screen #video {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  background: #000 !important;
}

#stage:fullscreen .scanlines,
#stage:-webkit-full-screen .scanlines,
#stage:fullscreen .vignette,
#stage:-webkit-full-screen .vignette,
#stage:fullscreen .static,
#stage:-webkit-full-screen .static {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
}

/* Cinema Overlay (Only visible in legit show full screen) */
.cinema-bar {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 25;
  pointer-events: none;
  flex-direction: column;
  justify-content: space-between;
  transition: opacity 0.25s ease;
}

#stage:fullscreen .cinema-bar,
#stage:-webkit-full-screen .cinema-bar {
  display: flex;
}

#stage:fullscreen .stage-full-btn,
#stage:-webkit-full-screen .stage-full-btn {
  display: none !important;
}

#stage.cinema-idle {
  cursor: none !important;
}
#stage.cinema-idle .cinema-bar,
#stage.cinema-idle .osd {
  opacity: 0 !important;
  pointer-events: none !important;
}

.cinema-top {
  padding: 24px 30px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.4) 65%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
}

.cinema-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cinema-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.cinema-date {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  color: #aaa;
  letter-spacing: 1px;
}

.cinema-exit-btn {
  background: rgba(20, 20, 26, 0.85);
  border: 1px solid var(--line);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.15s ease;
}
.cinema-exit-btn:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 0 14px var(--accent-glow);
}

.cinema-bottom {
  padding: 24px 30px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.94) 0%, rgba(0,0,0,0.55) 65%, transparent 100%);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cinema-progress-wrap {
  width: 100%;
  padding: 8px 0;
  cursor: pointer;
}

.cinema-bar-track {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.25);
  border-radius: 999px;
  transition: height 0.15s;
}
.cinema-progress-wrap:hover .cinema-bar-track {
  height: 8px;
}

.cinema-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 10px var(--accent-glow);
}

.cinema-bar-knob {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(0,0,0,0.8);
  pointer-events: none;
}

.cinema-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cinema-left-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cinema-action-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  backdrop-filter: blur(8px);
}
.cinema-action-btn:hover {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.cinema-time-display {
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: #fff;
  letter-spacing: 1px;
}

/* =========================================================
   BLOCK NETLIFY INJECTED BADGE / DRAWER / WATERMARK
   ========================================================= */
iframe[src*="netlify"],
iframe[id*="netlify"],
iframe[class*="netlify"],
div[id*="netlify"],
div[class*="netlify"],
#netlify-badge,
.netlify-badge,
[data-netlify-deploy-id],
netlify-drawer,
a[href*="netlify.com"][style*="fixed"],
a[href*="netlify.com"][style*="absolute"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  position: absolute !important;
  z-index: -99999 !important;
}
