.admin-body {
  background: var(--bg-base);
  min-height: 100vh;
}

.admin-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.admin-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 13px;
  order: 1;
  width: 100%;
}
.back-link:hover { color: var(--text-primary); }

.admin-header h1 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0;
  flex: 1;
  order: 2;
}

.btn-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #000;
  border: none;
  padding: 10px 18px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 14px;
  order: 3;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 10px 18px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 14px;
}
.btn-secondary:hover { background: var(--bg-surface-hover); }

.admin-table-wrap {
  background: var(--bg-surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.admin-table { width: 100%; border-collapse: collapse; }

.admin-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }

.table-cover {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--bg-surface-hover);
  display: block;
}

.table-url {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-secondary);
  font-size: 13px;
}

.badge-genre {
  background: var(--bg-surface-hover);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

.fav-star { color: var(--text-muted); }
.fav-star.active { color: var(--accent); }

.row-actions { display: flex; gap: 6px; justify-content: flex-end; }

.icon-action {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-action:hover { color: var(--text-primary); background: var(--bg-surface-hover); }
.icon-action.danger:hover { color: #e5484d; border-color: #e5484d; }
.icon-action svg { width: 14px; height: 14px; }

.admin-empty {
  padding: 48px 16px;
  text-align: center;
  color: var(--text-secondary);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-header h2 { font-family: var(--font-display); font-size: 18px; margin: 0; }

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 22px;
  line-height: 1;
  width: 28px;
  height: 28px;
}
.modal-close:hover { color: var(--text-primary); }

#stationForm { padding: 20px; display: flex; flex-direction: column; gap: 14px; }

#stationForm label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

#stationForm input {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
}
#stationForm input:focus { border-color: var(--accent); }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

@media (max-width: 700px) {
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table tr { padding: 14px 16px; border-bottom: 1px solid var(--border); }
  .admin-table td { border: none; padding: 4px 0; }
  .table-url { max-width: 100%; }
  .row-actions { justify-content: flex-start; margin-top: 8px; }
}
