/* =============================================
   Cuero Macho Records — Admin Panel
   ============================================= */

:root {
  --cmr-red:        #E8000D;
  --cmr-red-hover:  #cc0000;
  --cmr-red-dim:    rgba(232,0,13,0.12);
  --bg-body:        #0A0A0A;
  --bg-sidebar:     #111111;
  --bg-card:        #181818;
  --bg-input:       #1C1C1C;
  --bg-hover:       #222222;
  --border:         #2A2A2A;
  --border-light:   #333333;
  --text-primary:   #F0F0F0;
  --text-secondary: #999999;
  --text-muted:     #555555;
  --green:          #22C55E;
  --blue:           #3B82F6;
  --sidebar-width:  260px;
  --topbar-height:  56px;
  --radius:         10px;
  --radius-sm:      6px;
  --shadow:         0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-lg:      0 4px 20px rgba(0,0,0,0.5);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui,
               'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background: var(--bg-body);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

/* ─── Auth page ─────────────────────────────── */

.auth-body {
  background: #0A0A0A url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23E8000D' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-container {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo-pill {
  display: inline-flex;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
}

.auth-logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.auth-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 28px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ─── Layout: sidebar + main ─────────────────── */

.admin-body {
  display: flex;
  min-height: 100vh;
}

/* ─── Sidebar ─────────────────────────────────── */

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.25s ease;
}

.sidebar-header {
  padding: 20px 20px 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo-pill {
  background: #fff;
  border-radius: 6px;
  padding: 5px 8px;
  flex-shrink: 0;
}

.sidebar-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.sidebar-logo-text {
  display: flex;
  flex-direction: column;
}

.sidebar-logo-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.sidebar-logo-sub {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 1px;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--cmr-red-dim);
  color: var(--cmr-red);
}

.nav-item-accent {
  margin-top: 8px;
  background: var(--cmr-red-dim);
  color: var(--cmr-red) !important;
}

.nav-item-accent:hover {
  background: rgba(232,0,13,0.2) !important;
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 16px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.sidebar-user-avatar {
  width: 34px;
  height: 34px;
  background: var(--cmr-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-role {
  font-size: 11px;
  color: var(--text-muted);
}

.logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}
.logout-btn:hover { background: var(--bg-hover); color: var(--cmr-red); }
.logout-btn svg { width: 18px; height: 18px; }

/* ─── Main area ─────────────────────────────── */

.admin-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: none;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  height: var(--topbar-height);
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.topbar-menu-btn:hover { background: var(--bg-hover); }
.topbar-menu-btn svg  { width: 20px; height: 20px; }

.topbar-logo {
  height: 28px;
  width: auto;
  background: #fff;
  padding: 4px 6px;
  border-radius: 4px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99;
}

.admin-content {
  padding: 28px 32px;
  flex: 1;
}

/* ─── Page header bar ─────────────────────────── */

.page-header-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.page-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 3px;
}

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

/* ─── Flash messages ─────────────────────────── */

.flash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 13.5px;
  font-weight: 500;
  animation: flashIn 0.3s ease;
}

@keyframes flashIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.flash svg { width: 18px; height: 18px; flex-shrink: 0; }

.flash-success {
  background: rgba(34,197,94,0.12);
  border-bottom: 2px solid rgba(34,197,94,0.25);
  color: #4ade80;
}

.flash-error {
  background: rgba(232,0,13,0.1);
  border-bottom: 2px solid rgba(232,0,13,0.2);
  color: #f87171;
}

/* ─── Cards ──────────────────────────────────── */

.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.section-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.section-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.section-hint {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.link-muted {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
}
.link-muted:hover { color: var(--text-primary); }

/* ─── Stats grid ─────────────────────────────── */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg    { width: 20px; height: 20px; }
.stat-icon-red    { background: rgba(232,0,13,0.12); color: var(--cmr-red); }
.stat-icon-blue   { background: rgba(59,130,246,0.12); color: var(--blue); }
.stat-icon-green  { background: rgba(34,197,94,0.12); color: var(--green); }

.stat-content { display: flex; flex-direction: column; }
.stat-value   { font-size: 24px; font-weight: 800; color: var(--text-primary); line-height: 1; }
.stat-label   { font-size: 11.5px; color: var(--text-secondary); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; }

/* ─── Table ──────────────────────────────────── */

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -24px;
  padding: 0 24px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.data-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

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

.data-table tbody tr:hover td { background: rgba(255,255,255,0.02); }
.data-table tbody tr:last-child td { border-bottom: none; }

.td-release {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.table-cover {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.table-cover-empty {
  background: var(--bg-hover);
}

.td-release-name  { display: block; font-weight: 600; color: var(--text-primary); }
.td-slug          { display: block; font-size: 11px; color: var(--text-muted); font-family: monospace; }
.td-muted         { color: var(--text-secondary); }

.table-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.action-btn:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--border-light); }
.action-btn-danger:hover { color: var(--cmr-red); border-color: rgba(232,0,13,0.3); }

/* ─── Badges ─────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--bg-hover);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  text-transform: uppercase;
}

.badge-green { background: rgba(34,197,94,0.1); color: #4ade80; border-color: rgba(34,197,94,0.2); }
.badge-gray  { background: var(--bg-hover); color: var(--text-muted); }

/* ─── Forms ──────────────────────────────────── */

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group-full { grid-column: 1 / -1; }

.form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.form-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: var(--cmr-red);
  box-shadow: 0 0 0 2px rgba(232,0,13,0.15);
}

.form-input::placeholder { color: var(--text-muted); }

select.form-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  appearance: none;
}

.form-textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.5;
}

.form-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.input-password-wrapper {
  position: relative;
}

.input-password-wrapper .form-input {
  padding-right: 44px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.toggle-password:hover { color: var(--text-secondary); }
.eye-icon { width: 18px; height: 18px; }

/* ─── Buttons ─────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background: var(--cmr-red);
  color: #fff;
  border-color: var(--cmr-red);
}
.btn-primary:hover  { background: var(--cmr-red-hover); border-color: var(--cmr-red-hover); }

.btn-ghost {
  background: var(--bg-hover);
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-ghost:hover { color: var(--text-primary); border-color: var(--border-light); }

.btn-danger {
  background: rgba(232,0,13,0.1);
  color: #f87171;
  border-color: rgba(232,0,13,0.25);
}
.btn-danger:hover { background: rgba(232,0,13,0.2); }

.btn-full { width: 100%; }
.btn-lg   { padding: 13px 24px; font-size: 14.5px; }

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

/* ─── Search ─────────────────────────────────── */

.search-bar { margin-bottom: 16px; }

.search-input-wrapper {
  position: relative;
  display: flex;
  gap: 12px;
}

.search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  padding-left: 38px !important;
  flex: 1;
}

.search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 20px;
  line-height: 1;
}
.search-clear:hover { color: var(--text-primary); }

/* ─── Pagination ─────────────────────────────── */

.pagination {
  display: flex;
  gap: 6px;
  padding: 16px 24px 0;
  justify-content: center;
  flex-wrap: wrap;
}

.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-hover);
  color: var(--text-secondary);
  font-size: 13px;
  text-decoration: none;
  transition: all 0.15s;
}
.page-btn:hover, .page-btn.active {
  background: var(--cmr-red);
  color: #fff;
  border-color: var(--cmr-red);
}

/* ─── Create layout ─────────────────────────── */

.create-layout { display: flex; flex-direction: column; gap: 0; }

.create-columns {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  align-items: start;
}

.cover-preview-col  { position: sticky; top: 20px; }
.cover-preview-card { text-align: center; }

.cover-preview-wrapper {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-hover);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.cover-preview-img { width: 100%; height: 100%; object-fit: cover; }

.cover-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  padding: 20px;
  font-size: 12px;
}

.release-preview-info { margin-top: 12px; text-align: left; }
.preview-artist { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.preview-title  { font-size: 15px; font-weight: 700; color: var(--text-primary); margin: 4px 0; }
.preview-type   { font-size: 12px; color: var(--text-secondary); }

.spotify-fetch-area {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.step-badge {
  display: inline-flex;
  width: 24px;
  height: 24px;
  background: var(--cmr-red);
  color: #fff;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-right: 8px;
}

/* ─── Platform forms ─────────────────────────── */

.platforms-form-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.platform-form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.platform-form-row:last-child { border-bottom: none; }

.platform-form-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.platform-form-icon svg { width: 28px; height: 28px; }

.platform-form-fields { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.platform-form-label  { font-size: 12px; font-weight: 600; color: var(--text-secondary); }

/* ─── Show page ──────────────────────────────── */

.show-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}

.show-sidebar { position: sticky; top: 20px; }
.cover-show-card { text-align: center; }

.show-cover-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 16px;
}

.show-release-info { margin-bottom: 16px; }
.show-artist { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.show-title  { font-size: 16px; font-weight: 700; color: var(--text-primary); margin: 6px 0; }
.show-meta   { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 13px; color: var(--text-secondary); }

.public-url-box { text-align: left; }
.public-url-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-bottom: 6px; }
.public-url-row { display: flex; gap: 8px; }
.public-url-input { font-size: 12px; font-family: monospace; }
.copy-btn { flex-shrink: 0; padding: 10px 14px; font-size: 12.5px; }

.mini-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.mini-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-stat-value { font-size: 20px; font-weight: 800; color: var(--text-primary); }
.mini-stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.text-green { color: var(--green); }
.text-red   { color: var(--cmr-red); }

.meta-list { display: flex; flex-direction: column; gap: 0; }
.meta-row {
  display: flex;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.meta-row:last-child { border-bottom: none; }
.meta-row dt { width: 110px; flex-shrink: 0; color: var(--text-secondary); font-weight: 500; }
.meta-row dd { color: var(--text-primary); word-break: break-all; }
.meta-row code { font-family: monospace; font-size: 12px; background: var(--bg-hover); padding: 2px 6px; border-radius: 3px; }

.platforms-show-list { display: flex; flex-direction: column; gap: 0; }
.platform-show-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.platform-show-row:last-child { border-bottom: none; }
.platform-show-icon { width: 32px; height: 32px; flex-shrink: 0; display: flex; align-items: center; }
.platform-show-icon svg { width: 28px; height: 28px; }
.platform-show-info { flex: 1; min-width: 0; }
.platform-show-name { display: block; font-weight: 600; font-size: 13px; color: var(--text-primary); }
.platform-show-url  { display: block; font-size: 11px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.platform-show-url:hover { color: var(--text-secondary); }
.platform-show-clicks { text-align: right; flex-shrink: 0; }
.platform-click-count { display: block; font-weight: 700; font-size: 15px; color: var(--text-primary); }
.platform-click-label { display: block; font-size: 10px; color: var(--text-muted); text-transform: uppercase; }

.danger-zone  { border-color: rgba(232,0,13,0.2); }
.danger-title { color: var(--cmr-red); }

/* ─── Settings ───────────────────────────────── */

.settings-layout { max-width: 700px; }

/* ─── Empty state ─────────────────────────────── */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
}
.empty-state svg { opacity: 0.4; }
.empty-state a { color: var(--cmr-red); text-decoration: none; }
.empty-state a:hover { text-decoration: underline; }

/* ─── Form actions ───────────────────────────── */

.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 20px 0 4px;
}

/* ─── Misc helpers ───────────────────────────── */

.mb-16 { margin-bottom: 16px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }

a { color: inherit; }

code { font-family: 'SF Mono', 'Fira Code', monospace; }

/* ─── Responsive ─────────────────────────────── */

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay.open {
    display: block;
  }
  .admin-main {
    margin-left: 0;
  }
  .topbar {
    display: flex;
  }
  .create-columns,
  .show-layout {
    grid-template-columns: 1fr;
  }
  .cover-preview-col { position: static; }
  .admin-content { padding: 20px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .spotify-fetch-area { flex-direction: column; }
  .spotify-fetch-area .btn { width: 100%; }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; }
  .mini-stats-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 28px 24px; }
  .page-header-bar { flex-direction: column; }
}
