/* ============================================================
   ÓRBITA · Componentes de contenido
   ============================================================ */

/* ------------------------------- Portadas ------------------------------- */
.cover {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(145deg, var(--c1, #2a2350), var(--c2, #0e5f74));
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  isolation: isolate;
}
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 15% 8%, rgba(255, 255, 255, 0.22), transparent 55%),
    radial-gradient(100% 100% at 90% 95%, rgba(0, 0, 0, 0.35), transparent 60%);
  mix-blend-mode: soft-light;
}
.cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}
.cover .cover-note {
  width: 34%;
  height: 34%;
  opacity: 0.5;
  color: #fff;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  z-index: 1;
}
.cover .cover-rings {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.35;
}
.cover .cover-rings::before,
.cover .cover-rings::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.cover .cover-rings::before { inset: 14%; }
.cover .cover-rings::after { inset: 28%; }

.cover-xs { width: 34px; height: 34px; border-radius: 7px; }
.cover-sm { width: 44px; height: 44px; border-radius: 8px; }
.cover-row { width: 42px; height: 42px; border-radius: 8px; }
.cover-player { width: 56px; height: 56px; border-radius: 10px; }

/* ------------------------------- Hero ------------------------------- */
.hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--hero-glow);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: clamp(22px, 3vw, 36px);
  margin-bottom: 8px;
  isolation: isolate;
}
html[data-theme="light"] .hero { border-color: rgba(255, 255, 255, 0.7); }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 75% 30%, black 10%, transparent 65%);
  opacity: 0.55;
  z-index: -1;
}
html[data-theme="light"] .hero::before { background-image: radial-gradient(rgba(60, 30, 120, 0.14) 1px, transparent 1px); }
.hero-inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 34px);
}
.hero-art {
  width: clamp(128px, 15vw, 190px);
  aspect-ratio: 1;
  flex: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 26px 60px -22px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.14);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
}
html[data-theme="light"] .hero-art { box-shadow: 0 26px 60px -26px rgba(56, 30, 120, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.8); }
.hero-art .cover { border-radius: 0; aspect-ratio: auto; height: 100%; width: 100%; }
.hero-art .hero-art-empty {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.35), rgba(34, 211, 238, 0.2));
}
.hero-art .hero-art-empty svg { width: 42%; height: 42%; opacity: 0.55; color: #fff; }

.hero-copy { min-width: 0; flex: 1; }
.hero-copy .eyebrow { color: rgba(255, 255, 255, 0.7); }
html[data-theme="light"] .hero-copy .eyebrow { color: var(--accent-strong); }
.hero-copy h2 {
  font-size: clamp(26px, 3.4vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-weight: 800;
  margin: 8px 0 10px;
  color: #fff;
}
html[data-theme="light"] .hero-copy h2 { color: var(--text); }
.hero-copy p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13.5px;
  max-width: 520px;
  line-height: 1.6;
}
html[data-theme="light"] .hero-copy p { color: var(--text-2); }
.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}
html[data-theme="light"] .hero-meta { color: var(--text-2); }
.hero-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.hero-actions { display: flex; align-items: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.hero .btn-ghost { border-color: rgba(255, 255, 255, 0.24); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
html[data-theme="light"] .hero .btn-ghost { border-color: var(--line-strong); color: var(--text); }
html[data-theme="light"] .hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.7); }
.btn-play-all { padding: 12px 20px; border-radius: 99px; }
.btn-play-all svg { width: 16px; height: 16px; }

/* ------------------------------- Estantes / cards ------------------------------- */
.shelf {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(168px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-snap-type: x proximity;
}
.shelf::-webkit-scrollbar { height: 6px; }

.track-card {
  min-width: 0;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid transparent;
  transition: 0.22s var(--ease);
  cursor: pointer;
  scroll-snap-align: start;
  position: relative;
}
.track-card:hover {
  background: var(--panel-2);
  border-color: var(--line);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.track-card .cover-wrap { position: relative; border-radius: var(--radius-sm); overflow: hidden; }
.track-card .cover { border-radius: var(--radius-sm); }
.track-card .card-play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transition: 0.22s var(--ease);
  box-shadow: 0 12px 26px -8px rgba(139, 92, 246, 0.9);
  z-index: 3;
}
.track-card:hover .card-play,
.track-card:focus-within .card-play { opacity: 1; transform: none; }
.track-card .card-play svg { width: 18px; height: 18px; margin-left: 1px; }
.track-card .card-play.playing { opacity: 1; transform: none; background: var(--cyan); }
.track-card .card-title {
  display: block;
  font-size: 13.4px;
  font-weight: 640;
  margin-top: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-card .card-sub {
  display: block;
  font-size: 11.8px;
  color: var(--text-3);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-card .card-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  backdrop-filter: blur(8px);
  background: rgba(8, 9, 14, 0.55);
  color: #fff;
  border-color: transparent;
}
.track-card .card-fav {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(8, 9, 14, 0.5);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: 0.2s;
}
.track-card:hover .card-fav,
.track-card .card-fav.active { opacity: 1; }
.track-card .card-fav.active { color: var(--danger); }
.track-card .card-fav svg { width: 15px; height: 15px; fill: currentColor; }
.track-card.playing .cover { box-shadow: 0 0 0 2px var(--cyan) inset; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}

/* ------------------------------- Lista de pistas ------------------------------- */
.track-list {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.track-list-head {
  display: grid;
  grid-template-columns: 34px 42px minmax(180px, 2.2fr) minmax(110px, 1.3fr) minmax(90px, 0.9fr) 62px 54px 148px;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--panel-2);
}
.track-list-head .thead-dur { text-align: right; }

.track-row {
  display: grid;
  grid-template-columns: 34px 42px minmax(180px, 2.2fr) minmax(110px, 1.3fr) minmax(90px, 0.9fr) 62px 54px 148px;
  gap: 12px;
  align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  transition: background 0.14s;
  position: relative;
}
.track-row:last-child { border-bottom: 0; }
.track-row:hover { background: var(--panel-2); }
.track-row.current { background: linear-gradient(90deg, var(--accent-soft), transparent 70%); }
.track-row.current .track-title { color: var(--accent-strong); }

.track-index {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  position: relative;
}
.track-row:hover .track-index .idx-num { display: none; }
.track-index .idx-play { display: none; }
.track-row:hover .track-index .idx-play { display: block; color: var(--text); }
.track-index .idx-play svg { width: 14px; height: 14px; }
.track-row.playing .idx-num { display: none; }
.track-row.playing .idx-play { display: none; }
.track-row.playing .idx-eq { display: flex; }
.idx-eq { display: none; align-items: flex-end; gap: 2px; height: 13px; }
.idx-eq i {
  width: 2.5px;
  background: var(--accent-strong);
  border-radius: 2px;
  animation: idx-bar 0.9s ease-in-out infinite alternate;
}
.idx-eq i:nth-child(1) { height: 55%; animation-delay: -0.2s; }
.idx-eq i:nth-child(2) { height: 100%; animation-delay: -0.5s; }
.idx-eq i:nth-child(3) { height: 70%; animation-delay: -0.1s; }
@keyframes idx-bar { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }

.track-main { min-width: 0; }
.track-title { font-size: 13.3px; font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.track-artist { font-size: 11.8px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; margin-top: 1px; }
.track-album { font-size: 12.2px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-plays { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 5px; }
.track-plays svg { width: 12px; height: 12px; }
.track-duration { font-size: 11.8px; color: var(--text-3); font-variant-numeric: tabular-nums; text-align: right; }
.track-actions { display: flex; align-items: center; justify-content: flex-end; gap: 1px; opacity: 0; transition: opacity 0.15s; }
.track-row:hover .track-actions,
.track-row:focus-within .track-actions { opacity: 1; }
.track-actions .icon-btn { width: 29px; height: 29px; border-radius: 8px; }
.track-actions .icon-btn svg { width: 15px; height: 15px; }
.track-actions .icon-btn.fav.active { color: var(--danger); }
.track-actions .icon-btn.fav.active svg { fill: currentColor; }
.track-actions .icon-btn.danger:hover { color: var(--danger); background: var(--danger-soft); }

.track-list .track-genre .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: inline-block; }

/* Iconos que no deben desbordar cuando el contenedor es flexible */
.stat-card > svg,
.mini-row > svg,
.notice-banner > svg,
.info-row > svg { width: 17px; height: 17px; flex: none; }
.stat-icon svg, .empty-icon svg, .dz-icon svg { width: 18px; height: 18px; }
.stat-foot svg { width: 12px; height: 12px; flex: none; }

.row-empty {
  padding: 46px 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}
.row-empty strong { display: block; color: var(--text-2); font-size: 14.5px; margin-bottom: 4px; }

/* ------------------------------- Playlists ------------------------------- */
.playlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.playlist-card {
  display: flex;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  transition: 0.2s var(--ease);
  cursor: pointer;
  position: relative;
  align-items: center;
}
.playlist-card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow); background: var(--panel-2); }
.playlist-mosaic {
  width: 74px;
  height: 74px;
  border-radius: 11px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--panel-3);
  flex: none;
}
.playlist-mosaic .cover { border-radius: 0; aspect-ratio: auto; height: 100%; width: 100%; }
.playlist-mosaic .mosaic-empty {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  background: linear-gradient(135deg, var(--panel-3), var(--panel-4));
}
.playlist-mosaic .mosaic-empty svg { width: 26px; height: 26px; }
.playlist-card-body { min-width: 0; flex: 1; }
.playlist-card h3 { font-size: 14px; font-weight: 660; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 24px; }
.playlist-card p { font-size: 11.8px; color: var(--text-3); margin-top: 3px; }
.playlist-card .playlist-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(6px);
  transition: 0.2s var(--ease);
  box-shadow: 0 10px 22px -8px rgba(139, 92, 246, 0.9);
}
.playlist-card:hover .playlist-play { opacity: 1; transform: none; }
.playlist-play svg { width: 15px; height: 15px; margin-left: 1px; }

.playlist-hero {
  display: flex;
  gap: clamp(18px, 3vw, 30px);
  align-items: flex-end;
  padding: clamp(18px, 3vw, 30px);
  border-radius: var(--radius-xl);
  background: var(--hero-glow);
  border: 1px solid var(--line);
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}
html[data-theme="light"] .playlist-hero { border-color: rgba(255, 255, 255, 0.7); }
.playlist-hero-art {
  width: clamp(130px, 15vw, 180px);
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.75);
}
.playlist-hero-art .cover { border-radius: 0; aspect-ratio: auto; height: 100%; width: 100%; }
.playlist-hero-art .mosaic-empty { grid-column: 1/-1; grid-row: 1/-1; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, rgba(139, 92, 246, 0.4), rgba(34, 211, 238, 0.25)); }
.playlist-hero-art .mosaic-empty svg { width: 40%; height: 40%; color: #fff; opacity: 0.7; }
.playlist-hero-body { min-width: 0; flex: 1; }
.playlist-hero-body h2 { font-size: clamp(26px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.03; margin: 6px 0 10px; color: #fff; overflow-wrap: anywhere; }
html[data-theme="light"] .playlist-hero-body h2 { color: var(--text); }
.playlist-hero-body .eyebrow { color: rgba(255, 255, 255, 0.65); }
html[data-theme="light"] .playlist-hero-body .eyebrow { color: var(--accent-strong); }
.playlist-hero-meta { font-size: 12.5px; color: rgba(255, 255, 255, 0.7); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
html[data-theme="light"] .playlist-hero-meta { color: var(--text-2); }
.playlist-hero-actions { display: flex; gap: 9px; margin-top: 18px; flex-wrap: wrap; }
.playlist-hero .btn-ghost { border-color: rgba(255, 255, 255, 0.24); color: #fff; }
html[data-theme="light"] .playlist-hero .btn-ghost { border-color: var(--line-strong); color: var(--text); }

/* ------------------------------- Toolbar biblioteca ------------------------------- */
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0 18px;
}
.toolbar .toolbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 220px;
  height: 38px;
  padding: 0 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text-3);
}
.toolbar .toolbar-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.toolbar .toolbar-search svg { width: 16px; height: 16px; }
.toolbar .toolbar-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 13px; color: var(--text); }
.select-wrap { position: relative; }
.select-wrap select {
  appearance: none;
  height: 38px;
  padding: 0 34px 0 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--text-2);
  cursor: pointer;
  outline: none;
}
.select-wrap select:focus { border-color: var(--accent); }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--text-3);
  border-bottom: 1.5px solid var(--text-3);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.view-switch {
  display: flex;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.view-switch button { width: 32px; height: 30px; border-radius: 7px; color: var(--text-3); display: flex; align-items: center; justify-content: center; }
.view-switch button svg { width: 15px; height: 15px; }
.view-switch button.active { background: var(--panel-3); color: var(--text); }

.result-count { font-size: 12px; color: var(--text-3); margin: 0 0 12px 2px; }
.result-count strong { color: var(--text-2); }

/* ------------------------------- Vacíos / skeletons ------------------------------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 24px;
  background: var(--panel);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}
.empty-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
  margin-bottom: 18px;
  border: 1px solid var(--accent-ring);
}
.empty-icon svg { width: 28px; height: 28px; }
.empty-state h3 { font-size: 17px; letter-spacing: -0.02em; margin-bottom: 5px; }
.empty-state p { color: var(--text-3); font-size: 13px; max-width: 380px; line-height: 1.55; }
.empty-state .btn { margin-top: 20px; }

.skeleton {
  border-radius: var(--radius);
  background: var(--skeleton);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.skeleton-card { aspect-ratio: 0.78; }
.skeleton-row { height: 58px; border-radius: 10px; margin-bottom: 8px; }

/* ------------------------------- Tabs ------------------------------- */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  margin: 18px 0 22px;
  overflow-x: auto;
}
.tab {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: 0.16s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.tab .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 750;
  background: var(--panel-3);
  color: var(--text-2);
}
.tab.active .count { background: var(--accent-soft); color: var(--accent-strong); }

/* ------------------------------- Upload ------------------------------- */
.upload-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2.4vw, 26px);
}
.panel h2 { font-size: 17px; letter-spacing: -0.02em; margin-bottom: 4px; }
.panel > p.hint { font-size: 12.8px; color: var(--text-3); margin-bottom: 20px; }

.dropzone {
  position: relative;
  display: block; /* label: sin esto el borde se fragmenta en línea */
  width: 100%;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel-2);
  padding: 42px 24px;
  text-align: center;
  transition: 0.2s var(--ease);
  cursor: pointer;
  overflow: hidden;
}
.dropzone:hover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone.dragover { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 4px var(--accent-ring); }
.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
  border: 0;
}
.dropzone input[type="file"]::file-selector-button { display: none; }
.dropzone .dz-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: var(--panel-3);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-strong);
}
.dropzone .dz-icon svg { width: 25px; height: 25px; }
.dropzone h3 { font-size: 15px; letter-spacing: -0.01em; }
.dropzone p { font-size: 12.3px; color: var(--text-3); margin-top: 5px; line-height: 1.5; }
.dropzone .dz-formats { margin-top: 14px; display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; }
.dropzone .dz-formats span {
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.06em;
  color: var(--text-3);
  border: 1px solid var(--line);
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--panel);
}

.upload-queue { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.upload-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: 11px;
}
.upload-item .up-icon {
  width: 34px; height: 34px;
  flex: none;
  border-radius: 9px;
  background: var(--panel-3);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
}
.upload-item .up-icon svg { width: 16px; height: 16px; }
.upload-item-main { flex: 1; min-width: 0; }
.upload-item-main strong { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-item-main span { font-size: 11px; color: var(--text-3); }
.up-bar { height: 3px; border-radius: 99px; background: var(--panel-4); margin-top: 7px; overflow: hidden; }
.up-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--cyan)); transition: width 0.15s linear; }
.up-status { font-size: 10.5px; font-weight: 700; color: var(--text-3); flex: none; }
.up-status.ok { color: var(--ok); }
.up-status.error { color: var(--danger); }

.meta-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.upload-panel .divider { height: 1px; background: var(--line); margin: 18px 0; }
.upload-note { display: flex; gap: 10px; padding: 12px; border-radius: 11px; background: var(--panel-2); border: 1px solid var(--line); font-size: 11.8px; color: var(--text-3); line-height: 1.55; }
.upload-note svg { width: 16px; height: 16px; color: var(--accent-strong); flex: none; margin-top: 1px; }

/* ------------------------------- Perfil ------------------------------- */
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 20px; align-items: start; }
.profile-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--hero-glow);
  border: 1px solid var(--line);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.profile-head h2 { color: #fff; font-size: 23px; letter-spacing: -0.03em; }
html[data-theme="light"] .profile-head h2 { color: var(--text); }
.profile-head p { color: rgba(255, 255, 255, 0.68); font-size: 13px; margin-top: 2px; }
html[data-theme="light"] .profile-head p { color: var(--text-2); }
.profile-head-meta { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

.info-list { display: flex; flex-direction: column; }
.info-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12.8px; }
.info-row:last-child { border-bottom: 0; }
.info-row dt { color: var(--text-3); flex: none; }
.info-row dd { color: var(--text-2); text-align: right; margin: 0; overflow: hidden; text-overflow: ellipsis; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

.theme-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.theme-option {
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: 12px;
  padding: 12px;
  text-align: left;
  transition: 0.18s;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.theme-option:hover { border-color: var(--line-strong); }
.theme-option.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.theme-preview { height: 58px; border-radius: 8px; border: 1px solid var(--line); overflow: hidden; display: flex; }
.theme-preview .tp-side { width: 26%; height: 100%; }
.theme-preview .tp-body { flex: 1; padding: 7px; display: flex; flex-direction: column; gap: 4px; }
.theme-preview .tp-body i { display: block; height: 4px; border-radius: 9px; width: 60%; }
.theme-preview .tp-body i:first-child { width: 80%; height: 6px; }
.theme-option .theme-name { font-size: 12px; font-weight: 650; display: flex; align-items: center; justify-content: space-between; }
.theme-option.dark .theme-preview { background: #0b0d15; }
.theme-option.dark .tp-side { background: #10131d; }
.theme-option.dark .tp-body i { background: #2a3047; }
.theme-option.dark .tp-body i:first-child { background: #8b5cf6; }
.theme-option.light .theme-preview { background: #f3f4f9; }
.theme-option.light .tp-side { background: #ffffff; }
.theme-option.light .tp-body i { background: #d9dded; }
.theme-option.light .tp-body i:first-child { background: #6d3fe8; }

/* ------------------------------- Admin ------------------------------- */
.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 22px;
  background: var(--hero-glow);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 4px;
}
.admin-head h2 { font-size: 22px; letter-spacing: -0.03em; color: #fff; }
html[data-theme="light"] .admin-head h2 { color: var(--text); }
.admin-head p { font-size: 12.8px; color: rgba(255, 255, 255, 0.65); margin-top: 3px; }
html[data-theme="light"] .admin-head p { color: var(--text-3); }
.admin-head .btn-ghost { border-color: rgba(255, 255, 255, 0.25); color: #fff; }
html[data-theme="light"] .admin-head .btn-ghost { border-color: var(--line-strong); color: var(--text); }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 20px 0 6px; }
.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 17px 18px;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  right: -34px;
  top: -38px;
  background: var(--accent-soft);
  filter: blur(2px);
}
.stat-card .stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
  margin-bottom: 12px;
}
.stat-card .stat-icon svg { width: 17px; height: 17px; }
.stat-card.cyan .stat-icon { background: var(--cyan-soft); color: var(--cyan); }
.stat-card.green .stat-icon { background: var(--ok-soft); color: var(--ok); }
.stat-card.amber .stat-icon { background: var(--warn-soft); color: var(--warn); }
.stat-card .stat-value { font-size: 25px; font-weight: 780; letter-spacing: -0.03em; line-height: 1.1; }
.stat-card .stat-label { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.stat-card .stat-foot { font-size: 10.5px; color: var(--text-3); margin-top: 9px; display: flex; align-items: center; gap: 5px; }
.stat-card .stat-foot.warn { color: var(--warn); }

.admin-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h3 { font-size: 14.5px; letter-spacing: -0.01em; }

.mini-list { display: flex; flex-direction: column; gap: 2px; }
.mini-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 8px;
  border-radius: 9px;
  font-size: 12.5px;
  min-width: 0;
  overflow: hidden;
}
.mini-row:hover { background: var(--panel-2); }
.mini-row .cover { width: 36px; height: 36px; border-radius: 7px; flex: none; }
.mini-row-main { flex: 1; min-width: 0; }
.mini-row-main strong { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
.mini-row-main span { display: block; font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-row .mini-end { font-size: 11px; color: var(--text-3); flex: none; }
.mini-empty { padding: 20px 8px; color: var(--text-3); font-size: 12px; text-align: center; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 760px; }
.data-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
  font-weight: 700;
  white-space: nowrap;
}
.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--panel-2); }
.data-table .cell-user { display: flex; align-items: center; gap: 10px; min-width: 170px; }
.data-table .cell-user .avatar { width: 31px; height: 31px; font-size: 11px; box-shadow: none; }
.data-table .cell-user strong { display: block; font-size: 12.5px; font-weight: 620; }
.data-table .cell-user .cell-user-text span { display: block; font-size: 10.8px; color: var(--text-3); }
.data-table .cell-user .avatar { display: inline-flex; }
.data-table .cell-actions { display: flex; align-items: center; gap: 4px; justify-content: flex-end; flex-wrap: wrap; }
.data-table .cell-actions .btn { padding: 5px 9px; font-size: 11px; border-radius: 7px; }
.data-table .cell-actions .icon-btn { width: 28px; height: 28px; }
.data-table .cell-actions .icon-btn svg { width: 14px; height: 14px; }
.data-table select.role-select {
  appearance: none;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text-2);
  border-radius: 7px;
  padding: 5px 24px 5px 9px;
  font-size: 11.5px;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 13px) 52%, calc(100% - 9px) 52%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}
.data-table select.role-select:disabled { opacity: 0.4; cursor: not-allowed; }
.data-table .you-tag { font-size: 9.5px; color: var(--text-3); border: 1px solid var(--line); padding: 1px 5px; border-radius: 4px; margin-left: 5px; }

.admin-toolbar { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.admin-toolbar .toolbar-search { flex: 1; min-width: 200px; max-width: 340px; }
.admin-toolbar .spacer { flex: 1; }

.notice-banner {
  display: flex;
  gap: 11px;
  padding: 13px 15px;
  border-radius: 11px;
  background: var(--warn-soft);
  border: 1px solid color-mix(in srgb, var(--warn) 25%, transparent);
  color: var(--warn);
  font-size: 12.3px;
  line-height: 1.5;
  margin: 16px 0;
  align-items: flex-start;
}
.notice-banner svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }

.scan-result { font-size: 12px; color: var(--text-3); margin-top: 10px; }

/* ------------------------------- Modales ------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(4, 5, 10, 0.66);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade-in 0.18s ease;
}
@keyframes fade-in { from { opacity: 0; } }
.modal {
  width: 100%;
  max-width: 420px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: 22px;
  animation: modal-in 0.26s var(--ease);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.modal.wide { max-width: 520px; }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(0.975); } }
.modal h3 { font-size: 17px; letter-spacing: -0.02em; margin-bottom: 6px; }
.modal p.modal-sub { font-size: 12.8px; color: var(--text-3); line-height: 1.55; margin-bottom: 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.modal-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
  margin-bottom: 14px;
}
.modal-icon.danger { background: var(--danger-soft); color: var(--danger); }
.modal-icon svg { width: 22px; height: 22px; }
.modal .playlist-pick {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 11px;
  border-radius: 10px;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--panel-2);
  margin-bottom: 6px;
  font-size: 12.8px;
  transition: 0.15s;
}
.modal .playlist-pick:hover { border-color: var(--accent); background: var(--accent-soft); }
.modal .playlist-pick .mosaic-mini {
  width: 32px; height: 32px; border-radius: 7px; flex: none;
  background: linear-gradient(135deg, var(--panel-3), var(--panel-4));
  display: flex; align-items: center; justify-content: center; color: var(--text-3);
}
.modal .playlist-pick .mosaic-mini svg { width: 15px; height: 15px; }
.modal .playlist-pick span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal .playlist-pick small { margin-left: auto; color: var(--text-3); font-size: 10.5px; flex: none; }
.modal .divider-text { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; font-size: 10.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; }
.modal .divider-text::before, .modal .divider-text::after { content: ""; height: 1px; background: var(--line); flex: 1; }

/* ------------------------------- Toasts ------------------------------- */
.toast-root {
  position: fixed;
  right: 18px;
  bottom: calc(var(--player-h) + 16px);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(340px, calc(100vw - 36px));
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-pop);
  font-size: 12.8px;
  color: var(--text-2);
  line-height: 1.45;
  animation: toast-in 0.3s var(--ease);
  pointer-events: auto;
  position: relative;
  overflow: hidden;
}
.toast::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.toast.success::before { background: var(--ok); }
.toast.error::before { background: var(--danger); }
.toast.warn::before { background: var(--warn); }
.toast svg { width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--accent-strong); }
.toast.success svg { color: var(--ok); }
.toast.error svg { color: var(--danger); }
.toast.warn svg { color: var(--warn); }
.toast.out { animation: toast-out 0.25s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateX(20px); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(20px); } }

/* ------------------------------- Error de página ------------------------------- */
.fatal-state {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}
.fatal-state h2 { font-size: 22px; letter-spacing: -0.03em; }
.fatal-state p { color: var(--text-3); font-size: 13px; max-width: 380px; }

.locked-note {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 14px;
  justify-content: center;
}
.locked-note svg { width: 14px; height: 14px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1280px) {
  .track-list-head,
  .track-row {
    grid-template-columns: 34px 42px minmax(160px, 2fr) minmax(90px, 1fr) 56px 50px 142px;
  }
  .track-list-head .thead-genre,
  .track-row .track-genre { display: none; }
  .searchbar { max-width: 340px; }
}

@media (max-width: 1100px) {
  :root { --sidebar-w: 250px; }
  .sidebar { transform: translateX(-102%); transition: transform 0.3s var(--ease); bottom: 0; width: 280px; box-shadow: none; }
  body.nav-open .sidebar { transform: none; box-shadow: 40px 0 80px -20px rgba(0, 0, 0, 0.6); }
  .main { margin-left: 0; }
  .menu-btn { display: inline-flex; }
  .page-heading { flex: 1; }
  .searchbar { max-width: 380px; }
  .upload-layout, .profile-grid, .admin-cols { grid-template-columns: 1fr; }
  .auth-screen { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-mobile-brand { display: flex; }
  .auth-panel { min-height: 100vh; padding-top: 80px; }
}

@media (max-width: 900px) {
  .player {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    height: 78px;
    padding: 0 14px;
    padding-top: 6px;
  }
  :root { --player-h: 78px; }
  .player-center { flex-direction: row; gap: 10px; justify-content: flex-end; }
  .player-progress { position: absolute; top: 0; left: 0; right: 0; max-width: none; padding: 0 0; gap: 0; height: 12px; }
  .player-progress .time { display: none; }
  .progress { height: 12px; }
  .progress-rail { height: 2px; border-radius: 0; }
  .player-right { display: none; }
  .track-list-head, .track-row {
    grid-template-columns: 30px 42px minmax(120px, 1fr) 56px 50px 128px;
  }
  .track-list-head .thead-album, .track-row .track-album,
  .track-list-head .thead-plays, .track-row .track-plays { display: none; }
  .track-actions { opacity: 1; }
  .hero-inner { align-items: flex-start; }
  .topbar .upload-cta span { display: none; }
  .topbar .upload-cta { width: 38px; padding: 0; height: 38px; }
  .toast-root { bottom: calc(var(--player-h) + 90px); }
}

@media (max-width: 720px) {
  .topbar { gap: 10px; padding: 0 14px; height: 66px; }
  :root { --topbar-h: 66px; }
  .searchbar { display: none; }
  .page-title { font-size: 17px; }
  .view { padding: 18px 14px 30px; }
  .hero-inner { flex-direction: column; align-items: stretch; }
  .hero-art { width: 100%; max-width: 220px; }
  .hero-copy h2 { font-size: 27px; }
  .shelf { grid-auto-columns: minmax(148px, 1fr); }
  .cards-grid, .skeleton-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .playlist-grid { grid-template-columns: 1fr; }
  .playlist-hero { flex-direction: column; align-items: flex-start; }
  .playlist-hero-art { width: 128px; }
  .hero-meta { font-size: 11.5px; }
  .track-list-head { display: none; }
  .track-list { border-radius: var(--radius); }
  .track-row {
    grid-template-columns: 34px 1fr auto;
    gap: 10px;
    padding: 9px 12px;
  }
  .track-row > .cover, .track-row .track-index { display: flex; }
  .track-row .track-index { display: none; }
  .track-row > .cover-row { display: block; }
  .track-row .track-duration { grid-column: 2; grid-row: 2; text-align: left; font-size: 10.5px; margin-top: -4px; }
  .track-row .track-main { grid-column: 2; grid-row: 1; }
  .track-row .track-actions { grid-column: 3; grid-row: 1 / span 2; }
  .track-row > .cover-row { grid-column: 1; grid-row: 1 / span 2; }
  .track-actions .icon-btn { width: 30px; height: 30px; }
  .track-actions .icon-btn.edit-track,
  .track-actions .icon-btn.delete-track { display: none; }
  .track-row .track-genre, .track-row .track-album, .track-row .track-plays { display: none; }
  .field-row, .meta-fields, .theme-options { grid-template-columns: 1fr; }
  .auth-panel { padding: 70px 20px 30px; }
  .auth-copy h1 { font-size: 36px; }
  .queue-drawer { left: 8px; right: 8px; width: auto; bottom: calc(var(--player-h) + 8px); }
  .player-track .cover-player { width: 46px; height: 46px; }
  .player-meta strong { font-size: 12.5px; }
  .player-controls .control-btn.subtle { display: none; }
  .control-btn { width: 34px; height: 34px; }
  .play-btn { width: 40px; height: 40px; }
  .toolbar { gap: 8px; }
  .toolbar .toolbar-search { min-width: 100%; order: -1; }
  .result-count { margin-top: 4px; }
  .admin-head { padding: 18px; }
  .stat-card { padding: 15px; }
  .stat-card .stat-value { font-size: 22px; }
  .toast-root { right: 10px; width: calc(100vw - 20px); }
  .modal { padding: 18px; }
  .hero-actions .btn { flex: 1; }
  .playlist-hero-actions { width: 100%; }
  .playlist-hero-actions .btn { flex: 1; }
}

@media (max-width: 420px) {
  .player-center .control-btn#btn-prev, .player-center .control-btn#btn-next { display: none; }
  .player { padding: 0 10px; }
  .page-eyebrow { display: none; }
}

/* ------------------------------- Accesibilidad / motion ------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Modo foco teclado */
body.using-keyboard .btn:focus-visible,
body.using-keyboard .icon-btn:focus-visible,
body.using-keyboard .track-row:focus-visible,
body.using-keyboard .nav-item:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

/* ============================================================
   Ajustes finos de interacción
   ============================================================ */
.play-btn,
.control-btn { position: relative; }

.track-index,
.card-play,
.card-fav,
.queue-item,
.playlist-pick { border: 0; cursor: pointer; font: inherit; }

.card-play { border-radius: 50%; }

.track-card { cursor: pointer; }
.track-card .card-play { padding: 0; }
.track-card .card-fav { padding: 0; }

.playlist-card { color: inherit; }

.queue-now { display: inline-flex; color: var(--cyan); }
.queue-now svg { width: 15px; height: 15px; }
.queue-dur { font-size: 10.5px; color: var(--text-3); font-variant-numeric: tabular-nums; flex: none; }

.auth-panel { overflow-y: auto; }
.auth-tabs { display: grid; }

@media (max-height: 760px) {
  .auth-panel { justify-content: flex-start; padding-top: 56px; }
}

@media (max-width: 1100px) {
  .auth-panel { justify-content: center; }
}

@media (max-width: 720px) {
  .auth-panel { justify-content: flex-start; }
}

/* Barra de búsqueda oculta en móvil: acceso desde biblioteca */
@media (max-width: 720px) {
  .searchbar { display: none; }
}

/* Evita el zoom automático de iOS en formularios */
@media (max-width: 520px) {
  .input-wrap input,
  .field > input,
  .field select { font-size: 16px; }
}


/* Barra de búsqueda del panel de administración */
.admin-toolbar .toolbar-search {
  height: 38px;
  padding: 0 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text-3);
  min-width: 220px;
}
.admin-toolbar .toolbar-search svg { width: 16px; height: 16px; flex: none; }
.admin-toolbar .toolbar-search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  font-size: 13px;
  color: var(--text);
}
.admin-toolbar .toolbar-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.admin-toolbar .select-wrap select { height: 38px; }

/* Nota al pie de tablas */
.table-footnote {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 10px;
  line-height: 1.5;
}
.table-footnote svg { width: 14px; height: 14px; margin-top: 1px; color: var(--text-3); }
.table-footnote span { display: inline; }


/* Select de rol: una sola flecha (sin duplicar la del wrapper) */
.data-table .select-wrap::after { display: none; }
.data-table select.role-select { padding-right: 26px; }


/* Portadas con imagen: el texto alt del img no debe verse sobre la foto */
.cover img { color: transparent; font-size: 0; }
.cover.is-img .cover-note,
.cover.is-img .cover-rings { display: none; }


/* Portada clicable de las filas (accesible y usable en móvil) */
.row-cover-btn {
  border: 0;
  padding: 0;
  background: none;
  border-radius: 8px;
  display: block;
  line-height: 0;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.row-cover-btn:hover { transform: scale(1.06); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.7); }
.row-cover-btn .cover { pointer-events: none; }

@media (max-width: 720px) {
  .row-cover-btn { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
  .track-row .track-main { grid-column: 2; }
}
