/* =============================================
   CAR PLAYER — Estilos globales compartidos
   ============================================= */

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

:root {
  --accent:        #3a7bd5;
  --accent2:       #00c6ff;
  --red:           #e03030;
  --text:          #e8edf5;
  --text-sub:      #8aadcc;
  --bg-dark:       #050a1a;
  --bg-mid:        #0d1535;
  --bg-card:       #0d1f50;
  --border:        rgba(58,123,213,0.25);
  --overlay:       rgba(0,0,10,0.68);
}


html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
}

/* ---- Botones genéricos ---- */
.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 8px;
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn-icon:hover, .btn-icon:active { background: rgba(58,123,213,0.2); }
.btn-icon svg { fill: var(--text); }

/* ---- Barra de estado ---- */
#statusMsg {
  position: fixed;
  bottom: 68px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.85);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  display: none;
  z-index: 200;
}

/* ---- Nota musical (icono carrusel/lista) ---- */
.card-icon {
  border-radius: 8px;
  background: var(--bg-mid);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow .4s, background .3s, border-color .3s;
}
.card-icon svg { fill: rgba(58,123,213,0.4); transition: fill .3s; }
.card.active .card-icon {
  background: var(--bg-card);
  border-color: var(--accent2);
  box-shadow: 0 0 24px rgba(0,198,255,0.45);
}
.card.active .card-icon svg { fill: var(--accent2); }

/* ---- Barra superior compartida ---- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 46px;
  background: var(--topbar-bg, rgba(5,10,26,0.92));
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 20px;
  z-index: 100;
  backdrop-filter: blur(8px);
}
.topbar-logo {
  font-size: 13px; font-weight: 700;
  color: var(--accent2);
  letter-spacing: 2px;
  text-transform: uppercase;
  flex: 1;
}
.top-nav { display: flex; align-items: center; gap: 6px; }
.top-nav a {
  color: var(--text-sub);
  font-size: 12px;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 6px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.top-nav a:hover, .top-nav a.active {
  background: rgba(58,123,213,0.2);
  color: var(--text);
}
