/* MDANI TECH — public MP3 / Audio Library and mini player. Uses the theme tokens from styles.css. */
.nav a[hidden], .bottom-nav a[hidden] { display: none; }

.audio-hero .hero-actions .btn svg { width: 18px; height: 18px; }
.btn.toggle[aria-pressed="true"] { color: var(--neon); border-color: var(--neon); background: rgba(43,255,79,.1); }
.audio-disc { position: relative; display: grid; place-items: center; width: clamp(150px, 18vw, 220px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(3,29,5,.9) 0 18%, rgba(43,255,79,.14) 19% 20%, rgba(3,29,5,.85) 21% 60%, rgba(43,255,79,.12) 61% 62%, rgba(3,29,5,.9) 63%);
  border: 1px solid var(--line-strong); box-shadow: 0 0 40px -8px rgba(43,255,79,.6); }
.audio-disc img { width: 62%; height: auto; filter: drop-shadow(0 0 14px rgba(43,255,79,.5)); }
body.playing-audio .audio-disc { animation: spin 9s linear infinite; }

.audio-list { padding: 4px 0; }
.atrack { grid-template-columns: auto 1fr auto; }
.atrack .meta b { font-size: 15px; }
.aplay { cursor: pointer; padding: 0; }
.aplay svg { width: 18px; height: 18px; }
.aplay:hover { border-color: var(--neon); box-shadow: 0 0 14px -4px var(--neon); }
.atrack.playing { background: linear-gradient(90deg, rgba(43,255,79,.12), transparent 70%); }
.atrack.playing b { color: var(--neon); }
.atrack .icon-btn { color: inherit; text-decoration: none; }
.eq { display: flex; gap: 3px; align-items: flex-end; height: 16px; }
.eq i { width: 3px; background: var(--neon); border-radius: 2px; animation: eq .9s ease-in-out infinite; box-shadow: 0 0 6px var(--neon); }
.eq i:nth-child(2) { animation-delay: .2s; } .eq i:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }
.audio-empty { display: grid; justify-items: center; gap: 12px; padding: 34px 20px; text-align: center; }
.audio-empty h2 { margin: 0; font: 700 20px/1.2 var(--font-display); }
.audio-empty p { margin: 0; }
.chips .chip svg { width: 14px; height: 14px; vertical-align: -2px; }

/* mini player: fixed above the page, stays while visitors use other tools */
.aplayer { position: fixed; z-index: 40; left: calc(var(--sidebar) + 32px); right: 20px; bottom: 16px; display: grid;
  grid-template-columns: minmax(150px, 1.1fr) auto minmax(200px, 2fr) minmax(120px, .8fr) auto auto; align-items: center; gap: 14px;
  padding: 10px 14px; background: var(--glass-strong); border-color: var(--line-strong); box-shadow: var(--shadow), 0 0 30px -10px rgba(43,255,79,.5); }
.aplayer[hidden] { display: none; }
body.has-player .main { padding-bottom: 110px; }
.ap-now { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ap-now .meta { min-width: 0; }
.ap-now b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-now small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-art { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--neon);
  background: radial-gradient(circle at 30% 20%, rgba(43,255,79,.25), rgba(3,29,5,.6)); border: 1px solid var(--line-strong); }
.ap-ctl { display: flex; align-items: center; gap: 6px; }
.ap-ctl .icon-btn { width: 38px; height: 38px; }
.ap-ctl .icon-btn svg { width: 18px; height: 18px; }
.ap-ctl .ap-main { width: 46px; height: 46px; border-radius: 50%; color: #021006; border: 0; background: linear-gradient(135deg, var(--neon), var(--emerald)); box-shadow: 0 0 18px -4px var(--neon); }
.ap-ctl .ap-main:hover { color: #021006; }
.ap-ctl .ap-main svg { fill: currentColor; stroke: none; }
.ap-seek { display: flex; align-items: center; gap: 10px; font: 600 11px/1 var(--font-tech); color: var(--muted); min-width: 0; }
.ap-seek input { flex: 1; min-width: 0; }
.ap-vol { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ap-vol .icon-btn, .aplayer > .icon-btn { width: 36px; height: 36px; color: inherit; }
.ap-vol .icon-btn svg, .aplayer > .icon-btn svg { width: 18px; height: 18px; }
.ap-vol input { flex: 1; min-width: 0; }
.aplayer input[type=range] { accent-color: var(--neon); height: 4px; cursor: pointer; }
.aplayer a[hidden] { display: none; }

@media (max-width: 1100px) {
  .aplayer { grid-template-columns: minmax(0, 1fr) auto auto auto; grid-template-areas: "now ctl dl close" "seek seek seek seek"; row-gap: 8px; }
  .ap-now { grid-area: now; } .ap-ctl { grid-area: ctl; } .ap-seek { grid-area: seek; } .ap-vol { display: none; }
  #apDl { grid-area: dl; } .ap-close { grid-area: close; }
  body.has-player .main { padding-bottom: 150px; }
}
@media (max-width: 900px) {
  .aplayer { left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); }
  body.has-player .main { padding-bottom: calc(230px + env(safe-area-inset-bottom)); }
  .audio-hero .hero-actions { justify-content: center; }
  .audio-disc { order: -1; margin: 0 auto; width: 140px; }
}
@media (max-width: 520px) {
  .ap-ctl [data-p="prev"] { display: none; }
  .ap-art { display: none; }
}
