:root {
  --bg: #0f1115;
  --bg-alt: #171a21;
  --border: #262a33;
  --text: #eef0f3;
  --text-dim: #8b909c;
  --accent: #4f8cff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding-bottom: 110px; /* deja espacio para el player fijo */
}

.app { max-width: 900px; margin: 0 auto; padding: 24px 16px; }

.topbar h1 { font-size: 22px; margin: 0 0 16px; }
.admin-link { text-decoration: none; font-size: 16px; margin-left: 8px; opacity: 0.7; }
.admin-link:hover { opacity: 1; }

.search-wrap { position: relative; }

#searchInput {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 15px;
  outline: none;
}
#searchInput:focus { border-color: var(--accent); }

.search-status {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--text-dim);
}

.song-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 14px;
}
.song-table thead th {
  text-align: left;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.song-table tbody tr {
  cursor: pointer;
  transition: background 0.1s;
}
.song-table tbody tr:hover { background: var(--bg-alt); }
.song-table tbody tr.playing { background: rgba(79,140,255,0.14); }
.song-table tbody td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
}
.col-duration { text-align: right; color: var(--text-dim); width: 70px; }

.empty-state { color: var(--text-dim); text-align: center; margin-top: 40px; }

/* ---- Reproductor inferior fijo ---- */
.player-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.now-playing { min-width: 180px; max-width: 260px; overflow: hidden; }
.np-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-artist { color: var(--text-dim); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.player-controls { flex: 1; }

.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-dim);
}

#seekBar { flex: 1; accent-color: var(--accent); }

@media (max-width: 600px) {
  .col-album { display: none; }
  .now-playing { display: none; }
}
