/* ============================================================
   David McMullen Music — Design System
   Aesthetic: black + white + electric blue — matched to the MCMULLEN logo
   ============================================================ */

:root {
  /* Palette — matched to the MCMULLEN logo: black, white, electric blue */
  --bg:        #0a0c11;
  --bg-2:      #0c0f16;
  --surface:   #13161f;
  --surface-2: #191d28;
  --line:      rgba(220, 230, 245, 0.10);
  --line-2:    rgba(220, 230, 245, 0.17);

  --ink:       #eef2f8;   /* cool off-white */
  --ink-soft:  #b9c3d4;
  --ink-mute:  #7e8799;

  --brass:     #3878f0;   /* primary accent — logo electric blue */
  --brass-2:   #6da4ff;
  --blue:      #6f93a8;   /* secondary — smoky blues (human credits) */
  --blue-deep: #3f5e7a;
  --rust:      #5b6b85;

  --ok:        #7faf86;
  --warn:      #d99a4e;
  --err:       #d96b5a;

  /* Type */
  --display: "Fraunces", Georgia, serif;
  --body:    "Archivo", system-ui, sans-serif;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --shadow: 0 24px 60px -28px rgba(0,0,0,0.85);
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* warm atmospheric glow + grain */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 540px at 78% -8%, rgba(56,120,240,0.16), transparent 60%),
    radial-gradient(800px 600px at 6% 108%, rgba(63,94,122,0.16), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; opacity: 0.05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Type ---------- */
h1,h2,h3 { font-family: var(--display); font-weight: 600; line-height: 1.02; letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--body); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--brass);
}
.lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 56ch; }

/* ---------- Top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(16,12,14,0.72);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .disc {
  width: 30px; height: 30px; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--brass) 0 14%, transparent 15%),
    repeating-radial-gradient(circle at 50% 50%, #2a2320 0 2px, #15110f 2px 4px);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.brand b { font-family: var(--display); font-size: 1.28rem; font-weight: 600; letter-spacing: -0.01em; }
.brand b span { color: var(--brass); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 0.92rem; color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.admin-link { color: var(--ink-mute); }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 1.5rem; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--body); font-weight: 600; font-size: 0.95rem;
  padding: 13px 22px; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap;
}
.btn-primary { background: var(--brass); color: #ffffff; box-shadow: 0 12px 30px -12px rgba(56,120,240,0.6); }
.btn-primary:hover { transform: translateY(-2px); background: var(--brass-2); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-2); }

/* ---------- Hero ---------- */
.hero { padding: 92px 0 64px; position: relative; }
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 { font-size: clamp(3rem, 8vw, 6.4rem); }
.hero h1 em { font-style: italic; color: var(--brass-2); }
.hero .lede { margin: 26px 0 34px; font-size: 1.28rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 40px; display: flex; gap: 30px; flex-wrap: wrap; color: var(--ink-mute); font-size: 0.86rem; }
.hero-meta b { color: var(--ink-soft); font-weight: 600; }

/* staggered reveal */
.reveal { opacity: 0; transform: translateY(18px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.d1{animation-delay:.05s}.d2{animation-delay:.15s}.d3{animation-delay:.25s}.d4{animation-delay:.35s}.d5{animation-delay:.45s}

/* ---------- Section ---------- */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.section-head p { color: var(--ink-soft); max-width: 52ch; margin-top: 8px; }

/* ---------- Song grid / rows ---------- */
.songs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 18px; }
.song-card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px; transition: transform .2s, border-color .2s; position: relative; overflow: hidden;
}
.song-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.song-card .art {
  aspect-ratio: 1; border-radius: var(--r-sm); margin-bottom: 16px; position: relative;
  background:
    radial-gradient(circle at 50% 50%, rgba(56,120,240,0.25) 0 12%, transparent 13%),
    repeating-radial-gradient(circle at 50% 50%, #19212f 0 3px, #0d1320 3px 6px);
  box-shadow: inset 0 0 0 1px var(--line-2);
  display: grid; place-items: center;
}
.song-card .art span { font-family: var(--display); font-size: 1.4rem; color: var(--ink-mute); }
.song-card h3 { font-size: 1.22rem; margin-bottom: 4px; }
.song-card .sub { font-size: 0.82rem; color: var(--ink-mute); margin-bottom: 12px; }
.song-card .row-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.8rem; color: var(--ink-soft); }

.tag { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 9px; border-radius: 100px; border: 1px solid var(--line-2); color: var(--ink-soft); }
.tag.ai { color: var(--brass-2); border-color: rgba(56,120,240,0.5); background: rgba(56,120,240,0.08); }
.tag.human { color: var(--blue); border-color: rgba(111,147,168,0.45); }
.tag.dur { color: var(--ink-mute); }

/* tracklist */
.album-spotlight {
  display: grid; grid-template-columns: 320px 1fr; gap: 40px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; box-shadow: var(--shadow);
}
.album-cover {
  aspect-ratio: 1; border-radius: var(--r); position: relative; align-self: start;
  background:
    radial-gradient(circle at 50% 50%, var(--brass) 0 7%, transparent 8%),
    repeating-radial-gradient(circle at 50% 50%, #18202e 0 4px, #0a0e15 4px 8px);
  box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow);
}
.album-cover .label {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px;
}
.album-cover .label b { font-family: var(--display); font-size: 1.5rem; }
.tracklist { list-style: none; }
.tracklist li {
  display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 14px;
  padding: 11px 8px; border-bottom: 1px solid var(--line); transition: background .15s;
}
.tracklist li:hover { background: rgba(220,230,245,0.03); }
.tracklist .n { color: var(--ink-mute); font-variant-numeric: tabular-nums; font-size: 0.85rem; }
.tracklist .t { font-weight: 500; }
.tracklist .d { color: var(--ink-mute); font-variant-numeric: tabular-nums; font-size: 0.85rem; }

/* ---------- Feature banner (Pitch Room teaser) ---------- */
.pitch-banner {
  border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 48px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(56,120,240,0.14), transparent 65%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  position: relative; overflow: hidden;
}
.pitch-banner .eyebrow { margin-bottom: 14px; }
.pitch-banner h2 { font-size: clamp(1.8rem, 4vw, 3rem); max-width: 18ch; }
.pitch-banner p { margin: 18px 0 26px; max-width: 56ch; color: var(--ink-soft); }
.soon { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); border: 1px dashed rgba(56,120,240,0.5); padding: 8px 14px; border-radius: 100px; display: inline-block; }

/* ---------- Meet Dave teaser ---------- */
.meet { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.meet .portrait {
  aspect-ratio: 4/5; border-radius: var(--r-lg); border: 1px solid var(--line-2);
  background: repeating-linear-gradient(135deg, #141b28 0 14px, #0d1320 14px 28px);
  display: grid; place-items: center; color: var(--ink-mute); font-family: var(--display); font-size: 1.2rem;
}
.meet h2 { font-size: clamp(2rem,4vw,2.8rem); margin-bottom: 16px; }
.meet p { color: var(--ink-soft); margin-bottom: 14px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 54px 0 70px; }
.footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.footer h4 { font-family: var(--display); font-size: 1.4rem; margin-bottom: 10px; }
.footer p { color: var(--ink-mute); font-size: 0.9rem; max-width: 38ch; }
.footer .col h5 { font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 14px; }
.footer .col a { display: block; color: var(--ink-soft); padding: 5px 0; font-size: 0.92rem; }
.footer .col a:hover { color: var(--brass-2); }
.footer .fine { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 8px; color: var(--ink-mute); font-size: 0.8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- States ---------- */
.loading, .empty { color: var(--ink-mute); padding: 30px 0; font-style: italic; }

/* ---------- Admin ---------- */
.admin-shell { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }
.auth-card {
  width: 100%; max-width: 420px; background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 38px; box-shadow: var(--shadow);
}
.auth-card .disc-lg { width: 46px; height: 46px; border-radius: 50%; margin-bottom: 20px;
  background: radial-gradient(circle at 50% 50%, var(--brass) 0 14%, transparent 15%), repeating-radial-gradient(circle at 50% 50%, #2a2320 0 2px, #15110f 2px 4px); box-shadow: inset 0 0 0 1px var(--line-2); }
.auth-card h1 { font-size: 1.8rem; margin-bottom: 6px; }
.auth-card p.sub { color: var(--ink-mute); font-size: 0.9rem; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 7px; }
.field input {
  width: 100%; background: var(--bg); border: 1px solid var(--line-2); color: var(--ink);
  padding: 13px 14px; border-radius: var(--r-sm); font-family: var(--body); font-size: 1rem;
}
.field input:focus { outline: none; border-color: var(--brass); }
.auth-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 0.88rem; color: var(--ink-mute); }
.auth-switch a { color: var(--brass-2); cursor: pointer; }
.msg { padding: 12px 14px; border-radius: var(--r-sm); font-size: 0.88rem; margin-bottom: 16px; }
.msg.ok  { background: rgba(127,175,134,0.12); border: 1px solid rgba(127,175,134,0.4); color: var(--ok); }
.msg.err { background: rgba(217,107,90,0.12); border: 1px solid rgba(217,107,90,0.4); color: var(--err); }
.msg.info{ background: rgba(111,147,168,0.12); border: 1px solid rgba(111,147,168,0.4); color: var(--blue); }

/* admin dashboard */
.dash { max-width: 1100px; margin: 0 auto; padding: 30px 24px 80px; }
.dash-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.dash-top .brand b { font-size: 1.3rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 16px; margin-bottom: 36px; }
.stat { background: linear-gradient(180deg,var(--surface),var(--surface-2)); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.stat .num { font-family: var(--display); font-size: 2.4rem; color: var(--brass-2); line-height: 1; }
.stat .lbl { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); margin-top: 8px; }
.panel { background: linear-gradient(180deg,var(--surface),var(--bg-2)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin-bottom: 24px; }
.panel h2 { font-size: 1.4rem; margin-bottom: 4px; }
.panel .hint { color: var(--ink-mute); font-size: 0.86rem; margin-bottom: 18px; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data th { text-align: left; color: var(--ink-mute); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
table.data td { padding: 11px 12px; border-bottom: 1px solid var(--line); }
table.data tr:hover td { background: rgba(220,230,245,0.03); }
.pill { font-size: 0.7rem; padding: 2px 9px; border-radius: 100px; border: 1px solid var(--line-2); }
.pill.pub { color: var(--ok); border-color: rgba(127,175,134,0.4); }
.pill.draft { color: var(--warn); border-color: rgba(217,154,78,0.4); }
.soon-note { color: var(--ink-mute); font-size: 0.86rem; border: 1px dashed var(--line-2); border-radius: var(--r); padding: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 10px 0; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 28px; width: 100%; }
  .nav-toggle { display: block; }
  .album-spotlight { grid-template-columns: 1fr; }
  .meet { grid-template-columns: 1fr; }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer .wrap { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 40px; }
}

/* ============================================================
   Phase 2 — audio player + play buttons + song page + admin studio
   ============================================================ */

/* play buttons */
.play-btn {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  border: 1px solid var(--brass); background: rgba(56,120,240,0.12); color: var(--brass-2);
  cursor: pointer; font-size: 0.82rem; display: inline-grid; place-items: center;
  transition: transform .15s, background .2s; padding-left: 2px;
}
.play-btn:hover { transform: scale(1.08); background: var(--brass); color: #ffffff; }
.play-btn.playing { background: var(--brass); color: #ffffff; padding-left: 0; }
.play-soon { width: 38px; height: 38px; border-radius: 50%; flex: none; display: inline-grid; place-items: center;
  border: 1px dashed var(--line-2); color: var(--ink-mute); font-size: 0.9rem; }
.song-card .card-foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.tracklist li .play-cell { display: flex; align-items: center; gap: 12px; }
.tracklist .play-btn, .tracklist .play-soon { width: 30px; height: 30px; font-size: 0.7rem; }

/* sticky player bar */
.dm-player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: flex; align-items: center; gap: 16px; padding: 12px 22px;
  background: rgba(10,13,18,0.92); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-2); box-shadow: 0 -12px 40px -18px rgba(0,0,0,0.8);
  transform: translateY(0); transition: transform .3s;
}
.dm-player.hidden { transform: translateY(120%); }
.dmp-art { width: 42px; height: 42px; border-radius: 8px; flex: none; display: grid; place-items: center;
  background: repeating-radial-gradient(circle at 50% 50%, #18202e 0 3px, #0a0e15 3px 6px); color: var(--brass); }
.dmp-toggle { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--brass); color: #ffffff;
  cursor: pointer; font-size: 0.9rem; flex: none; }
.dmp-main { flex: 1; min-width: 0; }
.dmp-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 5px; }
.dmp-bar input[type=range] { width: 100%; accent-color: var(--brass); cursor: pointer; }
.dmp-time { font-variant-numeric: tabular-nums; font-size: 0.82rem; color: var(--ink-mute); flex: none; }
.dmp-close { background: none; border: 0; color: var(--ink-mute); font-size: 1.4rem; cursor: pointer; flex: none; }
.dmp-close:hover { color: var(--ink); }
body { padding-bottom: 0; }

/* song landing page */
.song-hero { display: grid; grid-template-columns: 360px 1fr; gap: 48px; padding: 70px 0 40px; align-items: start; }
.song-hero .cover { aspect-ratio: 1; border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid var(--line-2);
  background: repeating-radial-gradient(circle at 50% 50%, #18202e 0 4px, #0a0e15 4px 8px); display: grid; place-items: center; overflow: hidden; }
.song-hero .cover img { width: 100%; height: 100%; object-fit: cover; }
.song-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.song-hero .credits { margin: 18px 0; color: var(--ink-soft); }
.song-hero .credits .ai { color: var(--brass-2); }
.song-hero .big-play { margin: 22px 0; }
.song-hero .lyrics { margin-top: 30px; white-space: pre-wrap; color: var(--ink-soft); line-height: 1.9; border-top: 1px solid var(--line); padding-top: 24px; }
body.theme-blues { --brass: #46a6dc; --brass-2: #82c8ee; }
body.theme-warm  { --brass: #6f7ce6; --brass-2: #9aa6ff; }
@media (max-width: 760px) { .song-hero { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- admin studio (Phase 2) ---------- */
.admin-tabs { display: flex; gap: 6px; margin-bottom: 26px; flex-wrap: wrap; }
.admin-tabs button { background: transparent; border: 1px solid var(--line); color: var(--ink-soft);
  padding: 9px 18px; border-radius: 100px; cursor: pointer; font-family: var(--body); font-size: 0.9rem; transition: all .2s; }
.admin-tabs button:hover { border-color: var(--line-2); color: var(--ink); }
.admin-tabs button.active { background: var(--brass); border-color: var(--brass); color: #ffffff; font-weight: 600; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .search { background: var(--bg); border: 1px solid var(--line-2); color: var(--ink); padding: 10px 14px; border-radius: var(--r-sm); min-width: 220px; font-family: var(--body); }
.btn-sm { padding: 9px 16px; font-size: 0.86rem; }
.icon-btn { background: none; border: 1px solid var(--line-2); color: var(--ink-soft); border-radius: 8px; padding: 6px 11px; cursor: pointer; font-size: 0.82rem; margin-left: 6px; }
.icon-btn:hover { border-color: var(--brass); color: var(--brass-2); }
.icon-btn.danger:hover { border-color: var(--err); color: var(--err); }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(6,9,14,0.7); backdrop-filter: blur(4px); z-index: 90; display: none; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 40px 16px; }
.modal-bg.open { display: flex; }
.modal { width: 100%; max-width: 640px; background: linear-gradient(180deg,var(--surface),var(--bg-2)); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 30px; }
.modal h2 { font-size: 1.7rem; margin-bottom: 4px; }
.modal .sub { color: var(--ink-mute); font-size: 0.9rem; margin-bottom: 22px; }
.modal .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal label { display: block; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); margin: 14px 0 6px; }
.modal input[type=text], .modal input[type=number], .modal textarea, .modal select {
  width: 100%; background: var(--bg); border: 1px solid var(--line-2); color: var(--ink);
  padding: 11px 13px; border-radius: var(--r-sm); font-family: var(--body); font-size: 0.96rem; }
.modal textarea { min-height: 90px; resize: vertical; }
.modal input:focus, .modal textarea:focus, .modal select:focus { outline: none; border-color: var(--brass); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }

/* dropzone */
.dropzone { border: 2px dashed var(--line-2); border-radius: var(--r); padding: 26px; text-align: center; color: var(--ink-mute); cursor: pointer; transition: all .2s; }
.dropzone:hover, .dropzone.drag { border-color: var(--brass); background: rgba(56,120,240,0.06); color: var(--ink-soft); }
.dropzone b { color: var(--brass-2); }
.dz-progress { height: 5px; background: var(--line); border-radius: 100px; margin-top: 12px; overflow: hidden; display: none; }
.dz-progress.show { display: block; }
.dz-progress span { display: block; height: 100%; background: var(--brass); width: 0%; transition: width .2s; }
.dz-file { margin-top: 10px; font-size: 0.85rem; color: var(--ok); }

/* placement prompt block */
.placement { border: 1px solid rgba(56,120,240,0.4); background: rgba(56,120,240,0.06); border-radius: var(--r); padding: 18px; margin-top: 20px; }
.placement h4 { font-family: var(--display); font-size: 1.1rem; color: var(--brass-2); margin-bottom: 4px; }
.placement p.q { font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 12px; }
.checkrow { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 0.92rem; }
.checkrow input { width: auto; }
.coll-pick { max-height: 140px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px; margin-top: 6px; }

/* credit chips */
.credits-edit { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.credit-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 100px; border: 1px solid var(--line-2); font-size: 0.82rem; }
.credit-chip.ai { border-color: rgba(56,120,240,0.5); color: var(--brass-2); }
.credit-chip.human { border-color: rgba(111,147,168,0.45); color: var(--blue); }
.credit-chip button { background: none; border: 0; color: inherit; cursor: pointer; font-size: 1rem; line-height: 1; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%); z-index: 120;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink); padding: 14px 22px; border-radius: 100px;
  box-shadow: var(--shadow); transition: transform .3s; font-size: 0.92rem; max-width: 90vw; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.ok { border-color: rgba(127,175,134,0.5); }
.toast.err { border-color: rgba(217,107,90,0.5); }

.sortable-list { list-style: none; }
.sortable-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 7px; background: var(--surface); }
.sortable-list li.drag-over { border-color: var(--brass); }
.sortable-list .grab { cursor: grab; color: var(--ink-mute); }
.sortable-list .t { flex: 1; }

/* card cover images + title links */
.song-card .art img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.song-card h3 a { transition: color .2s; }
.song-card h3 a:hover { color: var(--brass-2); }
.tracklist .t a:hover { color: var(--brass-2); }

/* ============================================================
   Phase 3 — The Pitch Room
   ============================================================ */
.pitch-stats { display: flex; gap: 30px; flex-wrap: wrap; margin: 30px 0 10px; }
.pitch-stats .ps { }
.pitch-stats .ps b { font-family: var(--display); font-size: 2.6rem; color: var(--brass-2); display: block; line-height: 1; }
.pitch-stats .ps span { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }

.pitch-list { display: grid; gap: 18px; }
.pitch-card {
  display: grid; grid-template-columns: 86px 1fr auto; gap: 22px; align-items: center;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 26px;
  transition: transform .2s, border-color .2s; position: relative; overflow: hidden;
}
.pitch-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.pitch-card .target {
  width: 86px; height: 86px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden;
  background: repeating-radial-gradient(circle at 50% 50%, #18202e 0 3px, #0a0e15 3px 6px);
  border: 1px solid var(--line-2); font-family: var(--display); font-size: 1.6rem; color: var(--brass); text-align: center;
}
.pitch-card .target img { width: 100%; height: 100%; object-fit: cover; }
.pitch-card .for { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); }
.pitch-card .for b { color: var(--brass-2); }
.pitch-card h3 { font-size: 1.5rem; margin: 4px 0; }
.pitch-card h3 a:hover { color: var(--brass-2); }
.pitch-card .hl { color: var(--ink-soft); font-style: italic; }
.pitch-card .cc { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }

.status-badge { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 12px; border-radius: 100px; border: 1px solid var(--line-2); white-space: nowrap; }
.status-badge.pitching { color: var(--brass-2); border-color: rgba(56,120,240,0.5); background: rgba(56,120,240,0.08); }
.status-badge.passed   { color: var(--ink-mute); }
.status-badge.placed   { color: var(--ok); border-color: rgba(127,175,134,0.5); background: rgba(127,175,134,0.08); }

/* individual pitch page */
.pitch-page { padding: 70px 0 40px; }
.pitch-page .for-line { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 18px; }
.pitch-page .for-line b { color: var(--brass-2); }
.pitch-page h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 18ch; }
.pitch-page .pitch-grid { display: grid; grid-template-columns: 320px 1fr; gap: 46px; margin-top: 40px; align-items: start; }
.pitch-page .cover { aspect-ratio: 1; border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid var(--line-2); overflow: hidden;
  background: repeating-radial-gradient(circle at 50% 50%, #18202e 0 4px, #0a0e15 4px 8px); display: grid; place-items: center; }
.pitch-page .cover img { width: 100%; height: 100%; object-fit: cover; }
.pitch-page .body { white-space: pre-wrap; color: var(--ink-soft); line-height: 1.9; font-size: 1.08rem; }
.pitch-page .rep-cta { margin-top: 34px; border: 1px solid var(--line-2); border-radius: var(--r); padding: 22px 24px; background: rgba(56,120,240,0.05); }
.pitch-page .rep-cta b { color: var(--brass-2); }
@media (max-width: 760px) { .pitch-page .pitch-grid { grid-template-columns: 1fr; gap: 24px; } .pitch-card { grid-template-columns: 64px 1fr; } .pitch-card .target { width: 64px; height: 64px; font-size: 1.2rem; } .pitch-card .cc { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; } }

/* ============================================================
   Phase 4 — logo, bookstore, book detail, library
   ============================================================ */
.brand-logo { height: 44px; border-radius: 7px; display: block; }

/* bookstore grid */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 26px; }
.book-card { display: block; transition: transform .2s; }
.book-card:hover { transform: translateY(-5px); }
.book-card .bcover {
  aspect-ratio: 2/3; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line-2); background: var(--surface); display: grid; place-items: center; position: relative;
}
.book-card .bcover img { width: 100%; height: 100%; object-fit: cover; }
.book-card .bcover .ph { font-family: var(--display); color: var(--ink-mute); padding: 20px; text-align: center; }
.book-card .price-badge { position: absolute; top: 10px; right: 10px; background: rgba(16,12,14,0.85); backdrop-filter: blur(6px); border: 1px solid var(--line-2); padding: 5px 11px; border-radius: 100px; font-size: 0.78rem; font-weight: 600; }
.book-card .price-badge.free { color: var(--ok); }
.book-card .price-badge.owned { color: var(--brass-2); border-color: rgba(56,120,240,0.5); }
.book-card h3 { font-size: 1.12rem; margin-top: 14px; line-height: 1.25; }
.book-card .by { font-size: 0.82rem; color: var(--ink-mute); margin-top: 3px; }

/* book detail */
.book-detail { display: grid; grid-template-columns: 340px 1fr; gap: 50px; padding: 70px 0 40px; align-items: start; }
.book-detail .bcover { aspect-ratio: 2/3; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line-2); background: var(--surface); position: sticky; top: 96px; }
.book-detail .bcover img { width: 100%; height: 100%; object-fit: cover; }
.book-detail h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.book-detail .by { color: var(--ink-soft); margin: 10px 0 18px; font-size: 1.05rem; }
.book-detail .meta-row { display: flex; gap: 22px; flex-wrap: wrap; color: var(--ink-mute); font-size: 0.86rem; margin: 18px 0; }
.book-detail .blurb { color: var(--ink-soft); line-height: 1.85; white-space: pre-wrap; font-size: 1.05rem; }
.book-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 26px 0; }
.book-cta .price { font-family: var(--display); font-size: 2rem; color: var(--brass-2); }
.book-cta .owned-tag { color: var(--ok); font-weight: 600; }

/* library */
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 20px; }
.lib-item { display: flex; gap: 16px; background: linear-gradient(180deg,var(--surface),var(--surface-2)); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.lib-item .lc { width: 76px; aspect-ratio: 2/3; border-radius: 8px; overflow: hidden; flex: none; background: var(--bg); border: 1px solid var(--line-2); }
.lib-item .lc img { width: 100%; height: 100%; object-fit: cover; }
.lib-item h3 { font-size: 1.05rem; line-height: 1.25; }
.lib-item .by { font-size: 0.8rem; color: var(--ink-mute); margin: 3px 0 12px; }

.gate { max-width: 460px; margin: 80px auto; text-align: center; }
.gate h1 { font-size: 2.2rem; margin-bottom: 12px; }
.gate p { color: var(--ink-soft); margin-bottom: 24px; }

@media (max-width: 760px) { .book-detail { grid-template-columns: 1fr; gap: 26px; } .book-detail .bcover { position: static; max-width: 260px; } }
