@import url('https://fonts.googleapis.com/css2?family=Changa+One:ital@0;1&family=Orbitron:wght@400..900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
 

/* ── RADIO CUERPO ── */
.radio {
  width: 520px;
  max-width: 95vw;
  position: relative;
  border-radius: 28px 28px 32px 32px;
  padding: 28px 28px 32px;
  background:
    radial-gradient(ellipse at 22% 18%, #72e868 0%, transparent 45%),
    radial-gradient(ellipse at 80% 80%, #1a6614 0%, transparent 55%),
    linear-gradient(160deg, #3ec832 0%, #1e8014 40%, #145e0d 100%);
  box-shadow:
    inset 0 3px 0 rgba(255,255,255,.35),
    inset 3px 0 0 rgba(255,255,255,.18),
    inset 0 -5px 0 rgba(0,0,0,.45),
    inset -4px 0 0 rgba(0,0,0,.25),
    0 0 0 2px #0f5009,
    0 28px 60px rgba(0,0,0,.65),
    0 10px 20px rgba(0,0,0,.4),
    0 0 80px rgba(60,200,50,.12);
  transform: perspective(900px) rotateX(3deg);
}
 
.radio::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 6px; right: 6px;
  height: 12px;
  border-radius: 0 0 20px 20px;
  background: linear-gradient(180deg, #0d4408, transparent);
  filter: blur(2px);
  z-index: -1;
}
 
/* Antena */
.antenna {
  position: absolute;
  top: -90px; right: 52px;
  width: 6px; height: 94px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, rgba(255,255,255,.25) 0%, #2a2a2a 40%, #1a1a1a 100%);
  box-shadow: inset 1px 0 0 rgba(255,255,255,.3), 2px 0 6px rgba(0,0,0,.5);
  transform-origin: bottom center;
  transform: rotate(-8deg);
}
.antenna::before {
  content: '';
  position: absolute;
  bottom: -5px; left: -5px;
  width: 16px; height: 14px;
  border-radius: 4px;
  background: linear-gradient(160deg, #3a3a3a, #1a1a1a);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.15), 0 4px 8px rgba(0,0,0,.5);
}
 
/* Cambia justify-content en .radio-top */
.radio-top {
  display: flex;
  justify-content: space-between; /* era flex-end */
  align-items: center;
  margin-bottom: 18px;
}

/* Bold en el reloj */
.clock {
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  font-weight: bold; /* era 700 */
  color: #00ff66;
  letter-spacing: 2px;
  text-shadow: 0 0 8px #00ff66, 0 0 20px rgba(0,255,100,.4);
}
.status-area {
  display: flex;
  align-items: center;
  gap: 10px;
}
 
.led {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #333;
  box-shadow: inset 0 2px 3px rgba(0,0,0,.6);
  transition: background .3s, box-shadow .3s;
}
.led.live {
  background: #00ff66;
  box-shadow: inset 0 1px 2px rgba(255,255,255,.4), 0 0 8px #00ff66, 0 0 20px #00ff66, 0 0 40px rgba(0,255,100,.5);
  animation: led-pulse 1.4s ease-in-out infinite;
}
.led.connecting {
  background: #ffd400;
  box-shadow: 0 0 10px #ffd400, 0 0 25px #ffd400;
  animation: blink .8s ease-in-out infinite;
}
.led.error {
  background: #ff3030;
  box-shadow: 0 0 10px #ff3030, 0 0 25px rgba(255,0,0,.5);
}
@keyframes led-pulse { 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.4); } }
@keyframes blink { 50%{ opacity:.25; } }
 
.status-txt {
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(38, 39, 37, 0.55);
  text-transform: uppercase;
}
 
/* ── MAIN GRID ── */
.radio-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
 
/* ── PARLANTE ── */
.speaker {
  background:
    radial-gradient(ellipse at 30% 30%, #1a6614 0%, transparent 60%),
    linear-gradient(145deg, #145c0e, #0d3f09);
  border-radius: 14px;
  padding: 14px;
  box-shadow:
    inset 0 3px 6px rgba(0,0,0,.5),
    inset 0 -1px 0 rgba(255,255,255,.06),
    0 2px 0 rgba(255,255,255,.1);
}
 
.grille {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
 
.grille-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #0a2a07, #061504);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.04);
}
 
/* ── PANTALLA ── */
.screen-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
 
.lcd {
  background: linear-gradient(180deg, #060e07, #030805);
  border-radius: 10px;
  padding: 12px 14px 10px;
  border: 1px solid rgba(0,255,100,.08);
  box-shadow:
    inset 0 0 30px rgba(0,0,0,.9),
    inset 0 0 12px rgba(0,255,80,.06),
    0 0 0 1px rgba(0,0,0,.5),
    0 3px 8px rgba(0,0,0,.4);
  position: relative;
  overflow: hidden;
}
.lcd::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.12) 2px, rgba(0,0,0,.12) 4px);
  pointer-events: none;
  z-index: 2;
}
 
.lcd-label {
  font-size: 8px;
  letter-spacing: 2.5px;
  color: rgba(0,255,100,.35);
  margin-bottom: 4px;
  position: relative; z-index: 3;
}
 
.lcd-station {
  font-family: 'Orbitron', monospace;
  font-size: 11px; font-weight: 700;
  color: #00ff66;
  letter-spacing: 1px;
  text-shadow: 0 0 6px #00ff66, 0 0 16px rgba(0,255,100,.5), 0 0 30px rgba(0,255,100,.2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  position: relative; z-index: 3;
}
 
.lcd-title {
  font-size: 9px;
  color: rgba(0,255,100,.45);
  margin-top: 3px;
  position: relative; z-index: 3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
 
/* Viz */
.viz {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 32px;
}
.viz-bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #00ff66, #00882f);
  height: 4px;
  opacity: .18;
  transition: opacity .3s;
}
.viz-bar.on {
  opacity: 1;
  animation: viz-anim var(--spd,.4s) ease-in-out infinite alternate;
  box-shadow: 0 0 4px rgba(0,255,100,.4);
}
@keyframes viz-anim { from{ height:4px; } to{ height:var(--h,28px); } }
 
/* ── TUNER ── */
.tuner-section {
  grid-column: 1 / -1;
  background: linear-gradient(145deg, #145c0e, #0d3f09);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.45), 0 2px 0 rgba(255,255,255,.08);
}
.tuner-track {
  position: relative;
  height: 14px;
  background: linear-gradient(180deg, #061005 0%, #0d2209 50%, #061005 100%);
  border-radius: 999px;
  box-shadow: inset 0 3px 6px rgba(0,0,0,.7), inset 0 -1px 0 rgba(255,255,255,.05);
}
.tuner-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 57.5%;
  border-radius: 999px;
  background: linear-gradient(90deg, #00cc44, #00ff66);
  box-shadow: 0 0 10px rgba(0,255,100,.4);
}
.tuner-needle {
  position: absolute;
  top: -5px;
  width: 3px; height: 24px;
  background: linear-gradient(180deg, #ff3030, #aa0000);
  border-radius: 2px;
  left: 57.5%;
  transform: translateX(-50%);
  box-shadow: 0 0 6px rgba(255,0,0,.7), 0 0 14px rgba(255,0,0,.3);
}
.tuner-needle::before {
  content: '';
  position: absolute;
  top: -4px; left: 50%;
  transform: translateX(-50%);
  width: 9px; height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff6060, #cc0000);
  box-shadow: 0 0 8px rgba(255,0,0,.6);
}
.tuner-labels {
  font-family: 'Orbitron', monospace;
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: clamp(7px, 1vw, 10px);  letter-spacing: 1px;
  padding: 0 4px;
}

.tuner-labels span {
    font-family: 'Orbitron', monospace;
    font-size: 15px;

}
 
/* ── CONTROLES ── */
.controls-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
 
/* BOTONES TRANSPORTE */
.transport {
  display: flex;
  align-items: center;
  gap: 8px;
}
 
.btn-plastic {
  border: none;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform .1s ease, box-shadow .1s ease;
  background: linear-gradient(160deg, #d01818, #6e0000);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.25),
    inset 0 -3px 0 rgba(0,0,0,.4),
    0 6px 20px rgba(100,0,0,.5),
    0 0 0 2px rgba(0,0,0,.3);
}
.btn-plastic:hover { filter: brightness(1.15); transform: translateY(-1px); }
.btn-plastic:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.15),
    inset 0 -1px 0 rgba(0,0,0,.4),
    0 2px 8px rgba(100,0,0,.4),
    0 0 0 2px rgba(0,0,0,.3);
}
.btn-play { width: 64px; height: 64px; }
.btn-sm   { width: 42px; height: 42px; }
.btn-plastic svg {
  width: 50%;
  fill: #fff;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.5));
  pointer-events: none;
}
 
/* ── SLIDER VOLUMEN 3D ── */
.vol-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex: 1;
  max-width: 200px;
}
 
.vol-label-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}
 
.vol-label {
  font-size: 8px;
  letter-spacing: 2px;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
}
 
.vol-val {
  font-size: 9px;
  color: rgba(0,255,100,.65);
  letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(0,255,100,.4);
}
 
.vol-track-wrap {
  width: 100%;
  height: 22px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #061005, #0d2209 50%, #061005);
  border-radius: 999px;
  box-shadow:
    inset 0 3px 7px rgba(0,0,0,.75),
    inset 0 -1px 0 rgba(255,255,255,.06),
    0 2px 0 rgba(255,255,255,.08);
  padding: 0 3px;
  position: relative;
}
 
.vol-fill {
  position: absolute;
  left: 3px; top: 4px; bottom: 4px;
  width: calc(80% - 6px);
  border-radius: 999px;
  background: linear-gradient(90deg, #008833, #00ff66);
  box-shadow: 0 0 8px rgba(0,255,100,.5);
  pointer-events: none;
  transition: width .05s;
}
 
.vol-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
  z-index: 2;
  -webkit-appearance: none;
  appearance: none;
}
 
.vol-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  left: 80%;
  width: 26px; height: 26px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle at 38% 32%, #e0e0e0, #888 70%, #555);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.55),
    inset 0 -2px 0 rgba(0,0,0,.35),
    0 4px 12px rgba(0,0,0,.65),
    0 0 0 2px rgba(0,0,0,.4),
    0 0 0 3px rgba(255,255,255,.06);
  transition: left .05s;
}
 
.vol-thumb::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #00ff66, #005522);
  box-shadow: 0 0 6px rgba(0,255,100,.8);
}
 
/* ── BOTTOM ── */
.bottom-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2px;
}
 
.badge-row { display: flex; gap: 6px; }
.badge {
  font-size: 7px;
  letter-spacing: 1.5px;
  padding: 3px 8px;
  border-radius: 4px;
  color: rgba(255,255,255,.35);
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.2);
  text-transform: uppercase;
}
 
.clock {
  font-family: 'Orbitron', monospace;
  font-size: 13px; font-weight: 700;
  color: #00ff66;
  letter-spacing: 2px;
  text-shadow: 0 0 8px #00ff66, 0 0 20px rgba(0,255,100,.4);
}
 
audio { display: none; }
 
/* ── RESPONSIVE ── */
@media (max-width: 560px) {
  .radio { padding: 18px 16px 22px; border-radius: 20px; }
  .radio-main { grid-template-columns: 1fr; }
  .speaker { display: none; }
  .tuner-section, .controls-row, .bottom-row { grid-column: 1; }
  .btn-play { width: 54px; height: 54px; }
  .vol-group { max-width: 100%; }
}
