/* ═══════════════ RADIO PAGE ═══════════════ */

/* ── Radio Hero ── */
.h-radio-hero {
  background: linear-gradient(135deg, #FF6B35 0%, #E8480F 50%, #FF6B35 100%);
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 100px 24px 0;
  text-align: center;
}

@media (min-width: 1024px) {
  .h-radio-hero { padding: 140px 24px 0; }
}

.h-radio-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(255,255,255,0.08) 0%, transparent 50%);
}

.h-radio-hero-content {
  position: relative; z-index: 1;
  max-width: 600px; margin: 0 auto;
}

.h-radio-hero .h-separator {
  width: 100vw; margin-left: calc(-50vw + 50%);
}

.h-radio-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 20px; border-radius: 20px;
  background: rgba(255,255,255,0.2);
  color: #fff; font-size: 13px; font-weight: 600;
  margin-bottom: 20px;
}

.h-radio-hero-badge .pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff; animation: hPulse 2s infinite;
}

.h-radio-hero-title {
  font-size: 36px; font-weight: 800; color: #fff;
  margin-bottom: 8px; line-height: 1.2;
}

.h-radio-hero-sub {
  font-size: 16px; color: #fff;
}

/* ── Now Playing Section ── */
.h-radio-nowplaying {
  background: #fff; padding: 40px 24px;
}

.h-radio-nowplaying-inner {
  max-width: 600px; margin: 0 auto;
  display: flex; flex-direction: column;
  align-items: center; gap: 28px;
}

/* ── Album Art ── */
.h-radio-art {
  width: 280px; height: 280px; border-radius: 20px;
  overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  background: #F0F0F0; flex-shrink: 0;
  transition: all 0.3s; position: relative;
}

.h-radio-art img { width: 100%; height: 100%; object-fit: cover; display: block; }

.h-radio-art-default {
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; color: #ccc; height: 100%;
}

.h-radio-art.spinning-art { animation: hSpinSlow 8s linear infinite; }
@keyframes hSpinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ── Track Info ── */
.h-radio-track { text-align: center; width: 100%; }

.h-radio-track-title {
  font-size: 24px; font-weight: 700; color: #1A1A1A;
  margin-bottom: 4px; min-height: 32px;
}

.h-radio-track-artist {
  font-size: 16px; font-weight: 400; color: #777; min-height: 24px;
}

.h-radio-track-placeholder { color: #bbb; font-style: italic; }

.h-radio-streamer-name {
  margin-top: 8px; font-size: 13px; font-weight: 600; color: #E8480F;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

.h-radio-streamer-name::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: #E8480F; animation: hPulse 2s infinite; display: inline-block;
}

/* ── Listeners ── */
.h-radio-listeners {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; color: #888;
}

.h-radio-listeners strong { color: #FF6B35; font-weight: 700; }

/* ── Player Card ── */
.h-radio-player-card {
  max-width: 500px; width: 100%;
  background: #fff; border: 1px solid #E5E5E5;
  border-radius: 16px; padding: 24px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  display: flex; flex-direction: column; gap: 16px;
}

.h-radio-controls { display: flex; align-items: center; gap: 12px; }

.h-radio-btn {
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: #F5F5F5; color: #3F3F3F;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s; flex-shrink: 0;
}

.h-radio-btn:hover { background: #E8E8E8; }
.h-radio-btn.playing { background: #FF6B35; color: #fff; }

.h-radio-progress {
  flex: 1; height: 6px; background: #E5E5E5;
  border-radius: 3px; overflow: hidden;
}

.h-radio-progress-bar {
  height: 100%; width: 0;
  background: linear-gradient(to right, #FF6B35, #E8480F);
  border-radius: 3px; transition: width .5s linear;
}

.h-radio-time {
  font-size: 12px; color: #888; font-weight: 600;
  min-width: 36px; font-variant-numeric: tabular-nums;
}

.h-radio-vol { width: 40px; height: 40px; }

/* ── Volume ── */
.h-radio-volume-wrap { display: flex; align-items: center; gap: 8px; }

.h-radio-volume-slider {
  width: 80px; height: 4px;
  -webkit-appearance: none; appearance: none;
  background: #E5E5E5; border-radius: 2px; outline: none;
}

.h-radio-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px;
  border-radius: 50%; background: #FF6B35; cursor: pointer;
  border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* ── Song History ── */
.h-radio-history {
  background: #FF6B35;
  padding: 40px 24px 60px;
}

.h-radio-history-title {
  font-size: 18px; font-weight: 600; color: #fff;
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}

.h-radio-history-inner { max-width: 600px; margin: 0 auto; }

.h-radio-history-list { display: flex; flex-direction: column; gap: 8px; }

.h-radio-history-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: #fff;
  border-radius: 12px; transition: all .2s;
}

.h-radio-history-item:hover { background: #f8f8f8; }

.h-radio-history-art {
  width: 40px; height: 40px; border-radius: 8px;
  overflow: hidden; background: #F0F0F0; flex-shrink: 0;
}

.h-radio-history-art img { width: 100%; height: 100%; object-fit: cover; }

.h-radio-history-art .no-art {
  display: flex; align-items: center; justify-content: center;
  height: 100%; font-size: 16px; color: #bbb;
}

.h-radio-history-info { flex: 1; min-width: 0; }

.h-radio-history-song {
  font-size: 14px; font-weight: 600; color: #1A1A1A;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.h-radio-history-artist {
  font-size: 12px; color: #888;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.h-radio-history-time {
  font-size: 11px; color: #aaa;
  white-space: nowrap; flex-shrink: 0;
}

/* ── Error / Loading ── */
.h-radio-error {
  background: #FFF3F0; border: 1px solid #FFD6CC;
  border-radius: 12px; padding: 12px 16px;
  color: #E8480F; font-size: 14px; text-align: center;
}

.h-radio-loading {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; color: #888; font-size: 14px; padding: 20px;
}

.h-radio-loading .spinner {
  width: 18px; height: 18px;
  border: 2px solid #E5E5E5; border-top-color: #FF6B35;
  border-radius: 50%; animation: hSpin 0.6s linear infinite;
}

/* ── No stream data ── */
.h-radio-offline { padding: 40px; text-align: center; color: #888; }

.h-radio-offline h3 {
  font-size: 20px; color: #3F3F3F; margin-bottom: 8px;
}

/* ── Live indicator ── */
.h-live-indicator {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: #E8480F;
}

.h-live-indicator .pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #E8480F; animation: hPulse 2s infinite;
}

/* ── Responsive ── */
@media (min-width: 768px) {
  .h-radio-hero { padding: 140px 24px 0; }
  .h-radio-hero-title { font-size: 48px; }
  .h-radio-art { width: 320px; height: 320px; }
  .h-radio-track-title { font-size: 28px; }
  .h-radio-track-artist { font-size: 18px; }
}
