/* ============================================================
   UDMG Theme — shared design system
   Gold/black luxury label aesthetic, unified from the original
   artist-roster and suite prototypes.
   ============================================================ */

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

:root {
  --bg: #0a0906;
  --bg2: #0d0c09;
  --bg3: #111009;
  --gold: #c9a84c;
  --gold-l: #e8c97a;
  --gold-dim: #6a5428;
  --gold-xdim: #3a2e14;
  --cream: #f0e8d8;
  --muted: #6b6356;
  --muted2: #3a3530;
  --card-bg: #0f0e0b;
  --border: #1e1c16;
  --border2: #272318;
  --danger: #e74c3c;
  --success: #27ae60;

  --font-display: 'Bebas Neue', sans-serif;
  --font-serif: 'Cormorant Garamond', serif;
  --font-mono: 'DM Mono', monospace;

  --player-h: 84px;
  --nav-h: 76px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-serif);
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: var(--player-h);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 998;
  opacity: 0.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; }

::selection { background: var(--gold-dim); color: var(--cream); }

/* ── LAYOUT ── */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.eyebrow { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em; color: var(--gold-dim); text-transform: uppercase; margin-bottom: 8px; }
.section-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); letter-spacing: 0.08em; color: var(--cream); line-height: 1; }
.section-sub { font-style: italic; font-size: 15px; color: var(--muted); margin-top: 8px; }
.section-link { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--gold-dim); text-transform: uppercase; border-bottom: 1px solid var(--gold-xdim); padding-bottom: 3px; transition: all .2s; white-space: nowrap; }
.section-link:hover { color: var(--gold); border-color: var(--gold-dim); }

/* ── TOP NAV ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(10,9,6,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { font-family: var(--font-display); font-size: 26px; letter-spacing: 0.12em; color: var(--gold); }
.brand-sub { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.25em; color: var(--muted); text-transform: uppercase; display: none; }
@media (min-width: 640px) { .brand-sub { display: block; } }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); padding: 8px 14px;
  border-radius: 3px; transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--gold-l); background: rgba(201,168,76,0.06); }
.main-nav a.active { color: var(--gold); }
.nav-admin-link {
  border: 1px solid var(--gold-dim) !important; color: var(--gold-dim) !important; margin-left: 8px;
}
.nav-admin-link:hover { border-color: var(--gold) !important; color: var(--gold) !important; background: none !important; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border2); color: var(--gold);
  width: 40px; height: 40px; border-radius: 4px; font-size: 18px; cursor: pointer;
}
@media (max-width: 900px) {
  .main-nav { position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--bg2);
    border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch;
    padding: 10px; gap: 2px; display: none; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 16px; }
  .nav-toggle { display: block; }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 13px 26px; border-radius: 3px; cursor: pointer; border: 1px solid transparent;
  transition: all .2s; white-space: nowrap;
}
.btn-gold { background: var(--gold); color: #0a0906; font-weight: 700; }
.btn-gold:hover { background: var(--gold-l); }
.btn-outline { border-color: var(--gold-dim); color: var(--gold-dim); background: none; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { background: none; color: var(--muted); border: none; }
.btn-ghost:hover { color: var(--cream); }
.btn-danger { border-color: rgba(231,76,60,0.4); color: var(--danger); background: none; }
.btn-danger:hover { background: rgba(231,76,60,0.1); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-sm { padding: 8px 16px; font-size: 9px; }
.btn-block { width: 100%; }

/* ── BADGES ── */
.badge { display: inline-block; font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.18em; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; }
.badge-new { background: var(--gold); color: var(--bg); }
.badge-wing { padding: 4px 10px; border-radius: 100px; font-weight: 600; }
.badge-soul     { background: #2c2650; color: #b6a9f2; }
.badge-urban    { background: #123a56; color: #a9d3f2; }
.badge-spirit   { background: #1f3a10; color: #b9e29a; }
.badge-pavement { background: #4a2513; color: #f0b591; }
.badge-global   { background: #4a3608; color: #f0cd7a; }

/* ── CARDS ── */
.card { background: var(--card-bg); border: 1px solid var(--border); transition: border-color .2s, background .2s; }
.card:hover { border-color: var(--border2); background: #121109; }

.artist-card { position: relative; display: flex; flex-direction: column; overflow: hidden; }
.artist-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 0; background: var(--gold); transition: height .4s ease; z-index: 2; }
.artist-card:hover::before { height: 100%; }
.artist-cover-wrap { aspect-ratio: 1/1; overflow: hidden; background: #050403; position: relative; }
.artist-cover-wrap img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.88) contrast(1.05) saturate(.95); transition: filter .4s, transform .6s; }
.artist-card:hover .artist-cover-wrap img { filter: brightness(1) contrast(1.08) saturate(1.1); transform: scale(1.04); }
.artist-cover-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 42px; letter-spacing: .05em; color: var(--gold-dim); }
.artist-card-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.artist-card-name { font-family: var(--font-display); font-size: 26px; letter-spacing: 0.06em; color: var(--cream); margin-bottom: 8px; transition: color .2s; }
.artist-card:hover .artist-card-name { color: var(--gold-l); }
.artist-card-sig { font-style: italic; font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 14px; }
.artist-card-albums { margin-top: auto; display: flex; flex-direction: column; gap: 5px; }
.artist-card-albums li { font-size: 13px; color: var(--cream); opacity: .78; display: flex; gap: 8px; align-items: flex-start; }
.artist-card-albums li::before { content: '—'; color: var(--gold-dim); font-family: var(--font-mono); font-size: 10px; margin-top: 3px; }

/* ── FORMS ── */
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.22em; color: var(--gold-dim); text-transform: uppercase; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; background: rgba(255,255,255,0.03); border: 1px solid var(--border); color: var(--cream);
  font-family: var(--font-serif); font-size: 15px; padding: 11px 14px; outline: none; border-radius: 3px;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold-dim); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .5; }
.field textarea { resize: vertical; min-height: 90px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-hint { font-family: var(--font-mono); font-size: 9px; color: var(--muted); margin-top: 6px; letter-spacing: .05em; }
.checkbox-row { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--cream); text-transform: uppercase; cursor: pointer; }
.checkbox-row input { width: 16px; height: 16px; accent-color: var(--gold); }

/* ── FOOTER ── */
.site-footer { text-align: center; padding: 60px 40px 40px; border-top: 1px solid var(--border); margin-top: 40px; position: relative; }
.site-footer::before { content: ''; position: absolute; top: -1px; left: 50%; transform: translateX(-50%); width: 60px; height: 2px; background: var(--gold); }
.site-footer p { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; color: var(--muted); text-transform: uppercase; }
.site-footer p + p { margin-top: 8px; }
.footer-links { display: flex; gap: 20px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.footer-links a { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.15em; color: var(--gold-dim); text-transform: uppercase; }
.footer-links a:hover { color: var(--gold); }

/* ── PLAYER BAR (global, persistent) ── */
.player-bar {
  position: fixed; bottom: 0; left: 0; right: 0; height: var(--player-h); z-index: 200;
  background: rgba(9,8,7,0.98); backdrop-filter: blur(10px); border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px; padding: 0 20px;
}
.player-bar.empty { justify-content: center; }
.player-bar.empty .player-empty-msg { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.player-art { width: 52px; height: 52px; flex-shrink: 0; border-radius: 2px; overflow: hidden; background: var(--border); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); color: var(--gold-dim); font-size: 18px; }
.player-art img { width: 100%; height: 100%; object-fit: cover; }
.player-meta { flex: 0 0 170px; min-width: 0; }
.player-title { font-size: 13px; font-weight: 700; color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-artist { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-controls { display: flex; align-items: center; gap: 12px; }
.player-ctrl { background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px; display: flex; transition: color .2s; }
.player-ctrl:hover { color: var(--cream); }
.player-ctrl.pp { width: 38px; height: 38px; border: 1.5px solid var(--gold-dim); border-radius: 50%; color: var(--gold); justify-content: center; align-items: center; transition: all .2s; }
.player-ctrl.pp:hover { border-color: var(--gold); background: rgba(201,168,76,.08); }
.player-progress { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 100px; }
.player-time { font-family: var(--font-mono); font-size: 9px; color: var(--muted); min-width: 32px; }
.player-bar-track { flex: 1; height: 3px; background: var(--border2); border-radius: 2px; cursor: pointer; position: relative; }
.player-bar-fill { height: 100%; background: var(--gold); border-radius: 2px; width: 0%; }
.player-vol { display: none; align-items: center; gap: 6px; color: var(--muted); flex: 0 0 90px; }
@media (min-width: 720px) { .player-vol { display: flex; } }
input[type=range] { -webkit-appearance: none; height: 3px; background: var(--border2); border-radius: 2px; cursor: pointer; width: 70px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-dim); cursor: pointer; }
@media (max-width: 640px) { .player-meta { flex: 0 0 90px; } .player-progress { display: none; } }

/* ── MISC ── */
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1px; background: var(--border); }
.grid-auto.gapped { gap: 18px; background: none; }
.divider { height: 1px; background: var(--border); margin: 40px 0; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { font-size: 12px; font-weight: 500; padding: 7px 16px; border-radius: 100px; border: 1px solid var(--border2); background: transparent; color: var(--muted); cursor: pointer; transition: all .15s; letter-spacing: .02em; font-family: var(--font-mono); text-transform: uppercase; font-size: 10px; }
.pill:hover { border-color: var(--gold-dim); color: var(--cream); }
.pill.active { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.search-input-wrap { position: relative; }
.search-input-wrap .search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-input-wrap input { padding-left: 40px !important; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }
.toast { position: fixed; bottom: calc(var(--player-h) + 20px); left: 50%; transform: translateX(-50%); background: rgba(201,168,76,0.15); border: 1px solid var(--gold-dim); color: var(--gold-l); font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; padding: 12px 22px; border-radius: 4px; z-index: 500; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; white-space: nowrap; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }

/* Fade-in utility */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .6s ease both; }
