/* =====================================================================
   Jerome Dillard: link-in-bio page
   Phones get one scrolling column; wider screens get the floating
   app window from the reference design.
   ===================================================================== */

:root {
  --backdrop-from: #E08160;
  --backdrop-to: #A85436;
  --black: #000;
  --surface: #181818;
  --surface-2: #222;
  --surface-3: #2c2c2c;
  --hairline: rgba(255, 255, 255, .08);
  --accent: #D86A45;
  --amber: #DC8C3B;
  --text: #fff;
  --muted: #9A9AA0;
  --dim: #6A6A70;

  --r-window: 32px;
  --r-hero: 28px;
  --r-card: 20px;
  --r-cover: 14px;

  --gutter: 16px;
  --player-h: 64px;
  --breakout: 44px;
  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 650; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

svg.ui { width: 20px; height: 20px; flex: none; }
svg.brand { width: 20px; height: 20px; flex: none; fill: currentColor; }

.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: #fff; color: #000; font-weight: 600; }
.skip:focus { left: 12px; }

/* ---------- Page shell (phones) ---------- */
.app {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 var(--gutter) calc(var(--player-h) + env(safe-area-inset-bottom) + 32px);
}
.center, .right { display: contents; }
.sidebar, .feed-row { display: none; }

/* Phone order: hero → socials → platforms → single → releases → tracklist → rest */
.topbar { order: 0; }
.hero { order: 1; }
.social-row { order: 2; }
.listen { order: 3; }
.now-card { order: 4; }
.discog { order: 5; }
.tabs-card { order: 6; }
.support { order: 7; }
.watch { order: 8; }
.booking { order: 9; }
.about { order: 10; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  margin: 0 calc(var(--gutter) * -1);
  padding: env(safe-area-inset-top) var(--gutter) 0;
  background: rgba(0, 0, 0, .78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.wordmark { font-size: 20px; font-weight: 750; font-stretch: 78%; letter-spacing: -.01em; }
.tabs-nav { display: none; }
.account { display: flex; align-items: center; gap: 10px; }
.avatar, .handle { display: none; }

.pill-link.book-pill { background: var(--amber); color: #000; }
.pill-link.book-pill:hover { background: #e79a4d; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--surface);
  transition: background .15s, transform .12s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero {
  --art: min(64%, 300px);
  position: relative;
  isolation: isolate;
  margin-top: var(--breakout);
  padding: calc(var(--art) - var(--breakout) + 20px) 22px 24px;
  border-radius: var(--r-hero);
  background: var(--accent);
}
/* darkens the lower-left so white text stays readable */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(120% 90% at 0% 100%, rgba(74, 20, 4, .62), rgba(74, 20, 4, 0) 62%),
    radial-gradient(80% 60% at 100% 0%, rgba(255, 190, 150, .22), rgba(255, 190, 150, 0) 70%);
}
.hero-art {
  position: absolute;
  top: calc(var(--breakout) * -1);
  right: 6%;
  width: var(--art);
  aspect-ratio: 1;
  pointer-events: none;
}
.record { position: absolute; inset: 0; }
.disc-wrap {
  position: absolute;
  top: 0;
  right: 0;
  width: 80%;
  aspect-ratio: 1;
  animation: slide-out 1.2s .3s cubic-bezier(.2, .8, .2, 1) both;
}
.disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 31%, #070707 31.5% 33%, transparent 33.5%),
    repeating-radial-gradient(circle, #0c0c0c 0 1.6px, #1c1c1c 1.6px 3.2px);
  box-shadow: 0 26px 50px rgba(50, 12, 0, .5);
  animation: spin 5s linear infinite paused;
}
.disc-label {
  position: absolute;
  inset: 33.5%;
  width: 33%;
  height: 33%;
  border-radius: 50%;
  object-fit: cover;
}
.disc::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3.5%;
  height: 3.5%;
  border-radius: 50%;
  background: #000;
  transform: translate(-50%, -50%);
}
.disc-sheen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 20deg, transparent 0 8%, rgba(255, 255, 255, .13) 13%, transparent 20% 52%, rgba(255, 255, 255, .08) 60%, transparent 68%);
}
.sleeve {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 76%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 30px 60px rgba(50, 12, 0, .55), 0 2px 0 rgba(255, 255, 255, .08) inset;
  transform: rotate(-5deg);
}
.hero.is-playing .disc { animation-play-state: running; }

/* Photo mode: a cut-out portrait replaces the record */
.portrait { display: none; }
.hero.has-photo .record { display: none; }
.hero.has-photo .hero-art {
  top: calc(var(--breakout) * -1);
  bottom: 0;
  right: 0;
  width: 70%;
  aspect-ratio: auto;
  clip-path: inset(-200px 0 0 0 round 0 0 var(--r-hero) 0);
}
.hero.has-photo .portrait {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
}

.hero-copy { position: relative; display: flex; flex-direction: column; gap: 10px; }
.hero-name {
  font-size: clamp(56px, 17.5vw, 92px);
  font-weight: 800;
  font-stretch: 75%;
  line-height: .84;
  letter-spacing: -.015em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero-tagline { font-size: 16px; color: rgba(255, 255, 255, .9); }
.hero-release { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, .88); }
.hero-release b { font-weight: 700; color: #fff; }
.hero-release .chip-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 7px;
  background: rgba(255, 255, 255, .92);
  color: var(--accent);
}
.hero-release .chip-icon svg { width: 15px; height: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
  transition: background .15s, transform .12s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 17px; height: 17px; }
.btn-light { background: #fff; color: #000; }
.btn-light:hover { background: #f1ece9; }
.btn-dark { background: rgba(0, 0, 0, .3); color: #fff; }
.btn-dark:hover { background: rgba(0, 0, 0, .45); }
.btn-accent { background: var(--amber); color: #000; }
.btn-accent:hover { background: #e79a4d; }

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .15s;
}
.pill-link:hover { background: var(--surface-3); }
.pill-link svg { width: 15px; height: 15px; }

/* ---------- Social row (phones) ---------- */
.social-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.social .tile {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--surface);
  color: #fff;
  transition: color .15s, background .15s, transform .12s;
}
.social svg { width: 24px; height: 24px; }
.social:hover .tile, .social:focus-visible .tile { color: var(--brand); background: var(--surface-2); }
.social:active .tile { transform: scale(.93); }

/* ---------- Section blocks ---------- */
.block { display: flex; flex-direction: column; gap: 14px; }
.block h2 { font-size: 18px; letter-spacing: -.005em; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.block-head a { font-size: 13.5px; color: var(--muted); transition: color .15s; }
.block-head a:hover { color: var(--text); }

/* ---------- Link list ---------- */
.list { overflow: hidden; border-radius: var(--r-card); background: var(--surface); }
.list li + li { border-top: 1px solid var(--hairline); }
.row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 10px 16px;
  transition: background .15s;
}
.row:hover { background: var(--surface-2); }
.row:active { background: var(--surface-3); }
.tile-sq {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
  background: var(--surface-3);
  color: var(--brand, #fff);
}
.row-text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.row-title { font-size: 15px; font-weight: 600; }
.row-sub { overflow: hidden; font-size: 13px; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.go { color: var(--dim); transition: color .15s, transform .15s; }
.row:hover .go, .feed-row:hover .go { color: var(--text); transform: translate(2px, -2px); }

/* ---------- New single card ---------- */
.now-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: var(--r-card);
  background: var(--surface);
}
.now-head { display: flex; align-items: center; gap: 12px; }
.now-head img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.now-title { font-size: 16px; font-weight: 700; }
.now-sub { font-size: 13px; color: var(--muted); }
.wave { height: 92px; margin: 0 -4px; }
.wave svg { display: block; width: 100%; height: 100%; overflow: visible; }
.now-foot { display: flex; align-items: center; gap: 8px; }
.play-orb {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--amber);
  color: #000;
  box-shadow: 0 8px 24px rgba(220, 140, 59, .28);
  transition: transform .12s, background .15s;
}
.play-orb:hover { background: #e79a4d; }
.play-orb:active { transform: scale(.94); }
.play-orb svg { width: 22px; height: 22px; }

/* ---------- Album / videos tabs ---------- */
.tabs-card { display: flex; flex-direction: column; gap: 8px; }
.tablist { display: flex; gap: 20px; padding: 0 2px; }
.tab { padding: 4px 0; font-size: 18px; font-weight: 650; color: var(--dim); transition: color .15s; }
.tab:hover { color: var(--muted); }
.tab[aria-selected="true"] { color: var(--text); }
.panel-note { padding: 0 2px 6px; font-size: 13px; color: var(--muted); }
.tracks, .vids { display: flex; flex-direction: column; }

.track {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 6px 10px;
  border-radius: 12px;
  text-align: left;
  transition: background .15s;
}
.track:hover { background: var(--surface); }
.track .n { font-size: 13px; color: var(--dim); text-align: center; font-variant-numeric: tabular-nums; }
.track .t { overflow: hidden; font-size: 14.5px; font-weight: 550; white-space: nowrap; text-overflow: ellipsis; }
.track .d { font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.track .eq { display: none; }
.track.is-current .t { color: var(--amber); }
.track.is-current .num { display: none; }
.track.is-current .eq { display: inline-flex; }

.eq { align-items: flex-end; justify-content: center; gap: 2px; height: 13px; }
.eq i { width: 3px; height: 40%; border-radius: 1px; background: var(--amber); animation: eq .8s ease-in-out infinite alternate paused; }
.eq i:nth-child(2) { animation-delay: -.3s; }
.eq i:nth-child(3) { animation-delay: -.55s; }
.track.playing .eq i { animation-play-state: running; }

.vid {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 7px 10px;
  border-radius: 12px;
  transition: background .15s;
}
.vid:hover { background: var(--surface); }
.vid img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; background: var(--surface-2); }
.vid .t { overflow: hidden; font-size: 14px; font-weight: 550; white-space: nowrap; text-overflow: ellipsis; }
.vid .d { font-size: 12.5px; color: var(--dim); white-space: nowrap; }

/* ---------- Discography ---------- */
.covers {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 44%;
  gap: 14px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 var(--gutter) 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.covers::-webkit-scrollbar { display: none; }
.cover { display: flex; flex-direction: column; gap: 8px; scroll-snap-align: start; }
.cover-img { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: var(--r-cover); background: var(--surface); }
.cover-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.cover:hover .cover-img img { transform: scale(1.04); }
.cover-title { overflow: hidden; font-size: 14px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.cover-sub { margin-top: -6px; font-size: 12.5px; color: var(--muted); }

/* ---------- Patreon ---------- */
.support-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(216, 106, 69, .38);
  border-radius: var(--r-card);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(216, 106, 69, .28), rgba(216, 106, 69, 0) 60%),
    var(--surface);
}
.support-logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
}
.support-card h2 { font-size: 30px; font-weight: 750; font-stretch: 80%; line-height: 1; letter-spacing: -.01em; }
.support-card p { max-width: 44ch; color: var(--muted); }
.support-card .btn { margin-top: 6px; }

/* ---------- Video ---------- */
.video { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--r-card); background: var(--surface); }
.video button { position: absolute; inset: 0; width: 100%; height: 100%; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .2s; }
.video button:hover img { opacity: 1; }
.video .orb {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--amber);
  color: #000;
  transform: translate(-50%, -50%);
  transition: transform .15s;
}
.video button:hover .orb { transform: translate(-50%, -50%) scale(1.06); }
.video .orb svg { width: 24px; height: 24px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--muted); }
.video-caption a:hover { color: var(--text); }

/* ---------- Booking request ---------- */
.booking { scroll-margin-top: 76px; }
.booking-card {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-radius: var(--r-card);
  background: var(--surface);
  color-scheme: dark;
}
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.booking-card h2 { font-size: 30px; font-weight: 750; font-stretch: 80%; line-height: 1; letter-spacing: -.01em; }
.booking-intro { max-width: 50ch; color: var(--muted); }

.booking-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 8px; }
.booking-form[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label, .field legend { font-size: 13.5px; font-weight: 600; }
.field-set { display: block; border: 0; }
.field-set legend { margin-bottom: 8px; }
.field-set .field-error { margin-top: 7px; }
.opt { font-weight: 450; color: var(--muted); }
.hint { font-size: 12.5px; color: var(--muted); }
.field-error { font-size: 13px; color: #F59A8B; }
.field-error:empty { display: none; }

.input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 16px; /* 16px stops iPhones zooming in on tap */
  transition: border-color .15s, background .15s, box-shadow .15s;
}
textarea.input { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.45; resize: vertical; }
.input::placeholder { color: var(--dim); }
.input:hover { border-color: rgba(255, 255, 255, .2); }
.input:focus-visible { outline: none; border-color: var(--amber); background: var(--surface-3); box-shadow: 0 0 0 3px rgba(220, 140, 59, .22); }
.input[aria-invalid="true"] { border-color: #F07A6A; }
.input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px var(--surface-2) inset; -webkit-text-fill-color: #fff; caret-color: #fff; }

.affix { position: relative; }
.affix > span { position: absolute; left: 14px; top: 50%; font-size: 16px; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.affix .input { padding-left: 32px; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: background .15s, border-color .15s, color .15s;
}
.choice:hover span { border-color: rgba(255, 255, 255, .2); color: var(--text); }
.choice input:checked + span { border-color: var(--amber); background: var(--amber); color: #000; }
.choice input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 3px; }
.choice input[aria-invalid="true"] + span { border-color: #F07A6A; }

.form-foot { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.form-foot .btn { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; }
.form-status { font-size: 13.5px; color: #F59A8B; }
.form-status:empty { display: none; }

.booking-done { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 8px; }
.booking-done[hidden] { display: none; }
.booking-done h3 { font-size: 22px; font-weight: 700; }
.booking-done h3:focus { outline: none; }
.booking-done p { max-width: 50ch; color: var(--muted); }
.booking-done .pill-link { margin-top: 4px; }
.done-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--amber); color: #000; }
.done-icon svg { width: 22px; height: 22px; stroke-width: 2.4; }

@container (min-width: 440px) {
  .booking-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .field-wide { grid-column: 1 / -1; }
  .form-foot { flex-direction: row; align-items: center; gap: 16px; }
  .form-foot .btn { width: auto; }
}

/* ---------- About / footer ---------- */
.about p { max-width: 60ch; color: var(--muted); }
.about a.mail { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--surface); font-size: 13px; }
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-size: 12.5px;
  color: var(--dim);
}
.foot-icons { display: flex; flex-wrap: wrap; gap: 6px; }
.foot-icons a { width: 38px; height: 38px; color: var(--muted); }
.foot-icons a:hover { color: var(--brand); }
.foot-icons svg { width: 17px; height: 17px; }

/* ---------- Player ---------- */
.player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) 12px;
  border-top: 1px solid var(--hairline);
  background: rgba(14, 14, 14, .9);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transform: translateY(110%);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.past-hero .player, .has-played .player { transform: none; }
.p-line { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: rgba(255, 255, 255, .08); }
.p-line span { display: block; width: 0; height: 100%; background: var(--amber); }
.p-now { display: flex; align-items: center; gap: 12px; min-width: 0; }
.p-cover { width: 44px; height: 44px; flex: none; border-radius: 9px; object-fit: cover; background: var(--surface-2); }
.p-meta { display: flex; flex-direction: column; min-width: 0; }
.p-title { overflow: hidden; font-size: 14px; font-weight: 650; white-space: nowrap; text-overflow: ellipsis; }
.p-artist { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.p-tag { padding: 1px 6px; border-radius: 5px; background: var(--surface-3); font-size: 10.5px; font-weight: 600; color: var(--muted); }
.p-controls { order: 3; }
.p-extra { order: 2; }
.p-buttons { display: flex; align-items: center; gap: 4px; }
.p-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--muted); transition: color .15s; }
.p-btn:hover { color: var(--text); }
.p-btn[aria-pressed="true"] { color: var(--amber); }
.p-btn svg { width: 19px; height: 19px; }
.p-side { display: none; }
.p-play {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  transition: transform .12s;
}
.p-play:active { transform: scale(.93); }
.p-play svg { width: 18px; height: 18px; }
.p-progress { display: none; }
.p-extra .pill-link { width: 40px; padding: 0; justify-content: center; }
.p-full-label { display: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--player-h) + env(safe-area-inset-bottom) + 24px);
  z-index: 60;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Motion ---------- */
@keyframes slide-out {
  from { transform: translate(-26%, 22%) rotate(-50deg); }
  to { transform: none; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes eq { from { height: 25%; } to { height: 100%; } }

/* =====================================================================
   Tablet and up: the floating app window
   ===================================================================== */
@media (min-width: 900px) {
  body { background: linear-gradient(135deg, var(--backdrop-from), var(--backdrop-to)) fixed; }
  .backdrop { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: 32px; }

  .app {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-rows: 72px minmax(0, 1fr) 88px;
    grid-template-areas:
      "top top"
      "center right"
      "player player";
    gap: 0;
    width: 100%;
    max-width: 1320px;
    height: min(920px, calc(100vh - 64px));
    height: min(920px, calc(100dvh - 64px));
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: var(--r-window);
    background: var(--black);
    box-shadow: 0 40px 100px rgba(60, 14, 0, .45), 0 0 0 1px rgba(255, 255, 255, .04);
  }
  .center > *, .right > * { order: initial; }

  .topbar {
    grid-area: top;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    position: static;
    min-height: 0;
    margin: 0;
    padding: 0 28px;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .tabs-nav { display: flex; gap: 30px; font-size: 14px; }
  .tabs-nav a { font-weight: 550; color: var(--dim); transition: color .15s; }
  .tabs-nav a:hover { color: var(--muted); }
  .tabs-nav a.is-active { color: var(--text); }
  .account { justify-self: end; }
  .book-pill { display: none; }
  .booking { scroll-margin-top: 16px; }
  .book-tile { color: var(--amber); }
  .avatar {
    display: grid;
    place-items: center;
    overflow: hidden;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    font-size: 11px;
    font-weight: 700;
  }
  .avatar img { width: 100%; height: 100%; object-fit: cover; }
  .handle { display: block; margin-right: 6px; font-size: 13px; color: var(--muted); }
  .icon-btn { width: 36px; height: 36px; }

  .center, .right {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
  }
  .center {
    grid-area: center;
    gap: 40px;
    padding: calc(var(--breakout) + 12px) 28px 40px;
    scrollbar-width: thin;
    scrollbar-color: #2a2a2a transparent;
  }
  .right {
    grid-area: right;
    gap: 18px;
    padding: 8px 24px 32px 6px;
    scrollbar-width: none;
  }
  .right::-webkit-scrollbar { display: none; }

  .hero {
    --art: min(44%, 330px);
    flex: none;
    min-height: 340px;
    margin-top: 0;
    padding: 36px;
    display: flex;
    align-items: flex-end;
  }
  .hero-art { right: 5%; }
  .hero-copy { max-width: 54%; }
  .hero-name { font-size: clamp(60px, 5.6vw, 92px); }
  .hero.has-photo .hero-art { width: 52%; }

  .covers {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .feed-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    transition: background .15s;
  }
  .feed-row:hover { background: var(--surface); }
  .feed-row .row-title { font-size: 14px; }
  .feed-row .row-sub { font-size: 12.5px; }
  .feed-row .tile-sq { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); }

  .tab { font-size: 14.5px; }
  .track { min-height: 46px; }

  .player {
    grid-area: player;
    position: static;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 24px;
    padding: 0 28px;
    border-top: 1px solid var(--hairline);
    background: #000;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transform: none;
    transition: none;
  }
  .p-line { display: none; }
  .p-cover { width: 52px; height: 52px; border-radius: 10px; }
  .p-controls { order: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
  .p-extra { order: 0; justify-self: end; }
  .p-side { display: grid; }
  .p-buttons { gap: 12px; }
  .p-btn { width: 34px; height: 34px; }
  .p-btn svg { width: 17px; height: 17px; }
  .p-play { width: 40px; height: 40px; }
  .p-progress { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 460px; }
  .p-time { width: 34px; font-size: 11.5px; color: var(--dim); text-align: center; font-variant-numeric: tabular-nums; }
  .p-extra .pill-link { width: auto; padding: 0 14px; }
  .p-full-label { display: inline; }

  .toast { bottom: 64px; }
}

/* Wide screens: add the left sidebar, move phone-only blocks into it */
@media (min-width: 1200px) {
  .app {
    grid-template-columns: 232px minmax(0, 1fr) 320px;
    grid-template-areas:
      "top top top"
      "side center right"
      "player player player";
  }
  .sidebar {
    grid-area: side;
    display: flex;
    flex-direction: column;
    gap: 26px;
    min-height: 0;
    padding: 8px 14px 28px 20px;
    overflow-y: auto;
    scrollbar-width: none;
  }
  .social-row, .listen { display: none; }
  .center { padding-left: 12px; }
}

.side-title { padding: 0 10px 8px; font-size: 13px; font-weight: 650; }
.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--muted);
  transition: background .15s, color .15s;
}
.side-link svg { width: 16px; height: 16px; transition: color .15s; }
.side-link:hover { background: var(--surface-2); color: var(--text); }
.side-link:hover svg { color: var(--brand); }

/* Range input (desktop seek bar) */
#p-seek {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, #fff var(--p, 0%), rgba(255, 255, 255, .18) var(--p, 0%));
  cursor: pointer;
}
#p-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; opacity: 0; transition: opacity .15s; }
#p-seek::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; opacity: 0; transition: opacity .15s; }
#p-seek::-moz-range-track { background: transparent; }
#p-seek:hover::-webkit-slider-thumb, #p-seek:focus-visible::-webkit-slider-thumb { opacity: 1; }
#p-seek:hover::-moz-range-thumb, #p-seek:focus-visible::-moz-range-thumb { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html, .center, .right { scroll-behavior: auto; }
  .disc-wrap, .disc, .eq i { animation: none !important; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
