/* ============================================================
   topdevphone — Music app styles
   Pink→violet identity (#fc466b → #8b1cd6).

   Album art is generated, not downloaded: an animated CSS gradient
   (per-station --a/--b) with a rotating conic sheen and a live
   equalizer. YouTube loads only after a user submits a valid link.
   ============================================================ */

/* ---------- policy-compliant YouTube link player ---------- */
.mu-youtube-label { margin-top: 4px; }
.mu-youtube-entry { display: grid; grid-template-columns: minmax(0, 1fr) 68px; gap: 8px; margin-bottom: 7px; }
.mu-youtube-entry .input { min-width: 0; }
.mu-youtube-entry .btn-primary { min-height: 42px; padding: 0 12px; }
.mu-youtube-note {
  margin: 0 3px 16px; color: var(--text-tertiary);
  font-size: 10.5px; line-height: 1.4;
}
.mu-youtube-session { margin: 0 0 20px; }
.mu-youtube-player {
  width: 100%; height: 200px; overflow: hidden;
  border-radius: var(--radius-card-lg); background: #09090b;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.34);
}
.mu-youtube-player iframe { display: block; width: 100%; height: 200px; border: 0; }
.mu-youtube-status { display: flex; flex-direction: column; gap: 2px; padding: 10px 2px 9px; }
.mu-youtube-status strong { font-size: 14px; }
.mu-youtube-status span { color: var(--text-secondary); font-size: 11.5px; }
.mu-youtube-clear { width: 100%; min-height: 42px; border-radius: 11px; }

/* ---------- artwork ---------- */
.mu-art {
  position: relative;
  width: 100%; aspect-ratio: 1 / 1;
  border-radius: 22px; overflow: hidden;
  margin: 6px 0 18px;
  background: linear-gradient(135deg, var(--a, #fc466b), var(--b, #8b1cd6), var(--a, #fc466b));
  background-size: 300% 300%;
  animation: muFlow 16s ease-in-out infinite;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}
.mu-art::before {
  content: ''; position: absolute; inset: -40%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 255, 255, 0.3) 60deg, transparent 150deg, rgba(255, 255, 255, 0.18) 250deg, transparent 340deg);
  animation: muSpin 11s linear infinite;
  mix-blend-mode: overlay;
}
.mu-art::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 20% 0%, rgba(255, 255, 255, 0.3), transparent 60%);
  pointer-events: none;
}
.mu-art.paused, .mu-art.paused::before { animation-play-state: paused; }
@keyframes muFlow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes muSpin { to { transform: rotate(360deg); } }

.mu-art .mu-art-glyph {
  position: absolute; left: 18px; top: 16px;
  font-size: 26px; color: rgba(255, 255, 255, 0.75);
  display: flex; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}
.mu-art .mu-art-eq {
  position: absolute; left: 18px; right: 18px; bottom: 18px; height: 44px;
  display: flex; align-items: flex-end; gap: 5px;
}
.mu-art .mu-art-eq span {
  flex: 1; border-radius: 3px 3px 0 0;
  background: rgba(255, 255, 255, 0.8);
  height: 26%;
  animation: muBar 1.05s ease-in-out infinite alternate;
}
.mu-art.paused .mu-art-eq span { animation-play-state: paused; height: 16%; opacity: 0.5; }
@keyframes muBar { from { height: 14%; } to { height: 100%; } }

/* ---------- now playing meta ---------- */
.mu-meta { text-align: center; margin-bottom: 16px; }
.mu-title { font-size: 20px; font-weight: 800; letter-spacing: -0.2px; }
.mu-sub { font-size: 12.5px; color: var(--text-secondary); margin-top: 3px; }
.mu-time {
  margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 11.5px; color: var(--text-tertiary);
}
.mu-live {
  font-size: 9.5px; font-weight: 800; letter-spacing: 1.2px;
  padding: 2.5px 8px; border-radius: 8px;
  background: var(--bg-tertiary); color: var(--text-secondary);
}
.mu-live.on { background: rgba(252, 70, 107, 0.18); color: #fc466b; }

/* ---------- transport ---------- */
.mu-controls {
  display: flex; align-items: center; justify-content: center; gap: 26px;
  margin-bottom: 18px;
}
.mu-controls button {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--text-primary);
  transition: transform 0.12s, background 0.15s;
}
.mu-controls button:active { transform: scale(0.9); background: var(--bg-tertiary); }
.mu-controls .mu-play {
  width: 64px; height: 64px; font-size: 26px; color: #fff;
  background: linear-gradient(140deg, #fc466b, #8b1cd6);
  box-shadow: 0 6px 18px rgba(139, 28, 214, 0.4);
}
.mu-controls .mu-play:active { background: linear-gradient(140deg, #fc466b, #8b1cd6); filter: brightness(0.88); }

/* ---------- volume ---------- */
.mu-vol {
  display: flex; align-items: center; gap: 11px;
  background: var(--bg-secondary); border-radius: var(--radius-card);
  padding: 12px 14px; margin-bottom: 18px;
}
.mu-vol .ic { width: 17px; height: 17px; color: var(--text-secondary); flex: 0 0 auto; }
.mu-vol b { font-size: 12px; color: var(--text-secondary); min-width: 26px; text-align: right; }
.mu-vol input[type='range'] {
  -webkit-appearance: none; appearance: none;
  flex: 1; height: 5px; border-radius: 3px; outline: none;
  background: var(--bg-tertiary);
}
.mu-vol input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 17px; height: 17px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); cursor: pointer;
}

/* ---------- station list ---------- */
.mu-row .mu-row-art { border-radius: 8px; }
.mu-row.on .lr-title { color: #fc466b; font-weight: 700; }
.mu-row .lr-side .ic { width: 15px; height: 15px; opacity: 0.5; }
.mu-chip {
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 8px;
  background: rgba(252, 70, 107, 0.16); color: #fc466b;
}
.mu-note {
  font-size: 11px; color: var(--text-tertiary);
  text-align: center; padding: 4px 12px 10px; line-height: 1.45;
}

/* ---------- home-screen widget mini-player ---------- */
.mu-w { display: flex; align-items: center; gap: 11px; }
.mu-w-art {
  width: 42px; height: 42px; border-radius: 10px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.9); font-size: 17px;
  background: linear-gradient(135deg, var(--a, #fc466b), var(--b, #8b1cd6), var(--a, #fc466b));
  background-size: 260% 260%;
  animation: muFlow 12s ease-in-out infinite;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}
.mu-w-art.paused { animation-play-state: paused; filter: saturate(0.6); }
.mu-w-main { flex: 1; min-width: 0; }
.mu-w-title {
  font-size: 13.5px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mu-w-sub {
  font-size: 11px; opacity: 0.6; margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mu-w-ctl { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; font-size: 16px; }
.mu-w-ctl button {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: inherit; opacity: 0.85;
}
.mu-w-ctl button:active { background: rgba(127, 127, 140, 0.28); opacity: 1; }
