/* ==========================================================
   Lightsong Studio
   Gallery-quiet layout: white space, square art, centered serif titles.
   Colors live in :root — dark mode values are below it.
   ========================================================== */

:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --ink: #1b1a1f;
  --ink-2: #4a4650;          /* secondary text that still needs to be read */
  --muted: #7d7984;
  --soft: #b9b5bd;
  --line: #e9e6ec;
  --accent: #b08a3e;          /* warm gold — the "light" */
  --glow: 255, 220, 160;      /* rgb for the cursor light on covers */
  --wrap: 1240px;
  --display: "Playfair Display", Didot, Georgia, serif;
  --sans: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111013;
    --paper: #18171b;
    --ink: #eeebf0;
    --ink-2: #cdc8d3;
    --muted: #a7a2ae;
    --soft: #5f5a66;
    --line: #29262d;
    --accent: #d9b26a;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; }
em { font-style: italic; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .wrap { padding: 0 20px; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* small caps label style, used throughout */
.caps, .nav-left a, .nav-right a, .wordmark-sub, .chip, .card-roles, .specs dt, .kicker {
  font-family: var(--sans); font-size: .76rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase;
}

/* underline that draws in from the left */
.draw {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--ease), color .25s;
}
.draw:hover, .draw[aria-current="true"] { background-size: 100% 1px; }

/* ---------- Header ---------- */
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding-top: 52px; padding-bottom: 20px;
}
.nav-left, .nav-right { display: flex; gap: 28px; }
.nav-right { justify-content: flex-end; }
.nav-left a, .nav-right a { color: var(--ink); text-decoration: none; padding: 4px 0;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--ease), color .25s; }
.nav-left a:hover, .nav-right a:hover { color: var(--accent); background-size: 100% 1px; }

.wordmark { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.wordmark-name { font-family: var(--display); font-size: 2rem; line-height: 1.1; letter-spacing: .14em; padding-left: .14em; }
.wordmark-sub { color: var(--ink-2); margin-top: 6px; padding: 0 .2em 9px; border-bottom: 1px solid var(--ink); }
.wordmark:hover .wordmark-sub { border-color: var(--accent); }

@media (max-width: 860px) {
  .header-inner { grid-template-columns: 1fr; justify-items: center; gap: 22px; padding-top: 36px; }
  .wordmark { order: -1; }
  .nav-left, .nav-right { gap: 22px; }
  .nav-right { justify-content: center; }
}

.tagline {
  text-align: center; font-family: var(--display); font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: var(--ink-2); margin-top: 22px; margin-bottom: 0;
}
.tagline em { color: var(--ink); }

/* ---------- Sections ---------- */
.work { padding-top: 56px; padding-bottom: 96px; }
.about, .contact, .listen { padding-top: 88px; padding-bottom: 96px; border-top: 1px solid var(--line); max-width: 1040px; }
.listen[hidden] { display: none; }
.listen-blurb { text-align: center; margin: 22px auto 0; max-width: 34em; }
.listen-blurb:empty { display: none; }
.listen-actions { text-align: center; margin: 26px 0 0; }
.play-all { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.play-all-icon { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; transition: background .25s, color .25s; }
.play-all-icon .glyph { border-left-width: 9px; border-top-width: 6px; border-bottom-width: 6px; margin-left: 2px; }
.play-all:hover .play-all-icon, .play-all.is-playing .play-all-icon { background: var(--ink); color: var(--bg); }
.play-all.is-playing .glyph { width: 9px; height: 10px; margin: 0; border: 0; background: linear-gradient(90deg, currentColor 0 3px, transparent 3px 6px, currentColor 6px); }
.listen-tracks { max-width: 760px; margin: 36px auto 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.listen-tracks .track { padding: 14px 4px; }
.listen-tracks .track-title { font-family: var(--display); font-size: 1.15rem; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); line-height: 1.15; text-align: center; }
h2::after { content: ""; display: block; width: 44px; height: 1px; background: var(--ink); margin: 22px auto 0; opacity: .6; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin-bottom: 52px; }
.filters[hidden] { display: none; }
.chip {
  border: 0; background: none; cursor: pointer; padding: 4px 0; color: var(--muted);
  background-image: linear-gradient(var(--ink), var(--ink)); background-position: 50% 100%; background-size: 0 1px; background-repeat: no-repeat;
  transition: color .25s, background-size .45s var(--ease);
}
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { color: var(--ink); background-size: 100% 1px; }

/* ---------- Project grid ---------- */
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 64px 52px;
}
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 56px 40px; } }
@media (max-width: 820px)  { .grid { grid-template-columns: repeat(2, 1fr); gap: 48px 28px; } }
@media (max-width: 480px)  { .grid { grid-template-columns: 1fr; } }
.grid > li[hidden] { display: none; }

.card { position: relative; container-type: inline-size; }
.card-open { all: unset; display: block; width: 100%; cursor: pointer; }
.card-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; }

.card-art { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--line); }
.card-art img, .card-art .placeholder {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease), filter .6s;
}
/* the "light": a soft glow that follows the cursor */
.card-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--glow), .42), transparent 50%);
  mix-blend-mode: soft-light; transition: opacity .5s;
}
.card:hover .card-art img, .card:hover .card-art .placeholder { transform: scale(1.04); }
.card:hover .card-art::after { opacity: 1; }

/* placeholder art for projects without a cover image */
.placeholder {
  background:
    radial-gradient(110% 90% at 22% 18%, hsl(var(--hue) 75% 80% / .95), transparent 55%),
    radial-gradient(90% 80% at 82% 88%, hsl(calc(var(--hue) + 35) 60% 58% / .8), transparent 60%),
    linear-gradient(160deg, hsl(var(--hue) 40% 90%), hsl(calc(var(--hue) + 20) 32% 68%));
  display: grid; place-items: center;
}
.placeholder span { font-family: var(--display); font-style: italic; font-size: 34cqw; line-height: 1; color: hsl(var(--hue) 30% 98% / .5); }
@media (prefers-color-scheme: dark) {
  .placeholder {
    background:
      radial-gradient(110% 90% at 22% 18%, hsl(var(--hue) 60% 55% / .7), transparent 55%),
      radial-gradient(90% 80% at 82% 88%, hsl(calc(var(--hue) + 35) 50% 40% / .7), transparent 60%),
      linear-gradient(160deg, hsl(var(--hue) 25% 22%), hsl(calc(var(--hue) + 20) 25% 12%));
  }
}

/* listen-from-the-card button: pinned to the cover's bottom-right corner */
.card-play {
  position: absolute; right: 14px; top: calc(100cqw - 60px); z-index: 2;
  opacity: 0; transform: translateY(6px) scale(.9);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.card:hover .card-play, .card:focus-within .card-play, .card.is-current .card-play { opacity: 1; transform: none; }
@media (hover: none) { .card-play { opacity: 1; transform: none; } }
.card-play.is-unavailable { display: none; } /* no clip uploaded yet */

/* progress hairline along the bottom of the cover while that project plays */
.card-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 1; background: rgba(255, 255, 255, .3); opacity: 0; transition: opacity .3s; }
.card-progress span { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: #fff; }
.card.is-current .card-progress { opacity: 1; }

/* text block — centered, like a gallery label */
.card-meta { text-align: center; padding: 30px 6px 0; }
.card h3 { font-size: 1.4rem; font-weight: 500; line-height: 1.35; letter-spacing: .005em; }
.card-year { white-space: nowrap; }

/* the short rule under the title: grows on hover, becomes an equalizer while playing */
.eq { display: flex; justify-content: center; align-items: flex-end; height: 14px; margin: 14px auto 14px; gap: 0; }
.eq i {
  display: block; width: 8px; height: 1px; background: var(--ink); opacity: .55;
  transition: width .45s var(--ease), height .3s, margin .45s var(--ease), background .3s, opacity .3s;
}
.card:hover .eq i { width: 12px; background: var(--accent); opacity: 1; }
.card.is-playing .eq { gap: 3px; }
.card.is-playing .eq i { width: 3px; background: var(--accent); opacity: 1; animation: eq 1s ease-in-out infinite alternate; }
.card.is-playing .eq i:nth-child(2) { animation-duration: .7s; }
.card.is-playing .eq i:nth-child(3) { animation-duration: 1.2s; }
.card.is-playing .eq i:nth-child(4) { animation-duration: .85s; }
.card.is-playing .eq i:nth-child(5) { animation-duration: 1.05s; }
@keyframes eq { 0% { height: 2px; } 100% { height: 14px; } }

.card-roles { margin: 0; color: var(--ink-2); font-size: .72rem; font-weight: 700; }
.card-spec { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--muted); }
.card-roles + .card-spec { margin-top: 8px; }

/* ---------- Play buttons ---------- */
.play-btn {
  --size: 44px;
  width: var(--size); height: var(--size); border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; flex-shrink: 0;
  background: rgba(255, 255, 255, .94); color: #1b1a1f;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .35);
  transition: transform .2s var(--ease), background .2s;
}
.play-btn:hover { transform: scale(1.07); }
.play-btn.small { --size: 34px; background: var(--ink); color: var(--bg); box-shadow: none; }
.play-btn.line { --size: 34px; background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.play-btn.line:hover { border-color: var(--ink); }
.glyph { width: 0; height: 0; margin-left: 3px; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.play-btn.is-playing .glyph { width: 11px; height: 12px; margin: 0; border: 0; background: linear-gradient(90deg, currentColor 0 4px, transparent 4px 7px, currentColor 7px); }
.play-btn.small .glyph, .play-btn.line .glyph { border-left-width: 9px; border-top-width: 6px; border-bottom-width: 6px; margin-left: 2px; }
.play-btn.small.is-playing .glyph, .play-btn.line.is-playing .glyph { width: 9px; height: 10px; margin: 0; background: linear-gradient(90deg, currentColor 0 3px, transparent 3px 6px, currentColor 6px); }
.is-unavailable { opacity: .4; cursor: not-allowed; }

/* ---------- About ---------- */
.about-photo { margin: 48px 0 0; overflow: hidden; background: var(--line); }
.about-photo[hidden] { display: none; }
.about-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 42%; transition: transform 1.4s var(--ease); }
.about-photo:hover img { transform: scale(1.02); }
@media (max-width: 600px) { .about-photo { margin-top: 36px; } .about-photo img { aspect-ratio: 4 / 3; } }
.about-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; margin-top: 48px; }
.about-text p { margin: 0 0 1.1em; font-size: 1.05rem; }
.about-text p + p { color: var(--ink-2); }
.details { margin: 0; }
.details div { padding: 14px 0; border-top: 1px solid var(--line); }
.details div:last-child { border-bottom: 1px solid var(--line); }
.details dt { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.details dd { margin: 2px 0 0; }
@media (max-width: 760px) { .about-cols { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact h2 em { color: var(--accent); }
.contact p { margin: 22px 0 26px; }
.email {
  font-family: var(--display); font-size: clamp(1.5rem, 4.5vw, 2.2rem);
  text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 50% 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease), color .3s;
}
.email:hover { color: var(--accent); background-size: 100% 1px; }
.socials { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.socials a { text-decoration: none; color: var(--muted); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; transition: color .2s; }
.socials a:hover { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 28px; padding-bottom: 36px; border-top: 1px solid var(--line);
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
body.has-player .site-footer { padding-bottom: 104px; }

/* ---------- Detail sheet ---------- */
.sheet {
  width: min(940px, calc(100% - 32px)); max-height: calc(100% - 48px);
  padding: 0; border: 0; background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 90px -20px rgba(0, 0, 0, .4);
}
.sheet::backdrop { background: rgba(255, 255, 255, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
@media (prefers-color-scheme: dark) { .sheet::backdrop { background: rgba(10, 9, 12, .7); } }
.sheet[open] { animation: sheet-in .5s var(--ease); }
.sheet[open]::backdrop { animation: fade-in .35s ease; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes fade-in { from { opacity: 0; } }

.sheet-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.sheet-art { position: sticky; top: 0; aspect-ratio: 1; background: var(--line); container-type: inline-size; }
.sheet-art img, .sheet-art .placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sheet-art .placeholder span { font-size: 34cqw; }
.sheet-inner.has-video { grid-template-columns: 1fr; }
.sheet-inner.has-video .sheet-art { position: relative; aspect-ratio: 16 / 9; background: #000; }
.sheet-inner.has-video .sheet-body { max-width: 640px; margin: 0 auto; width: 100%; }
.sheet-inner.has-video .sheet-close { color: #fff; background: rgba(17, 16, 19, .45); }
.sheet-inner.has-video .sheet-close:hover { background: rgba(17, 16, 19, .7); color: #fff; }
.sheet-art iframe, .sheet-art video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.video-facade { all: unset; position: absolute; inset: 0; cursor: pointer; display: grid; place-items: center; }
.video-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .4s; }
.video-facade:hover img { transform: scale(1.02); filter: brightness(.85); }
.video-facade:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.video-play { position: relative; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: #1b1a1f; box-shadow: 0 10px 30px -8px rgba(0,0,0,.5); transition: transform .25s var(--ease); }
.video-play .glyph { border-left-width: 18px; border-top-width: 11px; border-bottom-width: 11px; margin-left: 5px; }
.video-facade:hover .video-play { transform: scale(1.08); }
.video-label { position: absolute; left: 16px; bottom: 14px; color: #fff; font-size: .7rem; letter-spacing: .2em; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.sheet-body { padding: 48px 44px 32px; text-align: center; }
.sheet-meta { margin: 0 0 10px; color: var(--muted); }
.sheet h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.sheet-desc { margin: 22px 0 0; color: var(--ink-2); text-align: left; }
.sheet-link { display: inline-block; margin-top: 26px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
  text-decoration: none; padding-bottom: 4px; background: linear-gradient(var(--accent), var(--accent)) 50% 100% / 30% 1px no-repeat; transition: background-size .45s var(--ease); }
.sheet-link:hover { background-size: 100% 1px; }
.sheet-link:empty { display: none; }
.sheet-nav { grid-column: 1 / -1; display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 14px 24px; }
.sheet-nav[hidden] { display: none; }
.sheet-close { position: absolute; top: 12px; right: 12px; z-index: 2; }

/* spec table: what we did */
.specs { margin: 26px 0 0; text-align: left; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.specs dt { color: var(--muted); font-size: .7rem; }
.specs dd { margin: 0; font-size: .93rem; }

.tracklist { list-style: none; padding: 0; margin: 26px 0 0; text-align: left; }
.track { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 10px 0; }
.track.is-current .track-title { color: var(--accent); }
.track-from { display: block; margin-top: 2px; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.track-from a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease), color .2s; }
.track-from a:hover { color: var(--ink); background-size: 100% 1px; }
.track-ext { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--muted); white-space: nowrap; }
.track-ext:hover { color: var(--ink); }
@media (max-width: 520px) { .track-ext { display: none; } }
.track + .track { border-top: 1px solid var(--line); }
.track-main { min-width: 0; }
.track-title { display: block; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-bar { margin-top: 7px; }
.track-time { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .sheet { max-height: calc(100% - 24px); width: calc(100% - 20px); }
  .sheet-inner { grid-template-columns: 1fr; }
  .sheet-art { position: relative; aspect-ratio: 16 / 10; }
  .sheet-art .placeholder span { font-size: 22cqw; }
  .sheet-body { padding: 30px 22px 22px; }
}

/* ---------- Seek bars (shared) ---------- */
.bar { position: relative; height: 2px; background: var(--line); cursor: pointer; }
.bar::before { content: ""; position: absolute; inset: -9px 0; }
.bar span { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--accent); }

/* ---------- Buttons ---------- */
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--muted); transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--line); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.text-btn { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; padding: 6px 2px; transition: color .2s; }
.text-btn:hover { color: var(--ink); }

/* ---------- Now-playing bar ---------- */
.player {
  position: fixed; left: 50%; bottom: 16px; z-index: 30; transform: translateX(-50%);
  width: min(900px, calc(100% - 24px));
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(80px, 1.3fr) auto auto auto auto;
  grid-template-areas: "controls info bar time vol link close";
  align-items: center; gap: 14px;
  padding: 8px 10px;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .3);
  animation: player-in .45s var(--ease);
}
.player[hidden] { display: none; }
@keyframes player-in { from { opacity: 0; transform: translate(-50%, 14px); } }
.player-controls { grid-area: controls; display: flex; align-items: center; gap: 2px; }
.player-controls .icon-btn svg { stroke-linejoin: round; }
.player-controls .icon-btn:disabled { opacity: .3; cursor: default; background: none; }
.player-info { grid-area: info; min-width: 0; line-height: 1.3; }
.player-title, .player-from { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-title { font-family: var(--display); font-size: .98rem; }
.player-from { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.player-bar { grid-area: bar; position: relative; height: 2px; background: var(--line); cursor: pointer; }
.player-bar::before { content: ""; position: absolute; inset: -10px 0; }
.player-bar span { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--accent); }
.player-time { grid-area: time; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.player-vol { grid-area: vol; display: flex; align-items: center; gap: 4px; }
#p-mute .vol-off, #p-mute.is-muted .vol-on { display: none; }
#p-mute.is-muted .vol-off { display: block; }
.vol-slider {
  -webkit-appearance: none; appearance: none; width: 84px; height: 2px; cursor: pointer; outline: none;
  background: linear-gradient(var(--accent), var(--accent)) 0 / var(--vol, 100%) 100% no-repeat, var(--line);
}
.vol-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 0; }
.vol-slider::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 0; }
.vol-slider:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.player-link { grid-area: link; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--ink); white-space: nowrap; }
.player-link:hover { color: var(--accent); }
.player-link[hidden] { display: none; }
#player-close { grid-area: close; }
@media (max-width: 760px) {
  .player {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas: "controls info vol close" "bar bar bar time";
    gap: 6px 10px; padding: 8px 10px 10px; bottom: 10px;
  }
  .player-link, .vol-slider { display: none; }
  .player-bar { margin: 0 4px; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 90px; z-index: 40; transform: translate(-50%, 10px);
  background: var(--ink); color: var(--bg); padding: 9px 18px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; }
.notfound h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-top: 48px; }
.notfound h1 em { color: var(--accent); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.visible { opacity: 1; transform: none; }

::view-transition-group(*) { animation-duration: .5s; animation-timing-function: var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
