/* ==========================================================================
   ZYNOXIFY MUSIC — YOUTUBE MUSIC INSPIRED TACTILE CLAYMORPHISM DESIGN SYSTEM
   Scoped strictly under .zyx-* classes so global styles are never affected.
   ========================================================================== */

html.zyx-html,
body.zyx-body {
  margin: 0;
  height: 100%;
  background: #0d0f14;
  color: #f4f6fb;
}

body.zyx-body {
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
  user-select: none;
  -webkit-user-select: none;
}

.zyx-root {
  /* Core Palette Tokens */
  --zx-bg: #0d0f14;
  --zx-bg-deep: #08090d;
  --zx-clay: #181c26;
  --zx-clay-hi: #222736;
  --zx-clay-lo: #12151d;
  --zx-well: #0e1017;
  --zx-edge: rgba(255, 255, 255, 0.08);
  --zx-edge-lo: #07080c;

  /* Typography & Accent Tokens (YouTube Music Crimson-Coral Clay) */
  --zx-text: #f4f6fb;
  --zx-text-soft: #cfd5e6;
  --zx-muted: #8e96aa;
  --zx-accent: #ff2e55;
  --zx-accent-hi: #ff637d;
  --zx-accent-dim: #c4193b;
  --zx-accent-ink: #ffffff;
  --zx-mint: #2ee59d;
  --zx-danger: #ff6b6b;

  /* Sculpted Clay Shadow System */
  --zx-shadow-panel:
    inset 0 2px 3px rgba(255, 255, 255, 0.09),
    inset 0 -4px 6px rgba(0, 0, 0, 0.55),
    0 18px 38px rgba(0, 0, 0, 0.65),
    0 4px 10px rgba(0, 0, 0, 0.45);

  --zx-shadow-key:
    inset 0 2px 2px rgba(255, 255, 255, 0.13),
    inset 0 -3px 4px rgba(0, 0, 0, 0.5),
    0 5px 0 #090b10,
    0 10px 18px rgba(0, 0, 0, 0.55);

  --zx-shadow-key-pressed:
    inset 0 3px 6px rgba(0, 0, 0, 0.72),
    inset 0 -1px 2px rgba(255, 255, 255, 0.05),
    0 1px 0 #090b10,
    0 3px 6px rgba(0, 0, 0, 0.4);

  --zx-shadow-play:
    inset 0 3px 5px rgba(255, 255, 255, 0.42),
    inset 0 -5px 8px rgba(110, 6, 28, 0.65),
    0 6px 0 #7a0f25,
    0 14px 28px rgba(255, 46, 85, 0.42),
    0 6px 14px rgba(0, 0, 0, 0.6);

  --zx-shadow-play-pressed:
    inset 0 4px 8px rgba(90, 4, 22, 0.75),
    inset 0 1px 2px rgba(255, 255, 255, 0.2),
    0 1px 0 #7a0f25,
    0 5px 12px rgba(255, 46, 85, 0.28);

  --zx-shadow-well:
    inset 0 3px 6px rgba(0, 0, 0, 0.78),
    inset 0 1px 2px rgba(0, 0, 0, 0.6),
    0 1px 0 rgba(255, 255, 255, 0.07);

  /* Motion & Geometry */
  --zx-dur-fast: 130ms;
  --zx-dur: 250ms;
  --zx-dur-slow: 480ms;
  --zx-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --zx-ease-press: cubic-bezier(0.32, 0, 0.2, 1);
  --zx-tilt-x: 0deg;
  --zx-tilt-y: 0deg;
  --zx-gx: 0;
  --zx-glow-hue: 348;

  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  isolation: isolate;
  overflow: hidden;
  padding:
    max(8px, env(safe-area-inset-top))
    max(12px, env(safe-area-inset-right))
    max(10px, env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
  background: var(--zx-bg);
  color: var(--zx-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.zyx-root *,
.zyx-root *::before,
.zyx-root *::after {
  box-sizing: border-box;
}

.zyx-root button,
.zyx-root input {
  font: inherit;
  color: inherit;
}

.zyx-root :focus-visible {
  outline: 2px solid var(--zx-accent-hi);
  outline-offset: 3px;
}

.zyx-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Ambient Dynamic Backdrop */
.zyx-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90% 55% at 50% 24%, hsla(var(--zx-glow-hue), 78%, 42%, 0.22), transparent 70%),
    radial-gradient(80% 50% at 85% 80%, rgba(255, 46, 85, 0.1), transparent 65%),
    linear-gradient(180deg, rgba(13, 15, 20, 0.74) 0%, rgba(13, 15, 20, 0.94) 65%, #0a0c10 100%),
    url(/assets/zynoxify/hero.png) center/cover no-repeat;
  transition: background 600ms ease;
}

/* Vector Icons */
.zyx-ic {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  flex-shrink: 0;
}

.zyx-ic--solid {
  fill: currentColor;
  stroke: none;
}

/* ==========================================================================
   HEADER & MODE SWITCHER (SONG / VIDEO)
   ========================================================================== */
.zyx-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 6px 4px;
}

.zyx-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.zyx-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 32% 28%, var(--zx-accent-hi), var(--zx-accent) 60%, var(--zx-accent-dim));
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.45),
    inset 0 -3px 4px rgba(0, 0, 0, 0.4),
    0 5px 12px rgba(255, 46, 85, 0.35);
  flex-shrink: 0;
}

.zyx-logo-core {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
}

.zyx-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  min-width: 0;
}

.zyx-brand-text b {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--zx-text);
}

.zyx-brand-text small {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--zx-muted);
}

/* YouTube Music style Song / Video Top Switcher */
.zyx-mode-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: var(--zx-well);
  box-shadow: var(--zx-shadow-well);
  gap: 2px;
}

.zyx-mode-pill[hidden] {
  display: none;
}

.zyx-mode-btn {
  appearance: none;
  border: 0;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  background: transparent;
  color: var(--zx-muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--zx-dur-fast) var(--zx-ease);
}

.zyx-mode-btn[aria-pressed="true"] {
  background: linear-gradient(180deg, var(--zx-clay-hi), var(--zx-clay));
  color: var(--zx-text);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.16),
    0 3px 8px rgba(0, 0, 0, 0.5);
}

/* Status Pill */
.zyx-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--zx-clay-hi), var(--zx-clay));
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.1),
    inset 0 -2px 3px rgba(0, 0, 0, 0.45),
    0 4px 10px rgba(0, 0, 0, 0.4);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  color: var(--zx-text-soft);
  white-space: nowrap;
}

.zyx-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #525866;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
}

.zyx-led[data-state="ok"] {
  background: var(--zx-mint);
  box-shadow: 0 0 8px rgba(46, 229, 157, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   3D CLAY ARTWORK STAGE & COMPLIANT YOUTUBE EMBED STAGE
   ========================================================================== */
.zyx-stage {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 6px 4px;
  perspective: 1100px;
  perspective-origin: 50% 35%;
  touch-action: pan-y;
}

.zyx-scene {
  --zx-size: min(64vw, 31vh, 340px);
  position: relative;
  width: var(--zx-size);
  height: var(--zx-size);
  transform-style: preserve-3d;
  transform: rotateX(calc(8deg + var(--zx-tilt-x))) rotateY(calc(-7deg + var(--zx-tilt-y)));
  transition: transform var(--zx-dur-slow) var(--zx-ease), width var(--zx-dur) var(--zx-ease), height var(--zx-dur) var(--zx-ease);
  flex-shrink: 0;
}

.zyx-scene.is-dragging {
  transition: none;
}

@supports (container-type: size) {
  .zyx-stage {
    container-type: size;
  }
  .zyx-scene {
    --zx-size: min(66cqw, 78cqh, 350px);
  }
}

/* Clay Base Pedestal Plate */
.zyx-plate {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 6%;
  bottom: -6%;
  border-radius: 30px;
  transform: translate3d(0, 0, -28px);
  background: linear-gradient(145deg, #252b3b, #141720);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.12),
    inset 0 -6px 10px rgba(0, 0, 0, 0.65),
    0 28px 50px rgba(0, 0, 0, 0.65);
}

/* Sculpted Vinyl Disc */
.zyx-record {
  position: absolute;
  top: 7%;
  left: 9%;
  width: 84%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate3d(0, 0, 8px);
  transition: transform var(--zx-dur-slow) var(--zx-ease);
}

.zyx-record::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(
    from 25deg,
    rgba(255, 255, 255, 0.1),
    transparent 22%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 72%,
    rgba(255, 255, 255, 0.1)
  );
}

.zyx-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, #0d0f14 0 2px, #191d28 2px 3.5px);
  box-shadow:
    inset 0 0 0 3px #07080c,
    0 14px 28px rgba(0, 0, 0, 0.6);
}

.zyx-disc-label {
  position: absolute;
  inset: 33%;
  border-radius: 50%;
  background: radial-gradient(circle, #0d0f14 0 18%, var(--zx-accent) 20% 65%, var(--zx-accent-dim) 100%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.35);
}

.zyx-root.is-playing .zyx-record {
  transform: translate3d(20%, 0, 8px);
}

.zyx-root.is-playing .zyx-disc {
  animation: zyx-spin 3.6s linear infinite;
}

@keyframes zyx-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Soft Clay Album Sleeve */
.zyx-sleeve {
  position: absolute;
  top: 0;
  left: 0;
  width: 86%;
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  transform: translate3d(0, 0, 48px);
  transition: transform var(--zx-dur-slow) var(--zx-ease), box-shadow var(--zx-dur) var(--zx-ease);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.25),
    inset 0 -4px 6px rgba(0, 0, 0, 0.5),
    0 24px 44px rgba(0, 0, 0, 0.65);
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.zyx-root.is-playing .zyx-sleeve {
  transform: translate3d(-6%, 0, 52px);
}

.zyx-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 28% 24%, var(--zx-art-a, #332640), var(--zx-art-b, #12151f) 78%);
}

.zyx-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.18), inset 0 -4px 8px rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.zyx-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.zyx-mono {
  font-weight: 850;
  font-size: calc(var(--zx-size) * 0.3);
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

.zyx-art-idx {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 3;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(13, 15, 20, 0.68);
  backdrop-filter: blur(4px);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(244, 246, 251, 0.9);
}

.zyx-gloss {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: screen;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.18), transparent 42%);
  transform: translateX(calc(var(--zx-gx) * 1%));
}

/* Official YouTube Embedded Player — Strictly Compliant (>= 200x200, unobstructed, interactive) */
.zyx-embed {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  padding: 4px;
  background: linear-gradient(145deg, var(--zx-clay-hi), var(--zx-clay-lo));
  box-shadow: var(--zx-shadow-panel);
  flex-shrink: 0;
  z-index: 5;
}

.zyx-embed[hidden] {
  display: none !important;
}

.zyx-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 16px;
  display: block;
  pointer-events: auto; /* Required so YouTube controls/links remain interactive */
  background: #000;
}

/* Cover Mode with active YouTube Track: Side-by-side unobstructed 200x200 compliant player + Clay Cover */
.zyx-root.is-yt:not(.is-video) .zyx-stage {
  justify-content: center;
  gap: 12px;
}

.zyx-root.is-yt:not(.is-video) .zyx-scene {
  --zx-size: min(40vw, 24vh, 210px);
}

@supports (container-type: size) {
  .zyx-root.is-yt:not(.is-video) .zyx-scene {
    --zx-size: min(42cqw, 68cqh, 220px);
  }
}

.zyx-root.is-yt:not(.is-video) .zyx-embed {
  width: 208px;
  height: 208px; /* Inner iframe is 200x200 minimum compliant viewport */
}

/* Video Mode: Full 16:9 theatre stage */
.zyx-root.is-video .zyx-scene {
  display: none;
}

.zyx-root.is-video .zyx-embed {
  width: min(96%, 680px);
  aspect-ratio: 16 / 9;
  max-height: 100%;
  min-width: 208px;
  min-height: 208px;
}

/* ==========================================================================
   NOW PLAYING TRACK METADATA
   ========================================================================== */
.zyx-info {
  padding: 2px 16px 8px;
  min-width: 0;
  text-align: center;
}

.zyx-source {
  display: inline-block;
  margin: 0 0 4px;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--zx-accent-hi);
}

.zyx-title {
  margin: 2px 0 0;
  font-size: clamp(18px, 5vw, 25px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--zx-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.zyx-artist {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--zx-muted);
  min-height: 1.25em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   SCULPTED CLAY CONTROL DECK
   ========================================================================== */
.zyx-deck {
  margin: 0 4px 8px;
  padding: 12px 16px 14px;
  border-radius: 28px;
  background: linear-gradient(165deg, var(--zx-clay-hi), var(--zx-clay) 55%, var(--zx-clay-lo));
  box-shadow: var(--zx-shadow-panel);
  border: 1px solid var(--zx-edge);
}

/* Seekbar & Recessed Clay Track Well */
.zyx-seekrow {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.zyx-time {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--zx-muted);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.zyx-range-well {
  position: relative;
  display: flex;
  align-items: center;
  height: 28px;
  padding: 0 4px;
}

.zyx-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 36px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  --zx-fill: 0%;
}

.zyx-range::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--zx-accent) 0%,
    var(--zx-accent-hi) var(--zx-fill),
    var(--zx-well) var(--zx-fill)
  );
  box-shadow: var(--zx-shadow-well);
}

.zyx-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -6px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #dfe4f2 65%, #9aa3b8);
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.9),
    0 3px 8px rgba(0, 0, 0, 0.65),
    0 0 0 3px rgba(255, 46, 85, 0.25);
  transition: transform var(--zx-dur-fast) var(--zx-ease);
}

.zyx-range:active::-webkit-slider-thumb {
  transform: scale(1.14);
}

.zyx-range::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: var(--zx-well);
  box-shadow: var(--zx-shadow-well);
}

.zyx-range::-moz-range-progress {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--zx-accent), var(--zx-accent-hi));
}

.zyx-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #dfe4f2 65%, #9aa3b8);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.65);
}

.zyx-range:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Primary Transport Row */
.zyx-transport {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 2px 12px;
  max-width: 420px;
  margin: 0 auto;
}

/* Tactile Clay Keys */
.zyx-key {
  position: relative;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: var(--zx-text);
  background: linear-gradient(165deg, #262c3d, #191d28);
  box-shadow: var(--zx-shadow-key);
  transform: translateY(0);
  transition:
    transform var(--zx-dur-fast) var(--zx-ease-press),
    box-shadow var(--zx-dur-fast) var(--zx-ease-press),
    background var(--zx-dur-fast),
    color var(--zx-dur-fast);
}

.zyx-key--sec {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  color: var(--zx-text-soft);
}

.zyx-key:hover:not(:disabled) {
  color: #fff;
}

.zyx-key:active:not(:disabled),
.zyx-key[aria-pressed="true"] {
  transform: translateY(3px);
  background: linear-gradient(165deg, #151822, #1c202d);
  box-shadow: var(--zx-shadow-key-pressed);
}

.zyx-key[aria-pressed="true"] {
  color: var(--zx-accent-hi);
  border-color: rgba(255, 99, 125, 0.28);
}

.zyx-key[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 3px;
  border-radius: 99px;
  background: var(--zx-accent-hi);
  box-shadow: 0 0 6px var(--zx-accent);
}

.zyx-key[aria-pressed="true"] .zyx-ic--fill {
  fill: currentColor;
}

.zyx-key--sm {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.zyx-key--pill {
  width: auto;
  padding: 0 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.zyx-key[hidden] {
  display: none !important;
}

/* Main Play/Pause Sculpted Anchor Control */
.zyx-key--play {
  width: 72px;
  height: 72px;
  border-radius: 26px;
  color: var(--zx-accent-ink);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: radial-gradient(circle at 32% 24%, var(--zx-accent-hi), var(--zx-accent) 56%, var(--zx-accent-dim));
  box-shadow: var(--zx-shadow-play);
}

.zyx-play-well {
  width: 52px;
  height: 52px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 65% 70%, rgba(255, 255, 255, 0.14), rgba(0, 0, 0, 0.16));
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.25),
    inset 0 -1px 2px rgba(255, 255, 255, 0.25);
}

.zyx-key--play:active:not(:disabled) {
  transform: translateY(4px) scale(0.98);
  background: radial-gradient(circle at 40% 35%, var(--zx-accent), var(--zx-accent-dim));
  box-shadow: var(--zx-shadow-play-pressed);
}

.zyx-key--play .zyx-ic {
  width: 30px;
  height: 30px;
}

.zyx-key:disabled {
  opacity: 0.4;
  cursor: default;
}

.zyx-badge {
  position: absolute;
  right: 6px;
  top: 5px;
  font-size: 9px;
  font-weight: 850;
  color: var(--zx-accent-hi);
}

/* Auxiliary Controls Row (Favourites, Video Mode, Volume) */
.zyx-aux {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 2px;
}

.zyx-aux-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zyx-vol {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 220px;
}

.zyx-range-well--vol {
  flex: 1;
}

/* ==========================================================================
   BOTTOM NAVIGATION BAR (MOBILE)
   ========================================================================== */
.zyx-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 4px 2px;
}

.zyx-navbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 18px;
  border: 1px solid var(--zx-edge);
  background: linear-gradient(165deg, var(--zx-clay-hi), var(--zx-clay));
  box-shadow: var(--zx-shadow-key);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zx-text-soft);
  cursor: pointer;
  transition: transform var(--zx-dur-fast) var(--zx-ease-press), box-shadow var(--zx-dur-fast), color var(--zx-dur-fast);
}

.zyx-navbtn:active,
.zyx-navbtn[aria-expanded="true"] {
  transform: translateY(3px);
  box-shadow: var(--zx-shadow-key-pressed);
  color: var(--zx-accent-hi);
}

.zyx-navbtn .zyx-ic {
  width: 19px;
  height: 19px;
}

/* ==========================================================================
   CLAY SHEET DRAWER (LIBRARY, DISCOVER, UP NEXT)
   ========================================================================== */
.zyx-scrim {
  position: absolute;
  inset: 0;
  z-index: 15;
  background: rgba(6, 7, 11, 0.68);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--zx-dur) var(--zx-ease), visibility 0s linear var(--zx-dur);
}

.zyx-root.is-sheet-open .zyx-scrim {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.zyx-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  height: min(78vh, 700px);
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #212636 0%, #161924 100%);
  border-radius: 30px 30px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.12),
    0 -24px 60px rgba(0, 0, 0, 0.75);
  transform: translateY(104%);
  visibility: hidden;
  transition: transform var(--zx-dur-slow) var(--zx-ease), visibility 0s linear var(--zx-dur-slow);
}

@supports (height: 1dvh) {
  .zyx-sheet {
    height: min(78dvh, 700px);
  }
}

.zyx-root.is-sheet-open .zyx-sheet {
  transform: translateY(0);
  visibility: visible;
  transition-delay: 0s;
}

.zyx-sheet-grab {
  display: flex;
  justify-content: center;
  padding: 8px 0 2px;
}

.zyx-sheet-grab span {
  width: 42px;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.zyx-sheet-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 8px;
}

/* Segmented Clay Tabs */
.zyx-tabs {
  display: flex;
  gap: 6px;
  flex: 1;
  min-width: 0;
  padding: 4px;
  border-radius: 18px;
  background: var(--zx-well);
  box-shadow: var(--zx-shadow-well);
}

.zyx-tab {
  flex: 1;
  min-height: 40px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--zx-muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--zx-dur-fast) var(--zx-ease);
}

.zyx-tab[aria-selected="true"] {
  color: var(--zx-text);
  background: linear-gradient(165deg, var(--zx-clay-hi), var(--zx-clay));
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.14),
    0 4px 10px rgba(0, 0, 0, 0.45);
}

.zyx-icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--zx-edge);
  border-radius: 14px;
  background: linear-gradient(165deg, var(--zx-clay-hi), var(--zx-clay));
  box-shadow: var(--zx-shadow-key);
  color: var(--zx-text-soft);
  cursor: pointer;
  transition: transform var(--zx-dur-fast), box-shadow var(--zx-dur-fast);
}

.zyx-icon-btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: var(--zx-shadow-key-pressed);
}

.zyx-icon-btn:disabled {
  opacity: 0.32;
  cursor: default;
}

.zyx-pane {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 4px 16px 0;
}

.zyx-pane[hidden] {
  display: none;
}

.zyx-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding-bottom: 18px;
  -webkit-overflow-scrolling: touch;
}

.zyx-list {
  list-style: none;
  margin: 0;
  padding: 2px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Section Headers */
.zyx-plhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 2px 0 10px;
}

.zyx-plhead h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--zx-text);
}

.zyx-plsub {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--zx-muted);
}

.zyx-count-pill {
  padding: 5px 11px;
  border-radius: 99px;
  background: var(--zx-well);
  box-shadow: var(--zx-shadow-well);
  font-size: 11px;
  font-weight: 700;
  color: var(--zx-accent-hi);
  letter-spacing: 0.05em;
}

/* Recessed Clay Search Input */
.zyx-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.zyx-search-ic {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--zx-muted);
  pointer-events: none;
}

.zyx-field {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 42px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--zx-well);
  box-shadow: var(--zx-shadow-well);
  font-size: 14px;
  color: var(--zx-text);
  outline-offset: 2px;
}

.zyx-field::placeholder {
  color: var(--zx-muted);
}

/* Filter Pill Segments */
.zyx-seg {
  display: flex;
  gap: 8px;
  margin: 10px 0;
  padding: 4px;
  border-radius: 16px;
  border: 0;
  background: var(--zx-well);
  box-shadow: var(--zx-shadow-well);
  min-width: 0;
}

.zyx-seg label {
  flex: 1;
  position: relative;
}

.zyx-seg input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.zyx-seg span {
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: 12px;
  background: transparent;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--zx-muted);
  transition: all var(--zx-dur-fast) var(--zx-ease);
}

.zyx-seg input:checked + span {
  background: linear-gradient(165deg, var(--zx-accent-hi), var(--zx-accent));
  color: var(--zx-accent-ink);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.35),
    0 4px 10px rgba(255, 46, 85, 0.35);
}

.zyx-seg input:focus-visible + span {
  outline: 2px solid var(--zx-accent-hi);
  outline-offset: 2px;
}

/* ==========================================================================
   SCULPTED CLAY TRACK ROWS & ONLINE CARDS
   ========================================================================== */
.zyx-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(34, 39, 54, 0.72), rgba(22, 25, 36, 0.72));
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.07),
    0 4px 10px rgba(0, 0, 0, 0.3);
  text-align: left;
  cursor: pointer;
  transition: transform var(--zx-dur-fast), background var(--zx-dur-fast), box-shadow var(--zx-dur-fast);
}

.zyx-row:hover {
  background: linear-gradient(165deg, rgba(42, 48, 66, 0.9), rgba(26, 30, 44, 0.9));
}

.zyx-row:active {
  transform: translateY(2px);
}

.zyx-row[aria-current="true"] {
  background: linear-gradient(165deg, rgba(255, 46, 85, 0.2), rgba(30, 24, 38, 0.92));
  border-color: rgba(255, 99, 125, 0.4);
  box-shadow:
    inset 3px 0 0 var(--zx-accent),
    inset 0 1px 2px rgba(255, 255, 255, 0.12),
    0 6px 14px rgba(0, 0, 0, 0.45);
}

/* Miniature Clay Thumb Badge inside Library/Queue Row */
.zyx-row-n {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 25%, var(--zx-row-hue, #2b3247), #131620);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.16),
    inset 0 -2px 3px rgba(0, 0, 0, 0.5),
    0 3px 6px rgba(0, 0, 0, 0.35);
  font-size: 11px;
  font-weight: 800;
  color: var(--zx-text-soft);
  font-variant-numeric: tabular-nums;
}

.zyx-row[aria-current="true"] .zyx-row-n {
  background: radial-gradient(circle at 30% 25%, var(--zx-accent-hi), var(--zx-accent));
  color: #fff;
}

.zyx-row-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.zyx-row-t {
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.28;
  color: var(--zx-text);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}

.zyx-row-sub {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--zx-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zyx-row-m {
  color: var(--zx-accent-hi);
  display: grid;
  place-items: center;
}

.zyx-row-m .zyx-ic {
  width: 18px;
  height: 18px;
}

/* Queue Row & Reorder Tools */
.zyx-qrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
}

.zyx-qrow .zyx-row {
  grid-template-columns: 40px minmax(0, 1fr);
}

.zyx-qtools {
  display: flex;
  gap: 4px;
}

.zyx-qtools .zyx-icon-btn {
  width: 38px;
  height: 42px;
  border-radius: 12px;
}

/* State Feedback Boxes */
.zyx-state {
  padding: 18px 16px;
  border-radius: 20px;
  border: 1px solid var(--zx-edge);
  background: var(--zx-well);
  box-shadow: var(--zx-shadow-well);
  color: var(--zx-muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 8px 0;
}

.zyx-state strong {
  display: block;
  margin-bottom: 4px;
  color: var(--zx-text);
  font-size: 14px;
  font-weight: 750;
}

.zyx-state--err strong {
  color: var(--zx-danger);
}

.zyx-disc-status {
  font-size: 12px;
  font-weight: 650;
  color: var(--zx-accent-hi);
  margin: 4px 2px;
}

/* Clay Action Buttons */
.zyx-btn,
a.zyx-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--zx-edge);
  background: linear-gradient(165deg, var(--zx-clay-hi), var(--zx-clay));
  box-shadow: var(--zx-shadow-key);
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--zx-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--zx-dur-fast), box-shadow var(--zx-dur-fast);
}

.zyx-btn:active,
a.zyx-btn:active {
  transform: translateY(2px);
  box-shadow: var(--zx-shadow-key-pressed);
}

.zyx-btn--accent,
a.zyx-btn--accent {
  background: linear-gradient(165deg, var(--zx-accent-hi), var(--zx-accent));
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--zx-accent-ink);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.35),
    0 4px 0 #7a0f25,
    0 8px 16px rgba(255, 46, 85, 0.3);
}

.zyx-btn .zyx-ic {
  width: 15px;
  height: 15px;
}

.zyx-state .zyx-btn {
  margin-top: 12px;
}

/* Online Search Result Clay Cards */
.zyx-result {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 20px;
  border: 1px solid var(--zx-edge);
  background: linear-gradient(165deg, var(--zx-clay-hi), var(--zx-clay));
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.09),
    0 8px 18px rgba(0, 0, 0, 0.4);
}

.zyx-result.is-selected {
  border-color: rgba(255, 99, 125, 0.45);
  box-shadow:
    inset 3px 0 0 var(--zx-accent),
    0 8px 20px rgba(0, 0, 0, 0.5);
}

.zyx-result-art {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--zx-well);
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}

.zyx-result-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--zx-text);
  overflow-wrap: anywhere;
}

.zyx-result-by {
  margin: 4px 0 0;
  font-size: 11.5px;
  color: var(--zx-muted);
  overflow-wrap: anywhere;
}

.zyx-result-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.zyx-notice {
  margin: 8px 2px 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--zx-muted);
}

/* ==========================================================================
   RESPONSIVE ADAPTATIONS: COMPACT LANDSCAPE & DESKTOP SPLIT VIEW
   ========================================================================== */
@media (max-height: 540px) and (orientation: landscape) {
  .zyx-root {
    grid-template-columns: minmax(220px, 42%) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    column-gap: 12px;
  }
  .zyx-head {
    grid-column: 1 / -1;
    padding: 2px 6px;
  }
  .zyx-stage {
    grid-column: 1;
    grid-row: 2 / 4;
  }
  .zyx-info {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    text-align: left;
    padding: 0 8px 4px;
  }
  .zyx-deck {
    grid-column: 2;
    grid-row: 3;
    padding: 8px 12px 10px;
    margin-bottom: 4px;
  }
  .zyx-nav {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .zyx-root {
    grid-template-columns: minmax(0, 1fr) 430px;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    column-gap: 20px;
    padding: 16px 24px;
  }
  .zyx-head {
    grid-column: 1 / -1;
    padding: 4px 8px 10px;
  }
  .zyx-stage,
  .zyx-info,
  .zyx-deck {
    grid-column: 1;
  }
  .zyx-info {
    width: min(100%, 580px);
    justify-self: center;
  }
  .zyx-deck {
    width: min(100%, 580px);
    justify-self: center;
    margin-bottom: 8px;
  }
  .zyx-scene {
    --zx-size: min(44vw, 48vh, 420px);
  }
  @supports (container-type: size) {
    .zyx-scene {
      --zx-size: min(58cqw, 74cqh, 420px);
    }
  }
  .zyx-root.is-yt:not(.is-video) .zyx-scene {
    --zx-size: min(38cqw, 68cqh, 310px);
  }
  .zyx-nav,
  .zyx-scrim,
  .zyx-close,
  .zyx-sheet-grab {
    display: none;
  }
  .zyx-sheet {
    position: static;
    grid-column: 2;
    grid-row: 2 / 5;
    height: auto;
    border-radius: 28px;
    transform: none;
    visibility: visible;
    padding-bottom: 8px;
    border: 1px solid var(--zx-edge);
    box-shadow: var(--zx-shadow-panel);
  }
}

@media (prefers-reduced-motion: reduce) {
  .zyx-root *,
  .zyx-root *::before,
  .zyx-root *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .zyx-scene {
    transform: none;
  }
}


/* ZYX-MOBILE-HOME: claymorphism-first mobile music experience */

@media (max-width: 959px) {
  .zyx-root {
    display: flex;
    flex-direction: column;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    gap: 0;
    padding: max(7px, env(safe-area-inset-top))
             max(12px, env(safe-area-inset-right))
             max(5px, env(safe-area-inset-bottom))
             max(12px, env(safe-area-inset-left));
  }

  .zyx-head {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    min-height: 61px;
    gap: 8px;
    padding: 5px 1px 12px;
  }

  .zyx-brand { flex: 0 1 auto; min-width: 0; }
  .zyx-brand b { font-size: 16px; letter-spacing: .20em; }
  .zyx-brand small { font-size: 9px; letter-spacing: .16em; }
  .zyx-logo-mark { flex: 0 0 auto; }

  .zyx-chip {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 124px;
    padding: 7px 9px;
    gap: 6px;
    font-size: 9px;
    letter-spacing: .025em;
  }
  .zyx-chip span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .zyx-mode-pill { flex: 0 0 auto; }

  .zyx-home {
    position: relative;
    z-index: 1;
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0 22px;
  }
  .zyx-home::-webkit-scrollbar,
  .zyx-home-pager::-webkit-scrollbar,
  .zyx-mix-rail::-webkit-scrollbar { display: none; }

  .zyx-home-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 2px 15px;
  }
  .zyx-home-eyebrow {
    margin: 0 0 7px;
    color: var(--zx-accent-hi);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .19em;
    text-transform: uppercase;
  }
  .zyx-home-heading {
    margin: 0;
    max-width: 270px;
    font-size: clamp(25px, 7vw, 34px);
    font-weight: 850;
    letter-spacing: -.055em;
    line-height: 1.04;
  }
  .zyx-home-heading span { color: var(--zx-accent-hi); }
  .zyx-home-subtitle {
    margin: 7px 0 0;
    color: var(--zx-muted);
    font-size: 11px;
    line-height: 1.4;
  }

  .zyx-home-shuffle {
    position: relative;
    flex: 0 0 51px;
    width: 51px;
    height: 51px;
    display: grid;
    place-items: center;
    border: 1px solid var(--zx-edge);
    border-radius: 18px;
    color: var(--zx-text);
    background: linear-gradient(145deg, var(--zx-clay-hi), var(--zx-clay-lo));
    box-shadow: var(--zx-shadow-key);
    cursor: pointer;
    transition: transform var(--zx-dur-fast), box-shadow var(--zx-dur-fast);
  }
  .zyx-home-shuffle:active {
    transform: translateY(3px);
    box-shadow: var(--zx-shadow-key-pressed);
  }
  .zyx-home-shuffle .zyx-ic { width: 23px; height: 23px; }

  .zyx-mood-rail {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 15px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .zyx-mood {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--zx-edge);
    border-radius: 13px;
    background: linear-gradient(145deg, var(--zx-clay-hi), var(--zx-clay));
    color: var(--zx-text-soft);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.07), 0 3px 6px rgba(0,0,0,.23);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
  }
  .zyx-mood.is-active {
    color: var(--zx-accent-ink);
    background: linear-gradient(145deg, var(--zx-accent-hi), var(--zx-accent));
    border-color: transparent;
    box-shadow: inset 0 1px 1px rgba(255,255,255,.3), 0 4px 10px rgba(255,46,85,.19);
  }

  .zyx-home-section { margin: 0 0 23px; }
  .zyx-home-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 2px 12px;
  }
  .zyx-home-section-head h2 {
    margin: 0;
    color: var(--zx-text);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.025em;
  }
  .zyx-home-section-head p {
    margin: 4px 0 0;
    color: var(--zx-muted);
    font-size: 10px;
  }
  .zyx-home-page-tools { display: flex; align-items: center; gap: 6px; }
  .zyx-home-page-count {
    min-width: 34px;
    color: var(--zx-muted);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    text-align: center;
  }
  .zyx-home-page-arrow {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    padding: 0;
    border: 1px solid var(--zx-edge);
    border-radius: 11px;
    background: var(--zx-clay);
    box-shadow: var(--zx-shadow-key);
    cursor: pointer;
  }
  .zyx-home-page-arrow:active { transform: translateY(2px); }
  .zyx-home-page-arrow .zyx-ic { width: 17px; height: 17px; }

  .zyx-home-pager {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .zyx-home-pages { display: flex; align-items: stretch; }
  .zyx-home-page {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 15px 9px;
    padding: 2px 2px 7px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .zyx-home-track {
    display: flex;
    flex-direction: column;
    align-self: start;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--zx-text);
    text-align: left;
    cursor: pointer;
  }
  .zyx-home-cover {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 17px;
    color: rgba(255,255,255,.91);
    background:
      radial-gradient(circle at 24% 20%, hsla(var(--tile-hue), 87%, 76%, .50), transparent 48%),
      linear-gradient(145deg, hsl(var(--tile-hue), 48%, 31%), hsl(calc(var(--tile-hue) + 20), 33%, 11%));
    box-shadow:
      inset 0 2px 2px rgba(255,255,255,.17),
      inset 0 -7px 12px rgba(0,0,0,.33),
      0 5px 0 #090b10,
      0 8px 13px rgba(0,0,0,.28);
    transition: transform var(--zx-dur) var(--zx-ease), box-shadow var(--zx-dur);
  }
  .zyx-home-cover::before {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;
    pointer-events: none;
  }
  .zyx-home-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(255,255,255,.13), transparent 43%, rgba(0,0,0,.14));
    pointer-events: none;
  }
  .zyx-home-cover-initial {
    position: relative;
    z-index: 1;
    font-size: clamp(27px, 8vw, 38px);
    font-weight: 900;
    letter-spacing: -.07em;
    text-shadow: 0 3px 8px rgba(0,0,0,.35);
  }
  .zyx-home-cover-index {
    position: absolute;
    right: 8px;
    bottom: 7px;
    z-index: 1;
    color: rgba(255,255,255,.78);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
  }
  .zyx-home-track:active .zyx-home-cover {
    transform: translateY(3px) scale(.985);
    box-shadow: inset 0 3px 6px rgba(0,0,0,.35), 0 2px 0 #090b10;
  }
  .zyx-home-track.is-current .zyx-home-cover {
    border-color: var(--zx-accent-hi);
    box-shadow: inset 0 2px 3px rgba(255,255,255,.17), 0 0 0 2px rgba(255,99,125,.21), 0 7px 12px rgba(0,0,0,.35);
  }
  .zyx-home-track-title {
    display: -webkit-box;
    overflow: hidden;
    margin: 9px 1px 0;
    color: var(--zx-text);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.32;
    overflow-wrap: anywhere;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .zyx-home-track-artist {
    display: block;
    overflow: hidden;
    margin: 4px 1px 0;
    color: var(--zx-muted);
    font-size: 9px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .zyx-home-collection-rail,
  .zyx-mix-rail {
    display: flex;
    gap: 11px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
  }
  .zyx-home-collection {
    position: relative;
    display: flex;
    flex: 0 0 78%;
    min-width: 0;
    min-height: 108px;
    align-items: center;
    gap: 13px;
    padding: 13px;
    border: 1px solid var(--zx-edge);
    border-radius: 22px;
    color: var(--zx-text);
    text-align: left;
    background: linear-gradient(145deg, var(--zx-clay-hi), var(--zx-clay-lo));
    box-shadow: var(--zx-shadow-panel);
    cursor: pointer;
    scroll-snap-align: start;
  }
  .zyx-home-collection:active { transform: translateY(2px); }
  .zyx-home-collection-art {
    position: relative;
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 19px;
    border: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(145deg, var(--zx-accent-hi), var(--zx-accent-dim));
    box-shadow: inset 0 2px 3px rgba(255,255,255,.23), 0 5px 0 #090b10, 0 8px 12px rgba(0,0,0,.3);
  }
  .zyx-home-collection-art .zyx-ic { width: 30px; height: 30px; }
  .zyx-home-collection-copy { min-width: 0; }
  .zyx-home-collection-copy strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
  }
  .zyx-home-collection-copy small {
    display: block;
    margin-top: 5px;
    color: var(--zx-muted);
    font-size: 10px;
    line-height: 1.35;
  }
  .zyx-home-collection-tag {
    display: inline-block;
    margin-top: 8px;
    color: var(--zx-accent-hi);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  .zyx-player-view { display: none; }
  .zyx-root.is-player-open .zyx-home { display: none; }
  .zyx-root.is-player-open .zyx-player-view {
    position: absolute;
    inset: 0;
    z-index: 9;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(110px, 1fr) auto auto;
    gap: 0;
    overflow: hidden;
    padding: max(9px, env(safe-area-inset-top)) 13px max(10px, env(safe-area-inset-bottom));
    background: linear-gradient(155deg, #171923, var(--zx-bg) 60%, #130d14);
  }
  .zyx-player-head {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 0 8px;
  }
  .zyx-player-back,
  .zyx-player-queue {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--zx-edge);
    border-radius: 15px;
    background: linear-gradient(145deg, var(--zx-clay-hi), var(--zx-clay));
    box-shadow: var(--zx-shadow-key);
    cursor: pointer;
  }
  .zyx-player-back:active,
  .zyx-player-queue:active { transform: translateY(2px); }
  .zyx-player-label {
    min-width: 0;
    color: var(--zx-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
    text-align: center;
  }
  .zyx-root .zyx-player-view .zyx-stage {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
    width: 100%;
    overflow: visible;
  }
  .zyx-root .zyx-player-view .zyx-scene {
    --zx-size: min(68vw, 29vh, 330px);
  }
  .zyx-root .zyx-player-view .zyx-info {
    grid-column: 1;
    grid-row: 3;
    min-width: 0;
    padding: 6px 4px 12px;
  }
  .zyx-root .zyx-player-view .zyx-title {
    font-size: clamp(20px, 5.7vw, 26px);
    overflow-wrap: anywhere;
  }
  .zyx-root .zyx-player-view .zyx-artist { font-size: 12px; }
  .zyx-root .zyx-player-view .zyx-deck {
    grid-column: 1;
    grid-row: 4;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 9px 12px 13px;
    border-radius: 23px;
  }
  .zyx-root.is-player-open .zyx-mini,
  .zyx-root.is-player-open .zyx-nav { display: none; }

  .zyx-mini {
    position: relative;
    z-index: 4;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    min-width: 0;
    min-height: 66px;
    margin: 0 0 8px;
    padding: 8px 9px;
    border: 1px solid var(--zx-edge);
    border-radius: 19px;
    background: linear-gradient(145deg, #242836, #151821);
    box-shadow: var(--zx-shadow-panel);
  }
  .zyx-mini-main {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--zx-text);
    text-align: left;
    cursor: pointer;
  }
  .zyx-mini-cover {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, var(--zx-accent-hi), var(--zx-accent-dim));
    box-shadow: inset 0 1px 2px rgba(255,255,255,.22), 0 3px 0 #090b10;
    font-weight: 900;
    font-size: 20px;
  }
  .zyx-mini-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .zyx-mini-copy { display: block; flex: 1 1 auto; min-width: 0; }
  .zyx-mini-title {
    display: block;
    overflow: hidden;
    color: var(--zx-text);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .zyx-mini-artist {
    display: block;
    overflow: hidden;
    margin-top: 3px;
    color: var(--zx-muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .zyx-mini-control {
    display: grid;
    place-items: center;
    flex: 0 0 37px;
    width: 37px;
    height: 41px;
    border: 1px solid var(--zx-edge);
    border-radius: 13px;
    background: linear-gradient(145deg, var(--zx-clay-hi), var(--zx-clay));
    color: var(--zx-text);
    box-shadow: var(--zx-shadow-key);
    cursor: pointer;
  }
  .zyx-mini-control--play {
    color: var(--zx-accent-ink);
    border-color: rgba(255,255,255,.16);
    background: linear-gradient(145deg, var(--zx-accent-hi), var(--zx-accent-dim));
  }
  .zyx-mini-control:active { transform: translateY(2px); }
  .zyx-mini-control .zyx-ic { width: 19px; height: 19px; }

  .zyx-nav {
    position: relative;
    z-index: 4;
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 3px 0 2px;
  }
  .zyx-navbtn {
    display: flex;
    min-width: 0;
    min-height: 53px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 2px;
    border: 1px solid var(--zx-edge);
    border-radius: 17px;
    background: linear-gradient(145deg, var(--zx-clay-hi), var(--zx-clay-lo));
    color: var(--zx-muted);
    box-shadow: var(--zx-shadow-key);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .zyx-navbtn .zyx-ic { width: 19px; height: 19px; }
  .zyx-navbtn:active,
  .zyx-navbtn[aria-expanded="true"] {
    transform: translateY(2px);
    color: var(--zx-text);
    box-shadow: var(--zx-shadow-key-pressed);
  }
  .zyx-root.is-sheet-open .zyx-sheet {
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
    padding-top: max(7px, env(safe-area-inset-top));
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
  .zyx-sheet-grab { display: none; }
  .zyx-sheet-head { padding-top: 4px; }
  .zyx-pane { padding-top: 8px; }
  .zyx-root.is-player-open .zyx-scrim { z-index: 14; }
}

@media (min-width: 960px) {
  .zyx-home,
  .zyx-mini { display: none !important; }
  .zyx-player-view { display: contents; }
  .zyx-player-head { display: none !important; }
}


/* ZYX-MOBILE-PLAYER-FINISH */
@media (max-width: 959px) {
  .zyx-player-head-center {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }
  .zyx-player-head-center .zyx-mode-pill {
    max-width: 100%;
    margin: 0;
  }
  .zyx-player-head-center .zyx-mode-btn {
    min-height: 29px;
    padding: 5px 13px;
  }
  .zyx-home-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    min-height: 10px;
    padding: 2px 0;
  }
  .zyx-home-dot {
    display: block;
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    border-radius: 99px;
    background: var(--zx-clay-hi);
    transition: width var(--zx-dur), background var(--zx-dur);
  }
  .zyx-home-dot.is-active {
    width: 17px;
    flex-basis: 17px;
    background: var(--zx-accent);
    box-shadow: 0 0 9px rgba(255,46,85,.24);
  }
}

/* ZYX-ONLINE-HOME: actual online artwork and honest provider states */
@media (max-width: 959px) {
  .zyx-home-cover-img {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
  }
  .zyx-home-cover.has-art .zyx-home-cover-initial { display: none; }
  .zyx-home-cover-index { z-index: 2; text-shadow: 0 1px 5px rgba(0,0,0,.8); }
  .zyx-home-state {
    grid-column: 1 / -1;
    align-self: center;
    min-width: 0;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    border: 1px solid var(--zx-edge);
    border-radius: 23px;
    background: linear-gradient(145deg, var(--zx-clay-hi), var(--zx-clay-lo));
    box-shadow: var(--zx-shadow-panel);
  }
  .zyx-home-state strong { color: var(--zx-text); font-size: 15px; }
  .zyx-home-state p {
    margin: 8px 0 0;
    color: var(--zx-muted);
    font-size: 12px;
    line-height: 1.55;
  }
  .zyx-home-state .zyx-btn { margin-top: 14px; }
  .zyx-home-track.is-current .zyx-home-track-title { color: var(--zx-accent-hi); }
}

/* ZYX-YTM-PASS-1: YouTube Music structure - compact header, mini-player only when a track is chosen, nav active state */
@media (max-width: 959px) {
  .zyx-root:not(.has-track) .zyx-mini { display: none; }
  .zyx-head .zyx-brand { order: 1; }
  .zyx-head .zyx-chip { order: 2; margin-left: auto; }
  .zyx-head .zyx-home-shuffle { order: 3; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 15px; }
  .zyx-head .zyx-home-shuffle .zyx-ic { width: 20px; height: 20px; }
  .zyx-root.is-player-open .zyx-head .zyx-home-shuffle { display: none; }
  .zyx-home { padding-top: 0; }
  .zyx-navbtn[aria-expanded="true"],
  .zyx-root:not(.is-sheet-open) #zyx-home-btn {
    color: var(--zx-accent-hi);
    background: var(--zx-well);
    box-shadow: inset 0 3px 7px rgba(0, 0, 0, .6), inset 0 -1px 1px rgba(255, 255, 255, .07);
  }
}

/* ZYX-YTM-PASS-2: smooth Now Playing open/close, thumbnail crop, suggested searches, nav polish */
@keyframes zyx-player-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes zyx-player-down { from { transform: none; } to { transform: translateY(100%); } }
@keyframes zyx-rise { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }

@media (max-width: 959px) {
  .zyx-root.is-player-open:not(.is-player-closing) .zyx-player-view {
    animation: zyx-player-up .48s cubic-bezier(.16, .84, .24, 1) both;
  }
  .zyx-root.is-player-open.is-player-closing .zyx-player-view {
    animation: zyx-player-down .3s cubic-bezier(.4, 0, 1, 1) both;
  }
  .zyx-root.is-player-open:not(.is-player-closing) .zyx-player-view .zyx-stage {
    animation: zyx-rise .6s .12s cubic-bezier(.16, .84, .24, 1) both;
  }
  .zyx-root.is-player-open:not(.is-player-closing) .zyx-player-view .zyx-info {
    animation: zyx-rise .6s .2s cubic-bezier(.16, .84, .24, 1) both;
  }
  .zyx-root.is-player-open:not(.is-player-closing) .zyx-player-view .zyx-deck {
    animation: zyx-rise .6s .28s cubic-bezier(.16, .84, .24, 1) both;
  }

  .zyx-home {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16px);
    mask-image: linear-gradient(to bottom, transparent 0, #000 16px);
  }
  .zyx-root.has-track .zyx-home { padding-bottom: 104px; }

  .zyx-home-cover, .zyx-art, .zyx-mini-cover { overflow: hidden; }
  .zyx-home-cover-img, .zyx-art img, .zyx-mini-cover img {
    object-fit: cover !important;
    transform: scale(1.34) !important;
  }

  .zyx-navbtn span { font-size: 11px; letter-spacing: .1em; font-weight: 700; }

  .zyx-suggest[hidden] { display: none; }
  .zyx-suggest { padding: 4px 2px 16px; }
  .zyx-suggest-title {
    margin: 0 0 10px;
    color: var(--zx-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
  }
  .zyx-suggest-list { display: flex; flex-wrap: wrap; gap: 9px; }
  .zyx-suggest-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 15px;
    border: 1px solid var(--zx-edge);
    border-radius: 999px;
    color: var(--zx-text-soft);
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    background: linear-gradient(145deg, var(--zx-clay-hi), var(--zx-clay-lo));
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, .1),
      inset 0 -2px 3px rgba(0, 0, 0, .45),
      0 4px 0 #090b10,
      0 8px 14px rgba(0, 0, 0, .4);
    cursor: pointer;
    transition: transform var(--zx-dur-fast), box-shadow var(--zx-dur-fast);
  }
  .zyx-suggest-chip .zyx-ic { width: 16px; height: 16px; color: var(--zx-accent-hi); }
  .zyx-suggest-chip:active {
    transform: translateY(3px);
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, .65), 0 1px 0 #090b10;
  }
}

/* ZYX-YTM-PASS-3: Song mode keeps the official YouTube player visible (>= 200x200) beside a compact cover */
@media (max-width: 959px) {
  .zyx-root.is-yt:not(.is-video) .zyx-player-view .zyx-stage {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .zyx-root.is-yt:not(.is-video) .zyx-player-view .zyx-scene {
    --zx-size: clamp(100px, calc(100vw - 266px), 160px);
    flex: 0 0 auto;
  }
  .zyx-root.is-yt:not(.is-video) .zyx-player-view .zyx-embed {
    flex: 0 0 auto;
    width: 208px;
    height: 208px;
  }
}

/* ZYX-YTM-PASS-4: Song mode = cover above, official player strip below (200px minimum height kept visible) */
@media (max-width: 959px) {
  .zyx-root.is-yt:not(.is-video) .zyx-player-view .zyx-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
  }
  .zyx-root.is-yt:not(.is-video) .zyx-player-view .zyx-scene {
    --zx-size: clamp(96px, calc(100dvh - 640px), 170px);
    flex: 0 0 auto;
    margin: 0;
    justify-self: auto;
  }
  .zyx-root.is-yt:not(.is-video) .zyx-player-view .zyx-embed {
    flex: 0 0 auto;
    width: min(100%, 364px);
    height: 208px;
    aspect-ratio: auto;
  }
  @supports (container-type: size) {
    .zyx-root.is-yt:not(.is-video) .zyx-player-view .zyx-scene {
      --zx-size: clamp(96px, calc(100cqh - 232px), 170px);
    }
  }
  .zyx-root.is-video .zyx-player-view .zyx-embed {
    width: min(100%, 364px);
    height: 208px;
    aspect-ratio: auto;
  }
}

/* ZYX-YTM-PASS-5: Song mode = large cover with the official 200x200 player as a corner picture-in-picture tile */
@media (max-width: 959px) {
  .zyx-root.is-yt:not(.is-video) .zyx-player-view .zyx-stage {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    gap: 0;
    padding-left: 22px;
  }
  .zyx-root.is-yt:not(.is-video) .zyx-player-view .zyx-scene {
    --zx-size: min(58vw, 220px);
    flex: 0 0 auto;
    margin: 0;
  }
  .zyx-root.is-yt:not(.is-video) .zyx-player-view .zyx-embed {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 208px;
    height: 208px;
    aspect-ratio: auto;
    z-index: 6;
  }
  .zyx-root.is-yt:not(.is-video) .zyx-player-view .zyx-embed iframe {
    pointer-events: auto;
  }
}
@media (max-width: 959px) and (max-height: 760px) {
  .zyx-root.is-yt:not(.is-video) .zyx-player-view .zyx-scene { --zx-size: min(46vw, 160px); }
}

/* ZYX-YTM-PASS-6: tidy Song mode - smaller cover, tile lifted away from the title */
@media (max-width: 959px) {
  .zyx-root.is-yt:not(.is-video) .zyx-player-view .zyx-stage { padding-left: 16px; }
  .zyx-root.is-yt:not(.is-video) .zyx-player-view .zyx-scene { --zx-size: clamp(110px, calc(100vw - 252px), 176px); }
  .zyx-root.is-yt:not(.is-video) .zyx-player-view .zyx-embed {
    right: 6px;
    bottom: 14px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .6), var(--zx-shadow-panel);
  }
}

/* ZYX-YTM-PASS-7: mini-player progress, staggered Quick Picks, tap polish */
.zyx-root button { touch-action: manipulation; }

@media (max-width: 959px) {
  .zyx-mini-prog {
    position: absolute;
    left: 16px;
    bottom: 4px;
    height: 3px;
    max-width: calc(100% - 32px);
    border-radius: 3px;
    background: linear-gradient(90deg, var(--zx-accent), var(--zx-accent-hi));
    box-shadow: 0 0 8px rgba(255, 46, 85, .55);
    pointer-events: none;
    transition: width 1s linear;
  }
  .zyx-mini-main { transition: transform var(--zx-dur-fast); }
  .zyx-mini-main:active { transform: scale(.985); }

  .zyx-home-track { animation: zyx-rise .5s both cubic-bezier(.16, .84, .24, 1); }
  .zyx-home-page .zyx-home-track:nth-child(1) { animation-delay: 0ms; }
  .zyx-home-page .zyx-home-track:nth-child(2) { animation-delay: 40ms; }
  .zyx-home-page .zyx-home-track:nth-child(3) { animation-delay: 80ms; }
  .zyx-home-page .zyx-home-track:nth-child(4) { animation-delay: 120ms; }
  .zyx-home-page .zyx-home-track:nth-child(5) { animation-delay: 160ms; }
  .zyx-home-page .zyx-home-track:nth-child(6) { animation-delay: 200ms; }
  .zyx-home-page .zyx-home-track:nth-child(7) { animation-delay: 240ms; }
  .zyx-home-page .zyx-home-track:nth-child(8) { animation-delay: 280ms; }
  .zyx-home-page .zyx-home-track:nth-child(9) { animation-delay: 320ms; }
}

/* ZYX-YTM-PASS-8: original Zynoxify identity - logo, wordmark, ambient orbs, equalizer, ripple */
@keyframes zyx-logo-in { from { opacity: 0; transform: scale(.55) rotate(-14deg); } to { opacity: 1; transform: none; } }
@keyframes zyx-ring { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes zyx-logo-beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes zyx-sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes zyx-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes zyx-orb-a { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(14vw, 12vw, 0) scale(1.15); } }
@keyframes zyx-orb-b { from { transform: translate3d(0, 0, 0) scale(1.1); } to { transform: translate3d(-16vw, -8vw, 0) scale(.95); } }
@keyframes zyx-orb-c { from { transform: translate3d(0, 0, 0) scale(.95); } to { transform: translate3d(10vw, -14vw, 0) scale(1.12); } }
@keyframes zyx-breathe { 0%, 100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes zyx-eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
@keyframes zyx-rip { to { transform: scale(1); opacity: 0; } }

.zyx-brand { display: flex; align-items: center; gap: 11px; }
.zyx-brand-copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.zyx-logo {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)) drop-shadow(0 0 14px rgba(255, 46, 85, .3));
  animation: zyx-logo-in .8s cubic-bezier(.16, .84, .24, 1) both;
}
.zyx-logo svg { display: block; width: 100%; height: 100%; overflow: visible; }
.zyx-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 2px solid rgba(255, 99, 125, .75);
  opacity: 0;
  pointer-events: none;
}
.zyx-root.is-playing .zyx-logo::after { animation: zyx-ring 2s ease-out infinite; }
.zyx-root.is-playing .zyx-logo svg { animation: zyx-logo-beat 1.2s ease-in-out infinite; }
.zyx-wordmark {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1;
  background: linear-gradient(100deg, #f4f6fb 38%, #ff8fa5 50%, #c9b8ff 58%, #f4f6fb 70%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: zyx-sheen 2.2s .5s ease-out both;
}
.zyx-greet {
  color: var(--zx-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  animation: zyx-fade .8s .7s both;
}

.zyx-orbs { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.zyx-orbs i { position: absolute; border-radius: 50%; will-change: transform; }
.zyx-orbs i:nth-child(1) {
  width: 90vw; height: 90vw; left: -30vw; top: -20vw;
  background: radial-gradient(circle, hsla(var(--zx-glow-hue, 335), 90%, 60%, .3), transparent 66%);
  animation: zyx-orb-a 16s ease-in-out infinite alternate;
}
.zyx-orbs i:nth-child(2) {
  width: 80vw; height: 80vw; right: -35vw; top: 35%;
  background: radial-gradient(circle, hsla(var(--zx-glow-hue2, 215), 85%, 62%, .22), transparent 66%);
  animation: zyx-orb-b 20s ease-in-out infinite alternate;
}
.zyx-orbs i:nth-child(3) {
  width: 70vw; height: 70vw; left: 10vw; bottom: -30vw;
  background: radial-gradient(circle, rgba(255, 46, 85, .2), transparent 66%);
  animation: zyx-orb-c 24s ease-in-out infinite alternate;
}
.zyx-root.is-player-open .zyx-orbs { display: none; }

.zyx-player-view .zyx-stage { position: relative; }
.zyx-root.is-playing .zyx-player-view .zyx-stage::before {
  content: "";
  position: absolute;
  inset: 6% -4%;
  background: radial-gradient(ellipse at 40% 50%, hsla(var(--zx-glow-hue, 335), 90%, 60%, .28), transparent 64%);
  animation: zyx-breathe 3.4s ease-in-out infinite;
  pointer-events: none;
}

.zyx-eq {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 25px;
  padding: 5px 6px;
  border-radius: 9px;
  background: rgba(13, 15, 20, .78);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .5), inset 0 1px 1px rgba(255, 255, 255, .12);
}
.zyx-eq i {
  display: block;
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--zx-accent-hi);
  transform-origin: bottom;
  animation: zyx-eq .9s ease-in-out infinite alternate;
}
.zyx-eq i:nth-child(2) { animation-duration: .7s; animation-delay: -.3s; }
.zyx-eq i:nth-child(3) { animation-duration: 1.1s; animation-delay: -.6s; }
.zyx-root:not(.is-playing) .zyx-eq i { animation-play-state: paused; }

.zyx-mood, .zyx-navbtn, .zyx-suggest-chip, .zyx-key--play { position: relative; overflow: hidden; }
.zyx-ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .38), transparent 70%);
  transform: scale(0);
  animation: zyx-rip .6s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
  .zyx-logo, .zyx-wordmark, .zyx-greet, .zyx-orbs i, .zyx-eq i, .zyx-ripple,
  .zyx-logo::after, .zyx-logo svg, .zyx-stage::before { animation: none !important; }
  .zyx-wordmark { background-position: 0 0; }
  .zyx-logo::after { display: none; }
}

/* ZYX-YTM-PASS-9: splash screen, toast, loading skeleton, drag handle */
@keyframes zyx-splash-out { to { opacity: 0; visibility: hidden; transform: scale(1.05); } }
@keyframes zyx-ring-spin { to { transform: rotate(360deg); } }
@keyframes zyx-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.zyx-splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: radial-gradient(120% 80% at 50% 28%, #2a1020 0, #0d0f14 62%);
  animation: zyx-splash-out .55s 1.7s ease-in forwards;
}
.zyx-splash-mark { position: relative; width: 104px; height: 104px; display: grid; place-items: center; }
.zyx-splash-mark svg {
  width: 74px;
  height: 74px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .6)) drop-shadow(0 0 22px rgba(255, 46, 85, .45));
  animation: zyx-logo-in .8s cubic-bezier(.16, .84, .24, 1) both;
}
.zyx-splash-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .07);
  border-top-color: var(--zx-accent);
  border-right-color: rgba(255, 99, 125, .45);
  animation: zyx-ring-spin 1s linear infinite;
}
.zyx-splash-word {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .3em;
  text-indent: .3em;
  color: var(--zx-text);
  animation: zyx-fade .8s .3s both;
}
.zyx-splash-bars { display: flex; align-items: flex-end; gap: 4px; height: 22px; animation: zyx-fade .8s .5s both; }
.zyx-splash-bars i {
  width: 4px;
  height: 100%;
  border-radius: 2px;
  background: var(--zx-accent-hi);
  transform-origin: bottom;
  animation: zyx-eq .8s ease-in-out infinite alternate;
}
.zyx-splash-bars i:nth-child(2) { animation-duration: .6s; animation-delay: -.2s; }
.zyx-splash-bars i:nth-child(3) { animation-duration: 1s; animation-delay: -.5s; }
.zyx-splash-bars i:nth-child(4) { animation-duration: .7s; animation-delay: -.35s; }
.zyx-splash-sub {
  color: var(--zx-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  animation: zyx-fade .8s .6s both;
}

.zyx-logo { animation-delay: 1.85s; }
.zyx-wordmark { animation-delay: 2.1s; }
.zyx-greet { animation-delay: 2.3s; }
.zyx-root.no-splash .zyx-logo,
.zyx-root.no-splash .zyx-wordmark,
.zyx-root.no-splash .zyx-greet { animation-delay: 0s; }

.zyx-toast {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 134px);
  z-index: 40;
  max-width: calc(100% - 40px);
  padding: 11px 18px;
  border-radius: 999px;
  color: var(--zx-text);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  background: linear-gradient(145deg, var(--zx-clay-hi), var(--zx-clay));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .12), inset 0 -2px 3px rgba(0, 0, 0, .45), 0 10px 24px rgba(0, 0, 0, .6);
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: opacity .25s ease, transform .3s cubic-bezier(.16, .84, .24, 1);
}
.zyx-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.zyx-skel { pointer-events: none; animation: none; }
.zyx-skel .zyx-home-cover {
  background: linear-gradient(100deg, #181c26 30%, #2a3042 50%, #181c26 70%) !important;
  background-size: 200% 100% !important;
  animation: zyx-shimmer 1.4s linear infinite;
}
.zyx-skel-line {
  display: block;
  height: 11px;
  margin-top: 9px;
  border-radius: 6px;
  background: linear-gradient(100deg, #181c26 30%, #2a3042 50%, #181c26 70%);
  background-size: 200% 100%;
  animation: zyx-shimmer 1.4s linear infinite;
}
.zyx-skel-line--s { width: 60%; height: 9px; }

@media (max-width: 959px) {
  .zyx-root.is-player-open .zyx-player-view::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 50%;
    width: 38px;
    height: 4px;
    margin-left: -19px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .2);
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zyx-splash { animation-duration: .01s; animation-delay: .5s; }
  .zyx-splash-mark svg, .zyx-splash-ring, .zyx-splash-word, .zyx-splash-bars,
  .zyx-splash-bars i, .zyx-splash-sub, .zyx-skel .zyx-home-cover, .zyx-skel-line { animation: none !important; }
  .zyx-toast { transition: none; }
}

/* ZYX-YTM-PASS-10: compact header + fullscreen key, mood icons, Sound Capsules, grain texture */
.zyx-root::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.zyx-fs-btn[hidden] { display: none; }

.zyx-mood { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.zyx-mood .zyx-ic { width: 16px; height: 16px; flex: 0 0 auto; }

.zyx-caps {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.zyx-caps::-webkit-scrollbar { display: none; }
.zyx-cap {
  position: relative;
  flex: 0 0 138px;
  height: 158px;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  text-align: left;
  color: #fff;
  cursor: pointer;
  scroll-snap-align: start;
  background:
    radial-gradient(120% 90% at 20% 0%, hsla(var(--h), 90%, 72%, .5), transparent 55%),
    linear-gradient(155deg, hsl(var(--h), 62%, 40%), hsl(var(--h2), 58%, 16%));
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, .28),
    inset 0 -6px 10px rgba(0, 0, 0, .4),
    0 6px 0 rgba(0, 0, 0, .45),
    0 14px 24px rgba(0, 0, 0, .5);
  transition: transform var(--zx-dur-fast), box-shadow var(--zx-dur-fast);
}
.zyx-cap:active {
  transform: translateY(4px);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, .55), 0 2px 0 rgba(0, 0, 0, .45);
}
.zyx-cap > .zyx-ic {
  position: absolute;
  right: -12px;
  top: -8px;
  width: 98px;
  height: 98px;
  stroke-width: 1.1;
  opacity: .24;
  color: #fff;
  transform: rotate(-12deg);
}
.zyx-cap-copy { position: relative; display: flex; flex-direction: column; gap: 3px; }
.zyx-cap-copy strong { font-size: 17px; font-weight: 850; letter-spacing: -.01em; }
.zyx-cap-copy small { font-size: 11px; opacity: .82; font-weight: 600; }

@media (max-width: 959px) {
  .zyx-head { gap: 7px; }
  .zyx-brand { gap: 9px; }
  .zyx-logo { width: 40px; height: 40px; }
  .zyx-wordmark { font-size: 15px; letter-spacing: .13em; }
  .zyx-head .zyx-chip { max-width: 92px; padding: 6px 9px; font-size: 9px; }
  .zyx-head .zyx-home-shuffle,
  .zyx-head .zyx-fs-btn { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 14px; }
  .zyx-head .zyx-fs-btn { order: 4; }
}

/* ZYX-YTM-PASS-10 font: Sora (OFL 1.1), local file, falls back per glyph (Devanagari etc.) */
@font-face {
  font-family: "Sora";
  src: url("/assets/zynoxify/fonts/Sora-Variable.ttf") format("truetype");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
.zyx-root { font-family: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Devanagari", sans-serif; }
.zyx-root button, .zyx-root input { font-family: inherit; }

/* ZYX-YTM-PASS-11: accounts - header avatar, log in / sign up, forgot-password cats, account menu */
@keyframes zyx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes zyx-bub { 0% { opacity: 0; transform: translateY(8px) scale(.9); } 4% { opacity: 1; transform: none; } 30% { opacity: 1; transform: none; } 34% { opacity: 0; transform: translateY(-6px); } 100% { opacity: 0; } }
@keyframes zc-blink { 0%, 91%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.08); } }
@keyframes zc-sway1 { from { transform: rotate(-7deg); } to { transform: rotate(9deg); } }
@keyframes zc-sway2 { from { transform: rotate(6deg); } to { transform: rotate(-8deg); } }
@keyframes zc-paw { 0%, 14% { transform: rotate(0); } 17% { transform: rotate(-32deg); } 21% { transform: rotate(14deg); } 26%, 100% { transform: rotate(0); } }
@keyframes zc-mug {
  0%, 22% { transform: translate(0, 0) rotate(0); opacity: 1; }
  40% { transform: translate(54px, 0) rotate(0); opacity: 1; }
  46% { transform: translate(62px, 2px) rotate(14deg); opacity: 1; }
  58% { transform: translate(66px, 52px) rotate(200deg); opacity: 1; }
  59% { transform: translate(66px, 52px) rotate(200deg); opacity: 0; }
  94% { transform: translate(0, 0) rotate(0); opacity: 0; }
  100% { transform: translate(0, 0) rotate(0); opacity: 1; }
}
@keyframes zc-crash { 0%, 57% { transform: scale(0); opacity: 0; } 59% { transform: scale(.3); opacity: 1; } 66% { transform: scale(1.1); opacity: 1; } 80%, 100% { transform: scale(1.25); opacity: 0; } }
@keyframes zc-pup2 { 0%, 38% { transform: translate(0, 0); } 44%, 58% { transform: translate(-1.5px, 2.5px); } 66%, 100% { transform: translate(0, 0); } }
@keyframes zc-pup1 { 0%, 100% { transform: translate(0, 0); } 30%, 50% { transform: translate(2px, 1px); } }
@keyframes zc-wide { 0%, 54% { transform: scale(1); } 58%, 68% { transform: scale(1.18); } 76%, 100% { transform: scale(1); } }

.zyx-acct-initial { display: none; font-size: 16px; font-weight: 850; color: #fff; line-height: 1; }
.zyx-acct-btn.is-in { background: linear-gradient(145deg, var(--zx-accent-hi), var(--zx-accent) 55%, var(--zx-accent-dim)); border-color: transparent; }
.zyx-acct-btn.is-in .zyx-ic { display: none; }
.zyx-acct-btn.is-in .zyx-acct-initial { display: block; }

@media (max-width: 959px) {
  .zyx-greet { letter-spacing: .1em; font-size: 9.5px; }
  .zyx-head { gap: 6px; }
  .zyx-head .zyx-chip { padding: 11px; gap: 0; max-width: none; cursor: pointer; }
  .zyx-head .zyx-chip #zyx-status-text {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .zyx-head .zyx-acct-btn { order: 5; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 14px; }
}

.zyx-auth, .zyx-troll {
  position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden;
  background: radial-gradient(120% 70% at 50% 0%, #2c1426 0, #0d0f14 62%);
  opacity: 0; transform: translateY(26px) scale(.985);
  transition: opacity .3s ease, transform .5s cubic-bezier(.16, .84, .24, 1);
}
.zyx-auth { z-index: 80; }
.zyx-troll { z-index: 90; }
.zyx-auth[hidden], .zyx-troll[hidden] { display: none; }
.zyx-auth.is-open, .zyx-troll.is-open { opacity: 1; transform: none; }
.zyx-auth-orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.zyx-auth-orbs i { position: absolute; border-radius: 50%; }
.zyx-auth-orbs i:nth-child(1) { width: 90vw; height: 90vw; left: -30vw; top: -24vw; background: radial-gradient(circle, rgba(255, 46, 85, .3), transparent 66%); animation: zyx-orb-a 16s ease-in-out infinite alternate; }
.zyx-auth-orbs i:nth-child(2) { width: 80vw; height: 80vw; right: -34vw; bottom: -20vw; background: radial-gradient(circle, rgba(120, 100, 255, .22), transparent 66%); animation: zyx-orb-b 20s ease-in-out infinite alternate; }

.zyx-auth-close {
  position: absolute; z-index: 3; top: max(12px, env(safe-area-inset-top)); right: 14px;
  display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--zx-edge); border-radius: 15px;
  color: var(--zx-text); cursor: pointer;
  background: linear-gradient(145deg, var(--zx-clay-hi), var(--zx-clay));
  box-shadow: var(--zx-shadow-key);
}
.zyx-auth-close:active { transform: translateY(3px); box-shadow: var(--zx-shadow-key-pressed); }
.zyx-auth-scroll {
  position: relative; z-index: 1; flex: 1; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; align-items: center;
  padding: max(58px, calc(env(safe-area-inset-top) + 46px)) 22px max(26px, env(safe-area-inset-bottom));
}
.zyx-auth-art { width: 118px; height: 118px; flex: 0 0 auto; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .6)) drop-shadow(0 0 18px rgba(255, 46, 85, .25)); animation: zyx-float 5s ease-in-out infinite; }
.zyx-auth-title { margin: 12px 0 4px; font-size: 26px; font-weight: 850; letter-spacing: -.02em; text-align: center; }
.zyx-auth-sub { margin: 0 0 18px; max-width: 310px; color: var(--zx-muted); font-size: 13px; line-height: 1.45; text-align: center; }
.zyx-auth-tabs {
  display: flex; gap: 4px; width: 100%; max-width: 380px; margin-bottom: 18px; padding: 5px; border-radius: 19px;
  background: var(--zx-well); box-shadow: inset 0 3px 7px rgba(0, 0, 0, .65), inset 0 -1px 1px rgba(255, 255, 255, .05);
}
.zyx-auth-tabs button {
  flex: 1; min-height: 44px; border: 0; border-radius: 15px; background: transparent; color: var(--zx-muted);
  font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; transition: background .25s, color .25s, box-shadow .25s, transform .12s;
}
.zyx-auth-tabs button[aria-selected="true"] {
  color: #fff; background: linear-gradient(145deg, var(--zx-accent-hi), var(--zx-accent) 55%, var(--zx-accent-dim));
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, .35), inset 0 -3px 4px rgba(0, 0, 0, .25), 0 4px 0 #7a1028, 0 10px 18px rgba(0, 0, 0, .4);
}
.zyx-auth-form { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 380px; }
.zyx-auth-field { display: flex; flex-direction: column; gap: 7px; }
.zyx-auth-field[hidden] { display: none; }
.zyx-auth-field > span:first-child { color: var(--zx-muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.zyx-auth-field input, .zyx-acctmenu-input {
  width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--zx-edge); border-radius: 16px; outline: none;
  color: var(--zx-text); font: inherit; font-size: 15px; background: var(--zx-well);
  box-shadow: inset 0 3px 7px rgba(0, 0, 0, .7), inset 0 -1px 1px rgba(255, 255, 255, .04);
  user-select: text; -webkit-user-select: text; transition: border-color .2s, box-shadow .2s;
}
.zyx-auth-field input::placeholder, .zyx-acctmenu-input::placeholder { color: #5f677b; }
.zyx-auth-field input:focus, .zyx-acctmenu-input:focus {
  border-color: rgba(255, 99, 125, .6); box-shadow: inset 0 3px 7px rgba(0, 0, 0, .7), 0 0 0 3px rgba(255, 46, 85, .22);
}
.zyx-auth-pw { position: relative; display: block; }
.zyx-auth-pw input { padding-right: 56px; }
.zyx-auth-eye {
  position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 12px; background: transparent; color: var(--zx-muted); cursor: pointer;
}
.zyx-auth-eye[aria-pressed="true"] { color: var(--zx-accent-hi); }
.zyx-auth-error {
  margin: 0; padding: 11px 14px; border-radius: 14px; color: #ffb3bd; font-size: 13px; line-height: 1.4;
  background: rgba(255, 46, 85, .12); border: 1px solid rgba(255, 99, 125, .35);
  animation: zyx-fade .25s both;
}
.zyx-auth-error[hidden] { display: none; }
.zyx-auth-submit {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px;
  border: 0; border-radius: 19px; color: #fff; font: inherit; font-size: 15px; font-weight: 800; letter-spacing: .02em; cursor: pointer;
  background: linear-gradient(145deg, var(--zx-accent-hi), var(--zx-accent) 55%, var(--zx-accent-dim));
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, .4), inset 0 -4px 5px rgba(0, 0, 0, .25), 0 6px 0 #7a1028, 0 14px 24px rgba(0, 0, 0, .5);
  transition: transform .12s, box-shadow .12s, opacity .2s;
}
.zyx-auth-submit:active { transform: translateY(5px); box-shadow: inset 0 3px 6px rgba(0, 0, 0, .35), 0 1px 0 #7a1028, 0 4px 8px rgba(0, 0, 0, .45); }
.zyx-auth-submit:disabled { opacity: .75; cursor: progress; }
.zyx-auth-submit--soft { margin-top: 14px; color: var(--zx-text); background: linear-gradient(145deg, var(--zx-clay-hi), var(--zx-clay)); box-shadow: var(--zx-shadow-key); }
.zyx-auth-submit--danger { margin-top: 10px; background: linear-gradient(145deg, #ff8a8a, #e23b3b 55%, #9d1c1c); box-shadow: inset 0 2px 2px rgba(255, 255, 255, .35), inset 0 -4px 5px rgba(0, 0, 0, .25), 0 6px 0 #5e1010, 0 14px 24px rgba(0, 0, 0, .5); }
.zyx-auth-spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: zyx-ring-spin .8s linear infinite; }
.zyx-auth-submit.is-busy .zyx-auth-spin { display: inline-block; }
.zyx-auth-forgot {
  align-self: center; min-height: 44px; padding: 0 14px; border: 0; background: transparent; color: var(--zx-accent-hi);
  font: inherit; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.zyx-auth-forgot[hidden] { display: none; }
.zyx-auth-note { margin: 10px 0 0; max-width: 320px; color: #6c7488; font-size: 11px; line-height: 1.5; text-align: center; }

.zyx-troll-scroll {
  position: relative; z-index: 1; flex: 1; overflow-y: auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom));
}
.zyx-troll-stage { position: relative; width: min(100%, 390px); aspect-ratio: 360 / 250; padding-top: 20px; box-sizing: border-box; }
.zyx-troll-stage .zc { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .45)); }
.zyx-bubble {
  position: absolute; z-index: 2; margin: 0; padding: 8px 13px; border-radius: 16px; color: #14161d; font-size: 12.5px; font-weight: 750; line-height: 1.25;
  background: #f4f6fb; box-shadow: 0 8px 16px rgba(0, 0, 0, .4); opacity: 0; animation: zyx-bub 9s infinite;
  max-width: 46%;
}
.zyx-bubble::after { content: ""; position: absolute; bottom: -6px; width: 12px; height: 12px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
.zyx-bubble--a { left: 3%; top: 0; animation-delay: 0s; }
.zyx-bubble--a::after { left: 30px; }
.zyx-bubble--b { right: 2%; top: 6%; animation-delay: 3s; }
.zyx-bubble--b::after { right: 38px; }
.zyx-bubble--c { left: 28%; top: 0; animation-delay: 6s; max-width: 52%; }
.zyx-bubble--c::after { left: 40%; }
.zyx-troll-title { margin: 16px 0 6px; font-size: 24px; font-weight: 850; letter-spacing: -.02em; text-align: center; }
.zyx-troll-text { margin: 0 0 18px; max-width: 320px; color: var(--zx-muted); font-size: 13.5px; line-height: 1.5; text-align: center; }
.zyx-troll-actions { display: flex; flex-direction: column; width: 100%; max-width: 340px; gap: 4px; }

.zc-eyes { transform-box: fill-box; transform-origin: center; animation: zc-blink 4.4s infinite; }
.zc-eyes2 { animation: zc-blink 5.2s 1.2s infinite, zc-wide 6s infinite; }
.zc-tail1 { transform-origin: 54px 158px; animation: zc-sway1 2.6s ease-in-out infinite alternate; }
.zc-tail2 { transform-origin: 298px 208px; animation: zc-sway2 3s ease-in-out infinite alternate; }
.zc-paw { transform-origin: 118px 148px; animation: zc-paw 6s infinite; }
.zc-mug { transform-origin: 198px 157px; animation: zc-mug 6s cubic-bezier(.4, 0, .6, 1) infinite; }
.zc-crash { transform-origin: 264px 212px; transform: scale(0); opacity: 0; animation: zc-crash 6s infinite; }
.zc-pup1 { animation: zc-pup1 6s infinite; }
.zc-pup2 { animation: zc-pup2 6s infinite; }

.zyx-acctmenu { position: absolute; inset: 0; z-index: 85; display: flex; align-items: flex-end; }
.zyx-acctmenu-scrim { position: absolute; inset: 0; background: rgba(5, 4, 3, .62); opacity: 0; transition: opacity .3s; }
.zyx-acctmenu.is-open .zyx-acctmenu-scrim { opacity: 1; }
.zyx-acctmenu-card {
  position: relative; width: 100%; padding: 22px 20px max(22px, env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, #222736, #151823); box-shadow: inset 0 2px 2px rgba(255, 255, 255, .08), 0 -20px 50px rgba(0, 0, 0, .55);
  transform: translateY(105%); transition: transform .45s cubic-bezier(.16, .84, .24, 1);
}
.zyx-acctmenu.is-open .zyx-acctmenu-card { transform: none; }
.zyx-acctmenu-head { display: flex; align-items: center; gap: 14px; }
.zyx-acctmenu-avatar {
  display: grid; place-items: center; flex: 0 0 54px; width: 54px; height: 54px; border-radius: 18px; color: #fff; font-size: 24px; font-weight: 850;
  background: linear-gradient(145deg, var(--zx-accent-hi), var(--zx-accent) 55%, var(--zx-accent-dim));
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, .4), inset 0 -3px 4px rgba(0, 0, 0, .25), 0 5px 0 #7a1028;
}
.zyx-acctmenu-who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.zyx-acctmenu-who strong { font-size: 18px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zyx-acctmenu-who small { color: var(--zx-muted); font-size: 12px; }
.zyx-acctmenu-stats { margin: 16px 0 4px; color: var(--zx-text-soft); font-size: 13px; }
.zyx-acctmenu-del { width: 100%; margin-top: 6px; color: #ff9aa6; font-weight: 600; }
.zyx-acctmenu-delbox { display: flex; flex-direction: column; gap: 8px; }
.zyx-acctmenu-delbox[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .zyx-auth, .zyx-troll, .zyx-acctmenu-card { transition: opacity .01s; transform: none; }
  .zyx-auth-art, .zyx-auth-orbs i, .zyx-auth-error, .zyx-auth-spin { animation: none !important; }
  .zyx-troll * { animation: none !important; }
  .zyx-bubble--c { opacity: 1; }
  .zc-crash { opacity: 0; }
}

/* ZYX-YTM-PASS-12: track options menu, "Playing next" block, header tools */
.zyx-more-btn .zyx-ic { width: 16px; height: 16px; }
.zyx-more-btn { display: inline-flex; align-items: center; gap: 6px; }

.zyx-player-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.zyx-player-head > :first-child { justify-self: start; }
.zyx-player-tools { display: flex; gap: 8px; justify-self: end; }
.zyx-player-more {
  display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border: 1px solid var(--zx-edge); border-radius: 15px; cursor: pointer;
  color: var(--zx-text); background: linear-gradient(145deg, var(--zx-clay-hi), var(--zx-clay)); box-shadow: var(--zx-shadow-key);
}
.zyx-player-more:active { transform: translateY(2px); }

.zyx-tmenu { position: absolute; inset: 0; z-index: 88; display: flex; align-items: flex-end; }
.zyx-tmenu-scrim { position: absolute; inset: 0; background: rgba(5, 4, 3, .62); opacity: 0; transition: opacity .3s; }
.zyx-tmenu.is-open .zyx-tmenu-scrim { opacity: 1; }
.zyx-tmenu-card {
  position: relative; width: 100%; padding: 10px 16px max(18px, env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, #232838, #151823); box-shadow: inset 0 2px 2px rgba(255, 255, 255, .08), 0 -20px 50px rgba(0, 0, 0, .55);
  transform: translateY(105%); transition: transform .42s cubic-bezier(.16, .84, .24, 1);
}
.zyx-tmenu.is-open .zyx-tmenu-card { transform: none; }
.zyx-tmenu-grab { display: block; width: 38px; height: 4px; margin: 0 auto 12px; border-radius: 4px; background: rgba(255, 255, 255, .2); }
.zyx-tmenu-head { display: flex; align-items: center; gap: 13px; padding: 4px 4px 14px; }
.zyx-tmenu-cover {
  position: relative; display: grid; place-items: center; flex: 0 0 56px; width: 56px; height: 56px; border-radius: 16px; overflow: hidden;
  font-size: 22px; font-weight: 850; color: rgba(255, 255, 255, .9);
  background: linear-gradient(145deg, #4a2c3d, #1c1520);
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, .2), 0 5px 0 #0a0b10, 0 10px 16px rgba(0, 0, 0, .45);
}
.zyx-tmenu-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.34); }
.zyx-tmenu-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.zyx-tmenu-copy strong { font-size: 15px; font-weight: 800; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.zyx-tmenu-copy small { color: var(--zx-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zyx-tmenu-list { display: flex; flex-direction: column; gap: 8px; }
.zyx-tmenu-act {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 54px; padding: 0 16px; border: 1px solid var(--zx-edge); border-radius: 18px;
  color: var(--zx-text); font: inherit; font-size: 14.5px; font-weight: 700; text-align: left; cursor: pointer;
  background: linear-gradient(145deg, var(--zx-clay-hi), var(--zx-clay));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .1), inset 0 -2px 3px rgba(0, 0, 0, .4), 0 4px 0 #090b10, 0 8px 14px rgba(0, 0, 0, .4);
  transition: transform .12s, box-shadow .12s;
}
.zyx-tmenu-act:active { transform: translateY(3px); box-shadow: inset 0 3px 6px rgba(0, 0, 0, .65), 0 1px 0 #090b10; }
.zyx-tmenu-act .zyx-ic { width: 22px; height: 22px; flex: 0 0 auto; color: var(--zx-accent-hi); }

.zyx-unext { margin: 0 0 16px; padding: 12px 10px 8px; border-radius: 20px; background: var(--zx-well); box-shadow: inset 0 3px 8px rgba(0, 0, 0, .65), inset 0 -1px 1px rgba(255, 255, 255, .05); }
.zyx-unext-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 8px; }
.zyx-unext-head strong { color: var(--zx-accent-hi); font-size: 11px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.zyx-unext-clear { min-height: 36px; padding: 0 10px; border: 0; background: transparent; color: var(--zx-muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.zyx-unext .zyx-qrow .zyx-row { grid-template-columns: 30px minmax(0, 1fr); }

@media (prefers-reduced-motion: reduce) { .zyx-tmenu-card { transition: opacity .01s; transform: none; } }

/* ZYX-YTM-PASS-13: playlists, liked songs, link import, add to playlist */
.zyx-ml-hide { display: none !important; }
.zyx-ml[hidden] { display: none; }
.zyx-ml { display: flex; flex-direction: column; gap: 12px; padding: 6px 2px 20px; }

.zyx-ml-actions, .zyx-ml-playrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.zyx-ml-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 0 12px; border: 1px solid var(--zx-edge); border-radius: 18px;
  color: var(--zx-text); font: inherit; font-size: 13.5px; font-weight: 750; cursor: pointer;
  background: linear-gradient(145deg, var(--zx-clay-hi), var(--zx-clay));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .1), inset 0 -2px 3px rgba(0, 0, 0, .4), 0 4px 0 #090b10, 0 8px 14px rgba(0, 0, 0, .4);
  transition: transform .12s, box-shadow .12s;
}
.zyx-ml-btn .zyx-ic { width: 20px; height: 20px; color: var(--zx-accent-hi); }
.zyx-ml-btn:active, .zyx-ml-btn.is-on { transform: translateY(3px); box-shadow: inset 0 3px 6px rgba(0, 0, 0, .65), 0 1px 0 #090b10; }
.zyx-ml-btn.is-on { color: var(--zx-accent-hi); }
.zyx-ml-btn:disabled { opacity: .45; cursor: default; }
.zyx-ml-btn--accent {
  color: #fff; border-color: transparent;
  background: linear-gradient(145deg, var(--zx-accent-hi), var(--zx-accent) 55%, var(--zx-accent-dim));
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, .38), inset 0 -3px 4px rgba(0, 0, 0, .25), 0 4px 0 #7a1028, 0 8px 14px rgba(0, 0, 0, .4);
}
.zyx-ml-btn--accent .zyx-ic { color: #fff; }

.zyx-ml-form {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; border-radius: 18px; background: var(--zx-well);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, .65), inset 0 -1px 1px rgba(255, 255, 255, .05);
}
.zyx-ml-input {
  flex: 1 1 170px; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid var(--zx-edge); border-radius: 14px; outline: none;
  color: var(--zx-text); font: inherit; font-size: 14px; background: rgba(0, 0, 0, .25); user-select: text; -webkit-user-select: text;
}
.zyx-ml-input:focus { border-color: rgba(255, 99, 125, .6); box-shadow: 0 0 0 3px rgba(255, 46, 85, .2); }
.zyx-ml-input::placeholder { color: #5f677b; }
.zyx-ml-go {
  flex: 0 0 auto; min-height: 46px; padding: 0 18px; border: 0; border-radius: 14px; color: #fff; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
  background: linear-gradient(145deg, var(--zx-accent-hi), var(--zx-accent) 55%, var(--zx-accent-dim));
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, .35), 0 4px 0 #7a1028;
}
.zyx-ml-go:active { transform: translateY(3px); box-shadow: 0 1px 0 #7a1028; }
.zyx-ml-go:disabled { opacity: .7; cursor: progress; }
.zyx-ml-hint { flex: 1 1 100%; margin: 0; color: var(--zx-muted); font-size: 11.5px; line-height: 1.45; }
.zyx-ml-form .zyx-auth-error { flex: 1 1 100%; }
.zyx-ml-empty { margin: 6px 4px; color: var(--zx-muted); font-size: 13px; line-height: 1.5; text-align: center; }

.zyx-ml-card {
  display: flex; align-items: center; gap: 13px; width: 100%; padding: 10px 14px 10px 10px; border: 1px solid var(--zx-edge); border-radius: 20px;
  color: var(--zx-text); text-align: left; font: inherit; cursor: pointer;
  background: linear-gradient(145deg, var(--zx-clay-hi), var(--zx-clay));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .09), inset 0 -2px 3px rgba(0, 0, 0, .4), 0 4px 0 #090b10, 0 8px 14px rgba(0, 0, 0, .4);
  transition: transform .12s, box-shadow .12s;
}
.zyx-ml-card:active { transform: translateY(3px); box-shadow: inset 0 3px 6px rgba(0, 0, 0, .65), 0 1px 0 #090b10; }
.zyx-ml-card > .zyx-ic { width: 18px; height: 18px; color: var(--zx-muted); }
.zyx-ml-cardart {
  display: grid; place-items: center; flex: 0 0 52px; width: 52px; height: 52px; border-radius: 16px; color: #fff;
  background: linear-gradient(145deg, #3b4258, #1d2130);
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, .22), 0 4px 0 #0a0b10;
}
.zyx-ml-cardart.is-liked { background: linear-gradient(145deg, var(--zx-accent-hi), var(--zx-accent) 55%, var(--zx-accent-dim)); }
.zyx-ml-cardcopy { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.zyx-ml-cardcopy strong { font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zyx-ml-cardcopy small { color: var(--zx-muted); font-size: 12px; }

.zyx-ml-head { display: flex; align-items: center; gap: 8px; }
.zyx-ml-ttl { flex: 1; min-width: 0; }
.zyx-ml-ttl h3 { margin: 0; font-size: 19px; font-weight: 850; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zyx-ml-ttl small { color: var(--zx-muted); font-size: 12px; }
.zyx-ml-iconbtn {
  display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border: 1px solid var(--zx-edge); border-radius: 14px; cursor: pointer;
  color: var(--zx-text); background: linear-gradient(145deg, var(--zx-clay-hi), var(--zx-clay)); box-shadow: var(--zx-shadow-key);
}
.zyx-ml-iconbtn:active { transform: translateY(3px); box-shadow: var(--zx-shadow-key-pressed); }
.zyx-ml-iconbtn .zyx-ic { width: 20px; height: 20px; }
.zyx-ml-confirm { padding: 12px 14px; border-radius: 18px; background: rgba(255, 46, 85, .1); border: 1px solid rgba(255, 99, 125, .3); }
.zyx-ml-confirm p { margin: 0 0 10px; font-size: 13px; line-height: 1.45; }
.zyx-ml-confirm-row { display: flex; gap: 8px; }
.zyx-ml-danger { color: #fff; background: linear-gradient(145deg, #ff8a8a, #e23b3b 55%, #9d1c1c); }

.zyx-ml-tracks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.zyx-ml-track { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 2px; }
.zyx-ml-trackmain {
  display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 60px; padding: 6px 8px; border: 0; border-radius: 14px; background: transparent;
  color: var(--zx-text); font: inherit; text-align: left; cursor: pointer;
}
.zyx-ml-trackmain:active { background: rgba(255, 255, 255, .05); }
.zyx-ml-thumb {
  position: relative; display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 13px; overflow: hidden;
  font-size: 18px; font-weight: 850; color: rgba(255, 255, 255, .9); background: linear-gradient(145deg, #4a2c3d, #1c1520);
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, .18), 0 3px 0 #0a0b10;
}
.zyx-ml-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.34); }
.zyx-ml-trackcopy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.zyx-ml-trackcopy strong { font-size: 13.5px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.zyx-ml-trackcopy small { color: var(--zx-muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.zyx-pick-title { margin: 0 0 12px 4px; font-size: 17px; font-weight: 850; }
.zyx-pick-list { max-height: 36vh; overflow-y: auto; padding: 0 2px 10px; }
.zyx-pick-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zyx-pick-count { color: var(--zx-muted); font-size: 11.5px; font-weight: 600; }
.zyx-pick-new { margin-top: 4px; }

/* ZYX-YTM-PASS-14: Play together - home card, chooser, room panel, floating room bar */
@keyframes zyx-pt-wave { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes zyx-pt-led { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }

.zyx-pt-card {
  display: flex; align-items: center; gap: 14px; width: 100%; margin: 4px 0 14px; padding: 12px 16px 12px 12px; border: 1px solid var(--zx-edge); border-radius: 22px;
  color: var(--zx-text); text-align: left; font: inherit; cursor: pointer; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, rgba(255, 46, 85, .28), transparent 55%), linear-gradient(145deg, var(--zx-clay-hi), var(--zx-clay));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .12), inset 0 -3px 4px rgba(0, 0, 0, .4), 0 5px 0 #090b10, 0 12px 20px rgba(0, 0, 0, .45);
  transition: transform .12s, box-shadow .12s;
}
.zyx-pt-card:active { transform: translateY(4px); box-shadow: inset 0 3px 7px rgba(0, 0, 0, .65), 0 1px 0 #090b10; }
.zyx-pt-art {
  display: grid; place-items: center; flex: 0 0 52px; width: 52px; height: 52px; border-radius: 17px; color: #fff;
  background: linear-gradient(145deg, var(--zx-accent-hi), var(--zx-accent) 55%, var(--zx-accent-dim));
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, .4), inset 0 -3px 4px rgba(0, 0, 0, .25), 0 4px 0 #7a1028;
}
.zyx-pt-card .zyx-pt-copy { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.zyx-pt-copy strong { font-size: 16px; font-weight: 850; letter-spacing: -.01em; }
.zyx-pt-copy small { color: var(--zx-muted); font-size: 12px; line-height: 1.35; }
.zyx-pt-card > .zyx-ic:last-child { width: 18px; height: 18px; color: var(--zx-muted); }

svg.zyx-pt-hero { display: block; width: 150px; height: 118px; flex: 0 0 auto; filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .55)); }
svg.zyx-pt-hero .zp-waves path { animation: zyx-pt-wave 2.2s ease-in-out infinite; }
svg.zyx-pt-hero .zp-waves path:nth-child(2n) { animation-delay: .5s; }
.zyx-pt-choices { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 380px; }
.zyx-pt-choice {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px 14px 14px; border: 1px solid var(--zx-edge); border-radius: 22px;
  color: var(--zx-text); text-align: left; font: inherit; cursor: pointer;
  background: linear-gradient(145deg, var(--zx-clay-hi), var(--zx-clay));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .1), inset 0 -3px 4px rgba(0, 0, 0, .4), 0 5px 0 #090b10, 0 10px 18px rgba(0, 0, 0, .45);
  transition: transform .12s, box-shadow .12s;
}
.zyx-pt-choice:active { transform: translateY(4px); box-shadow: inset 0 3px 7px rgba(0, 0, 0, .65), 0 1px 0 #090b10; }
.zyx-pt-choice > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.zyx-pt-choice strong { font-size: 16px; font-weight: 850; }
.zyx-pt-choice small { color: var(--zx-muted); font-size: 12.5px; }
.zyx-pt-choice-art {
  display: grid; place-items: center; flex: 0 0 50px; width: 50px; height: 50px; border-radius: 16px; color: var(--zx-accent-hi);
  background: var(--zx-well); box-shadow: inset 0 3px 7px rgba(0, 0, 0, .7), inset 0 -1px 1px rgba(255, 255, 255, .06);
}
.zyx-pt-choice:first-child .zyx-pt-choice-art { color: #fff; background: linear-gradient(145deg, var(--zx-accent-hi), var(--zx-accent) 55%, var(--zx-accent-dim)); box-shadow: inset 0 2px 2px rgba(255, 255, 255, .4), 0 4px 0 #7a1028; }
.zyx-pt-form[hidden], .zyx-pt-choices[hidden] { display: none; }
.zyx-auth-field input.zyx-pt-code { height: 64px; text-align: center; font-size: 32px; font-weight: 850; letter-spacing: .5em; text-indent: .5em; font-variant-numeric: tabular-nums; }

.zyx-roombar {
  position: absolute; left: 14px; right: 14px; z-index: 30; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); border: 1px solid rgba(255, 99, 125, .35); border-radius: 18px; color: var(--zx-text); font: inherit; cursor: pointer;
  background: linear-gradient(145deg, #3a1d2a, #1d1520);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .12), inset 0 -2px 3px rgba(0, 0, 0, .4), 0 4px 0 #090b10, 0 10px 18px rgba(0, 0, 0, .5);
}
.zyx-roombar[hidden] { display: none; }
.zyx-root.has-track .zyx-roombar { bottom: calc(env(safe-area-inset-bottom, 0px) + 156px); }
.zyx-root.is-player-open .zyx-roombar { display: none; }
.zyx-roombar .zyx-ic { width: 20px; height: 20px; color: var(--zx-accent-hi); flex: 0 0 auto; }
.zyx-roombar-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 800; text-align: left; }
.zyx-roombar-status { flex: 0 0 auto; font-size: 11.5px; font-weight: 750; color: var(--zx-muted); }
.zyx-roombar[data-status="synced"] .zyx-roombar-status { color: #5ef0b0; }
.zyx-roombar[data-status="syncing"] .zyx-roombar-status, .zyx-roombar[data-status="buffering"] .zyx-roombar-status, .zyx-roombar[data-status="loading"] .zyx-roombar-status, .zyx-roombar[data-status="reconnecting"] .zyx-roombar-status { color: #ffc15e; }
.zyx-roombar[data-status="missing"] .zyx-roombar-status { color: #ff9aa6; }
.zyx-root.is-room-listener .zyx-seekrow .zyx-range-well { pointer-events: none; opacity: .75; }

.zyx-room-scroll {
  position: relative; z-index: 1; flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 12px;
  padding: max(16px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
}
.zyx-room-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.zyx-room-codebox { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.zyx-room-codebox small { color: var(--zx-muted); font-size: 10px; font-weight: 800; letter-spacing: .2em; }
.zyx-room-codebox strong { font-size: 40px; font-weight: 900; letter-spacing: .22em; text-indent: .22em; line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(145deg, #fff, #ffb3c0); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.zyx-room-status { align-self: center; display: inline-flex; align-items: center; gap: 9px; margin: 0; padding: 8px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 750; background: var(--zx-well); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .6); }
.zyx-room-status .zyx-led { border-color: var(--zx-muted); }
.zyx-room-status[data-status="synced"] .zyx-led { background: #5ef0b0; border-color: #5ef0b0; border-radius: 2px; animation: zyx-pt-led 1.8s ease-in-out infinite; }
.zyx-room-status[data-status="syncing"] .zyx-led, .zyx-room-status[data-status="buffering"] .zyx-led, .zyx-room-status[data-status="loading"] .zyx-led, .zyx-room-status[data-status="reconnecting"] .zyx-led { background: #ffc15e; border-color: #ffc15e; }
.zyx-room-now { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px; border-radius: 20px; text-align: center;
  background: linear-gradient(145deg, var(--zx-clay-hi), var(--zx-clay)); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .1), 0 4px 0 #090b10, 0 10px 18px rgba(0, 0, 0, .4); }
.zyx-room-now small { color: var(--zx-accent-hi); font-size: 10.5px; font-weight: 850; letter-spacing: .16em; }
.zyx-room-now strong { font-size: 16px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.zyx-room-now span { color: var(--zx-muted); font-size: 12.5px; line-height: 1.4; }
.zyx-room-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 20px; background: var(--zx-well); box-shadow: inset 0 3px 8px rgba(0, 0, 0, .65), inset 0 -1px 1px rgba(255, 255, 255, .05); }
.zyx-room-card > strong { font-size: 14px; font-weight: 800; }
.zyx-room-card small { color: var(--zx-muted); font-size: 11.5px; line-height: 1.45; }
.zyx-room-url { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .3); font-size: 12.5px; line-height: 1.5; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; color: var(--zx-text-soft); }
.zyx-room-url.is-warn { color: #ffc15e; }
.zyx-room-nudgehead { display: flex; justify-content: space-between; font-size: 14px; }
.zyx-room-nudgehead span { color: var(--zx-accent-hi); font-weight: 800; font-variant-numeric: tabular-nums; }
.zyx-room-nudge { width: 100%; }
.zyx-room-h { margin: 6px 4px 0; font-size: 12px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; color: var(--zx-muted); }
.zyx-room-h span { color: var(--zx-text-soft); letter-spacing: .04em; text-transform: none; font-weight: 700; }
.zyx-room-members, .zyx-room-qlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.zyx-room-member, .zyx-room-qitem { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: linear-gradient(145deg, var(--zx-clay-hi), var(--zx-clay)); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .08), 0 3px 0 #090b10; flex-wrap: wrap; }
.zyx-room-member.is-away { opacity: .55; }
.zyx-room-avatar { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 13px; font-weight: 850; color: #fff; background: linear-gradient(145deg, #5a4a9b, #2d2652); box-shadow: inset 0 2px 2px rgba(255, 255, 255, .25); }
.zyx-room-mcopy { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.zyx-room-mcopy strong { font-size: 14px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zyx-room-mcopy small { color: var(--zx-muted); font-size: 11.5px; }
.zyx-room-mtools { display: flex; gap: 6px; flex: 0 0 auto; }
.zyx-room-mbtn { min-height: 36px; padding: 0 12px; border: 1px solid var(--zx-edge); border-radius: 12px; background: var(--zx-well); color: var(--zx-text-soft); font: inherit; font-size: 11.5px; font-weight: 750; cursor: pointer; }
.zyx-room-mbtn.is-danger { color: #ff9aa6; }
.zyx-room-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.zyx-room-qitem .zyx-row-n { flex: 0 0 auto; }

@media (prefers-reduced-motion: reduce) { svg.zyx-pt-hero .zp-waves path, .zyx-room-status .zyx-led { animation: none !important; } }
