/* brandondelacruz.ca — Brutalist v2
   Real site styles. Mono grid, comfortable red, ink-on-paper. */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

:root {
  --ink: #1a1714;
  --ink-soft: #5c544c;
  --ink-faint: #8a847e;
  --paper: #f4f2ee;
  --paper-warm: #eceae4;
  --accent: #c14a3d;
  --accent-soft: #f5d9d3;
  --rule: 2px solid var(--ink);
  --rule-thin: 1px solid var(--ink);
  --rule-faint: 1px solid rgba(26, 23, 20, 0.15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0;
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ─── Layout ─── */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Navigation ─── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: var(--rule);
}
.site-nav--dark {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1.5px solid var(--paper);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 12px;
}
.site-nav .brand {
  font-weight: 700;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-favicon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.site-nav .links {
  display: flex;
  gap: 22px;
}
.site-nav .links a {
  position: relative;
  font-weight: 400;
  transition: color 0.15s;
}
.site-nav .links a:hover { color: var(--accent); }
.site-nav .links a.active {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.site-nav .menu-btn { display: none; }

@media (max-width: 760px) {
  .site-nav .links { display: none; }
  .site-nav .links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--paper);
    padding: 18px 24px;
    border-bottom: var(--rule);
    gap: 16px;
    font-size: 14px;
  }
  .site-nav--dark .links.open { background: var(--ink); border-bottom-color: var(--paper); }
  .site-nav .menu-btn {
    display: inline-flex;
    background: transparent;
    border: 1.5px solid currentColor;
    color: inherit;
    padding: 4px 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
  }
}

/* ─── Footer ─── */
.site-footer {
  border-top: var(--rule);
  padding: 32px 0;
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 80px;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.site-footer .col-title { color: var(--ink); font-weight: 700; margin-bottom: 6px; }
.site-footer a:hover { color: var(--accent); }

/* ─── File header (FILE: 0X_PAGE) ─── */
.file-tag {
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}
.file-tag .accent { color: var(--accent); }

/* ─── Mega heading ─── */
.mega {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: clamp(48px, 9vw, 110px);
  line-height: 0.85;
  letter-spacing: -0.025em;
  margin: 14px 0 0;
}
.mega .dot { color: var(--accent); }

/* ─── Rules ─── */
.rule { border-top: var(--rule); margin: 24px 0; }
.rule-thin { border-top: var(--rule-thin); margin: 18px 0; }

/* ─── Tracks note ─── */
.tracks-note {
  font-size: 10px;
  color: var(--ink-faint);
  margin: 10px 0 0;
  letter-spacing: 0.04em;
  text-transform: none;
}

/* ─── Section header strip ─── */
.section-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--ink-soft);
  padding: 10px 0;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--ink); color: var(--paper); transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--ink); }
.btn--accent { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.btn--accent:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: 4px 4px 0 var(--accent); }
.btn--ghost { background: transparent; }
.btn--lg { padding: 14px 22px; font-size: 12px; }

/* ─── Rectangle text (overlays) ─── */
.rect {
  display: inline-block;
  background: var(--paper);
  color: var(--ink);
  padding: 6px 12px;
  font-weight: 600;
  font-size: 12px;
}
.rect--ink { background: var(--ink); color: var(--paper); }
.rect--accent { background: var(--accent); color: var(--paper); }
.rect--outline { background: transparent; border: 1.5px solid currentColor; }
.rect--lg { padding: 10px 16px; font-size: 14px; }

/* ─── Image placeholder ─── */
.imgph {
  position: relative;
  background: var(--paper-warm);
  background-image: repeating-linear-gradient(135deg, rgba(26,23,20,0.13) 0, rgba(26,23,20,0.13) 1px, transparent 1px, transparent 12px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 10px;
  border: 1.5px solid var(--ink);
  overflow: hidden;
}
.imgph--dark {
  background: var(--ink);
  background-image: repeating-linear-gradient(135deg, rgba(255,250,242,0.13) 0, rgba(255,250,242,0.13) 1px, transparent 1px, transparent 12px);
  border-color: var(--ink);
}
.imgph__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  background: var(--ink);
  color: var(--paper);
  padding: 3px 7px;
  text-transform: uppercase;
}
.imgph--dark .imgph__label { background: var(--paper); color: var(--ink); }

/* ─── HOME hero ─── */
.hero {
  position: relative;
  min-height: calc(100vh - 50px);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  top: -70%;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--ink) url('hero.jpg') center top / cover no-repeat;
  will-change: transform;
}
.hero__bg-label {
  position: absolute;
  bottom: 18px;
  right: 18px;
  font-size: 9px;
  letter-spacing: 0.1em;
  background: var(--paper);
  color: var(--ink);
  padding: 3px 8px;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: calc(100vh - 50px);
  padding: 32px 24px;
  max-width: 1280px;
  margin: 0 auto;
  gap: 24px;
}
.hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.hero__emblem {
  position: relative;
  width: 88px;
  height: 88px;
  cursor: pointer;
  flex-shrink: 0;
  overflow: visible;
}
.hero__emblem img {
  position: absolute;
  object-fit: contain;
  transition: opacity 0.3s ease;
}
.hero-emblem__default {
  width: calc(var(--emblem-size, 88px) * 0.818);
  height: calc(var(--emblem-size, 88px) * 0.818);
  top: 0;
  right: 0;
  left: auto;
}
.hero-emblem__hover {
  opacity: 0;
  width: calc(var(--emblem-size, 88px) * 0.966);
  height: calc(var(--emblem-size, 88px) * 0.966);
  top: calc(var(--emblem-size, 88px) * -0.102);
  right: calc(var(--emblem-size, 88px) * -0.091);
  left: auto;
}
.hero__emblem:hover .hero-emblem__default { opacity: 0; }
.hero__emblem:hover .hero-emblem__hover   { opacity: 1; }
.hero__title { align-self: center; max-width: 900px; }
.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.hero .mega {
  background: var(--paper);
  color: var(--ink);
  padding: 14px 22px;
  display: inline-block;
  margin: 0;
}
.hero__sub {
  display: inline-block;
  margin-top: 10px;
  background: var(--accent);
  color: var(--paper);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.hero__index {
  background: var(--paper);
  color: var(--ink);
  padding: 18px 20px;
  border: 2px solid var(--paper);
  min-width: 320px;
  max-width: 380px;
}
.hero__index-title { font-size: 10px; color: var(--ink-soft); margin-bottom: 8px; }
.hero__index ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.hero__index li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
}
.hero__index li:hover { color: var(--accent); }
.hero__index li:hover .arr { color: var(--accent); }
.hero__index .arr { color: var(--accent); font-weight: 700; transition: transform .15s; }
.hero__index li:hover .arr { transform: translateX(4px); }

@media (max-width: 760px) {
  .hero__index { min-width: 0; width: 100%; }
}

/* ─── SPA sections ─── */
#spa-wrap {
  position: relative;
  overflow: hidden;
}
.spa-section { display: none; }
.spa-section.active { display: block; }
body.has-player .spa-section.active { padding-bottom: 68px; }
@media (max-width: 680px) {
  body.has-player .spa-section.active { padding-bottom: 100px; }
}

/* Slide transitions */
.spa-section.is-leaving {
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0;
  pointer-events: none;
  z-index: 1;
  will-change: transform, opacity;
}
.spa-section.is-entering {
  display: block;
  position: relative;
  z-index: 2;
}

/* Outgoing: recede + fade (depth cue — old page retreats) */
@keyframes spaOutLeft  { from { transform: translateX(0); opacity: 1; } to { transform: translateX(-22%); opacity: 0; } }
@keyframes spaOutRight { from { transform: translateX(0); opacity: 1; } to { transform: translateX(22%);  opacity: 0; } }
/* Incoming: slide from full offset with spring easing */
@keyframes spaInRight  { from { transform: translateX(100%); opacity: 0.6; } to { transform: translateX(0); opacity: 1; } }
@keyframes spaInLeft   { from { transform: translateX(-100%); opacity: 0.6; } to { transform: translateX(0); opacity: 1; } }

.spa-section.anim-out-left  { animation: spaOutLeft  0.5s  cubic-bezier(0.4,0,1,1)     both; }
.spa-section.anim-out-right { animation: spaOutRight 0.5s  cubic-bezier(0.4,0,1,1)     both; }
.spa-section.anim-in-right  { animation: spaInRight  0.62s cubic-bezier(0.16,1,0.3,1)  both; }
.spa-section.anim-in-left   { animation: spaInLeft   0.62s cubic-bezier(0.16,1,0.3,1)  both; }

/* ── Element keyframes ───────────────────────────────────────────────────── */
@keyframes elFadeUp   { from { transform: translateY(30px);  opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes elFadeLeft { from { transform: translateX(-48px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes elFade     { from { opacity: 0; } to { opacity: 1; } }

/* ── Page-transition element stagger (.is-entering) ─────────────────────── */
/* Home */
.is-entering .hero__top    { animation: elFade     0.5s ease                        0.1s  both; }
.is-entering .hero__title  { animation: elFadeLeft 0.72s cubic-bezier(0.16,1,0.3,1) 0.24s both; }
.is-entering .hero__bottom { animation: elFadeUp   0.65s cubic-bezier(0.16,1,0.3,1) 0.36s both; }
/* Interior — structural */
.is-entering .page-head    { animation: elFadeUp   0.52s cubic-bezier(0.16,1,0.3,1) 0.08s both; }
.is-entering .mega         { animation: elFadeLeft 0.72s cubic-bezier(0.16,1,0.3,1) 0.14s both; }
.is-entering .rule         { animation: elFade     0.4s  ease                        0.3s  both; }
.is-entering .filters      { animation: elFadeUp   0.4s  ease                        0.26s both; }
/* Content blocks — stagger individually so containers don't override children */
.is-entering .about-grid   { animation: elFadeUp   0.62s cubic-bezier(0.16,1,0.3,1) 0.34s both; }
.is-entering .contact-grid { animation: elFadeUp   0.62s cubic-bezier(0.16,1,0.3,1) 0.34s both; }
.is-entering .specs        { animation: elFadeUp   0.55s cubic-bezier(0.16,1,0.3,1) 0.48s both; }
/* Tiers — each tile staggers */
.is-entering .tiers .tier:nth-child(1) { animation: elFadeUp 0.55s cubic-bezier(0.16,1,0.3,1) 0.22s both; }
.is-entering .tiers .tier:nth-child(2) { animation: elFadeUp 0.55s cubic-bezier(0.16,1,0.3,1) 0.33s both; }
.is-entering .tiers .tier:nth-child(3) { animation: elFadeUp 0.55s cubic-bezier(0.16,1,0.3,1) 0.44s both; }
/* Cards — each card staggers */
.is-entering .cards .card:nth-child(1) { animation: elFadeUp 0.55s cubic-bezier(0.16,1,0.3,1) 0.3s  both; }
.is-entering .cards .card:nth-child(2) { animation: elFadeUp 0.55s cubic-bezier(0.16,1,0.3,1) 0.42s both; }
.is-entering .cards .card:nth-child(3) { animation: elFadeUp 0.55s cubic-bezier(0.16,1,0.3,1) 0.54s both; }
/* Track list — header then rows ripple in */
.is-entering .tracks .tracks__head     { animation: elFade   0.35s ease                        0.24s both; }
.is-entering .tracks .track:nth-child(2) { animation: elFadeUp 0.45s ease 0.28s both; }
.is-entering .tracks .track:nth-child(3) { animation: elFadeUp 0.45s ease 0.34s both; }
.is-entering .tracks .track:nth-child(4) { animation: elFadeUp 0.45s ease 0.40s both; }
.is-entering .tracks .track:nth-child(5) { animation: elFadeUp 0.45s ease 0.46s both; }
.is-entering .tracks .track:nth-child(6) { animation: elFadeUp 0.45s ease 0.52s both; }
.is-entering .tracks .track:nth-child(7) { animation: elFadeUp 0.45s ease 0.58s both; }

/* ── Initial page load (.is-first-load) — longer, more languid ──────────── */
/* Nav fades in on every fresh load */
.site-nav { animation: elFade 0.6s ease 0.05s both; }
/* Home */
.is-first-load .hero__bg     { animation: elFade     1.2s ease                        0s    both; }
.is-first-load .hero__top    { animation: elFade     0.7s ease                        0.2s  both; }
.is-first-load .hero__title  { animation: elFadeLeft 0.95s cubic-bezier(0.16,1,0.3,1) 0.42s both; }
.is-first-load .hero__bottom { animation: elFadeUp   0.85s cubic-bezier(0.16,1,0.3,1) 0.58s both; }
/* Interior */
.is-first-load .page-head    { animation: elFadeUp   0.7s  cubic-bezier(0.16,1,0.3,1) 0.15s both; }
.is-first-load .mega         { animation: elFadeLeft 0.95s cubic-bezier(0.16,1,0.3,1) 0.28s both; }
.is-first-load .rule         { animation: elFade     0.55s ease                        0.5s  both; }
.is-first-load .filters      { animation: elFadeUp   0.5s  ease                        0.44s both; }
.is-first-load .about-grid   { animation: elFadeUp   0.75s cubic-bezier(0.16,1,0.3,1) 0.56s both; }
.is-first-load .contact-grid { animation: elFadeUp   0.75s cubic-bezier(0.16,1,0.3,1) 0.56s both; }
.is-first-load .specs        { animation: elFadeUp   0.7s  cubic-bezier(0.16,1,0.3,1) 0.68s both; }
.is-first-load .tiers .tier:nth-child(1) { animation: elFadeUp 0.7s cubic-bezier(0.16,1,0.3,1) 0.4s  both; }
.is-first-load .tiers .tier:nth-child(2) { animation: elFadeUp 0.7s cubic-bezier(0.16,1,0.3,1) 0.52s both; }
.is-first-load .tiers .tier:nth-child(3) { animation: elFadeUp 0.7s cubic-bezier(0.16,1,0.3,1) 0.64s both; }
.is-first-load .cards .card:nth-child(1) { animation: elFadeUp 0.7s cubic-bezier(0.16,1,0.3,1) 0.48s both; }
.is-first-load .cards .card:nth-child(2) { animation: elFadeUp 0.7s cubic-bezier(0.16,1,0.3,1) 0.62s both; }
.is-first-load .cards .card:nth-child(3) { animation: elFadeUp 0.7s cubic-bezier(0.16,1,0.3,1) 0.76s both; }
.is-first-load .tracks .tracks__head     { animation: elFade   0.5s ease                        0.4s  both; }
.is-first-load .tracks .track:nth-child(2) { animation: elFadeUp 0.55s ease 0.46s both; }
.is-first-load .tracks .track:nth-child(3) { animation: elFadeUp 0.55s ease 0.52s both; }
.is-first-load .tracks .track:nth-child(4) { animation: elFadeUp 0.55s ease 0.58s both; }
.is-first-load .tracks .track:nth-child(5) { animation: elFadeUp 0.55s ease 0.64s both; }
.is-first-load .tracks .track:nth-child(6) { animation: elFadeUp 0.55s ease 0.70s both; }
.is-first-load .tracks .track:nth-child(7) { animation: elFadeUp 0.55s ease 0.76s both; }

/* ── Exit keyframes ─────────────────────────────────────────────────────── */
@keyframes elExitDown  { from { transform: translateY(0);  opacity: 1; } to { transform: translateY(22px); opacity: 0; } }
@keyframes elExitRight { from { transform: translateX(0);  opacity: 1; } to { transform: translateX(36px); opacity: 0; } }
@keyframes elExitFade  { from { opacity: 1; } to { opacity: 0; } }

/* ── Element exit stagger (.is-leaving) — reverse order of entrance ──────── */
/* Home — bottom exits first, emblem, title, top last */
.is-leaving .hero__bottom { animation: elExitDown  0.28s ease 0s    both; }
.is-leaving .hero__title  { animation: elExitRight 0.28s ease 0.08s both; }
.is-leaving .hero__top    { animation: elExitFade  0.24s ease 0.14s both; }
/* Interior — deepest content exits first, heading exits last */
.is-leaving .specs                       { animation: elExitDown  0.26s ease 0s    both; }
.is-leaving .about-grid                  { animation: elExitDown  0.26s ease 0s    both; }
.is-leaving .contact-grid                { animation: elExitDown  0.26s ease 0s    both; }
.is-leaving .cards .card:nth-child(3)    { animation: elExitDown  0.26s ease 0s    both; }
.is-leaving .cards .card:nth-child(2)    { animation: elExitDown  0.26s ease 0.07s both; }
.is-leaving .cards .card:nth-child(1)    { animation: elExitDown  0.26s ease 0.14s both; }
.is-leaving .tiers .tier:nth-child(3)    { animation: elExitDown  0.26s ease 0s    both; }
.is-leaving .tiers .tier:nth-child(2)    { animation: elExitDown  0.26s ease 0.07s both; }
.is-leaving .tiers .tier:nth-child(1)    { animation: elExitDown  0.26s ease 0.14s both; }
.is-leaving .tracks .track:nth-child(7)  { animation: elExitDown  0.22s ease 0s    both; }
.is-leaving .tracks .track:nth-child(6)  { animation: elExitDown  0.22s ease 0.05s both; }
.is-leaving .tracks .track:nth-child(5)  { animation: elExitDown  0.22s ease 0.10s both; }
.is-leaving .tracks .track:nth-child(4)  { animation: elExitDown  0.22s ease 0.15s both; }
.is-leaving .tracks .track:nth-child(3)  { animation: elExitDown  0.22s ease 0.20s both; }
.is-leaving .tracks .track:nth-child(2)  { animation: elExitDown  0.22s ease 0.25s both; }
.is-leaving .tracks .tracks__head        { animation: elExitFade  0.22s ease 0.28s both; }
.is-leaving .filters                     { animation: elExitFade  0.22s ease 0.08s both; }
.is-leaving .rule                        { animation: elExitFade  0.2s  ease 0.12s both; }
.is-leaving .mega                        { animation: elExitRight 0.26s ease 0.16s both; }
.is-leaving .page-head                   { animation: elExitDown  0.26s ease 0.22s both; }

/* ─── Page header (interior pages) ─── */
.page-head { padding: 40px 0 20px; }
.page-head .file-tag { margin-bottom: 8px; }

/* BRANDON letters: invisible by default — JS typewriter reveals them one by one */
#about-brandon-slots .slot-letter { opacity: 0; }

/* Studios Ü: transitions to accent 0.75s after page settles */
#studios-u.is-highlighted { color: var(--accent); transition: color 0.6s ease; }

/* ─── Portfolio REC animation ─── */
#portfolio-head { position: relative; }
#pf-rec { transition: color 0.9s ease; }
#pf-rec.is-highlighted { color: var(--accent); }
#pf-viewfinder {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s ease;
}
#pf-viewfinder.is-visible { opacity: 1; }
.pf-corner { position: absolute; width: 24px; height: 24px; }
.pf-corner--tl { top:    0; left:  0; border-top:    3px solid var(--ink); border-left:   3px solid var(--ink); }
.pf-corner--br { top: 0; left: 0; border-bottom: 3px solid var(--ink); border-right:  3px solid var(--ink); }
@keyframes pfDotBlink { 0%, 60% { opacity: 1; } 73%, 82% { opacity: 0; } 100% { opacity: 1; } }

/* ─── Persistent Bandcamp emblem ─── */
@media (max-width: 760px) {
  /* Position emblem so hover image's right edge is flush with the menu bar's right edge */
  .persistent-emblem {
    right: calc(var(--emblem-size) * 0.091);
  }
  /* Keep default image visible on tap — no image swap on mobile */
  .hero__emblem:hover .hero-emblem__default { opacity: 1; }
  .hero__emblem:hover .hero-emblem__hover   { opacity: 0; }
}
.persistent-emblem {
  --emblem-size: clamp(48px, 6.875vw, 88px);
  position: absolute;
  top: 80px;
  right: max(24px, calc((100vw - 1280px) / 2 + 24px));
  z-index: 40;
  width: var(--emblem-size);
  height: var(--emblem-size);
  overflow: visible;
  animation: elFadeUp 0.75s cubic-bezier(0.16,1,0.3,1) 0.32s both;
}
.persistent-emblem .hero__emblem {
  position: absolute;
  inset: 0;
  transition: opacity 0.8s ease;
}
.persistent-emblem__home  { opacity: 1; pointer-events: auto; }
.persistent-emblem__other { opacity: 0; pointer-events: none; }
.persistent-emblem.is-interior .persistent-emblem__home  { opacity: 0; pointer-events: none; }
.persistent-emblem.is-interior .persistent-emblem__other { opacity: 1; pointer-events: auto; }

/* ─── About: bio table + carousel ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  margin-top: 32px;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }

.bio-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.bio-table tr { border-bottom: var(--rule-faint); }
.bio-table th, .bio-table td { text-align: left; padding: 10px 0; }
.bio-table th { width: 160px; color: var(--ink-soft); font-weight: 400; }
.bio-table td { font-weight: 700; }

/* ─── Carousel ─── */
.carousel { }
.carousel__stage {
  position: relative;
  border: 2px solid var(--ink);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.carousel__slide.active { opacity: 1; pointer-events: auto; }
.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.carousel__nav:hover { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.carousel__nav--prev { left: 12px; }
.carousel__nav--next { right: 12px; }
.carousel__caption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--paper);
  color: var(--ink);
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  z-index: 1;
}
.carousel__counter {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--ink);
  color: var(--paper);
  padding: 3px 8px;
  font-size: 10px;
  z-index: 1;
}
.carousel__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.carousel__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  background: transparent;
  padding: 0;
}
.carousel__thumb.active { border: 2px solid var(--accent); }
.carousel__progress {
  display: flex;
  gap: 4px;
  margin-top: 10px;
}
.carousel__progress span {
  flex: 1;
  height: 3px;
  background: rgba(26,23,20,0.18);
}
.carousel__progress span.active { background: var(--accent); }

/* ─── Studios pricing ─── */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: var(--rule);
  margin-top: 24px;
}
@media (max-width: 760px) { .tiers { grid-template-columns: 1fr; } }
.tier {
  padding: 24px;
  border-right: var(--rule);
}
.tiers .tier:last-child { border-right: 0; }
@media (max-width: 760px) {
  .tier { border-right: 0; border-bottom: var(--rule); }
  .tiers .tier:last-child { border-bottom: 0; }
}
.tier--featured { background: var(--accent); color: var(--paper); }
.tier__no { font-size: 10px; opacity: .75; }
.tier__name { font-weight: 700; margin-top: 6px; font-size: 14px; }
.tier__price { font-size: 56px; font-weight: 700; line-height: 1; margin-top: 12px; letter-spacing: -0.03em; }
.tier__detail { font-size: 11px; margin-top: 8px; opacity: .85; }

/* ─── Contact tier picker ─── */
.term-form > div { display: grid; gap: 4px; }
.term-form .lbl  { font-size: 11px; color: var(--ink-soft); }
.contact-tiers {
  display: grid;
  grid-template-columns: repeat(3, auto);
  width: fit-content;
  border: 1.5px solid var(--ink);
  margin-top: 6px;
}
@media (max-width: 580px) { .contact-tiers { grid-template-columns: 1fr; width: 100%; } }
.contact-tier {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px 14px 14px;
  border-right: 1.5px solid var(--ink);
  cursor: pointer;
  color: var(--ink);
  position: relative;
  transition: background 0.12s, color 0.12s;
  font-size: 11px;
}
.contact-tiers .contact-tier:last-child { border-right: 0; }
@media (max-width: 580px) {
  .contact-tier { border-right: 0; border-bottom: 1.5px solid var(--ink); }
  .contact-tiers .contact-tier:last-child { border-bottom: 0; }
}
.contact-tier input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.contact-tier:has(input:checked) { background: var(--accent); color: var(--paper); }
.contact-tier .tier__no   { font-size: 9px; opacity: .7; margin-top: 0; }
.contact-tier .tier__name { font-size: 11px; font-weight: 700; margin-top: 4px; }
.contact-tier .tier__price { font-size: 28px; font-weight: 700; line-height: 1; margin-top: 6px; letter-spacing: -0.03em; }
.contact-tier .tier__detail { font-size: 10px; margin-top: 5px; opacity: .85; }

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 32px;
  font-size: 12px;
}
@media (max-width: 760px) { .specs { grid-template-columns: 1fr; } }
.specs .label { color: var(--ink-soft); }
.specs .val { font-weight: 700; margin-top: 4px; }
.specs .val--accent { color: var(--accent); }
.specs > div > div + .label { margin-top: 16px; }

/* ─── Portfolio rows ─── */
.tracks {
  margin-top: 24px;
}
.tracks__head {
  display: grid;
  grid-template-columns: 30px 1.4fr 0.9fr 1.6fr 60px 30px;
  gap: 14px;
  font-size: 10px;
  color: var(--ink-soft);
  padding: 10px 0;
  border-bottom: var(--rule);
}
.track {
  display: grid;
  grid-template-columns: 30px 1.4fr 0.9fr 1.6fr 60px 30px;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: var(--rule-faint);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, padding 0.15s;
}
.track:hover, .track.playing {
  background: var(--accent);
  color: var(--paper);
  padding-left: 12px;
  padding-right: 12px;
}
.track__no { font-weight: 700; }
.track__title { font-weight: 700; letter-spacing: 0.04em; }
.track__genre { opacity: 0.75; font-size: 11px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.genre-tag {
  border: 1px solid currentColor;
  padding: 1px 5px;
  font-size: 9px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.track__dur { opacity: 0.75; font-size: 11px; }
.track__play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid currentColor;
  font-size: 10px;
}
.wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 24px;
}
.wave i {
  display: block;
  width: 3px;
  background: currentColor;
  border-radius: 1px;
  opacity: 0.7;
}

@media (max-width: 760px) {
  .tracks__head { display: none; }
  .track {
    grid-template-columns: 30px 1fr auto;
    grid-template-areas:
      "no title dur"
      "no genre dur"
      ". wave .";
    gap: 4px 10px;
  }
  .track__no { grid-area: no; align-self: start; padding-top: 2px; }
  .track__title { grid-area: title; }
  .track__genre { grid-area: genre; }
  .track__wave-cell { grid-area: wave; }
  .track__dur { grid-area: dur; align-self: start; padding-top: 2px; }
  .track__play-cell { display: none; }
}

.filters {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.filter {
  background: transparent;
  border: 1.5px solid var(--ink);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.filter:hover { background: var(--ink); color: var(--paper); }
.filter.active { background: var(--accent); border-color: var(--accent); color: var(--paper); }

/* ─── Contact ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 32px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }

.col-label {
  font-size: 11px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.term-form { display: grid; gap: 14px; }
.term-form label {
  display: grid;
  gap: 4px;
  font-size: 11px;
  color: var(--ink-soft);
}
.term-form .lbl::before { content: "> "; color: var(--accent); }
.term-form input,
.term-form textarea {
  font: inherit;
  font-family: 'IBM Plex Mono', monospace;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  padding: 6px 0;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.term-form input:focus,
.term-form textarea:focus {
  outline: 0;
  border-bottom-color: var(--accent);
}
.term-form textarea { resize: vertical; min-height: 80px; }
.term-form input::placeholder,
.term-form textarea::placeholder { text-transform: none; letter-spacing: 0; }
.term-form .checks { display: flex; flex-wrap: wrap; gap: 14px 22px; padding-top: 4px; font-size: 12px; color: var(--ink); text-transform: none; letter-spacing: 0; }
.term-form .checks label {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink);
  cursor: default;
  pointer-events: none;
}
.term-form .checks input[type="checkbox"],
.term-form .checks input[type="radio"] {
  pointer-events: auto;
  cursor: pointer;
  appearance: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--ink);
  background: transparent;
  margin: 0;
  position: relative;
}
.term-form .checks input:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.term-form .checks input:checked::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--paper);
}

/* ─── Calendar ─── */
.cal-frame {
  border: var(--rule);
  padding: 16px;
}
.cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}
.cal-head button {
  background: transparent;
  border: 1.5px solid var(--ink);
  width: 28px;
  height: 28px;
  font-weight: 700;
}
.cal-head button:hover { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  font-size: 11px;
}
.cal .dow {
  text-align: center;
  color: var(--ink-soft);
  padding: 6px 0;
  font-size: 10px;
}
.cal .day {
  text-align: center;
  padding: 8px 0;
  background: transparent;
  border: 1px solid transparent;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--ink-faint);
}
.cal .day.avail {
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}
.cal .day.avail:hover { background: var(--ink); color: var(--paper); }
.cal .day.picked {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
  font-weight: 700;
}

.slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 12px;
}
.slot {
  padding: 8px 10px;
  border: 1.5px solid var(--ink);
  font-size: 11px;
  font-weight: 700;
  background: transparent;
  text-align: center;
}
.slot:hover { background: var(--ink); color: var(--paper); }
.slot.picked { background: var(--accent); color: var(--paper); border-color: var(--accent); }
@media (max-width: 760px) { .slots { grid-template-columns: repeat(2, 1fr); } }

/* ─── Cards / list items ─── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: var(--rule);
  margin-top: 32px;
}
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }
.card {
  padding: 20px;
  border-right: var(--rule);
}
.cards .card:last-child { border-right: 0; }
@media (max-width: 760px) {
  .card { border-right: 0; border-bottom: var(--rule); }
  .cards .card:last-child { border-bottom: 0; }
}
.card__no { font-size: 10px; color: var(--ink-soft); }
.card__title { font-weight: 700; margin: 8px 0; font-size: 16px; }
.card__body { font-size: 12px; color: var(--ink-soft); text-transform: none; letter-spacing: 0; line-height: 1.55; font-weight: 500; }

/* ─── Music staff line accent ─── */
.staff {
  height: 22px;
  margin: 16px 0;
  background:
    linear-gradient(to bottom, transparent 4px, currentColor 4px, currentColor 5px, transparent 5px) 0 0/100% 5px no-repeat,
    linear-gradient(to bottom, transparent 4px, currentColor 4px, currentColor 5px, transparent 5px) 0 5px/100% 5px no-repeat,
    linear-gradient(to bottom, transparent 4px, currentColor 4px, currentColor 5px, transparent 5px) 0 10px/100% 5px no-repeat,
    linear-gradient(to bottom, transparent 4px, currentColor 4px, currentColor 5px, transparent 5px) 0 15px/100% 5px no-repeat,
    linear-gradient(to bottom, transparent 4px, currentColor 4px, currentColor 5px, transparent 5px) 0 20px/100% 5px no-repeat;
  opacity: 0.4;
}

/* ─── Genre tag pile (home bottom) ─── */
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* ─── Admin Panel ─── */
.admin-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}
@media (max-width: 760px) { .admin-auth-grid { grid-template-columns: 1fr; } }

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.admin-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-soft);
  font-weight: 600;
}
.admin-field input,
.admin-field select,
.admin-field textarea {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink-faint);
  padding: 8px 10px;
  text-transform: none;
  letter-spacing: 0.04em;
  width: 100%;
  appearance: none;
}
.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.admin-field input[type="password"] { letter-spacing: 0.1em; }
.admin-field select { cursor: pointer; }
.admin-genre-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding-top: 4px;
}
.admin-genre-checks label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  color: var(--ink-soft);
  transition: color 0.1s;
}
.admin-genre-checks label:has(input:checked) {
  color: var(--accent);
  font-weight: 700;
}
.admin-genre-checks input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--ink-soft);
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background 0.1s, border-color 0.1s;
}
.admin-genre-checks input[type="checkbox"]:hover {
  border-color: var(--ink);
}
.admin-genre-checks input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.admin-genre-checks input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--paper);
}

.admin-status { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; }
.admin-status--ok  { color: #2d8a4e; }
.admin-status--err { color: var(--accent); }

.admin-gist-hint {
  margin-top: 16px;
  padding: 14px 18px;
  border: 2px solid var(--accent);
  background: var(--accent-soft);
  font-size: 11px;
  line-height: 1.7;
  text-transform: none;
  letter-spacing: 0;
}
.admin-gist-hint code {
  font-family: 'IBM Plex Mono', monospace;
  background: var(--paper-warm);
  padding: 2px 6px;
  border: 1px solid var(--ink-faint);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.admin-tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--ink);
  margin-top: 32px;
}
.admin-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 10px 22px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.15s;
}
.admin-tab:hover { color: var(--ink); }
.admin-tab.active { color: var(--ink); border-bottom-color: var(--accent); }

.admin-panel-section { padding: 28px 0 16px; }
.admin-hint {
  font-size: 10px;
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0;
  margin: 0 0 20px;
  font-style: normal;
}

/* Pricing tab */
.admin-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: var(--rule);
  margin-top: 16px;
}
@media (max-width: 760px) { .admin-tier-grid { grid-template-columns: 1fr; } }
.admin-tier-card {
  padding: 20px;
  border-right: var(--rule);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.admin-tier-grid .admin-tier-card:last-child { border-right: 0; }
@media (max-width: 760px) {
  .admin-tier-card { border-right: 0; border-bottom: var(--rule); }
  .admin-tier-grid .admin-tier-card:last-child { border-bottom: 0; }
}
.admin-tier-card--featured { background: var(--accent-soft); }
.admin-featured-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; margin-top: 4px; }
.admin-featured-toggle input { width: 14px; height: 14px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }

/* Calendar tab — single-month view */
.admin-cal-view { max-width: 260px; }
.admin-cal-month-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.admin-cal-month-label { font-weight: 700; font-size: 12px; white-space: nowrap; }

.admin-month-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}
.admin-month-nav button {
  background: none;
  border: 1.5px solid var(--ink);
  width: 24px;
  height: 24px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  flex-shrink: 0;
  padding: 0;
}
.admin-month-nav button:disabled { opacity: 0.25; cursor: default; pointer-events: none; }
.admin-month-nav button:not(:disabled):hover { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.admin-month-nav > span:first-of-type { font-weight: 700; font-size: 12px; white-space: nowrap; }
.admin-cal-hint { font-size: 10px; color: var(--ink-soft); white-space: nowrap; }

.admin-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.admin-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  background: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.admin-cal-day.dow-header {
  font-size: 9px;
  color: var(--ink-soft);
  cursor: default;
  font-weight: 400;
  aspect-ratio: unset;
  padding: 3px 0;
  border: none;
}
.admin-cal-day:not(.dow-header):not(.avail) { color: var(--ink-faint); }
.admin-cal-day:not(.dow-header):not(.avail):hover { border-color: var(--ink-faint); color: var(--ink); }
.admin-cal-day.avail { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.admin-cal-day.avail:hover { background: var(--accent); border-color: var(--accent); }

.admin-slots-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.admin-slot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--ink);
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
}
.admin-slot__del {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-family: inherit;
}
.admin-slot__del:hover { color: var(--ink); }

/* Images tab */
.admin-upload-zone {
  border: 2px dashed var(--ink-faint);
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s;
  margin: 16px 0;
}
.admin-upload-zone:hover { border-color: var(--accent); }
.admin-upload-zone .upload-icon { font-size: 28px; margin-bottom: 8px; }

.admin-img-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.admin-img-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 16px;
  align-items: start;
  border: 1.5px solid var(--ink-faint);
  padding: 14px;
}
.admin-img-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background: var(--paper-warm);
  border: 1px solid var(--ink-faint);
}
.admin-img-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.admin-img-fields { display: flex; flex-direction: column; gap: 8px; }
.admin-img-btns { display: flex; flex-direction: column; gap: 6px; }
.admin-img-btns .btn { padding: 6px 10px; font-size: 12px; }
.admin-del-btn { color: var(--accent) !important; border-color: var(--accent) !important; }
.admin-del-btn:hover { background: var(--accent) !important; color: var(--paper) !important; }

/* Save bar */
.admin-save-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 2px solid var(--accent);
}
.admin-save-status { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; }
.admin-save-status.admin-status--ok  { color: #5dba8a; }
.admin-save-status.admin-status--err { color: #f5d9d3; }

/* Push down main content so save bar doesn't overlap */
body.admin-connected main { padding-bottom: 80px; }

/* Waveform playback progress */
.wave i.played { background: var(--accent); }

/* Waveform is clickable when a track is active */
.track.playing .wave { cursor: col-resize; }

/* ── Bottom player bar ──────────────────────────────────────────────────────── */
.player-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 500;
  display: none;
  align-items: center;
  gap: 24px;
  padding: 12px 28px;
  background: var(--ink);
  color: var(--paper);
  border-top: 2px solid var(--accent);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.player-bar.visible { display: flex; }

/* Give page content room so the bar doesn't cover it */
body.has-player main,
body.has-player .site-footer { margin-bottom: 68px; }

/* Track info */
.player-bar__info {
  flex: 0 0 auto;
  min-width: 0;
  max-width: 220px;
}
.player-bar__label {
  font-size: 9px;
  color: var(--accent);
  letter-spacing: 0.12em;
  line-height: 1;
  margin-bottom: 3px;
}
.player-bar__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.player-bar__meta {
  font-size: 10px;
  opacity: 0.5;
  margin-top: 2px;
  white-space: nowrap;
}

/* Prev / Play / Next */
.player-bar__controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.player-bar__btn {
  background: none;
  border: 1px solid rgba(244, 242, 238, 0.25);
  color: var(--paper);
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.player-bar__btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.player-bar__btn--play {
  font-size: 12px;
  padding: 6px 14px;
  border-color: var(--accent);
  color: var(--accent);
  min-width: 42px;
  text-align: center;
}
.player-bar__btn--play.player-bar__btn--paused {
  border-color: rgba(244, 242, 238, 0.4);
  color: var(--paper);
}

/* Seek strip */
.player-bar__seek-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.player-bar__time {
  font-size: 10px;
  opacity: 0.55;
  white-space: nowrap;
  min-width: 32px;
  line-height: 1;
}
.player-bar__time--dur { text-align: right; }

.player-bar__seek {
  position: relative;
  flex: 1;
  height: 3px;
  background: rgba(244, 242, 238, 0.15);
  cursor: pointer;
  transition: height 0.12s;
}
.player-bar__seek:hover,
.player-bar__seek:active { height: 5px; }

.player-bar__seek-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--accent);
  pointer-events: none;
}
.player-bar__seek-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 10px;
  height: 10px;
  background: var(--paper);
  border: 1.5px solid var(--accent);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.player-bar__seek:hover .player-bar__seek-thumb,
.player-bar__seek:active .player-bar__seek-thumb { opacity: 1; }

/* Mobile layout */
@media (max-width: 680px) {
  .player-bar {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px 14px;
  }
  .player-bar__info  { flex: 1; max-width: none; }
  .player-bar__seek-wrap {
    flex-basis: 100%;
    order: 10;
  }
  body.has-player main,
  body.has-player .site-footer { margin-bottom: 100px; }
}

/* Tracks tab */
.admin-track-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.admin-track-item {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 16px;
  align-items: start;
  border: 1.5px solid var(--ink-faint);
  padding: 14px;
}
.admin-track-no {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-faint);
  padding-top: 10px;
  text-align: center;
}
.admin-track-body { display: flex; flex-direction: column; gap: 0; }
.admin-track-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.admin-track-playback {
  border-top: 1px solid var(--ink-faint);
  margin-top: 12px;
  padding-top: 12px;
}
.admin-track-play-modes {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.admin-track-play-modes label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.admin-track-play-modes input[type="radio"] {
  accent-color: var(--accent);
  cursor: pointer;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.admin-track-audio-info {
  font-size: 10px;
  color: var(--ink-soft);
  padding: 6px 0 2px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
@media (max-width: 900px) { .admin-track-fields { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .admin-track-fields { grid-template-columns: 1fr; }
  .admin-track-item { grid-template-columns: 28px 1fr; }
  .admin-track-item .admin-img-btns { grid-column: 1 / -1; flex-direction: row; }
}

/* ── Booked (unavailable) time slot ─────────────────────────────────────── */
.slot.booked {
  opacity: 0.32;
  cursor: not-allowed;
  text-decoration: line-through;
  pointer-events: none;
}

/* ── Confirmation Modal ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,23,20,0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.modal {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  padding: 40px 44px;
  max-width: 500px;
  width: calc(100% - 40px);
  text-align: left;
  animation: modalIn 0.32s cubic-bezier(0.2,0,0,1) both;
}
.modal .file-tag { margin-bottom: 10px; }
.modal__title {
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 900;
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.modal__body {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 28px;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.7;
}
@keyframes modalIn {
  from { transform: translateY(28px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── Admin Apps Script code block ────────────────────────────────────────── */
.admin-code {
  background: var(--ink);
  color: var(--paper);
  font-family: inherit;
  font-size: 10px;
  line-height: 1.65;
  padding: 16px 18px;
  overflow-x: auto;
  overflow-y: auto;
  white-space: pre;
  margin: 12px 0 0;
  border: none;
  text-transform: none;
  letter-spacing: 0;
  max-height: 340px;
  user-select: all;
}
