/* ==========================================================================
   MusicTag Showcase — Stylesheet
   Vibrant OLED Music Stage + Asymmetric Bento + Tactile Vinyl UI
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  overflow-x: clip;
  position: relative;
  min-height: 100vh;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--accent-lime);
  color: var(--on-lime);
  font-weight: 700;
  transition: top var(--dur-fast) ease;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.section-pad {
  padding-block: clamp(56px, 7vw, 96px);
  position: relative;
  z-index: 1;
}

.inline-code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
  overflow-wrap: anywhere;
}

/* ── Utility Colors ─────────────────────────────────────────────────────── */
.text-cyan { color: var(--accent-cyan); }
.text-lime { color: var(--accent-lime); }
.text-amber { color: var(--accent-amber); }
.text-magenta { color: var(--accent-magenta); }
.text-violet { color: var(--accent-violet); }
.text-cobalt { color: var(--accent-cobalt); }
.text-sky { color: var(--accent-sky); }
.text-coral { color: var(--accent-coral); }

.bg-tint-cyan { background: var(--tint-cyan); }
.bg-tint-lime { background: var(--tint-lime); }
.bg-tint-amber { background: var(--tint-amber); }
.bg-tint-magenta { background: var(--tint-magenta); }
.bg-tint-violet { background: var(--tint-violet); }
.bg-tint-sky { background: var(--tint-sky); }
.bg-tint-coral { background: var(--tint-coral); }

.dot-cyan { background: var(--accent-cyan); }
.dot-magenta { background: var(--accent-magenta); }
.dot-amber { background: var(--accent-amber); }
.dot-lime { background: var(--accent-lime); }

/* ── Ambient Stage Glows ────────────────────────────────────────────────── */
.stage-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.28;
  will-change: transform;
  animation: auroraDrift 18s ease-in-out infinite alternate;
}

.aurora--cobalt {
  width: 560px;
  height: 560px;
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, var(--accent-cobalt), transparent 70%);
}

.aurora--magenta {
  width: 520px;
  height: 520px;
  top: 22%;
  right: -180px;
  background: radial-gradient(circle, var(--accent-magenta), transparent 70%);
  animation-delay: -6s;
}

.aurora--lime {
  width: 480px;
  height: 480px;
  bottom: -140px;
  left: 26%;
  background: radial-gradient(circle, var(--accent-lime), transparent 72%);
  opacity: 0.16;
  animation-delay: -11s;
}

@keyframes auroraDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(36px, -28px, 0) scale(1.08); }
}

/* ── Floating Glass Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 14px;
  padding-inline: var(--space-4);
}

.header-pill {
  height: 62px;
  padding-inline: 18px;
  border-radius: var(--radius-pill);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(79, 123, 255, 0.35);
}

.brand-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.version-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--tint-cyan);
  border: 1px solid rgba(34, 211, 238, 0.32);
  color: var(--accent-cyan);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}

.main-nav a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.07);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding-inline: 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.btn-icon-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-icon-pill .ico-play { display: none; }
body.motion-paused .btn-icon-pill .ico-pause { display: none; }
body.motion-paused .btn-icon-pill .ico-play { display: block; }
body.motion-paused .btn-icon-pill {
  border-color: rgba(255, 184, 0, 0.45);
  color: var(--accent-amber);
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

.mobile-menu-btn .ico-close { display: none; }
.mobile-menu-btn[aria-expanded="true"] .ico-menu { display: none; }
.mobile-menu-btn[aria-expanded="true"] .ico-close { display: block; }

.mobile-drawer {
  margin-top: 10px;
  margin-inline: auto;
  max-width: var(--container-max);
  border-radius: var(--radius-lg);
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
}

.mobile-drawer[hidden] {
  display: none;
}

.mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-drawer__nav a:not(.btn) {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.mobile-drawer__nav a:not(.btn):hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-spring),
              background-color var(--dur-fast) ease,
              border-color var(--dur-fast) ease,
              box-shadow var(--dur-fast) ease;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn--sm { height: 36px; padding-inline: 16px; font-size: 0.86rem; }
.btn--lg { height: 50px; padding-inline: 24px; font-size: 1rem; }
.btn--xl { height: 56px; padding-inline: 32px; font-size: 1.06rem; }
.btn--full { width: 100%; height: 46px; margin-top: 6px; }

.btn--lime {
  background: var(--accent-lime);
  color: var(--on-lime);
  box-shadow: var(--glow-lime);
}

.btn--lime:hover {
  background: var(--accent-lime-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -6px rgba(34, 229, 132, 0.6);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.42);
  transform: translateY(-2px);
}

/* ── Section Headers ────────────────────────────────────────────────────── */
.section-head {
  max-width: 720px;
  margin-bottom: var(--space-10);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-3);
}

.eyebrow--cyan {
  color: var(--accent-cyan);
  background: var(--tint-cyan);
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.eyebrow--lime {
  color: var(--accent-lime);
  background: var(--tint-lime);
  border: 1px solid rgba(34, 229, 132, 0.3);
}

.eyebrow--amber {
  color: var(--accent-amber);
  background: var(--tint-amber);
  border: 1px solid rgba(255, 184, 0, 0.32);
}

.eyebrow--magenta {
  color: var(--accent-magenta);
  background: var(--tint-magenta);
  border: 1px solid rgba(255, 59, 154, 0.32);
}

.section-title {
  margin: 0 0 var(--space-3);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.04rem;
}

/* ── 1. Hero Section ────────────────────────────────────────────────────── */
.hero {
  padding-top: clamp(32px, 5vw, 64px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  background: rgba(24, 24, 54, 0.9);
  border: 1px solid rgba(79, 123, 255, 0.4);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
}

.eq-mini {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

.eq-mini span {
  width: 3px;
  border-radius: 2px;
  background: var(--accent-lime);
  animation: eqBounce 1.1s ease-in-out infinite alternate;
}

.eq-mini span:nth-child(1) { height: 7px; animation-delay: 0s; background: var(--accent-cyan); }
.eq-mini span:nth-child(2) { height: 14px; animation-delay: 0.2s; background: var(--accent-lime); }
.eq-mini span:nth-child(3) { height: 9px; animation-delay: 0.4s; background: var(--accent-magenta); }
.eq-mini span:nth-child(4) { height: 12px; animation-delay: 0.15s; background: var(--accent-amber); }

@keyframes eqBounce {
  0% { transform: scaleY(0.35); }
  100% { transform: scaleY(1); }
}

.hero-title {
  margin: 0 0 var(--space-5);
  font-size: clamp(2.15rem, 4.3vw, 3.45rem);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.gradient-text {
  background: linear-gradient(120deg, var(--accent-cyan) 0%, var(--accent-lime) 48%, var(--accent-amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 var(--space-6);
  color: var(--text-secondary);
  font-size: 1.06rem;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: var(--space-8);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: rgba(18, 18, 42, 0.72);
  border: 1px solid var(--border-subtle);
}

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

.metric-item dt {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.metric-val {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.2;
}

/* ── Hero Interactive Vinyl Card ────────────────────────────────────────── */
.hero-stage-wrap {
  min-width: 0;
}

.stage-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  background: linear-gradient(155deg, rgba(31, 31, 68, 0.92), rgba(16, 16, 40, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: var(--shadow-card), var(--glow-cyan);
  overflow: hidden;
}

.stage-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: var(--space-5);
}

.stage-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: rgba(9, 9, 24, 0.8);
  border: 1px solid var(--border-subtle);
}

.stage-switch__btn {
  border: 0;
  background: transparent;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}

.stage-switch__btn.is-active {
  background: var(--accent-cobalt);
  color: #FFFFFF;
}

.stage-live-badge {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--tint-lime);
  border: 1px solid rgba(34, 229, 132, 0.35);
  color: var(--accent-lime);
  transition: all var(--dur-fast) ease;
}

.stage-card.is-before .stage-live-badge {
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.28);
  color: var(--text-secondary);
}

.vinyl-showcase {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: var(--space-5);
  align-items: center;
  position: relative;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: rgba(9, 9, 24, 0.65);
  border: 1px solid var(--border-subtle);
}

/* Spinning Vinyl Disc behind sleeve */
.vinyl-disc {
  position: absolute;
  left: 52px;
  top: 50%;
  width: 148px;
  height: 148px;
  margin-top: -74px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #1f2235 0%, #0b0d17 65%, #171b2d 100%);
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.65);
  animation: spinVinyl 7s linear infinite;
  transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-med) ease;
}

.vinyl-disc__grooves {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    transparent 0 4px,
    rgba(255, 255, 255, 0.08) 4px 5px
  );
}

.vinyl-disc__center {
  position: absolute;
  inset: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-cobalt));
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.vinyl-disc__hole {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #090918;
}

@keyframes spinVinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.stage-card.is-before .vinyl-disc {
  opacity: 0.22;
  transform: translateX(-22px);
  animation-play-state: paused;
}

.album-sleeve {
  position: relative;
  z-index: 2;
  width: 152px;
  height: 152px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.6);
}

.album-sleeve__art {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2563EB 0%, #22D3EE 52%, #8B5CF6 100%);
  transition: background var(--dur-med) ease, filter var(--dur-med) ease;
}

.stage-card.is-before .album-sleeve__art {
  background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
}

.sleeve-emblem--raw { display: none; }
.stage-card.is-before .sleeve-emblem--organized { display: none; }
.stage-card.is-before .sleeve-emblem--raw { display: block; }

.cover-res-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(9, 9, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--accent-cyan);
}

.stage-card.is-before .cover-res-badge {
  color: var(--text-muted);
}

.track-meta-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meta-filename {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.22);
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  overflow-wrap: anywhere;
}

.stage-card.is-before .meta-filename {
  color: var(--accent-coral);
  background: var(--tint-coral);
  border-color: rgba(255, 107, 87, 0.28);
}

.meta-title {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.25;
  font-weight: 800;
}

.meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.meta-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  padding: 4px 9px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.meta-tag-chip b {
  color: var(--text-muted);
  font-weight: 500;
}

.meta-lyric-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.26);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.meta-lyric-bar svg {
  flex-shrink: 0;
  color: var(--accent-violet);
}

.stage-card.is-before .meta-lyric-bar {
  background: rgba(148, 163, 184, 0.08);
  border-color: var(--border-subtle);
  color: var(--text-muted);
}

.eq-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 20px;
  padding-top: 2px;
}

.eq-visualizer span {
  flex: 1;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-lime));
  transform-origin: bottom;
  animation: eqVisualizer 0.9s ease-in-out infinite alternate;
}

.eq-visualizer span:nth-child(2n) { animation-duration: 0.72s; background: linear-gradient(180deg, var(--accent-magenta), var(--accent-violet)); }
.eq-visualizer span:nth-child(3n) { animation-duration: 1.05s; background: linear-gradient(180deg, var(--accent-amber), var(--accent-lime)); }
.eq-visualizer span:nth-child(1) { animation-delay: -0.1s; }
.eq-visualizer span:nth-child(4) { animation-delay: -0.45s; }
.eq-visualizer span:nth-child(7) { animation-delay: -0.25s; }
.eq-visualizer span:nth-child(10) { animation-delay: -0.6s; }

@keyframes eqVisualizer {
  0% { transform: scaleY(0.2); }
  100% { transform: scaleY(0.98); }
}

.stage-card.is-before .eq-visualizer span {
  animation-play-state: paused;
  transform: scaleY(0.18);
  opacity: 0.35;
}

.stage-track-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-4);
}

.track-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}

.track-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.track-chip.is-selected {
  background: rgba(34, 211, 238, 0.14);
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.track-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ── 2. Marquee Strip ───────────────────────────────────────────────────── */
.marquee-band {
  position: relative;
  z-index: 1;
  border-block: 1px solid var(--border-subtle);
  background: rgba(18, 18, 42, 0.72);
  padding-block: 16px;
  overflow: hidden;
}

.marquee-viewport {
  display: flex;
  width: max-content;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 12px;
  animation: marqueeScroll 36s linear infinite;
}

.marquee-band:hover .marquee-track,
.marquee-band:focus-within .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.format-pill {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(9, 9, 24, 0.8);
  white-space: nowrap;
}

.pill-cyan { color: var(--accent-cyan); border-color: rgba(34, 211, 238, 0.32); }
.pill-violet { color: #C4B5FD; border-color: rgba(139, 92, 246, 0.36); }
.pill-lime { color: var(--accent-lime); border-color: rgba(34, 229, 132, 0.32); }
.pill-cobalt { color: #93B4FF; border-color: rgba(79, 123, 255, 0.38); }
.pill-amber { color: var(--accent-amber); border-color: rgba(255, 184, 0, 0.32); }
.pill-sky { color: var(--accent-sky); border-color: rgba(56, 189, 248, 0.32); }
.pill-magenta { color: #FF7BC0; border-color: rgba(255, 59, 154, 0.34); }
.pill-coral { color: #FF9485; border-color: rgba(255, 107, 87, 0.34); }

/* ── 2b. Real Desktop Workspace Preview ────────────────────────────────── */
.preview-stage-mat {
  border-radius: var(--radius-xl);
  padding: clamp(12px, 2.4vw, 26px);
  background: linear-gradient(
    135deg,
    rgba(79, 123, 255, 0.28) 0%,
    rgba(34, 211, 238, 0.22) 34%,
    rgba(139, 92, 246, 0.26) 68%,
    rgba(255, 59, 154, 0.22) 100%
  );
  border: 1px solid rgba(148, 163, 184, 0.26);
  box-shadow: 0 28px 64px -24px rgba(3, 4, 18, 0.9),
              0 0 68px -28px rgba(34, 211, 238, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.22);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.studio-window {
  border-radius: var(--radius-lg);
  background: rgba(11, 13, 28, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 54px -18px rgba(2, 4, 16, 0.88);
  overflow: hidden;
}

.studio-window__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(18, 20, 44, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.studio-window__chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 220px;
}

.chrome-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.chrome-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.chrome-app-icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  flex-shrink: 0;
}

.studio-window__title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-zoom-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding-inline: 14px;
  border-radius: var(--radius-pill);
  background: rgba(34, 211, 238, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.38);
  color: var(--accent-cyan);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) ease;
}

.studio-zoom-btn:hover {
  background: var(--accent-cyan);
  color: var(--on-cyan);
  transform: translateY(-1px);
}

.studio-window__viewport {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: #F4F6FB;
  cursor: zoom-in;
  overflow: hidden;
  text-align: left;
}

.studio-window__img {
  width: 100%;
  height: auto;
  filter: brightness(0.96) contrast(1.01);
  transition: transform 0.35s var(--ease-out), opacity var(--dur-fast) ease, filter var(--dur-fast) ease;
}

.studio-window__img.is-switching {
  opacity: 0.55;
}

.studio-window__viewport:hover .studio-window__img {
  transform: scale(1.01);
  filter: brightness(0.98) contrast(1.02);
}

.viewport-hint {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(9, 9, 24, 0.86);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}

.studio-window__viewport:hover .viewport-hint {
  border-color: var(--accent-cyan);
  background: rgba(9, 9, 24, 0.95);
}

.studio-window__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(12, 14, 32, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.status-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-pill-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(34, 229, 132, 0.12);
  border: 1px solid rgba(34, 229, 132, 0.3);
  color: var(--accent-lime);
}

.status-tip {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.preview-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.preview-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: center;
  text-align: left;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: rgba(13, 14, 34, 0.9);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) ease,
              background-color var(--dur-fast) ease,
              box-shadow var(--dur-fast) ease;
}

.preview-card:hover {
  transform: translateY(-2px);
  background: rgba(20, 22, 50, 0.95);
  border-color: var(--border-strong);
}

.preview-card.is-active {
  background: rgba(20, 24, 56, 0.96);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.25),
              0 14px 32px -16px rgba(34, 211, 238, 0.45);
}

.preview-card__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #F4F6FB;
}

.preview-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  filter: brightness(0.95);
}

.preview-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.preview-card__kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.04em;
}

.preview-card__title {
  font-size: 1.02rem;
  line-height: 1.35;
  font-weight: 800;
  color: var(--text-primary);
}

.preview-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.preview-tag {
  font-size: 0.74rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.preview-card.is-active .preview-tag {
  border-color: rgba(34, 211, 238, 0.28);
}

/* ── HD Lightbox Modal ──────────────────────────────────────────────────── */
body.modal-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: var(--space-4);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 18, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  max-height: 92vh;
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.85);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.lightbox__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.lightbox__badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--tint-cyan);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.lightbox__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lightbox__close {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.lightbox__close:hover {
  background: rgba(255, 59, 154, 0.22);
  border-color: var(--accent-magenta);
}

.lightbox__stage {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 12px;
  min-height: 0;
}

.lightbox__nav {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) ease;
}

.lightbox__nav:hover {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: var(--on-cyan);
}

.lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lightbox__img {
  width: auto;
  max-width: 100%;
  max-height: 74vh;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #F4F6FB;
  filter: brightness(0.98) contrast(1.01);
}

.lightbox__caption {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-align: center;
}

/* ── 3. Bento Grid ──────────────────────────────────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-5);
}

.bento-card {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-5);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease-out),
              border-color var(--dur-med) ease,
              background-color var(--dur-med) ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.bento-span-7 { grid-column: span 7; }
.bento-span-5 { grid-column: span 5; }
.bento-span-4 { grid-column: span 4; }

.bento-card.accent-cyan:hover { border-color: rgba(34, 211, 238, 0.5); }
.bento-card.accent-magenta:hover { border-color: rgba(255, 59, 154, 0.5); }
.bento-card.accent-amber:hover { border-color: rgba(255, 184, 0, 0.5); }
.bento-card.accent-lime:hover { border-color: rgba(34, 229, 132, 0.5); }
.bento-card.accent-violet:hover { border-color: rgba(139, 92, 246, 0.5); }
.bento-card.accent-sky:hover { border-color: rgba(56, 189, 248, 0.5); }
.bento-card.accent-coral:hover { border-color: rgba(255, 107, 87, 0.5); }

.bento-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.bento-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.bento-title {
  margin: 0 0 10px;
  font-size: 1.3rem;
  line-height: 1.3;
  font-weight: 800;
}

.bento-text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.source-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-4);
}

.source-chip {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.bento-visual {
  border-radius: var(--radius-md);
  background: rgba(9, 9, 24, 0.65);
  border: 1px solid var(--border-subtle);
  padding: var(--space-4);
}

.radar-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
}

.radar-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.radar-name {
  flex: 1;
  color: var(--text-secondary);
  min-width: 0;
}

.radar-score {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-lime);
}

.visual-cutoff {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cutoff-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.cutoff-track {
  height: 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.cutoff-fill {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
}

.fill-true {
  width: 96%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-lime));
}

.fill-fake {
  width: 66%;
  background: linear-gradient(90deg, var(--accent-amber), var(--accent-magenta));
}

.visual-cover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-chip {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--tint-amber);
  border: 1px solid rgba(255, 184, 0, 0.3);
  color: var(--accent-amber);
}

.tag-mock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tag-mock-field {
  padding: 9px 11px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.field-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.field-val {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-primary);
}

.field-keep { color: var(--accent-amber); }
.field-edited { color: var(--accent-lime); }

/* ── 4. Interactive Playground ──────────────────────────────────────────── */
.playground-shell {
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
}

.playground-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}

.pg-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--dur-fast) ease;
}

.pg-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.pg-tab.is-active {
  background: var(--accent-lime);
  border-color: var(--accent-lime);
  color: var(--on-lime);
}

.pg-panel[hidden] {
  display: none;
}

/* Panel 1: Renamer */
.renamer-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: var(--space-5);
}

.renamer-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--dur-fast) ease;
}

.preset-pill:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.preset-pill.is-active {
  background: var(--tint-cyan);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.renamer-input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pattern-input {
  flex: 1 1 280px;
  min-width: 0;
  height: 44px;
  padding-inline: 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--text-primary);
}

.pattern-input:focus {
  border-color: var(--accent-cyan);
}

.token-hints {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.token-hints code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-amber);
}

.renamer-table-wrap {
  border-radius: var(--radius-md);
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.renamer-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.renamer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.renamer-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) 28px minmax(0, 1.25fr);
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.renamer-row:last-child {
  border-bottom: 0;
}

.renamer-src {
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.renamer-arrow {
  color: var(--accent-lime);
  text-align: center;
  font-weight: 700;
}

.renamer-dst {
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.tok-dir { color: var(--accent-violet); }
.tok-num { color: var(--accent-amber); }
.tok-var { color: var(--accent-cyan); }
.tok-ext { color: var(--accent-lime); font-weight: 600; }

/* Panel 2: FFT Spectrogram */
.fft-toolbar {
  margin-bottom: var(--space-4);
}

.fft-mode-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fft-mode-btn {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--dur-fast) ease;
}

.fft-mode-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.fft-mode-btn.is-active {
  background: var(--tint-cyan);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.fft-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
  gap: var(--space-5);
  align-items: stretch;
}

.fft-canvas-box {
  border-radius: var(--radius-md);
  background: #060612;
  border: 1px solid var(--border-subtle);
  padding: 12px;
  min-height: 290px;
  display: flex;
}

.fft-canvas-box canvas {
  width: 100%;
  height: 270px;
  border-radius: 10px;
}

.fft-verdict-card {
  border-radius: var(--radius-md);
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.verdict-kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.verdict-title {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--accent-lime);
}

.verdict-title.is-fake {
  color: var(--accent-magenta);
}

.verdict-title.is-cd {
  color: var(--accent-cyan);
}

.verdict-stats {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.verdict-stats dt {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.verdict-stats dd {
  margin: 2px 0 0;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
}

.verdict-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Panel 3: Smart Deduplicator */
.dedupe-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: var(--space-5);
}

.dedupe-strategy-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.strategy-btn {
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--dur-fast) ease;
}

.strategy-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.strategy-btn.is-active {
  background: var(--tint-violet);
  border-color: var(--accent-violet);
  color: #DDD6FE;
}

.dedupe-summary {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--tint-lime);
  border: 1px solid rgba(34, 229, 132, 0.28);
}

.dedupe-summary strong {
  color: var(--accent-lime);
}

.dedupe-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.dedupe-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}

.dedupe-item.is-winner {
  border-color: rgba(34, 229, 132, 0.55);
  background: linear-gradient(90deg, rgba(34, 229, 132, 0.1), rgba(9, 9, 24, 0.92));
}

.dedupe-item.is-recycle {
  opacity: 0.78;
  border-color: rgba(255, 107, 87, 0.28);
}

.dedupe-info {
  min-width: 0;
  flex: 1 1 280px;
}

.dedupe-file {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.dedupe-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dedupe-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.dedupe-item.is-winner .dedupe-badge {
  background: var(--accent-lime);
  color: var(--on-lime);
}

.dedupe-item.is-recycle .dedupe-badge {
  background: var(--tint-coral);
  border: 1px solid rgba(255, 107, 87, 0.35);
  color: #FFA698;
}

/* ── 5. Audio Format Matrix ─────────────────────────────────────────────── */
.format-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: var(--space-6);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--dur-fast) ease;
}

.filter-pill:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.filter-pill.is-active {
  background: var(--accent-amber);
  border-color: var(--accent-amber);
  color: var(--on-amber);
}

.format-count {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.format-card {
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: var(--space-5);
  transition: transform var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.format-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.format-card.is-hidden {
  display: none;
}

.format-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.format-ext {
  font-family: var(--font-mono);
  font-size: 0.96rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.format-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  white-space: nowrap;
}

.format-name {
  margin: 0 0 6px;
  font-size: 1.06rem;
  font-weight: 700;
}

.format-tag-spec {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.perf-ribbon {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, rgba(79, 123, 255, 0.14), rgba(34, 211, 238, 0.1), rgba(34, 229, 132, 0.12));
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.perf-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.perf-item svg {
  flex-shrink: 0;
  color: var(--accent-cyan);
  margin-top: 2px;
}

.perf-item strong {
  color: var(--text-primary);
}

/* ── 6. Scenarios Grid ──────────────────────────────────────────────────── */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.scenario-card {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: var(--space-6);
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-med) ease;
}

.scenario-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.scenario-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.scenario-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 800;
}

.scenario-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* ── 7. Platform Strip & Festival CTA ───────────────────────────────────── */
.platform-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.platform-card {
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: var(--space-5);
}

.platform-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--accent-cyan);
}

.platform-head h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-primary);
}

.platform-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cta-banner {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(36px, 5vw, 64px);
  background: linear-gradient(135deg, #16225A 0%, #24174E 48%, #0E2936 100%);
  border: 1px solid rgba(34, 211, 238, 0.35);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-align: center;
}

.cta-banner__glow {
  position: absolute;
  inset: -40% 10% auto;
  height: 220px;
  background: radial-gradient(circle, rgba(34, 229, 132, 0.25), rgba(255, 59, 154, 0.16), transparent 70%);
  pointer-events: none;
}

.cta-banner__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-inline: auto;
}

.cta-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-lime);
  margin-bottom: var(--space-4);
}

.cta-title {
  margin: 0 0 var(--space-3);
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  line-height: 1.2;
  font-weight: 900;
}

.cta-sub {
  margin: 0 0 var(--space-6);
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.cta-url-hint {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.cta-url-hint a {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  padding-block: var(--space-8);
  background: rgba(9, 9, 24, 0.9);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  border-radius: 8px;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.footer-tagline {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-download-link {
  color: var(--accent-lime);
  font-weight: 700;
}

/* ── Scroll Reveal ──────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive Breakpoints (1024px, 768px, 375px) ──────────────────────── */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bento-span-7,
  .bento-span-5 {
    grid-column: span 6;
  }

  .bento-span-4 {
    grid-column: span 6;
  }

  .bento-grid > article:last-child {
    grid-column: span 12;
  }

  .scenario-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .format-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .perf-ribbon,
  .platform-strip,
  .fft-stage {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .main-nav,
  .header-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .preview-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .bento-span-7,
  .bento-span-5,
  .bento-span-4,
  .bento-grid > article:last-child {
    grid-column: span 12;
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: var(--space-4);
  }

  .header-pill {
    padding-inline: 14px;
  }

  .motion-label {
    display: none;
  }

  .preview-stage-mat {
    padding: 10px;
    border-radius: var(--radius-lg);
  }

  .preview-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .viewport-hint {
    right: 10px;
    bottom: 10px;
    padding: 6px 11px;
    font-size: 0.74rem;
  }

  .lightbox__stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .lightbox__figure {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .lightbox__nav--prev {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
  }

  .lightbox__nav--next {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vinyl-showcase {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }

  .vinyl-disc {
    left: 62px;
    top: 22px;
    margin-top: 0;
    width: 132px;
    height: 132px;
  }

  .album-sleeve {
    width: 136px;
    height: 136px;
  }

  .tag-mock-grid,
  .format-grid,
  .scenario-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .playground-shell {
    padding: var(--space-4);
  }

  .renamer-head {
    display: none;
  }

  .renamer-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .renamer-arrow {
    text-align: left;
  }
}

/* ── Reduced Motion & Manual Motion Pause ───────────────────────────────── */
body.motion-paused .aurora,
body.motion-paused .eq-mini span,
body.motion-paused .vinyl-disc,
body.motion-paused .eq-visualizer span,
body.motion-paused .marquee-track {
  animation-play-state: paused !important;
}

body.motion-paused .reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .aurora,
  .eq-mini span,
  .vinyl-disc,
  .eq-visualizer span,
  .marquee-track {
    animation: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .btn,
  .bento-card,
  .format-card,
  .scenario-card,
  .preview-card,
  .studio-window__img,
  .studio-zoom-btn,
  .lightbox__nav {
    transition: none !important;
  }
}
