/* Corey Spins stylesheet.
   Tokens first, then base, then the parts of the page in the order a visitor
   meets them. Light theme is the default; dark follows the phone unless the
   visitor picks one. */

/* ---------- font ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-variable-latin.woff2") format("woff2");
}

/* ---------- tokens ---------- */
:root {
  --bg: #F6F5F9;
  --surface: #FFFFFF;
  --ink: #15141B;
  --ink-2: #55535F;
  --ink-3: #6B687A;
  --line: #E5E3EC;
  --chrome: #0F0E14;
  --chrome-ink: #F1EFF6;
  --chrome-ink-2: #B9B6C6;
  --chrome-line: #24222D;
  --accent: #C43D2C;
  --accent-ink: #FFFFFF;
  --accent-soft: #FBE6E4;
  --ok: #1F8A4C;
  --bad: #C8322B;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-cover: 0 20px 50px rgba(0, 0, 0, .45);
  --font: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --display-weight: 800;
  --display-tracking: -0.035em;
  --header-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F0E14;
    --surface: #17161E;
    --ink: #F1EFF6;
    --ink-2: #A29FB1;
    --ink-3: #8E8B9C;
    --line: #26242F;
    --chrome: #0B0A0F;
    --chrome-line: #1F1D27;
    --accent: #F0665D;
    --accent-ink: #0F0E14;
    --accent-soft: #3A1F1E;
    --ok: #4CC07A;
    --bad: #F0665D;
    --shadow-cover: 0 20px 50px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F0E14;
  --surface: #17161E;
  --ink: #F1EFF6;
  --ink-2: #A29FB1;
  --ink-3: #8E8B9C;
  --line: #26242F;
  --chrome: #0B0A0F;
  --chrome-line: #1F1D27;
  --accent: #F0665D;
  --accent-ink: #0F0E14;
  --accent-soft: #3A1F1E;
  --ok: #4CC07A;
  --bad: #F0665D;
  --shadow-cover: 0 20px 50px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* The banner color pairs, carried over from coreyspins.com. */
.pair-red-blue   { --pair-a: #3993E2; --pair-b: #E2544B; }
.pair-red-yellow { --pair-a: #800900; --pair-b: #D3D009; }
.pair-green-blue { --pair-a: #1273CB; --pair-b: #0F8933; }
.pair-purple-red { --pair-a: #ED1616; --pair-b: #8C39E2; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* The hidden attribute always wins. Without this, any rule that sets a
   display (a grid box, a flex row) paints an element the page meant to hide. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--chrome); }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/* Text links: one style everywhere. A visible underline in the text's own
   color, the accent on hover. Cards, tiles, buttons and nav opt out. */
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: currentColor; transition: color .15s; }
a:hover { color: var(--accent); }
.logo, #nav a, .login, .icon-btn, .btn, .tile, .strip > a, .credit-link, .share-link, .letters a, .skip { text-decoration: none; }
.logo:hover, #nav a:hover, .icon-btn:hover, .btn:hover, .tile:hover, .strip > a:hover, .credit-link:hover, .share-link:hover, .letters a:hover, .skip:hover { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: var(--display-weight); letter-spacing: var(--display-tracking); text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.page-narrow { max-width: 760px; margin: 36px auto 64px; display: grid; gap: 20px; }
.page-title { font-size: 32px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.lede { font-size: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.skip:focus { top: 12px; text-decoration: none; }
.tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); background: var(--line); vertical-align: middle; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .tile:hover img, .strip > a:hover img, .post-card:hover img, .wrote-cta:hover { transform: none !important; }
}
/* Anything focused scrolls clear of the sticky header. */
html { scroll-padding-top: calc(var(--header-h) + 16px); }

/* ---------- header ---------- */
#header {
  position: sticky; top: 0; z-index: 50;
  background: var(--chrome); color: var(--chrome-ink);
  border-bottom: 1px solid var(--chrome-line);
  transition: background .3s ease, border-color .3s ease;
}
/* Over a banner the header floats on a 60 percent tint (5.7:1 for white
   text even over a white cover) and turns solid once the page scrolls. */
body.has-banner #header { background: rgba(0, 0, 0, .6); border-bottom-color: transparent; backdrop-filter: blur(6px); }
body.has-banner #header.scrolled { background: var(--chrome); border-bottom-color: var(--chrome-line); }
body.has-banner .hero { margin-top: calc(-1 * var(--header-h)); }
body.has-banner .hero > .wrap { padding-top: calc(var(--header-h) + 28px); }
@media (min-width: 768px) {
  body.has-banner .hero > .wrap { padding-top: calc(var(--header-h) + 48px); }
}
#header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.logo { display: block; color: var(--chrome-ink); flex-shrink: 0; }
.logo svg { width: 213px; height: 44px; }
#nav { display: none; gap: 4px; }
#nav a { padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--chrome-ink); transition: background .15s; }
#nav a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; background: rgba(255, 255, 255, .14); }
#nav a[aria-current="page"] { background: rgba(255, 255, 255, .16); }
.hdr-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; border-radius: 999px; border: 0; background: transparent; color: var(--chrome-ink);
  flex-shrink: 0; transition: background .15s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .16); text-decoration: none; }
.icon-btn svg { width: 22px; height: 22px; }
.login { display: none; padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--chrome-ink); transition: background .15s; }
.login:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; background: rgba(255, 255, 255, .14); }
.avatar {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #3993E2, #E2544B);
}
.menu-btn { display: inline-flex; }
#menu {
  position: fixed; z-index: 49; top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: var(--chrome); color: var(--chrome-ink); padding: 12px 20px 24px; overflow: auto;
  display: grid; align-content: start; gap: 28px;
}
#menu[hidden] { display: none; }
#menu nav { display: grid; }
#menu nav a { padding: 16px 4px; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; border-bottom: 1px solid var(--chrome-line); color: var(--chrome-ink); }
#menu nav a[aria-current="page"] { color: var(--accent); }
#menu nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
body.menu-open { overflow: hidden; }
@media (min-width: 768px) {
  #nav { display: flex; }
  .login { display: inline-block; }
  .menu-btn { display: none; }
  #menu { display: none !important; }
}
@media (max-width: 420px) {
  .logo svg { width: 170px; height: 35px; }
}

/* ---------- search ---------- */
#search-panel { position: sticky; top: var(--header-h); z-index: 48; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0, 0, 0, .12); }
#search-panel[hidden] { display: none; }
#search-panel .wrap { padding-top: 14px; padding-bottom: 14px; display: grid; gap: 10px; }
.search-form { display: flex; gap: 10px; }
.search-input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; }
.search-input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.search-results { list-style: none; margin: 0; padding: 0; max-height: min(70vh, 560px); overflow: auto; }
.search-results:empty { display: none; }
.search-group { padding: 12px 8px 4px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.search-results [role="option"] a { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
.search-results [role="option"].active a, .search-results [role="option"] a:hover { background: var(--line); color: var(--ink); }
.search-results .face, .search-results .thumb { width: 40px; height: 40px; object-fit: cover; }
.search-results .face { border-radius: 999px; }
.search-results .thumb { border-radius: 4px; }
.search-results .thumb.cover-empty svg, .search-results .face-empty svg { width: 18px; height: 18px; }
.search-results .result-text { display: grid; gap: 1px; min-width: 0; }
.search-results .who { font-weight: 600; }
.search-results .role { font-size: 13px; }
.search-results .mini-covers { display: flex; gap: 3px; }
.search-results .mini-covers img { width: 28px; height: 28px; border-radius: 3px; object-fit: cover; }
.search-results .search-all a { grid-template-columns: 1fr; justify-items: center; font-weight: 600; margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0; padding-top: 14px; }
body.search-open #menu { display: none; }

/* results page */
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.result { display: grid; gap: 8px; padding: 6px 0; }
.result-main { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 12px; padding: 6px 8px; border-radius: var(--radius-sm); background: var(--surface); text-decoration: none; }
.result-main:hover { background: var(--line); color: var(--ink); }
.result-main .thumb { width: 44px; height: 44px; border-radius: 4px; object-fit: cover; }
.result-main .thumb.cover-empty svg { width: 20px; height: 20px; }
.result-text { display: grid; gap: 1px; min-width: 0; }
.result-text .who { font-weight: 600; }
.result-text .role { font-size: 13px; }
.result-covers { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 64px; }
.result-covers a { text-decoration: none; }
.result-covers img, .result-covers .cover-empty { width: 48px; height: 48px; border-radius: 4px; object-fit: cover; }
.result-covers .cover-empty svg { width: 20px; height: 20px; }

/* ---------- theme switch ---------- */
.theme { display: grid; gap: 10px; justify-items: start; }
.theme .eyebrow { color: var(--chrome-ink-2); }
.seg { display: inline-flex; border: 1px solid var(--chrome-line); border-radius: 999px; overflow: hidden; }
.seg button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 0; background: transparent; color: var(--chrome-ink-2); font-size: 14px; font-weight: 500; }
.seg button svg { width: 18px; height: 18px; }
.seg button + button { border-left: 1px solid var(--chrome-line); }
.seg button[aria-pressed="true"] { background: var(--chrome-ink); color: var(--chrome); }
.theme-compact .seg button { padding: 6px 12px; }
.theme-compact .seg button svg { width: 16px; height: 16px; }

/* ---------- hero (the banner treatment) ---------- */
.hero { position: relative; overflow: hidden; background: var(--chrome); color: #fff; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: linear-gradient(to bottom right, var(--pair-a), var(--pair-b)); }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: contrast(1.05); }
.hero-bg::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom right, var(--pair-a), var(--pair-b));
  mix-blend-mode: hard-light;
}
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 75%; z-index: 1; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .45) 45%, rgba(0, 0, 0, .72)); }
.hero .wrap { position: relative; z-index: 2; display: grid; gap: 22px; padding-top: 28px; padding-bottom: 28px; justify-items: center; text-align: center; }
.cover { width: min(62vw, 300px); aspect-ratio: 1; border-radius: 6px; box-shadow: var(--shadow-cover); overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.hero-text { display: grid; gap: 14px; justify-items: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 2px 14px rgba(0, 0, 0, .35); }
.hero-text .eyebrow { color: #fff; font-size: 13px; }
.hero-text h1 { font-size: clamp(38px, 9vw, 72px); line-height: .98; color: #fff; }
.hero-text .lede { color: #fff; font-size: 18px; }
.hero-text .meta { color: #fff; font-size: 15px; display: flex; flex-wrap: wrap; gap: 4px 0; justify-content: center; }
.hero-text .actions { margin-top: 10px; }
.hero-text h1 { margin: 2px 0; }
.hero-text a:hover { color: #fff; text-decoration-thickness: 2.5px; }
.hero-text-center { padding: 40px 0 44px; justify-self: stretch; width: 100%; text-align: center; }
.hero-tall .hero-text-center { padding: 72px 0 80px; }
.sep { margin: 0 8px; opacity: .6; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
@media (min-width: 768px) {
  .hero .wrap { grid-template-columns: 300px 1fr; align-items: end; justify-items: start; text-align: left; padding-top: 48px; padding-bottom: 40px; gap: 36px; }
  .hero .wrap.wrap-center { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .cover { width: 300px; }
  .hero-text { justify-items: start; }
  .hero-text-center { justify-items: center; grid-column: 1 / -1; padding: 56px 0 64px; }
  .hero-text .meta { justify-content: flex-start; }
  .hero-text-center .meta { justify-content: center; }
  .actions { justify-content: flex-start; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 15px; transition: transform .15s ease, background .15s ease, color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn:hover { text-decoration: none; }
.btn svg { width: 20px; height: 20px; }
.btn-solid { background: #fff; color: #111; }
.btn-solid:hover { background: #f1f1f1; }
.btn-glass { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, .26); }
.btn-love[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.btn-love[aria-pressed="true"] svg { fill: currentColor; animation: pop .3s ease; }
@keyframes pop { 40% { transform: scale(1.35); } }
.btn .count { opacity: .8; font-variant-numeric: tabular-nums; }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--line); height: 42px; }
.btn-line:hover { background: var(--surface); }

/* ---------- page layout ---------- */
.page { display: grid; gap: 56px; padding-top: 36px; padding-bottom: 64px; }
.col-main, .col-side { display: grid; gap: 56px; align-content: start; }
section { display: grid; gap: 16px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sec-head h2 { font-size: 22px; }
.sec-head .more { font-size: 14px; font-weight: 500; }
.sec-head-inline { justify-content: flex-start; gap: 14px; }
.sec-head .count { font-size: 15px; }
.page.page-single { grid-template-columns: 1fr !important; }
.page-single section { max-width: 100%; }
@media (min-width: 900px) {
  .page { grid-template-columns: minmax(0, 1fr) 360px; column-gap: 56px; gap: 48px; }
  .col-main, .col-side { gap: 48px; }
  .full { grid-column: 1 / -1; }
}

/* ---------- metadata list ---------- */
.meta-list { display: grid; grid-template-columns: max-content 1fr; gap: 0 20px; margin: 0; font-size: 15px; }
.meta-list dt, .meta-list dd { padding: 10px 0; border-top: 1px solid var(--line); }
.meta-list dt:first-of-type, .meta-list dt:first-of-type + dd { border-top: 0; padding-top: 0; }
.meta-list dt { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 22px; }
.meta-list dd { margin: 0; line-height: 1.45; }
.meta-list dd .muted { color: var(--ink); font-variant-numeric: tabular-nums; }
.meta-list dd + dd { border-top: 0; padding-top: 0; }
.meta-list dt:empty { border-top: 0; padding: 0; }

/* ---------- tracklist and player ---------- */
.apple { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.apple svg { width: 14px; height: 14px; }
.tracks { list-style: none; margin: 0; padding: 0; border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.track { display: grid; grid-template-columns: 40px 32px 1fr auto; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-top: 1px solid var(--line); }
.track:first-child { border-top: 0; }
.track .pos { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; text-align: center; }
.track .title { font-weight: 500; }
.track .by { display: block; font-size: 13px; color: var(--ink-2); }
.track .dur { color: var(--ink-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.track-heading { grid-column: 1 / -1; padding: 10px 14px 4px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.play {
  width: 40px; height: 40px; padding: 0; border-radius: 999px; border: 0; background: transparent; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; transition: background .15s, color .15s;
}
.play svg { width: 18px; height: 18px; }
.play:hover { background: var(--line); }
.track[aria-current="true"] .play { background: var(--accent); color: var(--accent-ink); }
.track[aria-current="true"] .title { color: var(--accent); }

/* ---------- credits ---------- */
.credits { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.credit { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 8px 6px; border-radius: var(--radius-sm); color: var(--ink); }
.credit-text { display: grid; gap: 1px; min-width: 0; }
.credit .who { font-weight: 600; }
.credit .role { font-size: 13px; }
.credit-link { grid-template-columns: 44px 1fr 20px; background: var(--surface); transition: background .15s, transform .15s; }
.credit-link .who { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.credit-link:hover { background: var(--line); }
.credit-link:hover .who { color: var(--accent); }
.credit-link .chev { width: 20px; height: 20px; }
.face { width: 44px; height: 44px; border-radius: 999px; object-fit: cover; }
.also { font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.also b { font-weight: 600; color: var(--ink); }
.also .also-role { font-weight: 600; color: var(--ink); }
@media (min-width: 900px) {
  .credits-two { grid-template-columns: 1fr 1fr; column-gap: 24px; }
}

/* ---------- family ---------- */
.family { border-radius: var(--radius); background: var(--surface); padding: 18px; display: grid; gap: 14px; }
.loved { display: flex; align-items: center; gap: 10px; }
.stack { display: flex; }
.stack .avatar { width: 34px; height: 34px; border: 2px solid var(--surface); }
.stack .avatar + .avatar { margin-left: -10px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat b { display: block; font-weight: var(--display-weight); font-size: 28px; letter-spacing: var(--display-tracking); line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--ink-2); }
.you { font-size: 14px; color: var(--ink-2); }

/* ---------- cover strips and grids ---------- */
.strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; padding: 4px 20px 12px; margin: 0 -20px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip > a { flex: 0 0 auto; width: 150px; scroll-snap-align: start; display: grid; gap: 8px; align-content: start; }
.strip > a:hover { text-decoration: none; }
.strip img { width: 150px; height: 150px; border-radius: 6px; object-fit: cover; transition: transform .2s ease; }
.strip > a:hover img { transform: translateY(-3px); }
.strip .t { font-weight: 700; font-size: 16px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.strip .a { font-size: 14px; line-height: 1.3; }
.strip .why { font-size: 13px; font-style: italic; line-height: 1.35; margin-top: 2px; }
.strip.small > a { width: 124px; }
.strip.small img { width: 124px; height: 124px; }
@media (min-width: 900px) {
  .strip, .strip.small { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; overflow: visible; margin: 0; padding: 0; scroll-snap-type: none; }
  .strip.small { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .strip > a, .strip.small > a { width: auto; }
  .strip img, .strip.small img { width: 100%; height: auto; aspect-ratio: 1; }
}

/* ---------- notes, links, share ---------- */
.notes { font-size: 15px; line-height: 1.6; max-width: 62ch; }
.notes p { margin: 0 0 12px; }
.notes p:last-child { margin-bottom: 0; }
.links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.share-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.share-link {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); transition: transform .15s ease, background .15s ease;
}
.share-link svg { width: 18px; height: 18px; }
.share-link:hover { transform: translateY(-2px); background: var(--line); text-decoration: none; }
.share-link[hidden] { display: none; }
.share-tip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); padding: 4px 8px; border-radius: 6px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.share-copy.copied .share-tip { opacity: 1; }
.share-copy.copied { border-color: var(--ok); color: var(--ok); }

/* ---------- status table ---------- */
.status { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; font-size: 15px; }
.status th, .status td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.status thead th { border-top: 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.status tbody th { font-weight: 500; }
.status td { font-variant-numeric: tabular-nums; }
.status .ico { width: 20px; height: 20px; }
.status tr.ok .ico { color: var(--ok); }
.status tr.bad .ico { color: var(--bad); }
.status tr.bad td { color: var(--bad); font-weight: 600; }

/* ---------- grids, tiles, placeholders ---------- */
.page-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
.grid-tight { gap: 16px 12px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(5, 1fr); gap: 24px 18px; } .col-main .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .col-main .grid { grid-template-columns: repeat(4, 1fr); } }
.tile { display: grid; gap: 6px; align-content: start; }
.tile:hover { text-decoration: none; }
.tile img, .tile .cover-empty { width: 100%; height: auto; aspect-ratio: 1; border-radius: 6px; object-fit: cover; transition: transform .2s ease; }
.tile:hover img { transform: translateY(-3px); }
.tile .t { font-weight: 700; font-size: 15px; line-height: 1.25; }
.tile .a { font-size: 13px; line-height: 1.3; }
/* No image: a flat dark shape in the chrome color with a white icon. Same
   shape as the real thing, square for a cover, round for a face. */
.cover-empty { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; border-radius: 6px; background: var(--chrome); color: var(--chrome-ink); }
.cover-empty svg { width: 34%; height: 34%; }
.cover .cover-empty { height: 100%; }
.cover-empty.small { width: 124px; height: 124px; }
.cover.portrait { border-radius: 999px; }
.face-empty { display: inline-flex; align-items: center; justify-content: center; background: var(--chrome); color: var(--chrome-ink); }
.face-empty svg { width: 22px; height: 22px; }
.track-static { grid-template-columns: 40px 1fr auto; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.plain-list a { font-weight: 600; }
.prose { max-width: 62ch; }
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }
.small { font-size: 13px; }
.hero-text .artist-line a { color: #fff; }

.letters { display: flex; flex-wrap: wrap; gap: 4px; }
.letters a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 999px; font-weight: 600; font-size: 14px; background: var(--surface); }
.letters a:hover { background: var(--line); text-decoration: none; }
.grid-people .tile img, .face-big { border-radius: 999px; }
.face-big, .tile .face-big, .cover .face-big { border-radius: 999px; }
.page-grid section { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- notices and forms ---------- */
.notice { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface); border-left: 4px solid var(--ink-3); }
.notice.ok { border-left-color: var(--ok); }
.notice.bad { border-left-color: var(--bad); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.status tr.pending td { font-style: italic; }
.status.log td { font-size: 14px; }
.status.log .when { white-space: nowrap; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.actions-left { justify-content: flex-start; }
.sec-title { font-size: 22px; margin-top: 8px; }

/* ---------- footer ---------- */
#main { flex: 1 0 auto; }
#footer { margin-top: 56px; background: var(--chrome); color: var(--chrome-ink-2); border-top: 1px solid var(--chrome-line); font-size: 13px; }
#footer .wrap { display: grid; gap: 18px; padding-top: 26px; padding-bottom: 22px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: center; }
.foot-row-center { justify-content: center; padding-top: 16px; border-top: 1px solid var(--chrome-line); }
#footer .logo svg { width: 174px; height: 36px; }
#footer .made { margin: 0; font-size: 14px; color: var(--chrome-ink); }
#footer .made a { color: var(--chrome-ink); }
#footer .heart { display: inline; width: 13px; height: 13px; fill: var(--accent); vertical-align: -1px; margin: 0 1px; }

/* ---------- mini player ---------- */
#mini {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--chrome); color: var(--chrome-ink); border-top: 1px solid var(--chrome-line);
}
#mini .wrap { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; height: 68px; }
#mini img { width: 44px; height: 44px; border-radius: 4px; display: block; }
#mini .mini-cover { display: block; width: 44px; height: 44px; border-radius: 4px; background: var(--chrome-line); }
#mini .np { min-width: 0; line-height: 1.25; margin: 0; }
#mini .np a { display: block; font-weight: 600; color: var(--chrome-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mini .np span { display: block; font-size: 13px; color: var(--chrome-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mini .np-apple { display: inline-block; font-size: 12px; font-weight: 500; margin-top: 4px; text-decoration: underline; text-underline-offset: 3px; }
#mini .np-apple[hidden] { display: none; }
@media (max-width: 599px) { #mini .np-apple { display: none; } }
#mini .mini-btns { display: flex; align-items: center; gap: 2px; }
#mini .play { color: var(--chrome-ink); }
#mini .play:hover { background: rgba(255, 255, 255, .1); }
#mini .play:disabled { opacity: .35; cursor: default; }
#mini .play:disabled:hover { background: transparent; }
#mini .mini-play { background: var(--accent); color: var(--accent-ink); margin: 0 4px; }
#mini .mini-play:hover { background: var(--accent); filter: brightness(1.08); }
#main:focus { outline: none; }
html.loading { cursor: progress; }
#mini .bar { position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--accent); }
body.has-player #footer .wrap { padding-bottom: 94px; }

/* ---------- forms and account pages ---------- */
.form-page { max-width: 520px; }
.form { display: grid; gap: 16px; padding: 20px; border-radius: var(--radius); background: var(--surface); }
.form .sec-title { margin: 0; }
.form p { margin: 0; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); font: inherit; }
.input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.input[readonly] { background: var(--surface); }
textarea.input { resize: vertical; line-height: 1.45; }
.hint { font-size: 13px; margin: 0; }
.checkline { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.checkline input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-link { align-self: center; font-size: 15px; }
.btn-small { height: 34px; padding: 0 14px; font-size: 14px; }
.status form { margin: 0; }
.copy-card { display: grid; gap: 12px; padding: 20px; border-radius: var(--radius); background: var(--surface); border-left: 4px solid var(--ok); }
.copy-card .sec-title { margin: 0; }
.copy-card-bad { border-left-color: var(--bad); }
.status form { display: flex; gap: 6px; flex-wrap: wrap; }
.copy-card p { margin: 0; }
.copy-status { font-size: 14px; font-weight: 600; align-self: center; }
.admin-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.admin-links a { display: grid; gap: 2px; padding: 16px 20px; border-radius: var(--radius); background: var(--surface); text-decoration: none; }
.admin-links a:hover { text-decoration: none; background: var(--line); }
.admin-links strong { font-size: 18px; }
.admin-links span { font-size: 14px; }

/* ---------- family: listens, loves, leaderboard ---------- */
.family-public p { margin: 0 0 8px; }
.family-actions { display: grid; gap: 8px; justify-items: center; margin-top: 6px; }
.family-actions .actions { margin: 0; }
.family-actions .btn svg { width: 18px; height: 18px; }
.family-actions .btn.is-on { background: var(--accent); color: var(--accent-ink); }
.family-actions .btn.is-on svg { fill: currentColor; }
.fam-you { margin: 0; font-size: 14px; color: #fff; text-align: center; }
.fam-undo { border: 0; background: transparent; padding: 0 2px; font: inherit; font-size: 14px; font-weight: 600; color: #fff; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (min-width: 768px) {
  .family-actions { justify-items: start; }
  .fam-you { text-align: left; }
}
.listen-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.listen-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.listen-row .result-main { min-width: 0; }
.listen-row .rm-text { display: grid; min-width: 0; line-height: 1.25; }
.listen-row .rm-text strong, .listen-row .rm-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listen-row .rm-text span { font-size: 14px; }
.listen-row .when { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fam-remove { width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.fam-remove svg { width: 16px; height: 16px; }
.fam-remove:hover { background: var(--line); }
.listen-row .fam-remove { grid-column: 3; }
.listen-row:has(.fam-remove) { grid-template-columns: 1fr auto auto; }
.love-tile { position: relative; }
.love-tile .fam-remove { position: absolute; top: 6px; right: 6px; background: var(--chrome); color: var(--chrome-ink); border-color: transparent; }
.grid-small { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; }
.grid-small .tile img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 6px; object-fit: cover; }
.grid-small .tile .t { font-size: 14px; font-weight: 700; line-height: 1.25; }
.grid-small .tile .a { font-size: 13px; line-height: 1.3; }
.cover-round, .cover-round img { border-radius: 999px; }
.cover-round .face-big { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--chrome); color: var(--chrome-ink); }
.cover-round .face-big svg { width: 40%; height: 40%; }
.avatar-img { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; }

/* ---------- homepage: the family panel ---------- */
.home { display: grid; gap: 48px; padding-top: 36px; padding-bottom: 64px; }
.panel { display: grid; gap: 32px; padding: 24px 20px; border-radius: var(--radius); background: var(--chrome); color: var(--chrome-ink); }
.panel a { color: var(--chrome-ink); }
.panel .sec-head h3 { font-size: 20px; margin: 0; }
.panel-col { display: grid; gap: 14px; align-content: start; min-width: 0; }
.played { list-style: none; margin: 0; padding: 0; display: grid; }
.played li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--chrome-line); }
.played li:first-child { border-top: 0; padding-top: 0; }
.played-album { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.played-album img, .played-album .cover-empty { width: 48px; height: 48px; border-radius: 4px; object-fit: cover; }
.played-album .cover-empty { display: flex; align-items: center; justify-content: center; background: var(--chrome-line); }
.played-album .cover-empty svg { width: 20px; height: 20px; }
.played-album:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.pl-text { display: grid; min-width: 0; line-height: 1.25; }
.pl-text strong, .pl-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-text span { font-size: 14px; }
.pl-who { display: grid; justify-items: end; gap: 5px; line-height: 1.2; font-size: 14px; text-align: right; }
.pl-who a { font-weight: 600; }
.pl-when { font-size: 13px; white-space: nowrap; }
.board .sec-head { flex-wrap: wrap; }
.board .seg { align-self: center; }
.board .seg button { color: var(--chrome-ink); }
.board .seg button[aria-selected="true"] { background: var(--chrome-ink); color: var(--chrome); }
.board-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.board-list li { display: grid; grid-template-columns: 28px 1fr auto; grid-template-areas: "rank who n" "rank bar bar"; align-items: center; gap: 4px 12px; padding: 8px 0; }
.board-list .rank { grid-area: rank; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; font-size: 15px; }
.board-list .who { grid-area: who; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.board-list .who:hover span { text-decoration: underline; text-underline-offset: 3px; }
.board-list .who .avatar { width: 28px; height: 28px; font-size: 12px; }
.board-list .who .avatar-img { width: 28px; height: 28px; }
.board-list .n { grid-area: n; font-variant-numeric: tabular-nums; font-weight: 600; }
.board-list .bar { grid-area: bar; display: block; height: 4px; border-radius: 2px; background: var(--chrome-line); overflow: hidden; }
.board-list .bar span { display: block; height: 100%; background: var(--accent); border-radius: 2px; }
.board-list .board-none { display: block; grid-template-columns: 1fr; }
.board-list[hidden] { display: none; }
@media (min-width: 900px) {
  .panel { grid-template-columns: 1.4fr 1fr; gap: 48px; padding: 28px 32px; }
}

/* ---------- explorer ---------- */
.explore { position: relative; height: calc(100vh - var(--header-h)); min-height: 520px; overflow: hidden; background: var(--chrome); color: var(--chrome-ink); }
.explore-svg { display: block; width: 100%; height: 100%; touch-action: none; }
.explore-start { position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; background: var(--chrome); text-align: center; }
.explore-start[hidden] { display: none; }
.explore-start h1 { font-size: clamp(34px, 6vw, 52px); }
.explore-start .lede { margin: 0; max-width: 40ch; }
.explore-search { position: relative; width: 480px; max-width: 100%; margin-top: 12px; }
.explore-search-icon { position: absolute; left: 16px; top: 17px; width: 20px; height: 20px; pointer-events: none; }
.explore-search .input { padding: 14px 16px 14px 46px; font-size: 17px; border-radius: 12px; background: #1B1A22; color: var(--chrome-ink); border-color: var(--chrome-line); }
.explore-search .input::placeholder { color: #8E8B9C; }
.explore-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; list-style: none; margin: 0; padding: 6px; max-height: 340px; overflow-y: auto; border-radius: 12px; background: #1B1A22; border: 1px solid var(--chrome-line); box-shadow: 0 12px 32px rgba(0, 0, 0, .45); text-align: left; }
.explore-results[hidden] { display: none; }
.explore-results li { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; cursor: pointer; }
.explore-results li:hover, .explore-results li.active { background: rgba(255, 255, 255, .1); }
.explore-results img, .explore-results .thumb, .explore-results .face { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }
.explore-results .face { border-radius: 999px; }
.explore-results .cover-empty, .explore-results .face-empty { display: flex; align-items: center; justify-content: center; background: #2A2836; }
.explore-results .cover-empty svg, .explore-results .face-empty svg { width: 18px; height: 18px; }
.explore-results .xr-text { display: grid; min-width: 0; line-height: 1.25; }
.explore-results .xr-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.explore-results .xr-name strong { color: var(--accent); }
.explore-results .xr-sub { font-size: 13px; }
.explore-results .arrow { margin: 0 2px; }
.explore-none { padding: 10px; }
.explore-stats { margin: 8px 0 0; font-size: 15px; }
.explore-close { position: absolute; top: 16px; right: 16px; }
.explore-close[hidden] { display: none; }
.explore-tools { position: absolute; top: 16px; left: 16px; right: 16px; z-index: 5; display: flex; justify-content: space-between; pointer-events: none; }
.explore-tools[hidden] { display: none; }
.explore-tools .icon-btn { pointer-events: auto; background: rgba(27, 26, 34, .9); border: 1px solid var(--chrome-line); font-size: 22px; font-weight: 600; }
.explore-zoom { display: flex; flex-direction: column; gap: 6px; }
.explore-legend { position: absolute; left: 16px; bottom: 16px; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.explore-legend[hidden] { display: none; }
.explore-legend .dot { display: inline-block; width: 12px; height: 12px; border-radius: 999px; vertical-align: -1px; margin-right: 4px; }
.explore-legend .dot-album { background: #C43D2C; }
.explore-legend .dot-artist { background: #3993E2; }
.explore-hint { width: 100%; }
.explore-card { position: absolute; z-index: 15; width: 280px; max-width: calc(100vw - 32px); padding: 16px; border-radius: 12px; background: #1B1A22; border: 1px solid var(--chrome-line); box-shadow: 0 12px 32px rgba(0, 0, 0, .5); display: grid; gap: 6px; justify-items: start; }
.explore-card[hidden] { display: none; }
.explore-card-close { position: absolute; top: 6px; right: 6px; }
.explore-card-img img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; display: block; }
.explore-card-img img.round { border-radius: 999px; }
.explore-card-img img[hidden] { display: none; }
.explore-card-name { margin: 0; padding-right: 36px; font-weight: 700; font-size: 17px; line-height: 1.25; }
.explore-card-sub { margin: 0; font-size: 14px; }
.explore-card .btn { margin-top: 6px; height: 38px; font-size: 14px; }
@media (max-width: 599px) {
  .explore-card { left: 16px !important; right: 16px; top: auto !important; bottom: 64px; width: auto; }
}
.x-link { stroke: #6B687A; stroke-width: 1.5; }
.x-node:focus, .x-node:focus-visible { outline: none; }
.x-node:focus-visible .x-ring { stroke: #fff; stroke-width: 3; }
.x-label { fill: #fff; font-size: 13px; font-weight: 600; text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: #0F0E14; stroke-width: 3px; stroke-linejoin: round; }
.x-label-center { font-size: 15px; font-weight: 700; }
.x-icon { fill: #B9B6C6; }
.x-info circle { fill: #1B1A22; stroke: #8E8B9C; stroke-width: 1.5; }
.x-info text { fill: #fff; font-size: 13px; font-weight: 700; font-style: italic; font-family: Georgia, serif; pointer-events: none; }
.x-info { cursor: pointer; }
.x-pulse { animation: x-pulse 1.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes x-pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .x-pulse { animation: none; opacity: .6; } }

/* ---------- writing ---------- */
.page-list { padding-top: 36px; padding-bottom: 64px; display: grid; gap: 24px; }
.post-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 24px; }
.post-card { display: grid; gap: 10px; align-content: start; text-decoration: none; color: inherit; }
.post-card:hover { color: inherit; text-decoration: none; }
.post-card img, .post-card .cover-empty { width: 100%; height: auto; aspect-ratio: 1; border-radius: 6px; object-fit: cover; display: flex; align-items: center; justify-content: center; transition: transform .2s ease; }
.post-card:hover img { transform: translateY(-3px); }
.post-card .cover-empty svg { width: 32px; height: 32px; }
.post-card-title { font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; margin-top: 4px; }
.post-card:hover .post-card-title { text-decoration: underline; text-underline-offset: 3px; }
.post-card-excerpt { font-size: 15px; line-height: 1.45; }
.col-main, .col-side { min-width: 0; }
.post-body { font-size: 18px; line-height: 1.6; max-width: 68ch; overflow-wrap: break-word; }
.post-body p, .post-body ul, .post-body ol, .post-body blockquote { margin: 0 0 1.2em; }
.yt-embed { position: relative; aspect-ratio: 16 / 9; margin: 0 0 1.2em; border-radius: var(--radius-sm); overflow: hidden; background: var(--chrome); }
.yt-play { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--chrome); cursor: pointer; }
.yt-play img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; display: block; }
.yt-btn { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); border-radius: 14px; background: #FF0033; color: #fff; display: flex; align-items: center; justify-content: center; transition: filter .15s; }
.yt-btn svg { width: 28px; height: 28px; }
.yt-play:hover .yt-btn, .yt-play:focus-visible .yt-btn { filter: brightness(1.12); }
.yt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-body h2 { font-size: 26px; margin: 1.6em 0 .5em; }
.post-body h3 { font-size: 21px; margin: 1.4em 0 .4em; }
.post-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: .4em 0; }
.post-body blockquote { padding-left: 16px; border-left: 3px solid var(--accent); font-style: italic; }
.post-body pre { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface); overflow-x: auto; font-size: 14px; }
.post-album { display: grid; gap: 16px; }
.post-album .result-main { padding: 10px 12px; }
.post-album .rm-text { display: grid; min-width: 0; line-height: 1.3; gap: 2px; }
.post-album .rm-text span { font-size: 14px; }
.post-title { display: grid; gap: 6px; }
.post-title .artist { display: block; font-size: clamp(18px, 3vw, 26px); font-weight: 500; line-height: 1.2; letter-spacing: 0; }
.post-date { font-size: 15px; margin-top: 2em; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-nav a { display: grid; gap: 4px; text-decoration: none; }
.post-nav a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.post-nav .eyebrow { color: var(--ink); }
.post-nav strong { font-size: 17px; line-height: 1.25; }
.post-nav-next { text-align: right; justify-items: end; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tag { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 500; text-decoration: none; }
.tag:hover { background: var(--line); text-decoration: none; }
.tracks-compact .track { padding: 6px 12px 6px 6px; font-size: 15px; }
.tracks-compact .pos { display: none; }
.tracks-compact .track { grid-template-columns: 40px 1fr auto; }
.tracks-compact .track-static { grid-template-columns: 1fr auto; padding-left: 14px; }
.wrote-cta { display: grid; gap: 8px; padding: 18px 20px; border-radius: var(--radius); background: var(--chrome); color: var(--chrome-ink); text-decoration: none; transition: transform .15s; }
.wrote-cta:hover { color: var(--chrome-ink); text-decoration: none; transform: translateY(-2px); }
.wrote-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.wrote-title { font-size: 17px; font-weight: 700; line-height: 1.3; }
.wrote-more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--accent-dark, #F0665D); }
.wrote-more svg { width: 14px; height: 14px; }
.wrote-cta:hover .wrote-more { text-decoration: underline; text-underline-offset: 3px; }
.strip-posts .a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.page-wide { max-width: 860px; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.album-pick { position: relative; }
.album-results { position: absolute; left: 0; right: 0; top: calc(100% - 26px); z-index: 20; margin: 0; padding: 6px; list-style: none; max-height: 320px; overflow-y: auto; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0, 0, 0, .18); }
.album-results[hidden] { display: none; }
.album-results li { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.album-results li:hover, .album-results li.active { background: var(--surface); }
.album-results .thumb { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; background: var(--surface); }
.album-results .rm-text { display: grid; line-height: 1.25; }
.album-results .rm-text span { font-size: 13px; }
.editor { background: var(--bg); border-radius: 0 0 var(--radius-sm) var(--radius-sm); min-height: 320px; font-size: 17px; line-height: 1.55; }
.ql-toolbar.ql-snow { border-color: var(--line); border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: var(--surface); }
.ql-container.ql-snow { border-color: var(--line); }
.ql-snow .ql-stroke { stroke: var(--ink); }
.ql-snow .ql-fill { fill: var(--ink); }
.ql-snow .ql-picker { color: var(--ink); }
/* Quill's own stylesheet loads after this one, so these carry extra weight. */
.editor .ql-editor { min-height: 320px; padding: 16px 18px; color: var(--ink); font-size: 17px; line-height: 1.6; }
.editor .ql-editor.ql-blank::before { color: var(--ink-3); font-style: normal; }
.editor .ql-editor p, .editor .ql-editor ul, .editor .ql-editor ol, .editor .ql-editor blockquote, .editor .ql-editor h2, .editor .ql-editor h3 { margin: 0 0 1em; }
.editor .ql-editor li { margin: 0 0 .2em; }
.editor .ql-editor li > ul, .editor .ql-editor li > ol { margin: .2em 0 0; }
.editor .ql-editor blockquote { padding-left: 16px; border-left: 3px solid var(--accent); font-style: italic; }
.editor .ql-editor img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }

/* ---------- admin bar and admin forms ---------- */
#admin-bar { background: var(--chrome); color: var(--chrome-ink); border-bottom: 1px solid var(--chrome-line); font-size: 14px; }
#admin-bar .wrap { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-height: 40px; padding-top: 4px; padding-bottom: 4px; }
#admin-bar .admin-bar-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-right: 8px; }
#admin-bar a, #admin-bar button { display: inline-block; padding: 6px 10px; border: 0; border-radius: 999px; background: transparent; color: var(--chrome-ink); font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; }
#admin-bar a:hover, #admin-bar button:hover { background: rgba(255, 255, 255, .14); text-decoration: underline; text-underline-offset: 4px; }
#admin-bar form { margin: 0; display: inline; }
.eyebrow-link { margin: 0; font-size: 14px; }
.pick { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.pick legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.pick-row { display: grid; grid-template-columns: 20px auto 1fr; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius-sm); background: var(--bg); cursor: pointer; }
.pick-row img { width: 60px; height: 60px; border-radius: 4px; }
.pick-row input { accent-color: var(--accent); width: 18px; height: 18px; }
.admin-cover { width: 160px; height: 160px; border-radius: var(--radius-sm); object-fit: cover; }
.admin-face { border-radius: 999px; }
.btn-danger { color: var(--bad); border-color: var(--bad); }
input[type="file"].input { padding: 8px; }

/* ---------- banner photos admin ---------- */
.assign-grid { display: grid; gap: 14px; }
@media (min-width: 600px) { .assign-grid { grid-template-columns: 1fr 1fr; } }
select.input { appearance: auto; }
.banner-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.banner-list li { display: grid; gap: 12px; }
.banner-list img { width: 100%; height: auto; aspect-ratio: 5 / 2; object-fit: cover; border-radius: var(--radius-sm); }
.banner-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.banner-meta span { font-size: 14px; }
.banner-meta form { margin: 0 0 0 auto; }
@media (min-width: 600px) { .banner-list li { grid-template-columns: 240px 1fr; align-items: center; } .banner-meta { display: grid; gap: 4px; } .banner-meta form { margin: 6px 0 0; } }

/* ---------- signed in ---------- */
.user { position: relative; display: flex; align-items: center; }
.user-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 999px; background: transparent; cursor: pointer; }
.user-btn:hover, .user-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .16); }
.user-btn .avatar-img { width: 32px; height: 32px; }
.user-btn .avatar { font-size: 14px; }
.user-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; z-index: 50;
  display: grid; padding: 6px; border-radius: var(--radius-sm); background: var(--chrome); border: 1px solid var(--chrome-line); box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
}
.user-menu a, .user-menu button { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 6px; background: transparent; text-align: left; font: inherit; font-size: 15px; font-weight: 500; color: var(--chrome-ink); text-decoration: none; cursor: pointer; }
.user-menu a:hover, .user-menu button:hover { background: rgba(255, 255, 255, .12); text-decoration: none; }
.user-menu form { margin: 0; }
.user-menu[hidden] { display: none; }
.menu-user a, .menu-user button { display: block; width: 100%; padding: 16px 4px; border: 0; border-bottom: 1px solid var(--chrome-line); background: transparent; text-align: left; font: inherit; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; color: var(--chrome-ink); cursor: pointer; }
.menu-user form { margin: 0; }
@media (min-width: 768px) {
  .user .login { display: inline-block; }
}

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); z-index: 70;
  padding: 10px 14px 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg);
  font-size: 14px; display: flex; align-items: center; gap: 12px; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; box-shadow: 0 8px 30px rgba(0, 0, 0, .25); white-space: nowrap;
}
#toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#toast button { border: 0; background: transparent; color: var(--accent); font-weight: 600; padding: 4px 6px; }
