/* ---------------------------------------------------------------------------
   Stephen Richards Memorial
   Design tokens and components, matching the approved handoff.
   --------------------------------------------------------------------------- */

:root {
  --page:        #FAF8F6;
  --ink:         #121212;
  --ink-alt:     #262626;
  --dark-bd:     #3A3A3A;
  --dark-bd-2:   #2F2F2F;
  --accent:      #FF4F18;
  --accent-deep: #C93A0D;
  --accent-tint: #FFF1EC;
  --accent-tint-bd: #FFD2C2;
  --accent-pale: #FFC7B2;
  --accent-light:#FF7A4D;
  --card:        #FFFFFF;
  --card-bd:     #E7E3DE;
  --input-bg:    #FDFBF9;
  --input-bd:    #E2DED9;
  --dashed-bd:   #D6D0C9;
  --divider:     #F1EEE9;
  --img-ph:      #EEE9E3;
  --muted:       #767676;
  --body-muted:  #555555;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--ink); }

img { max-width: 100%; }
input, textarea, button, select { font-family: inherit; }
::placeholder { color: #A3A3A3; }

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

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--accent);
  color: #fff; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; color: #fff; }

.shell { min-height: 100vh; display: flex; flex-direction: column; }
.main  { flex: 1; }
.wrap  { max-width: 1080px; margin: 0 auto; padding: 56px 24px 80px; }

/* --- Monogram ------------------------------------------------------------ */
.mono { display: flex; align-items: flex-end; gap: 8px; }
.mono .bars { display: flex; align-items: flex-end; gap: 2.5px; height: 22px; }
.mono .bars i { display: block; width: 3px; background: var(--accent); border-radius: 1px; }
.mono .bars i:nth-child(1) { height: 10px; }
.mono .bars i:nth-child(2) { height: 18px; }
.mono .bars i:nth-child(3) { height: 22px; }
.mono .bars i:nth-child(4) { height: 14px; }
.mono span { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: #fff; line-height: 1; }

.mono.sm { gap: 7px; }
.mono.sm .bars { height: 16px; gap: 2px; }
.mono.sm .bars i { width: 2.5px; border-radius: 0; }
.mono.sm .bars i:nth-child(1) { height: 7px; }
.mono.sm .bars i:nth-child(2) { height: 13px; }
.mono.sm .bars i:nth-child(3) { height: 16px; }
.mono.sm .bars i:nth-child(4) { height: 10px; }
.mono.sm span { font-size: 15px; }

/* --- Header -------------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 20; background: var(--ink);
  display: flex; align-items: center; gap: 32px; padding: 0 24px;
  min-height: 64px; flex-wrap: wrap;
}
.site-head .brand { display: flex; align-items: flex-end; height: 64px; padding-bottom: 20px; }
.site-nav { display: flex; gap: 4px; margin-left: 8px; flex-wrap: wrap; }
.site-nav a {
  background: transparent; border: 0; color: #9A9A9A;
  font-size: 15px; font-weight: 600; padding: 9px 16px; border-radius: 999px;
  transition: color 150ms ease, background 150ms ease;
}
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { background: var(--ink-alt); color: #fff; }
.head-tag {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-left: auto;
}

/* --- Footer -------------------------------------------------------------- */
.site-foot {
  background: var(--ink); color: var(--muted); padding: 40px 24px;
  display: flex; gap: 20px; flex-wrap: wrap; align-items: center;
  justify-content: space-between;
}
.site-foot p { margin: 0; font-size: 14px; }
.foot-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.admin-link {
  background: transparent; border: 1px solid var(--dark-bd-2); color: var(--muted);
  border-radius: 999px; padding: 7px 15px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease;
}
.admin-link:hover { border-color: var(--accent); color: #fff; }

/* --- Buttons and pills ---------------------------------------------------- */
.btn {
  background: var(--accent); color: #fff; border: 0; border-radius: 999px;
  padding: 13px 26px; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: opacity 150ms ease; display: inline-block; text-align: center;
}
.btn:hover { opacity: 0.9; color: #fff; }
.btn.lg { padding: 14px 26px; }
.btn.sq { border-radius: 8px; padding: 11px 22px; font-size: 14px; }
.btn.sm { padding: 8px 16px; font-size: 13px; }

.btn-ghost {
  background: transparent; border: 1px solid var(--card-bd); color: var(--muted);
  border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: border-color 150ms ease, color 150ms ease;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--accent-deep); color: var(--accent-deep); }
.btn-ghost[disabled] { opacity: 0.35; cursor: default; }
.btn-ghost[disabled]:hover { border-color: var(--card-bd); color: var(--muted); }

.btn-dark {
  background: transparent; color: #fff; border: 1px solid var(--dark-bd);
  border-radius: 999px; padding: 14px 26px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: border-color 150ms ease; display: inline-block;
}
.btn-dark:hover { border-color: var(--accent); color: #fff; }

.btn-soft {
  background: var(--accent-tint); border: 1px solid var(--accent-tint-bd);
  color: var(--accent-deep); border-radius: 999px; padding: 8px 16px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: opacity 150ms ease;
}
.btn-soft:hover { opacity: 0.85; }

.pill {
  display: inline-block; background: var(--accent-tint);
  border: 1px solid var(--accent-tint-bd); color: var(--accent-deep);
  border-radius: 999px; padding: 5px 12px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.pill.neutral { background: var(--divider); border-color: var(--card-bd); color: var(--muted); }
.pill.sm { padding: 4px 11px; font-size: 10px; letter-spacing: 0.08em; }

/* --- Cards --------------------------------------------------------------- */
.card {
  background: var(--card); border: 1px solid var(--card-bd);
  border-radius: 12px; padding: 24px;
}
.card.tight { padding: 16px; }
.empty {
  border: 1px dashed var(--dashed-bd); border-radius: 12px;
  padding: 32px 24px; background: var(--card);
}
.empty p:first-child { margin: 0; font-size: 17px; font-weight: 700; }
.empty p + p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* --- Type ---------------------------------------------------------------- */
.h-page { margin: 0; font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -0.03em; }
.h-sect { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.h-sub  { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.lead   { margin: 14px 0 0; font-size: 17px; line-height: 1.6; color: var(--body-muted); }
.label {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 7px;
}
.eyebrow {
  margin: 0 0 16px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.note { font-size: 13px; color: var(--muted); }
.note.err { color: var(--accent-deep); font-weight: 600; }

/* --- Forms --------------------------------------------------------------- */
.field input[type="text"], .field input[type="email"], .field input[type="date"],
.field input[type="password"], .field textarea, .field select {
  width: 100%; border: 1px solid var(--input-bd); border-radius: 6px;
  padding: 11px 12px; font-size: 15px; outline: none; background: var(--input-bg);
  color: var(--ink); transition: border-color 150ms ease;
}
.field textarea { line-height: 1.55; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }

.grid-form {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.span-all { grid-column: 1 / -1; }
.submit-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.consent {
  display: flex; align-items: flex-start; gap: 11px; cursor: pointer;
  background: var(--input-bg); border: 1px solid var(--card-bd);
  border-radius: 10px; padding: 14px 16px;
}
.consent input { margin: 2px 0 0; width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }
.consent span { font-size: 14px; line-height: 1.5; color: var(--body-muted); }

.dropzone {
  display: block; border: 1px dashed var(--dashed-bd); border-radius: 10px;
  padding: 22px; text-align: center; cursor: pointer; background: var(--input-bg);
  transition: border-color 150ms ease;
}
.dropzone:hover { border-color: var(--accent); }
.dropzone .primary { display: block; font-size: 15px; font-weight: 700; color: var(--accent-deep); }
.dropzone .secondary { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.dropzone input { display: none; }

/* --- Hero ---------------------------------------------------------------- */
/* No overflow clipping here: the waveform deliberately overhangs the bottom
   edge of the dark panel by 44px, as in the approved design. */
.hero { background: var(--ink); color: #fff; position: relative; z-index: 1; }
.hero-inner {
  position: relative; z-index: 1; max-width: 1080px; margin: 0 auto;
  padding: 72px 24px 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px; align-items: center;
}
.hero .kicker {
  margin: 0 0 18px; font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
}
.hero h1 {
  margin: 0; font-size: clamp(44px, 8vw, 96px); line-height: 0.95;
  font-weight: 800; letter-spacing: -0.035em; max-width: 14ch;
}
.hero .bio { margin: 28px 0 0; font-size: 17px; line-height: 1.6; color: #B8B8B8; max-width: 56ch; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 36px 0 0; }
.portrait {
  background-image: url('stephen-cutout.png');
  background-size: contain; background-position: center; background-repeat: no-repeat;
  aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: end; display: block;
  opacity: 0.6; pointer-events: none;
  -webkit-mask-image: radial-gradient(82% 82% at 50% 44%, #000 58%, transparent 100%);
  mask-image: radial-gradient(82% 82% at 50% 44%, #000 58%, transparent 100%);
}

.waveform {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  width: 100%; height: 150px; margin: 100px 0 -44px;
  opacity: 0.95; pointer-events: none;
}
.waveform i {
  display: block; flex: 1 1 0; min-width: 2px; border-radius: 999px;
  background: var(--accent); opacity: 0.85;
}
.waveform i.spike { opacity: 1; }

/* --- About --------------------------------------------------------------- */
.about { max-width: 1080px; margin: 0 auto; padding: 180px 24px 64px; }
.about-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px; align-items: start;
}
.about-grid h2 { margin: 0 0 20px; }
.about-copy { margin: 0; font-size: 19px; line-height: 1.65; text-wrap: pretty; max-width: 62ch; }
.labels { display: flex; flex-wrap: wrap; gap: 8px; }
.labels a {
  background: var(--accent-tint); border: 1px solid var(--accent-tint-bd);
  color: var(--accent-deep); border-radius: 999px; padding: 6px 13px;
  font-size: 13px; font-weight: 600; transition: background 150ms ease,
  border-color 150ms ease, color 150ms ease;
}
.labels a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.radio-name { margin: 0; font-size: 16px; font-weight: 700; }
.radio-name a { color: var(--ink); transition: color 150ms ease; }
.radio-name a:hover { color: var(--accent-deep); }
.radio-station { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.listen {
  margin: 10px 0 0; font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-deep);
}

/* --- Releases ------------------------------------------------------------- */
.releases { max-width: 1080px; margin: 0 auto; padding: 48px 24px 72px; }
.sect-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--input-bd);
  padding-bottom: 14px;
}
.release-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px; margin-top: 28px;
}
.release {
  background: var(--card); border: 1px solid var(--card-bd); border-radius: 12px;
  padding: 20px; transition: border-color 150ms ease, transform 150ms ease;
}
.release:hover { border-color: var(--accent); transform: translateY(-2px); }
.release h3 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.3; }
.release h3 a { color: var(--ink); transition: color 150ms ease; }
.release h3 a:hover { color: var(--accent); }
.release h3 sup { font-size: 0.6em; font-weight: 700; vertical-align: super; line-height: 0; }
.release .sub { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.release .listen { margin: 12px 0 0; }
.bars-sm { display: flex; align-items: flex-end; gap: 2px; height: 20px; margin-bottom: 16px; }
.bars-sm i { display: block; width: 3px; background: var(--accent); }
.bars-sm i.pale { background: var(--accent-pale); }
.bars-lg { display: flex; align-items: flex-end; gap: 3px; height: 28px; margin-bottom: 18px; }
.bars-lg i { display: block; width: 4px; background: var(--accent-pale); }

/* --- Playlists ------------------------------------------------------------ */
.embed-card { background: var(--card); border: 1px solid var(--card-bd); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.embed-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.embed-url { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.embed-card iframe { width: 100%; border-radius: 8px; display: block; border: 0; }

/* --- Account bar ---------------------------------------------------------- */
.account-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; background: var(--card); border: 1px solid var(--card-bd);
  border-radius: 12px; padding: 16px 20px; margin: 32px 0 16px;
}
.account-bar .who { margin: 0; font-size: 15px; font-weight: 700; }
.account-bar .meta { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.account-bar .acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* --- Timeline ------------------------------------------------------------- */
.timeline-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin: 48px 0 8px;
}
.timeline-scroll { overflow-x: auto; padding-bottom: 8px; }
.timeline {
  display: flex; align-items: flex-end; gap: 20px; min-height: 340px;
  border-bottom: 2px solid var(--ink); padding: 8px 2px 24px;
}
.memory { width: 250px; flex: 0 0 250px; position: relative; }
.memory .inner {
  background: var(--card); border: 1px solid var(--card-bd); border-radius: 12px;
  overflow: hidden; transition: border-color 150ms ease;
}
.memory:hover .inner { border-color: var(--accent); }
.memory .photo {
  width: 100%; height: 240px; background-size: cover; background-position: center top;
  background-color: var(--img-ph); cursor: zoom-in; border: 0; padding: 0; display: block;
}
.memory .body { padding: 16px; }
.memory .when {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 8px;
}
.memory h3 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; }
.memory .msg { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: var(--body-muted); text-wrap: pretty; }
.memory .by { margin: 10px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.memory .dot {
  position: absolute; left: 24px; bottom: -31px; width: 13px; height: 13px;
  border-radius: 999px; background: var(--accent); border: 3px solid var(--page);
}
.timeline-empty { border-top: 2px solid var(--ink); padding: 40px 0 0; margin-top: 14px; }
.timeline-empty p { margin: 0; font-size: 17px; color: var(--body-muted); max-width: 48ch; line-height: 1.6; }

/* --- Lightbox ------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(10, 10, 10, 0.94);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 24px; gap: 20px;
}
.lightbox[hidden] { display: none; }
.lightbox .shot {
  flex: 1; width: 100%; max-width: 1000px; min-height: 0;
  background-size: contain; background-position: center; background-repeat: no-repeat;
}
.lightbox .caption { width: 100%; max-width: 760px; text-align: center; color: #fff; }
.lightbox .caption .when {
  margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-light);
}
.lightbox .caption h3 { margin: 8px 0 0; font-size: 22px; font-weight: 700; }
.lightbox .caption .msg { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: #C8C8C8; text-wrap: pretty; }
.lightbox .caption .by { margin: 10px 0 0; font-size: 13px; font-weight: 600; color: #909090; }
.lightbox .acts { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.lightbox .acts button {
  background: transparent; border: 1px solid var(--dark-bd); color: #fff;
  border-radius: 999px; padding: 10px 20px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: border-color 150ms ease;
}
.lightbox .acts button:hover { border-color: var(--accent); }
.lightbox .acts button.close { background: var(--accent); border-color: var(--accent); font-weight: 700; }
.lightbox .acts button.close:hover { opacity: 0.9; }
.lightbox .count { margin: 14px 0 0; font-size: 12px; color: var(--muted); }

.lightbox .acts { flex-wrap: wrap; }
.lightbox .acts button.album-btn { border-color: var(--accent-light); color: var(--accent-pale); }
.lightbox .acts button.album-btn:hover { border-color: var(--accent); color: #fff; }
.lightbox .acts button[hidden] { display: none; }

/* --- Albums on the timeline ------------------------------------------------ */
.memory .photo { position: relative; }
.album-badge {
  position: absolute; right: 10px; bottom: 10px; background: rgba(18, 18, 18, 0.82);
  color: #fff; border-radius: 999px; padding: 5px 11px 5px 28px; font-size: 11px;
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2;
}
/* Two stacked squares: a small "set of photos" mark */
.album-badge::before, .album-badge::after {
  content: ""; position: absolute; width: 9px; height: 9px; border-radius: 2px;
  border: 1.5px solid #fff;
}
.album-badge::before { left: 10px; top: 8px; opacity: 0.55; }
.album-badge::after  { left: 13px; top: 5px; background: rgba(18, 18, 18, 0.82); }
/* A faint second card behind an album, so it reads as more than one photo */
.memory.is-album .inner { box-shadow: 5px -5px 0 -1px var(--page), 5px -5px 0 0 var(--card-bd); }
.memory.is-album:hover .inner { box-shadow: 5px -5px 0 -1px var(--page), 5px -5px 0 0 var(--accent); }

/* --- Album viewer ------------------------------------------------------------ */
.album-viewer { justify-content: flex-start; gap: 16px; padding: 24px 24px 28px; z-index: 55; }
.av-head {
  width: 100%; max-width: 1100px; display: flex; align-items: flex-end;
  justify-content: space-between; gap: 16px; color: #fff;
}
.av-head .when {
  margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-light);
}
.av-head h3 { margin: 6px 0 0; font-size: 22px; font-weight: 700; }
.av-head .count { margin: 0; font-size: 13px; color: #A3A3A3; white-space: nowrap; }
.av-stage {
  flex: 1; min-height: 0; width: 100%; max-width: 1100px;
  display: flex; align-items: center; gap: 12px;
}
.av-stage .shot { height: 100%; }
.av-arrow {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 999px;
  background: transparent; border: 1px solid var(--dark-bd); color: #fff;
  font-size: 28px; line-height: 1; cursor: pointer; padding: 0 0 4px;
  transition: border-color 150ms ease;
}
.av-arrow:hover { border-color: var(--accent); }
.av-strip {
  width: 100%; max-width: 1100px; display: flex; gap: 8px; overflow-x: auto;
  padding: 4px 2px 6px; justify-content: safe center;
}
.av-thumb {
  flex: 0 0 64px; width: 64px; height: 64px; border-radius: 6px; border: 2px solid transparent;
  background-size: cover; background-position: center; background-color: #222;
  cursor: pointer; padding: 0; opacity: 0.55; transition: opacity 150ms ease, border-color 150ms ease;
}
.av-thumb:hover { opacity: 0.9; }
.av-thumb.on { opacity: 1; border-color: var(--accent); }
.album-viewer .acts { margin-top: 4px; }

/* --- Admin ---------------------------------------------------------------- */
.stats { display: flex; gap: 12px; flex-wrap: wrap; margin: 32px 0 28px; align-items: stretch; }
.stat {
  background: var(--card); border: 1px solid var(--card-bd); border-radius: 12px;
  padding: 18px 22px; min-width: 150px;
}
.stat p { margin: 0; }
.stat .n { margin: 8px 0 0; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.stat .n.hot { color: var(--accent-deep); }
.lock-btn {
  margin-left: auto; align-self: center; background: transparent;
  border: 1px solid var(--dashed-bd); color: var(--muted); border-radius: 999px;
  padding: 11px 20px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease;
}
.lock-btn:hover { border-color: var(--accent-deep); color: var(--accent-deep); }

.queue { display: grid; gap: 16px; }
.queue-item {
  background: var(--card); border: 1px solid var(--card-bd); border-radius: 12px;
  padding: 18px; display: grid; gap: 18px;
  grid-template-columns: 150px minmax(0, 1fr); align-items: start;
}
.queue-item .thumb {
  width: 150px; height: 120px; border-radius: 8px; background-size: cover;
  background-position: center top; background-color: var(--img-ph); display: block;
}
.queue-item .meta-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 8px; }
.queue-item .when { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.queue-item h3 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; }
.queue-item .msg { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--body-muted); text-wrap: pretty; }
.queue-item .by { margin: 10px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.queue-item .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.queue-item .acts form { display: inline; }
.edit-fields { display: grid; gap: 8px; margin-bottom: 12px; }
.edit-fields input, .edit-fields textarea {
  width: 100%; border: 1px solid var(--input-bd); border-radius: 6px;
  padding: 9px 11px; font-size: 14px; outline: none; background: var(--input-bg);
  color: var(--ink); line-height: 1.5; resize: vertical;
}
.edit-fields input:focus, .edit-fields textarea:focus { border-color: var(--accent); }

.rows { background: var(--card); border: 1px solid var(--card-bd); border-radius: 12px; padding: 8px 0; margin-top: 16px; }
.row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 20px; border-bottom: 1px solid var(--divider);
}
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .name { margin: 0; font-size: 15px; font-weight: 700; }
.row .email { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.rows .none { margin: 0; padding: 18px 20px; font-size: 14px; color: var(--muted); }

.add-embed {
  display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 0; background: var(--card);
  border: 1px solid var(--card-bd); border-radius: 12px; padding: 14px;
}
.add-embed input {
  flex: 1; min-width: 200px; border: 0; outline: none; font-size: 15px;
  padding: 10px 8px; background: transparent; color: var(--ink);
}

/* --- Admin: albums -------------------------------------------------------- */
.flash-note {
  margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600;
  background: var(--accent-tint); border: 1px solid var(--accent-tint-bd); color: var(--accent-deep);
}
.album-preview { display: flex; flex-wrap: wrap; gap: 6px; }
.album-preview[hidden] { display: none; }
.album-preview .pv {
  width: 56px; height: 56px; border-radius: 6px; background-size: cover;
  background-position: center; background-color: var(--img-ph);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--muted);
}
.album-preview .pv.first { outline: 2px solid var(--accent); outline-offset: 1px; }
.queue-item .thumb-empty {
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 12px; color: var(--muted); border: 1px dashed var(--dashed-bd); background: var(--input-bg);
}
.album-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px;
}
.album-tile {
  border: 1px solid var(--card-bd); border-radius: 8px; overflow: hidden; background: var(--input-bg);
}
.album-tile.is-cover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.album-tile .img {
  display: block; aspect-ratio: 1; background-size: cover; background-position: center;
  background-color: var(--img-ph);
}
.album-tile .tile-acts { display: flex; justify-content: space-between; align-items: center; gap: 4px; padding: 4px; }
.album-tile .tile-acts form { display: inline; margin: 0; }
.tile-btn {
  background: transparent; border: 0; padding: 4px 6px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); cursor: pointer; border-radius: 4px;
}
.tile-btn:hover { color: var(--accent-deep); background: var(--accent-tint); }
.tile-btn.rm { font-size: 13px; padding: 3px 7px; }
.cover-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: #fff; background: var(--accent); border-radius: 4px; padding: 4px 6px;
}
.album-add { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 720px) {
  .about { padding-top: 120px; }
  /* 110 bars at a 5px gap are wider than a phone screen, so thin the row out
     rather than letting the page scroll sideways. */
  .waveform { margin-top: 64px; height: 110px; gap: 3px; }
  .waveform i:nth-child(even) { display: none; }
  .queue-item { grid-template-columns: 1fr; }
  .queue-item .thumb { width: 100%; height: 180px; }
  .head-tag { display: none; }
  .site-head { gap: 12px; padding: 10px 16px; }
  .site-head .brand { height: auto; padding-bottom: 0; }
  .av-arrow { display: none; }   /* swipe or use the strip on phones */
  .album-viewer { padding: 16px 12px 20px; }
  .av-head h3 { font-size: 18px; }
  .av-thumb { flex-basis: 52px; width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
