/* BUA v2 — Radio BUA (/radio)
   El shell de la página (hero, reproductor, pestañas, encabezados) pasa a v2.
   Las grillas que dibuja radio.js (series, videoreportajes) y el panel del
   creador conservan sus componentes: radio.js está acoplado a ellos y
   esa reescritura es trabajo de otra fase. */

.v2-radio {
  padding-bottom: 40px;
}

.v2-radio .v2-pagehead h1 em {
  font-style: normal;
  color: var(--v2-gold);
}

.radio-auth-help {
  margin: 0 0 12px;
  font-size: .78rem;
  line-height: 1.55;
  color: var(--texto-sec);
}

.radio-passbox {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  background: var(--crema-alt);
}

.radio-passbox summary {
  cursor: pointer;
  font-size: .82rem;
  font-weight: 600;
  color: var(--texto);
}

.radio-passbox form {
  margin-top: 12px;
}

/* ===== REPRODUCTOR ===== */
.v2-radio-player {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 18px 0 16px;
  padding: 20px 22px;
  border-radius: 22px;
  background: var(--v2-primary);
  color: var(--v2-on-primary);
  box-shadow: var(--v2-shadow-lg);
}

.v2-radio-art {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .12);
  color: var(--v2-gold);
  font-size: 26px;
  line-height: 1;
}

.v2-radio-info {
  min-width: 0;
}

.v2-radio-kicker {
  display: block;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .72;
}

.v2-radio-now {
  display: block;
  margin-top: 4px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-radio-eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
  margin-top: 8px;
}

.v2-radio-eq span {
  width: 3px;
  height: 5px;
  border-radius: 2px;
  background: var(--v2-gold);
  opacity: .35;
}

.v2-radio-eq.playing span {
  opacity: 1;
  animation: v2radioeq .9s ease-in-out infinite;
}

.v2-radio-eq span:nth-child(2) { animation-delay: .12s; }
.v2-radio-eq span:nth-child(3) { animation-delay: .24s; }
.v2-radio-eq span:nth-child(4) { animation-delay: .36s; }
.v2-radio-eq span:nth-child(5) { animation-delay: .48s; }

@keyframes v2radioeq {
    0%, 100% { height: 5px; }
    50% { height: 16px; }
}

.v2-radio-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.v2-radio-skip {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--v2-on-primary);
  cursor: pointer;
  transition: background .18s var(--v2-ease), transform .18s var(--v2-ease);
}

.v2-radio-skip:hover {
  background: rgba(255, 255, 255, .18);
  transform: scale(1.05);
}

.v2-radio-skip--small {
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.v2-radio-progress {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.v2-radio-progress span {
  min-width: 38px;
  font-size: .72rem;
  font-weight: 600;
  text-align: center;
  opacity: .82;
}

.v2-radio-progress input[type="range"] {
  flex: 1;
  min-width: 0;
  accent-color: var(--v2-gold);
  cursor: pointer;
}

.v2-radio-play {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--v2-gold);
  color: #1B1408;
  cursor: pointer;
  transition: transform .18s var(--v2-ease);
}

.v2-radio-play:hover {
  transform: scale(1.05);
}

.v2-radio-timer {
  font-size: .78rem;
  font-weight: 600;
  opacity: .8;
  white-space: nowrap;
}

/* ===== PESTAÑAS ===== */
.v2-radio-tabs {
  margin-bottom: 8px;
}

/* radio.js marca la pestaña activa con la clase "active" */
.v2-radio-tabs .radio-view-tab {
  padding: 7px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--v2-muted);
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}

.v2-radio-tabs .radio-view-tab.active {
  background: var(--v2-surface);
  color: var(--v2-ink);
  box-shadow: 0 1px 2px rgba(15, 42, 71, .08);
}

/* ===== SECCIONES ===== */
.v2-radio-section {
  margin-top: 26px;
}

.v2-radio-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.v2-radio-section-head h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--v2-ink);
}

.v2-radio-section-head p {
  margin-top: 2px;
  color: var(--v2-muted);
  font-size: .82rem;
}

.v2-radio-search {
  flex: 1 1 220px;
  max-width: 320px;
  padding: 9px 14px;
  border: 1px solid var(--v2-border);
  border-radius: 999px;
  background: var(--v2-surface);
  color: var(--v2-ink);
  font: inherit;
  font-size: .84rem;
}

.v2-radio-search:focus {
  outline: 2px solid var(--v2-gold);
  outline-offset: 1px;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 700px) {
  .v2-radio-player {
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 16px;
  }
  .v2-radio-art {
    width: 50px;
    height: 50px;
  }
  .v2-radio-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
  }
  .v2-radio-search {
    max-width: none;
  }
}
