:root {
  --bg: #0b0f14;
  --surface: #121822;
  --surface-2: #18212f;
  --border: #243042;
  --text: #f3f7fa;
  --muted: #93a4b8;
  --accent: #22e58b;
  --accent-2: #1ec8ff;
  --danger: #ff5c72;
  --warn: #ffb84d;
  --radius: 16px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  padding-bottom: 118px;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 18px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 15, 20, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--text); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }

.nav-links { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.trial-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(255, 184, 77, 0.45);
  background: rgba(255, 184, 77, 0.12);
  color: var(--warn);
  cursor: pointer;
}

.trial-chip.unlocked {
  border-color: rgba(34, 229, 139, 0.45);
  background: rgba(34, 229, 139, 0.12);
  color: var(--accent);
}

.hero { padding: 34px 0 26px; }

.hero-card {
  background: linear-gradient(145deg, #121a25 0%, #0f1620 65%, #0d2224 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 229, 139, 0.12);
  border: 1px solid rgba(34, 229, 139, 0.35);
  color: var(--accent);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero h1 { font-size: clamp(1.75rem, 3.5vw, 2.65rem); line-height: 1.15; margin-bottom: 12px; }
.hero p { color: var(--muted); font-size: 0.98rem; margin-bottom: 20px; max-width: 58ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.93rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.15s ease;
}

.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn:active { transform: scale(0.98); }

.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #061317; }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-danger { background: rgba(255, 92, 114, 0.14); color: var(--danger); border-color: rgba(255, 92, 114, 0.4); }

.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat-box { background: rgba(11, 15, 20, 0.65); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.stat-value { font-size: 1.3rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }

.hero-art { text-align: center; }
.hero-art img { width: 204px; height: 204px; border-radius: 34px; box-shadow: 0 20px 60px rgba(30, 200, 255, 0.18); }
.hero-meta { margin-top: 12px; font-size: 0.82rem; color: var(--muted); }

.section { margin-top: 26px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section h2 { font-size: 1.25rem; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; }

.input {
  flex: 1;
  min-width: 210px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 0.95rem;
}

.input:focus { outline: none; border-color: var(--accent-2); }
.input:read-only { opacity: 0.78; cursor: not-allowed; }
.status-msg { margin-top: 10px; font-size: 0.88rem; color: var(--muted); min-height: 20px; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tab-btn { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-weight: 600; cursor: pointer; }
.tab-btn.active { background: var(--accent); color: #061317; border-color: var(--accent); }

.track-list { display: grid; gap: 10px; }
.track-row { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.track-cover { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: #0b0f14; flex-shrink: 0; }
.track-info { flex: 1; min-width: 0; }
.track-title { font-weight: 700; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-artist { font-size: 0.82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-actions { display: flex; gap: 8px; flex-shrink: 0; }

.icon-btn { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 7px 12px; font-size: 0.82rem; font-weight: 600; cursor: pointer; }
.icon-btn.liked { border-color: var(--accent); color: var(--accent); }

.upload-box { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(4, 8, 13, 0.84);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  max-height: 92vh;
  overflow-y: auto;
}

.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.modal-card h2 { font-size: 1.3rem; }
.modal-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }

.google-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 14px; text-align: center; }
.google-btn-host { display: flex; justify-content: center; margin-top: 10px; min-height: 42px; }

.verified-badge {
  background: rgba(34, 229, 139, 0.12);
  border: 1px solid rgba(34, 229, 139, 0.4);
  color: var(--accent);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.86rem;
  margin-bottom: 12px;
}

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 0.84rem; color: var(--muted); }
.checkbox-row input { margin-top: 3px; }
.divider-text { text-align: center; color: var(--muted); font-size: 0.82rem; margin: 14px 0; }

.player-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(14, 20, 29, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
}

.player-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.player-meta { display: flex; align-items: center; gap: 10px; min-width: 200px; flex: 1; }
.player-meta img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.player-controls { display: flex; align-items: center; gap: 8px; }
audio#audioEngine { flex: 1.4; min-width: 220px; height: 36px; }

.dpdp-bar {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--muted);
}

.footer {
  margin-top: 28px;
  padding: 20px 0 10px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--muted);
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.hidden { display: none !important; }

.admin-wrap { max-width: 960px; margin: 36px auto; padding: 0 18px; }
.stack { display: grid; gap: 12px; }
.table-wrap { overflow-x: auto; }
.audit-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.audit-table th, .audit-table td { border-bottom: 1px solid var(--border); padding: 8px 10px; text-align: left; white-space: nowrap; }

@media (max-width: 768px) {
  .hero-card { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
