/* Full-screen "tap to enter" gate (js/player.js) — only ever shown when a
   real autoplay attempt gets rejected by the browser; a returning visitor
   whose browser already allows it never sees this at all. */
.s4s-entry-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* was --space-2, back when the mark was type with its own descender space
     below the baseline; the trimmed artwork ends flush at its own edge */
  gap: var(--space-3);
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(255,32,121,0.10), transparent 60%),
    var(--bg-deep);
  border: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
/* [hidden] must win over the layout display, or the JS toggle does
   nothing visible — same pattern as .docbrowse__placeholder. Without this,
   `display: flex` here had equal specificity to the browser's own
   `[hidden]{display:none}` default and (loading later) beat it, so the
   gate stayed a full-viewport click-blocker forever after being
   "dismissed" — hidden and invisible, but still very much there. */
.s4s-entry-gate:not([hidden]) { display: flex; }
.s4s-entry-gate.is-visible { opacity: 1; }
.s4s-entry-gate:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -6px;
}
/* Was the wordmark set in --font-display; now the pendant artwork itself
   (assets/s4s-entry-mark.webp, built from assets/lo11go.png). Sized in CSS
   rather than by the intrinsic 700px so it stays comfortably inside a narrow
   phone; width/height are still on the <img> so the gate doesn't reflow when
   it decodes.

   Note there is deliberately no :hover rule here. The gate is a button with
   inset: 0 — it covers the viewport, so it is hovered whenever the cursor is
   anywhere on screen at all, which makes hover useless as a signal. (The
   wordmark this replaced had exactly that problem: its :hover colour was, in
   practice, its permanent colour.) So the magenta belongs to the resting
   state, said once and on purpose, and the only state change left is :active,
   which is a real event — the visitor actually pressing. */
.s4s-entry-gate__mark {
  width: min(340px, 62vw);
  height: auto;
  /* the black shadow seats the pendant on the backdrop instead of letting it
     read as a sticker; the magenta is the same accent the gate's own radial
     glow is already using, tightened up around the artwork */
  filter:
    drop-shadow(0 16px 38px rgba(0, 0, 0, 0.6))
    drop-shadow(0 6px 30px rgba(255, 32, 121, 0.34));
  transition: transform 0.18s var(--ease), filter 0.18s var(--ease);
}
.s4s-entry-gate:active .s4s-entry-gate__mark {
  transform: scale(0.975);
  filter:
    drop-shadow(0 10px 26px rgba(0, 0, 0, 0.6))
    drop-shadow(0 4px 22px rgba(255, 32, 121, 0.55))
    brightness(1.08);
}
.s4s-entry-gate__prompt {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.s4s-entry-gate__caret {
  color: var(--cyan);
  animation: s4s-gate-blink 1.1s steps(1) infinite;
}
@keyframes s4s-gate-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .s4s-entry-gate { transition: none; }
  .s4s-entry-gate__mark { transition: none; }
  .s4s-entry-gate__caret { animation: none; }
}

/* Persistent mini media player (js/player.js) — fixed to the viewport,
   identical on every page since it lives outside #page-root. */
.s4s-player {
  position: fixed;
  left: var(--space-3);
  /* deliberately smaller than var(--space-3): sitting closer to the true
     viewport edge maximizes clearance from the hero's CTA buttons above
     on short viewports. The expanded playlist (below) floats above
     .s4s-player__body instead of growing it, so this anchor point never
     moves regardless of playlist state. */
  bottom: max(var(--space-1), env(safe-area-inset-bottom));
  z-index: 950;
  width: min(280px, calc(100vw - 2 * var(--space-3)));
}

.s4s-player__body {
  background: rgba(10, 10, 15, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.s4s-player__bar {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.6rem;
}

.s4s-player__btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.s4s-player__btn:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.08);
}

.s4s-player__btn--toggle {
  width: 30px;
  height: 30px;
  color: #12040a;
  background: var(--magenta);
  box-shadow: 0 0 0 1px rgba(255, 32, 121, 0.4);
}
.s4s-player__btn--toggle:hover {
  color: #12040a;
  background: var(--magenta);
  transform: translateY(-1px);
}

.s4s-player__btn--list[aria-expanded="true"] {
  color: var(--cyan);
  background: rgba(20, 230, 230, 0.1);
}

.s4s-player__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  margin-inline: 0.15rem;
}
.s4s-player__title {
  font-size: 0.72rem;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s4s-player__artist {
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s4s-player__progress {
  position: relative;
  height: 3px;
  margin: 0 0.6rem 0.55rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  cursor: pointer;
}
.s4s-player__progress:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.s4s-player__progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--cyan);
  border-radius: 2px;
}
.s4s-player.is-playing .s4s-player__progress-fill {
  box-shadow: 0 0 6px rgba(20, 230, 230, 0.7);
}

/* Flies out to the RIGHT of the bar by default, vertically centered on it
   (not bottom-aligned — centering splits any extra height the panel needs
   above *and* below the bar instead of dumping it all upward) so it stays
   in roughly the same horizontal band as the (already collision-checked)
   collapsed bar and can't reach up into content above the player. Only on
   narrow/mobile viewports (see the max-width query below), where there's
   no room to the side but typically more vertical room instead, does it
   fall back to growing upward — js/player.js also caps that variant's
   height dynamically. */
.s4s-player__playlist {
  position: absolute;
  left: calc(100% + 0.5rem);
  top: 50%;
  transform: translateY(-50%);
  width: 190px;
  list-style: none;
  margin: 0;
  padding: 0.3rem;
  background: rgba(10, 10, 15, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.65);
  max-height: 140px;
  overflow-y: auto;
}

@media (max-width: 700px) {
  .s4s-player__playlist {
    left: 0;
    right: 0;
    top: auto;
    bottom: calc(100% + 0.5rem);
    transform: none;
    width: auto;
  }
}
.s4s-player__playlist li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.35rem;
  border-radius: 6px;
  cursor: pointer;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
}
.s4s-player__playlist li:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
}
.s4s-player__playlist li.is-active {
  color: var(--cyan);
}
.s4s-player__playlist-num {
  flex-shrink: 0;
  font-size: 0.62rem;
  opacity: 0.7;
}
.s4s-player__playlist-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.s4s-player__playlist-title {
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s4s-player__playlist-artist {
  font-size: 0.6rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 480px) {
  .s4s-player {
    left: var(--space-2);
    bottom: var(--space-2);
    width: min(260px, calc(100vw - 2 * var(--space-2)));
  }
}
