/* Norius Music - typography, Material Symbols, motion, player rail and the
   custom chrome layer. Loaded after styles.css so it wins on equal weight. */

:root {
  --spring: cubic-bezier(0.2, 1.4, 0.35, 1);
  --dur-fast: 160ms;
  --wash: color-mix(in oklab, var(--primary) 15%, transparent);
  --wash-edge: color-mix(in oklab, var(--primary) 55%, transparent);
  --track-dim: color-mix(in oklab, var(--on-surface) 16%, transparent);
  --track-lit: color-mix(in oklab, var(--on-surface) 34%, transparent);
}

/* ============================ typography ============================ */

body {
  font-family: "Google Sans", "Google Sans Text", Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "ss01" 1;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

h1,
h2,
h3,
.hero__title,
.hello__t,
.dlg__title,
.mix__name {
  letter-spacing: -0.018em;
}

/* ========================== material symbols ========================== */

.ms {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  display: inline-block;
  flex: none;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  user-select: none;
  transition: font-variation-settings 280ms var(--spring), color var(--dur) var(--ease), transform 280ms var(--spring);
}

.ms.is-fill {
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.ms-ghost {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* context sizing */
.icon-btn .ms { font-size: 22px; }
.icon-btn--sm .ms { font-size: 19px; }
.nav__item .ms { font-size: 23px; }
.nav__item.is-active .ms { font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24; }
.brand .ms { font-size: 26px; color: var(--primary); }
.search__icon .ms { font-size: 21px; }
.ctx__item .ms { font-size: 20px; color: var(--on-surface-variant); }
.card__play .ms { font-size: 26px; }
.btn-filled .ms, .btn-tonal .ms, .btn-danger .ms { font-size: 20px; }
.suggest__row .ms { font-size: 20px; color: var(--on-surface-variant); }
.np__actions .ms { font-size: 22px; }
.toast .ms { font-size: 20px; color: var(--primary); }
.qtile__go .ms { font-size: 22px; }

/* ============================ press effects ============================ */

.icon-btn,
.play-btn,
.btn-filled,
.btn-tonal,
.btn-danger,
.chip,
.nav__item,
.card,
.mix,
.ctx__item,
.pl-item,
.suggest__row,
.user-chip,
.switch,
.sel__btn,
.sel__opt,
.qtile,
.qrow,
.section__more {
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.card,
.mix,
.qtile {
  isolation: isolate;
}

.fx-ripple {
  position: absolute;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.24;
  pointer-events: none;
  z-index: 3;
}

.fx-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  margin: 0;
  border-radius: 50%;
  border: 2px solid var(--primary);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 4;
}

.fx-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  pointer-events: none;
  z-index: 4;
}

/* the like button keeps its glow outside the circle */
.np__actions .icon-btn,
.tp__now .icon-btn {
  overflow: visible;
}

/* ============================ play / pause ============================ */

.pp {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.play-btn {
  width: 46px;
  height: 46px;
  box-shadow: 0 6px 18px color-mix(in oklab, var(--primary) 30%, transparent);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.play-btn:hover {
  box-shadow: 0 8px 24px color-mix(in oklab, var(--primary) 42%, transparent);
}

.play-btn .pp { width: 26px; height: 26px; }
.card__play .pp, .hero .pp, .btn-filled .pp { width: 22px; height: 22px; }

/* ============================ transport ============================ */

.transport {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.tp__now,
.tp__center,
.tp__right {
  position: relative;
  z-index: 2;
}

/* resting state: translucent progress across the whole player */
.tp__wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
}

/* No edge line: the fill just fades out into the player surface. */
.tp__washfill {
  display: block;
  height: 100%;
  width: 0px;
  background: linear-gradient(90deg, color-mix(in oklab, var(--primary) 10%, transparent), var(--wash));
  transition: opacity var(--dur) var(--ease);
}

.transport:hover .tp__washfill,
.transport.is-seek .tp__washfill {
  opacity: 0.5;
}

/* hover state: crisp rail that traces the player outline */
.tp__railsvg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms var(--ease);
}

.transport:hover .tp__railsvg,
.transport:focus-within .tp__railsvg,
.transport.is-seek .tp__railsvg {
  opacity: 1;
}

.tp__railbg {
  fill: none;
  stroke: var(--track-dim);
  stroke-width: 3;
  stroke-linecap: round;
}

.tp__railon {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 3px color-mix(in oklab, var(--primary) 40%, transparent));
}

.tp__railknob {
  position: absolute;
  z-index: 4;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 22%, transparent);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 200ms var(--ease), transform 260ms var(--spring);
}

.transport:hover .tp__railknob,
.transport:focus-within .tp__railknob,
.transport.is-seek .tp__railknob {
  opacity: 1;
  transform: scale(1);
}

.tp__rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 20px;
  z-index: 5;
  cursor: pointer;
  touch-action: none;
  outline: none;
}

.tp__rail:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -4px;
  border-radius: var(--r-sm);
}

.tp__railtip {
  position: absolute;
  top: 22px;
  transform: translate(-50%, 4px);
  padding: 4px 9px;
  border-radius: var(--r-full);
  background: var(--surface-container-highest);
  border: 1px solid var(--outline-variant);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: var(--on-surface);
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms var(--ease), transform 220ms var(--spring);
  white-space: nowrap;
}

.transport.is-seek .tp__railtip {
  opacity: 1;
  transform: translate(-50%, 0px);
}

.tp__timerow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: var(--on-surface-variant);
}

.tp__timerow span { min-width: 0; }
.tp__timerow .tp__sep { opacity: 0.5; }

@media (hover: none) {
  .tp__railsvg,
  .tp__railknob {
    opacity: 1;
  }
}

/* ============================ scrollbars ============================ */

* {
  scrollbar-width: thin;
  scrollbar-color: var(--track-dim) transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--track-dim);
  border: 3px solid transparent;
  background-clip: padding-box;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--track-lit);
  background-clip: padding-box;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

.oscroll {
  scrollbar-width: none;
}

.oscroll::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
}

.oscroll__bar {
  position: absolute;
  right: 2px;
  width: 12px;
  z-index: 8;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease);
}

.oscroll__bar.is-on {
  pointer-events: auto;
}

.oscroll__bar.is-live,
.oscroll__bar.is-drag,
.oscroll__bar.is-on:hover {
  opacity: 1;
}

.main:hover .oscroll__bar.is-on,
.sidebar:hover .oscroll__bar.is-on,
.np:hover .oscroll__bar.is-on {
  opacity: 1;
}

.oscroll__thumb {
  position: absolute;
  left: 3px;
  width: 6px;
  border-radius: 999px;
  background: var(--track-dim);
  transition: background 160ms var(--ease), width 160ms var(--ease), left 160ms var(--ease);
}

.oscroll__bar:hover .oscroll__thumb,
.oscroll__bar.is-drag .oscroll__thumb {
  width: 10px;
  left: 1px;
  background: var(--track-lit);
}

/* ============================ dialogs ============================ */

.dlg-host {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 20px;
}

.dlg-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(6px) saturate(120%);
}

.dlg {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--surface-container-high);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-xl);
  padding: 26px 26px 22px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.62);
  outline: none;
}

.dlg__icon {
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  background: color-mix(in oklab, var(--primary) 20%, transparent);
  color: var(--primary);
}

.dlg__title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
}

.dlg__text {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--on-surface-variant);
}

.dlg__field {
  display: block;
  margin-bottom: 14px;
}

.dlg__field span {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--on-surface-variant);
}

.dlg__input {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  border-radius: var(--r-sm);
  border: 1px solid var(--outline);
  background: var(--surface-container);
  color: var(--on-surface);
  font-size: 15px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.dlg__input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 22%, transparent);
}

.dlg__err {
  margin: -4px 0 12px;
  font-size: 13px;
  color: var(--error);
}

.dlg__row {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 4px;
}

.btn-danger {
  height: 42px;
  padding: 0 20px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 600;
  background: var(--error);
  color: #4a0a06;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: filter var(--dur) var(--ease);
}

.btn-danger:hover {
  filter: brightness(1.08);
}

/* ============================ toasts ============================ */

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  pointer-events: auto;
  animation: none;
}

.toast__t {
  font-size: 14px;
}

.toast__a {
  margin-left: 6px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  position: relative;
  overflow: hidden;
}

.toast--err .ms { color: var(--error); }

/* ============================ tooltips ============================ */

.tip {
  position: fixed;
  z-index: 160;
  padding: 6px 11px;
  max-width: 260px;
  border-radius: var(--r-xs);
  background: var(--surface-container-highest);
  border: 1px solid var(--outline-variant);
  color: var(--on-surface);
  font-size: 12.5px;
  line-height: 1.3;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

/* ============================ selects ============================ */

.sel {
  position: relative;
  flex: none;
}

.sel__btn {
  height: 44px;
  min-width: 168px;
  padding: 0 12px 0 16px;
  border-radius: var(--r-sm);
  background: var(--surface-container-highest);
  border: 1px solid var(--outline-variant);
  color: var(--on-surface);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.sel__btn:hover {
  border-color: var(--outline);
}

.sel.is-open .sel__btn {
  border-color: var(--primary);
}

.sel__chev {
  color: var(--on-surface-variant);
  transition: transform 300ms var(--spring);
}

.sel.is-open .sel__chev {
  transform: rotate(180deg);
}

.sel__pop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 100%;
  padding: 8px;
  z-index: 95;
  background: var(--surface-container-high);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-md);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
  transform-origin: top center;
}

.sel__opt {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-xs);
  font-size: 14px;
  color: var(--on-surface);
  text-align: left;
  transition: background var(--dur) var(--ease);
}

.sel__opt:hover {
  background: var(--surface-container-highest);
}

.sel__check {
  opacity: 0;
  color: var(--primary);
  transition: opacity 200ms var(--ease), transform 300ms var(--spring);
  transform: scale(0.6);
}

.sel__opt.is-on .sel__check {
  opacity: 1;
  transform: scale(1);
}

.sel__opt.is-on {
  color: var(--primary);
}

/* ============================ context menu ============================ */

.ctx {
  animation: none;
  transform-origin: top left;
  backdrop-filter: blur(10px);
  background: color-mix(in oklab, var(--surface-container-high) 92%, transparent);
}

.ctx__item {
  gap: 12px;
}

.ctx__item.is-danger {
  color: var(--error);
}

.ctx__item.is-danger .ms {
  color: var(--error);
}

.ctx__hint {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--on-surface-variant);
  opacity: 0.8;
}

/* ============================ home rebuild ============================ */

.hello {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 6px 0 16px;
}

.hello__t {
  font-size: 30px;
  font-weight: 700;
  margin: 0;
}

.hello__s {
  font-size: 13.5px;
  color: var(--on-surface-variant);
  text-align: right;
  max-width: 46%;
}

.qgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 10px;
  margin-bottom: 26px;
}

.qtile {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding-right: 12px;
  border-radius: var(--r-sm);
  background: color-mix(in oklab, var(--surface-container-high) 78%, transparent);
  text-align: left;
  transition: background var(--dur) var(--ease);
}

.qtile:hover {
  background: var(--surface-container-highest);
}

.qtile__art {
  width: 64px;
  height: 64px;
  flex: none;
  object-fit: cover;
}

.qtile__art--icon {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--primary), var(--primary-container));
  color: var(--on-primary);
}

.qtile__art--icon .ms {
  font-size: 28px;
}

.qtile__txt {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.qtile__name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qtile__sub {
  font-size: 12px;
  color: var(--on-surface-variant);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qtile__go {
  margin-left: auto;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--on-primary);
  opacity: 0;
  transform: translateX(6px) scale(0.85);
  transition: opacity var(--dur) var(--ease), transform 300ms var(--spring);
}

.qtile:hover .qtile__go,
.qtile:focus-visible .qtile__go {
  opacity: 1;
  transform: translateX(0px) scale(1);
}

.wave {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: 24px 26px;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 20px;
  background:
    radial-gradient(120% 140% at 8% 0%, color-mix(in oklab, var(--primary) 34%, transparent), transparent 60%),
    linear-gradient(120deg, var(--surface-container-high), var(--surface-container-low));
  border: 1px solid var(--outline-variant);
}

.wave__txt {
  min-width: 0;
  flex: 1;
}

.wave__kicker {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.wave__t {
  font-size: 25px;
  font-weight: 700;
  margin: 0 0 6px;
}

.wave__s {
  font-size: 13.5px;
  color: var(--on-surface-variant);
}

.wave__row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  flex-wrap: wrap;
}

.eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 30px;
  color: var(--primary);
  flex: none;
}

.eq span {
  display: block;
  width: 4px;
  height: 30%;
  border-radius: 2px;
  background: currentColor;
  animation: eqbar 1000ms var(--ease) infinite alternate;
}

.eq span:nth-child(2) { animation-delay: 120ms; height: 70%; }
.eq span:nth-child(3) { animation-delay: 240ms; height: 45%; }
.eq span:nth-child(4) { animation-delay: 90ms; height: 85%; }
.eq span:nth-child(5) { animation-delay: 300ms; height: 55%; }

@keyframes eqbar {
  from { transform: scaleY(0.45); }
  to { transform: scaleY(1); }
}

.section__lead {
  min-width: 0;
}

.section__sub {
  margin-top: 3px;
  font-size: 13px;
  color: var(--on-surface-variant);
}

.shelf-nav {
  display: flex;
  gap: 6px;
  flex: none;
}

.shelf-nav .icon-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.reason {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 6px;
  border-radius: var(--r-full);
  background: color-mix(in oklab, var(--primary) 14%, transparent);
  color: var(--primary);
  font-size: 11.5px;
  font-weight: 600;
}

.reason .ms {
  font-size: 15px;
}

/* ============================ motion polish ============================ */

.card__art img,
.qtile__art {
  transition: transform 420ms var(--spring);
}

.card:hover .card__art img {
  transform: scale(1.045);
}

.icon-btn.is-on .ms {
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

@media (prefers-reduced-motion: reduce) {
  .eq span {
    animation: none;
  }
  .ms,
  .card__art img {
    transition: none;
  }
}

/* ============================ responsive ============================ */

@media (max-width: 900px) {
  .hello {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .hello__s {
    text-align: left;
    max-width: none;
  }
  .wave {
    flex-direction: column;
    align-items: flex-start;
  }
  .tp__rail {
    height: 24px;
  }
  .tp__timerow {
    display: none;
  }
}

/* ============================ toasts ============================ */

.toast-host {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.toast {
  position: relative;
  overflow: hidden;
  pointer-events: auto;
  cursor: pointer;
  padding-right: 6px;
}

.toast__t {
  flex: 1;
  min-width: 0;
}

.toast__x {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border: 0;
  border-radius: var(--r-full);
  background: transparent;
  color: var(--on-surface-variant);
  cursor: pointer;
  opacity: 0;
  transition: opacity 160ms var(--ease), background 160ms var(--ease);
}

.toast:hover .toast__x,
.toast:focus-within .toast__x {
  opacity: 1;
}

.toast__x:hover {
  background: var(--surface-container-highest);
  color: var(--on-surface);
}

/* The countdown bar is the timer itself, so it can pause with it. */
.toast__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform-origin: left center;
  background: color-mix(in oklab, var(--primary) 60%, transparent);
}

.toast--err .toast__bar {
  background: color-mix(in oklab, var(--error) 70%, transparent);
}

/* ============================ skeletons ============================ */

.sk-page {
  animation: sk-in 240ms var(--ease);
}

@keyframes sk-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sk {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--surface-container);
}

.sk::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in oklab, var(--on-surface) 8%, transparent),
    transparent
  );
  animation: sk-sweep 1.5s var(--ease) infinite;
}

@keyframes sk-sweep {
  to { transform: translateX(100%); }
}

.sk-line {
  height: 12px;
  border-radius: var(--r-full);
}

.sk-hello {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
}

.sk-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 26px;
}

.sk-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 8px 12px 8px 8px;
  border-radius: var(--r-md);
  background: var(--surface-container-low);
}

.sk-tileart {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: var(--r-sm);
}

.sk-wave {
  height: 168px;
  border-radius: var(--r-xl);
  margin-bottom: 30px;
}

.sk-hero {
  height: 186px;
  border-radius: var(--r-xl);
  margin-bottom: 26px;
}

.sk-head {
  margin-bottom: 16px;
}

.sk-shelf {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 168px;
  gap: 16px;
  overflow: hidden;
  margin-bottom: 30px;
}

.sk-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.sk-art {
  aspect-ratio: 1;
  width: 100%;
  border-radius: var(--r-md);
}

.sk-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sk-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
}

.sk-thumb {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--r-sm);
}

.sk-row__txt {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.sk-dur {
  width: 34px;
  height: 10px;
  flex: none;
  border-radius: var(--r-full);
}

/* A gentle cascade reads as loading rather than as a broken grid. */
.sk-shelf > *:nth-child(2) .sk::after,
.sk-tiles > *:nth-child(2) .sk::after,
.sk-rows > *:nth-child(2) .sk::after { animation-delay: 70ms; }
.sk-shelf > *:nth-child(3) .sk::after,
.sk-tiles > *:nth-child(3) .sk::after,
.sk-rows > *:nth-child(3) .sk::after { animation-delay: 140ms; }
.sk-shelf > *:nth-child(4) .sk::after,
.sk-tiles > *:nth-child(4) .sk::after,
.sk-rows > *:nth-child(4) .sk::after { animation-delay: 210ms; }
.sk-shelf > *:nth-child(5) .sk::after,
.sk-tiles > *:nth-child(5) .sk::after,
.sk-rows > *:nth-child(5) .sk::after { animation-delay: 280ms; }
.sk-shelf > *:nth-child(n + 6) .sk::after,
.sk-tiles > *:nth-child(n + 6) .sk::after,
.sk-rows > *:nth-child(n + 6) .sk::after { animation-delay: 350ms; }

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