/* ============================================================
   Musica — UI v3
   Palette feu (charcoal + fire-red + ember-orange)
   Police : Russo One (titres/nav) + Inter (corps)
   ============================================================ */

:root {
  --charcoal:     #1B1B1E;
  --charcoal-2:   #232327;
  --charcoal-3:   #2c2c31;
  --charcoal-4:   #353539;

  --fire-red:     #e5383b;
  --fire-red-2:   #c12529;
  --ember-orange: #ff9100;
  --ember-glow:   #ff4500;

  --smoke:        rgba(237, 242, 244, 0.92);
  --text:         #f3f3f5;
  --text-dim:     #c4c4cc;
  --muted:        #8b8b95;
  --border:       #38383d;
  --border-soft:  #2a2a2f;

  --green:        #3ecf8e;
  --yellow:       #f0b429;
  --blue:         #5b9eff;
  --pink:         #ef82c6;

  --accent:       var(--fire-red);
  --accent-soft:  rgba(229, 56, 59, 0.16);
  --accent-glow:  rgba(229, 56, 59, 0.45);
  --ember-soft:   rgba(255, 145, 0, 0.18);

  --shadow-sm:    0 2px 8px rgba(0,0,0,.3);
  --shadow:       0 8px 28px rgba(0,0,0,.5);
  --shadow-lg:    0 20px 60px rgba(0,0,0,.6);

  --radius:       14px;
  --radius-lg:    18px;
  --radius-sm:    10px;

  --gap:          18px;
  --duration:     .2s;
  --easing:       cubic-bezier(.4,0,.2,1);

  --font-display: 'Russo One', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--charcoal);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  overflow-x: hidden;
  padding-bottom: 110px; /* espace pour la nav du bas */
  min-height: 100vh;
}

a { color: var(--ember-orange); text-decoration: none; }
a:hover { text-decoration: underline; }

.muted { color: var(--muted); }
.hint  { color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.inline { display: inline; }
.hidden { display: none !important; }
.sep { color: var(--border); margin: 0 4px; }

::selection { background: var(--accent-soft); color: var(--text); }

/* ============================================================
   BG EMBERS
   ============================================================ */
.bg-embers {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: .6;
}

.ember {
  position: absolute;
  bottom: -20px;
  background: var(--ember-orange);
  border-radius: 50%;
  opacity: 0;
  box-shadow:
    0 0 10px 2px var(--ember-orange),
    0 0 22px 4px var(--ember-glow);
  animation: rise-ember infinite ease-in;
}

@keyframes rise-ember {
  from {
    transform: translateY(0) scale(1);
    opacity: 0.8;
  }
  to {
    transform: translateY(-110vh) scale(0.3);
    opacity: 0;
  }
}

/* ============================================================
   AUTH (login / register)
   ============================================================ */
body.auth {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  padding-bottom: 24px;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--charcoal-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
  z-index: 1;
}

.auth-card .brand {
  font-family: var(--font-display);
  font-size: 30px;
  background: linear-gradient(120deg, var(--fire-red), var(--ember-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.auth-sub { color: var(--muted); margin-bottom: 22px; font-size: 14px; }
.auth-foot { margin-top: 20px; text-align: center; color: var(--muted); font-size: 13px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  margin: 8px 0 2px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider-line {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 20px 0;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dim);
}

label.check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

input[type="text"],
input[type="password"],
input[type="url"],
input[type="email"],
input[type="number"],
.select,
select,
textarea {
  background: var(--charcoal);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font: inherit;
  outline: none;
  transition: border-color var(--duration) var(--easing), background var(--duration) var(--easing), box-shadow var(--duration) var(--easing);
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--fire-red);
  background: var(--charcoal-2);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.5;
  resize: vertical;
}

.select-sm { padding: 8px 12px; font-size: 13px; }

.input-with-status {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.input-with-status input { flex: 1; }
.status-tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.status-ok { background: rgba(62,207,142,.12); color: var(--green); border: 1px solid rgba(62,207,142,.35); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--charcoal-2);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration) var(--easing);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.btn:hover { background: var(--charcoal-3); border-color: var(--charcoal-4); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--fire-red), var(--fire-red-2));
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #ee4548, #d12d31);
  border-color: transparent;
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-block { width: 100%; }
.btn-block { width: 100%; }

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-dim);
}
.btn-ghost:hover { background: var(--charcoal-2); color: var(--text); }

.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-big { padding: 14px 26px; font-size: 16px; margin-top: 6px; }

.btn-icon {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration) var(--easing);
}
.btn-icon:hover { background: var(--charcoal-2); color: var(--text); border-color: var(--border); }
.btn-icon-sm { width: 30px; height: 30px; font-size: 14px; }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(27, 27, 30, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--fire-red), var(--ember-orange));
  color: #fff;
  font-size: 18px;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.brand-text {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 2px;
  background: linear-gradient(120deg, #fff 30%, #ffc999);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.topbar-right { display: flex; align-items: center; gap: 10px; }

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-dim);
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--charcoal-2);
}
.user-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fire-red), var(--ember-orange));
  color: #fff;
  font-weight: 700;
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.user-name { font-weight: 500; }
.admin-tag {
  background: var(--accent-soft);
  color: var(--fire-red);
  font-size: 10.5px;
  padding: 1px 7px;
  border-radius: 4px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.app {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 30px;
  display: flex;
  flex-direction: column;
}

.view {
  display: none;
  flex-direction: column;
  gap: var(--gap);
  animation: viewIn .3s var(--easing);
}
.view.active { display: flex; }

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

.card {
  background: var(--charcoal-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.card-title {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.alert {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 14px;
}
.alert-error { background: rgba(229,56,59,.14); color: var(--fire-red); border: 1px solid rgba(229,56,59,.4); }
.alert-ok    { background: rgba(62,207,142,.12); color: var(--green); border: 1px solid rgba(62,207,142,.35); }

/* ============================================================
   HERO : NOW PLAYING
   ============================================================ */
.hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #261d1f 0%, #1d1a1d 100%);
  box-shadow: var(--shadow);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 320px at 0% 0%, rgba(229,56,59,.25), transparent 60%),
    radial-gradient(600px 320px at 100% 100%, rgba(255,145,0,.18), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.viz-canvas {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  opacity: .35;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 1px;
  line-height: 1.25;
  word-break: break-word;
  color: var(--text);
  padding: 4px 0 6px;
  min-height: 40px;
  text-transform: uppercase;
}

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

.control-btn {
  appearance: none;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text-dim);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration) var(--easing);
  position: relative;
}
.control-btn:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.16);
  color: var(--text);
  transform: translateY(-2px);
}
.control-btn:active {
  transform: translateY(0) scale(.94);
}
.control-btn .icon {
  width: 18px;
  height: 18px;
  display: block;
}

.control-main {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, var(--fire-red), var(--ember-orange));
  border-color: transparent;
  color: #fff;
  box-shadow:
    0 8px 22px var(--accent-glow),
    inset 0 1px 0 rgba(255,255,255,.18);
}
.control-main:hover {
  background: linear-gradient(135deg, #ef4448, #ffaa33);
  border-color: transparent;
  color: #fff;
  box-shadow:
    0 12px 28px var(--accent-glow),
    inset 0 1px 0 rgba(255,255,255,.22);
}
.control-main .icon {
  width: 22px;
  height: 22px;
}
/* Légère adaptation : l'icône play a un léger décalage optique pour paraître centrée */
.control-main .icon-play {
  margin-left: 2px;
}

.vol-icon-btn {
  appearance: none;
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--text-dim);
  display: inline-flex;
  border-radius: var(--radius-sm);
  transition: color var(--duration) var(--easing), background var(--duration) var(--easing);
}
.vol-icon-btn:hover { color: var(--text); background: rgba(255,255,255,.05); }
.vol-icon-btn .icon { width: 20px; height: 20px; }

.volume-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 6px;
}


input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  width: auto;
}
input[type="range"]:focus { box-shadow: none; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
}
input[type="range"]::-moz-range-track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--fire-red);
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(229,56,59,.22);
  transition: transform .12s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  border: none;
  border-radius: 50%;
  background: var(--fire-red);
  cursor: pointer;
}

.vol-val {
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
  width: 44px;
  text-align: right;
  font-size: 13px;
  font-weight: 500;
}

/* ============================================================
   MINI CARDS
   ============================================================ */
.mini { display: flex; flex-direction: column; gap: 14px; }

.mini-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mini-title {
  font-family: var(--font-display);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
}

.mini-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mini-actions .btn { flex: 1; padding: 9px 10px; font-size: 13px; }

.voice-row { display: flex; gap: 8px; }
.voice-row .select { flex: 1; }

/* ============================================================
   STATUS DOTS & PILLS
   ============================================================ */
.dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}
.dot-on   { background: var(--green); box-shadow: 0 0 0 3px rgba(62,207,142,.18); animation: pulse 2s infinite; }
.dot-off  { background: var(--fire-red); box-shadow: 0 0 0 3px rgba(229,56,59,.20); }
.dot-warn { background: var(--ember-orange); box-shadow: 0 0 0 3px rgba(255,145,0,.20); animation: pulse 1.2s infinite; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(62,207,142,.18); }
  50%      { box-shadow: 0 0 0 6px rgba(62,207,142,.08); }
}

.pill {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .8px;
  text-transform: uppercase;
  background: var(--charcoal-2);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 3px 10px;
  border-radius: 999px;
}
.pill-on  { color: var(--green); border-color: rgba(62,207,142,.35); background: rgba(62,207,142,.10); }
.pill-off { color: var(--fire-red); border-color: rgba(229,56,59,.35); background: rgba(229,56,59,.10); }
.pill-warn{ color: var(--ember-orange); border-color: rgba(255,145,0,.4); background: rgba(255,145,0,.10); }

/* ============================================================
   ADD URL
   ============================================================ */
.add-row { display: flex; gap: 10px; }
.add-row input { flex: 1; }

/* ============================================================
   LIBRARY
   ============================================================ */
.lib-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.lib-head .card-title { margin-bottom: 0; }

.lib-actions { display: flex; gap: 8px; align-items: center; }

.lib-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lib-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--charcoal);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--easing);
}
.lib-item:hover {
  background: var(--charcoal-2);
  border-color: var(--border);
  transform: translateX(2px);
}

.lib-item.playing {
  background: var(--accent-soft);
  border-color: var(--fire-red);
}
.lib-item.playing .lib-title { color: var(--text); font-weight: 500; }
.lib-item.playing::before {
  content: "♪";
  color: var(--ember-orange);
  font-size: 16px;
  animation: bounce 1s infinite;
  margin-right: -4px;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

.lib-title {
  flex: 1;
  font-size: 14px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-tag {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--charcoal-2);
  border: 1px solid var(--border);
  color: var(--muted);
  flex-shrink: 0;
}
.source-url     { color: var(--blue);   border-color: rgba(91,158,255,.4);  background: rgba(91,158,255,.08); }
.source-ytmusic { color: #ff6b6b;       border-color: rgba(255,107,107,.4); background: rgba(255,107,107,.08); }
.source-deezer  { color: var(--pink);   border-color: rgba(239,130,198,.4); background: rgba(239,130,198,.08); }
.source-spotify { color: var(--green);  border-color: rgba(62,207,142,.4);  background: rgba(62,207,142,.08); }

.lib-buttons {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.lib-buttons .btn,
.lib-buttons .btn-icon {
  padding: 6px 11px;
  font-size: 13px;
  height: auto;
  min-height: 30px;
  width: auto;
}

.lib-empty {
  list-style: none;
  text-align: center;
  padding: 50px 16px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.lib-empty-icon {
  font-size: 44px;
  opacity: .3;
  color: var(--ember-orange);
  margin-bottom: 6px;
}

/* ============================================================
   YT MUSIC AUTH
   ============================================================ */
.yt-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.yt-status .btn-sm { margin-left: auto; }

.info-box {
  font-size: 13px;
  color: var(--text-dim);
  background: var(--charcoal);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.info-box summary {
  cursor: pointer;
  color: var(--ember-orange);
  padding: 10px 14px;
  user-select: none;
  font-weight: 500;
  list-style: none;
}
.info-box summary::-webkit-details-marker { display: none; }
.info-box summary::before { content: "›"; margin-right: 8px; transition: transform .15s; display: inline-block; }
.info-box[open] summary::before { transform: rotate(90deg); }
.info-box ol { padding: 0 14px 12px 36px; margin: 0; }
.info-box li { margin-bottom: 5px; line-height: 1.5; }
.info-box code {
  background: var(--charcoal-2);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12px;
  font-family: ui-monospace, monospace;
}

.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-sync { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }

/* ============================================================
   BOTTOM NAVIGATION (inspirée pompier)
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 76px;
  background: var(--smoke);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 -10px 32px rgba(0,0,0,.45);
  z-index: 100;
}

.bottom-nav ul {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 560px;
  height: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
  --indicator-x-pos: 0px;
}

.nav-item {
  position: relative;
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  gap: 4px;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: color .3s ease;
}

.nav-icon {
  font-size: 1.6em;
  color: var(--charcoal);
  transition: opacity .2s ease;
  line-height: 1;
}

.nav-text {
  font-family: var(--font-display);
  font-size: .68em;
  letter-spacing: .06em;
  color: var(--charcoal);
  transition: color .3s ease;
  text-transform: uppercase;
}

.nav-item.active .nav-icon {
  opacity: 0;
}
.nav-item.active .nav-text {
  color: var(--fire-red);
}

.indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 64px; height: 64px;
  background: var(--fire-red);
  border-radius: 50%;
  border: 5px solid var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(var(--indicator-x-pos)) translateY(40px) scale(0);
  opacity: 0;
  transition:
    transform .55s cubic-bezier(.34, 1.56, .64, 1),
    opacity .3s ease;
  z-index: 1;
  box-shadow: 0 6px 18px var(--accent-glow);
}

.bottom-nav ul.indicator-ready .indicator {
  transform: translateX(var(--indicator-x-pos)) translateY(-46%) scale(1);
  opacity: 1;
}

.indicator-icon {
  color: #fff;
  font-size: 2em;
  line-height: 1;
  pointer-events: none;
}

.shockwave {
  position: absolute;
  top: -3px; left: -3px;
  width: 100%; height: 100%;
  border: 3px solid var(--fire-red);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.5);
}

.indicator.landed .shockwave {
  animation: shockwave-effect .5s ease-out;
}

@keyframes shockwave-effect {
  from { transform: scale(1); opacity: .7; }
  to   { transform: scale(2.5); opacity: 0; }
}

.particles {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.particle {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--ember-orange);
  border-radius: 50%;
  opacity: 0;
}

.nav-item.active .particle { animation: erupt-particle .8s ease-out; }

@keyframes erupt-particle {
  0%   { transform: translateY(0) scale(.5);   opacity: .8; }
  100% { transform: translateY(-80px) scale(0); opacity: 0; }
}

.particle:nth-child(1) { animation-delay: 0s; left: -10px; }
.particle:nth-child(2) { animation-delay: .1s; width: 4px; height: 4px; }
.particle:nth-child(3) { animation-delay: .05s; left: 10px; background-color: var(--fire-red); }
.particle:nth-child(4) { animation-delay: .2s; left: -20px; width: 5px; height: 5px; }
.particle:nth-child(5) { animation-delay: .15s; left: 20px; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--charcoal-3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  z-index: 300;
  font-size: 14px;
  max-width: 92vw;
  text-align: center;
  animation: toastIn .25s var(--easing);
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.toast.ok    { border-color: rgba(62,207,142,.5); }
.toast.error { border-color: rgba(229,56,59,.5); }

/* ============================================================
   OAUTH GOOGLE
   ============================================================ */
.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  font-size: 15px;
}
.btn-google .g-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: #4285f4;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}

.oauth-pending {
  margin-top: 16px;
}

.oauth-code-box {
  background: var(--charcoal-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.oauth-step {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 6px;
}
.oauth-step:first-child { margin-top: 0; }

.oauth-url-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--charcoal);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--ember-orange);
  font-family: ui-monospace, monospace;
  font-size: 14px;
  word-break: break-all;
  width: fit-content;
}
.oauth-url-link::after { content: " ↗"; }
.oauth-url-link:hover { background: var(--charcoal-3); text-decoration: none; }

.oauth-code {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 6px;
  padding: 10px 14px;
  background: var(--charcoal);
  border: 2px solid var(--fire-red);
  border-radius: var(--radius-sm);
  text-align: center;
  color: var(--text);
  width: fit-content;
  user-select: all;
}

.oauth-poll-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 14px;
  background: var(--charcoal);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-dim);
}

.oauth-poll-status.success {
  color: var(--green);
  border: 1px solid rgba(62,207,142,.4);
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   AUTH METHOD CARDS (YT Music — méthode rapide)
   ============================================================ */
.auth-method {
  border-radius: var(--radius);
  padding: 18px;
  background: var(--charcoal);
  border: 1px solid var(--border);
}
.auth-method-primary {
  background: linear-gradient(135deg, rgba(229,56,59,.08), rgba(255,145,0,.06));
  border-color: rgba(229,56,59,.35);
}

.method-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.method-badge {
  font-family: var(--font-display);
  background: var(--fire-red);
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 1px;
}
.method-title {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .5px;
}

.method-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.method-steps li {
  position: relative;
  padding-left: 36px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}
.method-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--fire-red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.code-copy {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin: 8px 0 0;
  flex-wrap: wrap;
}
.code-copy code {
  flex: 1;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 13px;
  background: var(--charcoal-2);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--ember-orange);
  word-break: break-all;
  display: flex;
  align-items: center;
  min-width: 200px;
}

/* ============================================================
   THEME PICKER (dans Réglages)
   ============================================================ */
.theme-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.theme-option {
  appearance: none;
  background: var(--charcoal);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: all var(--duration) var(--easing);
}
.theme-option:hover { background: var(--charcoal-2); border-color: var(--charcoal-4); }
.theme-option[aria-checked="true"] {
  border-color: var(--fire-red);
  background: rgba(229,56,59,.08);
}
.theme-option .theme-check {
  margin-left: auto;
  color: var(--fire-red);
  font-weight: 700;
  font-size: 18px;
  opacity: 0;
  transition: opacity .15s;
}
.theme-option[aria-checked="true"] .theme-check { opacity: 1; }

.theme-preview {
  width: 56px; height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
}
.theme-preview-feu {
  background: linear-gradient(135deg, #261d1f, #1d1a1d);
  border: 1px solid #38383d;
}
.theme-preview-feu .tp-dot {
  width: 6px; height: 6px; border-radius: 50%;
}
.theme-preview-feu .tp-dot:nth-child(1) { background: #e5383b; box-shadow: 0 0 6px #e5383b; }
.theme-preview-feu .tp-dot:nth-child(2) { background: #ff9100; box-shadow: 0 0 6px #ff9100; }
.theme-preview-feu .tp-dot:nth-child(3) { background: #f3f3f5; }

.theme-preview-neu {
  background: linear-gradient(145deg, #e6e9ef, #d1d5db);
  box-shadow: inset 2px 2px 4px #b8bcc2, inset -2px -2px 4px #ffffff;
}
.theme-preview-neu .tp-dot {
  width: 6px; height: 6px; border-radius: 50%;
}
.theme-preview-neu .tp-dot:nth-child(1) { background: #7c3aed; box-shadow: 2px 2px 3px #b8bcc2, -1px -1px 2px #fff; }
.theme-preview-neu .tp-dot:nth-child(2) { background: #a855f7; }
.theme-preview-neu .tp-dot:nth-child(3) { background: #fff; box-shadow: inset 1px 1px 2px #b8bcc2; }

.theme-label { display: flex; flex-direction: column; gap: 2px; }
.theme-label strong { font-family: var(--font-display); font-size: 14px; letter-spacing: .5px; }

/* ============================================================
   ████ THÈME NÉOMORPHIQUE (override) ████
   Activé par body.theme-neu
   ============================================================ */
body.theme-neu {
  --neu-bg-primary:   #e6e9ef;
  --neu-bg-secondary: #d1d5db;
  --neu-shadow-dark:  #b8bcc2;
  --neu-shadow-light: #ffffff;
  --neu-primary:      #7c3aed;
  --neu-primary-2:    #6d28d9;
  --neu-purple-light: #a855f7;
  --neu-text:         #374151;
  --neu-text-dim:     #6b7280;
  --neu-muted:        #9ca3af;

  --charcoal:     var(--neu-bg-primary);
  --charcoal-2:   var(--neu-bg-secondary);
  --charcoal-3:   #c8ccd5;
  --charcoal-4:   #b8bcc2;
  --text:         var(--neu-text);
  --text-dim:     var(--neu-text-dim);
  --muted:        var(--neu-muted);
  --border:       transparent;
  --border-soft:  transparent;
  --fire-red:     var(--neu-primary);
  --fire-red-2:   var(--neu-primary-2);
  --ember-orange: var(--neu-purple-light);
  --accent:       var(--neu-primary);
  --accent-soft:  rgba(124, 58, 237, 0.15);
  --accent-glow:  rgba(124, 58, 237, 0.35);
  --smoke:        rgba(230, 233, 239, 0.92);

  background:
    linear-gradient(145deg, var(--neu-bg-primary), var(--neu-bg-secondary));
}

/* Cache les braises animées en thème clair */
body.theme-neu .bg-embers { display: none; }

/* Topbar */
body.theme-neu .topbar {
  background: rgba(230, 233, 239, 0.85);
  border-bottom: 1px solid #cbd0d9;
}
body.theme-neu .brand-text {
  background: linear-gradient(120deg, var(--neu-primary), var(--neu-purple-light));
  -webkit-background-clip: text;
  background-clip: text;
}
body.theme-neu .brand-mark {
  background: linear-gradient(135deg, var(--neu-primary), var(--neu-purple-light));
  box-shadow:
    4px 4px 8px var(--neu-shadow-dark),
    -4px -4px 8px var(--neu-shadow-light);
}
body.theme-neu .user-badge {
  background: var(--neu-bg-primary);
  border: none;
  box-shadow:
    inset 2px 2px 4px var(--neu-shadow-dark),
    inset -2px -2px 4px var(--neu-shadow-light);
}
body.theme-neu .user-avatar {
  background: linear-gradient(135deg, var(--neu-primary), var(--neu-purple-light));
}
body.theme-neu .admin-tag {
  background: rgba(124,58,237,.12);
  color: var(--neu-primary);
}
body.theme-neu .btn-icon { color: var(--neu-text-dim); }
body.theme-neu .btn-icon:hover {
  background: var(--neu-bg-primary);
  color: var(--neu-text);
  box-shadow:
    2px 2px 4px var(--neu-shadow-dark),
    -2px -2px 4px var(--neu-shadow-light);
}

/* Cards : style raised (relief doux) */
body.theme-neu .card {
  background: linear-gradient(145deg, var(--neu-bg-primary), var(--neu-bg-secondary));
  border: none;
  box-shadow:
    8px 8px 16px var(--neu-shadow-dark),
    -8px -8px 16px var(--neu-shadow-light);
}

/* Hero : néomorphique aussi */
body.theme-neu .hero {
  background: linear-gradient(145deg, var(--neu-bg-primary), var(--neu-bg-secondary));
  border: none;
  box-shadow:
    10px 10px 24px var(--neu-shadow-dark),
    -10px -10px 24px var(--neu-shadow-light);
}
body.theme-neu .hero-bg {
  background:
    radial-gradient(500px 280px at 0% 0%, rgba(124,58,237,.12), transparent 60%),
    radial-gradient(500px 280px at 100% 100%, rgba(168,85,247,.12), transparent 60%);
}
body.theme-neu .hero-title {
  background: linear-gradient(120deg, var(--neu-text), var(--neu-primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Boutons */
body.theme-neu .btn {
  background: linear-gradient(145deg, var(--neu-bg-primary), var(--neu-bg-secondary));
  color: var(--neu-text);
  border: none;
  box-shadow:
    4px 4px 8px var(--neu-shadow-dark),
    -4px -4px 8px var(--neu-shadow-light);
}
body.theme-neu .btn:hover {
  background: linear-gradient(145deg, var(--neu-bg-primary), var(--neu-bg-secondary));
  box-shadow:
    6px 6px 12px var(--neu-shadow-dark),
    -6px -6px 12px var(--neu-shadow-light);
}
body.theme-neu .btn:active {
  box-shadow:
    inset 2px 2px 4px var(--neu-shadow-dark),
    inset -2px -2px 4px var(--neu-shadow-light);
}
body.theme-neu .btn-primary {
  background: linear-gradient(135deg, var(--neu-primary), var(--neu-primary-2));
  color: #fff;
  box-shadow:
    4px 4px 12px rgba(124,58,237,.3),
    -2px -2px 8px var(--neu-shadow-light);
}
body.theme-neu .btn-primary:hover {
  background: linear-gradient(135deg, var(--neu-purple-light), var(--neu-primary));
}
body.theme-neu .btn-ghost {
  background: transparent;
  box-shadow: none;
  color: var(--neu-text-dim);
}
body.theme-neu .btn-ghost:hover {
  background: var(--neu-bg-primary);
  box-shadow:
    inset 2px 2px 4px var(--neu-shadow-dark),
    inset -2px -2px 4px var(--neu-shadow-light);
}

/* Contrôles ronds */
body.theme-neu .control-btn {
  background: linear-gradient(145deg, var(--neu-bg-primary), var(--neu-bg-secondary));
  border: none;
  color: var(--neu-text);
  box-shadow:
    6px 6px 12px var(--neu-shadow-dark),
    -6px -6px 12px var(--neu-shadow-light);
}
body.theme-neu .control-btn:hover {
  box-shadow:
    8px 8px 16px var(--neu-shadow-dark),
    -8px -8px 16px var(--neu-shadow-light);
}
body.theme-neu .control-main {
  background: linear-gradient(135deg, var(--neu-primary), var(--neu-primary-2));
  color: #fff;
  box-shadow:
    6px 6px 16px rgba(124,58,237,.35),
    -4px -4px 10px var(--neu-shadow-light);
}

/* Inputs : style inset (pressé) */
body.theme-neu input[type="text"],
body.theme-neu input[type="password"],
body.theme-neu input[type="url"],
body.theme-neu input[type="email"],
body.theme-neu input[type="number"],
body.theme-neu input[type="date"],
body.theme-neu input[type="time"],
body.theme-neu .select,
body.theme-neu select,
body.theme-neu textarea {
  background: linear-gradient(145deg, var(--neu-bg-secondary), var(--neu-bg-primary));
  color: var(--neu-text);
  border: none;
  box-shadow:
    inset 4px 4px 8px var(--neu-shadow-dark),
    inset -4px -4px 8px var(--neu-shadow-light);
}
body.theme-neu input:focus,
body.theme-neu select:focus,
body.theme-neu textarea:focus {
  background: linear-gradient(145deg, var(--neu-bg-secondary), var(--neu-bg-primary));
  box-shadow:
    inset 4px 4px 8px var(--neu-shadow-dark),
    inset -4px -4px 8px var(--neu-shadow-light),
    0 0 0 3px rgba(124,58,237,.25);
}
body.theme-neu ::placeholder { color: #9ca3af; }

/* Pills & status */
body.theme-neu .pill {
  background: var(--neu-bg-primary);
  border: none;
  box-shadow:
    inset 2px 2px 4px var(--neu-shadow-dark),
    inset -2px -2px 4px var(--neu-shadow-light);
  color: var(--neu-text-dim);
}
body.theme-neu .pill-on  { color: #059669; }
body.theme-neu .pill-off { color: #dc2626; }
body.theme-neu .pill-warn{ color: #d97706; }

body.theme-neu .dot-on   { background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,.2); }
body.theme-neu .dot-off  { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.2); }
body.theme-neu .dot-warn { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.2); }

/* Library items */
body.theme-neu .lib-item {
  background: var(--neu-bg-primary);
  border: none;
  box-shadow:
    inset 1px 1px 3px var(--neu-shadow-dark),
    inset -1px -1px 3px var(--neu-shadow-light);
}
body.theme-neu .lib-item:hover {
  box-shadow:
    3px 3px 8px var(--neu-shadow-dark),
    -3px -3px 8px var(--neu-shadow-light);
  transform: translateX(2px);
}
body.theme-neu .lib-item.playing {
  background: rgba(124,58,237,.12);
  box-shadow:
    inset 2px 2px 4px rgba(124,58,237,.2),
    inset -2px -2px 4px rgba(255,255,255,.6);
}
body.theme-neu .lib-item.playing::before { color: var(--neu-primary); }
body.theme-neu .lib-item .lib-title { color: var(--neu-text); }
body.theme-neu .source-tag { background: var(--neu-bg-secondary); color: var(--neu-text-dim); border: none; }
body.theme-neu .source-url    { color: #2563eb; background: rgba(37,99,235,.12); }
body.theme-neu .source-ytmusic{ color: #dc2626; background: rgba(220,38,38,.12); }
body.theme-neu .source-deezer { color: #db2777; background: rgba(219,39,119,.12); }
body.theme-neu .source-spotify{ color: #059669; background: rgba(5,150,105,.12); }

/* Empty state */
body.theme-neu .lib-empty-icon { color: var(--neu-primary); }

/* Range volume */
body.theme-neu input[type="range"]::-webkit-slider-runnable-track { background: #c8ccd5; }
body.theme-neu input[type="range"]::-moz-range-track { background: #c8ccd5; }
body.theme-neu input[type="range"]::-webkit-slider-thumb {
  background: linear-gradient(135deg, var(--neu-primary), var(--neu-purple-light));
  box-shadow: 0 0 0 4px rgba(124,58,237,.18);
}
body.theme-neu input[type="range"]::-moz-range-thumb {
  background: linear-gradient(135deg, var(--neu-primary), var(--neu-purple-light));
}

/* YT Music auth */
body.theme-neu .yt-status {
  background: var(--neu-bg-primary);
  border: none;
  box-shadow:
    inset 3px 3px 6px var(--neu-shadow-dark),
    inset -3px -3px 6px var(--neu-shadow-light);
}
body.theme-neu .info-box {
  background: var(--neu-bg-primary);
  border: none;
  box-shadow:
    inset 2px 2px 4px var(--neu-shadow-dark),
    inset -2px -2px 4px var(--neu-shadow-light);
}
body.theme-neu .info-box summary { color: var(--neu-primary); }
body.theme-neu .info-box code { background: var(--neu-bg-secondary); }

body.theme-neu .status-ok {
  background: rgba(5,150,105,.12);
  color: #059669;
  border: none;
}

/* Bottom nav (déjà claire mais on l'adapte) */
body.theme-neu .bottom-nav {
  background: rgba(255, 255, 255, 0.92);
  border-top: none;
  box-shadow:
    0 -8px 24px rgba(184,188,194,.4),
    inset 0 1px 0 #fff;
}
body.theme-neu .nav-icon,
body.theme-neu .nav-text {
  color: var(--neu-text-dim);
}
body.theme-neu .nav-item.active .nav-text { color: var(--neu-primary); }
body.theme-neu .indicator {
  background: linear-gradient(135deg, var(--neu-primary), var(--neu-primary-2));
  border-color: var(--neu-bg-primary);
  box-shadow: 0 6px 18px rgba(124,58,237,.4);
}
body.theme-neu .shockwave { border-color: var(--neu-primary); }
body.theme-neu .particle { background-color: var(--neu-purple-light); }
body.theme-neu .particle:nth-child(3) { background-color: var(--neu-primary); }

/* Toast */
body.theme-neu .toast {
  background: var(--neu-bg-primary);
  border: none;
  color: var(--neu-text);
  box-shadow:
    6px 6px 16px var(--neu-shadow-dark),
    -6px -6px 16px var(--neu-shadow-light);
}

/* Theme picker (réglages) */
body.theme-neu .theme-option {
  background: var(--neu-bg-primary);
  border: none;
  color: var(--neu-text);
  box-shadow:
    4px 4px 8px var(--neu-shadow-dark),
    -4px -4px 8px var(--neu-shadow-light);
}
body.theme-neu .theme-option:hover {
  box-shadow:
    6px 6px 12px var(--neu-shadow-dark),
    -6px -6px 12px var(--neu-shadow-light);
}
body.theme-neu .theme-option[aria-checked="true"] {
  background: rgba(124,58,237,.10);
  box-shadow:
    inset 3px 3px 6px rgba(124,58,237,.2),
    inset -3px -3px 6px var(--neu-shadow-light);
}
body.theme-neu .theme-option[aria-checked="true"] .theme-check { color: var(--neu-primary); }

/* Selects native option list (browser default) — fond/texte ajustés */
body.theme-neu select option { background: #fff; color: #374151; }

/* Auth pages (login/register) — appliquent aussi le thème */
body.theme-neu.auth .auth-card {
  background: linear-gradient(145deg, var(--neu-bg-primary), var(--neu-bg-secondary));
  border: none;
  box-shadow:
    10px 10px 24px var(--neu-shadow-dark),
    -10px -10px 24px var(--neu-shadow-light);
}
body.theme-neu.auth .brand {
  background: linear-gradient(120deg, var(--neu-primary), var(--neu-purple-light));
  -webkit-background-clip: text;
  background-clip: text;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
  .hero-title { font-size: 22px; }
  .control-btn { width: 44px; height: 44px; font-size: 16px; }
  .control-main { width: 50px; height: 50px; font-size: 20px; }
}

@media (max-width: 560px) {
  .topbar { padding: 12px 14px; }
  .app { padding: 16px 14px 30px; }
  .card { padding: 18px; }
  .hero-content { padding: 22px; }
  .hero-title { font-size: 20px; }
  .add-row { flex-direction: column; }
  .lib-actions { width: 100%; }
  .lib-actions .select-sm { flex: 1; }
  .mini-actions .btn { font-size: 12.5px; padding: 8px 6px; }
  .voice-row { flex-direction: column; }
  .voice-row .btn { width: 100%; }
  .user-name, .admin-tag { display: none; }
  .user-badge { padding: 4px; }
}

@media (max-width: 420px) {
  .bottom-nav { height: 70px; }
  .indicator { width: 56px; height: 56px; }
  .indicator-icon { font-size: 1.7em; }
  .nav-icon { font-size: 1.4em; }
  .nav-text { font-size: .6em; }
}
