@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --bg: #0d0d0d;
  --bg2: #161616;
  --bg3: #1e1e1e;
  --border: #2a2a2a;
  --text: #e8e8e8;
  --muted: #666;
  --accent: #6e78c8;
  --accent-dim: rgba(200, 169, 110, 0.12);
  --header-h: 58px;
  --player-h: 80px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── LANDING ──────────────────────────────────────────────── */

.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 8px;
  background: linear-gradient(-45deg, #0d0d0d, #1a1208, #0d0d1a, #120d0d, #0d1219);
  background-size: 400% 400%;
  animation: gradientShift 14s ease infinite;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.landing-logo {
  font-size: 2.4rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  transition: color 0.3s;
}

.landing-logo:hover {
  color: var(--accent);
}

.landing-sub {
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ── MODAL ────────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 100;
}

.modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 40px;
  width: 320px;
  transform: translateY(12px);
  transition: transform 0.25s;
}

.modal-overlay.visible .modal {
  transform: translateY(0);
}

.modal h2 {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  margin-bottom: 28px;
  color: var(--muted);
  text-transform: uppercase;
}

.modal input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.2s;
}

.modal input:focus {
  border-color: var(--accent);
}

.modal button {
  width: 100%;
  background: var(--accent);
  color: #0d0d0d;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  margin-top: 4px;
  transition: opacity 0.2s;
}

.modal button:hover {
  opacity: 0.85;
}

.modal-error {
  font-size: 0.8rem;
  color: #e05555;
  margin-top: 10px;
  text-align: center;
  min-height: 18px;
}

/* ── APP LAYOUT ───────────────────────────────────────────── */

.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* ── HEADER ───────────────────────────────────────────────── */

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
}

.app-title {
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  color: var(--muted);
}

/* ── HEADER ACTIONS ───────────────────────────────────────── */

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-search {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.btn-search:hover,
.btn-search.open {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── BÚSQUEDA INLINE ──────────────────────────────────────── */

.search-inline {
  display: none;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 10px 24px;
  flex-shrink: 0;
}

.search-inline.open {
  display: flex;
}

.search-inline-input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
  letter-spacing: 0.02em;
}

.search-inline-input::placeholder {
  color: var(--muted);
}

.search-inline-input:focus {
  border-color: var(--accent);
}

/* ── DROPDOWN MENU ────────────────────────────────────────── */

.menu-wrap {
  position: relative;
}

.btn-menu {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}

.btn-menu:hover,
.btn-menu.open {
  border-color: var(--accent);
  color: var(--accent);
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 200px;
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s;
  z-index: 200;
}

.dropdown.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.85rem;
  text-align: left;
  padding: 9px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.slskd-back {
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}

.slskd-back:hover { color: var(--text); }

.dropdown-item:hover {
  background: var(--bg3);
  color: var(--text);
}

.dropdown-item.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.dropdown-item.danger {
  color: #e05555;
}

.dropdown-item.danger:hover {
  background: rgba(224, 85, 85, 0.1);
  color: #e05555;
}

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

.dropdown-user {
  padding: 8px 14px 6px;
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .04em;
  user-select: none;
}

/* ── MAIN CONTENT ─────────────────────────────────────────── */

.main-content {
  flex: 1;
  overflow: hidden;
  position: relative;
  padding-bottom: var(--player-h);
}

.view {
  display: none;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
}

.view.active {
  display: flex;
}

/* ── TRACK LIST ───────────────────────────────────────────── */

.track-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.track-list::-webkit-scrollbar {
  width: 4px;
}
.track-list::-webkit-scrollbar-track {
  background: transparent;
}
.track-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.track-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 24px;
  cursor: pointer;
  transition: background 0.15s;
}

.track-item:hover {
  background: var(--bg2);
}

.track-item.active {
  background: var(--accent-dim);
}

.track-item.active .track-name {
  color: var(--accent);
}

.track-item.selected {
  background: var(--bg3);
  border-left: 2px solid var(--border);
  padding-left: 22px;
}

.track-play-icon {
  font-size: 0.7rem;
  color: var(--muted);
  flex-shrink: 0;
  width: 14px;
  text-align: center;
}

.track-item.active .track-play-icon {
  color: var(--accent);
}

.track-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-transform: uppercase;
  flex-shrink: 0;
  margin-left: auto;
}

.track-item.active .track-badge {
  border-color: var(--accent);
  color: var(--accent);
}

.track-name {
  font-size: 0.88rem;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-count {
  padding: 10px 24px;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.s-sort-group {
  display: flex;
  gap: 4px;
}

.s-sort {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.s-sort.active,
.s-sort:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.s-link-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.s-arch-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.s-select {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  outline: none;
  max-width: 220px;
}

.s-select:focus { border-color: var(--accent); }

.s-check-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.s-card-top input[type="checkbox"] {
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}

.s-exportify-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.s-exportify-list {
  display: flex;
  flex-direction: column;
}

.s-exportify-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}

.s-exportify-item:last-child { border-bottom: none; }

.s-exportify-item .s-fname {
  flex: 1;
  min-width: 0;
}

.s-divider-label {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding-top: 6px;
  border-top: 1px solid var(--border);
  margin-top: 2px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
}

/* ── VISTA REPRODUCTOR ────────────────────────────────────── */

.now-playing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
  padding: 40px;
}

.now-playing-art {
  width: 160px;
  height: 160px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.now-playing-name {
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  color: var(--text);
  max-width: 400px;
}

.now-playing-ext {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}

/* ── VISTA BUSCAR ─────────────────────────────────────────── */

.search-wrap {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  gap: 8px;
}

.search-bar {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-bar:focus {
  border-color: var(--accent);
}

.search-bar::placeholder {
  color: var(--muted);
}

.search-submit {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  padding: 10px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}
.search-submit:hover {
  border-color: var(--accent);
  background: var(--bg2);
}

.search-section {
  padding: 0 0 8px;
}
.search-section-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 20px 6px;
}
.search-section-status {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 4px 20px 8px;
}

.play-inline {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: color 0.15s;
}
.play-inline:hover { color: var(--text); }

.save-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: color 0.15s;
}
.save-btn:hover    { color: var(--accent); }
.save-btn:disabled { opacity: 0.4; cursor: default; }

.dl-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0 2px;
}
.dl-progress-bar {
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s;
  flex: 1;
}
.dl-progress-text {
  font-size: 0.75rem;
  color: var(--muted);
  min-width: 32px;
  text-align: right;
}

/* ── SLSKD PANEL ──────────────────────────────────────────── */

.stabs {
  display: flex;
  gap: 4px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.stab {
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.8rem;
  padding: 6px 14px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  letter-spacing: 0.04em;
}

.stab:hover { color: var(--text); }

.stab.active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.stab-content,
.stab-panel {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.s-form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.s-form.col {
  flex-direction: column;
  align-items: flex-start;
}

.s-label {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.s-input {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.s-input:focus { border-color: var(--accent); }

.s-file {
  color: var(--muted);
  font-family: inherit;
  font-size: 0.82rem;
}

.s-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
}

.s-btn {
  background: var(--accent);
  color: #0d0d0d;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
  letter-spacing: 0.04em;
}

.s-btn:hover { opacity: 0.85; }
.s-btn:disabled { opacity: 0.4; cursor: default; }

.s-btn.secondary {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
}

.s-btn.secondary:hover { border-color: var(--accent); color: var(--accent); }

.s-btn.sm {
  padding: 5px 12px;
  font-size: 0.75rem;
}

.s-status {
  padding: 6px 24px;
  font-size: 0.78rem;
  color: var(--muted);
  flex-shrink: 0;
}

.s-summary {
  display: flex;
  gap: 20px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.s-stat { font-size: 0.82rem; font-weight: 500; }
.s-stat.done     { color: #5a9e6f; }
.s-stat.progress { color: var(--accent); }
.s-stat.queue    { color: #888; }
.s-stat.fail     { color: #e05555; }

.s-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.s-list::-webkit-scrollbar { width: 4px; }
.s-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.s-card {
  padding: 10px 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.s-card:hover { background: var(--bg2); }

.s-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.s-fname {
  font-size: 0.85rem;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s-ext-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-transform: uppercase;
  flex-shrink: 0;
}

.s-ext-badge.flac { border-color: var(--accent); color: var(--accent); }
.s-ext-badge.mp3  { border-color: #888; color: #888; }

.s-badge {
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--bg3);
  color: var(--muted);
}

.s-badge.progress { background: var(--accent-dim); color: var(--accent); }
.s-badge.done     { background: rgba(90,158,111,0.15); color: #5a9e6f; }
.s-badge.queue    { background: var(--bg3); color: #888; }
.s-badge.fail     { background: rgba(224,85,85,0.12); color: #e05555; }

.s-bar-wrap {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.s-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.5s;
}

.s-stats {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 4px;
}

.s-cancel {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 2px 6px;
  flex-shrink: 0;
  transition: color 0.15s;
}

.s-cancel:hover { color: #e05555; }

.s-muted {
  font-size: 0.75rem;
  color: var(--muted);
  flex-shrink: 0;
}

.s-empty {
  text-align: center;
  padding: 40px 20px;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.s-log-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.s-log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.s-log {
  flex: 1;
  overflow-y: auto;
  padding: 12px 24px;
  font-family: monospace;
  font-size: 0.78rem;
  color: var(--muted);
  white-space: pre-wrap;
  line-height: 1.6;
}

/* ── ADMIN ────────────────────────────────────────────────── */

.adm-nav {
  display: flex;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  flex-shrink: 0;
}
.adm-nav-item {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  padding: 10px 16px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
  letter-spacing: 0.04em;
}
.adm-nav-item:hover  { color: var(--text); }
.adm-nav-item.active { color: var(--accent); border-bottom-color: var(--accent); }

.adm-wrap    { max-width: 860px; margin: 0 auto; padding: 32px 24px 80px; }
.adm-section { margin-bottom: 40px; }
.adm-title   { font-size: 0.72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.adm-table   { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.adm-table th { text-align: left; padding: 8px 12px; font-size: 0.72rem; letter-spacing:.06em; color: var(--muted); border-bottom: 1px solid var(--border); font-weight: 500; }
.adm-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.adm-table tr:last-child td { border-bottom: none; }
.adm-table tr:hover td { background: var(--bg2); }
.adm-btn { background: none; border: 1px solid var(--border); border-radius: 5px; color: var(--muted); font-family: inherit; font-size: 0.75rem; padding: 4px 10px; cursor: pointer; transition: border-color .15s, color .15s; white-space: nowrap; }
.adm-btn:hover        { border-color: var(--accent); color: var(--accent); }
.adm-btn.danger:hover { border-color: #e05555; color: #e05555; }
.adm-btn.ok:hover     { border-color: #5a9e6f; color: #5a9e6f; }
.adm-btn.active-filter { border-color: var(--accent); color: var(--accent); }
.adm-actions  { display: flex; gap: 6px; }
.empty-row td { color: var(--muted); font-size: 0.82rem; padding: 16px 12px; }
.adm-form { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 20px; }
.adm-form input, .adm-form select {
  display: block; width: 100%; background: var(--bg3);
  border: 1px solid var(--border); border-radius: 6px;
  color: var(--text); font-family: inherit; font-size: .88rem;
  padding: .6rem .85rem; margin-bottom: .7rem; outline: none;
  transition: border-color .15s;
}
.adm-form input:focus, .adm-form select:focus { border-color: var(--accent); }
.adm-form-row { display: flex; gap: 10px; }
.adm-form-row input, .adm-form-row select { flex: 1; margin-bottom: .7rem; }
.adm-submit { background: var(--accent); color: #0d0d0d; border: none; border-radius: 6px; padding: .65rem 1.4rem; font-family: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; transition: opacity .15s; }
.adm-submit:disabled { opacity: .4; cursor: default; }
.adm-msg       { margin-top: 10px; font-size: .82rem; min-height: 1.1em; }
.adm-msg.error { color: #e05555; }
.adm-msg.ok    { color: #5a9e6f; }
.badge-count   { display: inline-block; background: #e05555; color: #fff; border-radius: 10px; font-size: .65rem; font-weight: 700; padding: 1px 6px; margin-left: 6px; vertical-align: middle; }
.rol-badge     { font-size: 0.65rem; padding: 2px 7px; border-radius: 4px; border: 1px solid var(--border); color: var(--muted); letter-spacing:.04em; }
.rol-badge.admin { border-color: var(--accent); color: var(--accent); }
.adm-estado-badge { font-size:.65rem; padding:2px 7px; border-radius:4px; border:1px solid var(--border); color:var(--muted); }
.adm-estado-badge.activo      { border-color:#5a9e6f; color:#5a9e6f; }
.adm-estado-badge.pendiente   { border-color:#c8a96e; color:#c8a96e; }
.adm-estado-badge.baneado     { border-color:#e05555; color:#e05555; }
.adm-estado-badge.completada  { border-color:#5a9e6f; color:#5a9e6f; }
.adm-estado-badge.error       { border-color:#e05555; color:#e05555; }
.adm-estado-badge.share       { border-color:var(--accent); color:var(--accent); }
.adm-estado-badge.download    { border-color:#888; color:#888; }
.adm-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.adm-stat {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}
.adm-stat.alert { border-color: #c8a96e; }
.adm-stat-val   { font-size: 2rem; font-weight: 300; color: var(--text); line-height: 1; margin-bottom: 6px; }
.adm-stat.alert .adm-stat-val { color: #c8a96e; }
.adm-stat-label { font-size: 0.72rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* ── DAGGERX GATE ─────────────────────────────────────────── */

.daggerx-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 14px;
  padding: 40px;
  text-align: center;
}
.daggerx-gate-title {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--text);
}
.daggerx-gate-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 300px;
}
.daggerx-gate-btn {
  background: var(--accent);
  color: #0d0d0d;
  border: none;
  border-radius: 8px;
  padding: 10px 28px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  margin-top: 6px;
  transition: opacity 0.15s;
}
.daggerx-gate-btn:hover    { opacity: 0.85; }
.daggerx-gate-btn:disabled { opacity: 0.4; cursor: default; }
.daggerx-gate-msg {
  font-size: 0.8rem;
  color: var(--muted);
  min-height: 1.1em;
}

/* ── PLACEHOLDER ──────────────────────────────────────────── */

.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 10px;
}

.placeholder span {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.placeholder p {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--border);
  text-transform: uppercase;
}

/* ── PLAYER BAR ───────────────────────────────────────────── */

.player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--player-h);
  background: var(--bg2);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 20px;
  z-index: 40;
}

.player-info {
  flex: 1;
  min-width: 0;
}

.player-track-name {
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.player-track-ext {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ctrl-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.ctrl-btn:hover {
  color: var(--text);
}

.ctrl-btn.play {
  background: var(--accent);
  color: #0d0d0d;
  width: 40px;
  height: 40px;
}

.ctrl-btn.play:hover {
  opacity: 0.85;
}

.player-progress {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.progress-bar {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

.progress-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--muted);
}

.volume-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-bar {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.volume-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}
