/* ===== NADA — CSS Design System 2026 ===== */
:root {
  --accent: #6C63FF;
  --accent-dim: rgba(108, 99, 255, 0.15);
  --accent-glow: rgba(108, 99, 255, 0.4);
  --bg: #0A0A0A;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-hover: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(108, 99, 255, 0.35);
  --text: #F2F2F7;
  --text-muted: rgba(255,255,255,0.45);
  --text-dim: rgba(255,255,255,0.25);
  --radius: 20px;
  --radius-sm: 12px;
  --blur: blur(24px);
  --dynamic: var(--accent);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== Ambient Background ===== */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: blobFloat 12s ease-in-out infinite;
}

.blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--dynamic) 0%, transparent 70%);
  top: -200px; left: -150px;
  animation-delay: 0s;
}

.blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #FF6B9D 0%, transparent 70%);
  bottom: -100px; right: -100px;
  animation-delay: -4s;
}

.blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #00D2FF 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -8s;
  opacity: 0.12;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 10px) scale(0.95); }
}

/* ===== App Shell ===== */
.app-shell {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ===== Header ===== */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 12px) 20px 12px;
  background: rgba(10,10,10,0.8);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 30%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tab-nav {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
}

.tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.3px;
}

.tab-btn svg { width: 16px; height: 16px; }

.tab-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 16px var(--accent-glow);
}

.tab-btn:hover:not(.active) {
  color: var(--text);
  background: var(--surface-hover);
}

/* ===== Tab Content ===== */
.tab-content {
  display: none;
  flex: 1;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 80px;
}

.tab-content.active { display: flex; }

/* ===== Player ===== */
.player-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 36px 24px 0;
}

/* Album Art */
.art-container {
  position: relative;
  width: 240px;
  height: 240px;
  flex-shrink: 0;
}

.art-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1.5px solid rgba(108,99,255,0.2);
  animation: ringPulse 3s ease-in-out infinite;
}

.art-ring.ring-2 {
  inset: -24px;
  border-color: rgba(108,99,255,0.1);
  animation-delay: -1.5s;
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

.album-art {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border-accent);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 60px var(--accent-glow),
    0 20px 60px rgba(0,0,0,0.6);
  position: relative;
  z-index: 2;
  transition: box-shadow 0.6s ease;
}

.album-art.playing {
  animation: artSpin 20s linear infinite;
}

@keyframes artSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.album-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.art-placeholder { width: 70%; opacity: 0.6; }

.visualizer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.visualizer.active { opacity: 1; }

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

.track-title-wrap {
  overflow: hidden;
}

.track-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.track-artist {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 300;
}

.track-album {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Progress */
.progress-wrap {
  width: 100%;
}

.progress-bar-track {
  position: relative;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  cursor: pointer;
  margin-bottom: 8px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #9B8FFF);
  border-radius: 99px;
  width: 0%;
  transition: width 0.1s linear;
}

.progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-glow);
  transition: left 0.1s linear;
  cursor: grab;
}

.progress-thumb:active { cursor: grabbing; transform: translate(-50%, -50%) scale(1.3); }

.time-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Controls */
.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.ctrl-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.ctrl-btn:hover { background: var(--surface-hover); transform: scale(1.05); }
.ctrl-btn:active { transform: scale(0.93); }

.ctrl-sm { width: 44px; height: 44px; }
.ctrl-sm svg { width: 18px; height: 18px; }

.ctrl-md { width: 52px; height: 52px; }
.ctrl-md svg { width: 24px; height: 24px; }

.ctrl-lg {
  width: 68px;
  height: 68px;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}
.ctrl-lg:hover { background: #7B73FF; transform: scale(1.08); }
.ctrl-lg svg { width: 28px; height: 28px; }

.ctrl-btn.active { color: var(--accent); border-color: var(--border-accent); }

.hidden { display: none !important; }

/* Volume */
.volume-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.vol-icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-muted); }

.volume-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,0.1);
  cursor: pointer;
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 8px var(--accent-glow);
}

.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
}

/* Add Music */
.add-music-wrap {
  width: 100%;
  padding-bottom: 12px;
}

.add-btn {
  width: 100%;
  padding: 14px 20px;
  background: var(--surface);
  border: 1.5px dashed var(--border-accent);
  border-radius: var(--radius);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  backdrop-filter: var(--blur);
}

.add-btn svg { width: 18px; height: 18px; }

.add-btn:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* ===== Library & Playlist ===== */
.library-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 8px;
}

.library-header h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

.library-actions { display: flex; gap: 8px; }

.icon-btn {
  width: 36px; height: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}

.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { background: var(--surface-hover); color: var(--text); }

.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 20px 12px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  backdrop-filter: var(--blur);
}

.search-wrap svg { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }

.search-input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  flex: 1;
}

.search-input::placeholder { color: var(--text-dim); }

/* Track List */
.track-list {
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  gap: 4px;
}

.track-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.track-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.2s ease;
  border-radius: 0 2px 2px 0;
}

.track-item:hover { background: var(--surface-hover); }
.track-item:hover::before { transform: scaleY(1); }

.track-item.active {
  background: var(--accent-dim);
  border-color: var(--border-accent);
}
.track-item.active::before { transform: scaleY(1); }

.track-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(108,99,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border);
}

.track-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.track-thumb svg { width: 20px; height: 20px; color: var(--accent); opacity: 0.7; }

.track-meta { flex: 1; overflow: hidden; }

.track-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.track-item.active .track-name { color: var(--accent); }

.track-detail {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-duration {
  font-size: 11px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.track-playing-anim {
  display: none;
  gap: 2px;
  align-items: flex-end;
  height: 16px;
  flex-shrink: 0;
}

.track-item.active .track-playing-anim { display: flex; }

.play-bar {
  width: 3px;
  background: var(--accent);
  border-radius: 99px;
  animation: playBarAnim 0.8s ease-in-out infinite;
}
.play-bar:nth-child(1) { height: 8px; animation-delay: 0s; }
.play-bar:nth-child(2) { height: 16px; animation-delay: 0.2s; }
.play-bar:nth-child(3) { height: 10px; animation-delay: 0.4s; }

@keyframes playBarAnim {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 12px;
  text-align: center;
}

.empty-state svg { width: 64px; height: 64px; opacity: 0.6; }
.empty-state p { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--text-muted); }
.empty-state span { font-size: 12px; color: var(--text-dim); }

/* ===== Footer ===== */
.app-footer {
  margin-top: auto;
  padding: 24px 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  background: rgba(10,10,10,0.6);
  backdrop-filter: var(--blur);
}

.footer-brand {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.footer-brand strong { color: var(--accent); }

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 11px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-copy {
  font-size: 10px;
  color: var(--text-dim);
}

/* ===== Install Banner ===== */
.install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 20px;
  background: rgba(20, 18, 40, 0.95);
  border-top: 1px solid var(--border-accent);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  z-index: 200;
  transition: transform 0.35s ease;
}

.install-banner.hidden { transform: translateY(100%); }

.install-content {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.install-title { font-size: 14px; font-weight: 600; }
.install-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.install-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.install-dismiss {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 12px;
  cursor: pointer;
}

.install-confirm {
  padding: 8px 20px;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 16px var(--accent-glow);
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(30, 28, 50, 0.95);
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  z-index: 300;
  backdrop-filter: var(--blur);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ===== Page Styles (for privacy, terms, etc) ===== */
.page-wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 24px 80px;
  position: relative;
  z-index: 1;
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
  transition: opacity 0.2s;
}

.page-back:hover { opacity: 0.75; }

.page-back svg { width: 16px; height: 16px; }

.page-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.page-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.page-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  backdrop-filter: var(--blur);
}

.page-section h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.page-section p, .page-section li {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.page-section ul {
  padding-left: 16px;
  margin-top: 8px;
}

.page-section li { margin-bottom: 4px; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

/* ===== Equalizer Bars ===== */
.eq-bars {
  width: 100%;
  height: 64px;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.4s ease;
  display: block;
  flex-shrink: 0;
}
.eq-bars.active { opacity: 1; }

/* iOS fallback: CSS animated bars di #eq-ios div */
.eq-ios {
  width: 100%;
  height: 64px;
  display: none;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 0 8px;
  flex-shrink: 0;
}
.eq-ios.active { display: flex; }

.eq-bar-ios {
  flex: 1;
  max-width: 10px;
  min-height: 4px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, hsla(260,80%,65%,0.9), hsla(280,85%,70%,0.8), hsla(320,90%,75%,0.6));
  animation: iosBar 0.8s ease-in-out infinite alternate;
  transform-origin: bottom;
}

@keyframes iosBar {
  0%   { transform: scaleY(0.15); opacity: 0.5; }
  100% { transform: scaleY(1); opacity: 1; }
}

/* ===== iOS Safe Area ===== */
body {
  padding-bottom: env(safe-area-inset-bottom);
}

.app-footer {
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

/* ===== Radio Tab Active ===== */
.tab-btn.tab-radio.active {
  background: linear-gradient(135deg, #FF6B9D, #FF8C42);
  box-shadow: 0 0 16px rgba(255, 107, 157, 0.45);
}

/* ===== Radio Now Playing Bar ===== */
.radio-now {
  margin: 12px 16px 0;
  background: linear-gradient(135deg, rgba(255,107,157,0.12), rgba(255,140,66,0.08));
  border: 1px solid rgba(255,107,157,0.3);
  border-radius: var(--radius);
  padding: 12px 14px;
  animation: fadeSlideDown 0.3s ease;
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.radio-now-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.radio-now-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(255,107,157,0.15);
  border: 1px solid rgba(255,107,157,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  overflow: hidden;
}

.radio-now-info { flex: 1; overflow: hidden; }

.radio-now-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.radio-now-country {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.radio-mini-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
  margin-top: 5px;
}

.rbar {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(to top, #FF6B9D, #FFB347);
  animation: radioBarAnim 0.7s ease-in-out infinite alternate;
}

.rbar:nth-child(1) { height: 8px; animation-delay: 0s; }
.rbar:nth-child(2) { height: 14px; animation-delay: 0.1s; }
.rbar:nth-child(3) { height: 6px; animation-delay: 0.2s; }
.rbar:nth-child(4) { height: 16px; animation-delay: 0.15s; }
.rbar:nth-child(5) { height: 10px; animation-delay: 0.05s; }
.rbar:nth-child(6) { height: 12px; animation-delay: 0.25s; }
.rbar:nth-child(7) { height: 8px; animation-delay: 0.3s; }

@keyframes radioBarAnim {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

.live-badge {
  background: #FF6B9D;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  letter-spacing: 1px;
  flex-shrink: 0;
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.radio-stop-btn {
  width: 36px; height: 36px;
  background: rgba(255,107,157,0.15);
  border: 1px solid rgba(255,107,157,0.3);
  border-radius: 50%;
  color: #FF6B9D;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}
.radio-stop-btn:hover { background: rgba(255,107,157,0.25); }
.radio-stop-btn svg { width: 14px; height: 14px; }

/* ===== Radio Controls ===== */
.radio-controls {
  padding: 12px 16px 0;
}

.radio-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 4px;
  scrollbar-width: none;
}
.radio-filters::-webkit-scrollbar { display: none; }

.filter-btn {
  flex-shrink: 0;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-btn.active {
  background: rgba(255,107,157,0.15);
  border-color: rgba(255,107,157,0.4);
  color: #FF8C42;
}

.filter-btn:hover:not(.active) {
  background: var(--surface-hover);
  color: var(--text);
}

/* ===== Radio List ===== */
.radio-list-wrap {
  padding: 12px 16px;
  flex: 1;
  overflow-y: auto;
}

.radio-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.radio-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: #FF6B9D;
  transform: scaleY(0);
  transition: transform 0.2s ease;
  border-radius: 0 2px 2px 0;
}

.radio-item:hover { background: var(--surface-hover); }
.radio-item:hover::before { transform: scaleY(1); }

.radio-item.playing {
  background: rgba(255,107,157,0.08);
  border-color: rgba(255,107,157,0.3);
}
.radio-item.playing::before { transform: scaleY(1); }

.radio-item-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(255,107,157,0.1);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  overflow: hidden;
}

.radio-item-meta { flex: 1; overflow: hidden; }

.radio-item-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radio-item.playing .radio-item-name { color: #FF8C42; }

.radio-item-detail {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.radio-listeners {
  font-size: 10px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.mini-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
  flex-shrink: 0;
}

.mini-bar {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: #FF6B9D;
  animation: radioBarAnim 0.6s ease-in-out infinite alternate;
}
.mini-bar:nth-child(1) { height: 8px; animation-delay: 0s; }
.mini-bar:nth-child(2) { height: 14px; animation-delay: 0.2s; }
.mini-bar:nth-child(3) { height: 10px; animation-delay: 0.4s; }

/* ===== Radio Loading ===== */
.radio-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 60px 20px;
}

.loading-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 40px;
}

.loading-bars span {
  display: block;
  width: 6px;
  border-radius: 3px;
  background: linear-gradient(to top, #FF6B9D, #FFB347);
  animation: loadBarAnim 0.8s ease-in-out infinite alternate;
}
.loading-bars span:nth-child(1) { height: 20px; animation-delay: 0s; }
.loading-bars span:nth-child(2) { height: 35px; animation-delay: 0.1s; }
.loading-bars span:nth-child(3) { height: 25px; animation-delay: 0.2s; }
.loading-bars span:nth-child(4) { height: 40px; animation-delay: 0.15s; }
.loading-bars span:nth-child(5) { height: 18px; animation-delay: 0.25s; }

@keyframes loadBarAnim {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

.radio-loading p {
  font-size: 13px;
  color: var(--text-muted);
}