/* Streaming: Mood map + Listen together (Nov 2026) */
.mm{display:grid;gap:10px}
.mm__lead{margin:0;color:var(--st-dim);font-size:.85rem}
.mm__stage{position:relative;border:1px solid var(--st-line);border-radius:10px;background:radial-gradient(120% 100% at 50% 0%,#0f1a12,#070b08);overflow:hidden}
.mm__canvas{display:block;max-width:100%;cursor:crosshair;touch-action:pan-y;-webkit-user-select:none;user-select:none}
.mm__tip{position:absolute;z-index:2;pointer-events:none;max-width:260px;padding:5px 8px;border-radius:5px;background:#04110a;border:1px solid var(--st-line2);color:var(--st-head);font-size:.74rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mm__legend{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:.74rem;color:var(--st-dim)}
.mm__legend-bar{width:120px;height:8px;border-radius:4px;background:linear-gradient(90deg,hsl(0,70%,52%),hsl(60,70%,52%),hsl(120,70%,52%),hsl(180,70%,52%),hsl(240,70%,52%),hsl(300,70%,52%),hsl(360,70%,52%))}
.mm__legend small{flex:1 1 100%;color:var(--st-dim)}
.mm__card{padding:10px 12px;border:1px solid var(--st-line2);border-radius:8px;background:var(--st-card2);color:var(--st-head)}
.mm__card small{color:var(--st-dim)}
.mm__acts{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.tg{margin-top:10px;padding:12px;border:1px solid var(--st-line2);border-radius:8px;background:var(--st-card2)}
.tg h3{margin:0 0 6px;color:var(--st-green);font-size:.95rem}
.tg__lead{margin:0 0 8px;color:var(--st-dim);font-size:.8rem}
.tg__row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.tg__or{color:var(--st-dim);font-size:.78rem}
.st-search.tg__code{width:86px;margin:0;text-align:center;letter-spacing:.2em;font-family:ui-monospace,Menlo,monospace;text-transform:uppercase}
.tg__code-big{margin:0 0 4px;font-family:ui-monospace,Menlo,monospace;color:var(--st-head)}
.tg__code-big b{font-size:1.6rem;letter-spacing:.25em;color:var(--st-green)}
.tg__status,.tg__count{margin:2px 0 8px;color:var(--st-dim);font-size:.8rem}
@media (prefers-reduced-motion:reduce){.mm__canvas{cursor:default}}

/* ---------------------------------------------------------------------
   Phones (Nov 2026): a compact player. Before, the docked player was
   about 45% of the screen. Now it is one slim bar (cover, title, prev /
   play / next, a thin seek line) and a grip opens the rest: visualiser,
   times, shuffle, repeat, sound and radio.
   --------------------------------------------------------------------- */
.st-grip{display:none}
@media (max-width:767px){
  .st{padding-bottom:calc(120px + env(safe-area-inset-bottom))}
  .st-hero{padding-top:14px;gap:10px}
  .st-hero h1{font-size:clamp(2rem,11vw,3rem)}
  .st-hero p{display:none}
  /* tabs scroll sideways in one row instead of wrapping to two */
  .st-tabs{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;margin-inline:-4px;padding-inline:4px}
  .st-tabs::-webkit-scrollbar{display:none}
  .st-tab{flex:0 0 auto}
  /* the subscribe box: keep the pitch and the button, drop the long bullet list */
  .st-paywall{padding:12px}
  .st-paywall ul{display:none}
  .st-paywall h2{font-size:1.05rem;margin-bottom:4px}

  .st-player{display:grid;grid-template-columns:44px minmax(0,1fr) auto;grid-template-areas:"grip grip grip" "art text ctls" "seek seek seek";align-items:center;gap:2px 10px;padding:0 12px 8px;border-radius:14px;box-shadow:0 0 0 1px #000,0 -8px 28px -6px #000c}
  .st-grip{display:flex;grid-area:grip;justify-content:center;align-items:center;appearance:none;background:none;border:0;height:22px;margin:0 -12px;cursor:pointer;color:var(--st-dim)}
  .st-grip span{display:block;width:38px;height:4px;border-radius:2px;background:var(--st-line2)}
  .st-grip:focus-visible{outline:2px solid var(--st-green);outline-offset:-2px;border-radius:12px}
  .st-now{display:contents}
  .st-now__art{grid-area:art;width:44px;height:44px}
  .st-now__text{grid-area:text;min-width:0}
  .st-now__title,.st-now__artist{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .st-ctls{grid-area:ctls;margin:0;gap:2px;flex-wrap:nowrap}
  .st-ctls #stShuffle,.st-ctls #stRepeat{display:none}
  .st-seek{grid-area:seek;margin:4px 0 0}
  .st-vfd,.st-viz,.st-more,.st-volrow{display:none}
  .st-toast{bottom:calc(120px + env(safe-area-inset-bottom))}

  /* opened: the whole player, scrollable if the phone is short */
  .st-player.is-open{display:block;max-height:78vh;max-height:78dvh;overflow:auto;padding-top:0}
  .st-player.is-open .st-grip{margin:0 -12px 6px}
  .st-player.is-open .st-now{display:flex}
  .st-player.is-open .st-now__art{width:64px;height:64px}
  .st-player.is-open .st-now__title,.st-player.is-open .st-now__artist{white-space:normal}
  .st-player.is-open .st-ctls #stShuffle,.st-player.is-open .st-ctls #stRepeat{display:inline-flex}
  .st-player.is-open .st-ctls{justify-content:center;margin-top:6px}
  .st-player.is-open .st-vfd,.st-player.is-open .st-viz,.st-player.is-open .st-more{display:flex}
  .st-player.is-open .st-viz{display:block}
  .st-player.is-open .st-more{display:block}
  .st-player.is-open .st-volrow{display:none}
  .st-ctl{width:42px;height:42px}
  .st-ctl--play{width:48px;height:48px}
}
@media (max-width:767px) and (max-height:520px){ .st-player.is-open{max-height:92vh} }

/* 19 Nov 2026 review: nothing hidden on phones. The tabs wrap onto a second line instead of running off the
   right edge (Mood map was out of sight), and the mini player shows the whole title and artist. */
@media (max-width:767px){
  .st-tabs{flex-wrap:wrap;overflow:visible;margin-inline:0;padding-inline:0}
  .st-tab{flex:0 1 auto}
  .st-now__title,.st-now__artist{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
}

/* 19 Nov 2026: follow, carry on, share playlists, drag handles (js/stream-social-v1.js) */
.st-drag{flex:none;width:32px;height:40px;display:inline-flex;align-items:center;justify-content:center;color:var(--st-dim);font-size:1.1rem;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;border-radius:6px}
.st-drag:hover,.st-drag:focus-visible{color:var(--st-green);outline:none;background:rgba(92,240,143,.08)}
.is-drag{position:relative;z-index:5;background:var(--st-card2);box-shadow:0 8px 22px rgba(0,0,0,.6);opacity:.95}
.is-drag .st-drag{cursor:grabbing}
.is-target{box-shadow:inset 0 2px 0 var(--st-green)}
.st-follows{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.st-follow.is-on{color:#04110a;background:var(--st-green);border-color:var(--st-green)}
.st-detail .st-follow{margin-top:8px}
.st-follow-sec{margin:0 0 6px}
.st-grid--follow{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}
.st-card{position:relative}
.st-new{position:absolute;top:12px;left:12px;padding:3px 6px;border-radius:3px;background:var(--st-green);color:#04110a;font:700 .62rem ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.1em}
.st-resume{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 14px;padding:10px 12px;border:1px solid var(--st-line2);border-radius:8px;background:var(--st-card2)}
.st-resume[hidden]{display:none}
.st-resume img{width:40px;height:40px;border-radius:4px;object-fit:cover}
.st-resume__text{flex:1 1 180px;min-width:0;display:flex;flex-direction:column;gap:2px}
.st-resume__text b{color:var(--st-head);font-size:.9rem}
.st-resume__text small{color:var(--st-dim);font-size:.78rem;overflow-wrap:anywhere}
/* the right-hand column (subscribe box, player, Up next) is taller than most screens; it used to stick with
   its bottom off-screen, so the queue couldn't be seen until the end of the page. It now scrolls on its own. */
@media (min-width:768px){
  .st-side{max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
}
/* search results (js/stream-search-v1.js) */
.st-results .st-chips{list-style:none;margin:0 0 6px;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.st-results .st-chip{appearance:none;cursor:pointer;min-height:44px;padding:0 14px;border:1px solid var(--st-line2);border-radius:999px;background:var(--st-card);color:var(--st-head);font:inherit;font-weight:700;font-size:.88rem}
.st-results .st-chip:hover,.st-results .st-chip:focus-visible{border-color:var(--st-green);outline:none}
.st-results .st-chip small{color:var(--st-dim);font-weight:400}
.st-notify{display:flex;align-items:flex-start;gap:10px;margin:4px 0 12px;color:var(--st-text);font-size:.86rem;cursor:pointer}
.st-notify input{width:20px;height:20px;margin:1px 0 0;accent-color:var(--st-green);flex:none}
.st-detail .st-notify{margin-top:10px}
