/* ==========================================================
   MyMusic — Refined UI (Mobile-first)
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --bg: #0a0a0c;
  --bg-2: #0e0e11;
  --surface: #161619;
  --surface-2: #1e1e22;
  --surface-3: #26262b;
  --text: #ffffff;
  --muted: #9a9aa3;
  --muted-dim: #6b6b73;
  --accent: #1db954;
  --accent-2: #22e065;
  --danger: #e5484d;
  --border: #262629;
  --radius: 14px;
  --radius-lg: 20px;
  --nav-h: 60px;
  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html, body {
  background: radial-gradient(ellipse 900px 500px at 50% -10%, rgba(29,185,84,0.08), transparent), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  overscroll-behavior-y: contain;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ============ TOP LOADING BAR ============ */
.top-loading-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2.5px;
  z-index: 10000;
  background: transparent;
  pointer-events: none;
}
.top-loading-bar.loading {
  background: linear-gradient(90deg, transparent, var(--accent-2), var(--accent), transparent);
  background-size: 200% 100%;
  animation: loadingSweep 0.9s ease-in-out infinite;
}
@keyframes loadingSweep {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============ APP LAYOUT ============ */
.app {
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + 90px + env(safe-area-inset-bottom));
}

.main-content {
  padding: 12px 16px 24px;
  max-width: 720px;
  margin: 0 auto;
  animation: contentFade .25s ease;
}
@keyframes contentFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  margin: 22px 0 12px;
  letter-spacing: -0.4px;
}
.section-title:first-of-type { margin-top: 8px; }

/* ============ TOP BAR ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: rgba(10, 10, 12, 0.78);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.4px;
}
.logo-icon { font-size: 22px; line-height: 1; }
.search-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text);
  transition: background .15s, transform .15s;
}
.search-btn:active { background: rgba(255,255,255,0.08); transform: scale(0.92); }

/* ============ TRENDING CAROUSEL ============ */
.trending-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 -16px;
  padding: 6px 16px 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.trending-scroll::-webkit-scrollbar { display: none; }

.trend-card {
  flex: 0 0 142px;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform .15s;
}
.trend-card:active { transform: scale(0.96); }
.trend-card img {
  width: 142px;
  height: 142px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--surface-2);
  display: block;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}
.trend-title {
  font-size: 13px;
  font-weight: 700;
  margin-top: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trend-artist {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ SONG LIST ============ */
.song-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.song-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 8px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s;
  user-select: none;
}
.song-row:active { background: var(--surface-2); }

.song-cover {
  width: 52px;
  height: 52px;
  border-radius: 9px;
  object-fit: cover;
  background: var(--surface-2);
  flex-shrink: 0;
}

.song-meta { flex: 1; min-width: 0; }
.song-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.song-artist {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.song-play {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
  transition: all .15s;
}
.song-row:active .song-play {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

/* ============ FAVORITE HEART BUTTONS ============ */
.fav-btn {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: transparent;
  border: none;
  color: var(--muted-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color .15s, transform .15s;
}
.fav-btn:active { transform: scale(0.85); }
.fav-btn.is-fav { color: var(--accent-2); }
.fav-btn.is-fav svg { fill: currentColor; }

.mini-fav-btn {
  flex-shrink: 0;
  width: 30px; height: 30px;
  background: transparent;
  border: none;
  color: var(--muted-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color .15s, transform .15s;
}
.mini-fav-btn:active { transform: scale(0.85); }
.mini-fav-btn.is-fav { color: var(--accent-2); }
.mini-fav-btn.is-fav svg { fill: currentColor; }

.fp-fav-btn {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color .15s, transform .15s;
}
.fp-fav-btn:active { transform: scale(0.85); }
.fp-fav-btn.is-fav { color: var(--accent-2); }
.fp-fav-btn.is-fav svg { fill: currentColor; }

/* ============ BOTTOM NAV ============ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: var(--nav-h);
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(12, 12, 14, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255,255,255,0.06);
  z-index: 200;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  padding: 6px 0;
  transition: color .15s;
}
.nav-item svg { width: 22px; height: 22px; }
.nav-item.active { color: var(--accent-2); }
.nav-item:active { color: var(--accent-2); }

/* ============ MINI PLAYER ============ */
.mini-player {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px);
  height: 64px;
  background: var(--surface-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 0 8px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.55);
  z-index: 150;
  cursor: pointer;
  overflow: hidden;
  animation: miniSlideUp .28s cubic-bezier(0.32, 0.72, 0, 1);
  transition: transform .15s;
}
.mini-player:active { transform: scale(0.985); }

@keyframes miniSlideUp {
  from { transform: translateY(80px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.mini-cover {
  width: 46px;
  height: 46px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-2);
}

.mini-info { flex: 1; min-width: 0; }
.mini-title {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-artist {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.mini-play {
  flex-shrink: 0;
  background: var(--accent);
  color: #000;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .15s;
  box-shadow: 0 4px 14px rgba(29,185,84,0.35);
}
.mini-play:active { transform: scale(0.9); }

.mini-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: rgba(255,255,255,0.08);
}
#miniProgressBar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .2s linear;
  border-radius: 0 2px 2px 0;
}

/* ============ FULL PLAYER OVERLAY ============ */
.full-player {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0a0a0c;
  transform: translateY(100%);
  transition: transform .38s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
  overflow: hidden;
}
.full-player.open { transform: translateY(0); }

.fp-bg-art {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  filter: blur(60px) saturate(160%) brightness(0.55);
  opacity: 0.65;
  transform: scale(1.1);
}
.fp-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,0.55) 0%, rgba(10,10,12,0.85) 55%, #0a0a0c 100%);
}

.fp-inner {
  position: relative;
  z-index: 1;
  max-width: 480px;
  height: 100vh;
  margin: 0 auto;
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
}

.fp-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0 20px;
  flex-shrink: 0;
}
.fp-icon-btn {
  width: 42px; height: 42px;
  background: transparent;
  border: none;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background .15s;
}
.fp-icon-btn:active { background: rgba(255,255,255,0.1); }
.fp-label {
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--muted);
  font-weight: 700;
}

.fp-art-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
  flex-shrink: 0;
}
.fp-art {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  background: var(--surface);
  transition: transform .3s ease;
}
.fp-art.spinning { animation: artPulse 4s ease-in-out infinite; }
@keyframes artPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.025); }
}

.fp-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  flex-shrink: 0;
}
.fp-meta-text { flex: 1; min-width: 0; text-align: left; }
.fp-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fp-artist {
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-progress { margin-bottom: 18px; flex-shrink: 0; }
.fp-seek {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  margin-bottom: 8px;
}
.fp-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--text);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
}
.fp-seek::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--text);
  border: none;
  cursor: pointer;
}

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

.fp-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.fp-ctrl {
  background: transparent;
  border: none;
  color: var(--text);
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s, color .15s;
}
.fp-ctrl:active { transform: scale(0.9); }
.fp-main {
  background: var(--accent);
  color: #000;
  width: 66px; height: 66px;
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(29,185,84,0.4);
}
.fp-toggle { color: var(--muted-dim); position: relative; }
.fp-toggle.active { color: var(--accent-2); }
.repeat-one-dot {
  position: absolute;
  top: 2px; right: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent-2);
  color: #000;
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fp-bottom-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-bottom: env(safe-area-inset-bottom);
  flex-shrink: 0;
}
.fp-volume {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  flex: 1;
  min-width: 0;
}
.fp-volume input[type="range"] {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  outline: none;
}
.fp-volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--text);
  cursor: pointer;
}

/* ============ QUEUE DRAWER ============ */
.queue-drawer {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  display: flex;
  align-items: flex-end;
}
.queue-drawer.open { opacity: 1; pointer-events: auto; }
.queue-drawer-inner {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  max-height: 72vh;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  border: 1px solid rgba(255,255,255,0.06);
  border-bottom: none;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.queue-drawer.open .queue-drawer-inner { transform: translateY(0); }
.queue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.queue-title { font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.queue-list { overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.queue-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: background .15s;
}
.queue-item:active { background: var(--surface-2); }
.queue-item.active { background: rgba(29,185,84,0.1); }
.queue-item img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.queue-item-meta { flex: 1; min-width: 0; }
.queue-item-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-item.active .queue-item-title { color: var(--accent-2); }
.queue-item-artist { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-now-playing { color: var(--accent-2); font-size: 15px; flex-shrink: 0; }

/* ============ SLEEP TIMER POPOVER ============ */
.sleep-popover {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 10002;
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 14px;
  width: 200px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  pointer-events: none;
  transition: opacity .18s, transform .18s;
}
.sleep-popover.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.sleep-title { font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.sleep-options { display: flex; flex-direction: column; gap: 6px; }
.sleep-opt {
  background: var(--surface-3);
  border: none;
  color: var(--text);
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background .15s;
}
.sleep-opt:active { background: var(--accent); color: #000; }
.sleep-opt.sleep-off { color: var(--danger); }
.sleep-status { font-size: 11px; color: var(--accent-2); margin-top: 10px; min-height: 14px; }

/* ============ FORMS ============ */
.search-form { margin-bottom: 16px; }

.search-form input,
.upload-form input,
.login-form input {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  outline: none;
  -webkit-appearance: none;
  transition: border-color .15s, background .15s;
}
.search-form input:focus,
.upload-form input:focus,
.login-form input:focus {
  border-color: var(--accent);
  background: var(--surface-2);
}
.search-form input::placeholder { color: #666; }

.upload-form { display: flex; flex-direction: column; gap: 12px; }
.upload-form label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 600;
}
.upload-form input[type="file"] {
  padding: 12px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
}

/* ============ BUTTONS ============ */
.btn-primary, .btn-secondary, .btn-danger {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  border-radius: var(--radius);
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s, opacity .12s;
  font-family: inherit;
}
.btn-primary { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #000; }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-primary:active,
.btn-secondary:active,
.btn-danger:active { transform: scale(0.97); }

/* ============ ALERTS ============ */
.alert-success, .alert-error {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
}
.alert-success {
  background: rgba(29,185,84,0.12);
  color: var(--accent-2);
  border: 1px solid rgba(29,185,84,0.35);
}
.alert-error {
  background: rgba(229,72,77,0.12);
  color: #ff6b6f;
  border: 1px solid rgba(229,72,77,0.35);
}

/* ============ EMPTY STATE ============ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty-state p { margin-bottom: 20px; font-size: 14px; }

/* ============ ADMIN ============ */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--surface);
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-2);
  letter-spacing: -0.5px;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 600;
}

.admin-actions { display: flex; flex-direction: column; gap: 10px; }

.admin-song-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 8px;
  border: 1px solid var(--border);
}
.admin-song-row img {
  width: 48px; height: 48px;
  border-radius: 9px;
  object-fit: cover;
}
.admin-song-meta { flex: 1; min-width: 0; }
.btn-edit {
  color: var(--muted);
  font-size: 16px;
  padding: 8px;
  cursor: pointer;
  transition: transform .15s, color .15s;
}
.btn-edit:active { transform: scale(0.9); color: var(--accent-2); }
.btn-delete {
  color: var(--danger);
  font-size: 18px;
  padding: 8px;
  cursor: pointer;
  transition: transform .15s;
  background: transparent;
  border: none;
}
.btn-delete:active { transform: scale(0.9); }

/* ============ LOGIN ============ */
.login-wrap {
  max-width: 360px;
  margin: 60px auto;
  padding: 24px;
}
.login-wrap h1 {
  font-family: var(--font-display);
  text-align: center;
  margin-bottom: 24px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.login-form { display: flex; flex-direction: column; gap: 12px; }

/* ============ SETTINGS ============ */
.settings-section {
  background: var(--surface);
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  border: 1px solid var(--border);
}
.settings-heading {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-2);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.settings-section label:first-of-type { margin-top: 0; }

/* ============ RESPONSIVE ============ */
@media (min-width: 768px) {
  .bottom-nav {
    max-width: 720px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 16px 16px 0 0;
  }
  .mini-player {
    max-width: 700px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    width: calc(100% - 20px);
  }
  .mini-player:active { transform: translateX(-50%) scale(0.985); }
  .sleep-popover { right: calc(50% - 340px); }
}
