/* ============================================================
   CONSOLE DESIGN SYSTEM
   Type values are spec §6, verbatim. Engraved legends are small
   and letterspaced on purpose — that is what the hardware does.
   Legibility is solved by contrast (--console-legend), not size.
   ============================================================ */
:root {
  /* type — spec §6 table */
  --c-btn-legend: 9px;    /* button legends, 700, 0.16em, uppercase */
  --c-legend:     10px;   /* .session-lbl engraved legends, 700, 0.14em */
  --c-take-dur:   13px;   /* take duration */
  --c-body:       14px;   /* body and notes */
  --c-take-num:   15px;   /* take number */
  --c-instrument: 22px;   /* instrument value */
  --c-counter:    44px;   /* transport counter */

  /* geometry */
  --c-r-hard: 3px;
  --c-r-soft: 8px;
  --c-r-pill: 999px;

  /* spacing — 4px base */
  --c-s1: 4px;  --c-s2: 8px;  --c-s3: 12px;
  --c-s4: 16px; --c-s5: 24px; --c-s6: 32px;

  /* material — neutral only. No coloured shadow anywhere. */
  --c-spec:    rgba(255,255,255,0.28);
  --c-sheen:   rgba(255,255,255,0.08);
  --c-edge-lo: rgba(0,0,0,0.55);
  --c-cast:    rgba(0,0,0,0.55);
}

/* ===========================================================
   WorldSong platform components.

   Additive only - styles.css and pages.css are untouched, so nothing here can
   affect the front page. Uses the existing tokens; no new colours are invented.
   =========================================================== */

/* --------------------------------------------------- header account state -- */

/* The home page loads styles.css + platform.css only (not pages.css), so the
   few header bits the signed-in state needs are defined here, scoped to the
   header. Values match pages.css exactly so the two never disagree. */

.site-header .avatar {
  --size: 36px;
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: calc(var(--size) * 0.4);
  color: var(--bg-deepest);
  background: linear-gradient(150deg, var(--teal-bright), var(--teal-deep));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ----------------------------------------------------------- the header ---
   ws-app.js shapeHeader(): logo, the page list, search, then LOG IN / SIGN UP
   or one account button. The same on every page since 2026-10-02. */

.site-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  min-width: 200px;
  height: 40px;
  padding: 0 10px 0 14px;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font: 500 13px var(--f-body);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.site-search-btn svg { width: 17px; height: 17px; flex: none; }
.site-search-btn__text { flex: 1; text-align: left; }
.site-search-btn kbd {
  font: 600 11px/1 var(--f-body);
  padding: 4px 7px;
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  color: var(--mm-muted, #849898);
}
.site-search-btn:hover { border-color: var(--border-strong); background: rgba(45, 212, 191, 0.06); color: var(--text-primary); }
.site-search-btn:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: 2px; }

.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 3px 10px 3px 3px;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.account-btn .avatar { width: 36px; height: 36px; font-size: 13px; }
/* The name stays in the account menu, not the header: with six page names
   and the search box there is no room for it, and a long name would push
   the page list under the logo (2026-11-06). */
.account-btn__name { display: none; }
.account-btn { padding: 3px 8px 3px 3px; gap: 6px; }
.account-btn__chev { width: 16px; height: 16px; color: var(--text-secondary); transition: transform 0.16s ease; }
.account-btn:hover { border-color: var(--border-strong); background: rgba(45, 212, 191, 0.06); }
.account-btn[aria-expanded="true"] { border-color: var(--teal-primary); }
.account-btn.is-current { border-color: var(--teal-primary); background: rgba(45, 212, 191, 0.08); }
.account-btn[aria-expanded="true"] .account-btn__chev { transform: rotate(180deg); }
.account-btn:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: 2px; }

/* Laptops and tablets: search becomes an icon, the account button just you. */
@media (max-width: 1240px) {
  .site-search-btn { min-width: 0; width: 44px; height: 44px; padding: 0; justify-content: center; }
  .site-search-btn__text, .site-search-btn kbd { display: none; }
  .account-btn__name { display: none; }
  .account-btn { padding: 3px 8px 3px 3px; gap: 6px; }
}

/* The Explore group (Composers) is for phones, where the tabs have no room for it. */
@media (min-width: 821px) {
  /* As specific as ".account-menu a[role=menuitem] { display: flex }", or that wins. */
  .account-menu a[role="menuitem"][data-phone-only],
  .account-menu p.account-menu__group[data-phone-only] { display: none; }
}

/* ---------------------------------------------------------- auth pages ---- */

.auth-wrap {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 48px) var(--pad-x) 72px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.auth-card__eyebrow {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-primary);
  margin: 0 0 10px;
}

.auth-card__title {
  font-family: var(--f-display);
  font-size: clamp(26px, 3.4vw, 32px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.auth-card__sub {
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 0 26px;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  margin-bottom: 7px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--bg-deepest);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--text-primary);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field textarea { resize: vertical; min-height: 92px; line-height: 1.5; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--teal-primary);
  box-shadow: 0 0 0 4px var(--teal-glow);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); }

.field__hint {
  font-family: var(--f-body);
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.45;
}

.field__hint.is-bad { color: #ff8f8f; }
.field__hint.is-good { color: var(--teal-soft); }

/* A username box (sign-up): the @ sits inside the field, ahead of the typing,
   so the box reads as the handle people will see. */
.field__at { position: relative; }
.field__at::before {
  content: '@';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--text-secondary);
  pointer-events: none;
}
.field .field__at input { padding-left: 29px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
/* The user-type select carries a longer name than the country beside it, so it
   gets the wider half (26/11/2026: "Library Access & Listener"). */
.field-row--role { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }

@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

.btn-block {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--teal-primary);
  color: var(--text-on-teal);
  transition: filter 0.18s ease, transform 0.18s ease;
}

.btn-block:hover:not(:disabled) { filter: brightness(1.08); }
.btn-block:active:not(:disabled) { transform: translateY(1px); }
.btn-block:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-block--google {
  background: #fff;
  color: #1f1f1f;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 15px;
}

.btn-block--google svg { width: 18px; height: 18px; }

/* Google's own button (js/ws-auth-core.js mountGoogle): hold its height while
   Google's script loads, and centre the iframe it draws. */
.google-slot { min-height: 44px; display: flex; justify-content: center; align-items: center; }

.auth-sep {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.auth-sep::before,
.auth-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.auth-alt {
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin: 22px 0 0;
}

.auth-alt a { color: var(--teal-primary); font-weight: 600; text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }

/* A button that reads as one of the links above, e.g. "send it again". */
.auth-alt button {
  font: inherit;
  font-weight: 600;
  color: var(--teal-primary);
  background: none;
  border: 0;
  padding: 0;
  min-height: 44px;
  cursor: pointer;
}
.auth-alt button:hover { text-decoration: underline; }
.auth-alt button:disabled { opacity: 0.6; cursor: default; text-decoration: none; }

.auth-note {
  font-family: var(--f-body);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 18px 0 0;
  text-align: center;
}
/* The signup agreement line (2026-10-31): the T&Cs say creating an account is
   agreeing to them, so the form has to say so, with both documents a tap away. */
.auth-note a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 2px; }
.auth-note--agree { margin-top: 14px; }

.form-error {
  background: rgba(255, 90, 90, 0.1);
  border: 1px solid rgba(255, 90, 90, 0.35);
  color: #ffb4b4;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 20px;
}

.form-ok {
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid var(--border-default);
  color: var(--teal-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 20px;
}

/* password strength meter */
.pw-meter { display: flex; gap: 5px; margin-top: 9px; }
.pw-meter span {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease;
}
.pw-meter.is-1 span:nth-child(1) { background: #ff7676; }
.pw-meter.is-2 span:nth-child(-n+2) { background: #ffb765; }
.pw-meter.is-3 span:nth-child(-n+3) { background: var(--teal-deep); }
.pw-meter.is-4 span { background: var(--teal-primary); }

/* ------------------------------------------------------------ empty state -- */

.empty {
  text-align: center;
  padding: 46px 26px;
}

.empty svg {
  width: 40px;
  height: 40px;
  color: var(--teal-primary);
  opacity: 0.75;
  margin-bottom: 16px;
}

.empty__title {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.empty__sub {
  font-family: var(--f-body);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 420px;
  margin: 0 auto;
}

.empty__sub a { color: var(--teal-primary); text-decoration: none; font-weight: 600; }
.empty__sub a:hover { text-decoration: underline; }

.skeleton {
  height: 96px;
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--bg-card) 30%, var(--bg-card-elevated) 50%, var(--bg-card) 70%);
  background-size: 220% 100%;
  animation: ws-shimmer 1.3s ease-in-out infinite;
}

.skeleton + .skeleton { margin-top: 14px; }

@keyframes ws-shimmer {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; }
}

/* --------------------------------------------------------- post composer -- */

.composer-box__field textarea {
  width: 100%;
  font-size: 17px;
  background: var(--bg-deepest);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-primary);
  resize: vertical;
  min-height: 54px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.composer-box__field textarea:focus {
  outline: none;
  border-color: var(--teal-primary);
  box-shadow: 0 0 0 4px var(--teal-glow);
}

.composer-box__field textarea::placeholder { color: var(--text-muted); }

.composer-link-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.composer-link-row input {
  flex: 1;
  background: var(--bg-deepest);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 10px 15px;
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--text-primary);
}

.composer-link-row input:focus {
  outline: none;
  border-color: var(--teal-primary);
  box-shadow: 0 0 0 4px var(--teal-glow);
}

.composer-link-row input::placeholder { color: var(--text-muted); }

.composer-attached { margin-top: 14px; display: grid; gap: 12px; }

.composer-count {
  font-family: var(--f-body);
  font-size: 12.5px;
  color: var(--text-muted);
}

.composer-count.is-over { color: #ff8f8f; }

/* -------------------------------------------------------------- comments -- */

.comments {
  border-top: 1px solid var(--border-subtle);
  margin-top: 14px;
  padding-top: 14px;
}

.comment {
  display: flex;
  gap: 11px;
  padding: 9px 0;
}

.comment__bubble {
  flex: 1;
  background: var(--bg-deepest);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
}

.comment__who {
  font-family: var(--f-body);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.comment__when {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 7px;
}

.comment__body {
  font-family: var(--f-body);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-top: 3px;
  white-space: pre-wrap;
  word-break: break-word;
}

.comment__body a { color: var(--teal-primary); }

.comment-form {
  display: flex;
  gap: 9px;
  margin-top: 10px;
}

.comment-form input {
  flex: 1;
  background: var(--bg-deepest);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 10px 15px;
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--text-primary);
}

.comment-form input:focus {
  outline: none;
  border-color: var(--teal-primary);
  box-shadow: 0 0 0 4px var(--teal-glow);
}

.comment-form input::placeholder { color: var(--text-muted); }

/* --------------------------------------------------------- profile links -- */

.link-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.link-row + .link-row { border-top: 1px solid var(--border-subtle); }

.link-row__badge {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
}

.link-row__badge span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}

.link-row__meta { flex: 1; min-width: 0; }

.link-row__platform {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.link-row__url {
  font-family: var(--f-body);
  font-size: 12.5px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-row__url a { color: inherit; text-decoration: none; }
.link-row__url a:hover { color: var(--teal-primary); }

.icon-danger {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.icon-danger:hover { color: #ff9a9a; border-color: rgba(255, 90, 90, 0.4); }
.icon-danger svg { width: 15px; height: 15px; }

/* ------------------------------------------------------------ tab panels -- */

.tab-panel[hidden] { display: none; }

/* ----------------------------------------------------------------- toast -- */

.ws-toast-host {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: grid;
  gap: 10px;
  width: max-content;
  max-width: calc(100vw - 32px);
}

.ws-toast {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-family: var(--f-body);
  font-size: 14.5px;
  padding: 13px 20px;
  border-radius: 999px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  animation: ws-toast-in 0.22s ease-out;
}

.ws-toast.is-error { border-color: rgba(255, 90, 90, 0.45); color: #ffc0c0; }
.ws-toast.is-out { opacity: 0; transition: opacity 0.45s ease; }

@keyframes ws-toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ws-toast { animation: none; }
}

/* --------------------------------------------------- misc / small tweaks -- */

.post__body a { color: var(--teal-primary); }

/* Only the author (or an admin) can see a hidden post; this line says so. */
.post__hidden-note {
  margin: 0 0 10px; padding: 8px 12px;
  font-family: var(--f-body); font-size: 14px; line-height: 1.45;
  color: var(--text-secondary);
  border-left: 2px solid var(--border-strong); background: var(--bg-card-elevated);
}

.post-links { display: grid; gap: 12px; margin: 14px 0 4px; }

/* A link and the sentence that introduced it are one thought, not two blocks.
   CJ, 2026-08-17: "it feels silly to have them separate." So when a post has
   both, the gap closes and the card joins the text — same left edge, no
   floating slab a paragraph away from what it refers to. */
.post__body + .post-links { margin-top: 6px; }
.post__body + .post-links .embed-card--link {
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}
/* And the text stops reserving the full measure above a card it belongs to. */
.post__body:has(+ .post-links) { margin-bottom: 0; }

/* .embed-card__out — the "Open on <platform> ↗" strip under playable cards —
   was removed on 2026-08-15 along with its markup in ws-platform.js. Playable
   cards keep the listener here; the link cards, which have no player to offer,
   still carry their own Open button. */

.post-action:disabled { opacity: 0.5; cursor: not-allowed; }

/* Post owner controls.
   These carried no icon sizing at first, so the SVG collapsed to 0x0 and left a
   12x8 button nobody could hit. Explicit box + icon size, and a 32px target that
   clears the 24px minimum for a tap. */
.post__owner-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.post__edit,
.post__delete {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  transition: color 0.18s ease, background 0.18s ease;
}

.post__edit svg,
.post__delete svg {
  width: 16px;
  height: 16px;
  display: block;
}

.post__edit:hover { color: var(--teal-primary); background: rgba(45, 212, 191, 0.1); }
.post__delete:hover { color: #ff9a9a; background: rgba(255, 90, 90, 0.1); }

.post__edit:focus-visible,
.post__delete:focus-visible {
  outline: 2px solid var(--teal-primary);
  outline-offset: 2px;
}

/* Inline post editing */
.post-edit textarea {
  width: 100%;
  background: var(--bg-deepest);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-primary);
  resize: vertical;
  min-height: 78px;
}

.post-edit textarea:focus {
  outline: none;
  border-color: var(--teal-primary);
  box-shadow: 0 0 0 4px var(--teal-glow);
}

.post-edit__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.post-edit__bar .spacer { flex: 1; }

.post__edited {
  font-family: var(--f-body);
  font-size: 12px;
  color: var(--text-muted);
}

.handle-avail { display: inline-flex; align-items: center; gap: 6px; }

.page-band__stats .is-loading { opacity: 0.4; }

.rail a[aria-current="page"] { color: var(--text-primary); }

.feed-end {
  text-align: center;
  font-family: var(--f-body);
  font-size: 13.5px;
  color: var(--text-muted);
  padding: 24px 0 8px;
}

/* --------------------------------------------- links to public profiles ---- */

.post__name-link {
  color: inherit;
  text-decoration: none;
}

.post__name-link:hover { color: var(--teal-primary); text-decoration: underline; }

.post__avatar-link { display: inline-flex; text-decoration: none; flex-shrink: 0; }
.post__avatar-link:hover { opacity: 0.88; }

/* ------------------------------------------------------------ auth dialog -- */

.ws-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  overflow-y: auto;
}

.ws-modal[hidden] { display: none; }

body.ws-modal-open { overflow: hidden; }

.ws-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 12, 12, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: ws-fade 0.18s ease-out;
}

.ws-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  margin: auto;
  animation: ws-modal-in 0.22s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.ws-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.ws-modal__close:hover { color: var(--text-primary); border-color: var(--border-strong); }
.ws-modal__close svg { width: 16px; height: 16px; }

.ws-modal__close:focus-visible {
  outline: 2px solid var(--teal-primary);
  outline-offset: 2px;
}

@keyframes ws-fade { from { opacity: 0; } to { opacity: 1; } }

@keyframes ws-modal-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ws-modal__backdrop, .ws-modal__dialog { animation: none; }
}

/* --------------------------------------------------- site-wide player bar -- */
/* js/ws-player.js builds it. Redrawn 2026-10-06 (CJ: like and share in the
   player, and "something about it still feels clunky"). What was clunky: four
   controls in three different styles, a play button no stronger than the
   buttons around it, titles and artists both in spaced capitals, the reading
   order jumping from the controls back to the artwork, and on phones no sense
   of progress at all.

   Now, in the competition page's language: one flat strip; what is playing on
   the left with its heart and share beside it; the transport in the middle
   with play as the one filled teal button; the waveform after it, readable;
   video, volume and close at the far right, all the same quiet icon size.
   Titles in sentence case: capitals are kept for headings. On a phone the bar
   is a slim strip with progress along its top edge, and opens into a full
   player (.wsfull). */

/* The player's controls are the site's teal. They were gold for a week
   (2026-10-07); CJ, 2026-10-13: "change it back to the original colour it was
   not the gold not the white". */

.wsbar {
  --wsbar-text-2: #9fb3b3;   /* AA on the bar: 7.6:1 */
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  display: grid;
  grid-template-columns: minmax(240px, 380px) auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 20px;
  height: calc(72px + env(safe-area-inset-bottom, 0px));
  padding: 0 clamp(10px, 1.6vw, 20px) env(safe-area-inset-bottom, 0px) 0;
  background: #071313;
  border-top: 1px solid rgba(45, 212, 191, 0.14);
  animation: ws-dock-in 0.26s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.wsbar[hidden] { display: none; }

/* Starlight (CJ, 2026-10-10: "like with a bentley star roof"): the sky behind
   the bar, drawn by js/ws-starlight.js. Under everything, never in a tap's way. */
.wsbar__sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

@keyframes ws-dock-in {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .wsbar { animation: none; } }

/* What is playing: the artwork flush to the bar's full height, like a sleeve. */
.wsbar__now { position: relative; display: flex; align-items: center; gap: 14px; min-width: 0; height: 72px; }
.wsbar__art { width: 72px; height: 72px; flex: none; object-fit: cover; background: var(--bg-card); }
.wsbar__titles { min-width: 0; flex: 0 1 auto; }
.wsbar__title {
  font: 600 14.5px/1.25 var(--f-body);
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wsbar__artist {
  display: block;
  margin-top: 3px;
  font: 400 13px/1.25 var(--f-body);
  color: var(--wsbar-text-2);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
a.wsbar__artist[href]:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.wsbar__expand { display: none; }

/* One button style for every quiet control. */
.wsbar__btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: none;
  background: none;
  border: 0;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.wsbar__btn:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.wsbar__btn:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: 1px; }
.wsbar__btn svg { width: 20px; height: 20px; }
.wsbar__btn[hidden] { display: none; }

.wsbar__mine { display: flex; align-items: center; gap: 0; flex: none; margin-left: -4px; }
.wsbar__like.is-liked { color: var(--teal-bright); }
.wsbar__like.is-pop svg { animation: ws-like-pop 0.36s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes ws-like-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.28); }
  100% { transform: scale(1); }
}

/* The transport: play is the one filled button on the bar. */
.wsbar__controls { display: flex; align-items: center; gap: 6px; }
.wsbar__play {
  width: 44px;
  height: 44px;
  background: var(--play-sheen), var(--play-disc);
  color: var(--play-ink);
  box-shadow: var(--play-shadow);
  transition: background-color 0.15s ease, transform 0.12s ease;
}
.wsbar__play:hover { background: var(--play-sheen), var(--play-disc-hi); color: var(--play-ink); }
.wsbar__play:active { transform: scale(0.94); }
.wsbar__play svg { width: 18px; height: 18px; }
.wsbar__play:focus-visible { outline-offset: 3px; }

/* The browser wanted a tap before resuming: make the play button ask for it. */
.wsbar.is-blocked .wsbar__play { animation: ws-dock-pulse 1.6s ease-in-out infinite; }
@keyframes ws-dock-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--play-glow); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

.wsbar__progress { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-width: 0; }
.wsbar__t { font: 400 12px/1 var(--f-body); color: var(--wsbar-text-2); font-variant-numeric: tabular-nums; min-width: 32px; }
.wsbar__progress .wsbar__t:first-child { text-align: right; }

/* The bars (2026-10-13, js/ws-bars.js; Flight Path's line before that): the
   song's shape as bars, teal where it has been heard, quiet grey ahead. While
   it plays, the bars round the playhead jump with the music. */
.wsbar__wave { position: relative; height: 44px; min-width: 0; cursor: pointer; touch-action: none; }
.wsbar__progress .wsbar__wave { grid-column: 2; }   /* stays in the wide column when the times hide */
.wsbar__wave:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: 4px; border-radius: 2px; }

.wsbars {
  --bars-played: var(--teal-primary);
  --bars-lit: var(--teal-bright);
  --bars-ahead: rgba(160, 181, 181, 0.34);
  --bars-hover: rgba(45, 212, 191, 0.5);
}
.wsbars > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wsbars__tip {
  position: absolute;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  pointer-events: none;
  padding: 4px 8px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  background: var(--bg-card);
  font: 400 11.5px/1 var(--f-body);
  font-variant-numeric: tabular-nums;
  color: #fff;
  white-space: nowrap;
}
.wsbars__tip[hidden] { display: none; }

.wsbar__extras { display: flex; align-items: center; gap: 4px; }

/* "Video", only for a song that has one: the same outline tag as Top Songs. */
.wsbar__video {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  margin-right: 6px;
  padding: 0 12px;
  background: none;
  border: 1px solid rgba(45, 212, 191, 0.45);
  border-radius: 999px;
  color: var(--teal-bright);
  font: 700 10.5px/1 var(--f-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.wsbar__video:hover { background: rgba(45, 212, 191, 0.1); border-color: var(--teal-bright); }
.wsbar__video:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: 2px; }
.wsbar__video svg { width: 14px; height: 14px; flex: none; }
.wsbar__video[hidden] { display: none; }

/* The version picker: the same outline tag, with the version's name and a chevron. */
.wsbar__version {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  margin-right: 6px;
  padding: 0 8px 0 12px;
  background: none;
  border: 1px solid rgba(160, 181, 181, 0.35);
  border-radius: 999px;
  color: var(--text-primary);
  font: 700 10.5px/1 var(--f-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.wsbar__version:hover, .wsbar__version[aria-expanded="true"] { border-color: var(--teal-bright); }
.wsbar__version:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: 2px; }
.wsbar__version svg { width: 16px; height: 16px; }
.wsbar__version[hidden] { display: none; }
.wsbar__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wsbar__menu[aria-expanded="true"] { color: var(--teal-bright); }

/* More and Version: one floating menu, above the bar or below a full-player button. */
.wsmenu {
  position: fixed;
  z-index: 1500;   /* above the full player (1400) */
  min-width: 220px;
  padding: 6px;
  background: var(--bg-card);
  border: 1px solid rgba(160, 181, 181, 0.22);
  border-radius: 12px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.75);
}
.wsmenu[hidden] { display: none; }
.wsmenu button,
.wsmenu a {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 12px;
  background: none;
  border: 0;
  border-radius: 8px;
  color: var(--text-primary);
  font: 400 14px/1.2 var(--f-body);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.wsmenu button:hover, .wsmenu a:hover, .wsmenu button:focus-visible, .wsmenu a:focus-visible { background: rgba(45, 212, 191, 0.1); outline: none; }
.wsmenu hr { margin: 6px 4px; border: 0; border-top: 1px solid rgba(160, 181, 181, 0.16); }
.wsmenu__label { margin: 0; padding: 8px 12px 4px; font: 700 10px/1 var(--f-body); letter-spacing: 0.16em; text-transform: uppercase; color: #9fb3b3; }
.wsmenu__check { color: var(--teal-bright); }
.wsmenu__at { font: 400 12px/1 var(--f-body); color: #9fb3b3; font-variant-numeric: tabular-nums; }

/* Volume: the icon, with a slim slider that slides out on hover or focus. */
.wsbar__vol { display: flex; align-items: center; }
.wsbar__vol input {
  -webkit-appearance: none;
  appearance: none;
  width: 0;
  height: 3px;
  margin: 0;
  opacity: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.24);
  cursor: pointer;
  transition: width 0.2s ease, opacity 0.2s ease, margin 0.2s ease;
}
.wsbar__vol:hover input,
.wsbar__vol:focus-within input { width: 84px; margin: 0 6px 0 2px; opacity: 1; }
.wsbar__vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
.wsbar__vol input::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
.wsbar__vol input::-moz-range-progress { height: 3px; border-radius: 2px; background: var(--teal-bright); }
.wsbar__vol input:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: 6px; }
.wsbar__close { color: rgba(255, 255, 255, 0.5); }
.wsbar__close svg { width: 18px; height: 18px; }
.wsbar__line { display: none; }

@media (max-width: 1180px) {
  .wsbar { grid-template-columns: minmax(200px, 300px) auto minmax(0, 1fr) auto; column-gap: 14px; }
  .wsbar__vol { display: none; }
}
@media (max-width: 940px) {
  .wsbar__t { display: none; }
  .wsbar__video span { display: none; }
  .wsbar__video { width: 40px; height: 40px; padding: 0; justify-content: center; border-color: transparent; }
}

/* Phone: a slim strip - artwork, title, heart, play, close - with progress
   along its top edge. Tapping the artwork or title opens the full player. */
@media (max-width: 760px) {
  .wsbar {
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: 2px;
    height: auto;
    padding: 0 6px env(safe-area-inset-bottom, 0px) 8px;
  }
  .wsbar__now { height: 64px; gap: 12px; }
  .wsbar__art { width: 48px; height: 48px; border-radius: 4px; }
  .wsbar__title { font-size: 14px; }
  .wsbar__artist { font-size: 12.5px; }
  .wsbar__expand {
    display: block;
    position: absolute;
    inset: 0;
    background: none;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
  }
  .wsbar__expand:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: -2px; }
  .wsbar__titles { flex: 1 1 auto; }
  /* Above the tap-to-open layer that covers the artwork and title. */
  .wsbar__mine { position: relative; z-index: 1; margin: 0; }
  .wsbar__share,
  .wsbar__progress,
  .wsbar__controls [data-act="prev"],
  .wsbar__controls [data-act="next"],
  .wsbar__video,
  .wsbar__version,
  .wsbar__menu,
  .wsbar__grow,
  .wsbar__vol { display: none; }
  .wsbar__btn { width: 44px; height: 44px; }
  .wsbar__play { width: 44px; height: 44px; }
  .wsbar__close { width: 40px; }
  /* The song's line across the top of the strip: drag it to move through the song. */
  .wsbar { grid-template-rows: 22px auto; }
  .wsbar__line { display: block; position: relative; grid-column: 1 / -1; height: 22px; margin: 0 4px 0 2px; cursor: pointer; touch-action: none; }
}

/* ------------------------------------------------------------- full player --
   The phone's "now playing" screen. Large artwork, the title in the display
   face like the competition page's headings, a waveform big enough to scrub
   with a thumb, and the transport where the thumb already is. */
.wsfull {
  position: fixed;
  inset: 0;
  z-index: 1400;   /* above the phone tab bar (1200) */
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
  background: var(--bg-deepest);
  color: var(--text-primary);
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: ws-full-in 0.28s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.wsfull[hidden] { display: none; }
@keyframes ws-full-in {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
body.ws-full-open { overflow: hidden; }

.wsfull__top { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; }
.wsfull__eyebrow { font: 700 11px/1 var(--f-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal-bright); }
.wsfull__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: none;
  background: none;
  border: 0;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}
.wsfull__icon svg { width: 24px; height: 24px; }
.wsfull__icon:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: 0; }
.wsfull__icon[hidden] { display: none; }
.wsfull__like.is-liked { color: var(--teal-bright); }

.wsfull__body { display: flex; flex-direction: column; flex: 1; width: 100%; max-width: 480px; margin: 0 auto; padding: 4px 24px 24px; }

/* The music and the artist lead (CJ, 2026-10-07): the cover, then the song,
   then its line and the transport. */
.wsfull__art {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}
.wsfull__head { display: flex; align-items: flex-end; gap: 12px; margin-top: 24px; }
.wsfull__titles { flex: 1; min-width: 0; }
.wsfull__title {
  margin: 0;
  font: 800 clamp(26px, 8vw, 36px)/1.02 var(--f-display);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  text-wrap: balance;
  overflow-wrap: break-word;   /* mid-word only when one word is wider than the screen */
}
.wsfull__artist {
  display: inline-block;
  margin-top: 9px;
  font: 400 16px/1.3 var(--f-body);
  color: var(--text-secondary);
  text-decoration: none;
}
a.wsfull__artist[href] { border-bottom: 1px solid var(--border-strong); }
/* Where the artist is from, beside their name: "Fanisi Band · Kenya". */
.wsfull__by { margin: 9px 0 0; font: 400 16px/1.3 var(--f-body); color: var(--text-secondary); }
.wsfull__by .wsfull__artist { margin-top: 0; }
.wsfull__where[hidden] { display: none; }
.wsfull__where::before { content: "·"; margin: 0 8px; color: #9fb3b3; }
.wsfull__like { margin-right: -12px; }
.wsfull__wave { height: 112px; margin-top: 14px; }
.wsfull__times {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font: 400 12.5px/1 var(--f-body);
  color: #9fb3b3;
  font-variant-numeric: tabular-nums;
}
.wsfull__transport { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 12px; }
.wsfull__skip {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
}
.wsfull__skip svg { width: 28px; height: 28px; }
.wsfull__play {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  background: var(--play-sheen), var(--play-disc);
  border: 0;
  border-radius: 50%;
  color: var(--play-ink);
  box-shadow: var(--play-shadow);
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease;
}
.wsfull__play:hover { background: var(--play-sheen), var(--play-disc-hi); }
.wsfull__play:active { transform: scale(0.95); }
.wsfull__play svg { width: 30px; height: 30px; }
.wsfull__skip:focus-visible, .wsfull__play:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: 3px; }
.wsfull__more { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding-top: 22px; }
.wsfull__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-primary);
  font: 700 12px/1 var(--f-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.wsfull__pill:hover, .wsfull__pill[aria-expanded="true"] { border-color: var(--teal-bright); background: rgba(45, 212, 191, 0.08); }
.wsfull__pill svg { width: 18px; height: 18px; color: var(--teal-bright); }
.wsfull__pill[hidden] { display: none; }
.wsfull__pill:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: 2px; }

/* Full, Clean, Instrumental: a segmented control, when the song has more than one. */
.wsfull__versions { display: flex; margin-top: 22px; padding: 3px; border: 1px solid rgba(160, 181, 181, 0.25); border-radius: 999px; }
.wsfull__versions[hidden] { display: none; }
.wsfull__versions button {
  flex: 1;
  min-height: 40px;
  padding: 0 10px;
  background: none;
  border: 0;
  border-radius: 999px;
  color: var(--text-secondary);
  font: 700 11px/1 var(--f-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.wsfull__versions button[aria-checked="true"] { background: var(--teal-primary); color: var(--text-on-teal); }
.wsfull__versions button:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: 2px; }

.wsfull__kicker { display: block; margin: 0 0 10px; font: 700 10px/1 var(--f-body); letter-spacing: 0.16em; text-transform: uppercase; color: #9fb3b3; }

/* The artist, when they are a member: a card to their page. */
.wsfull__person {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.wsfull__person[hidden] { display: none; }
.wsfull__person:hover { border-color: var(--border-strong); }
.wsfull__person:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: 2px; }
.wsfull__face {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--bg-card);
  font: 700 15px/1 var(--f-body);
  color: var(--text-secondary);
}
.wsfull__face img { width: 100%; height: 100%; object-fit: cover; }
.wsfull__who { min-width: 0; }
.wsfull__who .wsfull__kicker { margin-bottom: 6px; }
.wsfull__who-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 16px/1.25 var(--f-body); }
.wsfull__who-meta { display: block; margin-top: 2px; font: 400 13px/1.3 var(--f-body); color: var(--text-secondary); }
.wsfull__who-meta:empty { display: none; }
.wsfull__who-go { display: inline-flex; align-items: center; gap: 2px; font: 700 10.5px/1 var(--f-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-bright); }
.wsfull__who-go svg { width: 16px; height: 16px; }

/* Where in the world the artist is from (CJ, 2026-10-09): a still globe and
   the country, set like the artist card but with no frame, so it reads as a
   note about the song rather than a feature (js/ws-globe.js). */
.wsfull__from { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.wsfull__from[hidden] { display: none; }
.wsfull__person:not([hidden]) + .wsfull__from { margin-top: 18px; }
.wsfull__globe { position: relative; flex: none; width: 64px; height: 64px; }
.wsfull__globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.wsfull__next { margin-top: 28px; }
.wsfull__next[hidden] { display: none; }
.wsfull__next ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border-subtle); }
.wsfull__next li:nth-child(n+3) { display: none; }   /* two on a phone */
.wsfull__next button {
  display: grid;
  grid-template-columns: 24px 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px 2px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border-subtle);
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.wsfull__next button:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: -2px; }
.wsfull__next img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; background: var(--bg-card); }
.wsfull__n, .wsfull__nc { font: 700 10.5px/1 var(--f-body); letter-spacing: 0.1em; color: #9fb3b3; font-variant-numeric: tabular-nums; }
.wsfull__nt { min-width: 0; }
.wsfull__nt span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wsfull__nt span:first-child { font: 600 14.5px/1.25 var(--f-body); }
.wsfull__nt span + span { margin-top: 2px; font: 400 13px/1.25 var(--f-body); color: var(--text-secondary); }
.wsfull__next button:hover .wsfull__nt span:first-child { color: var(--teal-bright); }

/* Tablet and desktop: the cover on the left, the song and the artist on the
   right, the line and the transport across the bottom. The bar's expand
   button opens it. A tablet held upright keeps one wide column. */
@media (min-width: 600px) {
  .wsfull__body { max-width: 600px; }
  .wsfull__art { max-width: 460px; }
}
@media (min-width: 1024px), (min-width: 761px) and (orientation: landscape) {
  .wsfull__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
    grid-template-rows: auto auto auto auto auto auto 1fr auto auto;
    column-gap: clamp(32px, 5vw, 72px);
    max-width: 1180px;
    padding: 4px clamp(24px, 4vw, 48px) 32px;
    align-content: start;
    /* Its own height, centred in the window. Stretched to a tall window it
       spread the cover and the line apart and left the middle empty (CJ,
       2026-10-07). The 1fr row only takes up the cover's extra height. */
    flex: 0 0 auto;
    margin: auto;
  }
  .wsfull__art { grid-column: 1; grid-row: 1 / 8; align-self: start; justify-self: center; max-width: none; width: min(100%, max(240px, calc(100dvh - 330px)), 560px); }
  .wsfull__head { grid-column: 2; grid-row: 1; margin-top: 0; }
  .wsfull__title { font-size: clamp(32px, 3.6vw, 52px); }
  .wsfull__artist { font-size: 17px; }
  .wsfull__versions { grid-column: 2; grid-row: 2; justify-self: start; min-width: 300px; }
  .wsfull__more { grid-column: 2; grid-row: 3; justify-content: flex-start; }
  .wsfull__person { grid-column: 2; grid-row: 4; }
  .wsfull__from { grid-column: 2; grid-row: 5; }
  .wsfull__next { grid-column: 2; grid-row: 6; }
  .wsfull__next li:nth-child(n+3) { display: list-item; }   /* three with room for them */
  .wsfull__wave { grid-column: 1 / -1; grid-row: 8; margin-top: 22px; }
  /* The deck: the time either side of the transport, on one row. */
  .wsfull__times { grid-column: 1 / -1; grid-row: 9; align-self: center; margin-top: 0; font-size: 13.5px; }
  .wsfull__transport { grid-column: 1 / -1; grid-row: 9; justify-self: center; margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .wsfull { animation: none; }
  .wsbar__like.is-pop svg { animation: none; }
}

/* Keep the bar from covering the last line of any page. */
body:has(.wsbar:not([hidden])) { padding-bottom: 86px; }

/* ------------------------------------------------------- floating video --- */
/* js/ws-video.js: a music video or a reel, in a panel above the bar (agreed in
   mockups/my-music.html). The song pauses while it plays. */

.wsvideo {
  position: fixed;
  z-index: 151;
  right: clamp(12px, 2vw, 24px);
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  width: min(480px, calc(100vw - 24px));
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-default);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  animation: ws-video-in 0.24s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.wsvideo[hidden] { display: none; }
body:has(.wsbar:not([hidden])) .wsvideo { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }

@keyframes ws-video-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .wsvideo { animation: none; } }

.wsvideo__screen { aspect-ratio: 16 / 9; background: #000; }
.wsvideo__screen iframe,
.wsvideo__screen video { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.wsvideo__screen:fullscreen { aspect-ratio: auto; }

.wsvideo__bar { display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 14px; }
.wsvideo__title {
  flex: 1;
  min-width: 0;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wsvideo__title small {
  display: block;
  margin-top: 2px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #849898;   /* the AA-safe muted tone, as in the bar */
  overflow: hidden;
  text-overflow: ellipsis;
}
.wsvideo.is-missing .wsvideo__title small { color: var(--text-secondary); }
.wsvideo__bar .wsbar__btn[hidden] { display: none; }

@media (max-width: 760px) {
  .wsvideo { left: 12px; right: 12px; width: auto; }
  body:has(.wsbar:not([hidden])) .wsvideo { bottom: calc(var(--wsbar-h, 86px) + 12px); }   /* the bar's real height, safe area included */
}

/* ------------------------------------------------- minimised feed player --- */

/* Minimise control: lives in the card body row, next to the platform badge, so
   it is on solid background and never fights the platform's own controls. */
.embed-card__min {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 10px;
  padding: 7px 13px;
  flex-shrink: 0;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid var(--border-default);
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--teal-primary);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.embed-card__min:hover {
  background: var(--teal-primary);
  color: var(--text-on-teal);
  border-color: var(--teal-primary);
}

.embed-card__min svg { width: 14px; height: 14px; }
.embed-card__min:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: 2px; }

@media (max-width: 480px) {
  .embed-card__min span { display: none; }
  .embed-card__min { padding: 7px 9px; }
}

/* The floated card itself. Position only - the iframe is never moved in the DOM,
   because reparenting an iframe reloads it and the video would start over. */
.embed-card.is-floating {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: min(360px, calc(100vw - 32px));
  z-index: 160;
  margin: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  animation: ws-float-in 0.24s cubic-bezier(0.2, 0.8, 0.3, 1);
}

/* Sit above the audio bar when that is on screen too. */
body.ws-dock-visible .embed-card.is-floating { bottom: 92px; }

@keyframes ws-float-in {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) { .embed-card.is-floating { animation: none; } }

.embed-card.is-floating .embed-card__min { display: none; }

.embed-float__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 12px;
  background: var(--bg-card-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.embed-float__title {
  flex: 1;
  min-width: 0;
  font-family: var(--f-body);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.embed-float__bar button {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  border-radius: 7px;
  color: var(--text-secondary);
  cursor: pointer;
}

.embed-float__bar button:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.07); }
.embed-float__bar button svg { width: 14px; height: 14px; }

/* Holds the space in the post so nothing jumps while the card is in the corner. */
.embed-placeholder {
  display: grid;
  place-items: center;
  border: 1px dashed var(--border-default);
  border-radius: var(--radius);
  background: rgba(45, 212, 191, 0.04);
}

.embed-placeholder span {
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 560px) {
  .embed-card.is-floating { right: 12px; left: 12px; width: auto; bottom: 14px; }
  body.ws-dock-visible .embed-card.is-floating { bottom: 80px; }
}

/* -------------------------------------------- unplayable-link explainer ---- */

.link-notice:empty { display: none; }

.link-blocked {
  margin-top: 12px;
  padding: 16px 18px;
  background: rgba(255, 90, 90, 0.07);
  border: 1px solid rgba(255, 90, 90, 0.3);
  border-radius: var(--radius-sm);
  animation: ws-notice-in 0.2s ease-out;
}

@keyframes ws-notice-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) { .link-blocked { animation: none; } }

.link-blocked__head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
  font-family: var(--f-body);
  font-size: 14.5px;
  color: #ffc9c9;
}

.link-blocked__head svg { width: 18px; height: 18px; flex-shrink: 0; }

.link-blocked p {
  font-family: var(--f-body);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 9px;
}

.link-blocked__fix {
  background: rgba(0, 0, 0, 0.22);
  border-radius: 8px;
  padding: 10px 12px;
}

.link-blocked__fix b { color: var(--text-primary); }
.link-blocked__fix i { color: var(--text-primary); font-style: normal; font-weight: 600; }

.link-blocked__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

/* ------------------------------------------------ dead-content fallback ---- */

.embed-card--gone {
  background: rgba(255, 255, 255, 0.02);
  border-style: dashed;
}

.embed-linkicon--gone { color: var(--text-muted); }

.embed-card--gone .embed-card__title { color: var(--text-secondary); }

.embed-card__owner-hint {
  margin-top: 6px;
  font-family: var(--f-body);
  font-size: 12.5px;
  color: var(--teal-primary);
}

/* ----------------------------------------------------------- brand loader -- */

/* A spinning gold record. The artwork is trimmed and padded to an exact square
   so the disc's centre is the image's centre - otherwise it wobbles as it turns. */

.ws-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px 20px;
}

.ws-loader--inline {
  flex-direction: row;
  gap: 11px;
  padding: 18px 4px;
  justify-content: flex-start;
}

.ws-loader__disc {
  width: 64px;
  height: 64px;
  display: block;
  animation: ws-spin 1.6s linear infinite;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45));
}

.ws-loader--inline .ws-loader__disc { width: 34px; height: 34px; }
.ws-loader--sm .ws-loader__disc { width: 44px; height: 44px; }

@keyframes ws-spin { to { transform: rotate(360deg); } }

.ws-loader__label {
  font-family: var(--f-body);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

/* Reduced motion: never spin. Keep a quiet pulse so it still reads as busy. */
@media (prefers-reduced-motion: reduce) {
  .ws-loader__disc {
    animation: ws-loader-pulse 1.8s ease-in-out infinite;
  }
  @keyframes ws-loader-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
  }
}

/* ------------------------------------------------------------ emoji picker -- */

.emoji-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-secondary);
  font-family: var(--f-body);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 7px 12px;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.emoji-btn--icon { padding: 0; width: 34px; height: 34px; justify-content: center; }

.emoji-btn:hover {
  color: var(--teal-primary);
  border-color: var(--border-default);
  background: rgba(45, 212, 191, 0.08);
}

.emoji-btn:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: 2px; }
.emoji-btn svg { width: 17px; height: 17px; }

.emoji-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 170;
  width: min(330px, calc(100vw - 32px));
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: ws-emoji-in 0.16s ease-out;
}

.emoji-panel--right { left: auto; right: 0; }
.emoji-panel--up { top: auto; bottom: calc(100% + 8px); }

@keyframes ws-emoji-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) { .emoji-panel { animation: none; } }

.emoji-panel__search { padding: 10px 10px 6px; }

.emoji-panel__search input {
  width: 100%;
  background: var(--bg-deepest);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 8px 13px;
  font-family: var(--f-body);
  font-size: 13.5px;
  color: var(--text-primary);
}

.emoji-panel__search input:focus {
  outline: none;
  border-color: var(--teal-primary);
  box-shadow: 0 0 0 3px var(--teal-glow);
}

.emoji-panel__grid { max-height: 260px; overflow-y: auto; padding: 0 10px 10px; }

.emoji-panel__group {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 10px 0 6px;
}

.emoji-panel__row { display: flex; flex-wrap: wrap; gap: 2px; }

.emoji-panel__item {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.12s ease;
}

.emoji-panel__item:hover { background: rgba(45, 212, 191, 0.14); transform: scale(1.15); }
.emoji-panel__item:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: -2px; }

.emoji-panel__none {
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--text-muted);
  padding: 14px 4px;
  text-align: center;
}

/* The composer's tool row holds the button; the panel anchors to it. */
.composer-box__tools, .comment-form, .post-edit__bar { position: relative; }

/* --------------------------------------------------------------- reactions -- */

.reaction-bar {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.post__actions .reaction-bar { margin-left: auto; }

.reaction-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 8px;
  min-height: 28px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--f-body);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.reaction-chip:hover { background: rgba(45, 212, 191, 0.12); transform: translateY(-1px); }

.reaction-chip.is-mine {
  background: rgba(45, 212, 191, 0.16);
  border-color: var(--border-strong);
}

.reaction-chip:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: 2px; }
.reaction-chip__emoji { font-size: 14px; line-height: 1; }

.reaction-chip__count {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.reaction-chip.is-mine .reaction-chip__count { color: var(--teal-primary); }

.reaction-add {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px dashed var(--border-default);
  border-radius: 999px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.reaction-add:hover { color: var(--teal-primary); border-color: var(--teal-primary); background: rgba(45, 212, 191, 0.08); }
.reaction-add:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: 2px; }
.reaction-add svg { width: 15px; height: 15px; }

/* Comment footer: Like beside the reaction chips. */
.comment__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 9px;
}

.comment-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 4px 2px;
  font-family: var(--f-body);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease;
}

.comment-like:hover { color: var(--teal-primary); }
.comment-like svg { width: 15px; height: 15px; }
.comment-like:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: 2px; border-radius: 6px; }

/* ------------------------------------------------------- composers page ---- */

.composer-grid {
  display: grid;
  /* min() so the track can shrink below 340px on a phone. A bare minmax(340px,
     1fr) forces a 340px column inside a 312px container, which is what pushed
     composers.html into sideways scrolling at 360px and below. */
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 22px;
}

.composer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.composer-card__head { display: flex; align-items: center; gap: 14px; }

.composer-card__photo {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 999px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-default);
}

.composer-card__name {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 2px;
}

.composer-card__role {
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.composer-card__tags {
  font-family: var(--f-body);
  font-size: 12.5px;
  color: var(--teal-primary);
  margin: 4px 0 0;
}

.composer-card__reel { margin-top: auto; }

/* Members who signed up as composers */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 22px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.member-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-elevated);
  transform: translateY(-2px);
}

.member-card__name {
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.member-card__meta {
  font-family: var(--f-body);
  font-size: 12.5px;
  color: var(--text-muted);
}

.member-card__bio {
  font-family: var(--f-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 4px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) { .member-card:hover { transform: none; } }

/* ------------------------------------------------------ listening in My Profile -- */

.listen-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 0;
}

.listen-row + .listen-row { border-top: 1px solid var(--border-subtle); }

.listen-row__art {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-card-elevated);
}

.listen-row__art--blank {
  background-image: linear-gradient(150deg, rgba(45, 212, 191, 0.25), rgba(10, 30, 30, 0.9));
}

.listen-row__meta { flex: 1; min-width: 0; }

.listen-row__title {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listen-row__sub {
  font-family: var(--f-body);
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listen-row__when {
  font-family: var(--f-body);
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.reco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.reco-card__why {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-primary);
  margin: 0 0 8px;
}

.cat-group {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 14px 0 8px;
}

.cat-group:first-child { margin-top: 0; }

.cat-row { display: flex; flex-wrap: wrap; gap: 7px; }

.cat-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.cat-chip:hover {
  color: var(--teal-primary);
  border-color: var(--border-default);
  background: rgba(45, 212, 191, 0.1);
}

.tag-banner {
  font-family: var(--f-body);
  font-size: 13.5px;
  color: var(--text-secondary);
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 11px 15px;
  margin: 0 0 18px;
}

.tag-banner b { color: var(--text-primary); text-transform: capitalize; }
.tag-banner a { color: var(--teal-primary); text-decoration: none; font-weight: 600; }
.tag-banner a:hover { text-decoration: underline; }

/* ---------------------------------------------------------- account menu -- */

.account-menu {
  /* Fixed to the viewport and mounted on <body> - see the note in ws-app.js
     about the header being a backdrop root. Top and left are set in script. */
  position: fixed;
  z-index: 180;
  width: 244px;

  /* Frosted glass, not plain transparency. The blur is the part that makes it
     work: it turns whatever is behind - a cover photograph, a video thumbnail -
     into texture instead of competing detail, so the labels stay readable over
     anything. Straight opacity would put us back where the profile name was.
     Saturation is lifted slightly because blurring washes colour out. */
  background: color-mix(in srgb, var(--bg-card-elevated) 76%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid color-mix(in srgb, var(--teal-primary) 16%, var(--border-default));
  border-radius: var(--radius);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  animation: ws-menu-in 0.16s ease-out;
}

/* Anything without backdrop-filter gets the solid panel rather than unreadable
   text over a photograph. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .account-menu { background: var(--bg-card-elevated); }
}

@keyframes ws-menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) { .account-menu { animation: none; } }

.account-menu__head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 15px;
  border-bottom: 1px solid var(--border-subtle);
}

.account-menu__name {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.account-menu__handle {
  font-family: var(--f-body);
  font-size: 12.5px;
  color: var(--text-muted);
}

.account-menu__group {
  font-family: var(--f-body);
  font-size: var(--c-legend);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 12px 15px 5px;
}

.account-menu a[role="menuitem"],
.account-menu__foot button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 15px;
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}

.account-menu a[role="menuitem"]:hover,
.account-menu__foot button:hover {
  background: rgba(45, 212, 191, 0.1);
  color: var(--text-primary);
}

.account-menu a:focus-visible,
.account-menu button:focus-visible {
  outline: 2px solid var(--teal-primary);
  outline-offset: -2px;
}

.account-menu__foot {
  margin-top: 8px;
  border-top: 1px solid var(--border-subtle);
  padding: 4px 0;
}

.account-menu__foot button { color: #ffb4b4; }
.account-menu__foot button:hover { background: rgba(255, 90, 90, 0.12); color: #ffc9c9; }


/* Marks where a playing card sits, so the observer can tell when it has been
   scrolled past even while the card itself is floating. */
.embed-sentinel { height: 1px; margin: 0; padding: 0; }

/* ---- Settings: preference rows and the destructive panel -------------------
   A native checkbox rather than a custom switch. A styled toggle would need
   its own focus, disabled and indeterminate states to be as good as the one
   the browser already ships, and a half-built one is worse than none. */
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}
.check-row input[type="checkbox"] {
  width: 20px; height: 20px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--teal-primary);
  cursor: pointer;
}
.check-row label {
  display: block;
  font-weight: 500;
  cursor: pointer;
}
.check-row label .field__hint { margin-top: 4px; font-weight: 400; }

/* Deleting an account and exporting data are not ordinary settings, so they do
   not look like ordinary settings. The red edge is the warning, not a colour
   used decoratively elsewhere. */
.panel--danger { border-color: rgba(255, 90, 90, 0.35); }
.panel--danger .panel__title { color: #ffb4b4; }

.btn-block--danger {
  background: rgba(255, 90, 90, 0.12);
  border-color: rgba(255, 90, 90, 0.45);
  color: #ffc9c9;
}
.btn-block--danger:hover:not(:disabled) {
  background: rgba(255, 90, 90, 0.2);
  border-color: rgba(255, 90, 90, 0.7);
}
.btn-block--danger:disabled { opacity: 0.45; cursor: not-allowed; }

/* A row of buttons that wraps instead of colliding. Three links in separate
   <p> tags stacked on top of each other on the 404 page - inline-block boxes
   with no gap overlap the moment their line-height is shorter than the pill. */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }

/* Short pages (404, empty states) otherwise leave the footer floating in the
   middle of the viewport with a void beneath it. */
.page-wrap--fill { min-height: 46vh; }

/* The identity row is a link now, so it needs to behave like one - and it has to
   restate its layout, because the generic `.account-menu a` rule below sets
   display:block and would otherwise stack the avatar above the name. */
/* Out-specifies `.account-menu a[role="menuitem"]`, which sets display:block and
   would otherwise stack the avatar above the name. */
.account-menu a[role="menuitem"].account-menu__head {
  display: flex; align-items: center; gap: 11px;
  padding: 14px 15px;
  text-decoration: none; color: inherit;
}
.account-menu a.account-menu__head:hover { background: rgba(255, 255, 255, 0.05); }
.account-menu a.account-menu__head:hover .account-menu__handle { color: var(--teal-primary); }
.account-menu a.account-menu__head:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: -2px; }

/* Menu icons. Sized to the cap height of the label beside them rather than to a
   round number, so the row reads as one object instead of a picture next to some
   words. Muted at rest and teal on hover, inherited through currentColor so the
   SVG needs no colour of its own. */
.account-menu a[role="menuitem"] {
  display: flex;
  align-items: center;
  gap: 11px;
}
/* The unread count the phone tab bar used to carry now rides the Messages item
   here (2026-11-30): pushed to the right edge, like a count on a row. */
.account-menu a[href="messages.html"] .nav-badge { margin-left: auto; }
.account-menu__icon {
  width: 18px; height: 18px; flex: none;
  color: var(--text-muted);
  transition: color .16s ease;
}
.account-menu a[role="menuitem"]:hover .account-menu__icon,
.account-menu a[role="menuitem"]:focus-visible .account-menu__icon {
  color: var(--teal-primary);
}

/* Chalk icons sit slightly larger than a hairline glyph would, because the
   turbulence filter eats a little off every edge and a small chalk mark just
   looks broken. Near-white rather than muted grey - chalk is bright, that is
   the whole character of it - and only warmed toward teal on hover. */
.account-menu__icon {
  width: 22px; height: 22px; flex: none;
  color: color-mix(in srgb, var(--text-primary) 82%, transparent);
  transition: color .16s ease;
}
.account-menu a[role="menuitem"] { display: flex; align-items: center; gap: 12px; }
.account-menu a[role="menuitem"]:hover .account-menu__icon,
.account-menu a[role="menuitem"]:focus-visible .account-menu__icon {
  color: var(--teal-primary);
}

/* ==========================================================================
   MOBILE PASS — 2026-08-15

   Every rule here answers a measurement taken against the real pages in a
   touch-emulating browser at 320, 360 and 390px, not a guess about phones.
   platform.css is the last stylesheet every page loads, which is why the
   cross-cutting rules live here; the three layout bugs this pass also found
   were fixed at source instead (hero title in styles.css, .composer-grid
   above, .layout--3col in pages.css).

   Deliberately NOT here: inline links inside a sentence. WCAG 2.5.8 exempts
   them, and padding them to 44px would tear open the line spacing of the feed
   and the footer credit. Footer *navigation* links are not sentences and are
   treated as the controls they are.
   ========================================================================== */

@media (max-width: 820px) {

  /* iOS Safari zooms the whole page in when a form field smaller than 16px
     takes focus, and does not zoom back out when it loses focus. Every field
     on the site measured 14-15px, so signing up on an iPhone left the user
     stranded at 1.3x with the layout hanging off the right of the screen.

     The .field selectors are repeated deliberately: the design system styles
     fields as `.field input` (0,1,1), which outranks a bare `input` (0,0,1) no
     matter how late it appears, so the first version of this rule did nothing
     at all and every field stayed at 15px. */
  input, select, textarea,
  .field input, .field select, .field textarea,
  .composer-link-row input { font-size: 16px; }

  /* Icon buttons: small square controls that can simply grow. */
  .ws-modal__close { min-width: 44px; min-height: 44px; }

  /* Buttons and button-shaped links: growing the box is safe, they already
     sit on their own line or in a row with room to spare. */
  .btn,
  .btn-sm,
  .post-action {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Text links that ARE controls. Padding grows the touch target; the matching
     negative margin gives the space back to the layout, so the target reaches
     44px without anything moving on screen. */
  .view-all,
  .panel__link,
  .post__name-link {
    padding-block: 13px;
    margin-block: -13px;
  }

  /* Same trick for the avatar link — bumping its min-height instead would have
     stretched a 36px avatar into a 44px oval. */
  .post__avatar-link {
    padding: 4px;
    margin: -4px;
  }

  /* Footer sitemap on a phone: the items stack with no space between them (the
     client, 2026-10-20: "zero spacing", the 42px rows ate the screen). Each row
     is 24px, the smallest tap target WCAG accepts, and runs the column's width.
     Plain-text items (pages still to come) take the same height so every list
     steps evenly. */
  .site-footer .footer-col ul { gap: 0; }
  .site-footer li > a,
  .site-footer li > .footer-soon {
    display: block;
    line-height: 24px;
  }

  /* The two smallest pieces of type on the site. 11px is a squint on a phone
     held at arm's length; these are the credit and copyright lines, so they
     stay quiet, just legible. */
  .footer-credit { font-size: 12.5px; }
  .footer-bottom { font-size: 12.5px; }

  /* A single long unbroken string — a pasted URL in the feed, a long handle —
     used to size its grid column and scroll the whole page sideways. The column
     fix in pages.css stops the page moving; this stops the text being clipped. */
  .post__body,
  .feed-end,
  .panel { overflow-wrap: anywhere; }
}

/* Footer below desktop width: the lists flow down balanced newspaper columns,
   three on a tablet and two on a phone, instead of sitting in grid rows. In
   rows the long Explore list stood beside the short Company list and left a
   hole the height of four links (the client, 2026-10-20: "spacing to be fixed
   on footer"). */
@media (max-width: 1100px) {
  .footer-top {
    display: block;
    columns: 3;
    column-gap: 32px;
    padding-bottom: 12px;
  }
  .footer-brand { column-span: all; margin-bottom: 28px; }
  .footer-top > .footer-col { break-inside: avoid; margin-bottom: 28px; }
}
@media (max-width: 640px) {
  .footer-top { columns: 2; column-gap: 20px; }
}

@media (max-width: 820px) {
  /* Footer social icons: 34px squares carrying an svg. They are the only
     aria-labelled links in the footer, which makes that the precise selector —
     no class exists to hook. */
  .site-footer a[aria-label] {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Embed card titles are the link to the track. The truncation moves from the
     wrapper to the anchor so the anchor can carry the padding that makes a 44px
     target — padding on the anchor while the wrapper still clipped would have
     been clipped away with it. */
  .embed-card__title { overflow: visible; }
  .embed-card__title > a {
    display: block;
    padding-block: 12px;
    margin-block: -12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ---------- password reveal ----------
   The eye lives inside the field rather than beside it, so the label→field
   relationship stays intact and the control cannot be mistaken for a submit.
   44px square: tests/mobile.spec.mjs holds every control to that, and this one
   is used precisely when someone is squinting at a phone. */
.pw-wrap { position: relative; }

.pw-wrap input {
  /* Room for the button, so a long password never runs underneath it. */
  padding-right: 52px;
}

.pw-toggle {
  position: absolute;
  top: 50%;
  right: 3px;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.18s ease;
}

.pw-toggle:hover { color: var(--text-primary); }

.pw-toggle:focus-visible {
  outline: 2px solid var(--teal-primary);
  outline-offset: 2px;
  color: var(--text-primary);
}

/* Pressed means the password is on screen — worth stating in colour as well as
   in aria-pressed, because that is a state you want to notice and undo. */
.pw-toggle[aria-pressed="true"] { color: var(--teal-primary); }

.pw-toggle svg { width: 20px; height: 20px; display: block; }

@media (prefers-reduced-motion: reduce) {
  .pw-toggle { transition: none; }
}

/* ==========================================================================
   MESSAGES
   Two panes on a desktop; on a phone the inbox is the page until a thread is
   opened. No new colours, no new radii — the same tokens every other surface
   uses, because a message screen that looks like a different product is how a
   platform starts feeling assembled rather than made.
   ========================================================================== */

/* The label a screen reader needs and the eye does not. */
.dm-sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* Outside the grid on purpose: as a child of .dm it took the first column and
   pushed the inbox into the second and the thread onto a row of its own. */
.dm-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--bg-card); color: var(--text-primary);
  padding: 10px 16px; border-radius: var(--radius-sm); z-index: 60;
}
.dm-skip:focus { left: 12px; top: 12px; }

.dm {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: 1px;
  background: var(--border-subtle);
  border-top: 1px solid var(--border-subtle);
  /* A fixed height, not a minimum: the panes scroll inside it, and the page
     itself stays put while a conversation grows. */
  height: calc(100vh - 96px - var(--wsbar-h, 0px));   /* room for the player bar (ws-player.js) */
  overflow: hidden;
  max-width: 1180px;
  margin: 0 auto;
}

.dm-list, .dm-thread {
  background: var(--bg-base);
  display: flex;
  flex-direction: column;
  /* Without this a flex child refuses to shrink below its content, so the
     message list grows past the pane and spills over the footer instead of
     scrolling inside it. */
  min-height: 0;
}

.dm-list__head {
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.dm-list__head h1 {
  font-family: var(--f-display, inherit);
  font-size: 22px;
  margin: 0;
  color: var(--text-primary);
}

.dm-list__body { overflow-y: auto; flex: 1; min-height: 0; }

.dm-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  color: inherit;
  /* 44px minimum, and it is a whole row rather than a name-sized target. */
  min-height: 64px;
}
.dm-row:hover { background: var(--bg-card); }
.dm-row[aria-current="true"] {
  background: var(--bg-card-elevated);
  box-shadow: inset 3px 0 0 var(--teal-primary);
}

.dm-row__text { min-width: 0; }
.dm-row__text b {
  display: block;
  font-size: 14.5px;
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dm-row__last {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Unread is weight and colour, never a second colour of dot plus bold plus a
   badge — one signal said three times reads as decoration. */
.dm-row.is-unread .dm-row__last { color: var(--text-secondary); font-weight: 500; }

.dm-row__meta { display: grid; justify-items: end; gap: 6px; }
.dm-row__time { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; }

.dm-badge, .nav-badge {
  display: inline-block;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--teal-primary);
  color: var(--text-on-teal);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.nav-badge { margin-left: 7px; vertical-align: 2px; }

/* ---------- thread ---------- */

.dm-thread__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-base);
}
.dm-back {
  display: none;
  background: none; border: 0; color: var(--text-secondary);
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  cursor: pointer;
}
.dm-back:hover { color: var(--text-primary); background: var(--bg-card); }

.dm-who { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.dm-who__name {
  font-weight: 600; color: var(--text-primary); font-size: 15px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dm-thread__tools { margin-left: auto; }

.dm-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dm-msg { max-width: min(70%, 560px); }
.dm-msg--mine { align-self: flex-end; }

.dm-bubble {
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 14.5px;
  line-height: 1.5;
  /* A pasted URL must not push the column wider than the screen. */
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.dm-msg--mine .dm-bubble {
  background: var(--teal-deep);
  border-color: transparent;
  color: #04211E;
}
.dm-bubble--gone { color: var(--text-muted); font-style: italic; background: transparent; }

.dm-msg__foot {
  display: flex; align-items: center; gap: 10px;
  margin-top: 4px; padding: 0 4px;
  font-size: 11.5px; color: var(--text-muted);
}
.dm-msg--mine .dm-msg__foot { justify-content: flex-end; }
.dm-msg__act {
  background: none; border: 0; padding: 2px 0;
  color: var(--text-muted); font-size: 11.5px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.dm-msg__act:hover { color: var(--text-secondary); }

.dm-compose {
  display: flex; align-items: flex-end; gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-base);
}
.dm-compose textarea {
  flex: 1;
  resize: none;
  min-height: 44px;
  max-height: 160px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-deepest);
  color: var(--text-primary);
  /* 16px so iOS does not zoom the page when the keyboard opens. */
  font-size: 16px;
  font-family: var(--f-body, inherit);
  line-height: 1.4;
}
.dm-compose textarea:focus {
  outline: none;
  border-color: var(--teal-primary);
  box-shadow: 0 0 0 4px var(--teal-glow, rgba(45,212,191,0.15));
}
.dm-compose .btn { min-height: 44px; }

.dm-empty { color: var(--text-muted); padding: 28px 20px; text-align: center; font-size: 14px; }
.dm-error {
  margin: 0; padding: 10px 18px;
  color: #FCA5A5; font-size: 13.5px;
  border-top: 1px solid var(--border-subtle);
}

/* ---------- phone: one pane at a time ---------- */

@media (max-width: 760px) {
  .dm { grid-template-columns: 1fr; min-height: calc(100vh - 64px); }
  .dm-thread { display: none; }
  .dm-back { display: grid; place-items: center; }
  body.dm-thread-open .dm-list { display: none; }
  body.dm-thread-open .dm-thread { display: flex; }
  .dm-msg { max-width: 85%; }
}

/* ---------- messages: search, settings, and the ordinary controls ---------- */

.dm-list__head input[type="search"] {
  width: 100%;
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-deepest);
  color: var(--text-primary);
  /* 16px, so iOS does not zoom the page the moment someone taps it. */
  font-size: 16px;
  font-family: var(--f-body, inherit);
}
.dm-list__head input[type="search"]:focus {
  outline: none;
  border-color: var(--teal-primary);
  box-shadow: 0 0 0 4px var(--teal-glow, rgba(45,212,191,0.15));
}

.dm-results {
  margin-top: 8px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  max-height: 320px;
  overflow-y: auto;
}
.dm-result {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  min-height: 56px;
}
.dm-result:last-child { border-bottom: 0; }
.dm-result__text { min-width: 0; }
.dm-result__text b {
  display: block; font-size: 14px; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dm-result__text span {
  display: block; font-size: 12.5px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Why a name cannot be messaged, said before anything is typed. */
.dm-result__why {
  font-size: 11.5px; color: var(--text-muted);
  text-align: right; max-width: 130px; line-height: 1.35;
}

.dm-privacy {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 12px;
}
.dm-privacy label { font-size: 12.5px; color: var(--text-muted); }
/* 44px because a thumb needs it, and 16px because anything smaller makes iOS
   Safari zoom the page when the control takes focus and never zoom back out.
   messages.html was outside the page list the mobile suite checks for that,
   which is why a 40px/13.5px control survived here. */
.dm-privacy select {
  flex: 1;
  min-height: 44px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-deepest);
  color: var(--text-secondary);
  font-size: 16px;
  font-family: var(--f-body, inherit);
}

.dm-thread__tools { display: flex; gap: 6px; }

/* Seen sits with the timestamp of the last message you sent, and nowhere else:
   a receipt on every line is noise. */
.dm-seen { color: var(--teal-primary); font-size: 11.5px; }

.dm-typing {
  margin: 0;
  padding: 6px 18px 0;
  font-size: 12.5px;
  color: var(--text-muted);
  font-style: italic;
}

/* One box, not two. The separate link field and its Add button are gone — a
   link pasted into the message attaches itself — so the composer is now the
   message, the row of tools, and nothing else. */
.link-notice:empty { display: none; }
.composer-attached:empty { display: none; }
.composer-attached { display: grid; gap: 10px; margin-top: 10px; }
.link-notice {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- event rails ----------
   A gig this Friday is worth more to a member than a follow suggestion, so
   these sit at the top of the right column. Four items and a link: a rail that
   scrolls forever turns a community into a directory. */

.ev-panel { margin-bottom: 18px; }
.ev-list { display: grid; }

.ev-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  color: inherit;
}
.ev-row:last-child { border-bottom: 0; }
.ev-row:hover .ev-row__body b { color: var(--teal-primary); }

/* The date leads, because that is what someone is scanning for. */
.ev-date {
  display: grid;
  place-items: center;
  padding: 6px 0;
  border-radius: var(--radius-sm);
  background: var(--bg-deepest);
  border: 1px solid var(--border-subtle);
  line-height: 1.05;
}
.ev-date b { font-size: 18px; color: var(--text-primary); }
.ev-date span {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
}

.ev-row__body { min-width: 0; }
.ev-row__body b {
  display: block; font-size: 14.5px; font-weight: 600; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* The rails moved to the left column, which is narrower than the right one
   they were drawn for. Wrapping to a second line beats an ellipsis: "Mojo
   Market · …" and "Thu, Aug 20, 0…" tell a reader nothing. */
.ev-row__where, .ev-row__when {
  display: block; font-size: 12.5px; color: var(--text-muted);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.ev-row__body b { white-space: normal; line-height: 1.25; }
.ev-row__when { color: var(--text-secondary); }

.ev-empty { color: var(--text-muted); font-size: 13.5px; padding: 10px 0; margin: 0; }
.ev-note {
  font-size: 12px; color: var(--text-muted); margin: 8px 0 0;
  padding-top: 8px; border-top: 1px solid var(--border-subtle);
}

@media (min-width: 1500px) {
  .ev-row__body b { font-size: 15.5px; }
  .ev-row__where, .ev-row__when { font-size: 13.5px; }
}

/* ---------- events page ---------- */

.ev-filters {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin: 22px 0 18px;
}
.ev-filters input[type="search"], .ev-filters select {
  flex: 1 1 200px; min-width: 0; min-height: 44px;
  padding: 0 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-deepest);
  color: var(--text-primary);
  font-size: 16px;
  font-family: var(--f-body, inherit);
}
.ev-filters input:focus, .ev-filters select:focus {
  outline: none; border-color: var(--teal-primary);
  box-shadow: 0 0 0 4px var(--teal-glow, rgba(45,212,191,0.15));
}

/* One search box and the date: the box takes the room (2026-10-13). */
.ev-filters #evSearch { flex: 3 1 260px; }
.ev-filters #evWhen { flex: 1 1 180px; }
/* "Nothing listed in Durban yet." - said once, above the heading that names
   where the list actually is. */
#evNote { margin: 0 0 8px; padding: 0; border: 0; font-size: 14px; color: var(--text-secondary); }

.ev-scope {
  font-family: var(--f-body); font-size: 15px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); margin: 0 0 14px;
}

.ev-grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .ev-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1500px) { .ev-grid { grid-template-columns: 1fr 1fr 1fr; } }

.ev-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.ev-card__head { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: start; }
.ev-card__meta h3 {
  margin: 0; font-size: 17px; font-weight: 700; color: var(--text-primary);
  line-height: 1.25;
}
.ev-card__where, .ev-card__when { margin: 4px 0 0; font-size: 13.5px; color: var(--text-muted); }
.ev-card__when { color: var(--text-secondary); }
.ev-card__detail { margin: 0; font-size: 14.5px; color: var(--text-secondary); line-height: 1.55; }
.ev-card__lineup { margin: 0; font-size: 13px; color: var(--text-muted); }
.ev-card__foot {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: auto; padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}
.ev-card__host { font-size: 13px; color: var(--text-muted); text-decoration: none; }
.ev-card__host:hover { color: var(--teal-primary); }
.ev-card__price { font-size: 13px; color: var(--text-secondary); }
.ev-card__foot .btn-sm { margin-left: auto; }
/* An imported event's picture, edge to edge across the top of its card. */
.ev-card__img {
  display: block; width: calc(100% + 32px); margin: -16px -16px 2px;
  aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0; background: var(--bg-card-elevated);
}
.ev-card__source { font-size: 12px; letter-spacing: 0.04em; color: #849898; }

/* The gig form inside the composer: hidden until asked for, and only the
   fields a gig actually needs. */
.composer-event { margin-top: 10px; }
.ev-form { display: grid; gap: 10px; }
.ev-form__row { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .ev-form__row { grid-template-columns: 1fr; } }
.ev-form label { display: flex; flex-direction: column; gap: 5px; }
.ev-form .legend { font-size: 12px; color: var(--text-muted); }
.ev-form input {
  min-height: 44px; padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-deepest); color: var(--text-primary);
  font-size: 16px; font-family: var(--f-body, inherit);
}
.ev-form input:focus {
  outline: none; border-color: var(--teal-primary);
  box-shadow: 0 0 0 4px var(--teal-glow, rgba(45,212,191,0.15));
}

/* ------------------------------------------------------------------ My Music --- */
/* js/ws-music.js, 2026-10-02. The track list agreed in mockups/my-music.html:
   Extreme Music's dense rows in WorldSong's palette. Used on the My Music tab,
   the Overview tab and the public profile. */

:root {
  --mm-muted: #849898;      /* AA on cards; --text-muted is 3.9:1 there */
  --mm-row-hover: rgba(45, 212, 191, 0.05);
  --mm-row-playing: rgba(45, 212, 191, 0.09);
  --mm-wave-rest: rgba(160, 181, 181, 0.32);
}

.mm-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 20px;
  margin: 0 0 18px;
}
.mm-head__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -0.01em;
  margin: 0;
}
.mm-head__meta {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--mm-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.mm-head__actions .btn-sm { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.mm-head__actions svg { width: 16px; height: 16px; }

/* Upload in progress. */
.mm-upload {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 6px 14px;
  align-items: center;
  padding: 14px 16px;
  margin: 0 0 18px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}
.mm-upload.is-bad { border-color: rgba(255, 90, 90, 0.5); }
.mm-upload.is-bad .mm-upload__step { color: #ff9a9a; }
.mm-upload__icon {
  width: 44px; height: 44px; border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(45, 212, 191, 0.1); color: var(--teal-primary);
}
.mm-upload__icon svg { width: 20px; height: 20px; }
.mm-upload__name { font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.mm-upload__step { font-size: 13px; color: var(--mm-muted); font-variant-numeric: tabular-nums; }
.mm-upload__track { grid-column: 2 / -1; height: 4px; border-radius: 2px; background: var(--mm-wave-rest); overflow: hidden; }
.mm-upload__track span { display: block; height: 100%; width: 0; background: var(--teal-primary); transition: width 0.2s; }
.mm-upload__cancel {
  background: none; border: 0; color: var(--text-secondary);
  font: 600 13px var(--f-body); cursor: pointer; min-height: 44px; padding: 0 4px;
}
.mm-upload__cancel:hover { color: var(--text-primary); }

/* The list. */
.mm-table { border-top: 1px solid var(--border-subtle); }
.mm-cols,
.mm-row {
  display: grid;
  grid-template-columns: 26px 46px minmax(0, 1fr) 128px 140px 56px 52px 44px;
  align-items: center;
  column-gap: 12px;
}
.mm-table--owner .mm-cols,
.mm-table--owner .mm-row { grid-template-columns: 34px 26px 46px minmax(0, 1fr) 128px 140px 56px 52px 78px 136px; }
.mm-cols {
  padding: 12px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mm-muted);
  border-bottom: 1px solid var(--border-subtle);
}
.mm-cols .c-time, .mm-cols .c-bpm { text-align: center; }

ol.mm-list { list-style: none; margin: 0; padding: 0; }
.mm-row { min-height: 60px; padding: 7px 8px; border-bottom: 1px solid var(--border-subtle); }
.mm-row:hover { background: var(--mm-row-hover); }
.mm-row.is-playing { background: var(--mm-row-playing); }
.mm-row.is-playing .mm-title { color: var(--teal-bright); }

.mm-num { font-size: 13px; color: var(--mm-muted); text-align: center; font-variant-numeric: tabular-nums; }

/* Reorder: a grip and up/down buttons on your own songs (26/11/2026). */
.mm-order {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; align-self: stretch;
}
.mm-order__grip {
  display: grid; place-items: center;
  width: 26px; height: 18px; color: var(--mm-muted);
  cursor: grab;
}
.mm-order__grip:active { cursor: grabbing; }
.mm-order__grip svg { width: 15px; height: 15px; }
.mm-order__steps { display: flex; flex-direction: column; }
.mm-order__steps button {
  display: grid; place-items: center;
  width: 26px; height: 19px; padding: 0;
  background: rgba(6, 22, 22, 0.35);
  border: 1px solid rgba(45, 212, 191, 0.16);
  border-radius: 4px;
  color: var(--text-secondary); cursor: pointer;
}
.mm-order__steps button + button { margin-top: 2px; }
.mm-order__steps button:hover:not(:disabled) {
  color: var(--teal-bright); background: rgba(45, 212, 191, 0.1);
}
.mm-order__steps button:disabled { opacity: 0.25; cursor: default; }
.mm-order__steps button:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: 1px; }
.mm-order__steps svg { width: 13px; height: 13px; }
.mm-row.is-dragging { opacity: 0.4; }
.mm-row.is-drop { background: rgba(45, 212, 191, 0.07); }
.mm-eq { display: none; height: 14px; gap: 2px; align-items: flex-end; justify-content: center; }
.mm-row.is-playing .mm-eq { display: flex; }
.mm-row.is-playing .mm-num__n { display: none; }
.mm-eq i { width: 3px; background: var(--teal-primary); border-radius: 1px; animation: mm-eq 0.9s ease-in-out infinite; }
.mm-eq i:nth-child(2) { animation-delay: -0.3s; }
.mm-eq i:nth-child(3) { animation-delay: -0.6s; }
.mm-row.is-paused .mm-eq i { animation-play-state: paused; }
@keyframes mm-eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

.mm-art {
  width: 46px; height: 46px; border-radius: 6px;
  position: relative; overflow: hidden; border: 0; padding: 0; cursor: pointer;
  background: var(--bg-card-elevated) center / cover no-repeat;
}
.mm-art--none { background-image: linear-gradient(135deg, #0f3d3a 0%, #134e4a 45%, #2dd4bf 140%); }
.mm-art:disabled { cursor: default; opacity: 0.5; }
.mm-art__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(6, 22, 22, 0.28); color: var(--play-ink); opacity: 0; transition: opacity 0.15s;
}
.mm-art__play svg {
  box-sizing: content-box; width: 14px; height: 14px; padding: 8px 7px 8px 9px; border-radius: 50%;
  background: var(--play-sheen), var(--play-disc); box-shadow: var(--play-shadow);
}
.mm-row:hover .mm-art__play, .mm-art:focus-visible .mm-art__play, .mm-row.is-playing .mm-art__play { opacity: 1; }
.mm-art:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: 2px; }

.mm-titles { min-width: 0; }
.mm-title {
  font-size: 14px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  display: flex; align-items: center; gap: 7px; min-width: 0;
}
.mm-title__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-explicit {
  flex: 0 0 auto; font-size: 9px; font-weight: 700; line-height: 1;
  padding: 3px 4px; border-radius: 3px;
  background: var(--text-secondary); color: var(--bg-deepest);
}
.mm-artist {
  margin-top: 3px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.mm-versions { display: flex; flex-wrap: wrap; gap: 5px; }
.mm-chip {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 7px; border-radius: 4px;
  border: 1px solid var(--border-default); color: var(--text-secondary);
}
.mm-genre { font-size: 13px; color: var(--text-secondary); min-width: 0; overflow-wrap: anywhere; }
.mm-genre small { display: block; font-size: 12px; color: var(--mm-muted); }
.mm-bpm {
  justify-self: center;
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
  min-width: 38px; text-align: center; padding: 3px 0;
  border: 1.5px solid var(--text-secondary); border-radius: 999px; color: var(--text-primary);
}
.mm-bpm--none { border-color: transparent; color: var(--mm-muted); }
.mm-time { font-size: 13px; text-align: center; font-variant-numeric: tabular-nums; color: var(--text-secondary); }
.mm-vis {
  justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px; color: var(--teal-primary);
}
.mm-vis::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mm-vis--private { color: var(--mm-muted); }

.mm-actions { display: flex; justify-content: flex-end; gap: 2px; }
.mm-icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; border-radius: 8px; color: var(--text-secondary); cursor: pointer;
}
.mm-icon:hover { color: var(--text-primary); background: rgba(45, 212, 191, 0.08); }
.mm-icon--danger:hover { color: #ff9a9a; background: rgba(255, 90, 90, 0.08); }
.mm-icon:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: 1px; }
.mm-icon:disabled { opacity: 0.35; cursor: not-allowed; }
.mm-icon:disabled:hover { background: none; color: var(--text-secondary); }
.mm-icon svg { width: 18px; height: 18px; }

.mm-foot { margin: 14px 0 0; font-size: 13px; color: var(--mm-muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* The song form: cover on the left, details on the right. */
.mm-form { margin: 0 0 18px; }
.mm-form__grid { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 22px; }
.mm-art--big { width: 160px; height: 160px; border-radius: 10px; }
.mm-art--big.mm-art--none::after {
  content: 'Add a cover'; position: absolute; inset: auto 0 12px; text-align: center;
  font: 700 11px var(--f-body); letter-spacing: 0.12em; text-transform: uppercase; color: #fff;
}
.mm-form__cover .field__hint { margin-top: 8px; }
/* Cue sheet details: what the Music Library's cue sheets are built from. */
.mm-form__cue { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); margin: 18px 0 0; padding: 16px 0 0; min-width: 0; }
.mm-form__cue legend { padding: 0 10px 0 0; font: 700 11px var(--f-body); letter-spacing: 0.12em; text-transform: uppercase; color: #fff; }
.mm-form__cue > .field__hint { margin: 0 0 12px; }
.mm-form__label { font-size: 13px; font-weight: 700; margin: 12px 0 8px; color: var(--text-secondary); }
.mm-ver { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.mm-ver__time { font-size: 13px; color: var(--mm-muted); font-variant-numeric: tabular-nums; }
.mm-addver {
  display: inline-flex; align-items: center; min-height: 44px; margin: 4px 8px 0 0; padding: 0 12px;
  font: 600 13px var(--f-body); color: var(--text-secondary);
  background: none; border: 1px dashed var(--border-default); border-radius: 6px; cursor: pointer;
}
.mm-addver:hover { color: var(--text-primary); border-color: var(--border-strong); }
.mm-addver:disabled { cursor: progress; }
.mm-form__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.mm-form__actions .btn-sm { min-height: 44px; }
.mm-form .form-error { margin-top: 12px; }
.mm-form .check-row .field__hint { display: block; }
/* The rights consent (2026-12-01) carries links to the terms and the licence
   inside its label. Without this they are the colour and weight of the
   sentence around them, and on a phone nothing gives them away. */
.mm-form .check-row label a {
  color: var(--text-primary);
  text-decoration: underline; text-underline-offset: 2px;
  text-decoration-color: rgba(45, 212, 191, 0.55);
}
.mm-form .check-row label a:hover { color: var(--teal-primary); }

@media (max-width: 1180px) {
  .mm-cols, .mm-row { grid-template-columns: 26px 46px minmax(0, 1fr) 118px 56px 52px 44px; }
  .mm-table--owner .mm-cols,
  .mm-table--owner .mm-row { grid-template-columns: 34px 26px 46px minmax(0, 1fr) 118px 56px 52px 78px 136px; }
  .c-genre, .mm-genre { display: none; }
}

/* Phone: art, titles with the versions under them, and the actions. */
@media (max-width: 820px) {
  .mm-cols { display: none; }
  .mm-row,
  .mm-table--owner .mm-row { grid-template-columns: 46px minmax(0, 1fr) auto; column-gap: 12px; padding: 8px 4px; }
  .mm-num, .mm-bpm, .mm-vis { display: none; }
  .mm-row .mm-art { grid-row: 1 / span 2; align-self: start; }
  .mm-versions { grid-column: 2; grid-row: 2; margin-top: 4px; }
  .mm-time { grid-column: 3; grid-row: 1; }
  .mm-actions { grid-column: 3; grid-row: 2; }
  /* Your own list gains the order column first; everything after it shifts one. */
  .mm-table--owner .mm-row { grid-template-columns: 32px 46px minmax(0, 1fr) auto; column-gap: 8px; }
  .mm-table--owner .mm-row .mm-order { grid-column: 1; grid-row: 1 / span 2; }
  .mm-table--owner .mm-row .mm-art { grid-column: 2; }
  .mm-table--owner .mm-row .mm-versions { grid-column: 3; }
  .mm-table--owner .mm-row .mm-time { grid-column: 4; }
  .mm-table--owner .mm-row .mm-actions { grid-column: 4; }
  .mm-form__grid { grid-template-columns: 1fr; }
  .mm-art--big { width: 120px; height: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  .mm-eq i { animation: none; height: 10px; }
}

/* community.html?post=<id>: the post someone came for, marked. */
.panel.is-linked, article.is-linked { box-shadow: 0 0 0 2px var(--teal-primary); scroll-margin-top: 96px; }

/* ---------------------------------------------------------------- search --- */
/* js/ws-search.js: one panel for everything, opened from the header, "/" or
   Ctrl/Cmd+K. Desktop: a panel under the header. Phone: the whole screen. */

.site-search { position: fixed; inset: 0; z-index: 1400; }
.site-search[hidden] { display: none; }
html.site-search-open { overflow: hidden; }
.site-search__backdrop { position: absolute; inset: 0; background: rgba(2, 10, 10, 0.62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.site-search__box {
  position: relative;
  width: min(680px, calc(100vw - 32px));
  max-height: min(640px, calc(100vh - 120px));
  margin: 72px auto 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-default);
  border-radius: 14px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  animation: site-search-in 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes site-search-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .site-search__box { animation: none; } }

.site-search__field {
  display: flex; align-items: center; gap: 12px;
  padding: 0 8px 0 18px;
  border-bottom: 1px solid var(--border-subtle);
}
.site-search__field > svg { width: 20px; height: 20px; color: var(--teal-primary); flex: none; }
.site-search__input {
  flex: 1; min-width: 0; height: 60px;
  background: none; border: 0; outline: none;
  color: var(--text-primary); font: 500 17px var(--f-body);
}
.site-search__input::placeholder { color: #849898; }
.site-search__input::-webkit-search-cancel-button { display: none; }
.site-search__close {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; border-radius: 8px; color: var(--text-secondary); cursor: pointer;
}
.site-search__close svg { width: 18px; height: 18px; }
.site-search__close:hover { color: var(--text-primary); background: rgba(45, 212, 191, 0.08); }

.site-search__results { overflow-y: auto; padding: 6px 8px 10px; overscroll-behavior: contain; }
.site-search__group h3 {
  margin: 12px 10px 6px;
  font: 700 11px var(--f-body); letter-spacing: 0.14em; text-transform: uppercase; color: #849898;
}
.site-search__row {
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 6px 10px;
  border-radius: 9px; color: var(--text-primary); text-decoration: none;
}
.site-search__row:hover, .site-search__row.is-active { background: rgba(45, 212, 191, 0.1); }
.site-search__row.is-active { box-shadow: inset 2px 0 0 var(--teal-primary); }
.site-search__row:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: -2px; }
.site-search__icon {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  border-radius: 8px; background: rgba(45, 212, 191, 0.08); color: var(--teal-primary);
}
.site-search__icon svg { width: 18px; height: 18px; }
.site-search__icon .avatar { width: 38px; height: 38px; }
.site-search__art { display: block; width: 38px; height: 38px; border-radius: 6px; background: center / cover no-repeat; }
.site-search__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.site-search__title { font: 600 14.5px var(--f-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-search__sub { font-size: 12.5px; color: #849898; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-search mark { background: none; color: var(--teal-bright); font-weight: 700; }
.site-search__play {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  border: 0; border-radius: 50%; box-shadow: var(--play-shadow);
  background: var(--play-sheen), var(--play-disc); color: var(--play-ink); cursor: pointer;
}
.site-search__play svg { width: 15px; height: 15px; margin-left: 2px; }
.site-search__play:hover { background: var(--play-sheen), var(--play-disc-hi); }
.site-search__empty { margin: 18px 12px; color: var(--text-secondary); font-size: 14px; }
.site-search__keys {
  margin: 0; padding: 10px 18px; border-top: 1px solid var(--border-subtle);
  font-size: 12px; color: #849898;
}
.site-search__keys kbd {
  font: 600 11px/1 var(--f-body); padding: 3px 6px; margin-right: 2px;
  border: 1px solid var(--border-subtle); border-radius: 4px; color: var(--text-secondary);
}

@media (max-width: 820px) {
  .site-search__box { width: 100vw; max-height: none; height: 100%; margin: 0; border-radius: 0; border: 0; }
  .site-search__keys { display: none; }
  .site-search__input { height: 56px; font-size: 16px; }
}

/* A member's song: the artist name in the bar opens their profile. */
a.wsbar__artist[href] { text-decoration: none; }
a.wsbar__artist[href]:hover { color: var(--teal-bright); text-decoration: underline; }

/* Featured artists who are members link to their profile (script.js). */
a.artist-card--link, a.spotlight--link { color: inherit; text-decoration: none; }   /* layout stays the card's own (grid / flex) */
a.artist-card--link:focus-visible, a.spotlight--link:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: 4px; border-radius: 12px; }
a.artist-card--link:hover .artist-name, a.spotlight--link:hover .spotlight__name { color: var(--teal-bright); }
/* A studio or producer who is a member opens their profile (2026-10-13). */
a.sp-card--link { color: inherit; text-decoration: none; }
a.sp-card--link:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: 4px; border-radius: 12px; }
a.sp-card--link:hover .sp-card__name { color: var(--teal-bright); }

/* =====================================================================
   SHARE (js/ws-share.js) and A SONG'S OWN PAGE (song.html, js/ws-song.js)
   2026-10-06. CJ: testers had no way to share their music, and "think about
   [the competition page's clean look] when you create the share link". So
   both speak that page's language: a small spaced teal eyebrow, a large
   uppercase title, pill buttons beside round outline ones, hairline rules,
   square art, no shadows and no gradients.
   ===================================================================== */

.ws-share {
  width: 440px; max-width: calc(100vw - 32px);
  padding: 0; border: 0; background: transparent; color: var(--text-primary);
}
.ws-share::backdrop { background: rgba(2, 8, 8, 0.75); }
.ws-share__card {
  position: relative; padding: 28px;
  background: var(--bg-card); border: 1px solid var(--border-default); border-radius: 16px;
}
.ws-share__close {
  position: absolute; top: 14px; right: 14px;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--border-subtle); background: transparent;
  color: var(--text-secondary); cursor: pointer;
}
.ws-share__close svg { width: 18px; height: 18px; }
.ws-share__close:hover { color: var(--text-primary); border-color: var(--border-strong); }
.ws-share__eyebrow {
  margin: 0 0 12px;
  font: 700 12px/1 var(--f-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-bright);
}
.ws-share__title {
  margin: 0; padding-right: 48px;
  font: 800 26px/1.02 var(--f-display); text-transform: uppercase; overflow-wrap: anywhere;
}
.ws-share__artist { margin: 8px 0 0; color: var(--text-secondary); font-size: 15px; }
.ws-share__link {
  display: flex; align-items: center; gap: 8px; margin-top: 24px; padding: 5px 5px 5px 0;
  background: var(--bg-deepest); border: 1px solid var(--border-default); border-radius: 999px;
}
.ws-share__link:focus-within { border-color: var(--teal-primary); }
.ws-share__url {
  flex: 1; min-width: 0; padding: 0 16px; border: 0; background: transparent; outline: none;
  color: var(--text-secondary); font: 400 14px/1 var(--f-body); text-overflow: ellipsis;
}
.ws-share__copy {
  min-height: 44px; min-width: 96px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--teal-primary); color: var(--text-on-teal);
  font: 700 13px/1 var(--f-body); letter-spacing: 0.1em; text-transform: uppercase;
  transition: background-color 0.2s ease, transform 0.12s ease;
}
.ws-share__copy:hover { background: var(--teal-bright); }
.ws-share__copy:active { transform: scale(0.97); }
.ws-share__copy.is-done { background: var(--teal-soft); }
.ws-share__group {
  margin: 22px 0 12px; padding-top: 20px; border-top: 1px solid var(--border-subtle);
  font: 700 11px/1 var(--f-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted);
}
.ws-share__targets {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px;
}
.ws-share__target {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 4px 0;
  background: none; border: 0; cursor: pointer;
  color: var(--text-secondary); text-decoration: none; font: 500 12.5px/1.2 var(--f-body); border-radius: 12px;
}
.ws-share__targets--inside .ws-share__icon { border-color: rgba(45, 212, 191, 0.45); color: var(--teal-bright); }
.ws-share__icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--border-default); color: var(--text-primary);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.ws-share__icon svg { width: 22px; height: 22px; }
.ws-share__target:hover { color: var(--text-primary); }
.ws-share__target:hover .ws-share__icon { border-color: var(--teal-primary); background: rgba(45, 212, 191, 0.06); }
.ws-share__close:focus-visible, .ws-share__copy:focus-visible, .ws-share__target:focus-visible {
  outline: 2px solid var(--teal-primary); outline-offset: 3px;
}

/* The two views inside WorldSong: post to Community, send to a member. */
.ws-share__back {
  position: absolute; top: 14px; left: 14px;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--border-subtle); background: transparent;
  color: var(--text-secondary); cursor: pointer;
}
.ws-share__back svg { width: 18px; height: 18px; }
.ws-share__back:hover { color: var(--text-primary); border-color: var(--border-strong); }
.ws-share__eyebrow.has-back { margin-left: 52px; line-height: 20px; }
.ws-share__song {
  display: flex; align-items: center; gap: 12px; margin: 18px 0 20px; padding: 10px;
  border: 1px solid var(--border-subtle); border-radius: 10px;
}
.ws-share__song img { width: 48px; height: 48px; border-radius: 4px; object-fit: cover; flex: none; }
.ws-share__song div { min-width: 0; }
.ws-share__song b, .ws-share__song span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-share__song b { font: 600 14.5px/1.3 var(--f-body); }
.ws-share__song span { font-size: 13px; color: var(--text-secondary); }
.ws-share__label { display: block; margin-bottom: 8px; font: 600 13px/1.3 var(--f-body); color: var(--text-secondary); }
.ws-share__label small { font-weight: 400; color: var(--text-muted); }
.ws-share__text, .ws-share__find {
  width: 100%; box-sizing: border-box; padding: 12px 14px;
  background: var(--bg-deepest); border: 1px solid var(--border-default); border-radius: 12px;
  color: var(--text-primary); font: 400 15px/1.45 var(--f-body);
}
.ws-share__find { min-height: 46px; border-radius: 999px; padding: 0 18px; }
.ws-share__text { resize: vertical; min-height: 92px; }
.ws-share__text:focus, .ws-share__find:focus { outline: none; border-color: var(--teal-primary); }
.ws-share__error { margin: 10px 0 0; color: #ff9a9a; font-size: 13.5px; }
.ws-share__actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 20px; }
.ws-share__primary {
  min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--teal-primary); color: var(--text-on-teal);
  font: 700 13px/1 var(--f-body); letter-spacing: 0.1em; text-transform: uppercase;
}
.ws-share__primary:hover { background: var(--teal-bright); }
.ws-share__primary:disabled { opacity: 0.6; cursor: progress; }
.ws-share__secondary {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
  border: 1px solid var(--border-strong); border-radius: 999px; text-decoration: none;
  color: var(--text-primary); font: 700 13px/1 var(--f-body); letter-spacing: 0.1em; text-transform: uppercase;
}
.ws-share__secondary:hover { border-color: var(--teal-primary); }
.ws-share__primary:focus-visible, .ws-share__secondary:focus-visible, .ws-share__back:focus-visible,
.ws-share__person:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: 2px; }
.ws-share__title--done { margin-top: 4px; }
.ws-share__people { list-style: none; margin: 10px 0 0; padding: 0; max-height: 260px; overflow-y: auto; }
.ws-share__person {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px; min-height: 56px;
  background: none; border: 0; border-radius: 10px; cursor: pointer; text-align: left; color: var(--text-primary);
}
.ws-share__person:hover:not(:disabled) { background: rgba(45, 212, 191, 0.07); }
.ws-share__person:disabled { opacity: 0.5; cursor: not-allowed; }
.ws-share__person span { flex: 1; min-width: 0; }
.ws-share__person b, .ws-share__person small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-share__person b { font: 600 14.5px/1.3 var(--f-body); }
.ws-share__person small { font-size: 12.5px; color: var(--text-muted); }
.ws-share__person em {
  font: 700 12px/1 var(--f-body); font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-bright);
}
.ws-share__none { padding: 12px 8px; color: var(--text-muted); font-size: 14px; }

/* Phones get the panel as a sheet from the bottom. */
@media (max-width: 560px) {
  .ws-share { width: 100%; max-width: 100%; margin: auto 0 0; }
  .ws-share__card {
    border-radius: 20px 20px 0 0; border-bottom: 0;
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  }
}

/* ---- the song page ---- */
/* Top only, and specific enough to survive mobile.css's .page-wrap padding,
   whose bottom clears the phone tab bar. */
.page-wrap.songpage { padding-top: clamp(28px, 5vw, 64px); }
.songpage__hero {
  display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px); align-items: end;
}
.songpage__art {
  aspect-ratio: 1; overflow: hidden; border-radius: 6px;
  background: var(--bg-card); border: 1px solid var(--border-subtle);
}
.songpage__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.songpage__art--none { display: grid; place-items: center; }
.songpage__art--none img { width: 38%; height: auto; }
.songpage__eyebrow {
  margin: 0 0 18px;
  font: 700 12px/1.4 var(--f-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-bright);
}
.songpage__title {
  margin: 0;
  font: 800 clamp(40px, 6.2vw, 88px)/0.95 var(--f-display); letter-spacing: -0.01em; text-transform: uppercase;
  text-wrap: balance; overflow-wrap: anywhere;
}
.songpage__explicit {
  display: inline-grid; place-items: center; width: 0.42em; height: 0.42em; margin-left: 0.18em;
  vertical-align: 0.38em; border-radius: 3px; background: var(--text-secondary); color: var(--bg-deepest);
  font: 800 0.24em/1 var(--f-body); letter-spacing: 0;
}
.songpage__by { margin: 18px 0 0; font: 400 18px/1.4 var(--f-body); color: var(--text-secondary); }
.songpage__by a { color: var(--text-primary); text-decoration: none; border-bottom: 1px solid var(--border-strong); }
.songpage__by a:hover { border-bottom-color: var(--teal-primary); }
.songpage__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.songpage__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  font: 700 14px/1 var(--f-body); letter-spacing: 0.1em; text-transform: uppercase;
  transition: transform 0.12s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.songpage__btn svg { width: 18px; height: 18px; flex: none; }
.songpage__btn:active { transform: scale(0.97); }
.songpage__btn:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: 3px; }
.songpage__btn--primary { min-width: 148px; background: var(--play-sheen), var(--play-disc); color: var(--play-ink); box-shadow: var(--play-shadow); }
.songpage__btn--primary:hover { background: var(--play-sheen), var(--play-disc-hi); }
.songpage__btn--ghost { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.songpage__btn--ghost:hover { border-color: var(--teal-primary); }
.songpage__facts {
  display: flex; flex-wrap: wrap; row-gap: 18px; margin: 36px 0 0; padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
}
.songpage__fact { padding: 0 28px; border-left: 1px solid var(--border-subtle); }
.songpage__fact:first-child { padding-left: 0; border-left: 0; }
.songpage__fact dt {
  margin-bottom: 10px;
  font: 700 11px/1 var(--f-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted);
}
.songpage__fact dd { margin: 0; font: 700 22px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.songpage__facts:empty { display: none; }
.songpage__wave { display: flex; align-items: center; gap: 2px; height: 72px; margin-top: clamp(36px, 5vw, 56px); }
.songpage__wave i { flex: 1; min-width: 1px; border-radius: 1px; background: rgba(45, 212, 191, 0.28); transition: background-color 0.4s ease; }
.songpage.is-playing .songpage__wave i { background: var(--teal-primary); }
.songpage__more { margin-top: clamp(48px, 6vw, 80px); }
.songpage__more-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.songpage__more-title { margin: 0; font: 800 clamp(22px, 2.6vw, 30px)/1.05 var(--f-display); text-transform: uppercase; }
.songpage__more-link {
  padding: 14px 0; flex: none; text-decoration: none; color: var(--teal-bright);
  font: 700 12px/1 var(--f-body); letter-spacing: 0.16em; text-transform: uppercase;
}
.songpage__more-link:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 820px) {
  .songpage__hero { grid-template-columns: 1fr; align-items: start; }
  .songpage__fact { padding: 0 18px; }
  .songpage__fact dd { font-size: 18px; }
  .songpage__wave { height: 48px; }
  .songpage__wave i:nth-child(even) { display: none; }
}
@media (max-width: 420px) {
  .songpage__actions .songpage__btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .songpage__btn, .ws-share__copy { transition: none; }
}

/* A WorldSong song shared to the Community feed (js/ws-platform.js songCard). */
.ws-songcard { display: flex; align-items: center; gap: 16px; padding: 12px; }
.ws-songcard__art {
  position: relative; width: 88px; height: 88px; flex: none; padding: 0;
  border: 0; border-radius: 6px; cursor: pointer;
  background: var(--bg-card-elevated) url('images/brand/worldsong-globe-256.png') center / 52% no-repeat;
}
.ws-songcard__art[style] { background-size: cover; }
.ws-songcard__play {
  position: absolute; right: 8px; bottom: 8px;
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; background: var(--play-sheen), var(--play-disc); color: var(--play-ink);   /* the site's one disc */
  box-shadow: var(--play-shadow);
  transition: transform 0.12s ease, background-color 0.15s ease;
}
.ws-songcard__play svg { width: 16px; height: 16px; }
.ws-songcard__art:hover .ws-songcard__play { background: var(--play-sheen), var(--play-disc-hi); transform: scale(1.06); }
.ws-songcard__art:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: 2px; }
.ws-songcard__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ws-songcard__eyebrow { font: 700 10.5px/1.2 var(--f-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-bright); }
.ws-songcard__title {
  font: 600 16px/1.3 var(--f-body); color: var(--text-primary); text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ws-songcard__title:hover { text-decoration: underline; text-underline-offset: 3px; }
.ws-songcard__artist { font-size: 14px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Liked songs (account > Listening): the My Music list, with share and unlike. */
.mm-table--liked .mm-row { grid-template-columns: 26px 46px minmax(0, 1fr) 56px 92px; }
.mm-icon--liked { color: var(--teal-bright); }
.mm-icon--liked:hover { color: var(--teal-soft); }
@media (max-width: 820px) {
  .mm-table--liked .mm-row { grid-template-columns: 46px minmax(0, 1fr) auto; }
}

/* ==========================================================================
   COMMUNITY, REFINED (2026-10-10)

   CJ: "it's ok but it's not winning any awards" — premium, clean lines, like
   the player. The approved mockup is mockups/community/{phone,phone-details,
   desktop}.html and it is the contract for everything in this block.

   Ruled by hairlines rather than boxed in cards; songs get the room a song
   deserves; events lead with their pictures; actions are an icon and a count.
   Everything is scoped to .page-community, so profile and account pages,
   which reuse the same post and card markup, are untouched. Phone first: the
   base rules are the phone; wider screens are the media queries.
   ========================================================================== */

.page-community {
  --cm-line: var(--border-subtle);
  --cm-band: var(--bg-card);            /* #0C2424 */
  --cm-raised: var(--bg-card-elevated); /* #112C2C */
  --cm-sleeve: #102A28;
  --cm-quiet: #829898;                  /* AA on every background here */
  --f-mono: 'DM Mono', ui-monospace, monospace;
  background: var(--bg-base);
}
.page-community .cm-vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.page-community .cm-eyebrow {
  font: 400 10.5px/1.2 var(--f-mono);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-secondary); margin: 0;
}
.page-community .cm-seeall {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px;
  font: 500 14px/1 var(--f-body); color: var(--teal-primary);
}
.page-community .cm-seeall:hover { color: var(--teal-bright); }

/* ---- Title band: the client's words, tighter ---------------------------- */
.page-community .page-band { padding: 26px 16px 22px; border-bottom: 0; }
.page-community .page-band__eyebrow {
  font: 400 10.5px/1.2 var(--f-mono); letter-spacing: 0.16em; color: var(--teal-primary);
  margin: 0;
}
.page-community .page-band__title {
  font-weight: 600; font-size: 30px; line-height: 1.04; letter-spacing: -0.01em; margin-top: 10px;
}
.page-community .page-band__sub { display: none; }

/* ---- Phone: one column, edge to edge ------------------------------------- */
.page-community .page-wrap { padding: 0 0 40px; }
.page-community .layout--3col { margin-top: 0; gap: 0; }

/* Feed / Popular / Following, as words with a teal rule under the one you
   are on, wherever the rail runs across the page (pages.css, under 1080px).
   The icons were sidebar furniture. */
@media (max-width: 1080px) {
  .page-community .layout--3col .rail {
    gap: 26px; padding: 0 16px; border-bottom: 1px solid var(--cm-line);
  }
  .page-community .layout--3col .rail a {
    min-height: 46px; padding: 0; gap: 0; border-radius: 0;
    font: 500 15px/1 var(--f-body); color: var(--text-secondary); background: none;
  }
  .page-community .layout--3col .rail a svg { display: none; }
  .page-community .layout--3col .rail a.active {
    color: var(--text-primary); font-weight: 600; background: none;
    box-shadow: inset 0 -2px 0 var(--teal-primary);
  }
}

/* ---- Events near you: a strip of pictures under the composer ------------- */
.page-community #eventStrip { display: block; }
.page-community .cm-strip {
  padding: 24px 0 26px; border-bottom: 1px solid var(--cm-line);
}
.page-community .cm-strip__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: 0 16px; margin-bottom: 16px;
}
.page-community .cm-strip__title {
  font: 600 22px/1.15 var(--f-display); color: var(--text-primary); margin: 6px 0 0;
}
.page-community .cm-strip__pad { padding: 0 16px; }
.page-community .cm-strip__track {
  display: flex; gap: 12px; padding: 0 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.page-community .cm-strip__track::-webkit-scrollbar { display: none; }
.page-community .cm-strip__track > * { scroll-snap-align: start; }

.page-community .cm-ev { display: block; width: 236px; flex: none; color: var(--text-primary); }
.page-community .cm-ev__pic {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 8px; overflow: hidden; background: var(--cm-band);
}
.page-community .cm-ev__pic img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
/* A gig listed without a picture gets its town, set like a sleeve. */
.page-community .cm-ev__ph {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 12px 14px;
  background: var(--cm-sleeve); color: var(--teal-bright);
  font: 700 20px/0.95 var(--f-display); letter-spacing: -0.01em; text-transform: uppercase;
}
.page-community .cm-stamp {
  position: absolute; top: 10px; left: 10px; min-width: 44px; padding: 7px 9px 6px;
  border-radius: 6px; background: rgba(6, 22, 22, 0.86); text-align: center;
}
.page-community .cm-stamp b { display: block; font: 600 19px/1 var(--f-display); color: var(--text-primary); }
.page-community .cm-stamp span {
  display: block; margin-top: 3px; font: 400 10px/1 var(--f-mono); letter-spacing: 0.14em;
  color: var(--text-secondary);
}
.page-community .cm-ev__title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  height: 2.6em; margin-top: 12px; font: 600 15px/1.3 var(--f-body);
}
.page-community .cm-ev__where {
  display: block; margin-top: 3px; font-size: 13px; color: var(--text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.page-community .cm-ev__when,
.page-community .cm-evrow__when {
  display: block; margin-top: 6px; font: 400 11.5px/1.3 var(--f-mono); letter-spacing: 0.06em;
  color: var(--cm-quiet);
}
@media (hover: hover) {
  .page-community .cm-ev:hover .cm-ev__title,
  .page-community .cm-evrow:hover .cm-evrow__title { color: var(--teal-bright); }
}
.page-community .cm-evempty,
.page-community .cm-evnote { margin: 12px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--text-secondary); }
.page-community .cm-evempty a,
.page-community .cm-evnote a { color: var(--teal-primary); }

/* The column versions live in #eventRails, which is the left column from the
   tablet up. On a phone the strip above carries "near you", and the tab bar's
   Events tab carries the rest, so the column copy would only repeat it. */
.page-community #eventRails { display: none; }

/* ---- Tablet and up ------------------------------------------------------- */
@media (min-width: 821px) {
  .page-community #eventStrip { display: none; }
  .page-community #eventRails { display: block; }
  .page-community .page-wrap { padding: 0 24px 64px; }
  .page-community .layout--3col { margin-top: 24px; gap: 22px; }
  .page-community .page-band { padding: 34px 24px 26px; border-bottom: 1px solid var(--cm-line); }
  .page-community .page-band__title { font-size: 40px; }
  .page-community .layout--3col .rail { padding: 0; }

  .page-community .cm-evpanel {
    background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none;
  }
  .page-community .cm-evpanel + .cm-evpanel { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--cm-line); }
  .page-community .cm-evpanel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .page-community .cm-evpanel__head .cm-seeall { min-height: 0; font-size: 13px; }
  .page-community .cm-evpanel__head .cm-seeall svg { display: none; }
  .page-community .cm-evpanel__title {
    font: 600 22px/1.15 var(--f-display); letter-spacing: 0; text-transform: none; color: var(--text-primary); margin: 6px 0 0;
  }
  .page-community .cm-ev--feature { width: 100%; margin-top: 16px; }
  .page-community .cm-ev--feature .cm-ev__title { height: auto; font-size: 15.5px; }
  .page-community .cm-evrows { margin-top: 16px; display: block; }
  .page-community .cm-evpanel--world .cm-evrows { margin-top: 12px; }
  .page-community .cm-evrow {
    display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--cm-line);
    color: var(--text-primary); background: none; border-radius: 0;
  }
  .page-community .cm-evpanel--world .cm-evrow:first-child { border-top: 0; }
  .page-community .cm-evrow .cm-ev__pic { width: 64px; height: 64px; aspect-ratio: auto; flex: none; border-radius: 6px; }
  .page-community .cm-evrow .cm-ev__ph { font-size: 11px; padding: 7px; }
  .page-community .cm-evrow__body { display: block; min-width: 0; }
  .page-community .cm-evrow__when { margin-top: 0; font-size: 11px; }
  .page-community .cm-evrow__title { display: block; margin-top: 4px; font: 600 14px/1.3 var(--f-body); }
  .page-community .cm-evrow__where { display: block; margin-top: 3px; font-size: 12.5px; color: var(--text-secondary); }
}

/* ---- Desktop: three columns, 260 / 620 / 300 inside 1240 ------------------ */
@media (min-width: 1081px) {
  .page-community .page-wrap { max-width: 1288px; }
  .page-community .layout--3col {
    grid-template-columns: 260px minmax(0, 1fr) 300px; column-gap: 30px; margin-top: 30px;
  }
  .page-community .page-band {
    max-width: 1288px; padding: 46px 24px 34px;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  }
  /* The rule under the band spans the content, not the window. */
  .page-community .page-band { border-bottom: 0; background: linear-gradient(var(--cm-line), var(--cm-line)) 24px 100% / calc(100% - 48px) 1px no-repeat; }
  .page-community .page-band__title { font-size: 48px; line-height: 1.02; letter-spacing: -0.015em; margin-top: 14px; }
  .page-community .page-band__sub {
    display: block; max-width: 380px; margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-secondary);
  }

  .page-community .rail { gap: 0; }
  .page-community .rail a {
    min-height: 44px; padding: 0 12px; gap: 12px; border-radius: 8px;
    font: 500 15px/1 var(--f-body); color: var(--text-secondary);
  }
  .page-community .rail a svg { width: 20px; height: 20px; color: currentColor; }
  .page-community .rail a:hover { color: var(--text-primary); background: var(--cm-band); }
  .page-community .rail a.active { color: var(--text-primary); background: var(--cm-band); box-shadow: none; }
  .page-community .rail__label {
    font: 400 10.5px/1.2 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--cm-quiet); padding: 20px 12px 8px; margin: 0;
  }
  .page-community #eventRails { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--cm-line); }
}

/* ---- Composer: a field, two tools and a teal Post ------------------------ */
/* mobile.css pulls feed panels 14px past each edge to undo the page's side
   padding. This page has none on a phone, so the pull would push past the
   screen; margins go back to zero here. */
.page-community #composerPanel,
.page-community #feedEmpty {
  margin-left: 0; margin-right: 0;
}
.page-community #composerPanel {
  background: none; border: 0; border-radius: 0; box-shadow: none;
  padding: 16px; border-bottom: 1px solid var(--cm-line);
}
.page-community .composer-box { gap: 12px; }
.page-community .composer-box > .avatar { --size: 40px; }
.page-community .cm-field {
  background: var(--cm-band); border: 1px solid rgba(45, 212, 191, 0.14); border-radius: 12px;
  padding: 12px 14px; transition: border-color .15s ease;
}
.page-community .cm-field:focus-within { border-color: var(--teal-primary); }
.page-community .cm-field textarea {
  display: block; width: 100%; resize: none; min-height: 2.9em;
  background: none; border: 0; padding: 0; margin: 0; box-shadow: none; outline: none;
  font: 400 15px/1.45 var(--f-body); color: var(--text-primary);
}
.page-community .cm-field textarea::placeholder { color: var(--cm-quiet); }
.page-community .cm-field .composer-attached { margin-top: 0; }
.page-community .cm-field .composer-attached:not(:empty) { margin-top: 12px; display: grid; gap: 8px; }
.page-community .composer-box__actions {
  display: flex; align-items: center; gap: 12px; margin: 8px 0 0 -10px; flex-wrap: nowrap;
}
.page-community .composer-box__tools { display: flex; align-items: center; gap: 0; flex-wrap: nowrap; }
.page-community .cm-tool,
.page-community .composer-box__tools .emoji-btn {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; min-width: 44px;
  padding: 0 10px; border: 0; border-radius: 999px; background: none; justify-content: center;
  font: 400 14px/1 var(--f-body); color: var(--text-secondary); cursor: pointer;
}
.page-community .cm-tool svg,
.page-community .composer-box__tools .emoji-btn svg { width: 21px; height: 21px; flex: none; }
.page-community .cm-tool__long { display: none; }
.page-community .cm-tool[aria-expanded="true"] { color: var(--text-primary); }
.page-community .composer-count {
  margin-left: auto; font: 400 11.5px/1 var(--f-mono); color: var(--cm-quiet);
}
.page-community .composer-count.is-empty { visibility: hidden; }
.page-community .composer-count.is-over { color: #ffb4b4; }
.page-community .cm-postbtn {
  min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--teal-primary); color: var(--bg-deepest); font: 600 14.5px/1 var(--f-body);
}
.page-community .cm-postbtn:hover { background: var(--teal-bright); }
.page-community .cm-postbtn:disabled { opacity: .6; cursor: progress; }
.page-community #composerPanel .empty { padding: 6px 0; text-align: left; }

/* What a pasted link became, inside the field. */
.page-community .cm-chip {
  display: flex; align-items: center; gap: 10px; padding: 6px;
  border: 1px solid rgba(45, 212, 191, 0.16); border-radius: 8px; background: var(--bg-base);
}
.page-community .cm-chip__pic {
  width: 76px; height: 43px; flex: none; border-radius: 4px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; background: var(--cm-sleeve); color: var(--teal-bright);
}
.page-community .cm-chip__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-community .cm-chip__pic svg { width: 20px; height: 20px; }
.page-community .cm-chip__text { flex: 1; min-width: 0; display: block; }
.page-community .cm-chip__eyebrow {
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 400 9.5px/1.2 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--cm-quiet);
}
.page-community .cm-chip__title {
  display: block; margin-top: 3px; font: 600 13px/1.3 var(--f-body); color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.page-community .cm-chip__x {
  width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; border-radius: 999px; color: var(--text-secondary); cursor: pointer;
}
.page-community .cm-chip__x svg { width: 18px; height: 18px; }
.page-community .cm-chip__x:hover { color: var(--text-primary); background: var(--cm-raised); }

/* ---- The feed: ruled, not boxed ------------------------------------------ */
@media (max-width: 820px) {
  .page-community #feedHeading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .page-community .col-center > .panel__head { margin: 0 !important; }
}
.page-community #feedEmpty { background: none; border: 0; border-radius: 0; padding: 0 16px; }
.page-community .cm-post {
  background: none; border: 0; border-radius: 0; box-shadow: none; margin: 0;
  padding: 18px 0 0; border-bottom: 1px solid var(--cm-line);
}
.page-community .cm-post + .cm-post { margin-top: 0; }
.page-community .cm-post .post__head { padding: 0 16px; margin: 0; gap: 12px; align-items: center; }
.page-community .cm-post .post__head .avatar { --size: 44px; }
.page-community .post__name { font: 600 15.5px/1.25 var(--f-body); letter-spacing: 0; }
.page-community .post__name .post__name-link { color: var(--text-primary); }
.page-community .post__handle { display: none; font: 400 14px/1 var(--f-body); color: var(--cm-quiet); margin-left: 4px; }
.page-community .post__meta {
  display: block; margin-top: 2px; font: 400 13px/1.3 var(--f-body); color: var(--text-secondary);
  letter-spacing: 0; text-transform: none;
}
.page-community .post__meta .post__role { margin: 0; font: inherit; color: inherit; }
.page-community .post__when { font: 400 12px/1 var(--f-mono); color: var(--cm-quiet); }
.page-community .cm-post .post__body {
  padding: 12px 16px 0; margin: 0; font: 400 16px/1.5 var(--f-body); color: var(--text-primary);
}
.page-community .post-links:empty { display: none; }
.page-community .cm-post .post-links { display: grid; gap: 12px; margin: 14px 0 0; }
.page-community .cm-post .post__body + .post-links { margin-top: 14px; }
.page-community .cm-post .post-links > .embed-card--link { margin: 0 16px; }
.page-community .cm-post .post__head + .post-links { margin-top: 14px; }
.page-community .cm-post .post__owner-actions { margin-left: auto; }

/* Actions: an icon and a count, nothing else. */
.page-community .cm-post .post__actions {
  position: relative; display: flex; align-items: center; gap: 0; flex-wrap: nowrap;
  margin: 0; padding: 4px 6px; border: 0;
}
.page-community .cm-act {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; min-width: 44px; padding: 0 10px; margin: 0;
  border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: 400 13px/1 var(--f-mono); color: var(--text-secondary);
}
.page-community .cm-act svg { width: 21px; height: 21px; flex: none; }
.page-community .cm-act .count:empty { display: none; }
.page-community .cm-act[aria-expanded="true"] { color: var(--text-primary); background: var(--cm-raised); }
.page-community .cm-act.is-liked { color: var(--teal-bright); }
.page-community .cm-act.is-liked svg { fill: var(--teal-primary); stroke: var(--teal-primary); }
.page-community .cm-act:focus-visible,
.page-community .cm-rx:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: 2px; }

/* Reactions, quietly, at the end of the row. */
.page-community .cm-rx {
  margin-left: auto; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 10px;
  border: 0; border-radius: 999px; background: none; cursor: pointer;
}
.page-community .cm-rx[hidden] { display: none; }
.page-community .cm-rx__discs { display: inline-flex; }
.page-community .cm-rx__disc {
  width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--cm-raised); box-shadow: 0 0 0 2px var(--bg-base); font-size: 13px; line-height: 1;
}
.page-community .cm-rx__disc + .cm-rx__disc { margin-left: -7px; }
.page-community .cm-rx__count { font: 400 13px/1 var(--f-mono); color: var(--text-secondary); }
.page-community .cm-rx.is-mine .cm-rx__count { color: var(--teal-bright); }

/* Six quick picks, the rest behind + (mockup: phone details, 01). */
.page-community .emoji-tray {
  position: absolute; z-index: 30; left: 8px; bottom: calc(100% - 2px);
  display: flex; align-items: center; padding: 5px;
  background: var(--cm-raised); border: 1px solid rgba(45, 212, 191, 0.24); border-radius: 999px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  animation: cm-tray-in .14s ease-out;
}
@keyframes cm-tray-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .page-community .emoji-tray { animation: none; } }
.page-community .emoji-tray__pick {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: none; cursor: pointer; font-size: 24px; line-height: 1;
  transition: transform .12s ease, background .12s ease;
}
.page-community .emoji-tray__pick:hover { background: rgba(255, 255, 255, 0.06); transform: scale(1.12); }
.page-community .emoji-tray__pick:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: -2px; }
.page-community .emoji-tray__more { color: var(--text-secondary); }
.page-community .emoji-tray__more:hover { transform: none; color: var(--text-primary); }
.page-community .emoji-tray__rule { width: 1px; height: 24px; background: rgba(45, 212, 191, 0.2); margin: 0 4px; }
.page-community .comment__foot .emoji-tray { left: 0; }

/* Who reacted. */
.page-community .cm-who {
  position: absolute; z-index: 30; right: 6px; bottom: calc(100% - 2px); min-width: 220px; max-width: min(320px, calc(100vw - 32px));
  padding: 6px; background: var(--cm-raised); border: 1px solid rgba(45, 212, 191, 0.24); border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}
.page-community .cm-who__loading { margin: 0; padding: 10px 12px; font-size: 13.5px; color: var(--text-secondary); }
.page-community .cm-who__list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow: auto; }
.page-community .cm-who__list li { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 6px 0 10px; }
.page-community .cm-who__list li + li { border-top: 1px solid var(--cm-line); }
.page-community .cm-who__emoji { font-size: 18px; width: 24px; text-align: center; }
.page-community .cm-who__name { flex: 1; min-width: 0; font: 500 14.5px/1.2 var(--f-body); color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-community a.cm-who__name:hover { color: var(--teal-bright); }
.page-community .cm-who__undo {
  min-height: 36px; padding: 0 12px; border: 1px solid var(--border-default); border-radius: 999px;
  background: none; color: var(--text-secondary); font: 500 13px/1 var(--f-body); cursor: pointer;
}
.page-community .cm-who__undo:hover { color: var(--text-primary); border-color: var(--teal-primary); }

/* Comments sit inside the post's gutter. */
.page-community .cm-post .comments { margin: 0; padding: 12px 16px 14px; border-top: 1px solid var(--cm-line); }
.page-community .reaction-chip { background: var(--cm-raised); border-color: transparent; }
.page-community .reaction-add { color: var(--text-secondary); }

/* ---- A song: the cover edge to edge, then the band ----------------------- */
.page-community .cm-song { position: relative; background: var(--cm-band); }
.page-community .cm-song__art {
  display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; margin: 0;
  background: var(--cm-sleeve); cursor: pointer; position: relative; overflow: hidden;
}
.page-community .cm-song__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-community .cm-song__art:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: -2px; }
.page-community .cm-song__band {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px 16px;
}
.page-community .cm-song__info { flex: 1; min-width: 0; }
.page-community .cm-song__eyebrow {
  display: block; font: 400 10.5px/1.2 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal-primary);
}
.page-community .cm-song.is-current .cm-song__eyebrow { color: var(--teal-bright); }
.page-community .cm-song__title {
  display: block; margin-top: 7px; font: 600 20px/1.1 var(--f-display); letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--text-primary); overflow-wrap: anywhere;
}
.page-community .cm-song__title:hover { color: var(--teal-bright); }
.page-community .cm-song__artist { display: block; margin-top: 4px; font-size: 14px; color: var(--text-secondary); }
.page-community .cm-song__ctl { flex: none; display: flex; align-items: center; }
.page-community .cm-song__play {
  width: 52px; height: 52px; flex: none; border: 0; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--play-sheen), var(--play-disc); color: var(--play-ink); box-shadow: var(--play-shadow);
  transition: background .15s ease, transform .15s ease;
}
.page-community .cm-song__play svg { width: 22px; height: 22px; }
.page-community .cm-song__play:hover { background: var(--play-sheen), var(--play-disc-hi); }
.page-community .cm-song__play:focus-visible { outline: 2px solid var(--play-disc); outline-offset: 3px; }
.page-community .cm-song__open { display: none; }
.page-community .cm-song__progress {
  position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(45, 212, 191, 0.16);
  opacity: 0; transition: opacity .2s ease;
}
.page-community .cm-song__progress span {
  position: absolute; inset: 0; background: var(--teal-primary); transform-origin: left center; transform: scaleX(0);
}
.page-community .cm-song.is-current .cm-song__progress { opacity: 1; }

/* No cover art: a sleeve set in type. */
.page-community .cm-sleeve { position: absolute; inset: 0; display: block; text-align: left; }
.page-community .cm-sleeve__brand,
.page-community .cm-sleeve__artist {
  position: absolute; top: 22px; font: 400 10.5px/1.2 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--cm-quiet);
}
.page-community .cm-sleeve__brand { left: 22px; }
.page-community .cm-sleeve__artist { right: 22px; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-community .cm-sleeve__rule { position: absolute; left: 22px; right: 22px; top: 54px; height: 1px; background: rgba(45, 212, 191, 0.2); }
.page-community .cm-sleeve__title {
  position: absolute; left: 20px; right: 20px; bottom: 18px;
  font: 700 66px/0.9 var(--f-display); letter-spacing: -0.02em; text-transform: uppercase; color: var(--teal-bright);
  overflow-wrap: normal; word-break: normal; hyphens: none;
}

/* ---- A video: the picture, a quiet play disc, then the band -------------- */
.page-community .cm-video { background: var(--cm-band); border: 0; border-radius: 0; }
.page-community .cm-video .embed-card__play { background: none; }
.page-community .cm-video .embed-card__play::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px;
  border-radius: 50%; background: var(--play-sheen), var(--play-disc); box-shadow: var(--play-shadow);
  transition: background .15s ease;
}
.page-community .cm-video .embed-card__play svg {
  position: relative; box-sizing: border-box; width: 22px; height: 22px; padding: 0; margin-left: 3px;
  background: none; box-shadow: none; filter: none;
}
.page-community .cm-video .embed-card__media:hover .embed-card__play { background: none; }
.page-community .cm-video .embed-card__media:hover .embed-card__play::before { background: var(--play-sheen), var(--play-disc-hi); }
.page-community .cm-video__tag {
  position: absolute; right: 12px; bottom: 12px; padding: 4px 7px; border-radius: 4px; pointer-events: none;
  background: rgba(6, 22, 22, 0.86); font: 400 11px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-primary);
}
.page-community .cm-video__band { display: block; padding: 14px 16px 16px; }
.page-community .cm-video__eyebrow {
  display: block; font: 400 10.5px/1.2 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--cm-quiet);
}
.page-community .cm-video__title { display: block; margin-top: 7px; font: 600 16px/1.35 var(--f-body); color: var(--text-primary); }

/* ---- People: a strip of cards between posts on a phone -------------------- */
.page-community .cm-strip--people { background: var(--bg-deepest); }
.page-community .cm-pcard {
  width: 150px; flex: none; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 18px 14px 14px; border: 1px solid var(--cm-line); border-radius: 10px;
}
.page-community .cm-pcard__link { display: flex; flex-direction: column; align-items: center; color: var(--text-primary); }
.page-community .cm-pcard .avatar { --size: 64px; font-size: 22px; }
.page-community .cm-pcard__name {
  margin-top: 12px; font: 600 15px/1.25 var(--f-body); max-width: 122px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.page-community .cm-pcard__sub { margin: 3px 0 14px; font-size: 12.5px; line-height: 1.35; color: var(--text-secondary); }
.page-community .cm-pcard .cm-follow { width: 100%; margin-top: auto; }

.page-community .cm-follow {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  min-height: 44px; padding: 0 18px; border: 1px solid var(--teal-primary); border-radius: 999px; background: none;
  color: var(--teal-bright); font: 600 14px/1 var(--f-body); cursor: pointer;
}
.page-community .cm-follow:hover { background: rgba(45, 212, 191, 0.12); }
.page-community .cm-follow.is-following { border-color: var(--border-default); color: var(--text-secondary); background: none; }

/* Initials, in quiet tones (set by js/ws-community.js). */
.page-community .avatar[data-tone] { border: 0; font-weight: 600; }
.page-community .avatar[data-tone="teal"] { background: #14332F; color: var(--teal-bright); }
.page-community .avatar[data-tone="slate"] { background: #192B33; color: #A9CBD8; }

/* On a phone the column of people is the strip above. */
@media (max-width: 820px) {
  .page-community .col-right { display: none; }
  .page-community #loadMoreWrap { padding: 0 16px; }
  .page-community .feed-end { padding: 0 16px; }
}
.page-community #loadMoreBtn {
  min-height: 44px; padding: 0 24px; border: 1px solid rgba(45, 212, 191, 0.3); border-radius: 999px;
  background: none; color: var(--text-primary); font: 500 14.5px/1 var(--f-body);
}
.page-community #loadMoreBtn:hover { border-color: var(--teal-primary); }

/* ---- Tablet and up: the feed column is a column, cards get a frame -------- */
@media (min-width: 821px) {
  .page-community .cm-strip--people { display: none; }
  .page-community #composerPanel { padding: 0; border-bottom: 0; }
  .page-community .composer-box { gap: 14px; }
  .page-community .composer-box > .avatar { --size: 44px; }
  .page-community .cm-field { padding: 14px 16px; }
  .page-community .cm-field textarea { min-height: 4.5em; font-size: 15.5px; line-height: 1.5; }
  .page-community .cm-tool__long { display: inline; }
  .page-community .cm-tool__short { display: none; }
  .page-community .composer-count.is-empty { visibility: visible; }
  .page-community .composer-box__actions { gap: 14px; }
  .page-community .cm-postbtn { padding: 0 26px; font-size: 15px; }

  .page-community .col-center > .panel__head {
    margin: 30px 0 0 !important; padding-bottom: 14px; border-bottom: 1px solid var(--cm-line);
  }
  .page-community #feedHeading {
    font: 400 10.5px/1.2 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-secondary);
  }
  .page-community #feedEmpty { padding: 24px 0 0; }
  .page-community .cm-post { padding: 24px 0 8px; }
  .page-community .cm-post .post__head { padding: 0; }
  .page-community .post__name { font-size: 16px; }
  .page-community .post__handle { display: inline; }
  .page-community .cm-post .post__body { padding: 14px 0 0; font-size: 16.5px; line-height: 1.55; }
  .page-community .cm-post .post-links { margin-top: 16px; }
  .page-community .cm-post .post__body + .post-links { margin-top: 16px; }
  .page-community .cm-post .post-links > .embed-card--link { margin: 0; }
  .page-community .cm-post .post__actions { margin: 8px 0 0 -10px; padding: 0; }
  .page-community .cm-act:hover,
  .page-community .cm-rx:hover { color: var(--text-primary); background: var(--cm-band); }
  .page-community .cm-act.is-liked:hover { color: var(--teal-bright); }
  .page-community .cm-rx { padding: 0 4px 0 10px; }
  .page-community .cm-post .comments { padding: 12px 0 14px; }

  .page-community .cm-song,
  .page-community .cm-video { border: 1px solid rgba(45, 212, 191, 0.14); border-radius: 10px; overflow: hidden; }
  .page-community .cm-video .embed-card__play::before { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
  .page-community .cm-video__band { padding: 16px 20px 18px; }
  .page-community .cm-video__title { font-size: 17px; }

  .page-community .col-right .panel { background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
  .page-community .col-right .panel + .panel { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--cm-line); }
  .page-community .col-right .panel__head { margin: 0; padding-bottom: 6px; }
  .page-community .col-right .panel__title {
    font: 400 10.5px/1.2 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-secondary);
  }
  /* Who to follow scrolls inside its panel: the column is sticky, so a list
     that only grew would push its own end off the screen. Five and a half
     rows show, and the cut-off sixth says there is more. */
  .page-community .cm-people {
    max-height: 376px; overflow-y: auto; overscroll-behavior: contain;
    margin-right: -10px; padding-right: 10px;
    scrollbar-width: thin; scrollbar-color: rgba(45, 212, 191, 0.25) transparent;
  }
  .page-community .cm-people__end { height: 1px; }
  .page-community .cm-person { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--cm-line); margin: 0; }
  .page-community .cm-person:first-child { border-top: 0; }
  .page-community .cm-person .avatar { --size: 44px; font-size: 16px; }
  .page-community .cm-person--new .avatar { --size: 40px; font-size: 15px; }
  .page-community .cm-person .side-item__meta { flex: 1; min-width: 0; }
  .page-community .cm-person .side-item__name { font: 600 15px/1.25 var(--f-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .page-community .cm-person .side-item__name a { color: var(--text-primary); }
  .page-community .cm-person .side-item__sub { margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--text-secondary); white-space: normal; }
  .page-community .cm-person .cm-joined {
    margin-top: 3px; font: 400 11px/1.2 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--cm-quiet);
  }
  .page-community .cm-person .cm-follow { min-height: 40px; padding: 0 16px; font-size: 13.5px; }
  .page-community #loadMoreWrap { margin-top: 30px !important; }
}

/* A song given room: a sleeve beside the title (desktop mockup). Decided by
   the column's own width, so a narrow desktop window keeps the stacked card
   rather than squeezing a 30px title into a sliver. */
.page-community .cm-post .post-links { container-type: inline-size; }
@container (min-width: 520px) {
  .page-community .cm-song { display: flex; }
  .page-community .cm-song__art { width: 236px; height: 236px; flex: none; aspect-ratio: auto; }
  .page-community .cm-song__band { flex: 1; min-width: 0; flex-direction: column; align-items: stretch; padding: 22px 24px 20px; }
  .page-community .cm-song__title { margin-top: 10px; font-size: 30px; line-height: 1.02; letter-spacing: 0.01em; }
  .page-community .cm-song__artist { margin-top: 8px; font-size: 15px; }
  .page-community .cm-song__ctl { margin-top: auto; justify-content: space-between; padding-top: 16px; }
  .page-community .cm-song__play { width: 56px; height: 56px; }
  .page-community .cm-song__open {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; color: var(--text-secondary);
  }
  .page-community .cm-song__open svg { width: 16px; height: 16px; }
  .page-community .cm-song__open:hover { color: var(--text-primary); }
  .page-community .cm-sleeve__brand { top: 16px; left: 16px; font-size: 9px; }
  .page-community .cm-sleeve__artist { display: none; }
  .page-community .cm-sleeve__rule { left: 16px; right: 16px; top: 38px; }
  .page-community .cm-sleeve__title { left: 14px; right: 12px; bottom: 12px; font-size: 40px; }
}

/* ===================================================================== */
/* PROFILES (2026-10-13, was Composers): four rows that slide sideways,   */
/* Composers / Listeners / Studios / Artists, real members only.          */
/* js/ws-profiles-page.js. Phone first; the arrows appear on a desktop.   */
/* ===================================================================== */
.page-profiles {
  --pf-gutter: 16px;
  --pf-card: 148px;
  --pf-quiet: #829898;                  /* AA on the page background */
  --f-mono: 'DM Mono', ui-monospace, monospace;
}
.page-profiles .pf-wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--pf-gutter); }
/* The band starts where the rows and the header logo do. */
.page-profiles .page-band { max-width: var(--container); padding-left: var(--pf-gutter); padding-right: var(--pf-gutter); }
.page-profiles .tag-banner.pf-wrap { margin-top: 20px; }
.page-profiles .pf-rows { padding-bottom: 8px; }
.page-profiles .pf-rows[data-loader] { min-height: 240px; }

.page-profiles .pf-row { padding: 28px 0 30px; border-bottom: 1px solid var(--border-subtle); }
.page-profiles .pf-row:last-child { border-bottom: 0; }
.page-profiles .pf-row__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-bottom: 16px;
}
.page-profiles .pf-row__title {
  margin: 0; font: 600 24px/1.1 var(--f-display); color: var(--text-primary);
}

/* The strip: a touch slides it, the snap keeps a card's edge at the margin. */
.page-profiles .pf-row__track {
  display: flex; gap: 12px;
  padding: 0 var(--pf-gutter);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--pf-gutter);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.page-profiles .pf-row__track::-webkit-scrollbar { display: none; }

.page-profiles .pf-card {
  flex: none; width: var(--pf-card); scroll-snap-align: start;
  display: flex; flex-direction: column; color: var(--text-primary); text-decoration: none;
}
.page-profiles .pf-card:focus-visible { outline: 2px solid var(--teal-primary); outline-offset: 3px; border-radius: 4px; }
.page-profiles .pf-card__photo {
  display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 5;
  border-radius: 6px; overflow: hidden; background: var(--bg-card);
}
.page-profiles .pf-card__photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.page-profiles .pf-card__photo > span { font: 600 34px/1 var(--f-display); letter-spacing: 0.02em; }
.page-profiles .pf-card__photo[data-tone="teal"]  { background: #14332F; color: var(--teal-bright); }
.page-profiles .pf-card__photo[data-tone="slate"] { background: #192B33; color: #A9CBD8; }
.page-profiles .pf-card__name {
  margin-top: 10px; font: 600 15px/1.25 var(--f-body);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.page-profiles .pf-card__meta {
  margin-top: 4px; font: 400 10.5px/1.3 var(--f-mono);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--pf-quiet);
}
.page-profiles .pf-none { margin: 0; padding: 4px 0 8px; font-size: 14.5px; color: var(--text-secondary); }
.page-profiles .pf-none a { color: var(--teal-primary); font-weight: 600; }

/* Touch screens slide; the arrows are for a mouse. */
.page-profiles .pf-row__nav { display: none; gap: 8px; }
.page-profiles .pf-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border-default); background: none; color: var(--text-primary); cursor: pointer;
  transition: border-color 0.18s ease, opacity 0.18s ease;
}
.page-profiles .pf-arrow--back svg { transform: scaleX(-1); }
.page-profiles .pf-arrow:hover:not(:disabled) { border-color: var(--teal-primary); }
.page-profiles .pf-arrow:disabled { opacity: 0.3; cursor: default; }
.page-profiles .pf-row--fits .pf-row__nav { visibility: hidden; }

@media (hover: hover) {
  .page-profiles .pf-card:hover .pf-card__photo img { transform: scale(1.03); }
  .page-profiles .pf-card:hover .pf-card__name { color: var(--teal-bright); }
}

@media (min-width: 821px) {
  .page-profiles {
    --pf-gutter: var(--pad-x);
    --pf-card: 188px;
  }
  /* The strip starts at the content edge on a wide screen, and still runs
     out to the window's edge, so it reads as more to come. */
  .page-profiles .pf-row__track {
    padding-inline: max(var(--pad-x), calc((100% - var(--container)) / 2 + var(--pad-x)));
    scroll-padding-inline: max(var(--pad-x), calc((100% - var(--container)) / 2 + var(--pad-x)));
    gap: 18px;
  }
  .page-profiles .pf-row__title { font-size: 30px; }
  .page-profiles .pf-row__nav { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .page-profiles .pf-card__photo img { transition: none; }
}

/* Video links on a profile, playable (2026-10-13; js/ws-profile.js). */
.pr-videos { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .pr-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .pr-videos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* ...and under its row in My Music > Links (js/ws-account.js). */
.link-row__video { margin: 2px 0 14px; max-width: 520px; }

/* The post box on your own profile (js/ws-post-box.js, 2026-10-13). */
.post-box { margin-bottom: 16px; }
.post-box__label {
  display: block; margin: 0 0 10px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-secondary);
}
.post-box__row { display: flex; gap: 12px; align-items: flex-start; }
.post-box__row .avatar { flex: none; }
.post-box textarea {
  flex: 1; min-width: 0; min-height: 64px; resize: none;
  padding: 11px 13px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle); background: var(--bg-deepest);
  color: var(--text-primary); font: 400 16px/1.45 var(--f-body);
}
.post-box textarea:focus { outline: none; border-color: var(--teal-primary); box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.15); }
.post-box__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.post-box__note { font-size: 13px; color: var(--text-secondary); }
.post-box__send { min-height: 44px; padding: 0 22px; }
