/* Kuru Sings player. Portrait: stage on top, controls under it, the song list below (scrolls). Landscape: the stage fills the
   screen, controls and a sideways song carousel float over it. Safe areas on phones. */
.sp { --bar-h: 56px; --glass: rgba(34, 18, 66, .62); --glass-line: rgba(255, 255, 255, .16); --on: #fff; --on-2: #E9DFFF;
  background: #2A1A4E; color: var(--on); min-height: 100dvh; overflow-x: clip; }
.sp .skip { color: var(--ink); }
.sp-bar { position: fixed; z-index: 30; inset: 0 0 auto 0; height: calc(var(--bar-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
  display: flex; align-items: center; gap: 10px; background: linear-gradient(#2A1A4E, rgba(42, 26, 78, .78)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--glass-line); }
.sp-back { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--on); background: rgba(255, 255, 255, .12); }
.sp-back svg { width: 24px; height: 24px; }
.sp-brand img { height: 28px; width: auto; filter: brightness(0) invert(1); opacity: .92; }
.sp-title { margin: 0 auto 0 4px; font: 800 20px/1 var(--font-display); letter-spacing: .01em; color: var(--sun); }
.sp-tools { display: flex; gap: 8px; }
.sp-tool { min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); color: var(--on); font: 700 15px/1 var(--font-body); }
.sp-tool svg { width: 22px; height: 22px; flex: none; }
.sp-tool:hover { background: rgba(255, 255, 255, .24); }
.sp button:focus-visible, .sp a:focus-visible, .sp input:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.sp-main { padding-top: calc(var(--bar-h) + env(safe-area-inset-top)); }
.sp-show { position: relative; }
.sp-stage { height: min(54dvh, 118vw); min-height: 300px; border-radius: 0; }
.sg-poster { position: absolute; left: 50%; top: 50%; width: min(70%, 320px); height: auto; transform: translate(-50%, -50%); }

/* what is playing, and what to copy */
.sp-now { position: absolute; z-index: 3; left: max(14px, env(safe-area-inset-left)); top: 12px; max-width: 58%; display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; border-radius: 16px; background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--glass-line); }
.sp-now__t { font: 800 clamp(16px, 2.4vw, 22px)/1.15 var(--font-display); }
.sp-now__s { font: 600 13px/1.2 var(--font-body); color: var(--on-2); }
.sp-cue { position: absolute; z-index: 3; right: max(14px, env(safe-area-inset-right)); top: 12px; min-width: 150px; display: none; flex-direction: column; align-items: center; gap: 4px; padding: 10px 16px 12px; border-radius: 20px; background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--glass-line); text-align: center; }
.sp-cue.on { display: flex; }
.sp-cue__move { font: 700 13px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--on-2); }
.sp-cue__word { font: 800 clamp(24px, 4vw, 38px)/1.05 var(--font-display); color: var(--sun); min-height: 1.05em; }
.sp-cue__dots { display: flex; gap: 8px; }
.sp-cue__dots i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .28); transition: transform .12s, background .12s; }
.sp-cue__dots i.on { background: var(--sun); transform: scale(1.35); }
.sp-cue__next { font: 600 13px/1.2 var(--font-body); color: var(--on-2); min-height: 1.2em; }
.sp-toast { position: absolute; z-index: 5; left: 50%; bottom: 14px; margin: 0; max-width: calc(100% - 32px); padding: 10px 18px; border-radius: 999px; background: rgba(20, 10, 40, .88); color: #fff; font: 700 15px/1.3 var(--font-body); text-align: center; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.sp-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* the controls */
.sp-deck { padding: 12px max(14px, env(safe-area-inset-right)) 8px max(14px, env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 10px; background: linear-gradient(#2A1A4E, #34205F); }
.sp-seek { display: flex; align-items: center; gap: 10px; }
.sp-time { font: 700 13px/1 var(--font-body); font-variant-numeric: tabular-nums; color: var(--on-2); min-width: 36px; text-align: center; }
.sp-range { -webkit-appearance: none; appearance: none; flex: 1; height: 28px; background: transparent; margin: 0; cursor: pointer; }
.sp-range::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .22); }
.sp-range::-moz-range-track { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .22); }
.sp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%; background: var(--sun); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.sp-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--sun); border: 3px solid #fff; }
.sp-range:disabled { opacity: .5; cursor: default; }
.sp-row { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.sp-btn { width: 56px; height: 56px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: var(--on); }
.sp-btn svg { width: 26px; height: 26px; }
.sp-btn:hover { background: rgba(255, 255, 255, .26); }
.sp-btn:active { transform: scale(.94); }
.sp-btn--play { width: 76px; height: 76px; background: var(--sun); color: #3a2200; box-shadow: 0 6px 18px rgba(255, 180, 40, .45); }
.sp-btn--play:hover { background: #FFD968; }
.sp-btn--play svg { width: 34px; height: 34px; }
.sp-btn--play .i-pause { display: none; }
.sp[data-state="playing"] .sp-btn--play .i-play { display: none; }
.sp[data-state="playing"] .sp-btn--play .i-pause { display: block; }
.sp-btn--toggle[aria-pressed="true"] { background: var(--sun); color: #3a2200; }
.sp-vol { display: flex; align-items: center; gap: 6px; width: 150px; }
.sp-vol svg { width: 24px; height: 24px; flex: none; color: var(--on-2); }
.sp-row--chips { gap: 10px; }
.sp-chip { min-height: 46px; padding: 0 18px; border: 2px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--on); font: 800 16px/1 var(--font-display); display: inline-flex; align-items: center; gap: 8px; }
.sp-chip b { font-weight: 800; color: var(--sun); }
.sp-chip[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); color: #3a2200; }
.sp-chip--dance[aria-pressed="true"] { background: #FF7A59; border-color: #FF7A59; color: #fff; }
.sp-chip__dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; opacity: .6; }
.sp-chip[aria-expanded="true"]:not(.sp-chip--songs) { border-color: var(--sun); }
.sp-costumes { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.sp-costumes[hidden] { display: none; }
.sp-cs { flex: none; width: 92px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px 8px; border: 2px solid transparent; border-radius: 18px; background: rgba(255, 255, 255, .08); color: var(--on); scroll-snap-align: start; }
.sp-cs__pic { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 16px; background: radial-gradient(circle at 50% 40%, #FFE9B8, #FF9E6B); color: #fff; font: 800 30px/1 var(--font-display); overflow: hidden; }
.sp-cs__pic img { width: 100%; height: 100%; object-fit: contain; }
.sp-cs__n { font: 700 13px/1.15 var(--font-body); text-align: center; }
.sp-cs[aria-pressed="true"] { border-color: var(--sun); background: rgba(255, 203, 61, .18); }

/* the songs */
.sp-songs { padding: 8px max(14px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); background: #34205F; }
.sp-songs__h { margin: 4px 0 10px; font: 800 22px/1 var(--font-display); color: var(--sun); }
.sp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sp-card { position: relative; width: 100%; display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border: 2px solid transparent; border-radius: 20px; background: rgba(255, 255, 255, .1); color: var(--on); text-align: left; min-height: 84px; }
.sp-card:hover { background: rgba(255, 255, 255, .17); }
.sp-card__art { flex: none; width: 64px; height: 64px; }
.sp-card__art svg { width: 100%; height: 100%; }
.sp-card__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.sp-card__t { font: 800 18px/1.15 var(--font-display); }
.sp-card__m { font: 600 14px/1.2 var(--font-body); color: var(--on-2); }
.sp-card__free { flex: none; padding: 4px 10px; border-radius: 999px; background: #27B36A; color: #fff; font: 800 13px/1 var(--font-body); }
.sp-card__lock { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: var(--sun); color: #5A3A06; font: 800 12px/1 var(--font-body); }
.sp-card__lock svg { width: 15px; height: 15px; }
.sp-card.is-locked .sp-card__art { opacity: .6; filter: saturate(.7); }
.sp-card.is-on { border-color: var(--sun); background: rgba(255, 203, 61, .16); }
.sp-card__eq { display: none; gap: 3px; align-items: flex-end; height: 22px; }
.sp-card__eq i { width: 5px; height: 100%; border-radius: 3px; background: var(--sun); transform-origin: bottom; animation: sp-eq .8s ease-in-out infinite alternate; }
.sp-card__eq i:nth-child(2) { animation-delay: .2s; } .sp-card__eq i:nth-child(3) { animation-delay: .4s; }
.sp-card.is-playing .sp-card__eq { display: flex; }
@keyframes sp-eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .sp-card__eq i { animation: none; transform: scaleY(.6); } }
.sp-noscript { padding: 100px 20px; text-align: center; }

/* sheets (buy and TV) */
.sheet { width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 28px; background: transparent; color: var(--ink); overflow: visible; }
.sheet::backdrop { background: rgba(20, 8, 40, .66); backdrop-filter: blur(4px); }
.sheet__card { position: relative; max-height: calc(100dvh - 24px); overflow: auto; padding: 26px 22px 24px; border-radius: 28px; background: var(--paper); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); font: 400 16px/1.5 var(--font-body); }
.sheet__x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(30, 42, 90, .1); color: var(--ink); }
.sheet__x svg { width: 22px; height: 22px; }
.sheet__art { display: block; width: 72px; height: 72px; margin-bottom: 10px; }
.sheet__art svg { width: 100%; height: 100%; }
.sheet__t { margin: 0 44px 6px 0; font: 800 26px/1.1 var(--font-display); }
.sheet__d { margin: 0 0 14px; color: var(--ink-2); }
.sheet__offer { padding: 14px; margin-bottom: 12px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 2px rgba(30, 42, 90, .1); }
.sheet__offer.is-pack { box-shadow: inset 0 0 0 3px var(--sun); }
.sheet__offer h3 { margin: 0 0 2px; font: 800 20px/1.1 var(--font-display); }
.sheet__offer p { margin: 0 0 10px; color: var(--ink-2); font-size: 15px; }
.sheet__buy { display: flex; gap: 10px; flex-wrap: wrap; }
.sheet__buy .btn { flex: 1 1 150px; }
.sheet__acct { margin: 4px 0 12px; text-align: center; }
.sheet__acct a, .tv a { color: var(--blue); font-weight: 800; }
.sheet__free p { margin: 0 0 8px; font-weight: 800; text-align: center; }
.sheet__freebtns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.tv__sec { padding: 14px 0; border-top: 2px dashed rgba(30, 42, 90, .14); }
.tv__sec:first-of-type { border-top: 0; }
.tv h3 { margin: 0 0 4px; font: 800 19px/1.2 var(--font-display); }
.tv h4 { margin: 12px 0 4px; font: 800 16px/1.2 var(--font-body); color: var(--blue); }
.tv__note { margin: 0 0 8px; color: var(--ink-2); font-size: 15px; }
.tv__fine { margin: 8px 0 0; color: var(--ink-3); font-size: 14px; }
.tv__steps { margin: 0 0 4px; padding-left: 22px; font-size: 15px; }
.tv__steps li { margin: 4px 0; }
.tv__url { margin: 0 0 8px; font: 800 24px/1.1 var(--font-display); color: var(--blue); }
.tv__row { display: flex; gap: 8px; flex-wrap: wrap; }
.tv__more summary { cursor: pointer; font-weight: 800; padding: 8px 0; }

/* landscape: the stage is the whole screen, everything else floats over it */
@media (orientation: landscape) and (min-width: 620px) {
  .sp { overflow: hidden; height: 100dvh; }
  .sp-main { position: fixed; inset: 0; padding: 0; }
  .sp-show { position: absolute; inset: 0; }
  .sp-stage { position: absolute; inset: 0; height: auto; min-height: 0; }
  .sp-now { top: calc(var(--bar-h) + env(safe-area-inset-top) + 8px); }
  .sp-cue { top: calc(var(--bar-h) + env(safe-area-inset-top) + 8px); }
  .sp-deck { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; padding-bottom: max(10px, env(safe-area-inset-bottom)); gap: 6px; background: linear-gradient(rgba(42, 26, 78, 0), rgba(42, 26, 78, .86) 38%); }
  .sp-row { gap: 10px; }
  .sp-btn { width: 48px; height: 48px; } .sp-btn--play { width: 62px; height: 62px; }
  .sp-chip { min-height: 40px; padding: 0 14px; font-size: 15px; }
  .sp-costumes { position: absolute; left: max(14px, env(safe-area-inset-left)); right: max(14px, env(safe-area-inset-right)); bottom: 100%; margin-bottom: 4px; padding: 10px; border-radius: 22px; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--glass-line); }
  .sp-deck { position: absolute; }
  .sp-songs { position: absolute; z-index: 5; left: 0; right: 0; bottom: calc(var(--deck-h, 168px)); padding: 0 max(14px, env(safe-area-inset-left)) 6px; background: none; transition: transform .35s var(--ease-settle), opacity .25s; }
  .sp-songs__h { display: none; }
  .sp-list { justify-content: center; flex-direction: row; overflow-x: auto; padding: 4px 2px 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .sp-list li { flex: none; width: clamp(170px, 17vw, 220px); scroll-snap-align: start; }
  .sp-card { flex-direction: column; align-items: flex-start; gap: 8px; min-height: 0; height: 100%; background: rgba(34, 18, 66, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-color: var(--glass-line); padding: 10px; }
  .sp-card__art { width: 100%; height: auto; aspect-ratio: 5 / 2; overflow: hidden; border-radius: 16px; } .sp-card__art svg { width: 100%; height: 100%; }
  .sp-card__free, .sp-card__lock { position: absolute; top: 14px; right: 14px; }
  .sp-card__eq { position: absolute; right: 14px; bottom: 12px; }
  .sp-card.is-on { border-color: var(--sun); }
  .sp[data-songs="closed"] .sp-songs { opacity: 0; transform: translateY(24px); pointer-events: none; visibility: hidden; }
  .sp[data-state="idle"] .sp-songs { opacity: 1; }
  .sp-toast { bottom: calc(var(--deck-h, 168px) + 120px); }
}
/* short phones turned sideways: tighter */
@media (orientation: landscape) and (max-height: 480px) {
  .sp { --bar-h: 46px; }
  .sp-bar { gap: 8px; } .sp-brand { display: none; } .sp-tool span { display: none; } .sp-tool { padding: 0; width: 44px; justify-content: center; }
  .sp-seek { display: none; } .sp-vol { display: none; }
  .sp-card__art { aspect-ratio: 3 / 1; } .sp-list li { width: 180px; }
  .sp-cue { min-width: 120px; padding: 6px 12px 8px; } .sp-cue__word { font-size: 22px; }
  .sp-now { padding: 5px 10px; }
  .sp-chip { min-height: 36px; } .sp-btn { width: 42px; height: 42px; } .sp-btn--play { width: 54px; height: 54px; }
}
/* phones in portrait */
@media (max-width: 480px) {
  .sp-brand { display: none; } .sp-tool span { display: none; } .sp-tool { width: 44px; padding: 0; justify-content: center; }
  .sp-vol { width: 100%; max-width: 220px; }
  .sp-chip { padding: 0 14px; font-size: 15px; }
}
body.sp:fullscreen, .sp-main:fullscreen { background: #2A1A4E; }

/* ---- 14 Nov 2026 (v4): the words of the rhyme, the sung line on the stage, the shelves. Same glass and sun as the rest. */
.sp-sing { position: absolute; z-index: 4; left: 50%; bottom: 14px; width: min(92%, 640px); margin: 0; padding: 10px 16px 9px; border-radius: 18px; transform: translateX(-50%);
  background: var(--glass); color: #fff; text-align: center; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--glass-line);
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease-settle); pointer-events: none; }
.sp-sing.on { opacity: 1; visibility: visible; }
body:not([data-words="timed"]) .sp-sing { display: none; }
.sp-sing__now { display: block; font: 800 clamp(20px, 2.6vw, 30px)/1.2 var(--font-display); color: var(--sun); }
.sp-sing__next { display: block; margin-top: 2px; font: 600 clamp(14px, 1.5vw, 17px)/1.3 var(--font-body); color: var(--on-2); }
.sp-main:fullscreen .sp-sing__now { font-size: clamp(30px, 4vw, 54px); }

.sp-words { padding: 16px max(16px, env(safe-area-inset-right)) 18px max(16px, env(safe-area-inset-left)); background: #301D58; border-top: 1px solid var(--glass-line); }
.sp-words:focus { outline: none; }
.sp-words__head { position: relative; padding-right: 52px; }
.sp-words__kick { margin: 0; font: 800 13px/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--sun); }
.sp-words__t { margin: 4px 0 2px; font: 800 clamp(24px, 3vw, 32px)/1.1 var(--font-display); color: #fff; }
.sp-words__by { margin: 0; font: 600 14.5px/1.4 var(--font-body); color: var(--on-2); }
.sp-words__x { position: absolute; top: 0; right: 0; width: 44px; height: 44px; display: none; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; }
.sp-words__x svg { width: 20px; height: 20px; }
.sp-ways { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sw-way { min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; border: 2px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font: 800 15px/1 var(--font-display); }
.sw-way[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); color: #3a2200; }
.sw-way__lock svg { width: 15px; height: 15px; display: block; }
.sp-mode { margin: 12px 0 0; padding: 9px 12px; border-radius: 14px; background: rgba(255, 255, 255, .1); font: 700 15px/1.4 var(--font-body); color: var(--on-2); }
body[data-words="timed"] .sp-mode { background: rgba(39, 179, 106, .22); color: #DDFBE9; }
.sp-text { margin-top: 12px; font: 700 clamp(19px, 1.7vw, 22px)/1.55 var(--font-display); color: #fff; }
.sw-part { margin: 0 0 14px; }
.sw-part--ch { padding-left: 12px; border-left: 4px solid var(--sun); }
.sw-label { margin: 0 0 2px; font: 800 12.5px/1.4 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--on-2); }
.sw-line { display: block; width: fit-content; max-width: 100%; padding: 1px 8px; margin-left: -8px; border-radius: 8px; transition: color .2s, background-color .25s; }
.sw-line.is-past { color: rgba(255, 255, 255, .55); }
.sw-line.is-now { background: var(--sun); color: #3a2200; }
.is-big .sp-text { font-size: clamp(24px, 2.4vw, 30px); }
.sw-cred { margin: 0; font: 600 15px/1.5 var(--font-body); color: var(--on-2); }
.sw-cred a, .sp-wpage { color: var(--sun); font-weight: 800; }
.sp-about { margin: 12px 0 0; font: 600 14.5px/1.5 var(--font-body); color: var(--on-2); }
.sp-about b { color: #fff; }
.sp-words__foot { margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.sw-out { flex: 1 1 100%; font: 13px/1.4 ui-monospace, monospace; }

.sp-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.sp-tabs::-webkit-scrollbar { display: none; }
.sp-tab { flex: none; min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; border: 2px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font: 800 15px/1 var(--font-display); }
.sp-tab__n { padding: 3px 7px; border-radius: 999px; background: rgba(255, 255, 255, .16); font: 800 12.5px/1 var(--font-body); }
.sp-tab[aria-selected="true"] { background: var(--sun); border-color: var(--sun); color: #3a2200; }
.sp-tab[aria-selected="true"] .sp-tab__n { background: rgba(58, 34, 0, .14); }
.sp-shelf { margin: 0 0 10px; font: 600 14.5px/1.4 var(--font-body); color: var(--on-2); }
.sp-group { padding: 10px 4px 0; }
.sp-group h3 { margin: 0; font: 800 18px/1.2 var(--font-display); color: var(--sun); }
.sp-group p { margin: 2px 0 0; font: 600 14px/1.4 var(--font-body); color: var(--on-2); }
.sp-face__t { font-family: var(--font-display); font-weight: 800; }
/* a rhyme card stays bright when its recording is locked: the words are free; a small lock in the tag says the sound needs Kuru Sings */
.sp-card--rhyme.is-locked .sp-card__art { opacity: 1; filter: none; }
.sp-card__tag svg { display: inline-block; width: 12px; height: 12px; margin-right: 4px; vertical-align: -1px; }
.sp-card__tag { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font: 800 12px/1.3 var(--font-body); }
.sp-card__tag--lit, .sp-card__tag--box { background: #27B36A; }
.sp-card__tag--sung, .sp-card__tag--kuru { background: var(--sun); color: #3a2200; }
.sp-credits a { display: block; padding: 12px 8px; text-align: center; font-weight: 700; color: inherit; text-decoration: underline; }

/* sideways: the words float at the right of the stage and can be hidden; the cue moves out of their way */
@media (orientation: landscape) and (min-width: 620px) {
  .sp { --wp: min(380px, 36vw); }
  .sp-words { display: none; position: absolute; z-index: 6; right: max(14px, env(safe-area-inset-right)); top: calc(var(--bar-h) + env(safe-area-inset-top) + 8px);
    bottom: calc(var(--deck-h, 168px) + 10px); width: var(--wp); overflow: auto; overscroll-behavior: contain; border-radius: 22px;
    background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--glass-line); }
  .sp[data-words-open="1"] .sp-words:not([hidden]) { display: block; }
  .sp-words__x { display: grid; }
  .sp[data-words-open="1"] .sp-cue { right: calc(var(--wp) + 28px); }
  .sp-sing { bottom: calc(var(--deck-h, 168px) + 14px); }
  .sp[data-songs="open"] .sp-sing { visibility: hidden; }
  .sp[data-words-open="1"] .sp-sing { left: calc((100% - var(--wp) - 14px) / 2); width: min(60%, 560px); }
  .sp[data-words-open="1"] .sp-songs { right: calc(var(--wp) + 24px); }
  .sp-group { display: none; }
  /* bug fix: a centred row that overflows puts its first cards at a negative x where no scrolling reaches them (the live
     carousel opened in the middle of the list, on locked German lullabies); start the row at its first card */
  .sp-list { justify-content: flex-start; }
  .sp-tabs { padding: 0 2px 6px; }
  .sp-shelf { display: none; }
  /* the shelf names sit over the stage: give them the same dark glass as the cards so they read on the light floor */
  .sp-tab:not([aria-selected="true"]) { background: rgba(34, 18, 66, .72); border-color: var(--glass-line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}
@media (orientation: landscape) and (max-height: 480px) {
  .sp { --wp: min(320px, 42vw); }
  /* a short screen: the words panel already lights the line, so the stage does not repeat it over Kuru */
  .sp[data-words-open="1"] .sp-sing { display: none; }
  .sp-text { font-size: 17px; }
  .sp-tab { min-height: 36px; font-size: 14px; }
}

.sp [hidden], .sheet [hidden] { display: none !important; }

/* 15 Nov: polish. A phone held upright: the song name stops short of the dance cue, so neither hides the other */
@media (max-width: 480px) {
  .sp-stage:has(.sp-cue.on) .sp-now { max-width: calc(100% - 206px); }
  .sp-now__s { overflow-wrap: anywhere; }
}
/* "Bigger words" also makes the sung line on the stage bigger (for the TV, or a child further away) */
.is-big .sp-sing__now { font-size: clamp(24px, 3.4vw, 46px); }
.is-big .sp-sing__next { font-size: clamp(15px, 1.8vw, 22px); }
@media (orientation: landscape) and (min-width: 620px) { .sp.is-big .sp-sing, .sp.is-big[data-words-open="1"] .sp-sing { width: min(64%, 920px); } }
/* full screen shows the stage only: the sung line sits at the bottom, centred, big; the cue and the song name at the top */
.sp-stage:fullscreen .sp-sing { left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); width: min(90%, 1100px); }
.sp-stage:fullscreen .sp-sing.on { visibility: visible; }
.sp-stage:fullscreen .sp-sing__now { font-size: clamp(28px, 4.2vw, 60px); }
.sp-stage:fullscreen .sp-sing__next { font-size: clamp(16px, 2vw, 28px); }
.sp-stage:fullscreen .sp-now, .sp-stage:fullscreen .sp-cue { top: max(14px, env(safe-area-inset-top)); }
.sp-stage:fullscreen .sp-cue { right: max(14px, env(safe-area-inset-right)); }
.sp-stage:fullscreen .sp-toast { bottom: 140px; }
