/* The Explore page, /studio/explore (P749, frame Z99G8; src/studio/explore/).
   The Studio's tokens (tokens.css), History's frame (.work in studio.css). */

.ex {
  /* Red as text on Explore's pills: one step deeper in light than the house's, as the frame has it. */
  --ex-accent-ink: light-dark(#9f1239, #ff8fa3);
  color: var(--st-text);
  font-family: var(--st-font);
}
@supports not (color: light-dark(#000, #fff)) { .ex { --ex-accent-ink: #ff8fa3; } }

.ex :where(a, button, input):focus-visible { outline: 2px solid var(--st-accent); outline-offset: 1px; }
.ex a { color: inherit; text-decoration: none; }
.ex-heading { margin-bottom: 20px; }

/* ---- Search ------------------------------------------------------------------------ */

.ex-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 14px 0 18px;
  border-radius: 14px;
  outline: 1px solid var(--st-line);
  outline-offset: -0.5px;
  background: var(--st-surface);
  color: var(--st-text-faint);
}
.ex-search:focus-within { outline: 1.5px solid var(--st-accent); outline-offset: -1px; }
.ex-search > svg { width: 18px; height: 18px; flex: none; }
.ex-search__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--st-text);
  font: 400 17px/normal var(--st-font);
}
.ex .ex-search__input:focus-visible { --st-focus-ring-style: none; outline: none; }
.ex-search__input::placeholder { color: var(--st-text-faint); }
.ex-search__input::-webkit-search-cancel-button { display: none; }
.ex-search__clear { flex: none; }
.ex-search__clear[hidden], .ex-search__kbd[hidden] { display: none; }
.ex-search__kbd {
  padding: 1px 7px;
  border: 1px solid var(--st-line-strong);
  border-radius: 6px;
  font: 400 12px/18px var(--st-font-mono);
}

.ex-chips, .ex-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ex-chips[hidden] { display: none; }
.ex-chip {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  border: 1px solid var(--st-line-strong);
  border-radius: 999px;
  background: none;
  color: var(--st-text-dim);
  font: 400 14px/normal var(--st-font);
  cursor: pointer;
}
.ex-chip:hover { color: var(--st-text); border-color: var(--st-text-faint); }
/* The quick picks (genres): a dot in the genre's colour; the open one filled with it, ✓, genre ink. */
.ex-chip--genre { gap: 8px; padding-inline: 14px; transition: transform 120ms ease, border-color 120ms ease; }
.ex-chip__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ex-tile); }
.ex-chip__check { width: 14px; height: 14px; stroke-width: 2.6; }
.ex .ex-chip--genre.is-selected { border-color: transparent; background: var(--ex-tile); color: var(--st-genre-ink); font-weight: 600; }
@media (hover: hover) {
  .ex-chip--genre:not(.is-selected):hover { transform: translateY(-1px); }
}
.ex-chip--genre:active { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) { .ex-chip--genre { transition: none; } .ex-chip--genre:hover, .ex-chip--genre:active { transform: none; } }
.ex-genre-mark { display: inline-block; width: 12px; height: 12px; margin-right: 10px; border-radius: 50%; background: var(--ex-tile); vertical-align: 1px; }
.ex-chip[aria-pressed='true'] { border-color: var(--st-accent); background: var(--st-accent-soft); color: var(--ex-accent-ink); }

.ex-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.ex-filters .ex-filter-chips { margin-top: 0; }
.ex-attribution { display: inline-flex; align-items: center; gap: 6px; color: var(--st-text-faint); font-size: 13px; }
.ex-attribution > svg { width: 16px; height: 16px; }

.ex-body { margin-top: 28px; display: flex; flex-direction: column; gap: 36px; }

/* ---- Sections ------------------------------------------------------------------------ */

.ex-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ex-section__title { margin: 0; font: 600 18px/1.3 var(--st-font); }
.ex-section__sub { margin-left: 12px; color: var(--st-text-faint); font: 400 13px/normal var(--st-font-mono); }
.ex-group .ex-section__title { color: var(--st-text-dim); font: 600 13px/1.3 var(--st-font); letter-spacing: 0.06em; }
.ex-group .ex-section__sub { font-family: var(--st-font); font-size: 13px; letter-spacing: 0; }
.ex-lede { margin: -6px 0 10px; color: var(--st-text-faint); font-size: 13px; }
.ex-more { display: inline-flex; align-items: center; gap: 6px; flex: none; color: var(--st-text-dim); font-size: 14px; }
.ex-more:hover { color: var(--st-text); }
.ex-more > svg { width: 15px; height: 15px; }
.ex-back { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; color: var(--st-text-dim); font-size: 14px; }
.ex-back > svg { width: 16px; height: 16px; }

.ex-tops { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; }
.ex-tops > :only-child { grid-column: 1 / -1; }

/* ---- Rows ------------------------------------------------------------------------------ */

.ex-list { margin: 0; padding: 0; list-style: none; }
.ex-row {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 78px;
  padding: 0 10px;
  border-bottom: 1px solid var(--st-line);
}
.ex-rank { flex: none; width: 22px; color: var(--st-text-faint); font: 400 15px/1 var(--st-font-mono); text-align: center; }
.ex-art {
  position: relative;
  flex: none;
  width: 100px;
  height: 56px;
  border-radius: 6px;
}
/* The phone's one meta line (`songRow`); the laptop shows the artist and the facts instead. */
.ex-meta { display: none; }
/* The title keeps its room; the facts give way (their extra chips go). */
.ex-text { flex: 1; min-width: min(120px, 30%); display: flex; flex-direction: column; gap: 3px; }
.ex-title, .ex-artist { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ex-text .ex-title { margin: 0; font: 500 16px/normal var(--st-font); }
.ex-artist { color: var(--st-text-dim); font-size: 14px; }
.ex-facts { flex: 0 1 auto; min-width: 0; overflow: hidden; display: flex; align-items: center; gap: 16px; color: var(--st-text-dim); font: 400 14px/normal var(--st-font-mono); }
/* More chips than room: the ones that don't fit wrap onto a second line that is cut away, so whole chips go, never the row's height. */
.ex-chords { display: flex; flex-wrap: wrap; gap: 0 6px; min-width: 0; height: 22px; overflow: hidden; }
.ex-chord { padding: 2px 7px; border-radius: 5px; background: var(--st-surface-2); color: var(--st-text-dim); font: 400 13px/18px var(--st-font-mono); }
.ex-note { display: inline-flex; align-items: center; gap: 6px; font-family: var(--st-font); }
.ex-note > svg { width: 15px; height: 15px; }
.ex-note.is-charting, .ex-note.is-failed { color: var(--ex-accent-ink); }

/* The ready songs on Top on Chord Lens: chips, no key or tempo, no button (the row is the link in the frame). */
.ex-ours .ex-key, .ex-ours .ex-bpm { display: none; }
/* Its narrower column: smaller covers, so the title, a chip or two and Play fit. */
.ex-ours .ex-art { width: 80px; height: 45px; }

/* ---- Buttons: Get chords (rest, hover/focus, pressed, charting) and Play ----------- */

.ex-btn {
  --ex-fill: 0%;
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 34px;
  padding: 0 16px;
  overflow: hidden;
  border: 1px solid var(--st-accent-line);
  border-radius: 999px;
  background: var(--st-accent-soft);
  color: var(--ex-accent-ink);
  font: 600 14px/1 var(--st-font);
  white-space: nowrap;
  cursor: pointer;
}
.ex-btn > * { position: relative; }
.ex-btn > svg { width: 16px; height: 16px; flex: none; }
.ex-btn--get:is(:hover, :focus-visible):not(.is-charting) { border-color: transparent; background: linear-gradient(180deg, #e11d48, #be123c); color: #fff; }
.ex-btn--get:active:not(.is-charting) { border-color: transparent; background: linear-gradient(180deg, #be123c, #9f1239); color: #fff; }
/* Charting: a red fill grows from the left behind the label. */
.ex-btn.is-charting { cursor: progress; }
.ex-btn.is-charting::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--ex-fill); background: color-mix(in srgb, var(--st-accent) 22%, transparent); transition: width 0.5s linear; }
.ex-spin { animation: ex-spin 1s linear infinite; }
@keyframes ex-spin { to { transform: rotate(360deg); } }
.ex-btn--play { border-color: var(--st-ok-line); background: var(--st-ok-soft); color: var(--st-ok-ink); }
.ex-btn--play:is(:hover, :focus-visible) { border-color: transparent; background: linear-gradient(180deg, #e11d48, #be123c); color: #fff; }
.ex-btn--play:active { border-color: transparent; background: linear-gradient(180deg, #be123c, #9f1239); color: #fff; }
.ex-btn--play > svg { width: 15px; height: 15px; }

/* ---- Images (one rule for every picture on Explore, image.ts `exImage`) ------------------------------
   The box's own class sets its size, so nothing moves when the picture lands. Until then a placeholder in the
   container's tone (--ex-ph) with a slow shimmer; the picture fades in once decoded; a failed one leaves the tone. */
.ex-img { position: relative; display: block; overflow: hidden; background: var(--ex-ph, var(--st-surface-2)); }
.ex-img[data-state='loading']::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ex-shine, linear-gradient(110deg, transparent 30%, color-mix(in srgb, var(--st-text) 7%, transparent) 50%, transparent 70%));
  background-size: 250% 100%;
  animation: ex-shimmer 1.2s linear infinite;
}
@keyframes ex-shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.ex-img__img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 150ms ease; }
.ex-img[data-state='shown'] > .ex-img__img { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .ex-img[data-state='loading']::before { animation: none; background: none; }
  .ex-img__img { transition: none; }
}

/* ---- Cards, tiles, collections, playlists ------------------------------------------------ */

.ex-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.ex-card { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ex-card__art { width: 100%; height: auto; aspect-ratio: 16 / 9.4; margin-bottom: 6px; border-radius: 8px; }
.ex-card__title, .ex-card__meta { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ex-card__title { font: 500 16px/normal var(--st-font); }
.ex-card__meta { color: var(--st-text-dim); font: 400 14px/normal var(--st-font-mono); }

.ex-signed-out { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border: 1px dashed var(--st-line-strong); border-radius: 14px; color: var(--st-text-dim); }
.ex-signed-out > svg { width: 18px; height: 18px; }
.ex-signed-out__action { margin-left: auto; color: var(--ex-accent-ink); font-weight: 600; }

/* Moods & genres (D750, round 9): text on the solid colour, the top playlists' covers fanned bottom right. */
.ex-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ex-tiles--home > :nth-child(n + 9) { display: none; }
.ex-tile {
  --ex-cover: 72px;
  --ex-fan: 0px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  /* The frame's card shape (410 × 222), whatever the width. */
  aspect-ratio: 37 / 20;
  padding: 20px 22px 18px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--ex-tile);
  color: var(--st-genre-ink);
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.ex .ex-tile { color: var(--st-genre-ink); }
/* Pressed: a 10% dark overlay. */
.ex-tile::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: rgb(0 0 0 / 0.1); opacity: 0; pointer-events: none; }
.ex-tile:active::after { opacity: 1; }
.ex .ex-tile:focus-visible { outline: 2px solid var(--st-focus-ring); outline-offset: 2px; }
@media (hover: hover) {
  .ex-tile:hover { --ex-fan: 6px; transform: translateY(-3px); box-shadow: 0 10px 24px color-mix(in srgb, var(--st-shadow) 45%, transparent); }
}
.ex-tile__name { font: 700 22px/1.15 var(--st-font); }
/* The text keeps clear of the covers' corner. */
.ex-tile__top, .ex-tile__count { max-width: calc(100% - 1.85 * var(--ex-cover)); }
.ex-tile__top { display: flex; align-items: center; gap: 6px; font: 600 12px/16px var(--st-font); }
.ex-tile__top > svg { flex: none; width: 14px; height: 14px; }
.ex-tile__top-text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ex-tile__count { margin-top: auto; font: 500 14px/normal var(--st-font); }
.ex-covers { position: absolute; right: 14px; bottom: 14px; width: calc(1.9 * var(--ex-cover)); height: calc(var(--ex-cover) + 12px); }
.ex-cover {
  position: absolute;
  bottom: 0;
  width: var(--ex-cover);
  height: var(--ex-cover);
  overflow: hidden;
  border: 2px solid rgb(255 255 255 / 0.8);
  border-radius: 9px;
  background: color-mix(in srgb, var(--ex-tile) 72%, #000);
  box-shadow: 0 3px 8px rgb(0 0 0 / 0.22);
  transition: transform 150ms ease;
}
.ex-cover__img { width: 100%; height: 100%; --ex-ph: color-mix(in srgb, var(--ex-tile) 72%, #000); --ex-shine: none; }
/* The fan: the top playlist's cover in front, at the right; the others behind it, turned and lower. */
.ex-cover--1 { right: 0; z-index: 3; transform: translateY(-8px) rotate(3deg); }
.ex-cover--2 { right: calc(0.45 * var(--ex-cover) + var(--ex-fan)); z-index: 2; transform: translateY(-3px) rotate(-2deg); }
.ex-cover--3 { right: calc(0.9 * var(--ex-cover) + 2 * var(--ex-fan)); z-index: 1; transform: rotate(-6deg); }
@media (prefers-reduced-motion: reduce) { .ex-tile, .ex-cover { transition: none; } }
.ex-more__short { display: none; }

.ex-folders { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ex-folder { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--st-line); border-radius: 14px; background: var(--st-surface); }
.ex-folder__art { flex: none; width: 78px; height: 78px; border-radius: 8px; }
.ex-folder__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ex-folder__name { overflow: hidden; font: 500 17px/normal var(--st-font); white-space: nowrap; text-overflow: ellipsis; }
.ex-folder__count { color: var(--st-text-dim); font-size: 14px; }
.ex-folder__icon { width: 20px; height: 20px; color: var(--st-text-faint); }

.ex-playlists { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.ex-playlist { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ex-playlist__art { width: 100%; aspect-ratio: 1; border-radius: 10px; }
.ex-playlist__title { overflow: hidden; font: 500 15px/1.3 var(--st-font); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ---- States -------------------------------------------------------------------------------- */

.ex-state { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 48px 16px; text-align: center; }
.ex-state__icon { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 8px; border-radius: 50%; background: var(--st-surface-2); color: var(--st-text-dim); }
.ex-state__icon > svg { width: 28px; height: 28px; }
.ex-state__title { margin: 0; font: 500 19px/1.3 var(--st-font); }
.ex-state__hint { margin: 0; color: var(--st-text-dim); font-size: 15px; }
.ex-state > :is(a, button):last-child { margin-top: 12px; }

.ex-skeleton { display: flex; flex-direction: column; gap: 4px; }
.ex-skeleton__title { width: 140px; height: 14px; margin-bottom: 12px; border-radius: 4px; background: var(--st-surface-2); }
.ex-skeleton__row { display: flex; align-items: center; gap: 16px; height: 78px; padding: 0 10px; }
.ex-skeleton__art { width: 100px; height: 56px; border-radius: 6px; background: var(--st-surface-2); }
.ex-skeleton__line { width: 40%; height: 14px; border-radius: 4px; background: var(--st-surface-2); }
.ex-skeleton > * { animation: ex-pulse 1.4s ease-in-out infinite; }
@keyframes ex-pulse { 50% { opacity: 0.5; } }
@media (prefers-reduced-motion: reduce) { .ex-skeleton > *, .ex-spin { animation: none; } }

/* ---- The search's dropdown (round 8): opens in 120 ms (fade + 4 px down), closes in 90 ms ------------ */

.ex-searchwrap { position: relative; z-index: 5; }
.ex-search__back { display: none; }
.ex-drop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: min(70vh, 640px);
  overflow-y: auto;
  padding: 10px 8px 0;
  border: 1px solid var(--st-line-strong);
  border-radius: 14px;
  background: var(--st-popover-bg);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--st-shadow) 60%, transparent);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 90ms ease-in, transform 90ms ease-in;
}
.ex-drop[hidden] { display: none; }
/* Fading out, it takes no presses: the page under it is live at once. */
.ex-drop:not(.is-open) { pointer-events: none; }
.ex-drop.is-open { opacity: 1; transform: none; transition: opacity 120ms ease-out, transform 120ms ease-out; }
.ex-drop__head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 6px; color: var(--st-text-dim); font: 600 12px/1 var(--st-font); letter-spacing: 0.06em; text-transform: uppercase; }
.ex-drop__clear { border: 0; background: none; color: var(--st-text-dim); font: 400 13px/1 var(--st-font); letter-spacing: 0; text-transform: none; cursor: pointer; }
.ex-opt { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 6px 12px; border-radius: 10px; cursor: pointer; }
.ex-opt--song, .ex-opt--link { min-height: 68px; }
.ex-opt:hover, .ex-opt.is-active { background: var(--st-surface-2); }
.ex-opt > svg { flex: none; width: 18px; height: 18px; color: var(--st-text-faint); }
.ex-opt__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; overflow: hidden; color: var(--st-text-dim); font-size: 16px; white-space: nowrap; text-overflow: ellipsis; }
.ex-opt--suggest .ex-opt__text, .ex-opt--recent .ex-opt__text { display: block; }
.ex-opt__text b { color: var(--st-text); font-weight: 600; }
.ex-opt__title { overflow: hidden; color: var(--st-text); text-overflow: ellipsis; }
.ex-opt__meta { overflow: hidden; color: var(--st-text-dim); font: 400 13px/normal var(--st-font-mono); text-overflow: ellipsis; }
.ex-opt__kbd { visibility: hidden; padding: 1px 7px; border: 1px solid var(--st-line-strong); border-radius: 6px; color: var(--st-text-dim); font: 400 12px/18px var(--st-font-mono); }
.ex-opt.is-active .ex-opt__kbd { visibility: visible; }
.ex-opt__remove, .ex-opt__fill { flex: none; color: var(--st-text-faint); }
.ex-drop__art { flex: none; width: 78px; height: 46px; border-radius: 6px; }
.ex-drop__art--big { width: 96px; height: 56px; }
.ex-ready { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 4px 10px; border: 1px solid var(--st-ok-line); border-radius: 999px; background: var(--st-ok-soft); color: var(--st-ok-ink); font: 600 13px/1 var(--st-font); }
.ex-ready::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ex-btn--get.is-solid { border-color: transparent; background: linear-gradient(180deg, #e11d48, #be123c); color: #fff; }
.ex-drop__foot { position: sticky; bottom: 0; display: flex; justify-content: space-between; gap: 12px; margin: 6px -8px 0; padding: 10px 20px; border-top: 1px solid var(--st-line); background: var(--st-popover-bg); color: var(--st-text-dim); font-size: 13px; }
.ex-drop__foot kbd { padding: 0 6px; border: 1px solid var(--st-line-strong); border-radius: 5px; font: 400 12px/18px var(--st-font-mono); }
.ex-drop__source { display: inline-flex; align-items: center; gap: 6px; }
.ex-drop__source > svg { width: 15px; height: 15px; }
@media (prefers-reduced-motion: reduce) { .ex-drop, .ex-drop.is-open { transform: none; transition: none; } }
/* SONGS (D750): a small Get chords on a song not charted yet; three rows' room held while the songs come. */
.ex-btn--mini { height: 26px; padding: 0 10px; gap: 5px; font-size: 12px; pointer-events: none; }
.ex-btn--mini > svg { width: 13px; height: 13px; }
.ex-opt.is-active .ex-btn--mini, .ex-opt:hover .ex-btn--mini { border-color: transparent; background: linear-gradient(180deg, #e11d48, #be123c); color: #fff; }
.ex-drop__wait-row { height: 68px; padding: 0 12px; gap: 14px; }
.ex-drop__wait .ex-skeleton__art { width: 78px; height: 46px; }

/* YouTube's rows still on their way: the skeleton shows only after 150 ms, so a quick answer never flashes. */
.ex-later .ex-skeleton { animation: ex-appear 0s 150ms both; }
@keyframes ex-appear { from { visibility: hidden; } }

/* ---- Narrower laptops ------------------------------------------------------------------------- */

@media (max-width: 1280px) {
  .ex-tops { grid-template-columns: minmax(0, 1fr); }
  .ex-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ex-folders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) { .ex-chords { display: none; } }

/* ---- Phones (≤640px, D415): the shell's top bar names the page; rows stack their facts --------- */

@media (max-width: 640px) {
  .ex-heading, .ex-search__kbd { display: none; }
  .ex-search { height: 52px; }
  .ex-search__input { font-size: 16px; }
  .ex-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--ph-gutter, 12px)); padding-inline: var(--ph-gutter, 12px); }
  .ex-chip { flex: none; }
  .ex-body { margin-top: 24px; gap: 32px; }
  .ex-section__sub { display: none; }
  .ex-cards { display: flex; overflow-x: auto; scrollbar-width: none; gap: 14px; margin-inline: calc(-1 * var(--ph-gutter, 12px)); padding-inline: var(--ph-gutter, 12px); }
  .ex-card { flex: 0 0 44%; }
  /* One height for every row (the user's call, P749): the title and one meta line, no chips. */
  .ex-row { height: 72px; min-height: 0; gap: 12px; padding: 0; }
  /* The phone's compact scale (the menu's 15 px, the Library's 12 px meta): longer titles fit on one line. */
  .ex-text .ex-title { font: 600 15px/20px var(--st-font); }
  .ex-opt__text { font-size: 15px; }
  .ex-opt__meta { font-size: 12px; }
  .ex-card__title { font: 500 14px/18px var(--st-font); white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .ex-card__meta { font-size: 12px; }
  .ex-art { width: 60px; height: 60px; }
  .ex-row .ex-facts, .ex-row .ex-artist { display: none; }
  .ex-meta { display: block; overflow: hidden; color: var(--st-text-dim); font: 400 12px/16px var(--st-font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; text-overflow: ellipsis; }
  .ex-btn { height: 30px; padding: 0 12px; font-size: 13px; }
  .ex-btn__long { display: none; }
  .ex-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ex-tiles--home > :nth-child(n + 7) { display: none; }
  .ex-more__long { display: none; }
  .ex-more__short { display: inline; }
  /* The count goes under the top playlist; the covers keep the bottom right. */
  .ex-tile { --ex-cover: 52px; aspect-ratio: 177 / 155; gap: 4px; padding: 14px 16px; }
  .ex-tile__top, .ex-tile__count { max-width: none; }
  .ex-tile__count { margin-top: 0; font-size: 12px; }
  .ex-covers { right: 8px; bottom: 10px; }
  .ex-folders { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ex-folder { padding: 14px 0; border: 0; border-bottom: 1px solid var(--st-line); border-radius: 0; background: none; }
  .ex-folder__art { display: none; }
  .ex-tops { gap: 32px; }
  .ex-drop__foot, .ex-opt__kbd { display: none; }
  /* Search mode (round 8): while the dropdown is open the bar takes the top with ←, the list fills the page under it. */
  .ex:has(.ex-drop.is-open) .ex-searchwrap { position: fixed; inset: 0 0 auto; z-index: 60; display: flex; align-items: center; gap: 8px; padding: 10px var(--ph-gutter, 12px); border-bottom: 1px solid var(--st-line); background: var(--st-bg); }
  .ex:has(.ex-drop.is-open) .ex-search { flex: 1; }
  .ex:has(.ex-drop.is-open) .ex-search__back { display: inline-grid; }
  .ex-drop { position: fixed; top: 73px; bottom: 0; max-height: none; padding: 8px var(--ph-gutter, 12px) 0; border: 0; border-radius: 0; background: var(--st-bg); box-shadow: none; }
  .ex-drop__art { width: 66px; height: 46px; }
}
