

:root{
  --bg1:#0b1020;
  --bg2:#0a1635;
  --card:rgba(255,255,255,.06);
  --border:rgba(255,255,255,.12);
  --text:#e9eefc;
  --muted:rgba(233,238,252,.70);
  --accent:#ffb000;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --radius:18px;
}
*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background:
    radial-gradient(1000px 600px at 15% 10%, rgba(124,58,237,.35), transparent 60%),
    radial-gradient(900px 520px at 90% 25%, rgba(255,176,0,.22), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  min-height:100vh;
}
.wrap{ max-width:980px; margin:0 auto; padding:28px 16px 60px; }

.topbar{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; }
.navActions{
display:flex;
gap:10px;
align-items:center;
flex-wrap:wrap;
}
.linkBtn{
display:inline-flex;
gap:8px;
align-items:center;
padding:10px 12px;
border-radius:12px;
border:1px solid rgba(255,255,255,.14);
background: rgba(255,255,255,.06);
color: var(--text);
text-decoration:none;
font-weight: 750;
font-size: 13px;
transition: transform .12s ease, background .12s ease, border-color .12s ease;
user-select:none;
}
.linkBtn:hover{
transform: translateY(-1px);
background: rgba(255,255,255,.09);
border-color: rgba(255,255,255,.22);
}

.brand{ display:flex; align-items:center; gap:12px; }
.logo{
  width:44px;height:44px;border-radius:14px;
  background: linear-gradient(135deg, rgba(255,176,0,.95), rgba(124,58,237,.95));
  box-shadow: 0 10px 30px rgba(124,58,237,.25);
  display:grid;place-items:center;
  border: 1px solid rgba(255,255,255,.18);
}
.titleblock h1{ margin:0; font-size:18px; line-height:1.15; }
.titleblock p{ margin:4px 0 0; font-size:13px; color:var(--muted); }
.pill{
  display:flex; gap:8px; align-items:center;
  padding:10px 12px; border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(10px);
  color: var(--muted); font-size:13px; white-space:nowrap;
}

.grid{ display:grid; grid-template-columns: 1fr; gap:14px; }
@media (min-width: 920px){ .grid{ grid-template-columns: 1.1fr .9fr; align-items:start; } }

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  backdrop-filter: blur(10px);
}
.cardHeader{
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.cardHeader h2{ margin:0; font-size:15px; }
.sub{ margin:6px 0 0; color: var(--muted); font-size:13px; line-height:1.35; }

.playerBody{ padding: 14px 16px 16px; display:flex; flex-direction:column; gap:12px; }

.nowPlaying{
  display:flex; gap:12px; align-items:flex-start;
  padding: 14px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(135deg, rgba(255,176,0,.12), rgba(124,58,237,.10));
}
.npIcon{
  width:42px;height:42px;border-radius:14px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  display:grid;place-items:center; flex:0 0 auto;
}
.npText{ min-width:0; flex:1; }
#playingTitle{
  margin:0; font-weight:800; font-size:14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#playingMeta{
  margin:6px 0 0; font-size:12px; color: var(--muted);
  display:flex; gap:10px; flex-wrap:wrap;
}
.chip{
  padding: 6px 10px; border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  display:inline-flex; align-items:center; gap:8px;
}
audio{ width:100%; border-radius:14px; outline:none; background: rgba(255,255,255,.06); }

.controlsRow{ display:flex; gap:10px; flex-wrap:wrap; }
.btn{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  cursor:pointer;
  font-weight: 700;
  font-size: 13px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  user-select:none;
}
.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.22); }
.btn:disabled{ opacity:.45; cursor:not-allowed; transform:none; }
.btnPrimary{ border-color: rgba(255,176,0,.35); background: rgba(255,176,0,.12); }

.searchBox{ display:flex; gap:10px; align-items:center; padding: 12px 16px 14px; }
.input{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline:none;
}
.input:focus{ border-color: rgba(255,176,0,.45); background: rgba(0,0,0,.24); }
.hint{ padding: 0 16px 14px; color: var(--muted); font-size: 12px; }

.lista-reproduccion{
  list-style:none; margin:0; padding: 0 10px 12px;
  max-height: 520px; overflow:auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.22) transparent;
}
.track{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding: 12px 12px; margin: 8px 0;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.track:hover{ transform: translateY(-1px); background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); }
.trackLeft{ display:flex; align-items:center; gap:10px; min-width:0; }
.badge{
  width:34px;height:34px;border-radius:12px;
  display:grid;place-items:center;
  font-weight: 900; font-size: 12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.20);
  flex: 0 0 auto;
}
.trackName{
  min-width:0;
  font-weight: 750;
  font-size: 13px;
  white-space: nowrap; overflow:hidden; text-overflow: ellipsis;
}
.trackRight{ color: var(--muted); font-size: 12px; }

.activo{
  border-color: rgba(255,176,0,.42);
  background: linear-gradient(135deg, rgba(255,176,0,.18), rgba(124,58,237,.12));
  box-shadow: 0 10px 26px rgba(255,176,0,.10);
}
.activo .badge{
  border-color: rgba(255,176,0,.55);
  background: rgba(255,176,0,.16);
  color: #ffe8b0;
}

.empty{
  margin: 12px 16px 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border:1px dashed rgba(255,255,255,.18);
  color: var(--muted);
  background: rgba(255,255,255,.03);
  display:none;
}


/* ✅ Forzar headings y “labels” a #e4e4e4 (gana a Bootstrap/layout) */
:root { --heading: #e4e4e4; }

.wrap .titleblock h1,
.wrap .cardHeader h2,
.wrap #playingTitle,
.wrap .trackName,
.wrap .listTitleRow .label,
.wrap .bookName,
.wrap h1, .wrap h2, .wrap h3, .wrap h4, .wrap h5, .wrap h6 {
  color: var(--heading) !important;
}

/* Si algún enlace o chip hereda raro */
.wrap a { color: inherit; }
