/* Phase 13.1 — Evotic Radio player page. Audio natif `<audio>` + cover. */

/* Phase Bonus-2.6.5 — stations grid (cards) — same pattern as TV */
.bc-channel-section {
  margin: 12px 14px 6px;
}
.bc-channel-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 800; color: #fff;
  margin: 0 0 10px;
}
.bc-channel-section-title i { color: #00BCD4; }
.bc-channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.bc-channel-card {
  appearance: none; border: none; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.10);
  color: #fff;
  min-height: 110px;
  position: relative;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.bc-channel-card:active { transform: scale(0.97); }
.bc-channel-card.active {
  border-color: #00BCD4;
  background: linear-gradient(135deg, rgba(0,188,212,.30), rgba(0,188,212,.10));
  box-shadow: 0 0 0 2px rgba(0,188,212,.35);
}
.bc-channel-card.checking { opacity: 0.6; }
.bc-channel-card.dead { display: none; }
.bc-card-icon {
  font-size: 28px; line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}
.bc-card-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.bc-card-name {
  font-weight: 800; font-size: 14px; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bc-card-desc {
  font-size: 11px; opacity: 0.75; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.bc-card-cat {
  font-size: 10px; opacity: 0.55; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.4px;
}
.bc-card-status {
  position: absolute; top: 8px; right: 8px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.5px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 7px;
  border-radius: 8px;
  background: rgba(0,0,0,0.35);
}
.bc-channel-card.live .bc-card-status {
  background: rgba(76,175,80,0.22); color: #81C784;
}
.bc-channel-card.checking .bc-card-status {
  background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.6);
}
.bc-live-dot-mini {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4CAF50;
  box-shadow: 0 0 6px rgba(76,175,80,0.8);
  animation: bc-pulse-dot 1.4s ease-in-out infinite;
}
@keyframes bc-pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.bc-body { background: #0F1B1F; min-height: 100vh; color: #fff; padding-bottom: 32px; }

.app-header.bc-header {
  position: sticky; top: 0; z-index: 20;
  padding-top: env(safe-area-inset-top, 0);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.app-header.bc-radio-header { background: linear-gradient(135deg, #00BCD4, #0097A7 60%, #006064); color: #fff; }
.app-header.bc-header .app-header-inner {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; max-width: 720px; margin: 0 auto;
}
.app-header.bc-header .hdr-back {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.22); color: #fff; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
  transition: transform .15s, background .15s;
}
.app-header.bc-header .hdr-back:active { transform: scale(.92); background: rgba(255,255,255,.3); }
.app-header.bc-header .app-header-title {
  flex: 1; display: flex; flex-direction: column;
  min-width: 0; line-height: 1.15;
}
.app-header.bc-header .app-header-name {
  font-size: 17px; font-weight: 900; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-header.bc-header .app-header-sub {
  font-size: 10px; font-weight: 800; color: rgba(255,255,255,.85);
  text-transform: uppercase; letter-spacing: .5px; margin-top: 1px;
  display: flex; align-items: center;
}

.bc-live-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 9.5px; font-weight: 900; padding: 2px 7px;
  border-radius: 8px; background: rgba(255,255,255,.18); letter-spacing: .6px;
}
.bc-live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--card-bg);
  animation: bcPulse 1.6s ease-in-out infinite;
}
@keyframes bcPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(1.4); } }

.bc-shell { max-width: 720px; margin: 0 auto; padding: 18px 16px 24px; }

/* ─── Radio hero ─── */
.bc-radio-hero {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 24px 18px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(0,188,212,.16), rgba(0,150,167,.06));
  border: 1px solid rgba(0,188,212,.18);
}
.bc-radio-cover {
  width: 180px; height: 180px; border-radius: 50%;
  background: linear-gradient(135deg, #00BCD4, #006064);
  display: flex; align-items: center; justify-content: center;
  font-size: 60px; color: #fff; flex-shrink: 0;
  margin-bottom: 18px;
  box-shadow: 0 12px 30px rgba(0,188,212,.4);
  animation: bcRadioFloat 5s ease-in-out infinite;
  overflow: hidden;
}
.bc-radio-cover img { width: 100%; height: 100%; object-fit: cover; }
@keyframes bcRadioFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.bc-radio-cover.playing { animation: bcRadioSpin 8s linear infinite; }
@keyframes bcRadioSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.bc-radio-info { width: 100%; }
.bc-now-label {
  font-size: 10.5px; font-weight: 900; letter-spacing: 1px;
  color: rgba(255,255,255,.6); text-transform: uppercase; margin-bottom: 6px;
}
.bc-now-title { font-size: 20px; font-weight: 900; color: #fff; line-height: 1.3; }
.bc-now-host { font-size: 13px; color: rgba(255,255,255,.75); font-weight: 700; margin-top: 6px; }
.bc-now-host:empty { display: none; }

/* ─── Controls ─── */
.bc-radio-controls {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 22px 18px;
}
.bc-play-btn {
  width: 76px; height: 76px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, #00BCD4, #006064);
  color: #fff; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0,188,212,.4);
  transition: transform .15s ease, box-shadow .15s ease;
}
.bc-play-btn:active { transform: scale(.94); }
.bc-play-btn:disabled { opacity: .55; cursor: default; }

.bc-radio-status { font-size: 12.5px; color: rgba(255,255,255,.7); font-weight: 700; }

/* ─── Schedule list (shared style with TV) ─── */
.bc-schedule { margin-top: 18px; }
.bc-schedule-title {
  font-size: 14px; font-weight: 900; color: #fff;
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.bc-schedule-title i { color: #00BCD4; }
.bc-schedule-list { display: flex; flex-direction: column; gap: 8px; }
.bc-schedule-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}
.bc-schedule-row.active {
  background: rgba(0,188,212,.14);
  border-color: rgba(0,188,212,.35);
}
.bc-schedule-time {
  font-size: 12px; font-weight: 900; color: #fff;
  font-variant-numeric: tabular-nums; min-width: 60px; text-align: center;
}
.bc-schedule-body { flex: 1; min-width: 0; }
.bc-schedule-prog-title { font-size: 13.5px; font-weight: 800; color: #fff; line-height: 1.3; }
.bc-schedule-host { font-size: 11.5px; color: rgba(255,255,255,.6); margin-top: 2px; font-weight: 600; }
.bc-schedule-empty {
  text-align: center; padding: 40px 16px;
  color: rgba(255,255,255,.55); font-size: 12.5px;
}
.bc-schedule-empty i { font-size: 28px; opacity: .4; margin-bottom: 10px; display: block; }

.bc-shell .ns-loading { color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 10px; padding: 32px; font-size: 13px; justify-content: center; }
.gs-spinner { display: inline-block; width: 22px; height: 22px; border: 2.5px solid rgba(255,255,255,.18); border-top-color: #00BCD4; border-radius: 50%; animation: bcSpin .8s linear infinite; }
@keyframes bcSpin { to { transform: rotate(360deg); } }
.err { color: #FF6B6B; font-size: 12.5px; }

/* Phase Bonus-2.10 — autoplay-block coach pulse on play button */
.bc-play-pulse {
  animation: bcPlayPulse 1.2s ease-in-out infinite;
}
@keyframes bcPlayPulse {
  0%   { box-shadow: 0 0 0 0 rgba(103, 80, 164, 0.55); }
  70%  { box-shadow: 0 0 0 22px rgba(103, 80, 164, 0); }
  100% { box-shadow: 0 0 0 0 rgba(103, 80, 164, 0); }
}
