/* ============================================================
   music.css  ·  shared by the landing page and every album
   You should not need to edit this. Album colors come from
   albums.js and arrive here as --accent and --accent-2.
   ============================================================ */

:root{
  --night:#0F1124;
  --night-2:#171A33;
  --edge:#262A4D;
  --paper:#ECEAF6;
  --muted:#8E8FB4;
  --accent:#FFB55C;
  --accent-2:#8E7CFF;
  --accent-ink:#1C1305;
  --bar-h:104px;
  --display:"Bricolage Grotesque","Space Grotesk",system-ui,sans-serif;
  --body:"Space Grotesk",system-ui,-apple-system,sans-serif;
  --mono:"Space Mono",ui-monospace,"SF Mono",Menlo,monospace;
}

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

body{
  background:var(--night);
  color:var(--paper);
  font-family:var(--body);
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body.album{padding-bottom:calc(var(--bar-h) + env(safe-area-inset-bottom))}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  background:
    radial-gradient(70% 45% at 18% -8%, rgba(255,181,92,.13), transparent 68%),
    radial-gradient(60% 40% at 92% 4%, rgba(142,124,255,.16), transparent 70%);
  background-image:
    radial-gradient(70% 45% at 18% -8%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 68%),
    radial-gradient(60% 40% at 92% 4%, color-mix(in srgb, var(--accent-2) 17%, transparent), transparent 70%);
}

.wrap{position:relative;z-index:1;max-width:880px;margin:0 auto;padding:0 22px}
body.album .wrap{max-width:820px}

.eyebrow{
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--accent);
  margin:0 0 20px;
}
.eyebrow .sep{color:var(--edge);margin:0 .5em}

.hero{padding:64px 0 26px}

h1.big{
  font-family:var(--display);
  font-weight:800;
  font-stretch:88%;
  font-size:clamp(2.7rem,10.5vw,5.2rem);
  line-height:.92;
  letter-spacing:-.035em;
  margin:0;
}

.byline{margin:18px 0 0;font-size:.95rem;color:var(--muted)}
.byline strong{color:var(--paper);font-weight:500}

.blurb{margin:14px 0 0;max-width:48ch;color:var(--muted);font-size:.95rem}

footer{
  padding:44px 0 40px;
  color:var(--muted);
  font-size:.8rem;
  font-family:var(--mono);
  letter-spacing:.04em;
}
footer a{color:var(--muted)}

:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}

/* ============================================================
   LANDING PAGE
   ============================================================ */

.shelf{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
  gap:18px;
  margin-top:40px;
}

a.card{
  display:block;
  text-decoration:none;
  color:inherit;
  background:var(--night-2);
  border:1px solid var(--edge);
  border-radius:16px;
  overflow:hidden;
  transition:transform .2s cubic-bezier(.2,.8,.25,1), border-color .2s ease, box-shadow .2s ease;
}
a.card:hover{
  transform:translateY(-4px);
  border-color:var(--accent);
  box-shadow:0 16px 40px rgba(0,0,0,.4);
}

.cover{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:16/9;
  background:#12142A;
  border-bottom:1px solid var(--edge);
}

.card-body{padding:18px 20px 20px}

.card-eyebrow{
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--accent);
  margin-bottom:8px;
}

.card-title{
  font-family:var(--display);
  font-weight:700;
  font-stretch:92%;
  font-size:1.6rem;
  line-height:1.05;
  letter-spacing:-.02em;
  margin:0;
}

.card-blurb{
  margin:9px 0 0;
  font-size:.88rem;
  color:var(--muted);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.card-foot{
  margin-top:14px;
  padding-top:13px;
  border-top:1px solid var(--edge);
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-family:var(--mono);
  font-size:.7rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--muted);
}
.card-foot .go{color:var(--accent);display:inline-flex;align-items:center;gap:6px}
.card-foot .go svg{width:11px;height:11px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s ease}
a.card:hover .go svg{transform:translateX(3px)}

.empty{
  margin-top:40px;
  padding:38px 24px;
  border:1px dashed var(--edge);
  border-radius:16px;
  color:var(--muted);
  font-size:.92rem;
  text-align:center;
}

/* ============================================================
   ALBUM PAGE
   ============================================================ */

.back{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:30px 0 -14px;
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--muted);
  text-decoration:none;
  transition:color .15s ease;
}
.back:hover{color:var(--paper)}
.back svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s ease}
.back:hover svg{transform:translateX(-3px)}

.hero-actions{margin-top:28px}

.play-album{
  appearance:none;
  border:0;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:11px;
  padding:13px 24px 13px 20px;
  border-radius:999px;
  background:var(--accent);
  color:var(--accent-ink);
  font-family:var(--body);
  font-weight:700;
  font-size:.95rem;
  transition:transform .16s ease, box-shadow .16s ease;
  box-shadow:0 8px 26px color-mix(in srgb, var(--accent) 26%, transparent);
}
.play-album:hover{transform:translateY(-2px)}
.play-album:active{transform:translateY(0)}
.play-album svg{width:15px;height:15px;fill:currentColor}

.viz{position:relative;width:100%;height:96px;margin:34px 0 8px;display:block}
.viz-rule{height:1px;background:linear-gradient(90deg,transparent,var(--edge) 12%,var(--edge) 88%,transparent)}

.section-label{
  display:flex;
  align-items:center;
  gap:14px;
  margin:34px 0 10px;
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:var(--muted);
}
.section-label::after{content:"";flex:1;height:1px;background:var(--edge)}
.section-label:first-of-type{margin-top:18px}

ol.tracks{list-style:none;margin:0;padding:0}

.row{
  display:grid;
  grid-template-columns:44px 1fr auto auto;
  align-items:center;
  gap:0 14px;
  border-bottom:1px solid rgba(38,42,77,.7);
}
.row:first-child{border-top:1px solid rgba(38,42,77,.7)}

.cue{
  appearance:none;
  background:none;
  border:0;
  margin:0;
  cursor:pointer;
  color:inherit;
  font:inherit;
  text-align:left;
  display:grid;
  grid-column:1 / 4;
  grid-template-columns:subgrid;
  align-items:center;
  gap:0 14px;
  padding:15px 0;
  min-height:60px;
}
@supports not (grid-template-columns: subgrid){
  .cue{grid-template-columns:44px 1fr auto}
}

.num{font-family:var(--mono);font-size:.8rem;color:var(--muted);letter-spacing:.04em;transition:color .15s ease}
.meta{min-width:0}
.name{font-size:1.02rem;font-weight:500;letter-spacing:-.005em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.credit{font-size:.8rem;color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.len{font-family:var(--mono);font-size:.8rem;color:var(--muted);font-variant-numeric:tabular-nums}

.dl{
  grid-column:4;
  display:inline-flex;align-items:center;justify-content:center;
  width:34px;height:34px;border-radius:50%;
  color:var(--muted);opacity:0;
  transition:opacity .15s ease, color .15s ease, background .15s ease;
}
.dl svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.row:hover .dl,.dl:focus-visible{opacity:1}
.dl:hover{color:var(--paper);background:var(--night-2)}

.row:hover .num{color:var(--paper)}
.row.playing .name,.row.playing .num{color:var(--accent)}

.eq{display:none;align-items:flex-end;gap:2px;height:13px}
.eq i{display:block;width:2px;background:var(--accent);height:4px;border-radius:1px;animation:bounce .9s ease-in-out infinite}
.eq i:nth-child(2){animation-delay:.18s}
.eq i:nth-child(3){animation-delay:.36s}
@keyframes bounce{0%,100%{height:3px}50%{height:13px}}
.row.playing .eq{display:flex}
.row.playing.paused .eq i{animation-play-state:paused}
.row.playing .num-text{display:none}

/* ---- sticky player ---- */
.player{
  position:fixed;left:0;right:0;bottom:0;z-index:5;
  background:rgba(15,17,36,.88);
  backdrop-filter:blur(18px) saturate(140%);
  -webkit-backdrop-filter:blur(18px) saturate(140%);
  border-top:1px solid var(--edge);
  padding:12px 22px calc(12px + env(safe-area-inset-bottom));
  transform:translateY(105%);
  transition:transform .32s cubic-bezier(.2,.8,.25,1);
}
.player.up{transform:translateY(0)}

.player-inner{
  max-width:820px;margin:0 auto;
  display:grid;grid-template-columns:auto 1fr auto;
  align-items:center;gap:0 18px;
}

.controls{display:flex;align-items:center;gap:6px}

.ctl{
  appearance:none;border:0;background:none;cursor:pointer;color:var(--paper);
  width:38px;height:38px;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  transition:background .15s ease,color .15s ease;
}
.ctl:hover{background:var(--night-2)}
.ctl svg{width:16px;height:16px;fill:currentColor}
.ctl.main{width:46px;height:46px;background:var(--paper);color:var(--night)}
.ctl.main:hover{background:#fff}
.ctl.main svg{width:17px;height:17px}

.now{min-width:0}
.now-title{font-size:.92rem;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.scrub-line{display:flex;align-items:center;gap:10px;margin-top:5px}
.time{font-family:var(--mono);font-size:.68rem;color:var(--muted);font-variant-numeric:tabular-nums;min-width:36px}
.time.right{text-align:right}

input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:16px;background:none;margin:0;cursor:pointer}
input[type=range]::-webkit-slider-runnable-track{height:4px;border-radius:2px;background:var(--track-fill,var(--edge))}
input[type=range]::-moz-range-track{height:4px;border-radius:2px;background:var(--edge)}
input[type=range]::-moz-range-progress{height:4px;border-radius:2px;background:var(--accent)}
input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none;width:11px;height:11px;border-radius:50%;
  background:var(--paper);margin-top:-3.5px;
  box-shadow:0 0 0 3px rgba(15,17,36,.9);
  transition:transform .12s ease;
}
input[type=range]::-moz-range-thumb{width:11px;height:11px;border:0;border-radius:50%;background:var(--paper)}
input[type=range]:hover::-webkit-slider-thumb{transform:scale(1.25)}

.vol{display:flex;align-items:center;gap:8px;width:112px}
.vol svg{width:15px;height:15px;fill:var(--muted);flex:none}
.vol input[type=range]{width:80px}

/* ============================================================
   NARROW SCREENS
   ============================================================ */
@media (max-width:640px){
  :root{--bar-h:118px}
  .wrap{padding:0 18px}
  .hero{padding:44px 0 18px}
  .shelf{grid-template-columns:1fr;gap:14px;margin-top:30px}
  .viz{height:72px;margin:28px 0 8px}
  .row{grid-template-columns:34px 1fr auto auto;gap:0 10px}
  @supports not (grid-template-columns: subgrid){
    .cue{grid-template-columns:34px 1fr auto}
  }
  .dl{opacity:1;width:30px;height:30px}
  .len{display:none}
  .player-inner{grid-template-columns:1fr;gap:8px;justify-items:stretch}
  .now{order:1;text-align:center}
  .controls{order:2;justify-content:center;gap:16px}
  .vol{display:none}
}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms !important;transition-duration:.001ms !important}
}
