/* Earthwave FM — pono left, vaporwave true center */
.radio-bar-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.radio-bar {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 1.5rem;
  background: linear-gradient(180deg, rgba(8, 8, 22, 0.97) 0%, rgba(4, 4, 14, 0.98) 100%);
  border-top: 1px solid rgba(0, 245, 212, 0.2);
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  font-size: 0.8rem;
}

.radio-bar-left {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3.5rem);
  flex: 1;
  min-width: 0;
  z-index: 1;
}

.dash-vapor-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 0.85rem);
  z-index: 2;
  pointer-events: none;
}

.dash-vapor-center .dash-rec {
  pointer-events: auto;
}

.radio-bar .station {
  flex-shrink: 0;
  font-family: "Orbitron", sans-serif;
  color: var(--teal);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
  opacity: 0.92;
}

.radio-bar .station::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.45rem;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  vertical-align: middle;
  animation: dash-pulse-teal 2.2s ease-in-out infinite;
}

@keyframes dash-pulse-teal {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.radio-tune {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  z-index: 1;
}

.dash-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
  z-index: 1;
}

/* Nightwave Plaza — neon sign at night */
.dash-plaza .dash-glyph {
  width: 14px;
  height: 17px;
  background: linear-gradient(180deg, #ff2a6d 0%, #9d4edd 55%, #2979ff 100%);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  box-shadow: 0 0 10px rgba(255, 42, 109, 0.55);
  flex-shrink: 0;
}

.dash-plaza .dash-text {
  font-family: "Michroma", "Audiowide", sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e8b4ff;
  background: linear-gradient(90deg, #e8b4ff 0%, #ff5c8a 45%, #5ce1ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(199, 125, 255, 0.55));
  white-space: nowrap;
}

/* vaporwave — arcade glyph */
.dash-vapor .dash-glyph {
  width: 14px;
  height: 8px;
  border-top: 2px solid #ff2a6d;
  border-bottom: 2px solid #00f5d4;
  background: linear-gradient(90deg, rgba(255, 42, 109, 0.3), rgba(0, 245, 212, 0.3));
  clip-path: polygon(0 50%, 25% 0, 50% 50%, 75% 0, 100% 50%, 75% 100%, 50% 50%, 25% 100%);
  flex-shrink: 0;
  animation: dash-wave-glyph 2.8s ease-in-out infinite;
}

@keyframes dash-wave-glyph {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(1.08); opacity: 0.75; }
}

.dash-vapor .dash-text {
  font-family: "Press Start 2P", "VT323", monospace;
  font-size: clamp(0.56rem, 1.71vw, 0.74rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #ff8fd9;
  text-shadow:
    0 0 12px rgba(255, 42, 109, 0.9),
    2px 2px 0 #00f5d4,
    -1px -1px 0 #2979ff;
  transform: skewX(-6deg);
  white-space: nowrap;
}

/* pono — checkdiamond gate + neon sign link (optically centered) */
.dash-pono-gate {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  flex-shrink: 0;
  height: 2.15rem;
}

.dash-pono-check-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  width: 14px;
  height: 14px;
  margin: 0;
  padding: 0;
  transform: translateY(-3%);
}

.dash-pono-check-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dash-pono-check {
  position: relative;
  width: 13px;
  height: 13px;
  border: 1.5px solid #1de9b6;
  border-radius: 0;
  background: rgba(29, 233, 182, 0.06);
  box-shadow: 0 0 8px rgba(29, 233, 182, 0.4);
  display: block;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.dash-pono-check-input:focus-visible + .dash-pono-check {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.dash-pono-check-input:checked + .dash-pono-check {
  background: rgba(29, 233, 182, 0.28);
  box-shadow: 0 0 14px rgba(29, 233, 182, 0.65);
}

.dash-pono-check-input:checked + .dash-pono-check::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  background: #1de9b6;
  box-shadow: 0 0 6px #1de9b6;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.dash-pono-link {
  font-family: "Caveat", "Segoe Script", cursive;
  font-size: 2.1rem;
  font-weight: 600;
  color: #9dffd0;
  text-shadow:
    0 0 10px rgba(29, 233, 182, 0.55),
    0 0 22px rgba(29, 233, 182, 0.35);
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
  opacity: 0.5;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  height: 2.15rem;
  padding: 0;
  margin: 0;
  transform: translateY(-5%);
  transition: opacity 0.25s, text-shadow 0.25s, color 0.25s, transform 0.25s;
}

.dash-pono-gate.is-locked .dash-pono-link {
  animation: pono-neon-flicker 2.6s ease-in-out infinite;
}

@keyframes pono-neon-flicker {
  0%, 100% {
    opacity: 0.42;
    text-shadow:
      0 0 8px rgba(29, 233, 182, 0.4),
      0 0 18px rgba(29, 233, 182, 0.25);
  }
  8% { opacity: 0.7; }
  12% { opacity: 0.35; }
  18% { opacity: 0.75; }
  22% { opacity: 0.4; }
  50% {
    opacity: 0.55;
    text-shadow:
      0 0 14px rgba(29, 233, 182, 0.65),
      0 0 28px rgba(157, 78, 221, 0.35);
  }
  72% { opacity: 0.38; }
  76% { opacity: 0.68; }
}

.dash-pono-gate.is-unlocked .dash-pono-link {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
  animation: none;
}

.dash-pono-gate.is-unlocked .dash-pono-link:hover {
  color: #c8ffe8;
  text-shadow:
    0 0 16px rgba(29, 233, 182, 0.85),
    0 0 32px rgba(29, 233, 182, 0.45);
}

.dash-pono-link[aria-current="page"] {
  opacity: 1;
  pointer-events: none;
  color: #c8ffe8;
}

/* Dashboard spacers — not normie dots */
.dash-sep {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.dash-sep-ticks {
  width: 3px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2px;
}

.dash-sep-ticks::before,
.dash-sep-ticks::after {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 212, 0.6), transparent);
  border-radius: 1px;
}

.dash-sep-ticks span {
  display: block;
  width: 100%;
  height: 3px;
  background: rgba(157, 78, 221, 0.5);
  border-radius: 1px;
}

.dash-sep-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255, 229, 102, 0.55);
  border-bottom: 2px solid rgba(255, 229, 102, 0.55);
  transform: rotate(-45deg) scale(0.85);
  opacity: 0.8;
}

/* REC — ◉ doubledot (matches homepage REALTIME) */
.dash-rec {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: none;
  background: transparent;
  position: relative;
  z-index: 1;
}

.dash-rec-dot {
  display: inline-block;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: clamp(0.75rem, 2vw, 0.92rem);
  line-height: 1;
  color: rgba(255, 42, 109, 0.45);
  flex-shrink: 0;
  width: auto;
  height: auto;
  border: none;
  background: none;
  box-shadow: none;
  vertical-align: middle;
  transition: color 0.2s, text-shadow 0.2s;
}

.dash-rec-dot::before {
  content: none;
  display: none;
}

.dash-rec-label {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.74rem, 2.04vw, 0.94rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 120, 140, 0.55);
  transition: color 0.2s, text-shadow 0.2s;
}

.dash-rec.is-live .dash-rec-dot {
  color: #ff2a6d;
  animation: dash-rec-pulse 2.4s ease-in-out infinite;
}

.dash-rec.is-live .dash-rec-dot::before {
  animation: none;
}

.dash-rec.is-live .dash-rec-label {
  color: #ff5c8a;
  animation: rec-label-glow 2.4s ease-in-out infinite;
}

@keyframes dash-rec-pulse {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 12px rgba(255, 42, 109, 0.75);
  }
  50% {
    opacity: 0.55;
    text-shadow: none;
  }
}

@keyframes rec-ambiance {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 8px #ff2a6d, 0 0 18px rgba(255, 42, 109, 0.65);
  }
  50% {
    opacity: 0.45;
    box-shadow: 0 0 3px rgba(255, 42, 109, 0.35);
  }
}

@keyframes rec-label-glow {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 12px rgba(255, 42, 109, 0.75);
  }
  50% {
    opacity: 0.6;
    text-shadow: none;
  }
}

.radio-bar button,
.radio-bar #radio-toggle {
  flex-shrink: 0;
  min-width: 6.5rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--magenta);
  color: var(--magenta);
  padding: 0.38rem 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.68rem;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.08em;
  box-shadow: var(--neon-pink), inset 0 0 12px rgba(255, 42, 109, 0.08);
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.radio-bar button:hover {
  background: rgba(255, 42, 109, 0.12);
}

.radio-bar button[aria-pressed="true"] {
  border-color: var(--teal);
  color: var(--teal);
  box-shadow: var(--neon-cyan), inset 0 0 12px rgba(0, 245, 212, 0.1);
}

@media (max-width: 720px) {
  .radio-bar {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    padding: 0.45rem 0.75rem 0.55rem;
    row-gap: 0.4rem;
  }

  .radio-bar-left {
    flex: 1 1 100%;
    justify-content: center;
    gap: 1rem 1.75rem;
    flex-wrap: wrap;
  }

  .radio-bar .station {
    font-size: 0.6rem;
  }

  .dash-vapor-center {
    position: static;
    transform: none;
    flex: 1 1 100%;
    justify-content: center;
    order: 2;
  }

  .radio-tune {
    flex: 1 1 100%;
    justify-content: center;
    order: 3;
  }

  .dash-plaza .dash-text { font-size: clamp(0.58rem, 2vw, 0.68rem); }
  .dash-vapor .dash-text { font-size: clamp(0.5rem, 2.5vw, 0.62rem); letter-spacing: 0.2em; }
  .dash-pono-link { font-size: clamp(1.65rem, 5.5vw, 1.95rem); }
  .dash-rec-label { font-size: clamp(0.66rem, 2.6vw, 0.82rem); }
}

@media (prefers-reduced-motion: reduce) {
  .dash-rec.is-live .dash-rec-dot,
  .dash-rec.is-live .dash-rec-label,
  .dash-vapor .dash-glyph,
  .dash-pono-gate.is-locked .dash-pono-link,
  .radio-bar .station::before {
    animation: none;
  }
}

/* Mobile / tablet — collapse Earthwave bar to floating WAVE */
.radio-bar-collapse {
  display: none;
}

@media (max-width: 900px) {
  .radio-bar-collapse {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    top: -1.1rem;
    transform: translateX(-50%);
    z-index: 5;
    width: 2.35rem;
    height: 1.5rem;
    padding: 0;
    border: 1px solid rgba(0, 245, 212, 0.55);
    border-radius: 999px 999px 0 0;
    background: rgba(8, 8, 22, 0.98);
    color: var(--teal);
    font-size: 0.62rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 -3px 16px rgba(0, 0, 0, 0.45), 0 0 10px rgba(0, 245, 212, 0.15);
  }

  .radio-bar-collapse:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
  }

  .radio-bar-wrap.is-collapsed .radio-bar {
    padding: 0.4rem 0.75rem 0.55rem;
    border-top-color: transparent;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    justify-content: center;
    min-height: 0;
  }

  .radio-bar-wrap.is-collapsed .radio-bar-left,
  .radio-bar-wrap.is-collapsed .dash-vapor-center,
  .radio-bar-wrap.is-collapsed .dash-plaza {
    display: none;
  }

  .radio-bar-wrap.is-collapsed .radio-tune {
    flex: 0 0 auto;
    justify-content: center;
    width: 100%;
  }

  .radio-bar-wrap.is-collapsed .radio-bar #radio-toggle {
    position: relative;
    z-index: 2;
    min-width: 5.5rem;
    box-shadow: 0 0 20px rgba(255, 42, 109, 0.45), var(--neon-pink);
  }

  .radio-bar-wrap.is-collapsed .radio-bar-collapse {
    top: -1rem;
  }
}
