/*
 * Explore (assets/wkx-explore.js). Everything is scoped to .wke-root and
 * reads the app's --pt-* tokens, falling back to the same values.
 * Layout: the shared top bar, then the page column and the filter rail;
 * below 1366px the rail is a drawer opened from the Filters button.
 * Card columns follow the page column's own width (container queries).
 */
.wke-root {
  --wke-card: rgba(17, 15, 32, .86);
  --wke-card-2: rgba(22, 19, 42, .9);
  --wke-line: var(--pt-border-subtle, rgba(255, 255, 255, .075));
  --wke-line-2: var(--pt-border-strong, rgba(255, 255, 255, .13));
  --wke-text: var(--pt-text-primary, #f7f5ff);
  --wke-muted: var(--pt-text-secondary, rgba(228, 224, 246, .68));
  --wke-faint: rgba(228, 224, 246, .46);
  --wke-violet: var(--pt-accent, #7c5cff);
  --wke-violet-2: var(--pt-accent-bright, #a78bfa);
  --wke-blue: #60a5fa;
  --wke-radius: 16px;
  --wke-ease: var(--pt-ease, cubic-bezier(.2, .7, .2, 1));
  min-width: 0;
  grid-column: 1 / -1;
}
/* Explore hides the session panel (index.html), so it drops the 280px body
   padding kept for it; otherwise the whole page shrinks by that much. */
body.explore-active { padding-right: 0 !important; }
/* Type and resets for the page itself (.wke-layout), never the shared top
   bar above it, which keeps the cascade it has on every other page. Resets
   at class weight (0,1,0) via :where(), so every component rule below (also
   one class) wins by coming later, and the app's bare element rules lose. */
.wke-layout { color: var(--wke-text); font-size: 14px; }
.wke-layout :where(*, *::before, *::after) { box-sizing: border-box; }
.wke-layout [hidden] { display: none !important; }
.wke-layout :where(button, select, input) { font: inherit; color: inherit; margin: 0; letter-spacing: normal; }
.wke-layout :where(button) { appearance: none; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; line-height: 1.2; }
.wke-layout :where(button:disabled) { cursor: default; }
.wke-layout :where(svg) { display: block; flex: 0 0 auto; }
.wke-layout :where(a) { color: inherit; }
.wke-layout :where(h1, h2, h3, p) { margin: 0; }
.wke-layout :focus-visible { outline: 2px solid var(--wke-violet-2); outline-offset: 2px; border-radius: 8px; }
.wke-root .pt-producer-link { color: var(--wke-muted); text-decoration: none; }
.wke-root .pt-producer-link:hover { color: #d8ccff; text-decoration: underline; text-underline-offset: 2px; }

/* The shared top bar keeps its own rhythm (margin by window height); the
   workspace gets the same top padding and static violet horizon as Search
   and Create. :has() scopes both to while Explore is mounted. */
.wke-topbar-slot { min-width: 0; }
body.explore-active .workspace:has(.wke-root) {
  padding-top: 20px !important;
  background:
    radial-gradient(1100px 340px at 62% -90px, rgba(124, 92, 255, .20), transparent 70%),
    radial-gradient(640px 360px at 0% 0%, rgba(79, 124, 255, .07), transparent 70%),
    #06060b !important;
}
@media (max-height: 940px) {
  body.explore-active .workspace:has(.wke-root) { padding-top: 16px !important; }
}

.wke-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 304px;
  gap: 24px;
  align-items: start;
}
.wke-main { min-width: 0; container: wke-main / inline-size; }

/* ── Header ─────────────────────────────────────────────────────────── */
.wke-head { margin: 0 0 12px; }
.wke-h1 {
  margin: 0; font-size: 58px; line-height: 1; font-weight: 800; letter-spacing: -.035em; color: #fff;
}
.wke-h1 span {
  background: linear-gradient(100deg, #b69cff 0%, #8b7bff 45%, #60a5fa 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wke-sub { margin: 6px 0 0; color: var(--wke-muted); font-size: 16px; line-height: 1.4; }

/* ── Section tabs: one segmented track ──────────────────────────────── */
.wke-navrow { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; min-width: 0; }
.wke-tabs {
  display: flex; gap: 4px; min-width: 0; flex: 0 1 auto; overflow-x: auto; scrollbar-width: none;
  padding: 4px; border: 1px solid var(--wke-line); border-radius: 14px; background: rgba(255, 255, 255, .02);
}
.wke-tabs::-webkit-scrollbar { display: none; }
/* Clipped: fade out at the right edge instead of cutting a tab mid-word. */
.wke-tabs.is-over {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}
.wke-tab {
  flex: 0 0 auto; height: 36px; padding: 0 13px; border-radius: 10px;
  border: 1px solid transparent !important; background: transparent !important;
  color: var(--wke-muted); font-size: 13.5px; font-weight: 600; white-space: nowrap;
  transition: color var(--pt-dur, 180ms) ease, background-color var(--pt-dur, 180ms) ease, border-color var(--pt-dur, 180ms) ease, box-shadow var(--pt-dur, 180ms) ease;
}
.wke-tab:hover { color: #fff; border-color: transparent !important; background: rgba(255, 255, 255, .05) !important; }
.wke-tab.is-active {
  color: #fff; border-color: rgba(167, 139, 250, .75) !important;
  background: linear-gradient(135deg, #7c5cff 0%, #6541f0 100%) !important;
  box-shadow: 0 0 22px rgba(124, 92, 255, .42), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.wke-scroll {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--wke-line-2) !important; background: rgba(255, 255, 255, .04) !important; color: var(--wke-muted);
}
.wke-scroll:hover { color: #fff; }
.wke-scroll svg { width: 18px; height: 18px; }
.wke-filters-btn {
  display: none; flex: 0 0 auto; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 11px;
  border: 1px solid var(--wke-line-2) !important; background: rgba(255, 255, 255, .04) !important; font-size: 14px; font-weight: 600;
}
.wke-filters-btn svg { width: 17px; height: 17px; }
.wke-filters-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--wke-violet); color: #fff; font-size: 11px; font-weight: 800;
}

/* Active filters bar */
.wke-active {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 18px;
  padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(167, 139, 250, .22); background: rgba(124, 92, 255, .07);
}
.wke-active-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wke-violet-2); margin-right: 2px; }
.wke-activechip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px 0 11px; border-radius: 8px;
  background: rgba(124, 92, 255, .9) !important; color: #fff; font-size: 12.5px; font-weight: 600;
  box-shadow: 0 0 14px rgba(124, 92, 255, .3);
}
.wke-activechip svg { width: 13px; height: 13px; opacity: .85; }
.wke-clear { color: var(--wke-violet-2); font-size: 13px; font-weight: 600; margin-left: auto; }
.wke-clear:hover:not(:disabled) { color: #fff; }
.wke-clear:disabled { opacity: .4; }

/* ── Buttons ────────────────────────────────────────────────────────── */
.wke-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px;
  border-radius: 11px; background: var(--pt-accent-gradient, linear-gradient(135deg, #7c5cff, #9b5cf6)) !important; color: #fff;
  font-size: 13.5px; font-weight: 700; box-shadow: 0 6px 18px rgba(124, 92, 255, .28);
}
.wke-btn--ghost { background: rgba(255, 255, 255, .04) !important; border: 1px solid var(--wke-line-2) !important; box-shadow: none; color: var(--wke-text); }
.wke-btn--ghost:hover:not(:disabled) { border-color: rgba(167, 139, 250, .5) !important; }
.wke-btn--small { height: 30px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }
.wke-btn:disabled { opacity: .6; }
.wke-linkbtn { color: var(--wke-violet-2); text-decoration: underline; }
.wke-cta {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 13px;
  background: var(--pt-cta-gradient, linear-gradient(100deg, #9a6bff 0%, #7446ff 22%, #6538f2 58%, #5227dc 100%)) !important;
  color: #fff; font-size: 14.5px; font-weight: 700;
  box-shadow: 0 10px 30px rgba(124, 92, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform var(--pt-dur, 180ms) var(--wke-ease), box-shadow var(--pt-dur, 180ms) ease;
}
.wke-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(124, 92, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .22); }
.wke-cta svg { width: 18px; height: 18px; }
.wke-icon-btn {
  width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center; color: var(--wke-muted);
  transition: color var(--pt-dur, 180ms) ease, background-color var(--pt-dur, 180ms) ease;
}
.wke-icon-btn:hover { color: #fff; background: rgba(255, 255, 255, .07) !important; }
.wke-icon-btn svg { width: 17px; height: 17px; }
.wke-like.is-on { color: #f472b6; }
.wke-like.is-on svg path { fill: currentColor; }
.wke-sim { font-size: 17px; font-weight: 700; line-height: 1; }
.wke-root .wkx-create-song-btn.wke-create { --wkx-cs-size: 30px; }

/* ── Sections ───────────────────────────────────────────────────────── */
.wke-section { margin: 0 0 28px; min-width: 0; }
.wke-section-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 0 0 14px; flex-wrap: wrap; }
.wke-section-hd h2 { margin: 0; font-size: 21px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.wke-section-sub { margin: 4px 0 0; color: var(--wke-muted); font-size: 13.5px; }
.wke-viewall { display: inline-flex; align-items: center; gap: 6px; color: var(--wke-violet-2); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.wke-viewall svg { width: 16px; height: 16px; transition: transform var(--pt-dur, 180ms) var(--wke-ease); }
.wke-viewall:hover { color: #fff; }
.wke-viewall:hover svg { transform: translateX(2px); }
.wke-more-row { display: flex; justify-content: center; gap: 10px; margin: -8px 0 28px; flex-wrap: wrap; }
.wke-more-row:empty { display: none; }
.wke-note { margin: 8px 0 0; color: var(--wke-faint); font-size: 12px; line-height: 1.45; }
.wke-dim { color: var(--wke-faint); }
.wke-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--wke-violet-2); }
.wke-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.wke-duo > .wke-section { background: var(--wke-card); border: 1px solid var(--wke-line); border-radius: var(--wke-radius); padding: 16px 14px 10px; }
.wke-duo .wke-section-hd h2 { font-size: 17px; }
/* For You: the account's own shelves, as panels like the duo's. The first
   spans the section with its rows in two columns. */
.wke-foryou-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 22px; }
.wke-fy { min-width: 0; background: var(--wke-card); border: 1px solid var(--wke-line); border-radius: var(--wke-radius); padding: 16px 14px 10px; }
.wke-fy--wide { grid-column: 1 / -1; }
.wke-fy-hd { margin: 0 0 10px; padding: 0 4px; }
.wke-fy-hd h3 { margin: 0; font-size: 17px; line-height: 1.25; font-weight: 800; color: #fff; }
.wke-fy-sub { margin: 3px 0 0; color: var(--wke-muted); font-size: 12.5px; }
.wke-fy-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 18px; }
.wke-fy .wke-empty { padding: 22px 16px; }
.wke-row-sub--why { display: flex; align-items: center; gap: 6px; min-width: 0; }
.wke-row-by { flex: 0 100 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wke-row-by:empty { display: none; }
/* The reason keeps its full width (the producer name gives way first); it
   is cut only when the row itself is narrower than it. */
.wke-why {
  flex: 0 0 auto; max-width: 100%; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  padding: 1px 7px; border-radius: 999px; line-height: 1.35;
  font-size: 11px; font-weight: 600; color: #c4b5fd; background: rgba(124, 92, 255, .12); border: 1px solid rgba(167, 139, 250, .22);
}
@container wke-main (max-width: 720px) {
  .wke-foryou-grid, .wke-fy-cols { grid-template-columns: minmax(0, 1fr); }
}
/* The panels' rows are narrow (half the page at 1440): the length column
   goes first, so the reason and ≈ (More like this) stay. */
@container wke-rows (max-width: 560px) {
  .wke-fy .wke-row { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .wke-fy .wke-row-extra { display: none; }
}
@container wke-rows (max-width: 400px) {
  .wke-fy .wke-row-actions .wke-sim { display: inline-grid; }
}

/* ── Artwork (first, so a placement class below can position it) ────── */
.wke-art { position: relative; display: block; overflow: hidden; background: #0b0918; }
.wke-art > svg, .wke-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ── Hero ───────────────────────────────────────────────────────────── */
.wke-hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 16px;
  min-height: 0; margin: 0 0 24px; padding: 20px 28px; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(167, 139, 250, .24);
  background:
    radial-gradient(60% 90% at 78% 40%, rgba(124, 92, 255, .34) 0%, rgba(124, 92, 255, 0) 70%),
    radial-gradient(40% 60% at 100% 100%, rgba(59, 130, 246, .2) 0%, rgba(59, 130, 246, 0) 70%),
    radial-gradient(30% 50% at 55% 100%, rgba(217, 70, 239, .14) 0%, rgba(217, 70, 239, 0) 70%),
    linear-gradient(135deg, #0c0a1b 0%, #110c26 55%, #0d0b20 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05);
}
/* No pack boxes (nothing new this week): the copy takes the whole hero. */
.wke-hero:not(.wke-hero--loading):not(:has(.wke-box)) { grid-template-columns: minmax(0, 1fr); }
.wke-hero-art:empty { display: none; }
.wke-hero-copy { position: relative; z-index: 1; min-width: 0; }
.wke-hero-title { margin: 6px 0 8px; font-size: clamp(28px, 2.4vw, 38px); line-height: 1.06; font-weight: 800; letter-spacing: -.025em; color: #fff; }
.wke-hero-title span {
  background: linear-gradient(95deg, #c084fc 0%, #a855f7 55%, #8b5cf6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wke-hero-desc { margin: 0 0 14px; max-width: 420px; color: var(--wke-muted); font-size: 14.5px; line-height: 1.5; }
.wke-hero .wke-cta { height: 42px; }
/* The pack boxes are sized from their own column (a share of it, fixed
   proportions), so they never run into the copy or past the hero's edge. */
.wke-hero-art {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 0; min-width: 0; min-height: 0; perspective: 900px;
  width: 100%; max-width: 520px; justify-self: center;
}
.wke-box {
  position: relative; display: block; width: 32%; height: auto; aspect-ratio: 150 / 184; flex: 0 1 auto; margin: 0 -2%;
  container-type: inline-size;
  transform: rotateY(16deg) translateZ(-20px); transform-style: preserve-3d;
  transition: transform 260ms var(--wke-ease), filter 260ms ease;
}
.wke-box--1 { z-index: 2; width: 38%; height: auto; transform: translateZ(20px); }
.wke-box--2 { transform: rotateY(-16deg) translateZ(-20px); }
.wke-box:hover { filter: brightness(1.08); }
.wke-box--0:hover { transform: rotateY(12deg) translateY(-4px) translateZ(-20px); }
.wke-box--1:hover { transform: translateY(-4px) translateZ(20px); }
.wke-box--2:hover { transform: rotateY(-12deg) translateY(-4px) translateZ(-20px); }
.wke-box-face {
  position: absolute; inset: 0; display: block; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 24px 44px rgba(0, 0, 0, .55), 0 0 18px rgba(124, 92, 255, .14);
}
.wke-box-side {
  position: absolute; top: 5px; bottom: 5px; width: 12px; border-radius: 3px;
  background: linear-gradient(180deg, rgba(90, 70, 190, .7), rgba(20, 14, 50, .9));
}
.wke-box--0 .wke-box-side { left: -9px; transform: skewY(-8deg); }
.wke-box--1 .wke-box-side { display: none; }
.wke-box--2 .wke-box-side { right: -9px; transform: skewY(8deg); }
.wke-box-art { position: absolute; inset: 0; }
.wke-box-face::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 4, 12, 0) 35%, rgba(5, 4, 12, .82) 100%);
}
.wke-box-text { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; display: flex; flex-direction: column; gap: 5px; text-align: center; }
/* The front box covers the side boxes' inner edge: their text stays clear of it. */
.wke-box--0 .wke-box-text { right: 16%; }
.wke-box--2 .wke-box-text { left: 16%; }
/* Titles scale with their box (cqi) and break between words when they can. */
.wke-box-title {
  font-size: clamp(10px, 11cqi, 18px); line-height: 1.12; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: normal; overflow-wrap: anywhere;
}
.wke-box--1 .wke-box-title { font-size: clamp(11px, 12cqi, 21px); }
/* Up to two lines, breaking between words, so a long producer name isn't cut. */
.wke-box-sub {
  font-size: 9.5px; line-height: 1.25; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(233, 225, 255, .72);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word;
}

/* ── Pack cards ─────────────────────────────────────────────────────── */
/* Columns follow the page column: 5 / 4 / 3 / 2 / 1. A shelf (Overview) is
   one row of them (two on phones): cards past it stay out of the layout. */
.wke-grid { display: grid; grid-template-columns: repeat(var(--wke-cols, 4), minmax(0, 1fr)); gap: 14px; }
@container wke-main (min-width: 860px) { .wke-grid { --wke-cols: 5; } .wke-grid.wke-shelf > :nth-child(n+6) { display: none; } }
@container wke-main (min-width: 700px) and (max-width: 859.98px) { .wke-grid { --wke-cols: 4; } .wke-grid.wke-shelf > :nth-child(n+5) { display: none; } }
@container wke-main (min-width: 520px) and (max-width: 699.98px) { .wke-grid { --wke-cols: 3; } .wke-grid.wke-shelf > :nth-child(n+4) { display: none; } }
@container wke-main (min-width: 340px) and (max-width: 519.98px) { .wke-grid { --wke-cols: 2; } .wke-grid.wke-shelf > :nth-child(n+5) { display: none; } }
@container wke-main (max-width: 339.98px) { .wke-grid { --wke-cols: 1; } .wke-grid.wke-shelf > :nth-child(n+4) { display: none; } }

.wke-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: var(--wke-radius);
  background: var(--wke-card); border: 1px solid var(--wke-line); cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  transition: transform 200ms var(--wke-ease), border-color 200ms ease, box-shadow 200ms ease;
}
.wke-card:hover {
  transform: translateY(-2px); border-color: rgba(167, 139, 250, .5);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .4), 0 0 0 1px rgba(124, 92, 255, .18), 0 0 26px rgba(124, 92, 255, .16);
}
.wke-card.is-current { border-color: rgba(167, 139, 250, .65); }
.wke-card-media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--wke-radius) var(--wke-radius) 0 0; overflow: hidden; }
.wke-card-art { position: absolute; inset: 0; transition: transform 320ms var(--wke-ease); }
.wke-card:hover .wke-card-art { transform: scale(1.02); }
.wke-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .45) 100%); pointer-events: none; }
.wke-badge {
  position: absolute; top: 10px; left: 10px; z-index: 1; padding: 4px 8px; border-radius: 7px;
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff;
  background: rgba(10, 8, 22, .72); border: 1px solid rgba(255, 255, 255, .14);
}
.wke-badge--new { background: rgba(124, 92, 255, .92); border-color: rgba(196, 181, 253, .6); box-shadow: none; }
.wke-card-play {
  position: absolute; left: 10px; bottom: 10px; z-index: 1; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(124, 92, 255, .88) !important; border: 1px solid rgba(221, 214, 254, .45) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .4);
  transition: transform 180ms var(--wke-ease), background-color 180ms ease, box-shadow 180ms ease;
}
.wke-card-play svg { width: 16px; height: 16px; }
.wke-card:hover .wke-card-play, .wke-card-play.is-playing { background: rgba(139, 108, 255, 1) !important; box-shadow: 0 6px 18px rgba(0, 0, 0, .4), 0 0 18px rgba(124, 92, 255, .6); }
.wke-card-play:hover:not(:disabled) { transform: scale(1.06); }
.wke-card-play:disabled { opacity: .35; }
.wke-card-len {
  position: absolute; right: 10px; bottom: 12px; z-index: 1; padding: 2px 7px; border-radius: 6px;
  background: rgba(5, 4, 12, .6); color: #fff; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
}
/* The body fills the card (a row's cards share its height) and the stats and
   date sit on its bottom edge, so they line up across the row and ⋯ (pinned
   bottom right) is on the date row in every card. */
.wke-card-body { display: flex; flex-direction: column; flex: 1 1 auto; gap: 4px; padding: 10px 12px; min-width: 0; }
.wke-card-title {
  display: block; font-size: 13.5px; font-weight: 700; color: #fff; text-decoration: none; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wke-card-title:hover { text-decoration: underline; text-underline-offset: 2px; }
.wke-card-producer { font-size: 12px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -3px; }
.wke-card-tags { display: flex; flex-wrap: wrap; gap: 5px; max-height: 20px; overflow: hidden; }
.wke-chip {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 600;
  color: rgba(233, 225, 255, .84); background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .08); text-transform: capitalize;
}
.wke-chip--muted { color: var(--wke-faint); text-transform: none; }
.wke-chip--btn:hover { border-color: rgba(167, 139, 250, .55); color: #fff; }
/* The two stats wrap rather than truncate (a card length is compact: "5h 51m+");
   ⋯ sits at the card's bottom right, on the date row. */
.wke-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 10px; min-width: 0; color: var(--wke-muted); font-size: 11.5px; margin-top: auto; }
.wke-meta { display: inline-flex; align-items: center; gap: 5px; min-width: 0; white-space: nowrap; }
.wke-meta span { overflow: hidden; text-overflow: ellipsis; }
.wke-meta svg { width: 14px; height: 14px; opacity: .75; }
.wke-more { margin-left: auto; width: 26px; height: 22px; border-radius: 7px; display: grid; place-items: center; color: var(--wke-muted); flex: 0 0 auto; }
.wke-card .wke-more { position: absolute; right: 10px; bottom: 8px; margin: 0; }
.wke-more:hover { color: #fff; background: rgba(255, 255, 255, .08) !important; }
.wke-more svg { width: 16px; height: 16px; }
.wke-card-date { display: flex; align-items: center; gap: 5px; padding-right: 30px; color: var(--wke-faint); font-size: 11px; }
.wke-card-date svg { width: 13px; height: 13px; opacity: .7; }

/* Pack ⋯ menu */
.wke-menu {
  position: absolute; right: 8px; bottom: 44px; z-index: 30; min-width: 210px; padding: 6px; border-radius: 12px;
  background: var(--pt-bg-menu, #16132b); border: 1px solid var(--wke-line-2); box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
  display: flex; flex-direction: column; cursor: default;
}
.wke-menu > button, .wke-menu-link a {
  display: block; width: 100%; padding: 9px 10px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--wke-text); text-align: left;
}
.wke-menu > button:hover, .wke-menu-link a:hover { background: rgba(124, 92, 255, .18) !important; text-decoration: none; }
.wke-menu-link { border-top: 1px solid var(--wke-line); margin-top: 4px; padding-top: 4px; }
.wke-menu-link a::before { content: "Open producer: "; color: var(--wke-muted); }

/* ── Producers ──────────────────────────────────────────────────────── */
.wke-prodrow, .wke-prodgrid { display: grid; grid-template-columns: repeat(var(--wke-pcols, 4), minmax(0, 1fr)); gap: 12px; }
/* The Producers tab: 4 / 3 / 2 / 1. */
@container wke-main (min-width: 940px) { .wke-prodgrid { --wke-pcols: 4; } }
@container wke-main (min-width: 700px) and (max-width: 939.98px) { .wke-prodgrid { --wke-pcols: 3; } }
@container wke-main (min-width: 420px) and (max-width: 699.98px) { .wke-prodgrid { --wke-pcols: 2; } }
@container wke-main (max-width: 419.98px) { .wke-prodgrid { --wke-pcols: 1; } }
/* The Overview shelf: as many as fit whole. A card needs ~197px (24 padding
   + 54 avatar + 12 gap + 105 View Producer + 2 border), so 6 / 5 / 4 / 3 / 2 / 1. */
@container wke-main (min-width: 1240px) { .wke-prodrow { --wke-pcols: 6; } .wke-prodrow.wke-shelf > :nth-child(n+7) { display: none; } }
@container wke-main (min-width: 1030px) and (max-width: 1239.98px) { .wke-prodrow { --wke-pcols: 5; } .wke-prodrow.wke-shelf > :nth-child(n+6) { display: none; } }
@container wke-main (min-width: 820px) and (max-width: 1029.98px) { .wke-prodrow { --wke-pcols: 4; } .wke-prodrow.wke-shelf > :nth-child(n+5) { display: none; } }
@container wke-main (min-width: 610px) and (max-width: 819.98px) { .wke-prodrow { --wke-pcols: 3; } .wke-prodrow.wke-shelf > :nth-child(n+4) { display: none; } }
@container wke-main (min-width: 400px) and (max-width: 609.98px) { .wke-prodrow { --wke-pcols: 2; } .wke-prodrow.wke-shelf > :nth-child(n+5) { display: none; } }
@container wke-main (max-width: 399.98px) { .wke-prodrow { --wke-pcols: 1; } .wke-prodrow.wke-shelf > :nth-child(n+4) { display: none; } }
/* Stretched to the row's height with View Producer at the bottom, so the
   buttons line up across a row whether or not a card has a "this week" line. */
.wke-prod {
  display: flex; align-items: stretch; gap: 12px; min-width: 0; padding: 12px; border-radius: 15px;
  background: var(--wke-card); border: 1px solid var(--wke-line);
  transition: border-color 200ms ease, transform 200ms var(--wke-ease);
}
.wke-prod:hover { border-color: rgba(167, 139, 250, .42); transform: translateY(-1px); }
.wke-prod-avatar {
  position: relative; flex: 0 0 auto; align-self: center; width: 54px; height: 54px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 2px rgba(124, 92, 255, .55); background: #120f24;
}
.wke-prod-avatar > img, .wke-prod-avatar > svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wke-prod-initials { position: absolute; inset: 0; display: grid; place-items: center; font-size: 17px; font-weight: 800; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.wke-prod-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.wke-prod-name { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wke-prod-name .pt-producer-link { color: #fff; }
.wke-prod-count { font-size: 12px; color: var(--wke-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wke-prod-new { font-size: 11.5px; color: #c4b5fd; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wke-prod-info > :nth-last-child(2) { margin-bottom: 5px; }
.wke-prod-btn {
  align-self: flex-start; margin-top: auto; max-width: 100%; height: 26px; padding: 0 12px; border-radius: 8px; font-size: 11.5px; font-weight: 700;
  border: 1px solid rgba(167, 139, 250, .5) !important; color: #e9e3ff; background: rgba(124, 92, 255, .08) !important; white-space: nowrap;
}
.wke-prod-btn:hover { background: rgba(124, 92, 255, .22) !important; }
.wke-hd-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.wke-find { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--wke-line-2); background: rgba(255, 255, 255, .03); min-width: 220px; }
.wke-find svg { width: 16px; height: 16px; color: var(--wke-muted); }
.wke-find input { flex: 1 1 auto; min-width: 0; border: 0; outline: none; background: transparent; font-size: 13.5px; }

/* ── Sample rows ────────────────────────────────────────────────────── */
.wke-rows { display: flex; flex-direction: column; gap: 2px; container: wke-rows / inline-size; }
.wke-row {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) 76px 64px 96px auto; align-items: center; gap: 10px;
  min-height: 52px; padding: 7px 8px; border-radius: 12px; border: 1px solid transparent;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.wke-row:hover { background: rgba(255, 255, 255, .035); }
.wke-row.is-current { background: rgba(124, 92, 255, .1); border-color: rgba(167, 139, 250, .28); }
.wke-row-play {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(124, 92, 255, .2) !important; border: 1px solid rgba(167, 139, 250, .35) !important;
}
.wke-row-play:hover, .wke-row-play.is-playing { background: rgba(124, 92, 255, .9) !important; }
.wke-row-play svg { width: 14px; height: 14px; }
.wke-row-main { min-width: 0; }
.wke-row-title { font-size: 13.5px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wke-row-sub { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wke-row-bpm, .wke-row-key, .wke-row-extra { font-size: 12.5px; color: var(--wke-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.wke-row-bpm small { font-size: 10px; color: var(--wke-faint); }
.wke-row-actions { display: flex; align-items: center; gap: 2px; }
@container wke-rows (max-width: 560px) {
  .wke-row { grid-template-columns: 34px minmax(0, 1fr) auto auto; }
  .wke-row-bpm, .wke-row-key { display: none; }
  .wke-row-extra { font-size: 11.5px; }
  .wke-row-actions [data-wke-download] { display: none; }
}
@container wke-rows (max-width: 400px) {
  .wke-row { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .wke-row-extra { display: none; }
  .wke-row-actions .wke-sim { display: none; }
}

/* ── Sound tag tiles ────────────────────────────────────────────────── */
.wke-tiles { display: grid; grid-template-columns: repeat(var(--wke-tcols, 4), minmax(0, 1fr)); gap: 12px; }
@container wke-main (min-width: 940px) { .wke-tiles { --wke-tcols: 6; } .wke-tiles.wke-shelf > :nth-child(n+7) { display: none; } }
@container wke-main (min-width: 700px) and (max-width: 939.98px) { .wke-tiles { --wke-tcols: 4; } .wke-tiles.wke-shelf > :nth-child(n+5) { display: none; } }
@container wke-main (min-width: 420px) and (max-width: 699.98px) { .wke-tiles { --wke-tcols: 3; } .wke-tiles.wke-shelf > :nth-child(n+4) { display: none; } }
@container wke-main (max-width: 419.98px) { .wke-tiles { --wke-tcols: 2; } .wke-tiles.wke-shelf > :nth-child(n+5) { display: none; } }
.wke-tagtile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; aspect-ratio: 4 / 3; min-width: 0;
  padding: 12px; border-radius: 14px; overflow: hidden; border: 1px solid var(--wke-line) !important; text-align: left;
  transition: transform 200ms var(--wke-ease), border-color 200ms ease;
}
.wke-tagtile > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wke-tagtile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 4, 12, .05) 30%, rgba(5, 4, 12, .78) 100%); }
.wke-tagtile:hover { transform: translateY(-2px); border-color: rgba(167, 139, 250, .5) !important; }
.wke-tagtile-name { position: relative; z-index: 1; font-size: 17px; font-weight: 800; color: #fff; text-transform: capitalize; }
.wke-tagtile-count { position: relative; z-index: 1; font-size: 11.5px; color: rgba(233, 225, 255, .78); }

/* ── Collections ────────────────────────────────────────────────────── */
.wke-coll {
  display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 0 0 12px; border-radius: var(--wke-radius); overflow: hidden;
  background: var(--wke-card); border: 1px solid var(--wke-line) !important; text-align: left;
  transition: transform 200ms var(--wke-ease), border-color 200ms ease;
}
.wke-coll:hover { transform: translateY(-2px); border-color: rgba(167, 139, 250, .5) !important; }
.wke-coll-art { aspect-ratio: 16 / 10; margin-bottom: 6px; }
.wke-coll-name { padding: 0 12px; font-size: 13.5px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wke-coll-meta { padding: 0 12px; font-size: 11.5px; color: var(--wke-muted); }

/* ── Segments / sort ────────────────────────────────────────────────── */
.wke-segs { display: inline-flex; gap: 4px; padding: 3px; border-radius: 11px; border: 1px solid var(--wke-line); background: rgba(255, 255, 255, .025); }
.wke-seg { height: 30px; padding: 0 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--wke-muted); }
.wke-seg.is-on { background: rgba(124, 92, 255, .85) !important; color: #fff; }
.wke-sort { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--wke-muted); }
.wke-sort select, .wke-select {
  height: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--wke-line-2); background: #120f24; color: var(--wke-text); font-size: 13px;
}
.wke-select { width: 100%; }

/* ── Pack detail ────────────────────────────────────────────────────── */
.wke-backlink { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--wke-muted); font-size: 13.5px; font-weight: 600; }
.wke-backlink:hover { color: #fff; }
.wke-backlink svg { width: 17px; height: 17px; }
.wke-packhead {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 26px; align-items: center; margin: 0 0 28px; padding: 22px;
  border-radius: 20px; border: 1px solid rgba(167, 139, 250, .2);
  background: radial-gradient(70% 120% at 0% 0%, rgba(124, 92, 255, .18), rgba(124, 92, 255, 0) 70%), var(--wke-card);
}
.wke-packhead-art { aspect-ratio: 1; border-radius: 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.wke-packhead-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wke-packhead-title { margin: 0; font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: #fff; overflow-wrap: anywhere; }
.wke-packhead-producer { font-size: 15px; }
.wke-packhead-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--wke-muted); font-size: 13px; }
.wke-packhead-stats .wke-meta svg { width: 16px; height: 16px; }
.wke-packhead-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wke-chiplabel { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--wke-faint); margin-right: 4px; }
.wke-packhead-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.wke-packhead-actions .wke-cta { height: 42px; }
.wke-root .wkx-create-song-btn.wke-create--lg { --wkx-cs-size: 42px; }

/* ── Empty / error ──────────────────────────────────────────────────── */
.wke-empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 20px; text-align: center;
  border: 1px dashed rgba(255, 255, 255, .12); border-radius: var(--wke-radius); background: rgba(255, 255, 255, .015);
}
.wke-empty h3 { margin: 0; font-size: 16px; font-weight: 700; color: #fff; }
.wke-empty p { margin: 0 0 6px; color: var(--wke-muted); font-size: 13.5px; }
.wke-error {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px;
  border: 1px solid rgba(248, 113, 113, .3); background: rgba(248, 113, 113, .07); color: #fecaca; font-size: 13.5px; font-weight: 600;
}

/* ── Skeletons ──────────────────────────────────────────────────────── */
.wke-skel {
  display: block; border-radius: 14px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .035) 0%, rgba(255, 255, 255, .075) 50%, rgba(255, 255, 255, .035) 100%);
  background-size: 200% 100%; animation: wke-shimmer 1.4s ease-in-out infinite;
}
@keyframes wke-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.wke-skel--card { height: 230px; }
.wke-skel--prod { height: 88px; }
.wke-skel--row { height: 50px; margin-bottom: 4px; }
.wke-skel--tile { aspect-ratio: 4 / 3; }
.wke-skel--line { height: 12px; margin: 0 0 12px; border-radius: 6px; }
.wke-skel--title { height: 88px; width: 80%; margin: 0 0 14px; }
.wke-skel--btn { height: 46px; width: 190px; border-radius: 13px; }
.wke-skel--box { width: 30%; height: auto; aspect-ratio: 150 / 184; margin: 0 1.5%; border-radius: 12px; }
.wke-skel--chips { height: 96px; }
.wke-skel--bars { height: 150px; }
.wke-skel--cover { width: 220px; aspect-ratio: 1; border-radius: 16px; }
.wke-hero--loading .wke-hero-art { align-items: center; }
.wke-packhead--loading { grid-template-columns: 220px minmax(0, 1fr); }
@media (prefers-reduced-motion: reduce) {
  .wke-skel { animation: none; }
  .wke-card, .wke-card-art, .wke-box, .wke-prod, .wke-tagtile, .wke-coll, .wke-cta { transition: none; }
}

/* ── Filter rail ────────────────────────────────────────────────────── */
/* Not sticky: the app's .content-panel clips overflow, so sticky could never
   engage here; the active-filter bar above the results carries the state. */
.wke-rail { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.wke-railcard {
  padding: 16px; border-radius: 18px; background: rgba(14, 12, 27, .86); border: 1px solid var(--wke-line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
}
.wke-railcard-hd { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.wke-railcard-hd h3 { margin: 0; font-size: 17px; font-weight: 800; color: #fff; }
.wke-railcard-hd .wke-clear { margin-left: auto; }
.wke-rail-close { display: none; width: 32px; height: 32px; border-radius: 9px; place-items: center; color: var(--wke-muted); }
.wke-rail-close svg { width: 18px; height: 18px; }
.wke-railsearch {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; margin: 0 0 6px; border-radius: 11px;
  border: 1px solid var(--wke-line-2); background: rgba(255, 255, 255, .03); color: var(--wke-muted);
}
.wke-railsearch:focus-within { border-color: rgba(167, 139, 250, .6); }
.wke-railsearch svg { width: 16px; height: 16px; }
.wke-railsearch input { flex: 1 1 auto; min-width: 0; border: 0; outline: none; background: transparent; font-size: 13px; color: var(--wke-text); }
.wke-group { border-top: 1px solid var(--wke-line); padding: 2px 0; }
.wke-group--fixed { border-top: 0; }
.wke-group-hd { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 40px; color: var(--wke-text); font-size: 13.5px; font-weight: 700; }
.wke-group-hd > svg:first-child { width: 17px; height: 17px; color: var(--wke-muted); }
.wke-group-hd > svg:last-child { width: 17px; height: 17px; color: var(--wke-muted); margin-left: auto; transition: transform 180ms ease; }
.wke-group-hd > .wke-group-val + svg { margin-left: 6px; }
.wke-group.is-open .wke-group-hd > svg:last-child { transform: rotate(180deg); }
.wke-group-hd--static { cursor: default; }
.wke-group-title { flex: 0 0 auto; }
.wke-group-val { margin-left: auto; min-width: 0; max-width: 130px; font-size: 12px; font-weight: 600; color: var(--wke-violet-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wke-group-body { padding: 2px 0 12px; }
.wke-fchips { display: flex; flex-wrap: wrap; gap: 7px; }
.wke-fchip {
  height: 30px; padding: 0 12px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: rgba(233, 225, 255, .8);
  background: rgba(255, 255, 255, .035) !important; border: 1px solid var(--wke-line-2) !important; text-transform: capitalize;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.wke-fchip:hover { color: #fff; border-color: rgba(167, 139, 250, .5) !important; }
.wke-fchip.is-on {
  color: #fff; background: linear-gradient(135deg, #7c5cff, #6541f0) !important; border-color: rgba(196, 181, 253, .7) !important;
  box-shadow: 0 0 14px rgba(124, 92, 255, .38);
}
/* "All" / "Any time" (no filter) keeps a violet fill but never the glow of a
   real filter, so an unfiltered rail doesn't look filtered. */
.wke-fchip.is-on:is([data-wke-ftag=""], [data-wke-fext=""], [data-wke-fadded=""]) {
  box-shadow: none; background: rgba(124, 92, 255, .22) !important; border-color: rgba(167, 139, 250, .45) !important;
}
.wke-fchip--more { color: var(--wke-violet-2); text-transform: none; }
.wke-bpm { display: flex; align-items: flex-end; gap: 8px; }
.wke-bpm label { display: flex; flex-direction: column; gap: 4px; flex: 1 1 0; min-width: 0; font-size: 11px; color: var(--wke-muted); }
.wke-bpm input, .wke-prodform input {
  width: 100%; height: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--wke-line-2); background: #120f24; font-size: 13px; color: var(--wke-text);
}
.wke-prodform { display: flex; gap: 8px; }
.wke-note--rail { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--wke-line); }

/* Most common sound tags */
.wke-tagbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.wke-tagbar {
  display: grid; grid-template-columns: 16px 64px minmax(0, 1fr) 52px; align-items: center; gap: 10px; width: 100%;
  min-height: 32px; padding: 0 6px; border-radius: 9px; font-size: 13px;
}
.wke-tagbar:hover { background: rgba(255, 255, 255, .04) !important; }
.wke-tagbar.is-on { background: rgba(124, 92, 255, .14) !important; }
.wke-tagbar-rank { color: var(--wke-faint); font-weight: 700; font-size: 12px; }
.wke-tagbar-name { font-weight: 700; color: #fff; text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wke-tagbar-track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.wke-tagbar-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7c5cff, #60a5fa); }
.wke-tagbar-count { text-align: right; color: var(--wke-muted); font-size: 12px; font-variant-numeric: tabular-nums; }

/* ── Drawer rail (laptop widths and below) ──────────────────────────── */
/* An inline rail below 1366px squeezes the page to ~3 cards a row; up to
   1599px a narrower rail leaves the page ~876px at 1440: five cards a row. */
@media (min-width: 1366px) and (max-width: 1599px) {
  .wke-layout { grid-template-columns: minmax(0, 1fr) 264px; gap: 16px; }
}
@media (max-width: 1365px) {
  .wke-layout { grid-template-columns: minmax(0, 1fr); }
  .wke-filters-btn { display: inline-flex; }
  .wke-rail {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 2400; width: min(360px, 92vw); overflow-y: auto;
    padding: 16px; gap: 14px; background: #0c0a18; border-left: 1px solid var(--wke-line-2);
    box-shadow: -24px 0 60px rgba(0, 0, 0, .55);
    transform: translateX(105%); visibility: hidden; transition: transform 240ms var(--wke-ease), visibility 0s linear 240ms;
  }
  .wke-root.is-rail-open .wke-rail { transform: none; visibility: visible; transition: transform 240ms var(--wke-ease); }
  .wke-rail-backdrop { position: fixed; inset: 0; z-index: 2390; background: rgba(3, 2, 10, .55); }
  .wke-rail-close { display: inline-grid; }
  .wke-railcard { box-shadow: none; }
}
@media (max-width: 1100px) {
  .wke-duo { grid-template-columns: minmax(0, 1fr); }
}
/* Short windows (1280x800 laptops): a tighter header and hero so the first
   row of drop cards shows above the player. */
@media (max-height: 820px) {
  .wke-head { margin-bottom: 8px; }
  .wke-h1 { font-size: 42px; }
  .wke-sub { font-size: 14.5px; margin-top: 4px; }
  .wke-navrow { margin-bottom: 10px; }
  .wke-hero { padding: 16px 24px; margin-bottom: 16px; }
  .wke-hero-title { font-size: 30px; }
  .wke-hero .wke-cta { height: 38px; }
  .wke-hero-art { max-width: 380px; }
  .wke-section-hd { margin-bottom: 12px; }
}
@media (max-width: 760px) {
  .wke-h1 { font-size: 42px; }
  .wke-sub { font-size: 14.5px; }
  .wke-rail { width: 100vw; border-left: 0; }
  .wke-packhead { grid-template-columns: minmax(0, 1fr); }
  .wke-packhead-art { max-width: 200px; }
  .wke-find { min-width: 0; width: 100%; }
  .wke-section-hd h2 { font-size: 19px; }
}
/* A narrow page column: the hero stacks, its boxes under the copy. */
@container wke-main (max-width: 560px) {
  .wke-hero { grid-template-columns: minmax(0, 1fr); padding: 22px 20px; }
  .wke-hero-art { justify-content: flex-start; width: min(100%, 380px); padding-left: 6px; }
}
/* Very narrow (the app's sidebar never collapses, so a phone-width window
   leaves the page little room): smaller type, the tabs on their own row. */
@container wke-main (max-width: 520px) {
  .wke-h1 { font-size: 40px; }
  .wke-hero { padding: 20px 18px; }
  .wke-hero-title { font-size: 26px; }
  .wke-packhead { grid-template-columns: minmax(0, 1fr); }
  .wke-navrow { flex-wrap: wrap; }
  .wke-tabs { order: 2; flex: 1 0 100%; }
  .wke-navrow .wke-scroll { display: none; }
}
@container wke-main (max-width: 320px) {
  .wke-h1 { font-size: 30px; }
  .wke-sub { display: none; }
  .wke-hero-title { font-size: 21px; }
  .wke-hero-desc { font-size: 13px; }
  .wke-hero-art { display: none; }
  .wke-cta { height: 40px; padding: 0 14px; font-size: 13px; }
  .wke-hero .wke-cta {
    width: 100%; height: auto; min-height: 40px; padding: 8px 12px; white-space: normal; justify-content: center; text-align: center;
  }
  .wke-filters-btn span { display: none; }
  /* A tiny cover: taller, so the badge and play don't touch; the preview time goes. */
  .wke-card-media { aspect-ratio: 4 / 3; }
  .wke-card-len { display: none; }
  .wke-badge { top: 6px; left: 6px; padding: 3px 6px; font-size: 9px; }
  .wke-card-play { width: 30px; height: 30px; left: 6px; bottom: 6px; }
}
