/* ================= 4 LUXURY EDITORIAL PALETTES ================= */
/* 1. ALABASTER — Sculpted Studio Stone Desk + Raised Ivory Objects + Leica Vermilion */
:root,
:root[data-palette="alabaster"] {
  --bg: #e4e1d8;
  --bg-light:
    radial-gradient(88% 58% at 28% -6%, rgba(255, 254, 250, 0.92) 0%, rgba(255, 254, 250, 0.34) 36%, transparent 66%),
    radial-gradient(56% 52% at 88% 38%, rgba(226, 166, 142, 0.19) 0%, transparent 62%),
    radial-gradient(64% 52% at 12% 96%, rgba(132, 126, 114, 0.22) 0%, transparent 64%),
    linear-gradient(164deg, #eceae2 0%, #e4e1d8 48%, #d9d6cc 100%);
  --bg-elev: #fcfbf8;
  --surface: #faf9f5;
  --surface-subtle: #dedcd4;
  --surface-hover: #f2f0ea;
  --panel-bg: linear-gradient(180deg, rgba(253, 252, 249, 0.98) 0%, rgba(247, 245, 240, 0.96) 100%);
  --bar-bg: linear-gradient(180deg, rgba(253, 252, 249, 0.95) 0%, rgba(246, 244, 239, 0.93) 100%);
  --ink: #111215;
  --ink-soft: #3f424b;
  --mute: #757780;
  --line: rgba(17, 18, 21, 0.075);
  --line-edge: rgba(17, 18, 21, 0.125);
  --line-strong: rgba(17, 18, 21, 0.19);
  --bevel-top: rgba(255, 255, 255, 0.88);
  --bevel-bottom: rgba(17, 18, 21, 0.055);
  --recess-shadow: inset 0 1px 3px rgba(17, 18, 21, 0.065);
  --cap-bg: rgba(255, 255, 255, 0.72);
  --cap-bg-hover: rgba(255, 255, 255, 0.96);
  --cap-shadow: 0 1px 2px rgba(17, 18, 21, 0.045);
  --acc: #141519;
  --acc-grad: linear-gradient(180deg, #1d1f24 0%, #111215 100%);
  --acc-tint: #d9462b;
  --acc-soft: rgba(217, 70, 43, 0.085);
  --on: #fcfbf8;
  --hero-bg: #faf9f5;
  --hero-pattern:
    radial-gradient(62% 110% at 86% 12%, rgba(217, 70, 43, 0.095), transparent 58%),
    radial-gradient(50% 95% at 8% 96%, rgba(17, 18, 21, 0.045), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f4f2ec 100%);
  --hero-scrim: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(229, 227, 219, 0.18) 100%);
  --hero-ink: #111215;
  --hero-ink-soft: #666972;
  --wave-color: #d9462b;
  --ambient-rgb: 217, 70, 43;
  --ambient-opacity: 0.075;
  --shadow-card: 0 1px 2px rgba(17, 18, 21, 0.07), 0 8px 18px -4px rgba(17, 18, 21, 0.09), 0 20px 38px -12px rgba(17, 18, 21, 0.1);
  --shadow-float: 0 1px 2px rgba(17, 18, 21, 0.06), 0 12px 28px -6px rgba(17, 18, 21, 0.1), 0 30px 60px -18px rgba(17, 18, 21, 0.12);
  --shadow-dock: 0 1px 3px rgba(17, 18, 21, 0.08), 0 14px 32px -6px rgba(17, 18, 21, 0.14), 0 32px 68px -14px rgba(17, 18, 21, 0.15);
  color-scheme: light;
}

/* 2. MATCHA — Sculpted Celadon Stone + Porcelain Panels + Deep Jade */
:root[data-palette="matcha"] {
  --bg: #c8d3c2;
  --bg-light:
    radial-gradient(86% 56% at 28% -6%, rgba(246, 252, 242, 0.76) 0%, rgba(246, 252, 242, 0.24) 36%, transparent 66%),
    radial-gradient(56% 52% at 88% 42%, rgba(34, 118, 82, 0.17) 0%, transparent 62%),
    radial-gradient(66% 54% at 14% 98%, rgba(24, 52, 36, 0.22) 0%, transparent 66%),
    linear-gradient(162deg, #d6e0d0 0%, #c8d3c2 50%, #b8c5b1 100%);
  --bg-elev: #eef3eb;
  --surface: #ecf1e9;
  --surface-subtle: #bfd0ba;
  --surface-hover: #f4f8f2;
  --panel-bg: linear-gradient(180deg, rgba(242, 246, 239, 0.96) 0%, rgba(232, 239, 228, 0.94) 100%);
  --bar-bg: linear-gradient(180deg, rgba(242, 246, 239, 0.95) 0%, rgba(232, 239, 228, 0.93) 100%);
  --ink: #112018;
  --ink-soft: #31483b;
  --mute: #526a5d;
  --line: rgba(17, 32, 24, 0.09);
  --line-edge: rgba(17, 32, 24, 0.15);
  --line-strong: rgba(17, 32, 24, 0.22);
  --bevel-top: rgba(255, 255, 255, 0.72);
  --bevel-bottom: rgba(17, 32, 24, 0.075);
  --recess-shadow: inset 0 1px 3px rgba(17, 32, 24, 0.08);
  --cap-bg: rgba(248, 251, 246, 0.68);
  --cap-bg-hover: rgba(255, 255, 255, 0.92);
  --cap-shadow: 0 1px 2px rgba(17, 32, 24, 0.055);
  --acc: #142b1f;
  --acc-grad: linear-gradient(180deg, #1c3a2b 0%, #11241a 100%);
  --acc-tint: #1b6948;
  --acc-soft: rgba(27, 105, 72, 0.11);
  --on: #f1f6ef;
  --hero-bg: #e7eee3;
  --hero-pattern:
    radial-gradient(60% 105% at 84% 16%, rgba(27, 105, 72, 0.16), transparent 58%),
    linear-gradient(180deg, #f2f6ef 0%, #dee7d9 100%);
  --hero-scrim: linear-gradient(180deg, rgba(202, 212, 196, 0) 0%, rgba(202, 212, 196, 0.18) 100%);
  --hero-ink: #112018;
  --hero-ink-soft: #486153;
  --wave-color: #1b6948;
  --ambient-rgb: 27, 105, 72;
  --ambient-opacity: 0.1;
  --shadow-card: 0 1px 2px rgba(17, 32, 24, 0.08), 0 10px 20px -4px rgba(17, 32, 24, 0.11), 0 22px 42px -12px rgba(17, 32, 24, 0.12);
  --shadow-float: 0 1px 2px rgba(17, 32, 24, 0.07), 0 14px 30px -6px rgba(17, 32, 24, 0.12), 0 32px 64px -18px rgba(17, 32, 24, 0.14);
  --shadow-dock: 0 1px 4px rgba(17, 32, 24, 0.1), 0 16px 34px -6px rgba(17, 32, 24, 0.15), 0 34px 70px -14px rgba(17, 32, 24, 0.18);
  color-scheme: light;
}

/* 3. FJORD — Brushed Nordic Petrol Slate + Glacier Ice */
:root[data-palette="fjord"] {
  --bg: #10171d;
  --bg-light:
    radial-gradient(82% 54% at 26% -8%, rgba(158, 208, 234, 0.24) 0%, rgba(110, 166, 198, 0.08) 38%, transparent 68%),
    radial-gradient(54% 50% at 86% 46%, rgba(74, 140, 174, 0.19) 0%, transparent 60%),
    radial-gradient(60% 48% at 14% 94%, rgba(124, 160, 184, 0.1) 0%, transparent 62%),
    linear-gradient(160deg, #18232c 0%, #10171d 52%, #0a0f14 100%);
  --bg-elev: #1a242c;
  --surface: #1b262e;
  --surface-subtle: #141d24;
  --surface-hover: #212e38;
  --panel-bg: linear-gradient(180deg, rgba(28, 39, 48, 0.94) 0%, rgba(21, 30, 37, 0.95) 100%);
  --bar-bg: linear-gradient(180deg, rgba(28, 39, 48, 0.92) 0%, rgba(20, 28, 35, 0.94) 100%);
  --ink: #edf2f6;
  --ink-soft: #b2c2cc;
  --mute: #768b98;
  --line: rgba(208, 228, 240, 0.085);
  --line-edge: rgba(208, 228, 240, 0.14);
  --line-strong: rgba(208, 228, 240, 0.22);
  --bevel-top: rgba(220, 238, 250, 0.11);
  --bevel-bottom: rgba(0, 0, 0, 0.28);
  --recess-shadow: inset 0 1px 4px rgba(4, 8, 12, 0.42);
  --cap-bg: rgba(255, 255, 255, 0.045);
  --cap-bg-hover: rgba(255, 255, 255, 0.09);
  --cap-shadow: 0 1px 2px rgba(4, 8, 12, 0.25);
  --acc: #edf2f6;
  --acc-grad: linear-gradient(180deg, #f5f9fc 0%, #dce6ee 100%);
  --acc-tint: #96c4da;
  --acc-soft: rgba(150, 196, 218, 0.14);
  --on: #11181d;
  --hero-bg: #19232a;
  --hero-pattern:
    radial-gradient(62% 110% at 84% 16%, rgba(150, 196, 218, 0.2), transparent 58%),
    linear-gradient(180deg, #212f39 0%, #151e25 100%);
  --hero-scrim: linear-gradient(180deg, rgba(17, 24, 30, 0.05) 0%, rgba(17, 24, 30, 0.4) 100%);
  --hero-ink: #edf2f6;
  --hero-ink-soft: #8aa3b2;
  --wave-color: #96c4da;
  --ambient-rgb: 150, 196, 218;
  --ambient-opacity: 0.14;
  --shadow-card: 0 2px 4px rgba(4, 8, 12, 0.36), 0 16px 34px -6px rgba(4, 8, 12, 0.5);
  --shadow-float: 0 2px 6px rgba(4, 8, 12, 0.38), 0 26px 60px -12px rgba(4, 8, 12, 0.64);
  --shadow-dock: 0 4px 14px rgba(4, 8, 12, 0.46), 0 26px 66px -10px rgba(4, 8, 12, 0.72);
  color-scheme: dark;
}

/* 4. NOIR — Anodized Matte Obsidian + Platinum Monochrome */
:root[data-palette="noir"] {
  --bg: #08080b;
  --bg-light:
    radial-gradient(84% 52% at 32% -10%, rgba(235, 238, 250, 0.15) 0%, rgba(176, 182, 204, 0.05) 36%, transparent 66%),
    radial-gradient(54% 50% at 88% 42%, rgba(146, 156, 186, 0.115) 0%, transparent 58%),
    radial-gradient(58% 48% at 10% 94%, rgba(186, 176, 168, 0.07) 0%, transparent 60%),
    linear-gradient(158deg, #131318 0%, #09090d 54%, #050507 100%);
  --bg-elev: #131316;
  --surface: #131316;
  --surface-subtle: #0e0e11;
  --surface-hover: #1a1a1f;
  --panel-bg: linear-gradient(180deg, rgba(23, 23, 28, 0.94) 0%, rgba(16, 16, 20, 0.96) 100%);
  --bar-bg: linear-gradient(180deg, rgba(23, 23, 28, 0.92) 0%, rgba(15, 15, 19, 0.95) 100%);
  --ink: #f5f5f7;
  --ink-soft: #b2b2bc;
  --mute: #74747e;
  --line: rgba(255, 255, 255, 0.08);
  --line-edge: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.2);
  --bevel-top: rgba(255, 255, 255, 0.1);
  --bevel-bottom: rgba(0, 0, 0, 0.42);
  --recess-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.5);
  --cap-bg: rgba(255, 255, 255, 0.045);
  --cap-bg-hover: rgba(255, 255, 255, 0.09);
  --cap-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  --acc: #f5f5f7;
  --acc-grad: linear-gradient(180deg, #ffffff 0%, #e4e4ec 100%);
  --acc-tint: #e6e6ee;
  --acc-soft: rgba(255, 255, 255, 0.085);
  --on: #09090b;
  --hero-bg: #111114;
  --hero-pattern:
    radial-gradient(60% 105% at 84% 16%, rgba(255, 255, 255, 0.085), transparent 56%),
    linear-gradient(180deg, #18181d 0%, #0f0f12 100%);
  --hero-scrim: linear-gradient(180deg, rgba(8, 8, 10, 0.06) 0%, rgba(8, 8, 10, 0.42) 100%);
  --hero-ink: #f5f5f7;
  --hero-ink-soft: #82828d;
  --wave-color: #e6e6ee;
  --ambient-rgb: 210, 212, 224;
  --ambient-opacity: 0.085;
  --shadow-card: 0 2px 4px rgba(0, 0, 0, 0.42), 0 18px 38px -6px rgba(0, 0, 0, 0.58);
  --shadow-float: 0 2px 6px rgba(0, 0, 0, 0.46), 0 26px 62px -12px rgba(0, 0, 0, 0.72);
  --shadow-dock: 0 4px 16px rgba(0, 0, 0, 0.54), 0 26px 68px -10px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

:root {
  --danger: #df5454;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  scrollbar-gutter: stable;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--bg);
  background-image: var(--bg-light);
  background-attachment: fixed;
  color: var(--ink);
  font: 400 14px/1.5 "Manrope", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
  transition: background-color 0.38s var(--ease-out), color 0.38s var(--ease-out);
}

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

button {
  touch-action: manipulation;
}

:focus-visible {
  outline: 2px solid var(--acc-tint);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 99px;
  background: var(--acc);
  color: var(--on);
  font-weight: 600;
  text-decoration: none;
}

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

/* Tactile fine paper / anodized metal grain (prevents gradient banding) + studio room ambient */
.tactile-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

.page-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(54% 48% at 76% 16%, rgba(var(--ambient-rgb), calc(var(--ambient-opacity) * 1.1)), transparent 74%),
    radial-gradient(50% 48% at 20% 68%, rgba(var(--playing-rgb, var(--ambient-rgb)), 0.045), transparent 76%);
  transition: opacity 0.5s var(--ease-out);
}

.page-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: calc(22px + env(safe-area-inset-top, 0px)) clamp(16px, 3vw, 36px) 144px;
}

/* ================= ARCHITECTURAL DISPLAY HERO ================= */
.hero {
  position: relative;
  min-height: clamp(206px, 24.5svh, 254px);
  border-radius: 20px;
  border: 0;
  background: var(--hero-bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px clamp(22px, 3vw, 34px) 24px;
  overflow: hidden;
  isolation: isolate;
  contain: layout paint;
  box-shadow: var(--shadow-float);
  color: var(--hero-ink);
  transition: background-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

/* Smooth analytical 1px border on dedicated overlay (avoids Skia inset-shadow double-clipping on curves) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--line-edge);
  box-shadow: inset 0 0 0.5px 0 var(--line);
  pointer-events: none;
  z-index: 4;
  transition: border-color 0.3s var(--ease-out);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--hero-pattern);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Whisper-quiet architectural acoustic rings watermark (hidden when custom photo is uploaded) */
.hero-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  color: var(--hero-ink);
  opacity: 0.065;
  pointer-events: none;
}

.hero.has-photo .hero-rings {
  opacity: 0;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--hero-scrim);
}

.hero.has-photo {
  color: #f6f6f8;
}

.hero.has-photo::after {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0.75px 0 rgba(255, 255, 255, 0.06);
}

.hero.has-photo .hero-scrim {
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(8, 10, 14, 0.15) 0%, rgba(8, 10, 14, 0.56) 100%),
    linear-gradient(180deg, rgba(8, 10, 14, 0.24) 0%, rgba(8, 10, 14, 0.72) 100%);
}

.hero-top,
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.hero.has-photo .hero-top {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.hero-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font: 500 10.5px/1 "JetBrains Mono", monospace;
  color: var(--hero-ink-soft);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-mark span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero.has-photo .hero-mark {
  color: rgba(246, 246, 248, 0.84);
}

.hero-mark-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
  background: var(--mute);
  opacity: 0.5;
  transition: background-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), opacity 0.25s var(--ease-out);
}

body.pl .hero-mark-dot {
  background: var(--acc-tint);
  opacity: 1;
  box-shadow: 0 0 8px var(--acc-tint);
}

.vibe-btn {
  flex: none;
  height: 31px;
  padding: 0 13px;
  border-radius: 99px;
  border: 1px solid var(--line-edge);
  background: var(--cap-bg);
  background-clip: padding-box;
  color: var(--hero-ink);
  box-shadow: var(--cap-shadow);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.16s var(--ease-out), border-color 0.16s var(--ease-out), transform 0.14s var(--ease-out);
}

.hero.has-photo .vibe-btn {
  background: rgba(12, 12, 15, 0.42);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
  color: #f6f6f8;
  backdrop-filter: blur(12px);
}

.vibe-btn svg {
  width: 13px;
  height: 13px;
}

.vibe-btn:hover {
  background: var(--cap-bg-hover);
  border-color: var(--line-strong);
}

.hero.has-photo .vibe-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.44);
}

.vibe-btn:active {
  transform: scale(0.95);
}

.hero-content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
  flex: 1 1 auto;
  min-width: 0;
}

/* Dramatic Editorial Typography Contrast: SemiBold 600 + ExtraLight 200 */
.brand-title {
  margin: 0;
  flex: none;
  font: 600 clamp(42px, 5.4vw, 70px)/1 "Manrope", system-ui, sans-serif;
  letter-spacing: -0.012em;
}

.brand-slot {
  position: relative;
  display: inline-grid;
  align-items: baseline;
  vertical-align: bottom;
  padding: 0.08em 0 0.12em;
  margin: -0.08em 0 -0.12em;
}

.brand-line {
  grid-area: 1 / 1;
  justify-self: start;
  display: inline-block;
  white-space: nowrap;
  transform-origin: left center;
  will-change: transform, opacity, filter;
}

.brand-line em {
  font-style: normal;
  font-weight: 200;
  letter-spacing: -0.005em;
  color: var(--hero-ink-soft);
  transition: color 0.65s var(--ease-out);
}

.hero.has-photo .brand-line em {
  color: rgba(246, 246, 248, 0.8);
}

/* Soft optical rack-focus dissolve: short vertical travel + micro-depth + clean blur fade */
.brand-default {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  filter: blur(0px);
  transition:
    transform 0.68s var(--ease-out) 0.09s,
    opacity 0.56s var(--ease-out) 0.09s,
    filter 0.64s var(--ease-out) 0.09s;
}

.brand-active {
  transform: translate3d(0, 26%, 0) scale(0.98);
  opacity: 0;
  filter: blur(10px);
  pointer-events: none;
  transition:
    transform 0.54s var(--ease-out),
    opacity 0.42s var(--ease-out),
    filter 0.5s var(--ease-out);
}

body.brand-pl .brand-default {
  transform: translate3d(0, -26%, 0) scale(0.98);
  opacity: 0;
  filter: blur(10px);
  pointer-events: none;
  transition:
    transform 0.54s var(--ease-out),
    opacity 0.42s var(--ease-out),
    filter 0.5s var(--ease-out);
}

body.brand-pl .brand-active {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  filter: blur(0px);
  pointer-events: auto;
  transition:
    transform 0.68s var(--ease-out) 0.09s,
    opacity 0.56s var(--ease-out) 0.09s,
    filter 0.64s var(--ease-out) 0.09s;
}

body.brand-pl .brand-active em {
  color: var(--acc-tint);
}

/* Complex Interwoven 3D Ribbon Waveform */
.hero-wave {
  flex: 1 1 200px;
  min-width: 140px;
  max-width: 380px;
  height: 84px;
  margin-bottom: -10px;
  display: block;
  transform: translate3d(0, 0, 0);
  transition: transform 0.72s var(--ease-drawer) 0.06s;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

body.brand-pl .hero-wave {
  transform: translate3d(var(--wave-shift, 0px), 0, 0);
}

/* Ultra-Clean Palette Tray + Precision Hairline Gradient Dots */
.palette-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 99px;
  border: 1px solid var(--line-edge);
  background: var(--cap-bg);
  background-clip: padding-box;
  box-shadow: var(--cap-shadow);
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.hero.has-photo .palette-picker {
  background: rgba(12, 12, 15, 0.48);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.swatch-dot {
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(17, 18, 21, 0.16);
  cursor: pointer;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}

:root[data-palette="fjord"] .swatch-dot,
:root[data-palette="noir"] .swatch-dot,
.hero.has-photo .swatch-dot {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.swatch-dot[data-set-palette="alabaster"] {
  background: linear-gradient(135deg, #ffffff 0%, #eae6dc 52%, #d9462b 100%);
}

.swatch-dot[data-set-palette="matcha"] {
  background: linear-gradient(135deg, #eff5ec 0%, #9fb99e 52%, #1b6948 100%);
}

.swatch-dot[data-set-palette="fjord"] {
  background: linear-gradient(135deg, #a6d3e8 0%, #2c4554 54%, #11181e 100%);
}

.swatch-dot[data-set-palette="noir"] {
  background: linear-gradient(135deg, #d8d8e2 0%, #393942 54%, #08080a 100%);
}

.swatch-dot:hover {
  transform: scale(1.12);
}

.swatch-dot:active {
  transform: scale(0.92);
}

.swatch-dot[aria-pressed="true"] {
  box-shadow: inset 0 0 0 1px rgba(17, 18, 21, 0.18), 0 0 0 2px var(--bg-elev), 0 0 0 3px var(--ink);
  transform: scale(1.04);
}

.hero.has-photo .swatch-dot[aria-pressed="true"] {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 0 0 2px rgba(12, 12, 15, 0.85), 0 0 0 3px rgba(255, 255, 255, 0.92);
}

/* ================= EDITORIAL UNDERLINE TABS ================= */
.controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 24px 0 26px;
  border-bottom: 1px solid var(--line);
}

.tabs {
  display: flex;
  align-items: center;
  gap: 26px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs button {
  position: relative;
  flex: none;
  border: 0;
  background: transparent;
  padding: 8px 0 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.018em;
  white-space: nowrap;
  color: var(--mute);
  cursor: pointer;
  transition: color 0.18s var(--ease-out);
}

.mobile-random-btn {
  display: none;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 30px;
  padding: 0 11px;
  margin-bottom: 6px;
  border-radius: 99px;
  border: 1px solid var(--line-edge);
  background: var(--cap-bg);
  background-clip: padding-box;
  box-shadow: var(--cap-shadow);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.16s var(--ease-out), border-color 0.16s var(--ease-out), color 0.16s var(--ease-out), transform 0.14s var(--ease-out);
}

.mobile-random-btn svg {
  width: 12px;
  height: 12px;
}

.mobile-random-btn:hover {
  color: var(--ink);
  background: var(--cap-bg-hover);
}

.mobile-random-btn:active {
  transform: scale(0.95);
}

.tabs button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease-out);
}

.tabs button:hover {
  color: var(--ink);
}

.tabs button.on {
  color: var(--ink);
  font-weight: 600;
}

.tabs button.on::after {
  transform: scaleX(1);
}

/* ================= STEADY 2-COLUMN WORKSPACE ================= */
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: 34px;
  align-items: start;
}

/* ================= TACTILE DIGIPAK / RECORD-SLEEVE CARDS ================= */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  --card-rgb: 120, 130, 145;
}

.card-trigger {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

/* Fixed square footprint: card NEVER shrinks or shifts! */
.cover-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

/* Subtle dynamic color aura beneath sleeve on hover or playback */
.cover-stage::before {
  content: "";
  position: absolute;
  inset: 22% 10% -8% 10%;
  border-radius: 18px;
  background: rgba(var(--card-rgb), 0.36);
  filter: blur(22px);
  opacity: 0;
  z-index: 0;
  transition: opacity 0.42s var(--ease-out);
}

.card:hover .cover-stage::before,
.card.is-active-audio .cover-stage::before {
  opacity: 0.56;
}

/* Holographic Iridescent CD Disc (emerges 1/3 ONLY on actively playing card!) */
.cd-disc {
  position: absolute;
  top: 12%;
  right: 12%;
  width: 76%;
  height: 76%;
  border-radius: 50%;
  z-index: 1;
  opacity: 0;
  transform: translateX(-8%) scale(0.92);
  transition: transform 0.56s var(--ease-out), opacity 0.36s var(--ease-out);
  box-shadow:
    0 12px 28px rgba(10, 14, 22, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  overflow: hidden;
  -webkit-mask-image: radial-gradient(circle at center, transparent 0 15.5%, #000 16.5% 100%);
  mask-image: radial-gradient(circle at center, transparent 0 15.5%, #000 16.5% 100%);
}

.cd-rotor {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at center,
      rgba(225, 232, 242, 0.8) 15.5% 24%,
      rgba(128, 138, 156, 0.48) 24.5% 26%,
      transparent 26.5% 96%,
      rgba(255, 255, 255, 0.75) 97% 100%),
    repeating-radial-gradient(circle at center,
      rgba(255, 255, 255, 0.055) 0 1.5px,
      rgba(0, 0, 0, 0.045) 1.5px 3px),
    conic-gradient(
      from 18deg,
      #dbe1ea 0deg,
      #b2e6ff 24deg,
      #c6b7ff 48deg,
      #ffbad6 74deg,
      #ffe5a8 98deg,
      #bbf2d4 124deg,
      #dde3ec 156deg,
      #c6cedb 182deg,
      #addfff 208deg,
      #c9bbff 234deg,
      #ffbad5 260deg,
      #ffe3a2 286deg,
      #b7f0d2 312deg,
      #dbe1ea 360deg
    );
}

/* Crisp catalog code ring around the CD spindle hole (code only, rotates with disc) */
.cd-label {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, transparent 0 28%, rgba(255, 255, 255, 0.3) 28% 31%, rgba(var(--card-rgb, var(--panel-rgb, var(--playing-rgb, 217, 70, 43))), 0.22) 31% 96%, rgba(17, 18, 21, 0.22) 97% 100%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 9%;
  pointer-events: none;
  z-index: 1;
}

.cd-label-code {
  font: 600 6.8px/1 "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(16, 17, 20, 0.82);
  text-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.58);
}

.card.is-active-audio .cd-rotor,
.card.is-active-audio .cd-label,
.panel.is-active-audio .panel-cd .cd-rotor,
.panel.is-active-audio .panel-cd .cd-label,
.focus-dialog .focus-cd .cd-rotor,
.focus-dialog .focus-cd .cd-label {
  animation: cdSpin 7.5s linear infinite;
  animation-play-state: paused;
}

.card.is-spinning .cd-rotor,
.card.is-spinning .cd-label,
.panel.is-spinning .panel-cd .cd-rotor,
.panel.is-spinning .panel-cd .cd-label,
.focus-dialog.is-spinning .focus-cd .cd-rotor,
.focus-dialog.is-spinning .focus-cd .cd-label {
  animation-play-state: running;
}

.cd-glare {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(
      from 35deg,
      rgba(255, 255, 255, 0.58) 0deg,
      transparent 34deg,
      transparent 165deg,
      rgba(255, 255, 255, 0.38) 195deg,
      transparent 230deg,
      transparent 345deg,
      rgba(255, 255, 255, 0.58) 360deg
    ),
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.4), transparent 55%);
  pointer-events: none;
}

.cv {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-origin: border-box;
  border: 0;
  box-shadow: var(--shadow-card);
  display: grid;
  place-items: center;
  overflow: hidden;
  transform-origin: left center;
  transform: scale(1);
  transition: transform 0.52s var(--ease-out), box-shadow 0.34s var(--ease-out);
}

/* Clean inset hairline border (zero edge repeat artifacts) */
.cv::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  z-index: 4;
  pointer-events: none;
  transition: box-shadow 0.24s var(--ease-out);
}

.card-cover-code {
  position: absolute;
  top: 12px;
  left: 13px;
  z-index: 5;
  font: 500 12px/1 "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(246, 246, 248, 0.9);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.56);
  pointer-events: none;
  user-select: none;
  transition: color 0.2s var(--ease-out), text-shadow 0.2s var(--ease-out);
}

.card-cover-code[data-tone="dark"] {
  color: rgba(18, 19, 22, 0.78);
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.42);
}

.card:hover:not(.is-active-audio) .cv {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08), 0 22px 44px -10px rgba(0, 0, 0, 0.18);
}

.card:hover:not(.is-active-audio) .cv::after {
  box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.card.is-open:not(.is-active-audio) .cv::after {
  box-shadow: inset 0 0 0 1.5px var(--ink), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.card-trigger:active .cv {
  transform: scale(0.98);
}

/* CD emerges ONLY on the playlist card that is actively playing a track, with realistic sleeve shadow cast onto CD! */
.card.is-active-audio .cv {
  transform: scale(0.78);
  box-shadow: 10px 6px 22px rgba(0, 0, 0, 0.34), var(--shadow-card);
}

.card.is-active-audio .cv::after {
  box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.card.is-active-audio .cd-disc {
  opacity: 1;
  transform: translateX(16%) scale(1);
}

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

.sleeve-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.card-playing-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 99px;
  background: rgba(12, 12, 15, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  color: #f4f4f6;
  font: 500 9.5px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out);
}

.card.is-spinning .card-playing-pill {
  opacity: 1;
  transform: scale(1);
}

.card-playing-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acc-tint);
}

.card-info {
  padding: 10px 2px 0;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-open-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acc-tint);
  flex: none;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.card.is-open .card-open-dot,
.card.is-active-audio .card-open-dot {
  opacity: 1;
  transform: scale(1);
}

.card-note {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font: 400 11px/1 "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--mute);
}

.card-num {
  color: var(--ink-soft);
  font-weight: 500;
}

.em {
  color: var(--mute);
  font-size: 14px;
  padding: 20px 0;
}

/* ================= SCULPTED RIGHT PANEL (HI-FI DECK -> EXPANDING TRACKLIST) ================= */
.panel {
  position: sticky;
  top: 20px;
  border-radius: 20px;
  border: 1px solid var(--line-edge);
  background: var(--panel-bg);
  background-clip: padding-box;
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow-float);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: var(--panel-h, 220px);
  max-height: min(var(--panel-max-h, 642px), calc(100dvh - 126px));
  --panel-rgb: 120, 130, 145;
  transition:
    height 0.44s var(--ease-drawer),
    background-color 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out);
}

.panel-aura {
  position: absolute;
  inset: -40px -20px auto -20px;
  height: 190px;
  background: radial-gradient(66% 85% at 22% 10%, rgba(var(--panel-rgb), 0.16), transparent 76%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

body.panel-open .panel-aura {
  opacity: 1;
}

/* Machined Hi-Fi CD Deck (idle state — exact playlist cover height) */
.panel-idle {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 14px 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.deck-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  font: 500 10px/1 "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: var(--mute);
}

.deck-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
}

.deck-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mute);
  transition: background-color 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out);
}

.panel-idle.is-previewing .deck-status i {
  background: var(--acc-tint);
  box-shadow: 0 0 8px var(--acc-tint);
}

.deck-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 182px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding-top: 10px;
}

.deck-slot-stage {
  position: relative;
  width: 182px;
  height: 100%;
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  background-clip: padding-box;
  box-shadow: var(--recess-shadow);
}

/* Full-bleed muted playlist cover backdrop behind the idle CD on hover preview */
.deck-mini-thumb {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0;
  transform: scale(1.06);
  filter: blur(1.2px) saturate(0.94) brightness(0.94);
  pointer-events: none;
  transition: opacity 0.32s var(--ease-out), transform 0.44s var(--ease-out);
}

.deck-mini-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 28% 50%, rgba(12, 13, 16, 0.08) 0%, rgba(12, 13, 16, 0.24) 100%);
  pointer-events: none;
}

:root[data-palette="fjord"] .deck-mini-thumb,
:root[data-palette="noir"] .deck-mini-thumb {
  filter: blur(1.2px) saturate(1.02) brightness(0.92);
}

:root[data-palette="fjord"] .deck-mini-thumb::after,
:root[data-palette="noir"] .deck-mini-thumb::after {
  background: radial-gradient(circle at 28% 50%, rgba(8, 9, 12, 0.06) 0%, rgba(8, 9, 12, 0.28) 100%);
}

.panel-idle.is-previewing .deck-mini-thumb {
  opacity: 0.68;
  transform: scale(1.01);
}

:root[data-palette="fjord"] .panel-idle.is-previewing .deck-mini-thumb,
:root[data-palette="noir"] .panel-idle.is-previewing .deck-mini-thumb {
  opacity: 0.78;
}

.idle-cd {
  position: relative;
  z-index: 2;
  top: auto;
  right: auto;
  width: 146px;
  height: 146px;
  margin-left: -26px;
  opacity: 1;
  transform: translateX(0) rotate(0deg);
  transition: transform 0.52s var(--ease-out);
}

.idle-cd .cd-rotor {
  animation: cdSpin 24s linear infinite;
}

.panel-idle.is-previewing .idle-cd,
.panel-idle:hover .idle-cd {
  transform: translateX(16px) rotate(18deg);
}

.deck-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  height: 100%;
}

.deck-standby,
.deck-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.deck-standby[hidden],
.deck-preview[hidden] {
  display: none;
}

.deck-kicker {
  font: 500 10px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}

.idle-title {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

.deck-standby-foot {
  margin-top: 4px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.idle-random-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: 32px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid var(--line-edge);
  background: var(--surface);
  background-clip: padding-box;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.16s var(--ease-out), border-color 0.16s var(--ease-out), color 0.16s var(--ease-out), transform 0.14s var(--ease-out);
}

.idle-random-btn svg {
  width: 13px;
  height: 13px;
  opacity: 0.8;
}

.idle-random-btn:hover {
  background: var(--surface-hover);
  border-color: var(--line-strong);
  color: var(--ink);
}

.idle-random-btn:active {
  transform: scale(0.975);
}

.deck-preview {
  gap: 10px;
}

.deck-preview-tag {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  line-height: 1.2;
}

.deck-preview-code {
  font: 400 16px/1.2 "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.deck-preview-sep {
  font: 200 16px/1.2 "JetBrains Mono", monospace;
  color: var(--mute);
}

.deck-preview-cat {
  font: 200 16px/1.2 "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--acc-tint);
}

.deck-barcode-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.deck-barcode {
  width: 100%;
  height: 28px;
  color: var(--ink);
  opacity: 0.84;
}

.deck-barcode svg {
  display: block;
  width: 100%;
  height: 100%;
}

.deck-preview-tracks {
  font: 500 11px/1 "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  color: var(--mute);
}

/* Active Selected Playlist Content */
.panel-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 20px 20px 14px;
  animation: panelReveal 0.28s var(--ease-out);
}

@keyframes panelReveal {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}

.panel-cover-wrap {
  position: relative;
  width: 78px;
  height: 78px;
  flex: none;
  transition: width 0.4s var(--ease-out);
}

.panel-cd {
  top: 7px;
  right: -12px;
  width: 64px;
  height: 64px;
  opacity: 0;
  transform: translateX(-10px);
}

.panel.is-active-audio .panel-cover-wrap {
  width: 96px;
}

.panel.is-active-audio .panel-cd {
  opacity: 1;
  transform: translateX(0);
}

.panel-cv {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  transform: none !important;
}

.panel-meta {
  flex: 1;
  min-width: 0;
}

.panel-cat {
  display: inline-block;
  font: 200 12px/1.15 "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--acc-tint);
  margin-bottom: 4px;
}

.panel-meta h2 {
  margin: 0;
  font: 400 18px/1.15 "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.panel-note {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.panel-note:empty {
  display: none;
}

.panel-count {
  margin: 5px 0 0;
  font: 400 10.5px/1 "JetBrains Mono", monospace;
  color: var(--mute);
}

.close-btn {
  align-self: flex-start;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-edge);
  background: var(--cap-bg);
  background-clip: padding-box;
  color: var(--mute);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
  transition: background-color 0.16s var(--ease-out), border-color 0.16s var(--ease-out), color 0.16s var(--ease-out), transform 0.14s var(--ease-out);
}

.close-btn svg {
  width: 14px;
  height: 14px;
}

.close-btn:hover {
  background: var(--surface-subtle);
  color: var(--ink);
}

.close-btn:active {
  transform: scale(0.94);
}

.panel-video-shell {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 240px;
  height: 135px;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  border: 1px solid var(--line);
}

.panel-video-shell.visible {
  position: relative;
  left: auto;
  top: auto;
  z-index: auto;
  flex: none;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  opacity: 1;
  pointer-events: auto;
  margin-top: 14px;
}

.panel-video-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.panel-toolbar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sw {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
}

.sw input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.sw-track {
  width: 32px;
  height: 18px;
  border-radius: 99px;
  background: var(--surface-subtle);
  border: 1px solid var(--line-strong);
  position: relative;
  flex: none;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.sw-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

.sw input:checked + .sw-track {
  background: var(--acc);
  border-color: var(--acc);
}

.sw input:checked + .sw-track::after {
  background: var(--on);
  transform: translateX(14px);
}

.sw input:focus-visible + .sw-track {
  outline: 2px solid var(--acc-tint);
  outline-offset: 2px;
}

.panel-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ctrl-btn {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--mute);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.16s var(--ease-out), background-color 0.16s var(--ease-out), border-color 0.16s var(--ease-out), transform 0.14s var(--ease-out);
}

.ctrl-btn svg {
  width: 15px;
  height: 15px;
}

.ctrl-btn:hover {
  color: var(--ink);
  background: var(--surface-subtle);
}

.ctrl-btn:active {
  transform: scale(0.93);
}

.ctrl-btn.on {
  color: var(--acc-tint);
  background: var(--acc-soft);
  border-color: var(--line-edge);
}

.rep-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 13px;
  height: 13px;
  padding: 0 3px;
  border-radius: 99px;
  background: var(--acc-tint);
  color: var(--on);
  font: 700 9px/13px "JetBrains Mono", monospace;
  text-align: center;
  display: none;
}

.rpb.is-one .rep-badge {
  display: block;
}

.pill-mini {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 11px;
  border-radius: 99px;
  border: 1px solid var(--line-edge);
  background: var(--cap-bg);
  background-clip: padding-box;
  box-shadow: var(--cap-shadow);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  margin-left: 4px;
  transition: background-color 0.16s var(--ease-out), border-color 0.16s var(--ease-out), color 0.16s var(--ease-out), transform 0.14s var(--ease-out);
}

.pill-mini svg {
  width: 12px;
  height: 12px;
}

.pill-mini:hover {
  color: var(--ink);
  background: var(--surface-subtle);
}

.pill-mini:active {
  transform: scale(0.96);
}

/* Track List */
.track-list-header {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px 8px;
  font: 500 10px/1 "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--mute);
}

.track-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0 -6px;
  padding: 0 6px 4px;
}

.track-list::-webkit-scrollbar {
  width: 5px;
}

.track-list::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 99px;
}

.tr {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 10px 8px 10px 10px;
  border-radius: 11px;
  border-top: 1px solid var(--line);
  transition: background-color 0.16s var(--ease-out);
}

.tr::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2.5px;
  border-radius: 99px;
  background: var(--acc-tint);
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 0.2s var(--ease-out), transform 0.24s var(--ease-out);
}

.tr.on::before {
  opacity: 1;
  transform: scaleY(1);
}

.tr:first-child {
  border-top-color: transparent;
}

.tr:hover {
  background: var(--surface-subtle);
}

.tr.on {
  background: var(--acc-soft);
  border-top-color: transparent;
}

.pb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-edge);
  background: var(--cap-bg);
  background-clip: padding-box;
  box-shadow: var(--cap-shadow);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  transition: background-color 0.16s var(--ease-out), border-color 0.16s var(--ease-out), color 0.16s var(--ease-out), transform 0.14s var(--ease-out);
}

.pb:hover {
  background: var(--cap-bg-hover);
  border-color: var(--line-strong);
}

.tr.on .pb {
  background: var(--acc-grad);
  border-color: var(--acc);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
  color: var(--on);
}

.pb .tr-ic-play {
  transform: translateX(0.8px);
}

.pb:active {
  transform: scale(0.93);
}

.pb .idx {
  font: 500 11px/1 "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  color: var(--mute);
}

.pb .tr-ic {
  display: none;
  width: 12px;
  height: 12px;
}

.tr:hover .pb .idx,
.tr.on .pb .idx,
.pb:focus-visible .idx {
  display: none;
}

.tr:hover .pb .tr-ic-play,
.pb:focus-visible .tr-ic-play {
  display: block;
}

.tr.on:not(.is-playing) .pb .tr-ic-play {
  display: block;
}

.tr.on.is-playing .pb .tr-ic-play {
  display: none;
}

.tr.on.is-playing .pb .tr-ic-pause {
  display: block;
}

/* Soft crossfade when switching playlists or tracks */
@keyframes softSwap {
  from { opacity: 0.42; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.is-swapping {
  animation: softSwap 0.26s var(--ease-out);
}

.ti {
  min-width: 0;
}

.ti b {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tr.on .ti b {
  color: var(--acc-tint);
  font-weight: 600;
}

/* Smooth marquee scroll for overflowing track titles */
.marquee-box {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.marquee-box.is-overflowing {
  text-overflow: clip;
  padding-left: 4px;
  margin-left: -4px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4px, #000 calc(100% - 18px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 4px, #000 calc(100% - 18px), transparent 100%);
}

.marquee-text {
  display: inline-block;
  vertical-align: top;
  transform: translate3d(0, 0, 0);
}

@keyframes marqueeDrift {
  0%, 16% {
    transform: translate3d(0, 0, 0);
  }
  52%, 68% {
    transform: translate3d(var(--marquee-shift, 0px), 0, 0);
  }
  94%, 100% {
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .now-title-row .marquee-box.is-overflowing .marquee-text {
    animation: marqueeDrift var(--marquee-dur, 9s) ease-in-out infinite;
    will-change: transform;
  }
}

.tr.is-ctx-open {
  background: var(--surface-hover);
}

/* Spotify-style hover tooltip for truncated track titles */
.track-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  pointer-events: none;
  max-width: min(360px, calc(100vw - 24px));
  padding: 7px 11px;
  border-radius: 9px;
  border: 1px solid var(--line-edge);
  background: var(--bg-elev);
  background-clip: padding-box;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  box-shadow: 0 14px 32px -10px rgba(0, 0, 0, 0.36), inset 0 1px 0 var(--bevel-top);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px) scale(0.98);
  transition: opacity 0.14s var(--ease-out), transform 0.14s var(--ease-out), visibility 0.14s;
}

.track-tooltip.on {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Sculpted right-click context menu (native top-layer popover) */
.ctx-menu {
  margin: 0;
  inset: auto;
  position: fixed;
  min-width: 224px;
  max-width: min(276px, calc(100vw - 16px));
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--line-edge);
  background: var(--bg-elev);
  background-clip: padding-box;
  color: var(--ink);
  box-shadow: 0 24px 56px -14px rgba(0, 0, 0, 0.44), inset 0 1px 0 var(--bevel-top);
  opacity: 0;
  transform-origin: top left;
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.14s;
  transition-timing-function: var(--ease-out);
  transition-behavior: allow-discrete;
}

@media (prefers-reduced-motion: no-preference) {
  .ctx-menu {
    transform: scale(0.96);
  }
}

.ctx-menu:popover-open {
  opacity: 1;
  transform: scale(1);
}

@starting-style {
  .ctx-menu:popover-open {
    opacity: 0;
  }

  @media (prefers-reduced-motion: no-preference) {
    .ctx-menu:popover-open {
      transform: scale(0.96);
    }
  }
}

.ctx-head {
  padding: 6px 10px 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 500;
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ctx-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.14s var(--ease-out), color 0.14s var(--ease-out);
}

.ctx-item svg {
  width: 15px;
  height: 15px;
  flex: none;
  opacity: 0.78;
  transition: color 0.14s var(--ease-out), opacity 0.14s var(--ease-out);
}

.ctx-item:hover,
.ctx-item:focus-visible {
  background: var(--surface-hover);
  color: var(--ink);
  outline: none;
}

.ctx-item:hover svg,
.ctx-item:focus-visible svg {
  opacity: 1;
  color: var(--acc-tint);
}

.ctx-item:active {
  transform: scale(0.985);
}

.ti-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 12px;
  color: var(--mute);
}

.ti-artist {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tm {
  flex: none;
  font: 400 11px/1 "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  color: var(--acc-tint);
}

.bar {
  display: none;
  height: 12px;
  margin-top: 5px;
  align-items: center;
  cursor: pointer;
}

.tr.on .bar {
  display: flex;
}

.bar-rail {
  width: 100%;
  height: 3px;
  border-radius: 99px;
  background: var(--line-strong);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--acc-tint);
}

/* Monochrome-at-Rest -> Brand-Color-on-Hover Circular Service Medallions */
.sv {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.sv-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-edge);
  background: var(--cap-bg);
  background-clip: padding-box;
  box-shadow: var(--cap-shadow);
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: transform 0.16s var(--ease-out), background-color 0.18s var(--ease-out), border-color 0.18s var(--ease-out), color 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}

.sv-btn svg {
  width: 15px;
  height: 15px;
  display: block;
}

.sv-btn:hover {
  transform: translateY(-1px) scale(1.08);
}

.sv-btn.sv-ya svg {
  width: 17px;
  height: 17px;
}

.sv-btn.sv-ya:hover {
  background: #1a1a1c;
  border-color: rgba(255, 204, 0, 0.55);
  color: #ffcc00;
}

.sv-btn.sv-sp:hover {
  background: #1db954;
  border-color: #1db954;
  color: #09160d;
}

.sv-btn.sv-yt:hover {
  background: #ff2d2d;
  border-color: #ff2d2d;
  color: #ffffff;
}

.sv-btn:active {
  transform: scale(0.94);
}

/* ================= FLOATING SCULPTED BOTTOM PLAYER DOCK ================= */
.player-bar {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  width: min(1228px, calc(100vw - 32px));
  z-index: 30;
  border-radius: 18px;
  background: var(--bar-bg);
  background-clip: padding-box;
  backdrop-filter: blur(26px);
  border: 1px solid var(--line-edge);
  box-shadow: var(--shadow-dock);
  overflow: hidden;
  transform: translate(-50%, 140%);
  transition: transform 0.38s var(--ease-drawer), background-color 0.35s var(--ease-out);
}

.player-bar.on {
  transform: translate(-50%, 0);
}

/* Bass-reactive ambient glow (direct GPU opacity driven smoothly without root style recalc) */
.hero-bass-glow {
  position: absolute;
  inset: -20px;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(52% 85% at 62% 88%, rgba(var(--playing-rgb, 217, 70, 43), 0.22), transparent 72%);
  opacity: 0;
}

.player-bass-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(48% 140% at 18% 50%, rgba(var(--playing-rgb, 217, 70, 43), 0.16), transparent 72%);
  opacity: 0;
}

.player-scrubber,
.player-inner {
  position: relative;
  z-index: 1;
}

.player-scrubber {
  position: relative;
  height: 12px;
  margin-top: -3px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  padding-top: 3px;
}

.scrubber-track {
  width: 100%;
  height: 2.5px;
  background: var(--line);
  overflow: hidden;
  transition: height 0.16s var(--ease-out);
}

.player-scrubber:hover .scrubber-track,
.player-scrubber:focus-visible .scrubber-track {
  height: 5px;
}

.scrubber-track i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--acc-tint);
}

.player-inner {
  padding: 6px 18px 11px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.player-now-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  justify-self: start;
  max-width: 100%;
}

.mini-cv-btn {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 9px;
  cursor: pointer;
  flex: none;
  display: block;
  transition: transform 0.18s var(--ease-out);
}

.mini-cv-btn:hover {
  transform: scale(1.05);
}

.mini-cv-btn:active {
  transform: scale(0.95);
}

.mini-cv-hint {
  position: absolute;
  inset: 0;
  border-radius: 9px;
  background: rgba(12, 13, 16, 0.56);
  color: #f6f6f8;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.18s var(--ease-out);
  pointer-events: none;
}

.mini-cv-hint svg {
  width: 15px;
  height: 15px;
}

.mini-cv-btn:hover .mini-cv-hint,
.mini-cv-btn:focus-visible .mini-cv-hint {
  opacity: 1;
}

.player-now {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 5px 10px 5px 6px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  max-width: 100%;
  transition: background-color 0.16s var(--ease-out);
}

.player-now:hover {
  background: var(--surface-subtle);
}

.mini-cv {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transform: none !important;
}

.now-text {
  min-width: 0;
}

.now-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
  background: var(--mute);
}

body.pl .live-dot {
  background: var(--acc-tint);
  box-shadow: 0 0 8px var(--acc-tint);
}

.now-title-row b {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.now-sub {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.now-sub em {
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-self: center;
}

.play-main {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--acc-grad);
  color: var(--on);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18), 0 4px 12px -4px rgba(0, 0, 0, 0.24);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.14s var(--ease-out), opacity 0.16s var(--ease-out);
}

.play-main .ic-play {
  transform: translateX(1px);
}

.play-main svg {
  width: 16px;
  height: 16px;
}

.play-main:hover {
  opacity: 0.88;
}

.play-main:active {
  transform: scale(0.93);
}

.play-main .ic-pause { display: none; }
body.pl .play-main .ic-play { display: none; }
body.pl .play-main .ic-pause { display: block; }

.player-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2.6vw, 38px);
  justify-self: end;
}

.player-meta-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.vol-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-right: 4px;
}

.vol-btn {
  width: 30px;
  height: 30px;
}

.vol-btn .ic-vol-mute { display: none; }
.vol-wrap.is-muted .vol-btn .ic-vol-on { display: none; }
.vol-wrap.is-muted .vol-btn .ic-vol-mute { display: block; }
.vol-wrap.is-muted .vol-btn { color: var(--acc-tint); }

.vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 68px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--acc-tint) var(--vol-pct, 85%), var(--line-edge) var(--vol-pct, 85%));
  outline: none;
  cursor: pointer;
  transition: height 0.14s var(--ease-out);
}

.vol-slider:hover {
  height: 4px;
}

.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
  border: 1.5px solid var(--bg-elev);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  transition: transform 0.14s var(--ease-out);
}

.vol-slider::-webkit-slider-thumb:hover {
  transform: scale(1.16);
}

.vol-slider::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
  border: 1.5px solid var(--bg-elev);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.mini-time {
  font: 400 11.5px/1 "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  color: var(--mute);
}

.add-service-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-edge);
  background: var(--cap-bg);
  background-clip: padding-box;
  box-shadow: var(--cap-shadow);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  anchor-name: --add-service-trigger;
  transition: background-color 0.18s var(--ease-out), border-color 0.18s var(--ease-out), color 0.18s var(--ease-out), transform 0.14s var(--ease-out);
}

.add-service-btn svg {
  width: 15px;
  height: 15px;
}

.add-service-btn:hover {
  background: var(--acc-soft);
  border-color: var(--acc-tint);
  color: var(--acc-tint);
  transform: scale(1.05);
}

.add-service-btn:hover svg path {
  fill: currentColor;
}

.add-service-btn:active {
  transform: scale(0.92);
}

.player-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-edge);
  background: var(--cap-bg);
  background-clip: padding-box;
  box-shadow: var(--cap-shadow);
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.16s var(--ease-out), border-color 0.16s var(--ease-out), color 0.16s var(--ease-out), transform 0.14s var(--ease-out);
}

.player-close-btn svg {
  width: 14px;
  height: 14px;
}

.player-close-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.player-close-btn:active {
  transform: scale(0.92);
}

/* ================= HEART MUSIC SERVICES POPOVER ================= */
.service-popover {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line-edge);
  background: var(--bg-elev);
  background-clip: padding-box;
  color: var(--ink);
  box-shadow: var(--shadow-float), inset 0 1px 0 var(--bevel-top);
  width: min(296px, calc(100vw - 24px));
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.18s var(--ease-out), transform 0.2s var(--ease-out), overlay 0.18s allow-discrete, display 0.18s allow-discrete;
}

.service-popover:is(:popover-open, .\:popover-open) {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@starting-style {
  .service-popover:is(:popover-open, .\:popover-open) {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }
}

@supports (position-area: block-start) {
  .service-popover {
    inset: auto;
    margin: 0 0 14px 0;
    position-anchor: --add-service-trigger;
    position-area: block-start span-inline-start;
    position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
  }
}

@supports not (position-area: block-start) {
  .service-popover {
    position: fixed;
    inset: auto 24px 96px auto;
    margin: 0;
  }
}

.popover-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.popover-kicker {
  display: block;
  font: 500 10px/1 "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--acc-tint);
  margin-bottom: 5px;
}

.popover-head b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popover-head span:last-child {
  display: block;
  font-size: 12px;
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popover-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 14px;
}

.pop-srv {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 10px 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  background-clip: padding-box;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.18s var(--ease-out), border-color 0.18s var(--ease-out), transform 0.16s var(--ease-out), color 0.18s var(--ease-out);
}

.pop-srv:hover {
  background: var(--surface-hover);
  border-color: var(--line-edge);
  color: var(--ink);
  transform: translateY(-1px);
}

.pop-srv:active {
  transform: scale(0.96);
}

.pop-srv .sv-btn {
  width: 38px;
  height: 38px;
  pointer-events: none;
}

.pop-srv .sv-btn svg {
  width: 19px;
  height: 19px;
}

.pop-srv .sv-btn.sv-ya svg {
  width: 22px;
  height: 22px;
}

.pop-srv:hover .sv-ya {
  background: #1a1a1c;
  border-color: rgba(255, 204, 0, 0.55);
  color: #ffcc00;
}

.pop-srv:hover .sv-sp {
  background: #1db954;
  border-color: #1db954;
  color: #09160d;
}

.pop-srv:hover .sv-yt {
  background: #ff2d2d;
  border-color: #ff2d2d;
  color: #fff;
}

/* ================= FULLSCREEN FOCUS / NOW PLAYING MODAL ================= */
dialog.focus-dialog {
  width: min(760px, calc(100vw - 28px));
  max-height: min(92dvh, 780px);
  padding: 0;
  margin: auto;
  border-radius: 26px;
  border: 1px solid var(--line-edge);
  background: var(--bg-elev);
  background-clip: padding-box;
  color: var(--ink);
  box-shadow: 0 36px 96px -20px rgba(0, 0, 0, 0.38), inset 0 1px 0 var(--bevel-top);
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(0.965);
  transition: opacity 0.26s var(--ease-out), transform 0.28s var(--ease-drawer);
}

dialog.focus-dialog[open] {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0) scale(1);
}

dialog.focus-dialog[open].is-closing {
  opacity: 0;
  transform: translateY(12px) scale(0.965);
  pointer-events: none;
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out);
}

@starting-style {
  dialog.focus-dialog[open] {
    opacity: 0;
    transform: translateY(14px) scale(0.965);
  }
}

dialog.focus-dialog::backdrop {
  background: rgba(9, 10, 14, 0.62);
  backdrop-filter: blur(18px);
  overflow: hidden;
  overscroll-behavior: contain;
  opacity: 0;
  transition: opacity 0.26s var(--ease-out);
}

dialog.focus-dialog[open]::backdrop {
  opacity: 1;
}

dialog.focus-dialog[open].is-closing::backdrop {
  opacity: 0;
  transition: opacity 0.22s var(--ease-out);
}

@starting-style {
  dialog.focus-dialog[open]::backdrop {
    opacity: 0;
  }
}

.focus-ambient {
  position: absolute;
  inset: -40px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(58% 54% at 50% 26%, rgba(var(--playing-rgb, 217, 70, 43), 0.24), transparent 72%);
  opacity: 0.55;
}

.focus-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 26px 26px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

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

.focus-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--surface);
  font: 500 12.5px/1 "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
}

.focus-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acc-tint);
  box-shadow: 0 0 8px var(--acc-tint);
}

.focus-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 16px;
}

.focus-sleeve-stage {
  position: relative;
  width: 248px;
  height: 248px;
  margin-right: 76px;
}

.focus-cv {
  width: 248px;
  height: 248px;
  border-radius: 16px;
  box-shadow: 0 18px 46px -12px rgba(0, 0, 0, 0.34);
}

.focus-cd {
  top: 4%;
  right: 0;
  width: 92%;
  height: 92%;
  opacity: 1;
  transform: translateX(42%) rotate(0deg);
  transition: transform 0.6s var(--ease-out);
}

.focus-cd .cd-label-code {
  font-size: 9.5px;
}

.focus-info {
  margin-top: 22px;
  max-width: 100%;
}

.focus-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}

.focus-artist {
  margin: 6px 0 0;
  font-size: 14.5px;
  color: var(--mute);
}

.focus-wave {
  width: 100%;
  max-width: 580px;
  height: 92px;
  margin-top: 12px;
  display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.focus-progress-wrap {
  width: 100%;
  max-width: 520px;
  margin-top: 10px;
}

.focus-bar {
  height: 18px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.focus-bar-rail {
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: var(--line-edge);
  overflow: hidden;
  transition: height 0.14s var(--ease-out);
}

.focus-bar:hover .focus-bar-rail {
  height: 6px;
}

.focus-bar-rail i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--acc-tint);
}

.focus-times {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  font: 400 11px/1 "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  color: var(--mute);
}

.focus-transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.focus-play {
  width: 52px;
  height: 52px;
}

.focus-play svg {
  width: 21px;
  height: 21px;
}

.focus-services {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  width: 100%;
  max-width: 520px;
  border-top: 1px solid var(--line);
}

.focus-srv {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border-radius: 99px;
  border: 1px solid var(--line-edge);
  background: var(--cap-bg);
  background-clip: padding-box;
  box-shadow: var(--cap-shadow);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: background-color 0.16s var(--ease-out), border-color 0.16s var(--ease-out), color 0.16s var(--ease-out), transform 0.14s var(--ease-out);
}

.focus-srv:hover {
  color: var(--ink);
  background: var(--cap-bg-hover);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.focus-srv .sv-btn {
  width: 26px;
  height: 26px;
  pointer-events: none;
  box-shadow: none;
}

.focus-srv .sv-btn svg {
  width: 14px;
  height: 14px;
}

.focus-srv .sv-btn.sv-ya svg {
  width: 16px;
  height: 16px;
}

.focus-srv:hover .sv-ya {
  background: #1a1a1c;
  border-color: rgba(255, 204, 0, 0.55);
  color: #ffcc00;
}

.focus-srv:hover .sv-sp {
  background: #1db954;
  border-color: #1db954;
  color: #09160d;
}

.focus-srv:hover .sv-yt {
  background: #ff2d2d;
  border-color: #ff2d2d;
  color: #fff;
}

/* ================= ABOUT ME MODAL ================= */
dialog.about-dialog {
  width: min(460px, calc(100vw - 28px));
  max-height: min(88dvh, 720px);
  padding: 0;
  margin: auto;
  border-radius: 24px;
  border: 1px solid var(--line-edge);
  background: var(--bg-elev);
  background-clip: padding-box;
  color: var(--ink);
  box-shadow: 0 34px 88px -20px rgba(0, 0, 0, 0.36), inset 0 1px 0 var(--bevel-top);
  overflow: hidden;
  opacity: 0;
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.24s;
  transition-timing-function: var(--ease-out);
  transition-behavior: allow-discrete;
}

dialog.about-dialog:modal {
  overscroll-behavior: contain;
}

@media (prefers-reduced-motion: no-preference) {
  dialog.about-dialog {
    transform: translateY(12px) scale(0.965);
  }
}

dialog.about-dialog[open] {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0) scale(1);
}

dialog.about-dialog[open].is-closing {
  opacity: 0;
  transform: translateY(10px) scale(0.965);
  pointer-events: none;
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out);
}

@starting-style {
  dialog.about-dialog[open] {
    opacity: 0;
  }

  @media (prefers-reduced-motion: no-preference) {
    dialog.about-dialog[open] {
      transform: translateY(12px) scale(0.965);
    }
  }
}

dialog.about-dialog::backdrop {
  background: rgba(9, 10, 14, 0.64);
  backdrop-filter: blur(16px);
  overflow: hidden;
  overscroll-behavior: contain;
  opacity: 0;
  transition-property: opacity, display, overlay;
  transition-duration: 0.24s;
  transition-timing-function: var(--ease-out);
  transition-behavior: allow-discrete;
}

dialog.about-dialog[open]::backdrop {
  opacity: 1;
}

dialog.about-dialog[open].is-closing::backdrop {
  opacity: 0;
  transition: opacity 0.22s var(--ease-out);
}

@starting-style {
  dialog.about-dialog[open]::backdrop {
    opacity: 0;
  }
}

.about-shell {
  padding: 20px 22px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.about-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.links-kicker {
  display: block;
  font: 500 10px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--acc-tint);
  margin-bottom: 5px;
}

.about-head h1 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.024em;
  line-height: 1.15;
  color: var(--ink);
}

.about-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 6px 18px;
}

.about-avatar {
  position: relative;
  z-index: 2;
  width: 148px;
  height: 148px;
  margin-top: -26px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: var(--surface-subtle);
  border: 1px solid var(--line-edge);
  background-clip: padding-box;
  box-shadow:
    0 18px 38px -12px rgba(0, 0, 0, 0.42),
    0 0 0 5px var(--bg-elev),
    0 0 0 6px var(--line);
  display: grid;
  place-items: center;
}

.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--mute);
  background: radial-gradient(circle at 32% 28%, var(--surface-hover), var(--surface-subtle));
}

.about-avatar-placeholder svg {
  width: 46px;
  height: 46px;
  opacity: 0.65;
}

.about-bio {
  margin: 16px 0 0;
  max-width: 38ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  white-space: pre-line;
  text-wrap: pretty;
}

.about-socials {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.about-socials[hidden] {
  display: none;
}

.about-section-label {
  display: block;
  font: 500 10px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 10px;
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.links-empty {
  margin: 8px 0 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--mute);
  text-align: center;
  padding: 18px 8px;
}

.link-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  background-clip: padding-box;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.16s var(--ease-out), border-color 0.16s var(--ease-out), transform 0.16s var(--ease-out);
}

.link-row:hover {
  background: var(--surface-hover);
  border-color: var(--line-edge);
  transform: translateY(-1px);
}

.link-row:active {
  transform: scale(0.985);
}

.link-ic {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-edge);
  background: var(--cap-bg);
  background-clip: padding-box;
  box-shadow: var(--cap-shadow);
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  flex: none;
  transition: background-color 0.18s var(--ease-out), border-color 0.18s var(--ease-out), color 0.18s var(--ease-out);
}

.link-ic svg {
  width: 17px;
  height: 17px;
  display: block;
}

.link-row.lnk-tg:hover .link-ic { background: #2aabee; border-color: #2aabee; color: #fff; }
.link-row.lnk-ig:hover .link-ic { background: #e1306c; border-color: #e1306c; color: #fff; }
.link-row.lnk-sp:hover .link-ic { background: #1db954; border-color: #1db954; color: #09160d; }
.link-row.lnk-lfm:hover .link-ic { background: #d51007; border-color: #d51007; color: #fff; }
.link-row.lnk-st:hover .link-ic { background: #1b2838; border-color: rgba(102, 192, 244, 0.55); color: #66c0f4; }
.link-row.lnk-tw:hover .link-ic { background: #9146ff; border-color: #9146ff; color: #fff; }
.link-row.lnk-dn:hover .link-ic { background: #f59e0b; border-color: #f59e0b; color: #161005; }

.link-meta {
  min-width: 0;
  flex: 1;
}

.link-meta b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.link-meta em {
  display: block;
  font-style: normal;
  font: 400 11.5px/1.25 "JetBrains Mono", monospace;
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.link-arrow {
  width: 16px;
  height: 16px;
  color: var(--mute);
  flex: none;
  transition: transform 0.18s var(--ease-out), color 0.18s var(--ease-out);
}

.link-row:hover .link-arrow {
  color: var(--ink);
  transform: translate(2px, -2px);
}

/* ================= TOAST ================= */
#toast {
  position: fixed;
  left: 50%;
  bottom: 102px;
  transform: translateX(-50%) translateY(8px);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  z-index: 60;
  max-width: min(92vw, 460px);
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out);
}

#toast.on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ================= RESPONSIVE & MOBILE POLISH ================= */
@media (max-width: 1120px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 432px;
  }

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

@media (max-width: 960px) {
  body {
    background-attachment: scroll;
  }

  .tactile-grain {
    display: none;
  }

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

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

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

  .panel {
    display: none;
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    height: auto;
    max-height: min(68dvh, 560px);
    z-index: 25;
  }

  body.panel-open .panel {
    display: flex;
  }

  body:not(.has-player) .panel {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 680px) {
  .page-shell {
    padding: 14px 14px 164px;
  }

  .hero {
    min-height: 210px;
    padding: 16px 18px 18px;
    border-radius: 20px;
  }

  .hero.has-photo .vibe-btn,
  .hero.has-photo .palette-picker {
    backdrop-filter: none;
    background: rgba(12, 13, 17, 0.72);
  }

  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 22px;
  }

  .logo-row {
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
  }

  .brand-title {
    font-size: clamp(32px, 9.4vw, 42px);
  }

  .hero-wave,
  body.brand-pl .hero-wave {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    height: 52px;
    margin-bottom: -4px;
    transform: translateZ(0);
    transition: none;
  }

  .palette-picker {
    align-self: flex-end;
  }

  .controls-bar {
    margin: 18px 0 18px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
  }

  .card.is-active-audio .cd-disc {
    transform: translateX(26%) rotate(0deg);
  }

  .card-cover-code {
    top: 10px;
    left: 11px;
    font-size: 11px;
  }

  .panel {
    left: 10px;
    right: 10px;
    bottom: calc(122px + env(safe-area-inset-bottom, 0px));
    max-height: min(62dvh, 480px);
    border-radius: 18px;
    backdrop-filter: none;
    background: var(--bg-elev);
  }

  .panel-inner {
    padding: 16px 14px 12px;
  }

  .panel-head {
    gap: 12px;
    padding-bottom: 12px;
  }

  .panel-cover-wrap {
    width: 58px;
    height: 58px;
  }

  .panel.is-active-audio .panel-cover-wrap {
    width: 72px;
  }

  .panel-cv {
    width: 58px;
    height: 58px;
  }

  .panel-cd {
    top: 4px;
    right: -10px;
    width: 50px;
    height: 50px;
  }

  .panel-meta h2 {
    font-size: 16.5px;
  }

  .panel-toolbar {
    padding: 8px 0;
    gap: 8px;
  }

  .pill-mini span {
    display: none;
  }

  .pill-mini {
    width: 30px;
    padding: 0;
    justify-content: center;
  }

  .player-bar {
    left: 0;
    bottom: 0;
    width: 100%;
    border-radius: 18px 18px 0 0;
    border-bottom: 0;
    border-left: 0;
    border-right: 0;
    backdrop-filter: none;
    background: var(--bg-elev);
    transform: translateY(115%);
  }

  .player-bar.on {
    transform: translateY(0);
  }

  .player-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 6px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .player-right {
    gap: 8px;
  }

  .player-meta-actions {
    gap: 6px;
  }

  .player-controls {
    grid-column: 1 / -1;
    order: 3;
    justify-content: center;
    padding-top: 2px;
    gap: 10px;
  }

  .mini-time,
  .vol-wrap,
  .focus-open-btn {
    display: none;
  }

  .tr {
    gap: 8px;
    padding: 9px 4px;
  }

  .sv {
    gap: 4px;
  }

  .sv-btn {
    width: 28px;
    height: 28px;
  }

  /* Mobile Focus Modal */
  dialog.focus-dialog {
    width: calc(100vw - 16px);
    max-height: 94dvh;
    border-radius: 22px;
  }

  .focus-shell {
    padding: 16px 16px 20px;
  }

  .focus-sleeve-stage {
    width: 186px;
    height: 186px;
    margin-right: 54px;
  }

  .focus-cv {
    width: 186px;
    height: 186px;
  }

  .focus-wave {
    height: 68px;
  }

  .focus-services {
    gap: 8px;
  }

  .about-avatar {
    width: 128px;
    height: 128px;
    margin-top: -16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .brand-line {
    transform: none !important;
    filter: none !important;
    transition: opacity 0.22s ease-out !important;
  }
}
