:root {
  --bg: #030207;
  --bg2: #12081c;
  --panel: rgba(10, 7, 15, 0.92);
  --panel-soft: rgba(18, 12, 27, 0.9);
  --line: rgba(255, 255, 255, 0.18);
  --text: #ffffff;
  --muted: #d6c7ef;
  --muted2: #a995c7;
  --accent: #d889ff;
  --accent-soft: #ffffff;
  --accent-rose: #b26bff;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --bottom-nav-height: 94px;
  --mini-player-height: 104px;
  --bottom-stack-gap: 10px;
  --bottom-stack-height: calc(var(--bottom-nav-height) + var(--mini-player-height) + var(--bottom-stack-gap));
  --button-height: 38px;
  --button-compact-height: 34px;
  --button-padding-x: 13px;
  --button-font-size: 0.78rem;
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --motion-fast: 170ms;
  --motion-medium: 240ms;
  --motion-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --motion-ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

@property --ai-border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

* {
  box-sizing: border-box;
}

img.is-media-loading,
img.is-media-empty,
.album-thumb,
.playlist-thumb,
.mix-thumb,
.mini-cover,
.player-modal-cover,
.player-queue-thumb,
.artist-track-thumb {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.28), rgba(216, 137, 255, 0.2), rgba(178, 107, 255, 0.22)),
    linear-gradient(180deg, rgba(26, 19, 37, 0.95), rgba(12, 9, 18, 0.96));
  background-size: 220% 220%, 100% 100%;
}

img.is-media-loading,
img.is-media-empty {
  opacity: 1;
  animation: mediaPulse 1.2s ease-in-out infinite alternate;
}

.is-text-loading {
  color: transparent !important;
  border-radius: 999px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.3), rgba(216, 137, 255, 0.2), rgba(178, 107, 255, 0.24)),
    linear-gradient(180deg, rgba(26, 19, 37, 0.95), rgba(12, 9, 18, 0.96));
  background-size: 220% 220%, 100% 100%;
  animation: mediaPulse 1.2s ease-in-out infinite alternate;
}

#track-title.is-text-loading,
#player-modal-title.is-text-loading {
  min-height: 1.05em;
  width: 78%;
}

#track-meta.is-text-loading,
#player-modal-meta.is-text-loading {
  min-height: 0.95em;
  width: 62%;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 18%, rgba(214, 128, 255, 0.45), transparent 18%),
    radial-gradient(circle at 86% 76%, rgba(173, 83, 255, 0.24), transparent 18%),
    radial-gradient(circle at 18% 88%, rgba(109, 59, 190, 0.18), transparent 15%),
    linear-gradient(180deg, #09050f, #12091a 48%, #0a0610);
  overflow-x: hidden;
  overscroll-behavior-x: none;
  transition: background 0.58s ease, color 0.58s ease;
}

body[data-content-mode="podcast"] {
  --panel: rgba(244, 246, 248, 0.92);
  --panel-soft: rgba(233, 237, 242, 0.94);
  --line: rgba(84, 93, 107, 0.16);
  --text: #20242b;
  --muted: #657080;
  --muted2: #8c96a4;
  --accent: #717b8a;
  --accent-soft: #c68b53;
  background:
    radial-gradient(circle at 78% 16%, rgba(255, 255, 255, 0.9), transparent 18%),
    radial-gradient(circle at 18% 82%, rgba(191, 199, 211, 0.42), transparent 24%),
    linear-gradient(180deg, #f6f7f9, #e6ebf0 54%, #d9dfe7);
}

body[data-content-mode="podcast"]::before {
  opacity: 0.16;
  background-image:
    radial-gradient(circle, rgba(90, 98, 112, 0.34) 0 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.8) 0 1px, transparent 1px);
}

body[data-content-mode="podcast"]::after {
  background:
    radial-gradient(circle at 80% 22%, rgba(255, 255, 255, 0.82), transparent 15%),
    radial-gradient(circle at 74% 28%, rgba(157, 168, 181, 0.18), transparent 26%),
    linear-gradient(165deg, transparent 0 74%, rgba(255, 255, 255, 0.42) 75%, transparent 78%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 0 1px, transparent 1px),
    radial-gradient(circle, rgba(228, 183, 255, 0.5) 0 1px, transparent 1px);
  background-size: 110px 110px, 170px 170px;
  background-position: 0 0, 30px 60px;
  opacity: 0.22;
}

body::after {
  background:
    radial-gradient(circle at 82% 24%, rgba(196, 122, 255, 0.42), transparent 12%),
    radial-gradient(circle at 82% 24%, rgba(196, 122, 255, 0.12), transparent 22%),
    linear-gradient(165deg, transparent 0 74%, rgba(233, 141, 255, 0.22) 75%, transparent 77%),
    linear-gradient(175deg, transparent 0 85%, rgba(233, 141, 255, 0.16) 86%, transparent 88%);
}

body.splash-active {
  overflow: hidden;
}

.splash-screen {
  --splash-progress-pct: 0;
  --splash-progress-angle: 0deg;
  --splash-style-a: #9fffe4;
  --splash-style-b: #05060b;
  --splash-style-c: #ffffff;
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 52%, rgba(255, 255, 255, 0.075), transparent 18%),
    radial-gradient(ellipse at 50% 58%, rgba(255, 255, 255, 0.05), transparent 30%),
    radial-gradient(ellipse at 24% 24%, rgba(121, 92, 255, 0.11), transparent 32%),
    radial-gradient(ellipse at 78% 76%, rgba(0, 194, 255, 0.08), transparent 34%),
    linear-gradient(180deg, #000000 0%, #04050a 44%, #000000 100%);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-screen[data-splash-style="velvet"] {
  --splash-style-a: #9f8cff;
  --splash-style-b: #05050c;
  --splash-style-c: #f7edff;
}

.splash-screen[data-splash-style="noir"] {
  --splash-style-a: #ffffff;
  --splash-style-b: #06040a;
  --splash-style-c: #91fff0;
}

.splash-screen[data-splash-style="pulse"] {
  --splash-style-a: #5cf2ff;
  --splash-style-b: #050711;
  --splash-style-c: #ffffff;
}

.splash-screen::before,
.splash-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.splash-screen::before {
  background:
    linear-gradient(90deg, transparent 0 47%, rgba(255, 255, 255, 0.08) 49%, rgba(255, 255, 255, 0.14) 50%, rgba(255, 255, 255, 0.08) 51%, transparent 53%),
    linear-gradient(116deg, transparent 0 44%, rgba(91, 198, 255, 0.055) 48%, transparent 55%),
    linear-gradient(64deg, transparent 0 44%, rgba(255, 122, 217, 0.055) 48%, transparent 55%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 82px);
  opacity: 0.34;
  animation: none;
}

.splash-screen::after {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 17%, rgba(0, 0, 0, 0.28) 35%, rgba(0, 0, 0, 0.86) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), transparent 34% 66%, rgba(0, 0, 0, 0.88)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent 38% 58%, rgba(0, 0, 0, 0.9));
  opacity: 0.86;
}

.splash-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-screen .splash-lens-flare {
  display: none !important;
}

.splash-lens-flare {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  mix-blend-mode: screen;
  opacity: 0.92;
  transform: translate3d(0, 0, 0);
  animation: splashLensDrift 5.8s ease-in-out infinite;
}

.splash-lens-flare::before,
.splash-lens-flare::after,
.splash-lens-flare span {
  content: "";
  position: absolute;
  display: block;
  pointer-events: none;
}

.splash-lens-flare::before {
  --flare-beam-angle: -8deg;
  left: 50%;
  top: 47%;
  width: min(132vw, 1120px);
  height: 2px;
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      transparent 0%,
      rgba(139, 104, 255, 0.06) 18%,
      rgba(255, 255, 255, 0.52) 48%,
      rgba(255, 255, 255, 0.82) 50%,
      rgba(255, 255, 255, 0.42) 52%,
      rgba(97, 218, 255, 0.08) 82%,
      transparent 100%);
  filter: blur(0.2px) drop-shadow(0 0 13px rgba(255, 255, 255, 0.22));
  opacity: 0.58;
  transform: translate(-50%, -50%) rotate(var(--flare-beam-angle));
  animation: splashLensLine 3.8s ease-in-out infinite;
}

.splash-lens-flare::after {
  left: 50%;
  top: 47%;
  width: min(82vw, 740px);
  height: min(82vw, 740px);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.16) 0 2%, rgba(210, 182, 255, 0.08) 6%, transparent 24%),
    conic-gradient(from 18deg, transparent 0 18%, rgba(255, 255, 255, 0.1) 22%, transparent 27% 52%, rgba(93, 225, 255, 0.08) 56%, transparent 62% 100%);
  filter: blur(18px) saturate(1.2);
  opacity: 0.42;
  transform: translate(-50%, -50%) rotate(-8deg) scaleX(1.24);
  animation: splashLensAura 6.2s ease-in-out infinite;
}

.splash-flare-core {
  left: 50%;
  top: 47%;
  width: clamp(76px, 18vw, 168px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 7%, rgba(255, 246, 202, 0.78) 8% 13%, rgba(215, 144, 255, 0.34) 17% 32%, rgba(102, 230, 255, 0.12) 40%, transparent 67%);
  filter: blur(0.35px) drop-shadow(0 0 26px rgba(255, 255, 255, 0.48)) drop-shadow(0 0 58px rgba(178, 107, 255, 0.36));
  opacity: 0.78;
  transform: translate(-50%, -50%);
  animation: splashLensPulse 3.8s ease-in-out infinite;
}

.splash-flare-ray {
  --flare-ray-angle: -8deg;
  --flare-ray-shift: 0px;
  left: 50%;
  top: 47%;
  width: min(94vw, 860px);
  height: 64px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15) 42%, rgba(255, 255, 255, 0.34) 50%, rgba(180, 238, 255, 0.12) 58%, transparent);
  filter: blur(12px);
  opacity: 0.36;
  transform: translate(calc(-50% + var(--flare-ray-shift)), -50%) rotate(var(--flare-ray-angle));
  animation: splashLensRay 4.2s ease-in-out infinite;
}

.ray-secondary {
  --flare-ray-angle: 24deg;
  --flare-ray-shift: 0px;
  width: min(70vw, 640px);
  height: 34px;
  opacity: 0.26;
  filter: blur(9px);
  transform: translate(calc(-50% + var(--flare-ray-shift)), -50%) rotate(var(--flare-ray-angle));
  animation-delay: -1.3s;
}

.splash-flare-ghost {
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.22) 0 18%, rgba(209, 147, 255, 0.12) 28% 48%, transparent 68%);
  filter: blur(0.2px);
  opacity: 0.42;
  transform: translate(-50%, -50%);
  animation: splashLensGhost 6.8s ease-in-out infinite;
}

.ghost-one {
  left: 35%;
  top: 53%;
  width: clamp(18px, 4vw, 42px);
  aspect-ratio: 1;
  animation-delay: -0.6s;
}

.ghost-two {
  left: 61%;
  top: 41%;
  width: clamp(24px, 5.8vw, 58px);
  aspect-ratio: 1;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.18) 0 14%, rgba(99, 224, 255, 0.12) 28% 52%, transparent 70%);
  animation-delay: -1.8s;
}

.ghost-three {
  left: 69%;
  top: 36%;
  width: clamp(10px, 2.6vw, 26px);
  aspect-ratio: 1;
  opacity: 0.32;
  animation-delay: -3s;
}

.ghost-four {
  left: 43%;
  top: 58%;
  width: clamp(42px, 11vw, 104px);
  aspect-ratio: 1;
  opacity: 0.2;
  filter: blur(5px);
  animation-delay: -2.4s;
}

.mode-transition {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  --mode-transition-core: rgba(16, 10, 28, 0.98);
  --mode-transition-core-soft: rgba(76, 42, 120, 0.88);
  --mode-transition-wash: rgba(4, 3, 8, 0.36);
  --mode-transition-label-surface: rgba(15, 8, 24, 0.84);
  --mode-transition-label-edge: rgba(255, 255, 255, 0.24);
  --mode-transition-label-text: #fff9ef;
  --mode-transition-flare: rgba(255, 239, 196, 0.16);
  --mode-transition-lens-core: rgba(255, 255, 255, 0.92);
  --mode-transition-lens-a: rgba(176, 102, 255, 0.44);
  --mode-transition-lens-b: rgba(123, 45, 255, 0.34);
  --mode-transition-lens-line: rgba(255, 255, 255, 0.52);
  --mode-transition-vignette: rgba(0, 0, 0, 0.42);
  background: transparent;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  overflow: hidden;
}

.mode-transition[data-mode="podcast"] {
  --mode-transition-core: rgba(248, 248, 252, 0.98);
  --mode-transition-core-soft: rgba(226, 232, 241, 0.96);
  --mode-transition-wash: rgba(244, 246, 250, 0.4);
  --mode-transition-label-surface: rgba(255, 250, 242, 0.84);
  --mode-transition-label-edge: rgba(103, 111, 125, 0.22);
  --mode-transition-label-text: #20242b;
  --mode-transition-flare: rgba(255, 250, 236, 0.26);
  --mode-transition-lens-core: rgba(255, 255, 255, 0.96);
  --mode-transition-lens-a: rgba(255, 214, 107, 0.5);
  --mode-transition-lens-b: rgba(255, 142, 96, 0.34);
  --mode-transition-lens-line: rgba(255, 255, 255, 0.66);
  --mode-transition-vignette: rgba(166, 172, 182, 0.18);
}

.mode-transition.is-visible {
  opacity: 1;
  visibility: visible;
}

.first-access-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
}

.first-access-modal[hidden] {
  display: none !important;
}

.first-access-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(178, 107, 255, 0.26), transparent 30%),
    radial-gradient(circle at 18% 78%, rgba(123, 45, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(7, 3, 14, 0.74), rgba(2, 1, 6, 0.9));
  backdrop-filter: blur(22px) saturate(1.12);
  -webkit-backdrop-filter: blur(22px) saturate(1.12);
}

.first-access-card {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  max-height: min(86vh, 760px);
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(216, 137, 255, 0.18);
  border-radius: 30px;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(216, 137, 255, 0.16), transparent 32%),
    radial-gradient(circle at 86% 12%, rgba(123, 45, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(19, 11, 31, 0.86), rgba(8, 5, 14, 0.92));
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.62),
    0 0 42px rgba(123, 45, 255, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(24px) saturate(1.16);
  -webkit-backdrop-filter: blur(24px) saturate(1.16);
  overflow: auto;
}

.first-access-step {
  display: grid;
  gap: 15px;
}

.first-access-step[hidden] {
  display: none !important;
}

.first-access-kicker,
.first-access-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(225, 199, 255, 0.76);
}

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

.first-access-kicker {
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid rgba(216, 137, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.first-access-card .first-access-language-switcher {
  flex: 0 0 auto;
  padding: 3px;
  border-color: rgba(216, 137, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(18, 11, 29, 0.68), rgba(8, 5, 14, 0.76)),
    rgba(255, 255, 255, 0.035);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 24px rgba(0, 0, 0, 0.18);
}

.first-access-card .first-access-language-switcher .language-option {
  min-height: 30px;
  padding: 6px 9px;
  font-size: 0.66rem;
}

.first-access-card .first-access-language-switcher .language-flag {
  width: 14px;
  height: 14px;
}

.first-access-label {
  margin-top: 2px;
}

.first-access-card h2 {
  margin: 0;
  color: #fff;
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-size: clamp(2.25rem, 7.2vw, 3.45rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
}

.first-access-card p {
  margin: 0;
  max-width: 56ch;
  color: rgba(235, 222, 248, 0.76);
  font-size: 0.96rem;
  line-height: 1.58;
}

.first-access-input,
.first-access-search {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(216, 137, 255, 0.22);
  border-radius: 18px;
  padding: 14px 15px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.045)),
    rgba(8, 5, 14, 0.62);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 650;
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.018),
    0 10px 24px rgba(0, 0, 0, 0.14);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.first-access-input::placeholder,
.first-access-search::placeholder {
  color: rgba(225, 209, 241, 0.62);
  font-weight: 600;
}

.first-access-input:focus,
.first-access-search:focus {
  border-color: rgba(216, 137, 255, 0.58);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.055)),
    rgba(12, 7, 20, 0.72);
  box-shadow:
    0 0 0 3px rgba(216, 137, 255, 0.13),
    0 16px 34px rgba(0, 0, 0, 0.18),
    0 0 24px rgba(123, 45, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.first-access-search-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
}

.first-access-selected,
.first-access-results {
  gap: 8px;
}

.first-access-selected {
  display: flex;
  flex-wrap: wrap;
}

.first-access-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: min(42vh, 340px);
  overflow: auto;
  padding-right: 2px;
}

.first-access-selected:empty,
.first-access-results:empty {
  display: none;
}

.first-access-pill {
  border: 1px solid rgba(216, 137, 255, 0.24);
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(135deg, rgba(216, 137, 255, 0.12), rgba(255, 255, 255, 0.055));
  font: inherit;
  font-weight: 700;
}

.first-access-result {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 88px;
  border: 1px solid rgba(216, 137, 255, 0.16);
  border-radius: 20px;
  padding: 10px;
  color: rgba(255, 255, 255, 0.9);
  background:
    radial-gradient(circle at 30% 18%, rgba(216, 137, 255, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.055);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.first-access-result:not(:disabled):hover {
  border-color: rgba(216, 137, 255, 0.42);
  background:
    radial-gradient(circle at 30% 18%, rgba(216, 137, 255, 0.22), transparent 36%),
    rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.first-access-result:disabled {
  cursor: default;
  opacity: 0.58;
}

.first-access-artist-image {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(216, 137, 255, 0.26), rgba(255, 255, 255, 0.08)),
    rgba(19, 10, 31, 0.86);
}

.first-access-artist-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.first-access-artist-name {
  min-width: 0;
  color: #fff;
  font-size: 1rem;
  line-height: 1.12;
  overflow-wrap: anywhere;
  white-space: normal;
}

.first-access-artist-meta {
  min-width: 0;
  overflow: hidden;
  color: rgba(241, 223, 248, 0.62);
  font-size: 0.76rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.first-access-status {
  color: rgba(241, 223, 248, 0.74);
  font-size: 0.9rem;
  font-weight: 650;
}

.first-access-status.is-error {
  color: #f3b7d7;
}

.first-access-submit {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.34), transparent 32%),
    linear-gradient(135deg, #7b2dff 0%, #9d4dff 48%, #b066ff 100%);
  font: inherit;
  font-weight: 900;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow:
    0 18px 44px rgba(123, 45, 255, 0.28),
    0 0 26px rgba(176, 102, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -10px 22px rgba(48, 10, 104, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.first-access-submit:not(:disabled):hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow:
    0 22px 52px rgba(123, 45, 255, 0.34),
    0 0 34px rgba(176, 102, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -10px 22px rgba(48, 10, 104, 0.22);
}

.first-access-submit:not(:disabled):active {
  transform: translateY(0) scale(0.99);
}

.first-access-submit:disabled {
  cursor: default;
  opacity: 0.42;
  filter: grayscale(0.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 24px rgba(0, 0, 0, 0.12);
}

.first-access-welcome {
  min-height: 260px;
  align-content: center;
  text-align: center;
}

.profile-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 20px;
}

.profile-edit-modal[hidden] {
  display: none;
}

.profile-edit-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(178, 107, 255, 0.2), transparent 34%),
    rgba(5, 4, 10, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.profile-edit-card {
  position: relative;
  z-index: 1;
  width: min(360px, calc(100vw - 28px));
  display: grid;
  gap: 13px;
  border: 1px solid rgba(217, 180, 255, 0.28);
  border-radius: 28px;
  padding: 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(178, 107, 255, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(28, 18, 44, 0.98), rgba(10, 8, 18, 0.98));
  color: #fff;
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.profile-edit-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.18rem;
  line-height: 1;
}

.profile-edit-kicker,
.profile-edit-label {
  color: #d9b4ff;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-edit-card h2 {
  margin: -4px 42px 4px 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.45rem;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.profile-edit-photo-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 11px;
  border: 1px solid rgba(217, 180, 255, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
}

.profile-edit-photo-row strong,
.profile-edit-photo-row span {
  display: block;
}

.profile-edit-photo-row strong {
  font-size: 0.94rem;
}

.profile-edit-photo-row span {
  margin-top: 3px;
  color: rgba(239, 233, 255, 0.66);
  font-size: 0.72rem;
}

.profile-photo-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(217, 180, 255, 0.34);
  border-radius: 24px;
  padding: 0;
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.26), transparent 30%),
    linear-gradient(135deg, rgba(178, 107, 255, 0.38), rgba(12, 9, 18, 0.88));
  color: #fff;
  overflow: hidden;
  cursor: pointer;
}

.profile-photo-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo-button img[hidden] {
  display: none;
}

.profile-photo-button span {
  margin: 0;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 950;
}

.profile-photo-button:has(img:not([hidden])) span {
  display: none;
}

.profile-photo-button::after {
  content: "Trocar";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 7px;
  min-height: 19px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(9, 7, 16, 0.64);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.56rem;
  font-weight: 900;
}

.profile-edit-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(217, 180, 255, 0.22);
  border-radius: 16px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font: 800 0.92rem/1 "Space Grotesk", system-ui, sans-serif;
  outline: none;
}

.profile-edit-input:focus {
  border-color: rgba(217, 180, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(178, 107, 255, 0.18);
}

.profile-edit-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.profile-edit-secondary,
.profile-edit-primary {
  min-height: 42px;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.profile-edit-secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
}

.profile-edit-primary {
  border: 0;
  background: linear-gradient(135deg, #b26bff, #f4b8ff);
  color: #16091f;
}

.profile-edit-primary:disabled {
  opacity: 0.62;
}

.profile-edit-status {
  margin: 0;
  color: rgba(118, 247, 208, 0.92);
  font-size: 0.72rem;
}

.profile-edit-status.is-error {
  color: #ffb2d1;
}

.profile-action-menu {
  position: fixed;
  z-index: 110;
  width: min(260px, calc(100vw - 20px));
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(217, 180, 255, 0.24);
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 0%, rgba(178, 107, 255, 0.22), transparent 38%),
    rgba(15, 10, 25, 0.96);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.profile-action-menu[hidden] {
  display: none;
}

.profile-action-menu button {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font: 850 0.78rem/1 "Space Grotesk", system-ui, sans-serif;
  text-align: left;
  padding: 0 11px;
  cursor: pointer;
}

.profile-action-menu button:hover,
.profile-action-menu button:focus-visible {
  outline: none;
  background: rgba(178, 107, 255, 0.22);
  border-color: rgba(217, 180, 255, 0.28);
}

.profile-menu-notifications {
  display: grid;
  gap: 7px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-menu-notifications-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 3px;
}

.profile-menu-notifications-head strong {
  min-width: 0;
  overflow: hidden;
  color: rgba(238, 218, 255, 0.74);
  font-size: 0.68rem;
  font-weight: 950;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.profile-menu-notifications-head span {
  min-width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #1a1028;
  background: #f0ddff;
  font-size: 0.66rem;
  font-weight: 950;
}

.profile-menu-notifications-head span[hidden] {
  display: none;
}

.profile-menu-notification-list {
  display: grid;
  gap: 6px;
  max-height: 190px;
  overflow: auto;
  scrollbar-width: none;
}

.profile-menu-notification-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.profile-menu-notification-list p {
  margin: 0;
  padding: 8px 4px;
  color: rgba(239, 233, 255, 0.58);
  font-size: 0.74rem;
  line-height: 1.3;
}

.profile-action-menu .profile-menu-notification {
  min-height: 48px;
  display: grid;
  gap: 4px;
  padding: 8px 10px;
}

.profile-menu-notification strong,
.profile-menu-notification span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu-notification strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.74rem;
}

.profile-menu-notification span {
  color: rgba(239, 233, 255, 0.58);
  font-size: 0.66rem;
}

.profile-menu-notification.is-unseen {
  border-color: rgba(217, 180, 255, 0.32);
  background: rgba(178, 107, 255, 0.16);
}

.profile-view-modal {
  padding: 10px;
  place-items: center;
}

.profile-view-card {
  width: min(430px, calc(100vw - 18px));
  max-height: min(92vh, 800px);
  gap: 20px;
  overflow: auto;
  padding: 26px 22px 24px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 78% 4%, rgba(188, 97, 255, 0.34), transparent 24%),
    radial-gradient(circle at 20% 18%, rgba(104, 64, 255, 0.22), transparent 28%),
    linear-gradient(rgba(10, 7, 20, 0.72), rgba(6, 4, 13, 0.96)),
    linear-gradient(160deg, #130a24, #05030a 62%, #0f0718);
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.64),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.profile-view-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(154, 90, 255, 0.18), transparent 32%),
    radial-gradient(ellipse at center top, rgba(190, 112, 255, 0.18), transparent 52%);
  opacity: 0.9;
}

.profile-view-card > * {
  position: relative;
  z-index: 1;
}

.profile-view-hero {
  min-height: 184px;
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding-top: 24px;
}

.profile-view-avatar-wrap {
  position: relative;
  width: 126px;
  height: 126px;
  display: grid;
  place-items: center;
  border: 6px solid rgba(178, 107, 255, 0.9);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 20%, rgba(255, 255, 255, 0.34), transparent 30%),
    linear-gradient(135deg, #7438ff, #c35dff);
  box-shadow:
    0 0 0 5px rgba(80, 35, 156, 0.42),
    0 22px 48px rgba(151, 78, 255, 0.28);
}

.profile-view-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.profile-view-avatar-wrap img[hidden] {
  display: none;
}

.profile-view-avatar-wrap > span:not(.profile-view-presence-badge) {
  color: #fff;
  font: 950 2rem/1 "Space Grotesk", system-ui, sans-serif;
}

.profile-view-avatar-wrap:has(img:not([hidden])) > span:not(.profile-view-presence-badge) {
  display: none;
}

.profile-view-presence-badge {
  position: absolute;
  right: 1px;
  bottom: 5px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 4px solid rgba(16, 10, 26, 0.96);
  background: #777083;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
}

.profile-view-presence-badge.is-online {
  background: #35e074;
}

.profile-view-presence-badge.is-offline {
  background: #777083;
}

.profile-view-hero h2,
.profile-view-hero p {
  margin: 0;
}

.profile-view-hero h2 {
  margin-top: 8px;
  color: #fff;
  font-size: clamp(2rem, 8vw, 2.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.profile-view-hero h2::after {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: 9px;
  transform: translateY(-5px);
  border-radius: 9px;
  background: linear-gradient(135deg, #7b4dff, #bf70ff);
  color: #fff;
  font-size: 0.82rem;
}

.profile-view-hero p {
  margin-top: 12px;
  color: rgba(239, 233, 255, 0.72);
  font-size: 1rem;
  line-height: 1.45;
}

.profile-view-follow {
  min-height: 34px;
  margin-top: 14px;
  padding: 0 16px;
  border: 1px solid rgba(217, 180, 255, 0.24);
  border-radius: 999px;
  background: linear-gradient(135deg, #f1e7ff, #ba78ff);
  color: #1a1028;
  font: 950 0.78rem/1 "Space Grotesk", system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(151, 78, 255, 0.24);
}

.profile-view-follow[hidden] {
  display: none;
}

.profile-view-follow.is-following {
  background: rgba(255, 255, 255, 0.08);
  color: #f4e8ff;
}

.profile-view-follow:hover,
.profile-view-follow:focus-visible {
  outline: none;
  filter: brightness(1.08);
}

.profile-view-thought-wrap.is-own-profile #profile-view-subtitle {
  cursor: text;
}

#profile-view-subtitle.is-placeholder {
  color: rgba(239, 233, 255, 0.48);
  font-style: italic;
}

.profile-view-thought-input {
  width: 100%;
  min-height: 36px;
  margin-top: 10px;
  border: 0;
  border-bottom: 1px solid rgba(217, 180, 255, 0.34);
  border-radius: 0;
  padding: 0 0 5px;
  outline: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font: 850 0.95rem/1.35 "Space Grotesk", system-ui, sans-serif;
}

.profile-view-thought-input[hidden] {
  display: none;
}

.profile-view-thought-input:focus {
  border-bottom-color: rgba(238, 218, 255, 0.78);
}

.profile-view-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 90px;
  padding: 14px 10px;
  border: 1px solid rgba(217, 180, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.profile-view-stats.has-social-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.profile-view-stats span[hidden] {
  display: none;
}

.profile-view-stats span {
  display: grid;
  place-items: center;
  gap: 5px;
  text-align: center;
}

.profile-view-stats span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-view-stats strong {
  color: #fff;
  font-size: 1.38rem;
  line-height: 1;
}

.profile-view-stats em {
  color: rgba(239, 233, 255, 0.66);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 750;
}

.profile-view-section {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(217, 180, 255, 0.13);
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 0%, rgba(178, 107, 255, 0.14), transparent 32%),
    rgba(255, 255, 255, 0.04);
}

.profile-view-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.profile-view-section-head strong {
  min-width: 0;
  overflow: hidden;
  color: #c983ff;
  font-size: 0.84rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.profile-view-section-head span {
  color: rgba(239, 233, 255, 0.66);
  font-size: 0.74rem;
  font-weight: 850;
  white-space: nowrap;
}

.profile-view-style-card {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(217, 180, 255, 0.18);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(178, 107, 255, 0.075));
}

.profile-view-style-card > div:first-child {
  display: grid;
  gap: 5px;
}

.profile-view-style-card strong {
  color: #fff;
  font-size: 1rem;
}

.profile-view-style-card span {
  color: rgba(239, 233, 255, 0.68);
  font-size: 0.78rem;
}

.profile-view-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.profile-view-chip-row span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0 11px;
  overflow: hidden;
  border: 1px solid rgba(217, 180, 255, 0.18);
  border-radius: 999px;
  background: rgba(178, 107, 255, 0.18);
  color: #f4e8ff;
  font-size: 0.7rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-view-artist-list {
  display: grid;
  gap: 8px;
}

.profile-view-artist-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.profile-view-artist-row:focus-visible,
.profile-view-artist-row:hover {
  outline: none;
  background: rgba(178, 107, 255, 0.13);
}

.profile-view-artist-row strong {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(178, 107, 255, 0.24);
  color: #f2dcff;
  font-size: 0.82rem;
}

.profile-view-artist-row img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.profile-view-artist-row em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.92rem;
  font-style: normal;
  font-weight: 850;
}

.profile-view-artist-row span {
  color: rgba(239, 233, 255, 0.56);
  font-size: 1.6rem;
  line-height: 1;
}

.profile-view-empty {
  margin: 0;
  color: rgba(239, 233, 255, 0.68);
  font-size: 0.78rem;
}

.profile-view-activity {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(217, 180, 255, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
}

.profile-view-activity-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(178, 107, 255, 0.18);
  color: #b86cff;
  font-size: 1.55rem;
  font-weight: 950;
}

.profile-view-activity strong,
.profile-view-activity p {
  margin: 0;
}

.profile-view-activity strong {
  color: #fff;
  font-size: 0.98rem;
}

.profile-view-activity p {
  margin-top: 5px;
  color: rgba(239, 233, 255, 0.68);
  font-size: 0.82rem;
  line-height: 1.35;
}

@media (max-width: 430px) {
  .profile-view-modal {
    padding: 7px;
  }

  .profile-view-card {
    width: calc(100vw - 14px);
    max-height: calc(100vh - 14px);
    gap: 16px;
    padding: 22px 16px 20px;
    border-radius: 28px;
  }

  .profile-view-hero {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 16px;
    min-height: 164px;
    padding-top: 28px;
  }

  .profile-view-avatar-wrap {
    width: 108px;
    height: 108px;
    border-width: 5px;
  }

  .profile-view-presence-badge {
    width: 22px;
    height: 22px;
    right: 0;
    bottom: 4px;
  }

  .profile-view-hero h2 {
    font-size: 2rem;
  }

  .profile-view-hero p {
    font-size: 0.88rem;
  }

  .profile-view-stats {
    min-height: 82px;
    padding: 12px 6px;
  }

  .profile-view-stats.has-social-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-view-stats.has-social-stats span:nth-child(4) {
    border-left: 0;
  }

  .profile-view-stats strong {
    font-size: 1.18rem;
  }

  .profile-view-stats em {
    font-size: 0.68rem;
  }

  .profile-view-section {
    padding: 13px;
    border-radius: 20px;
  }

  .profile-view-artist-row {
    grid-template-columns: 31px 39px minmax(0, 1fr) 16px;
    gap: 8px;
    padding: 8px;
  }

  .profile-view-artist-row strong {
    width: 31px;
    height: 31px;
  }

  .profile-view-artist-row img {
    width: 39px;
    height: 39px;
  }
}

.profile-view-card {
  gap: 14px;
  padding: 22px 18px 20px;
  border-radius: 26px;
}

.profile-view-hero {
  min-height: 116px;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding-top: 18px;
  align-items: center;
}

.profile-view-avatar-wrap {
  width: 92px;
  height: 92px;
  border-width: 3px;
  box-shadow:
    0 0 0 3px rgba(180, 76, 255, 0.24),
    0 14px 30px rgba(151, 78, 255, 0.22);
}

.profile-view-presence-badge {
  right: 1px;
  bottom: 3px;
  width: 18px;
  height: 18px;
  border-width: 3px;
}

.profile-view-hero h2 {
  max-width: 100%;
  overflow: hidden;
  font-size: 1.32rem;
  line-height: 1.06;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-view-hero h2::after {
  width: 17px;
  height: 17px;
  margin-left: 5px;
  transform: translateY(-2px);
  border-radius: 6px;
  font-size: 0.56rem;
}

.profile-view-hero p {
  margin-top: 8px;
  font-size: 0.78rem;
  line-height: 1.35;
}

.profile-view-stats {
  min-height: 66px;
  padding: 9px 4px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.profile-view-stats strong {
  font-size: 1rem;
}

.profile-view-stats em {
  font-size: 0.58rem;
}

.profile-view-social-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-view-social-tabs button {
  min-height: 36px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  font: 850 0.68rem/1 "Space Grotesk", system-ui, sans-serif;
  cursor: pointer;
}

.profile-view-social-tabs button.is-active {
  border-bottom-color: #b44cff;
  color: #fff;
}

.profile-view-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.profile-view-post-grid .profile-view-empty {
  grid-column: 1 / -1;
  padding: 16px;
}

.profile-view-post-tile {
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
  overflow: hidden;
  border: 0;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.58)),
    var(--profile-post-image),
    linear-gradient(135deg, rgba(180, 76, 255, 0.45), rgba(255, 159, 69, 0.26));
  background-position: center;
  background-size: cover;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.profile-view-post-tile::after {
  content: "♪";
  position: absolute;
  right: 7px;
  top: 6px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
}

.profile-view-post-kind {
  position: absolute;
  left: 7px;
  top: 7px;
  max-width: calc(100% - 34px);
  overflow: hidden;
  border-radius: 999px;
  padding: 3px 6px;
  background: rgba(0, 0, 0, 0.42);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.5rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-view-post-tile strong {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 7px;
  overflow: hidden;
  color: #fff;
  font-size: 0.58rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.72);
  white-space: nowrap;
}

@media (max-width: 430px) {
  .profile-view-card {
    gap: 12px;
    padding: 18px 12px 16px;
  }

  .profile-view-hero {
    grid-template-columns: 78px minmax(0, 1fr);
    min-height: 98px;
    gap: 13px;
    padding-top: 24px;
  }

  .profile-view-avatar-wrap {
    width: 78px;
    height: 78px;
  }

  .profile-view-hero h2 {
    font-size: 1.14rem;
  }
}

.terms-inline-link {
  border: 0;
  padding: 0;
  color: #ffffff;
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.terms-inline-link:hover,
.terms-inline-link:focus-visible {
  color: #fff;
  outline: none;
}

.usage-terms-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
}

.usage-terms-modal[hidden] {
  display: none !important;
}

.usage-terms-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 2, 8, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.usage-terms-card {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  max-height: min(86vh, 720px);
  display: grid;
  gap: 12px;
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(18, 10, 30, 0.98), rgba(8, 5, 14, 0.99));
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.58);
}

.usage-terms-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.usage-terms-kicker {
  color: rgba(255, 255, 255, 0.8);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.usage-terms-card h2,
.usage-terms-card p {
  margin: 0;
}

.usage-terms-card h2 {
  max-width: calc(100% - 42px);
  color: #fff;
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 0.96;
}

.usage-terms-card p {
  color: rgba(241, 223, 248, 0.78);
  line-height: 1.55;
}

.remote-network-widget {
  position: fixed;
  right: 18px;
  bottom: calc(var(--safe-bottom) + 18px);
  z-index: 24;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.remote-network-widget[hidden] {
  display: none !important;
}

body.remote-controller-active {
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 14%, rgba(178, 107, 255, 0.16), transparent 18%),
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.14), transparent 18%),
    linear-gradient(180deg, #07040d, #0c0713 48%, #06040a);
}

body.remote-controller-active .scene {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.remote-controller-active .remote-network-widget {
  inset: 0;
  z-index: 28;
  place-items: stretch;
  justify-items: stretch;
  gap: 0;
  padding: 18px;
}

body.remote-controller-active .remote-network-toggle {
  display: none;
}

body.remote-controller-active .remote-network-panel {
  width: 100%;
  max-height: none;
  min-height: calc(100vh - 36px);
  align-content: start;
  gap: 14px;
  border-radius: 18px;
  padding: 18px;
  overflow: hidden;
}

body.remote-controller-active .remote-network-panel.is-expanded {
  width: 100%;
  max-height: none;
  min-height: calc(100vh - 36px);
  display: grid;
  grid-template-rows: auto minmax(0, auto) minmax(0, 1fr) auto;
  gap: 18px;
  border-radius: 8px;
  padding: 18px 20px;
  background:
    radial-gradient(circle at 86% 8%, rgba(157, 74, 255, 0.18), transparent 28%),
    radial-gradient(circle at 18% 82%, rgba(31, 112, 153, 0.12), transparent 24%),
    linear-gradient(145deg, rgba(12, 15, 24, 0.98), rgba(4, 6, 12, 0.98));
}

body.remote-controller-active .remote-network-head {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.remote-controller-active .remote-network-head strong {
  font-size: 1.12rem;
}

body.remote-controller-active .remote-network-panel.is-expanded .remote-control-panel {
  grid-template-columns: minmax(220px, 0.32fr) minmax(420px, 1fr) minmax(300px, 0.45fr);
  grid-template-rows: auto minmax(180px, 1fr) minmax(160px, 0.72fr) auto;
  grid-template-areas:
    "playlist search now"
    "playlist queue now"
    "playlist results now"
    "session controls now";
  gap: 18px;
  min-height: 0;
}

body.remote-controller-active .remote-search-row {
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.045)),
    rgba(12, 15, 24, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.remote-controller-active .remote-search-row input {
  min-height: 40px;
  border: 0;
  background: transparent;
  font-size: 0.95rem;
}

body.remote-controller-active .remote-search-row button {
  width: 42px;
  min-height: 42px;
  border-radius: 10px;
}

body.remote-controller-active .remote-now {
  align-self: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 18px;
  padding: 24px 22px;
  border: 1px solid rgba(178, 107, 255, 0.22);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 22%, rgba(178, 107, 255, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(17, 12, 30, 0.98), rgba(5, 8, 15, 0.98));
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.remote-controller-active .remote-now::before {
  content: "Tocando agora";
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

body.remote-controller-active .remote-now-image {
  width: min(100%, 310px);
  height: auto;
  aspect-ratio: 1;
  justify-self: center;
  border-radius: 18px;
  box-shadow:
    0 22px 60px rgba(178, 107, 255, 0.24),
    0 16px 42px rgba(0, 0, 0, 0.44);
}

body.remote-controller-active .remote-now-copy {
  gap: 8px;
}

body.remote-controller-active .remote-now-title-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

body.remote-controller-active .remote-now-title-row .remote-now-bars {
  order: 1;
  color: #b26bff;
}

body.remote-controller-active .remote-now-title-row > strong {
  order: 2;
}

body.remote-controller-active .remote-lyrics-toggle {
  order: 3;
}

body.remote-controller-active .remote-now-copy strong {
  font-size: 1.22rem;
  white-space: normal;
}

body.remote-controller-active .remote-now-meta {
  color: #b982ff;
  font-size: 0.92rem;
}

body.remote-controller-active .remote-seek {
  grid-template-columns: 48px minmax(0, 1fr) 48px;
}

body.remote-controller-active .remote-seek input,
body.remote-controller-active .remote-search-row input {
  accent-color: #a85cff;
}

body.remote-controller-active .remote-controls {
  align-self: end;
  grid-template-columns: repeat(5, 54px);
  justify-content: center;
  gap: 18px;
  padding: 12px 0;
}

body.remote-controller-active .remote-controls button {
  width: 54px;
  min-height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

body.remote-controller-active #remote-toggle-play {
  color: #fff;
  border-color: rgba(178, 107, 255, 0.56);
  background: linear-gradient(135deg, #7d37ff, #c45dff);
  box-shadow: 0 16px 34px rgba(178, 107, 255, 0.32);
}

body.remote-controller-active .remote-control-section {
  min-height: 0;
  padding: 0;
}

body.remote-controller-active .remote-control-section-head {
  min-height: 34px;
  align-items: center;
}

body.remote-controller-active .remote-control-section-head strong {
  font-size: 1rem;
}

body.remote-controller-active .remote-network-panel.is-expanded .remote-queue-list,
body.remote-controller-active .remote-network-panel.is-expanded .remote-search-results,
body.remote-controller-active .remote-network-panel.is-expanded .remote-playlist-list {
  max-height: none;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
}

body.remote-controller-active .remote-network-panel.is-expanded .remote-queue-list {
  align-content: start;
}

body.remote-controller-active .remote-queue-item,
body.remote-controller-active .remote-search-item,
body.remote-controller-active .remote-playlist-row {
  border-radius: 10px;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.035)),
    rgba(15, 19, 30, 0.72);
}

body.remote-controller-active .remote-queue-item:first-child {
  border-color: rgba(178, 107, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(178, 107, 255, 0.16);
}

body.remote-controller-active .remote-queue-main {
  grid-template-columns: 48px minmax(0, 1fr);
}

body.remote-controller-active .remote-queue-thumb,
body.remote-controller-active .remote-playlist-item img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

body.remote-controller-active .remote-search-choice:not(.remote-search-playlist) {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  padding: 8px;
}

body.remote-controller-active .remote-search-choice > img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

body.remote-controller-active .remote-search-playlist {
  grid-template-columns: minmax(0, 1fr) auto;
}

body.remote-controller-active .remote-search-actions button {
  min-height: 34px;
  border-radius: 8px;
  padding: 0 10px;
}

body.remote-controller-active .remote-session-card,
body.remote-controller-active .remote-playlist-tools {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.remote-network-toggle {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  padding: 8px 14px 8px 9px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(178, 107, 255, 0.16)),
    rgba(13, 9, 20, 0.92);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.remote-network-toggle-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #170b23;
  background: linear-gradient(135deg, #f8f1ff, #ffffff);
}

.remote-network-toggle svg,
.remote-controls svg,
.remote-search-row button svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.remote-network-panel {
  width: min(430px, calc(100vw - 28px));
  max-height: min(72vh, 620px);
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(178, 107, 255, 0.1) 38%, transparent 64%),
    rgba(9, 5, 15, 0.96);
  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: auto;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.remote-desktop-sidebar {
  display: none;
}

.remote-controlled-indicator {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: 50%;
  z-index: 55;
  width: min(460px, calc(100vw - 24px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  padding: 10px 11px 10px 14px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(178, 107, 255, 0.16), rgba(255, 255, 255, 0.14)),
    rgba(10, 5, 16, 0.94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.remote-controlled-indicator[hidden] {
  display: none !important;
}

.remote-controlled-indicator span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 800;
}

.remote-controlled-indicator button {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 8px 10px;
  color: #170b23;
  background: linear-gradient(135deg, #f8f1ff, #ffffff);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.remote-network-panel.is-expanded {
  width: min(1220px, calc(100vw - 28px));
  max-height: min(88vh, 800px);
  padding: 18px 20px;
}

.remote-network-head,
.remote-now,
.remote-search-row,
.remote-permission-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.remote-network-head {
  justify-content: space-between;
  align-items: flex-start;
}

.remote-network-head .remote-network-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.remote-network-head div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.remote-network-head strong {
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.02rem;
}

.remote-network-head small {
  color: rgba(241, 223, 248, 0.6);
  font-size: 0.78rem;
}

.remote-network-head span,
.remote-network-status,
.remote-now-meta {
  color: rgba(241, 223, 248, 0.68);
  font-size: 0.84rem;
}

.remote-panel-expand {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.remote-panel-expand:hover {
  color: #170b23;
  background: linear-gradient(135deg, #f8f1ff, #ffffff);
}

.remote-panel-expand svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.remote-panel-expand .remote-collapse-icon,
.remote-network-panel.is-expanded .remote-panel-expand .remote-expand-icon {
  display: none;
}

.remote-network-panel.is-expanded .remote-panel-expand .remote-collapse-icon {
  display: block;
}

.remote-device-list,
.remote-control-panel,
.remote-search-results,
.remote-queue-list,
.remote-playlist-list {
  display: grid;
  gap: 8px;
}

.remote-network-panel.is-expanded .remote-device-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.remote-network-panel.is-expanded .remote-control-panel {
  grid-template-columns: minmax(330px, 0.76fr) minmax(480px, 1.24fr);
  grid-template-areas:
    "now queue"
    "seek queue"
    "controls queue"
    "search playlist"
    "results playlist";
  align-items: start;
  column-gap: 18px;
  row-gap: 12px;
}

body.remote-controller-active .remote-network-panel.is-expanded .remote-control-panel {
  grid-template-columns: minmax(260px, 0.74fr) minmax(420px, 1.2fr) minmax(310px, 0.78fr);
  grid-template-areas:
    "playlist search session"
    "playlist results now"
    "playlist results seek"
    "playlist queue controls";
  min-height: 0;
  align-items: stretch;
}

body.remote-controller-active .remote-network-panel.is-expanded .remote-device-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-height: 132px;
  overflow: auto;
}

body.remote-controller-active .remote-network-panel.is-expanded .remote-control-section,
body.remote-controller-active .remote-network-panel.is-expanded .remote-search-results {
  min-height: 0;
}

.remote-network-panel.is-expanded .remote-now {
  grid-area: now;
}

.remote-network-panel.is-expanded .remote-session-card {
  grid-area: session;
}

.remote-network-panel.is-expanded .remote-seek {
  grid-area: seek;
}

.remote-network-panel.is-expanded .remote-controls {
  grid-area: controls;
}

.remote-network-panel.is-expanded .remote-search-row {
  grid-area: search;
}

.remote-network-panel.is-expanded .remote-search-results {
  grid-area: results;
}

.remote-search-reference {
  display: none;
}

.remote-network-panel.is-expanded .remote-queue-section {
  grid-area: queue;
}

.remote-network-panel.is-expanded .remote-playlist-section {
  grid-area: playlist;
  min-width: 0;
}

.remote-network-panel.is-expanded .remote-search-results {
  max-height: 260px;
  overflow: auto;
}

body.remote-controller-active .remote-network-panel.is-expanded .remote-search-results {
  max-height: none;
  overflow: auto;
  align-content: start;
}

.remote-network-panel.is-expanded .remote-queue-list {
  max-height: 330px;
  overflow: auto;
  padding-right: 2px;
}

body.remote-controller-active .remote-network-panel.is-expanded .remote-queue-list {
  max-height: 190px;
}

.remote-network-panel.is-expanded .remote-playlist-list {
  max-height: 520px;
  overflow: auto;
  padding-right: 2px;
}

body.remote-controller-active .remote-network-panel.is-expanded .remote-playlist-list {
  max-height: calc(100vh - 275px);
}

.remote-device-item,
.remote-search-item {
  width: 100%;
  display: grid;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  padding: 11px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.remote-device-item {
  grid-template-columns: 34px minmax(0, 1fr) auto;
}

.remote-search-item {
  grid-template-columns: auto minmax(0, 1fr);
}

.remote-search-group {
  margin-top: 4px;
  padding: 2px 3px;
  color: rgba(241, 223, 248, 0.56);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.remote-search-playlist {
  border-color: rgba(178, 107, 255, 0.2);
  background:
    linear-gradient(135deg, rgba(178, 107, 255, 0.12), rgba(255, 255, 255, 0.045));
}

.remote-search-playlist .remote-search-actions button {
  border-color: rgba(178, 107, 255, 0.24);
}

.remote-device-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #170b23;
  background: linear-gradient(135deg, #f8f1ff, #b26bff);
}

.remote-device-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.remote-session-card {
  display: grid;
  gap: 5px;
  align-self: stretch;
  border: 1px solid rgba(178, 107, 255, 0.2);
  border-radius: 14px;
  padding: 14px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(178, 107, 255, 0.12), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.055);
}

.remote-session-card span,
.remote-session-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(241, 223, 248, 0.68);
  font-size: 0.78rem;
}

.remote-session-card strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.remote-device-item:hover,
.remote-search-item:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(178, 107, 255, 0.08));
}

.remote-device-item strong:last-child,
.remote-search-item strong:last-child {
  border-radius: 999px;
  padding: 6px 9px;
  color: #170b23;
  background: linear-gradient(135deg, #f8f1ff, #ffffff);
  font-size: 0.74rem;
}

.remote-device-item span,
.remote-search-item span {
  color: rgba(241, 223, 248, 0.66);
  font-size: 0.8rem;
}

.remote-now {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.remote-now-image {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.remote-now-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.remote-now-title-row {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}

.remote-now-bars {
  width: 18px;
  height: 18px;
  display: inline-grid;
  grid-template-columns: repeat(3, 4px);
  align-items: end;
  gap: 2px;
  color: #ffffff;
}

.remote-now-bars[hidden] {
  display: none !important;
}

.remote-now-bars i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.52;
}

.remote-now-bars.is-playing i {
  opacity: 1;
  animation: remoteNowBars 0.82s ease-in-out infinite;
}

.remote-now-bars.is-playing i:nth-child(2) {
  animation-delay: 0.12s;
}

.remote-now-bars.is-playing i:nth-child(3) {
  animation-delay: 0.24s;
}

.remote-now-copy strong,
.remote-now-copy span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remote-now-details,
.remote-now-similar,
.remote-lyrics-panel,
.remote-artist-profile {
  display: none;
}

.remote-lyrics-toggle {
  display: none;
}

.remote-playlist-collapse {
  display: none;
}

.remote-create-playlist-toggle {
  display: none;
}

.remote-queue-collapse {
  display: none;
}

.remote-artist-back {
  display: none;
}

.remote-seek {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  color: rgba(241, 223, 248, 0.72);
  font-size: 0.76rem;
}

.remote-seek input {
  width: 100%;
  min-width: 0;
  accent-color: #ffffff;
  cursor: pointer;
}

.remote-seek input:disabled {
  cursor: default;
  opacity: 0.48;
}

.remote-ai-panel {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(178, 107, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.045);
}

.remote-ai-toggle {
  width: 100%;
  min-height: 38px;
  display: grid;
  grid-template-columns: 28px auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  text-align: left;
}

.remote-ai-toggle:hover,
.remote-ai-toggle[aria-expanded="true"] {
  background: rgba(178, 107, 255, 0.16);
}

.remote-ai-toggle[data-enabled="false"] {
  border: 1px dashed rgba(216, 180, 255, 0.28);
  background: rgba(255, 255, 255, 0.035);
}

.remote-control-panel.is-remote-ai-disabled .remote-ai-panel {
  background:
    linear-gradient(135deg, rgba(178, 107, 255, 0.065), rgba(255, 255, 255, 0.032)),
    rgba(255, 255, 255, 0.035);
}

.remote-control-panel.is-remote-ai-disabled .remote-ai-body {
  opacity: 0.58;
  pointer-events: none;
}

.remote-control-panel.is-remote-ai-enabled .remote-search-row {
  display: none !important;
}

.remote-control-panel.is-remote-ai-enabled .remote-ai-panel {
  border-color: rgba(216, 180, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(178, 107, 255, 0.18), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.055);
}

.remote-ai-toggle svg {
  width: 18px;
  height: 18px;
  justify-self: center;
  fill: currentColor;
}

.remote-ai-toggle span {
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
}

.remote-ai-toggle small {
  min-width: 0;
  overflow: hidden;
  color: rgba(241, 223, 248, 0.62);
  font-size: 0.7rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remote-ai-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.remote-control-panel.is-ai-collapsed .remote-ai-body {
  display: none;
}

.remote-ai-messages {
  position: relative;
  display: grid;
  gap: 6px;
  overflow: visible;
  border-radius: 14px;
}

.remote-ai-messages.is-ai-thinking {
  outline: 1px solid rgba(244, 184, 255, 0.72);
  outline-offset: 4px;
  animation: aiChatNeonPulse 1.15s ease-in-out infinite;
}

.remote-ai-message {
  position: relative;
  width: fit-content;
  max-width: 92%;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.065);
  font-size: 0.72rem;
  line-height: 1.22;
}

.remote-ai-message.is-assistant:not(.is-thinking) {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  border-color: rgba(217, 180, 255, 0.36);
  background:
    radial-gradient(circle at 0% 0%, rgba(244, 184, 255, 0.2), transparent 44%),
    linear-gradient(180deg, rgba(48, 25, 70, 0.76), rgba(24, 16, 36, 0.72));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.055),
    0 10px 24px rgba(178, 107, 255, 0.14);
  animation: aiAssistantBubbleIn 260ms var(--motion-ease-soft) both;
}

.remote-ai-message.is-assistant:not(.is-thinking)::before {
  content: "BIA";
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #16091f;
  background: conic-gradient(from 25deg, #b26bff, #f4b8ff, #76f7d0, #ffcf6f, #b26bff);
  box-shadow:
    0 0 14px rgba(178, 107, 255, 0.44),
    inset 0 0 0 1px rgba(255, 255, 255, 0.58);
  font-size: 0.48rem;
  font-weight: 950;
  letter-spacing: 0;
}

.remote-ai-message.is-user {
  justify-self: end;
  color: #180b23;
  background: linear-gradient(135deg, #f8f1ff, #ffffff);
}

.remote-ai-message.is-thinking {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 58px;
  padding: 7px 9px;
}

.remote-ai-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 8px;
  border-radius: 13px;
  isolation: isolate;
}

.remote-control-panel.is-remote-ai-enabled .remote-ai-form::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background:
    conic-gradient(
      from 0deg,
      rgba(178, 107, 255, 0.08),
      #b26bff,
      #f4b8ff,
      #76f7d0,
      #ffcf6f,
      #b26bff,
      rgba(178, 107, 255, 0.08)
    );
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  opacity: 0.9;
  pointer-events: none;
  animation: aiRainbowBorderSpin 2.8s linear infinite;
  transform: rotate(0deg);
  z-index: 0;
}

.remote-ai-form input {
  position: relative;
  z-index: 1;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 9px 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  outline: none;
}

.remote-ai-form button {
  position: relative;
  z-index: 1;
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.075);
  cursor: pointer;
}

.remote-ai-form button:hover {
  color: #170b23;
  background: linear-gradient(135deg, #f8f1ff, #ffffff);
}

.remote-ai-form button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.remote-ai-disable {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  padding: 5px 8px;
  color: rgba(241, 223, 248, 0.68);
  background: rgba(255, 255, 255, 0.055);
  font: inherit;
  font-size: 0.68rem;
  cursor: pointer;
}

.remote-ai-disable:hover {
  color: #fff;
  background: rgba(178, 107, 255, 0.18);
}

.remote-ai-result-note {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(178, 107, 255, 0.18);
  border-radius: 12px;
  color: rgba(241, 223, 248, 0.78);
  background: rgba(178, 107, 255, 0.08);
  font-size: 0.78rem;
}

.remote-control-section {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.remote-control-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.remote-control-section-head strong {
  color: #fff;
  font-size: 0.9rem;
}

.remote-control-section-head span,
.remote-empty {
  color: rgba(241, 223, 248, 0.62);
  font-size: 0.78rem;
}

.remote-empty {
  margin: 0;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
}

.remote-queue-item,
.remote-playlist-row,
.remote-playlist-item {
  width: 100%;
  display: grid;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.remote-queue-item {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 7px;
}

.remote-queue-item[draggable="true"] {
  cursor: grab;
}

.remote-queue-item.is-dragging,
.remote-search-item.is-dragging {
  opacity: 0.46;
}

.remote-queue-item.is-drop-target,
.remote-queue-item.is-drop-target-bottom {
  position: relative;
  border-color: rgba(178, 107, 255, 0.55);
}

.remote-queue-item.is-drop-target::before,
.remote-queue-item.is-drop-target-bottom::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(178, 107, 255, 0.95), rgba(255, 255, 255, 0.95));
}

.remote-queue-item.is-drop-target::before {
  top: -5px;
}

.remote-queue-item.is-drop-target-bottom::after {
  bottom: -5px;
}

.remote-playlist-row {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 7px;
}

.remote-network-panel.is-expanded .remote-playlist-row {
  grid-template-columns: minmax(280px, 1fr) max-content;
  gap: 10px;
  padding: 8px;
}

.remote-playlist-row.is-folder-drop-target,
.library-media-card.is-folder-drop-target .library-media-main {
  border-color: rgba(178, 107, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(178, 107, 255, 0.18), rgba(255, 255, 255, 0.12)),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 2px rgba(178, 107, 255, 0.16);
}

.remote-playlist-row.is-open {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
}

.remote-queue-main,
.remote-playlist-item {
  min-width: 0;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.remote-queue-main {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
}

.remote-playlist-item {
  grid-template-columns: 38px minmax(0, 1fr) minmax(54px, auto);
  padding: 0;
  background: transparent;
}

.remote-network-panel.is-expanded .remote-playlist-item {
  grid-template-columns: 42px minmax(170px, 1fr) minmax(58px, auto);
  gap: 10px;
}

.remote-queue-thumb,
.remote-playlist-item img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.remote-queue-main span,
.remote-playlist-item > span:not(.remote-playlist-play) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.remote-queue-main strong,
.remote-queue-main span span,
.remote-playlist-item strong,
.remote-playlist-item span span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remote-queue-main strong,
.remote-playlist-item strong {
  font-size: 0.84rem;
}

.remote-queue-main span span,
.remote-playlist-item span span {
  color: rgba(241, 223, 248, 0.62);
  font-size: 0.74rem;
}

.remote-queue-actions {
  display: grid;
  grid-template-columns: repeat(3, 28px);
  gap: 4px;
}

.remote-network-panel.is-expanded .remote-queue-actions {
  grid-template-columns: repeat(3, 32px);
  gap: 6px;
}

.remote-mini-action {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.remote-network-panel.is-expanded .remote-mini-action {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.remote-mini-action:disabled {
  cursor: default;
  opacity: 0.38;
}

.remote-mini-action svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.remote-mini-action:not(:disabled):hover,
.remote-playlist-row:hover,
.remote-playlist-item:hover,
.remote-queue-item:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
}

.remote-playlist-tools {
  display: grid;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.remote-network-panel.is-expanded .remote-playlist-tools {
  grid-template-columns: minmax(170px, 1fr) max-content;
  align-items: center;
  gap: 10px;
}

.remote-network-panel.is-expanded .remote-create-playlist-row {
  grid-column: 1 / -1;
}

.remote-control-panel:not(.is-creating-playlist) .remote-playlist-tools {
  display: none;
}

.remote-playlist-tools > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(241, 223, 248, 0.74);
  font-size: 0.78rem;
}

.remote-create-playlist-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.remote-create-playlist-row input {
  min-width: 0;
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 9px 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  outline: none;
}

.remote-create-playlist-toggle {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.075);
  cursor: pointer;
}

.remote-create-playlist-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.remote-create-playlist-toggle[aria-expanded="true"] {
  color: #170b23;
  border-color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(135deg, #f8f1ff, #ffffff);
}

.remote-use-current-track,
.remote-create-playlist-row button,
.remote-search-actions button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  min-height: var(--button-height);
  padding: 0 var(--button-padding-x);
  color: #fff;
  background: rgba(255, 255, 255, 0.075);
  font: inherit;
  font-size: var(--button-font-size);
  font-weight: 800;
  cursor: pointer;
}

.remote-use-current-track:not(:disabled):hover,
.remote-create-playlist-row button:not(:disabled):hover,
.remote-search-actions button:not(:disabled):hover {
  color: #170b23;
  background: linear-gradient(135deg, #f8f1ff, #ffffff);
}

.remote-playlist-actions,
.remote-search-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.remote-playlist-actions {
  flex: 0 0 auto;
}

.remote-network-panel.is-expanded .remote-playlist-actions {
  display: grid;
  grid-template-columns: repeat(3, 32px);
  gap: 6px;
}

.remote-playlist-detail {
  display: grid;
  gap: 6px;
  margin: -2px 0 6px 14px;
  padding: 8px;
  border-left: 2px solid rgba(178, 107, 255, 0.38);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.04);
}

.remote-playlist-track {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
  cursor: grab;
}

.remote-network-panel.is-expanded .remote-playlist-track {
  grid-template-columns: 34px minmax(0, 1fr) 32px;
}

.remote-playlist-track img {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.remote-playlist-track span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.remote-playlist-track strong,
.remote-playlist-track span span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remote-playlist-track strong {
  font-size: 0.8rem;
}

.remote-playlist-track span span {
  color: rgba(241, 223, 248, 0.62);
  font-size: 0.7rem;
}

.remote-playlist-track-remove {
  justify-self: end;
}

.remote-playlist-track.is-dragging {
  opacity: 0.46;
}

.remote-playlist-track.is-drop-target::before,
.remote-playlist-track.is-drop-target-bottom::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(178, 107, 255, 0.95), rgba(255, 255, 255, 0.95));
}

.remote-playlist-track.is-drop-target::before {
  top: -5px;
}

.remote-playlist-track.is-drop-target-bottom::after {
  bottom: -5px;
}

.remote-search-choice {
  grid-template-columns: minmax(0, 1fr) auto;
}

.remote-search-choice:not(.remote-search-playlist) {
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

.remote-search-choice > img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.remote-device-item:disabled,
.remote-search-item:disabled,
.remote-queue-main:disabled,
.remote-playlist-item:disabled,
.remote-controls button:disabled,
.remote-search-row button:disabled,
.remote-ai-form button:disabled,
.remote-use-current-track:disabled,
.remote-create-playlist-row button:disabled,
.remote-search-actions button:disabled {
  cursor: default;
  opacity: 0.62;
}

.remote-device-item.is-loading,
.remote-search-item.is-loading,
.remote-queue-main.is-loading,
.remote-playlist-item.is-loading,
.remote-playlist-row.is-loading,
.remote-playlist-track.is-loading,
.remote-mini-action.is-loading,
.remote-controls button.is-loading,
.remote-search-row button.is-loading,
.remote-ai-form button.is-loading,
.remote-create-playlist-row button.is-loading,
.remote-search-actions button.is-loading {
  position: relative;
  pointer-events: none;
}

.remote-device-item.is-loading::after,
.remote-search-item.is-loading::after,
.remote-queue-main.is-loading::after,
.remote-playlist-item.is-loading::after,
.remote-playlist-row.is-loading::after,
.remote-playlist-track.is-loading::after,
.remote-mini-action.is-loading::after,
.remote-controls button.is-loading::after,
.remote-search-row button.is-loading::after,
.remote-ai-form button.is-loading::after,
.remote-create-playlist-row button.is-loading::after,
.remote-search-actions button.is-loading::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #b26bff, #f4b8ff, #76f7d0, #ffcf6f, rgba(178, 107, 255, 0.12));
  box-shadow: 0 0 12px rgba(178, 107, 255, 0.45);
  mask: radial-gradient(circle, transparent 43%, #000 46%);
  -webkit-mask: radial-gradient(circle, transparent 43%, #000 46%);
  animation: remotePendingSpin 0.8s linear infinite;
}

.remote-search-item.is-loading strong:last-child,
.remote-playlist-item.is-loading .remote-playlist-play,
.remote-search-actions button.is-loading {
  color: transparent;
}

.remote-playlist-play {
  border-radius: 999px;
  padding: 6px 9px;
  color: #170b23;
  background: linear-gradient(135deg, #f8f1ff, #ffffff);
  font-size: 0.74rem;
  font-weight: 800;
}

.remote-controls {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.remote-controls button,
.remote-search-row button,
.remote-permission-actions button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 9px 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.075);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.remote-controls button,
.remote-search-row button {
  display: grid;
  place-items: center;
}

.remote-network-panel.is-expanded .remote-controls button {
  min-height: 50px;
}

.remote-controls button:hover,
.remote-search-row button:hover {
  color: #170b23;
  background: linear-gradient(135deg, #f8f1ff, #ffffff);
}

.remote-controls button:disabled:hover,
.remote-search-row button:disabled:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.075);
}

.remote-search-row input {
  min-width: 0;
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 11px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  outline: none;
}

@keyframes remotePendingSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes remoteNowBars {
  0%,
  100% {
    height: 6px;
  }

  50% {
    height: 17px;
  }
}

.remote-permission-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
}

.remote-permission-modal[hidden] {
  display: none !important;
}

.remote-permission-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 2, 8, 0.76);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.remote-permission-card {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  display: grid;
  gap: 13px;
  padding: 22px;
  border: 1px solid rgba(216, 137, 255, 0.22);
  border-radius: 24px;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(216, 137, 255, 0.18), transparent 34%),
    rgba(12, 6, 20, 0.97);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.56);
}

.remote-permission-kicker {
  color: rgba(248, 241, 255, 0.72);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.remote-permission-card h2,
.remote-permission-card p {
  margin: 0;
}

.remote-permission-card h2 {
  color: #fff;
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-size: 2.4rem;
  line-height: 0.95;
}

.remote-permission-card p {
  color: rgba(241, 223, 248, 0.76);
  line-height: 1.5;
}

.remote-permission-actions {
  justify-content: flex-end;
}

#remote-permission-allow {
  color: #16091f;
  background: linear-gradient(135deg, #fff, #d889ff 62%, #b26bff);
}

.search-ai-choice-modal {
  position: fixed;
  inset: 0;
  z-index: 72;
  display: grid;
  place-items: center;
  padding: 22px;
}

.search-ai-choice-modal[hidden] {
  display: none !important;
}

.search-ai-choice-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(178, 107, 255, 0.24), transparent 34%),
    rgba(5, 4, 10, 0.68);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.search-ai-choice-card {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(210, 164, 255, 0.3);
  border-radius: 22px;
  color: var(--text);
  background: linear-gradient(155deg, rgba(25, 31, 31, 0.98), rgba(12, 10, 20, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
}

.search-ai-choice-kicker {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(178, 107, 255, 0.2);
  color: #d9b4ff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
}

.search-ai-choice-card h2,
.search-ai-choice-card p {
  margin: 0;
}

.search-ai-choice-card h2 {
  max-width: 12ch;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.55rem;
  line-height: 1.05;
}

.search-ai-choice-card p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

.search-ai-choice-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.search-ai-choice-actions button {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

#search-ai-choice-accept {
  border-color: rgba(246, 231, 255, 0.44);
  background: #d9b4ff;
  color: #16091f;
}

#remote-ai-choice-accept {
  border-color: rgba(246, 231, 255, 0.44);
  background: #d9b4ff;
  color: #16091f;
}

@media (max-width: 430px) {
  .search-ai-choice-modal {
    place-items: end center;
    padding: 16px;
  }

  .search-ai-choice-actions {
    grid-template-columns: 1fr;
  }
}

body.remote-controller-active .remote-network-panel.is-expanded .remote-control-panel {
  grid-template-columns: minmax(260px, 0.34fr) minmax(520px, 1fr) minmax(340px, 0.45fr);
  grid-template-rows: auto minmax(260px, 1fr) minmax(140px, 0.55fr) auto;
  grid-template-areas:
    "playlist search now"
    "playlist queue now"
    "playlist results now"
    "session controls seek";
  gap: 18px;
  min-height: 0;
  align-items: stretch;
}

body.remote-controller-active .remote-network-panel.is-expanded .remote-device-list {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-height: 76px;
  overflow: auto;
}

body.remote-controller-active .remote-network-panel.is-expanded .remote-queue-list,
body.remote-controller-active .remote-network-panel.is-expanded .remote-search-results,
body.remote-controller-active .remote-network-panel.is-expanded .remote-playlist-list {
  max-height: none;
}

body.remote-controller-active .remote-network-panel.is-expanded .remote-playlist-list {
  overflow-x: hidden;
}

body.remote-controller-active .remote-network-panel.is-expanded .remote-playlist-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

body.remote-controller-active .remote-network-panel.is-expanded .remote-playlist-item {
  grid-template-columns: 48px minmax(0, 1fr) minmax(52px, auto);
}

body.remote-controller-active .remote-network-panel.is-expanded .remote-playlist-tools {
  grid-template-columns: minmax(0, 1fr);
}

body.remote-controller-active .remote-network-panel.is-expanded .remote-create-playlist-row {
  grid-column: auto;
}

body.remote-controller-active .remote-use-current-track {
  width: 100%;
}

body.remote-controller-active .remote-seek {
  align-self: center;
  min-width: 0;
}

@media (min-width: 981px) {
  body.remote-controller-active .remote-network-widget {
    padding: 0;
  }

  body.remote-controller-active .remote-network-panel.is-expanded {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 268px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas:
      "sidebar main"
      "status status";
    gap: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    background:
      radial-gradient(circle at 82% 12%, rgba(126, 73, 255, 0.16), transparent 30%),
      radial-gradient(circle at 54% 82%, rgba(28, 104, 138, 0.1), transparent 28%),
      linear-gradient(135deg, #060912, #090c16 48%, #05070d);
  }

  body.remote-controller-active .remote-network-head,
  body.remote-controller-active .remote-network-panel.is-expanded > .remote-device-list {
    display: none;
  }

  body.remote-controller-active .remote-desktop-sidebar {
    grid-area: sidebar;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    gap: 14px;
    padding: 30px 18px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.09);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
      rgba(4, 7, 13, 0.72);
  }

  .remote-sidebar-brand,
  .remote-profile-trigger,
  .remote-sidebar-nav a,
  .remote-sidebar-now {
    display: flex;
    align-items: center;
  }

  .remote-profile-trigger {
    width: 100%;
    min-width: 0;
    gap: 10px;
    min-height: 48px;
    border: 1px solid rgba(217, 180, 255, 0.16);
    border-radius: 16px;
    padding: 7px 10px;
    background:
      radial-gradient(circle at 12% 0%, rgba(178, 107, 255, 0.2), transparent 34%),
      rgba(255, 255, 255, 0.045);
    color: #fff;
    text-align: left;
    cursor: pointer;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.055),
      0 14px 28px rgba(0, 0, 0, 0.16);
  }

  .remote-profile-avatar-wrap {
    position: relative;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    overflow: hidden;
    background:
      radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.24), transparent 30%),
      linear-gradient(135deg, #7438ff, #c35dff);
    box-shadow: 0 10px 22px rgba(151, 78, 255, 0.26);
  }

  .remote-profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .remote-profile-avatar[hidden] {
    display: none;
  }

  .remote-profile-initials {
    color: #fff;
    font: 950 0.78rem/1 "Space Grotesk", system-ui, sans-serif;
  }

  .remote-profile-avatar-wrap:has(.remote-profile-avatar:not([hidden])) .remote-profile-initials {
    display: none;
  }

  .remote-profile-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  .remote-profile-copy strong,
  .remote-profile-copy small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .remote-profile-copy strong {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1;
  }

  .remote-profile-copy small {
    color: rgba(217, 180, 255, 0.68);
    font-size: 0.62rem;
    font-weight: 750;
    line-height: 1;
  }

  .remote-sidebar-brand {
    gap: 12px;
    padding: 0 12px 8px;
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.24rem;
  }

  .remote-sidebar-brand-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  .remote-sidebar-brand-copy small {
    color: rgba(241, 223, 248, 0.58);
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.1;
  }

  .remote-sidebar-logo {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(135deg, #7438ff, #c35dff);
    font-weight: 900;
    box-shadow: 0 10px 28px rgba(151, 78, 255, 0.32);
  }

  .remote-sidebar-nav {
    align-self: center;
    display: grid;
    gap: 9px;
    padding: 12px 0;
  }

  .remote-sidebar-nav a {
    position: relative;
    min-height: 48px;
    gap: 13px;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 0 15px;
    color: rgba(241, 223, 248, 0.78);
    text-decoration: none;
    font-weight: 700;
    transition:
      border-color 0.16s ease,
      background 0.16s ease,
      color 0.16s ease,
      transform 0.16s ease,
      box-shadow 0.16s ease;
  }

  .remote-sidebar-nav a.is-active,
  .remote-sidebar-nav a:hover {
    color: #fff;
    border-color: rgba(178, 107, 255, 0.34);
    background:
      linear-gradient(90deg, rgba(157, 74, 255, 0.68), rgba(157, 74, 255, 0.18)),
      rgba(255, 255, 255, 0.035);
    box-shadow:
      0 14px 30px rgba(0, 0, 0, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
  }

  .remote-sidebar-nav a.is-active::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 50%;
    width: 3px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f1d8ff, #a855ff);
    box-shadow: 0 0 18px rgba(178, 107, 255, 0.52);
    transform: translateY(-50%);
  }

  .remote-sidebar-nav svg {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    fill: currentColor;
  }

  .remote-sidebar-section {
    align-self: end;
    display: grid;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    padding: 18px 12px 0;
  }

  .remote-sidebar-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: rgba(241, 223, 248, 0.56);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .remote-sidebar-section-head strong {
    min-width: 28px;
    border-radius: 999px;
    padding: 5px 8px;
    color: #fff;
    background: rgba(178, 107, 255, 0.24);
    text-align: center;
  }

  .remote-sidebar-section p {
    margin: 0;
    overflow: hidden;
    color: rgba(241, 223, 248, 0.72);
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .remote-sidebar-now {
    position: relative;
    min-height: 62px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 24px;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    padding: 14px 10px 10px;
    outline: none;
    cursor: pointer;
    transition:
      background 0.18s ease,
      border-color 0.18s ease,
      box-shadow 0.18s ease;
  }

  .remote-sidebar-now.is-disabled {
    cursor: default;
    overflow: hidden;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.028);
  }

  .remote-sidebar-now.is-disabled::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.09) 42%, transparent 70%);
    opacity: 0.86;
    transform: translateX(-100%);
    animation: remoteSidebarLoading 1.35s ease-in-out infinite;
    pointer-events: none;
  }

  .remote-sidebar-now.is-disabled img {
    animation: remoteSidebarCoverPulse 1.2s ease-in-out infinite;
  }

  .remote-sidebar-now:hover,
  .remote-sidebar-now:focus-visible,
  .remote-sidebar-now:focus-within {
    border-color: rgba(178, 107, 255, 0.32);
    background: rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .remote-sidebar-now.is-disabled:hover,
  .remote-sidebar-now.is-disabled:focus-visible,
  .remote-sidebar-now.is-disabled:focus-within {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.028);
    box-shadow: none;
  }

  .remote-sidebar-now img {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
  }

  .remote-sidebar-now span {
    min-width: 0;
    display: grid;
    gap: 3px;
  }

  .remote-sidebar-now strong,
  .remote-sidebar-now small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .remote-sidebar-now strong {
    color: #fff;
    font-size: 0.86rem;
  }

  .remote-sidebar-now small {
    color: rgba(241, 223, 248, 0.64);
    font-size: 0.76rem;
  }

  .remote-sidebar-expand-icon {
    width: 20px;
    height: 20px;
    align-self: center;
    justify-self: end;
    fill: rgba(241, 223, 248, 0.68);
    transition: transform 0.18s ease, fill 0.18s ease;
  }

  .remote-sidebar-now:hover .remote-sidebar-expand-icon,
  .remote-sidebar-now:focus-visible .remote-sidebar-expand-icon,
  .remote-sidebar-now:focus-within .remote-sidebar-expand-icon {
    fill: #c98bff;
    transform: rotate(180deg);
  }

  .remote-sidebar-now-detail {
    grid-column: 1 / -1;
    display: grid;
    grid-template-rows: 0fr;
    gap: 0;
    overflow: hidden;
    opacity: 0;
    transition:
      grid-template-rows 0.2s ease,
      opacity 0.16s ease,
      padding-top 0.18s ease;
  }

  .remote-sidebar-now:hover .remote-sidebar-now-detail,
  .remote-sidebar-now:focus-visible .remote-sidebar-now-detail,
  .remote-sidebar-now:focus-within .remote-sidebar-now-detail {
    grid-template-rows: 1fr;
    gap: 3px;
    padding-top: 10px;
    opacity: 1;
  }

  .remote-sidebar-now-detail span,
  .remote-sidebar-now-detail strong,
  .remote-sidebar-now-detail small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .remote-sidebar-now-detail span {
    color: rgba(185, 130, 255, 0.76);
    font-size: 0.62rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .remote-sidebar-now-detail strong {
    color: #fff;
    font-size: 0.82rem;
  }

  .remote-sidebar-now-detail small {
    color: rgba(241, 223, 248, 0.7);
    font-size: 0.74rem;
  }

  @keyframes remoteSidebarLoading {
    to {
      transform: translateX(100%);
    }
  }

  @keyframes remoteSidebarCoverPulse {
    50% {
      opacity: 0.46;
    }
  }

  body.remote-controller-active .remote-network-panel.is-expanded .remote-control-panel {
    grid-area: main;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(250px, 0.34fr) minmax(460px, 1fr) minmax(330px, 0.42fr);
    grid-template-rows: auto minmax(0, 1fr) 78px;
    grid-template-areas:
      "playlist search now"
      "playlist queue now"
      "playlist seek controls";
    gap: 16px 24px;
    padding: 24px 28px 20px 36px;
    overflow: hidden;
  }

  body.remote-controller-active .remote-network-panel.is-expanded .remote-control-panel.has-search-results {
    grid-template-rows: auto minmax(150px, auto) minmax(250px, 1fr) 78px;
    grid-template-areas:
      "playlist search now"
      "playlist results now"
      "playlist queue now"
      "playlist seek controls";
  }

  body.remote-controller-active .remote-network-panel.is-expanded .remote-control-panel.is-playlist-collapsed {
    grid-template-columns: 44px minmax(620px, 1fr) minmax(330px, 0.4fr);
    gap: 16px 18px;
  }

  body.remote-controller-active .remote-session-card {
    display: none;
  }

  body.remote-controller-active .remote-playlist-section {
    position: relative;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    align-content: start;
    gap: 12px;
    border-left: 2px solid rgba(178, 107, 255, 0.48);
    padding-left: 12px;
    overflow: hidden;
  }

  body.remote-controller-active .remote-playlist-section::before {
    content: "";
    position: absolute;
    left: -2px;
    top: 0;
    width: 2px;
    height: 74px;
    border-radius: 999px;
    background: linear-gradient(180deg, #d894ff, rgba(178, 107, 255, 0.18));
    box-shadow: 0 0 18px rgba(178, 107, 255, 0.28);
  }

  body.remote-controller-active .remote-playlist-section .remote-control-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
  }

  body.remote-controller-active .remote-create-playlist-toggle,
  body.remote-controller-active .remote-playlist-collapse {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9px;
    color: rgba(241, 223, 248, 0.82);
    background: rgba(255, 255, 255, 0.055);
    cursor: pointer;
  }

  body.remote-controller-active .remote-create-playlist-toggle:hover,
  body.remote-controller-active .remote-playlist-collapse:hover {
    color: #fff;
    border-color: rgba(178, 107, 255, 0.42);
    background: rgba(178, 107, 255, 0.16);
  }

  body.remote-controller-active .remote-create-playlist-toggle[aria-expanded="true"] {
    color: #170b23;
    border-color: rgba(255, 255, 255, 0.78);
    background: linear-gradient(135deg, #f8f1ff, #ffffff);
  }

  body.remote-controller-active .remote-create-playlist-toggle svg,
  body.remote-controller-active .remote-playlist-collapse svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
  }

  body.remote-controller-active .remote-queue-section .remote-control-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
  }

  body.remote-controller-active .remote-queue-collapse {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9px;
    color: rgba(241, 223, 248, 0.82);
    background: rgba(255, 255, 255, 0.055);
    cursor: pointer;
  }

  body.remote-controller-active .remote-queue-collapse:hover {
    color: #fff;
    border-color: rgba(178, 107, 255, 0.42);
    background: rgba(178, 107, 255, 0.16);
  }

  body.remote-controller-active .remote-queue-collapse svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
  }

  body.remote-controller-active .remote-queue-expand-icon,
  body.remote-controller-active .remote-control-panel.is-queue-collapsed .remote-queue-collapse-icon {
    display: none;
  }

  body.remote-controller-active .remote-control-panel.is-queue-collapsed .remote-queue-expand-icon {
    display: block;
  }

  body.remote-controller-active .remote-control-panel.is-queue-collapsed {
    grid-template-rows: auto auto minmax(0, 1fr) auto 78px;
    grid-template-areas:
      "playlist search now"
      "playlist results now"
      "playlist queue now"
      "playlist seek controls";
  }

  body.remote-controller-active .remote-control-panel.is-queue-collapsed .remote-queue-section {
    align-self: end;
    grid-template-rows: auto;
    min-height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.035);
  }

  body.remote-controller-active .remote-control-panel.is-queue-collapsed .remote-queue-list {
    display: none;
  }

  body.remote-controller-active .remote-control-panel.is-queue-collapsed .remote-queue-section .remote-control-section-head {
    min-height: 30px;
    padding: 0;
  }

  body.remote-controller-active .remote-control-panel.is-queue-collapsed .remote-queue-section .remote-control-section-head span {
    color: rgba(241, 223, 248, 0.5);
  }

  body.remote-controller-active .remote-control-panel.is-queue-collapsed.has-search-results .remote-search-results:not(:empty) {
    max-height: min(360px, 46vh);
  }

  body.remote-controller-active .remote-playlist-expand-icon,
  body.remote-controller-active .remote-control-panel.is-playlist-collapsed .remote-playlist-collapse-icon {
    display: none;
  }

  body.remote-controller-active .remote-control-panel.is-playlist-collapsed .remote-playlist-expand-icon {
    display: block;
  }

  body.remote-controller-active .remote-control-panel.is-playlist-collapsed .remote-playlist-section {
    grid-template-rows: minmax(0, 1fr);
    justify-items: center;
    gap: 0;
    border-left-color: rgba(178, 107, 255, 0.6);
    padding: 6px 0;
    background:
      linear-gradient(180deg, rgba(178, 107, 255, 0.12), rgba(255, 255, 255, 0.018)),
      rgba(255, 255, 255, 0.018);
    border-radius: 12px;
  }

  body.remote-controller-active .remote-control-panel.is-playlist-collapsed .remote-playlist-section .remote-control-section-head {
    min-height: 100%;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    justify-items: center;
    gap: 10px;
    padding: 0;
  }

  body.remote-controller-active .remote-control-panel.is-playlist-collapsed .remote-playlist-section .remote-control-section-head strong {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: center;
    white-space: nowrap;
    font-size: 0.82rem;
    letter-spacing: 0;
  }

body.remote-controller-active .remote-control-panel.is-playlist-collapsed .remote-playlist-section .remote-control-section-head span,
body.remote-controller-active .remote-control-panel.is-playlist-collapsed .remote-ai-panel,
body.remote-controller-active .remote-control-panel.is-playlist-collapsed .remote-playlist-tools,
body.remote-controller-active .remote-control-panel.is-playlist-collapsed .remote-playlist-list {
  display: none;
}

  body.remote-controller-active .remote-control-panel.is-playlist-collapsed .remote-playlist-collapse {
    order: -1;
    width: 32px;
    height: 32px;
    border-color: rgba(178, 107, 255, 0.34);
    color: #fff;
    background: rgba(178, 107, 255, 0.16);
  }

  body.remote-controller-active .remote-control-panel.is-playlist-collapsed.has-search-results .remote-search-results:not(:empty) {
    max-height: min(260px, 32vh);
  }

  body.remote-controller-active .remote-control-panel.is-playlist-collapsed .remote-queue-list {
    max-height: none;
  }

  body.remote-controller-active .remote-network-panel.is-expanded .remote-search-row {
    max-width: 760px;
    align-self: start;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: start;
    gap: 8px;
    border-radius: 10px;
    min-height: 0;
    padding: 7px;
  }

  body.remote-controller-active .remote-search-row input {
    grid-column: 1;
    width: 100%;
    min-height: 40px;
    color: #fff;
    font-size: 0.92rem;
  }

  body.remote-controller-active .remote-search-row > #remote-search-button {
    grid-column: 2;
    width: 42px;
    min-height: 40px;
    padding: 0;
  }

  body.remote-controller-active .remote-search-reference {
    flex: 1 0 100%;
    display: block;
    overflow: hidden;
    padding: 0 3px 1px;
    color: rgba(241, 223, 248, 0.46);
    font-size: 0.68rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.remote-controller-active .remote-search-row input::placeholder,
  body.remote-controller-active .remote-create-playlist-row input::placeholder {
    color: rgba(241, 223, 248, 0.44);
  }

  body.remote-controller-active .remote-search-row button,
  body.remote-controller-active .remote-controls button,
  body.remote-controller-active .remote-mini-action,
  body.remote-controller-active .remote-use-current-track,
  body.remote-controller-active .remote-create-playlist-row button,
  body.remote-controller-active .remote-search-actions button {
    border-radius: 9px;
    transition:
      border-color 0.16s ease,
      background 0.16s ease,
      color 0.16s ease,
      transform 0.16s ease,
      box-shadow 0.16s ease;
  }

  body.remote-controller-active .remote-search-row button:hover,
  body.remote-controller-active .remote-controls button:hover,
  body.remote-controller-active .remote-mini-action:not(:disabled):hover,
  body.remote-controller-active .remote-use-current-track:not(:disabled):hover,
  body.remote-controller-active .remote-create-playlist-row button:not(:disabled):hover,
  body.remote-controller-active .remote-search-actions button:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  }

  body.remote-controller-active .remote-now {
    min-height: 0;
    max-height: calc(100vh - 136px);
    grid-template-rows: auto auto minmax(0, auto) auto minmax(0, 1fr);
    align-content: start;
    gap: 16px;
    padding: 28px 28px 24px;
    border-radius: 0;
    border-color: rgba(166, 95, 255, 0.2);
    background:
      radial-gradient(circle at 50% 20%, rgba(170, 89, 255, 0.22), transparent 32%),
      linear-gradient(180deg, rgba(18, 14, 32, 0.96), rgba(4, 8, 15, 0.98));
    overflow: auto;
    scrollbar-width: none;
  }

  body.remote-controller-active .remote-now::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  body.remote-controller-active .remote-now::before {
    min-height: 24px;
    align-self: start;
    font-size: 1.05rem;
  }

  body.remote-controller-active .remote-now-image {
    width: min(100%, 290px);
    justify-self: center;
    border-radius: 14px;
    margin: 2px 0 4px;
  }

  body.remote-controller-active .remote-now-copy {
    align-self: start;
    max-width: 100%;
    gap: 7px;
    padding-top: 2px;
  }

  body.remote-controller-active .remote-now-title-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  body.remote-controller-active .remote-now-copy strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 1.18rem;
    line-height: 1.18;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  body.remote-controller-active .remote-lyrics-toggle {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    align-self: start;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    color: rgba(241, 223, 248, 0.84);
    background: rgba(255, 255, 255, 0.065);
    cursor: pointer;
    transition:
      border-color 0.16s ease,
      background 0.16s ease,
      color 0.16s ease,
      transform 0.16s ease;
  }

  body.remote-controller-active .remote-lyrics-toggle[hidden] {
    display: none !important;
  }

  body.remote-controller-active .remote-lyrics-toggle:hover,
  body.remote-controller-active .remote-lyrics-toggle[aria-expanded="true"] {
    color: #fff;
    border-color: rgba(178, 107, 255, 0.44);
    background: rgba(178, 107, 255, 0.18);
    transform: translateY(-1px);
  }

  body.remote-controller-active .remote-lyrics-toggle svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
  }

  body.remote-controller-active .remote-now-meta {
    overflow: hidden;
    color: rgba(241, 223, 248, 0.76);
    font-size: 0.8rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.remote-controller-active .remote-now-details {
    display: grid;
    gap: 7px;
    margin-top: 0;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  body.remote-controller-active .remote-now-details div {
    min-width: 0;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: baseline;
    gap: 9px;
  }

  body.remote-controller-active .remote-now-details span,
  body.remote-controller-active .remote-now-similar > span {
    color: rgba(185, 130, 255, 0.78);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  body.remote-controller-active .remote-now-details strong {
    min-width: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.remote-controller-active .remote-now-similar {
    align-self: start;
    display: grid;
    gap: 9px;
    padding-top: 1px;
  }

  body.remote-controller-active .remote-control-panel.has-lyrics-panel .remote-now-similar {
    display: none;
  }

  body.remote-controller-active .remote-now-similar-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 78px;
    overflow: auto;
    scrollbar-width: none;
  }

  body.remote-controller-active .remote-now-similar-list::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  body.remote-controller-active .remote-now-similar-list button,
  body.remote-controller-active .remote-now-similar-list em {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: rgba(241, 223, 248, 0.78);
    background: rgba(255, 255, 255, 0.055);
    font: inherit;
    font-size: 0.74rem;
    font-style: normal;
    line-height: 1;
  }

  body.remote-controller-active .remote-now-similar-list button {
    min-width: 0;
    max-width: 100%;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px 3px 4px;
    cursor: pointer;
  }

  body.remote-controller-active .remote-now-similar-list em {
    padding: 7px 9px;
  }

  body.remote-controller-active .remote-now-similar-list button {
    border-color: rgba(178, 107, 255, 0.22);
    background: rgba(178, 107, 255, 0.1);
  }

  body.remote-controller-active .remote-now-similar-list button:hover {
    color: #fff;
    border-color: rgba(178, 107, 255, 0.46);
    background: rgba(178, 107, 255, 0.18);
  }

  body.remote-controller-active .remote-now-similar-list button img {
    width: 23px;
    height: 23px;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
  }

  body.remote-controller-active .remote-now-similar-list button span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.remote-controller-active .remote-lyrics-panel:not([hidden]) {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
    min-height: 230px;
    max-height: min(360px, 42vh);
    border: 1px solid rgba(204, 143, 255, 0.28);
    border-radius: 14px;
    padding: 12px 12px 14px;
    background:
      radial-gradient(circle at 18% 18%, rgba(206, 122, 255, 0.2), transparent 34%),
      linear-gradient(180deg, rgba(64, 18, 103, 0.94), rgba(31, 10, 58, 0.97));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 18px 38px rgba(0, 0, 0, 0.24);
    overflow: hidden;
  }

  body.remote-controller-active .remote-lyrics-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: rgba(243, 225, 255, 0.78);
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  body.remote-controller-active .remote-lyrics-head button {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: rgba(248, 235, 255, 0.86);
    background: rgba(255, 255, 255, 0.055);
    cursor: pointer;
  }

  body.remote-controller-active .remote-lyrics-head button:hover {
    color: #fff;
    border-color: rgba(215, 158, 255, 0.42);
    background: rgba(193, 99, 255, 0.16);
  }

  body.remote-controller-active .remote-lyrics-head svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
  }

  body.remote-controller-active .remote-lyrics-content {
    min-height: 0;
    overflow: auto;
    color: rgba(238, 218, 255, 0.58);
    font-size: 1.06rem;
    font-weight: 850;
    line-height: 1.34;
    scrollbar-width: none;
  }

  body.remote-controller-active .remote-lyrics-content::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  body.remote-controller-active .remote-lyrics-line,
  body.remote-controller-active .remote-lyrics-plain {
    margin: 0;
  }

  body.remote-controller-active .remote-lyrics-line {
    padding: 9px 7px;
    border-radius: 9px;
    opacity: 0.64;
    transition:
      opacity 0.18s ease,
      color 0.18s ease,
      background 0.18s ease,
      transform 0.18s ease;
  }

  body.remote-controller-active .remote-lyrics-line.is-past {
    color: rgba(228, 198, 255, 0.36);
    opacity: 0.62;
  }

  body.remote-controller-active .remote-lyrics-line.is-active {
    color: #ffffff;
    opacity: 1;
    background: rgba(231, 205, 255, 0.14);
    text-shadow: 0 1px 18px rgba(255, 255, 255, 0.24);
    transform: translateX(2px);
  }

  body.remote-controller-active .remote-lyrics-plain {
    white-space: pre-line;
  }

  body.remote-controller-active .remote-artist-profile:not([hidden]) {
    position: relative;
    display: grid;
    gap: 12px;
    margin-top: 2px;
    padding: 10px;
    border: 1px solid rgba(178, 107, 255, 0.18);
    border-radius: 12px;
    background:
      linear-gradient(180deg, rgba(178, 107, 255, 0.11), rgba(255, 255, 255, 0.035)),
      rgba(255, 255, 255, 0.035);
  }

  body.remote-controller-active .remote-artist-back {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9px;
    color: rgba(241, 223, 248, 0.82);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
      rgba(9, 12, 19, 0.84);
    cursor: pointer;
    z-index: 1;
  }

  body.remote-controller-active .remote-artist-back:hover {
    color: #fff;
    border-color: rgba(178, 107, 255, 0.44);
    background: rgba(178, 107, 255, 0.18);
  }

  body.remote-controller-active .remote-artist-back svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
  }

  body.remote-controller-active .remote-artist-profile-head {
    min-width: 0;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding-right: 34px;
  }

  body.remote-controller-active .remote-artist-profile-head img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  }

  body.remote-controller-active .remote-artist-profile-head div,
  body.remote-controller-active .remote-artist-top {
    min-width: 0;
    display: grid;
    gap: 5px;
  }

  body.remote-controller-active .remote-artist-profile-head span,
  body.remote-controller-active .remote-artist-top > span {
    color: rgba(185, 130, 255, 0.82);
    font-size: 0.64rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  body.remote-controller-active .remote-artist-profile-head strong {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 1.02rem;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.remote-controller-active .remote-artist-profile-head small {
    min-width: 0;
    overflow: hidden;
    color: rgba(241, 223, 248, 0.68);
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.remote-controller-active .remote-artist-top-tracks {
    display: grid;
    gap: 6px;
    max-height: 148px;
    overflow: auto;
    scrollbar-width: none;
  }

  body.remote-controller-active .remote-artist-top-tracks::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  body.remote-controller-active .remote-artist-top-tracks button {
    min-width: 0;
    min-height: 42px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    padding: 4px 7px;
    color: #fff;
    background: rgba(255, 255, 255, 0.045);
    font: inherit;
    text-align: left;
    cursor: pointer;
  }

  body.remote-controller-active .remote-artist-top-tracks button:hover {
    border-color: rgba(178, 107, 255, 0.34);
    background: rgba(178, 107, 255, 0.12);
  }

  body.remote-controller-active .remote-artist-top-tracks img {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
  }

  body.remote-controller-active .remote-artist-top-tracks span {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  body.remote-controller-active .remote-artist-top-tracks strong,
  body.remote-controller-active .remote-artist-top-tracks small,
  body.remote-controller-active .remote-artist-top-tracks em {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.remote-controller-active .remote-artist-top-tracks strong {
    font-size: 0.78rem;
  }

  body.remote-controller-active .remote-artist-top-tracks small,
  body.remote-controller-active .remote-artist-top-tracks em {
    color: rgba(241, 223, 248, 0.62);
    font-size: 0.7rem;
    font-style: normal;
  }

  body.remote-controller-active .remote-queue-section {
    gap: 12px;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
  }

  body.remote-controller-active .remote-control-section-head {
    min-height: 28px;
    padding-right: 6px;
  }

  body.remote-controller-active .remote-control-section-head strong {
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.94rem;
    line-height: 1.1;
  }

  body.remote-controller-active .remote-control-section-head span {
    color: rgba(241, 223, 248, 0.48);
    font-size: 0.72rem;
  }

  body.remote-controller-active .remote-queue-item {
    position: relative;
    min-height: 52px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 7px 10px 7px 27px;
  }

  body.remote-controller-active .remote-queue-item::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 50%;
    width: 4px;
    height: 21px;
    border-radius: 999px;
    background:
      radial-gradient(circle, rgba(241, 223, 248, 0.72) 1.4px, transparent 1.8px) 0 0 / 4px 7px;
    transform: translateY(-50%);
  }

  body.remote-controller-active .remote-queue-item.is-current {
    padding-right: 112px;
    border-color: rgba(178, 107, 255, 0.86);
    background:
      linear-gradient(90deg, rgba(111, 54, 205, 0.34), rgba(255, 255, 255, 0.055)),
      rgba(14, 17, 28, 0.92);
  }

  body.remote-controller-active .remote-queue-item.is-current::after {
    content: "TOCANDO";
    position: absolute;
    right: 54px;
    top: 50%;
    color: #b982ff;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0;
    transform: translateY(-50%);
  }

  body.remote-controller-active .remote-queue-main strong {
    font-size: 0.88rem;
    line-height: 1.15;
  }

  body.remote-controller-active .remote-queue-main span span,
  body.remote-controller-active .remote-playlist-item span span,
  body.remote-controller-active .remote-search-item span span {
    font-size: 0.72rem;
    line-height: 1.2;
  }

  body.remote-controller-active .remote-network-panel.is-expanded .remote-queue-list {
    max-height: none;
    min-height: 0;
    padding-right: 0;
    overflow: auto;
    scrollbar-width: none;
  }

  body.remote-controller-active .remote-network-panel.is-expanded .remote-search-results {
    max-height: 0;
    min-height: 0;
    align-content: start;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
    border: 0;
    overflow: hidden;
    scrollbar-width: none;
  }

  body.remote-controller-active .remote-network-panel.is-expanded .remote-search-results:empty {
    display: none;
  }

  body.remote-controller-active .remote-network-panel.is-expanded .remote-control-panel.has-search-results .remote-search-results:not(:empty) {
    position: relative;
    max-height: 184px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 32px 10px 10px;
    overflow: auto;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
      rgba(8, 11, 18, 0.62);
  }

  body.remote-controller-active .remote-network-panel.is-expanded .remote-control-panel.is-library-view.has-search-results .remote-search-results:not(:empty) {
    max-height: min(430px, 52vh);
  }

  body.remote-controller-active .remote-network-panel.is-expanded .remote-control-panel.is-library-view.is-queue-collapsed.has-search-results .remote-search-results:not(:empty) {
    max-height: calc(100vh - 248px);
  }

  body.remote-controller-active .remote-network-panel.is-expanded .remote-control-panel.is-library-view.is-queue-collapsed.is-playlist-collapsed.has-search-results .remote-search-results:not(:empty) {
    max-height: calc(100vh - 230px);
  }

  body.remote-controller-active .remote-network-panel.is-expanded .remote-control-panel.has-search-results .remote-search-results:not(:empty)::before {
    content: "Resultados da busca";
    position: absolute;
    left: 12px;
    top: 10px;
    color: rgba(241, 223, 248, 0.66);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  body.remote-controller-active .remote-search-group {
    grid-column: 1 / -1;
    margin: 0;
    padding: 3px 2px 0;
    color: rgba(185, 130, 255, 0.82);
    font-size: 0.64rem;
  }

  body.remote-controller-active .remote-library-title,
  body.remote-controller-active .remote-library-section {
    grid-column: 1 / -1;
  }

  body.remote-controller-active .remote-library-title {
    display: grid;
    gap: 3px;
    padding: 2px 2px 6px;
  }

  body.remote-controller-active .remote-library-title strong {
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
  }

  body.remote-controller-active .remote-library-title span {
    color: rgba(241, 223, 248, 0.56);
    font-size: 0.74rem;
  }

  body.remote-controller-active .remote-library-section {
    display: grid;
    gap: 8px;
    padding-top: 7px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  body.remote-controller-active .remote-library-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: rgba(241, 223, 248, 0.62);
  }

  body.remote-controller-active .remote-library-section-head strong {
    color: rgba(185, 130, 255, 0.86);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  body.remote-controller-active .remote-library-section-head span {
    font-size: 0.7rem;
  }

  body.remote-controller-active .remote-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(390px, 1fr));
    gap: 8px;
  }

  body.remote-controller-active .remote-control-panel.is-library-view .remote-library-section {
    min-width: 0;
  }

  body.remote-controller-active .remote-control-panel.is-library-view .remote-search-choice:not(.remote-search-playlist) {
    grid-template-columns: 38px minmax(0, 1fr) minmax(214px, auto);
  }

  body.remote-controller-active .remote-search-item {
    min-height: 58px;
    align-content: center;
    gap: 8px;
    border-radius: 9px;
    padding: 7px;
  }

  body.remote-controller-active .remote-search-choice:not(.remote-search-playlist) {
    grid-template-columns: 38px minmax(0, 1fr) minmax(210px, auto);
  }

  body.remote-controller-active .remote-search-choice > img {
    width: 38px;
    height: 38px;
    border-radius: 7px;
  }

  body.remote-controller-active .remote-search-item > span {
    min-width: 0;
  }

  body.remote-controller-active .remote-search-item strong {
    font-size: 0.78rem;
    line-height: 1.15;
  }

  body.remote-controller-active .remote-search-item span span {
    font-size: 0.68rem;
  }

  body.remote-controller-active .remote-search-actions {
    display: grid;
    grid-template-columns: repeat(3, 66px);
    gap: 5px;
    padding-top: 0;
  }

  body.remote-controller-active .remote-search-playlist {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body.remote-controller-active .remote-search-playlist .remote-search-actions {
    grid-template-columns: 132px;
  }

  body.remote-controller-active .remote-search-actions button {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 8px;
    border-color: rgba(255, 255, 255, 0.14);
    font-size: 0.68rem;
    white-space: nowrap;
  }

  body.remote-controller-active .remote-search-actions button svg {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
    fill: currentColor;
  }

  body.remote-controller-active .remote-search-actions button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.remote-controller-active .remote-search-action-primary {
    color: #13091f;
    border-color: rgba(178, 107, 255, 0.48);
    background: linear-gradient(135deg, #ffffff, #c98bff);
  }

  body.remote-controller-active .remote-search-action-secondary {
    color: rgba(248, 241, 255, 0.86);
    background: rgba(255, 255, 255, 0.055);
  }

  body.remote-controller-active .remote-controls button {
    border-radius: 12px;
    border-color: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.9);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035)),
      rgba(12, 15, 24, 0.74);
  }

  body.remote-controller-active .remote-controls button:hover {
    color: #fff;
    border-color: rgba(178, 107, 255, 0.42);
    background:
      linear-gradient(180deg, rgba(178, 107, 255, 0.2), rgba(178, 107, 255, 0.09)),
      rgba(12, 15, 24, 0.84);
  }

  body.remote-controller-active #remote-toggle-play {
    color: #fff;
    background: linear-gradient(135deg, #8a3cff, #c45dff);
    box-shadow:
      0 18px 34px rgba(154, 76, 255, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }

  body.remote-controller-active .remote-network-panel.is-expanded .remote-playlist-list {
    min-height: 0;
    align-content: start;
    grid-auto-rows: min-content;
    gap: 8px;
    padding-right: 0;
    overflow: auto;
    scrollbar-width: none;
  }

  body.remote-controller-active .remote-network-panel.is-expanded .remote-queue-list::-webkit-scrollbar,
  body.remote-controller-active .remote-network-panel.is-expanded .remote-search-results::-webkit-scrollbar,
  body.remote-controller-active .remote-network-panel.is-expanded .remote-playlist-list::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  body.remote-controller-active .remote-empty {
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 9px;
    padding: 11px 12px;
    color: rgba(241, 223, 248, 0.58);
    background: rgba(255, 255, 255, 0.035);
    line-height: 1.35;
  }

  body.remote-controller-active .remote-playlist-tools {
    gap: 7px;
    border-radius: 10px;
    padding: 8px;
  }

  body.remote-controller-active .remote-playlist-tools > span {
    font-size: 0.74rem;
  }

  body.remote-controller-active .remote-create-playlist-row {
    gap: 6px;
  }

  body.remote-controller-active .remote-create-playlist-row input {
    min-height: 36px;
    border-radius: 9px;
    padding: 8px 9px;
    font-size: 0.82rem;
  }

  body.remote-controller-active .remote-use-current-track,
  body.remote-controller-active .remote-create-playlist-row button {
    min-height: 34px;
    font-size: 0.74rem;
  }

  body.remote-controller-active .remote-network-panel.is-expanded .remote-playlist-row {
    position: relative;
    gap: 7px;
    border-radius: 9px;
    padding: 7px;
    align-self: start;
  }

  body.remote-controller-active .remote-network-panel.is-expanded .remote-playlist-row.is-open {
    border-color: rgba(178, 107, 255, 0.46);
    background:
      linear-gradient(90deg, rgba(178, 107, 255, 0.18), rgba(255, 255, 255, 0.055)),
      rgba(255, 255, 255, 0.055);
    box-shadow:
      inset 3px 0 0 rgba(178, 107, 255, 0.82),
      0 12px 28px rgba(0, 0, 0, 0.2);
  }

  body.remote-controller-active .remote-network-panel.is-expanded .remote-playlist-row.is-open .remote-playlist-item strong {
    color: #fff;
  }

  body.remote-controller-active .remote-network-panel.is-expanded .remote-playlist-row.is-open .remote-playlist-item span span {
    color: rgba(216, 170, 255, 0.76);
  }

  body.remote-controller-active .remote-network-panel.is-expanded .remote-playlist-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  body.remote-controller-active .remote-playlist-play {
    display: none;
  }

  body.remote-controller-active .remote-network-panel.is-expanded .remote-playlist-actions {
    grid-template-columns: repeat(3, 30px);
    gap: 5px;
  }

  body.remote-controller-active .remote-network-panel.is-expanded .remote-mini-action {
    width: 30px;
    height: 30px;
  }

  body.remote-controller-active .remote-playlist-detail {
    margin-left: 8px;
    align-self: start;
    padding: 7px;
  }

  body.remote-controller-active .remote-playlist-track {
    min-height: 42px;
    border-radius: 9px;
    padding: 4px;
  }

  body.remote-controller-active .remote-seek,
  body.remote-controller-active .remote-controls {
    align-self: stretch;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-top-color: rgba(255, 255, 255, 0.09);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
      rgba(6, 9, 16, 0.9);
    box-shadow:
      0 -14px 34px rgba(0, 0, 0, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.035);
  }

  body.remote-controller-active .remote-seek {
    grid-template-columns: 46px minmax(0, 1fr) 50px;
    gap: 14px;
    padding: 17px 0 17px 20px;
    border-right: 0;
    border-radius: 10px 0 0 10px;
    color: rgba(241, 223, 248, 0.68);
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
  }

  body.remote-controller-active .remote-seek input {
    height: 18px;
    accent-color: #b66cff;
  }

  body.remote-controller-active .remote-seek input::-webkit-slider-runnable-track {
    height: 5px;
    border-radius: 999px;
    background:
      linear-gradient(90deg, #ad61ff 0 var(--remote-seek-progress, 0%), rgba(255, 255, 255, 0.86) var(--remote-seek-progress, 0%) 100%);
  }

  body.remote-controller-active .remote-seek input::-webkit-slider-thumb {
    width: 13px;
    height: 13px;
    margin-top: -4px;
    border: 0;
    border-radius: 50%;
    background: #b66cff;
    box-shadow: 0 0 0 4px rgba(182, 108, 255, 0.14);
  }

  body.remote-controller-active .remote-seek input::-moz-range-track {
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
  }

  body.remote-controller-active .remote-seek input::-moz-range-progress {
    height: 5px;
    border-radius: 999px;
    background: #ad61ff;
  }

  body.remote-controller-active .remote-seek input::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border: 0;
    border-radius: 50%;
    background: #b66cff;
  }

  body.remote-controller-active .remote-controls {
    grid-template-columns: repeat(5, 46px);
    justify-content: end;
    align-content: center;
    align-items: center;
    gap: 12px;
    padding: 12px 18px 12px 0;
    border-left: 0;
    border-radius: 0 10px 10px 0;
  }

  body.remote-controller-active .remote-controls button {
    width: 46px;
    min-width: 46px;
    min-height: 46px;
    padding: 0;
    justify-self: center;
  }

  body.remote-controller-active #remote-toggle-play {
    width: 46px;
    min-width: 46px;
    min-height: 46px;
    align-self: center;
  }

  body.remote-controller-active .remote-network-status {
    grid-area: status;
    justify-self: start;
    max-width: calc(100vw - 330px);
    margin: -10px 28px 0 296px;
    padding: 0;
    opacity: 0.66;
  }
}

@media (max-width: 720px) {
  .remote-network-widget {
    display: none !important;
  }
}

@media (max-width: 980px) {
  .remote-network-panel.is-expanded {
    width: min(640px, calc(100vw - 28px));
  }

  .remote-network-panel.is-expanded .remote-device-list,
  .remote-network-panel.is-expanded .remote-control-panel {
    grid-template-columns: minmax(0, 1fr);
  }

.remote-network-panel.is-expanded .remote-control-panel {
  grid-template-areas:
    "now"
    "seek"
    "controls"
    "queue"
    "playlist"
    "search"
    "results";
  }

  .remote-network-panel.is-expanded .remote-ai-panel {
    margin: 2px 0;
  }

  .remote-network-panel.is-expanded .remote-playlist-row {
    grid-template-columns: minmax(0, 1fr) max-content;
  }

  .remote-network-panel.is-expanded .remote-playlist-item {
    grid-template-columns: 42px minmax(0, 1fr) minmax(58px, auto);
  }

  .remote-network-panel.is-expanded .remote-queue-list,
  .remote-network-panel.is-expanded .remote-playlist-list,
  .remote-network-panel.is-expanded .remote-search-results {
    max-height: 300px;
  }
}

@media (max-width: 560px) {
  .first-access-card {
    width: min(100%, 430px);
    padding: 22px;
    border-radius: 26px;
  }

  .first-access-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .first-access-results {
    grid-template-columns: 1fr;
    max-height: min(46vh, 360px);
  }

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

.mode-transition-wash,
.mode-transition-orb {
  position: absolute;
  inset: 0;
}

.mode-transition-wash {
  background:
    linear-gradient(90deg, transparent 0 14%, rgba(255, 255, 255, 0.05) 22%, transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.12), transparent 18%),
    linear-gradient(180deg, transparent 0, var(--mode-transition-wash) 16%, var(--mode-transition-wash) 84%, transparent 100%);
  opacity: 0;
}

.mode-transition-wash::before,
.mode-transition-wash::after {
  content: "";
  position: absolute;
  inset: 0;
}

.mode-transition-wash::before {
  background:
    radial-gradient(circle at 50% 50%, transparent 38%, var(--mode-transition-vignette) 100%);
  opacity: 0;
}

.mode-transition-wash::after {
  background:
    linear-gradient(102deg, transparent 0 38%, var(--mode-transition-flare) 48%, transparent 58%);
  opacity: 0;
  transform: translateX(-14%);
}

.mode-transition-orb {
  inset: auto;
  top: 0;
  right: 0;
  width: max(180vmax, 1800px);
  height: max(180vmax, 1800px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.34) 0 7%, transparent 15%),
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.16) 0 18%, transparent 30%),
    radial-gradient(circle at 43% 43%, var(--mode-transition-core-soft) 0 28%, var(--mode-transition-core) 56%, rgba(0, 0, 0, 0) 73%);
  opacity: 0;
  transform: translate(41%, -41%) scale(0.02);
  transform-origin: top right;
  filter: blur(0.4px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 180px rgba(255, 255, 255, 0.12);
}

.mode-transition-lens {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
}

.mode-transition-lens span {
  position: absolute;
  display: block;
  pointer-events: none;
}

.mode-lens-core {
  left: 54%;
  top: 48%;
  width: clamp(58px, 12vw, 128px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--mode-transition-lens-core) 0 7%, rgba(255, 255, 255, 0.46) 8% 14%, var(--mode-transition-lens-a) 18% 34%, transparent 66%);
  box-shadow:
    0 0 28px rgba(255, 255, 255, 0.32),
    0 0 58px var(--mode-transition-lens-a);
  transform: translate(-50%, -50%) scale(0.66);
  opacity: 0;
}

.mode-lens-line {
  left: 50%;
  top: 48%;
  width: min(116vw, 940px);
  height: 2px;
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      transparent 0%,
      var(--mode-transition-lens-b) 18%,
      var(--mode-transition-lens-line) 46%,
      rgba(255, 255, 255, 0.9) 50%,
      var(--mode-transition-lens-line) 54%,
      var(--mode-transition-lens-b) 82%,
      transparent 100%);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%) rotate(-7deg) scaleX(0.58);
  opacity: 0;
}

.mode-lens-ghost {
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.32) 0 18%, var(--mode-transition-lens-a) 32% 48%, transparent 70%);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
}

.mode-lens-ghost.ghost-a {
  left: 39%;
  top: 54%;
  width: clamp(18px, 4vw, 44px);
  aspect-ratio: 1;
}

.mode-lens-ghost.ghost-b {
  left: 64%;
  top: 42%;
  width: clamp(12px, 3vw, 30px);
  aspect-ratio: 1;
}

.mode-lens-ghost.ghost-c {
  left: 72%;
  top: 36%;
  width: clamp(32px, 8vw, 86px);
  aspect-ratio: 1;
  opacity: 0;
}

.mode-transition-label {
  position: relative;
  z-index: 2;
  min-width: min(320px, calc(100vw - 44px));
  max-width: 500px;
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  color: #fff9ef;
  font-family: "Playfair Display", "Cormorant Garamond", serif;
  font-size: clamp(1.12rem, 3.9vw, 1.72rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--mode-transition-label-text);
  border-color: var(--mode-transition-label-edge);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 52%),
    linear-gradient(135deg, var(--mode-transition-label-surface), rgba(20, 13, 29, 0.24)),
    rgba(10, 8, 16, 0.28);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(22px) scale(0.92);
  transition: transform 0.4s ease, opacity 0.4s ease, border-color 0.4s ease;
}

.mode-transition.is-visible .mode-transition-label {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mode-transition.is-visible .mode-transition-wash {
  animation: modeTransitionWash 1.66s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.mode-transition.is-visible .mode-transition-orb {
  animation: modeTransitionOrb 1.66s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.mode-transition.is-visible .mode-transition-lens {
  animation: modeTransitionLensLayer 1.66s ease forwards;
}

.mode-transition.is-visible .mode-lens-core {
  animation: modeTransitionLensCore 1.66s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.mode-transition.is-visible .mode-lens-line {
  animation: modeTransitionLensLine 1.66s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.mode-transition.is-visible .mode-lens-ghost {
  animation: modeTransitionLensGhost 1.66s ease forwards;
}

.mode-transition.is-visible .mode-lens-ghost.ghost-b {
  animation-delay: 0.04s;
}

.mode-transition.is-visible .mode-lens-ghost.ghost-c {
  animation-delay: 0.08s;
}

.mode-transition.is-visible .mode-transition-label {
  animation: modeTransitionLabel 1.66s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes modeTransitionWash {
  0% {
    opacity: 0;
  }
  18% {
    opacity: 0.92;
  }
  38% {
    opacity: 0.98;
  }
  72% {
    opacity: 0.94;
  }
  100% {
    opacity: 0;
  }
}

@keyframes modeTransitionOrb {
  0% {
    opacity: 0;
    transform: translate(41%, -41%) scale(0.02);
  }
  12% {
    opacity: 1;
  }
  66% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(41%, -41%) scale(1.08);
  }
}

@keyframes modeTransitionLensLayer {
  0% {
    opacity: 0;
  }
  18% {
    opacity: 0.96;
  }
  72% {
    opacity: 0.72;
  }
  100% {
    opacity: 0;
  }
}

@keyframes modeTransitionLensCore {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.44);
  }
  22% {
    opacity: 0.86;
    transform: translate(-50%, -50%) scale(0.98);
  }
  58% {
    opacity: 0.72;
    transform: translate(-50%, -50%) scale(1.12);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.42);
  }
}

@keyframes modeTransitionLensLine {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-7deg) scaleX(0.34);
  }
  24% {
    opacity: 0.88;
    transform: translate(-50%, -50%) rotate(-7deg) scaleX(1);
  }
  64% {
    opacity: 0.52;
    transform: translate(-50%, -50%) rotate(-7deg) scaleX(0.86);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-7deg) scaleX(1.12);
  }
}

@keyframes modeTransitionLensGhost {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.62);
  }
  30% {
    opacity: 0.44;
    transform: translate(-50%, -50%) scale(1);
  }
  70% {
    opacity: 0.24;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.22);
  }
}

@keyframes modeTransitionLabel {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.92);
  }
  20% {
    opacity: 0;
    transform: translateY(22px) scale(0.92);
  }
  34% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  78% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px) scale(1.02);
  }
}

.mode-transition.is-visible .mode-transition-wash::before {
  animation: modeTransitionVignette 1.66s ease forwards;
}

.mode-transition.is-visible .mode-transition-wash::after {
  animation: modeTransitionFlare 1.66s ease forwards;
}

@keyframes modeTransitionVignette {
  0% {
    opacity: 0;
  }
  28% {
    opacity: 0.78;
  }
  76% {
    opacity: 0.78;
  }
  100% {
    opacity: 0;
  }
}

@keyframes modeTransitionFlare {
  0% {
    opacity: 0;
    transform: translateX(-14%);
  }
  26% {
    opacity: 0.9;
  }
  68% {
    opacity: 0.62;
    transform: translateX(10%);
  }
  100% {
    opacity: 0;
    transform: translateX(16%);
  }
}

.splash-art {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: min(620px, calc(100vw - 42px));
  min-height: min(430px, 62vh);
  perspective: 1200px;
}

.splash-art::before,
.splash-art::after {
  content: none;
  position: absolute;
  inset: -34vh -38vw;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  background:
    conic-gradient(from 215deg, transparent 0 10%, rgba(255, 77, 109, 0.18) 14%, rgba(255, 209, 102, 0.16) 20%, rgba(6, 214, 160, 0.17) 28%, rgba(17, 138, 178, 0.16) 36%, rgba(131, 56, 236, 0.17) 44%, transparent 54% 100%),
    radial-gradient(circle at 50% 50%, transparent 0 30%, rgba(255, 255, 255, 0.08) 33%, transparent 48%);
  filter: blur(18px);
  opacity: 0.42;
  mix-blend-mode: screen;
  transform: rotateX(62deg) scale(1.05);
  animation: none;
}

.splash-art::after {
  inset: -18vh -30vw;
  opacity: 0.24;
  filter: blur(28px);
  transform: rotateX(66deg) scale(0.82);
  animation: none;
}

.splash-brand {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 42px 52px 44px;
  isolation: isolate;
  transform: translateY(0) scale(0.96);
  animation: splashLogoEntrance 0.9s cubic-bezier(.18,.78,.2,1) both;
}

.splash-brand::before {
  content: none;
  position: absolute;
  inset: -76px -98px -70px;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.16), transparent 20%),
    conic-gradient(from 225deg, rgba(255, 77, 109, 0.72), rgba(255, 209, 102, 0.7), rgba(6, 214, 160, 0.72), rgba(17, 138, 178, 0.68), rgba(131, 56, 236, 0.72), rgba(255, 77, 109, 0.72));
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.44),
    0 0 140px rgba(255, 255, 255, 0.12);
  filter: blur(9px) saturate(1.06);
  opacity: 0.42;
  -webkit-mask: radial-gradient(circle, transparent 0 42%, #000 45% 50%, transparent 54%);
  mask: radial-gradient(circle, transparent 0 42%, #000 45% 50%, transparent 54%);
  animation: splashRainbowBreath 5.6s ease-in-out infinite;
}

.splash-brand::after {
  content: none;
  position: absolute;
  inset: -160px -220px -150px;
  z-index: -2;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.16), transparent 12%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), transparent 24%),
    conic-gradient(from 210deg, transparent 0 14%, rgba(255, 77, 109, 0.12) 18%, rgba(255, 209, 102, 0.1) 25%, rgba(6, 214, 160, 0.12) 34%, rgba(17, 138, 178, 0.1) 44%, rgba(131, 56, 236, 0.12) 54%, transparent 66% 100%);
  filter: blur(34px) saturate(1.08);
  opacity: 0.22;
  mix-blend-mode: screen;
  animation: none;
}

.splash-brand-name::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -62px;
  z-index: -1;
  width: min(340px, 82vw);
  height: 92px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 44%, rgba(255, 255, 255, 0.2), rgba(131, 56, 236, 0.1) 34%, rgba(6, 214, 160, 0.08) 56%, transparent 72%);
  filter: blur(14px);
  opacity: 0.42;
  transform: translateX(-50%) scaleX(0.88);
  animation: none;
}

.splash-logo-particles {
  position: absolute;
  inset: -180px -240px -176px;
  z-index: -1;
  pointer-events: none;
  overflow: visible;
}

.splash-logo-particles span {
  position: absolute;
  display: block;
  width: var(--particle-size, 86px);
  aspect-ratio: 1;
  left: var(--particle-left, 50%);
  top: var(--particle-top, 50%);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.58) 0 10%, rgba(131, 56, 236, 0.28) 12% 24%, transparent 42%);
  filter: blur(var(--particle-blur, 8px)) saturate(1.34);
  opacity: var(--particle-opacity, 0.28);
  transform: translate3d(-50%, -50%, 0) scale(0.48);
  mix-blend-mode: screen;
  animation: none;
  animation-delay: var(--particle-delay, 0s);
}

.splash-logo-particles span:nth-child(1) {
  --particle-size: 168px;
  --particle-left: 10%;
  --particle-top: 47%;
  --particle-blur: 22px;
  --particle-opacity: 0.42;
}

.splash-logo-particles span:nth-child(2) {
  --particle-size: 130px;
  --particle-left: 28%;
  --particle-top: 18%;
  --particle-opacity: 0.36;
  --particle-speed: 17s;
  --particle-delay: -1.2s;
}

.splash-logo-particles span:nth-child(3) {
  --particle-size: 188px;
  --particle-left: 86%;
  --particle-top: 30%;
  --particle-blur: 26px;
  --particle-opacity: 0.38;
  --particle-speed: 19s;
  --particle-delay: -2.4s;
}

.splash-logo-particles span:nth-child(4) {
  --particle-size: 118px;
  --particle-left: 78%;
  --particle-top: 78%;
  --particle-opacity: 0.34;
  --particle-delay: -0.8s;
}

.splash-logo-particles span:nth-child(5) {
  --particle-size: 152px;
  --particle-left: 18%;
  --particle-top: 84%;
  --particle-blur: 24px;
  --particle-opacity: 0.36;
  --particle-speed: 18s;
  --particle-delay: -3.1s;
}

.splash-logo-particles span:nth-child(6) {
  --particle-size: 76px;
  --particle-left: 54%;
  --particle-top: 8%;
  --particle-blur: 10px;
  --particle-opacity: 0.34;
  --particle-speed: 16s;
  --particle-delay: -1.8s;
}

.splash-logo-particles span:nth-child(7) {
  --particle-size: 92px;
  --particle-left: 94%;
  --particle-top: 56%;
  --particle-blur: 14px;
  --particle-opacity: 0.3;
  --particle-speed: 20s;
  --particle-delay: -2.9s;
}

.splash-logo {
  width: clamp(176px, 28vw, 288px);
  height: clamp(176px, 28vw, 288px);
  object-fit: contain;
  background: transparent;
  mix-blend-mode: screen;
  filter:
    drop-shadow(0 24px 48px rgba(0, 0, 0, 0.68))
    drop-shadow(0 0 28px rgba(255, 255, 255, 0.22))
    drop-shadow(0 0 60px rgba(131, 56, 236, 0.16));
  animation: none;
}

.splash-brand-name {
  display: none;
}

.splash-cover-wall,
.splash-composition {
  display: none;
}

.splash-screen.has-personal-covers .splash-cover-wall {
  display: block;
}

.splash-composition {
  position: relative;
  grid-column: 2;
  min-height: min(360px, 52vh);
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 16%, color-mix(in srgb, var(--splash-style-c) 18%, transparent), transparent 24%),
    linear-gradient(126deg, rgba(255, 255, 255, 0.11), transparent 28%),
    linear-gradient(24deg, color-mix(in srgb, var(--splash-style-b) 78%, transparent), transparent 56%),
    linear-gradient(145deg, color-mix(in srgb, var(--splash-style-a) 68%, #5a3d82) 0%, var(--splash-style-b) 58%, color-mix(in srgb, var(--splash-style-a) 54%, #e8d8ff) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 26px 70px rgba(0, 0, 0, 0.3);
}

.splash-composition::before,
.splash-composition::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.splash-composition::before {
  z-index: 0;
  background:
    linear-gradient(124deg, transparent 0 16%, rgba(255, 255, 255, 0.34) 17% 27%, transparent 28% 100%),
    linear-gradient(36deg, transparent 0 11%, rgba(29, 14, 49, 0.5) 12% 33%, transparent 34% 100%),
    linear-gradient(151deg, transparent 0 46%, rgba(180, 135, 231, 0.42) 47% 64%, transparent 65% 100%),
    linear-gradient(73deg, transparent 0 62%, rgba(255, 255, 255, 0.24) 63% 76%, transparent 77% 100%),
    linear-gradient(101deg, transparent 0 7%, rgba(76, 36, 122, 0.58) 8% 23%, transparent 24% 100%);
  clip-path: inset(0 100% 0 0 round 30px);
  opacity: 0.95;
  animation: splashStripeWallDraw 3.4s cubic-bezier(.18,.78,.2,1) infinite;
}

.splash-composition::after {
  z-index: 1;
  background:
    repeating-radial-gradient(circle at 24% 38%, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 4px),
    linear-gradient(154deg, rgba(255, 255, 255, 0.18), transparent 26% 58%, rgba(255, 255, 255, 0.08)),
    linear-gradient(90deg, rgba(8, 4, 14, 0.36), transparent 42%, rgba(11, 5, 18, 0.22));
  opacity: 0.82;
}

.splash-welcome-card {
  position: absolute;
  left: clamp(18px, 5vw, 42px);
  bottom: clamp(18px, 5vw, 38px);
  z-index: 6;
  display: grid;
  gap: 7px;
  max-width: min(310px, 70%);
  padding: 16px 18px 17px;
  border-radius: 28px 28px 28px 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(3, 3, 7, 0.92), rgba(14, 8, 24, 0.72)),
    radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--splash-style-a) 32%, transparent), transparent 36%);
  box-shadow:
    0 24px 62px rgba(0, 0, 0, 0.36),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px) saturate(1.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
  animation: splashWelcomeFloat 3.4s ease-in-out infinite;
}

.splash-welcome-kicker {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--splash-style-c) 86%, #ffffff);
}

.splash-welcome-card strong {
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-size: clamp(1.28rem, 3vw, 2rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.splash-cover-wall {
  position: fixed;
  inset: -10vh -10vw;
  z-index: 1;
  pointer-events: none;
  transform: scale(1.02);
  opacity: 0.22;
  filter: blur(2px) saturate(0.8);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 0 18%, #000 42%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 50%, transparent 0 18%, #000 42%, transparent 78%);
}

.splash-cover-card {
  position: absolute;
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--cover-accent, var(--splash-style-a)) 34%, rgba(255, 255, 255, 0.18)), rgba(12, 8, 20, 0.72));
  background-position: center;
  background-size: cover;
  box-shadow:
    0 34px 82px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  opacity: 0.64;
  filter: saturate(0.82) contrast(0.88);
  animation: splashCoverZoom 4.2s cubic-bezier(.18,.78,.2,1) infinite;
}

.splash-cover-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.3), transparent 58%);
}

.splash-cover-card.is-empty {
  opacity: 0.28;
  filter: saturate(0.75);
}

.splash-screen.has-personal-covers:not(.covers-ready) .splash-cover-card {
  animation: none;
  opacity: 0;
}

.splash-screen.covers-ready .splash-cover-card {
  will-change: transform, opacity, filter;
}

.cover-one {
  --cover-rotate: -10deg;
  top: 6vh;
  left: 4vw;
  width: clamp(180px, 26vw, 380px);
  aspect-ratio: 1;
}

.cover-two {
  --cover-rotate: 4deg;
  top: -2vh;
  right: 10vw;
  width: clamp(210px, 31vw, 450px);
  aspect-ratio: 1;
  border-radius: 30px;
  animation-delay: 0.22s;
}

.cover-three {
  --cover-rotate: 8deg;
  top: 28vh;
  left: 34vw;
  width: clamp(230px, 34vw, 500px);
  aspect-ratio: 1;
  animation-delay: 0.42s;
}

.cover-four {
  --cover-rotate: 13deg;
  right: 0;
  bottom: 2vh;
  width: clamp(190px, 27vw, 390px);
  aspect-ratio: 1;
  animation-delay: 0.62s;
}

.cover-five {
  --cover-rotate: -16deg;
  left: 10vw;
  bottom: -7vh;
  width: clamp(170px, 25vw, 360px);
  aspect-ratio: 1;
  animation-delay: 0.82s;
}

.splash-line,
.splash-shape {
  position: absolute;
  display: block;
  border-radius: 999px;
  pointer-events: none;
}

.splash-line {
  z-index: 4;
  height: clamp(80px, 15vw, 148px);
  width: min(520px, 92vw);
  transform-origin: left center;
  border-radius: 0;
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  mix-blend-mode: screen;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.12);
  animation: splashPlaneDraw 3.4s cubic-bezier(.2,.8,.2,1) infinite;
}

.line-one {
  top: -4%;
  left: 16%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.12));
  transform: rotate(63deg);
}

.line-two {
  top: 30%;
  left: -20%;
  width: min(620px, 110vw);
  background: linear-gradient(90deg, rgba(24, 10, 42, 0.44), rgba(142, 83, 204, 0.34), rgba(255, 255, 255, 0.1));
  transform: rotate(-27deg);
  animation-delay: 0.22s;
}

.line-three {
  top: 58%;
  left: 2%;
  width: min(560px, 96vw);
  background: linear-gradient(90deg, rgba(218, 192, 255, 0.3), rgba(255, 255, 255, 0.2), rgba(76, 34, 124, 0.2));
  transform: rotate(19deg);
  animation-delay: 0.44s;
}

.splash-shape {
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.2), transparent 36%),
    rgba(255, 255, 255, 0.06);
  transform: scale(0.82);
  opacity: 0;
  backdrop-filter: blur(7px);
  animation: splashShapeTrace 3.4s ease-in-out infinite;
}

.shape-one {
  top: 11%;
  right: 12%;
  width: clamp(74px, 13vw, 124px);
  height: clamp(74px, 13vw, 124px);
  border-color: rgba(255, 255, 255, 0.28);
}

.shape-two {
  top: 42%;
  right: 39%;
  width: clamp(104px, 19vw, 170px);
  height: clamp(104px, 19vw, 170px);
  border-color: rgba(209, 174, 255, 0.34);
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.14), transparent 34%),
    rgba(88, 38, 140, 0.12);
  animation-delay: 0.28s;
}

.shape-three {
  right: 4%;
  bottom: 8%;
  width: clamp(68px, 12vw, 112px);
  height: clamp(68px, 12vw, 112px);
  border-color: rgba(255, 255, 255, 0.24);
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.16), transparent 34%),
    rgba(20, 10, 34, 0.22);
  animation-delay: 0.54s;
}

.splash-progress-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: block;
  padding: 0 clamp(22px, 6vw, 80px) calc(env(safe-area-inset-bottom, 0px) + 28px);
  background:
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.04) 34%, rgba(2, 4, 6, 0.58) 100%);
}

.splash-progress-dock::before,
.splash-progress-dock::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}

.splash-progress-dock::before {
  top: -14px;
  height: 26px;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, 0.22), transparent 64%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  filter: blur(7px);
  opacity: 0.78;
}

.splash-progress-dock::after {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  left: clamp(22px, 6vw, 80px);
  right: clamp(22px, 6vw, 80px);
  height: 1px;
  background:
    linear-gradient(90deg, transparent, rgba(126, 58, 188, 0.38), rgba(194, 124, 255, 0.52), rgba(255, 255, 255, 0.48), rgba(194, 124, 255, 0.52), rgba(126, 58, 188, 0.38), transparent);
}

.splash-progress-shell {
  width: min(520px, 100%);
  height: 5px;
  margin: 0 auto;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(126, 58, 188, 0.18), rgba(194, 124, 255, 0.14), rgba(126, 58, 188, 0.16)),
    rgba(7, 4, 12, 0.86);
  overflow: hidden;
  box-shadow:
    0 -12px 34px rgba(0, 0, 0, 0.36),
    0 0 26px rgba(178, 107, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.42);
}

.splash-progress-bar {
  position: relative;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  background:
    linear-gradient(90deg, #5a1b8c 0%, #7e3abc 24%, #b26bff 50%, #d8a8ff 74%, #f2e6ff 100%);
  background-size: 100% 100%;
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.38),
    0 0 30px rgba(194, 124, 255, 0.28),
    0 -7px 18px rgba(178, 107, 255, 0.16),
    0 7px 18px rgba(90, 27, 140, 0.18);
  animation: none;
  transition: width 0.22s ease;
}

.splash-progress-bar::before,
.splash-progress-bar::after {
  content: "";
  position: absolute;
  inset: -14px -10%;
  pointer-events: none;
}

.splash-progress-bar::before {
  display: none;
}

.splash-progress-bar::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  opacity: 0.22;
  transform: translateX(-58%);
  animation: none;
}

@media (max-width: 640px) {
  .splash-art {
    align-content: center;
    min-height: min(360px, 58vh);
  }

  .splash-brand {
    transform: translateY(0);
  }

  .splash-logo {
    width: 196px;
    height: 196px;
  }
}

.scene {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px 120px;
}

.desktop-project-copy {
  display: none;
}

.phone-frame {
  width: min(100%, 620px);
  max-width: 620px;
  aspect-ratio: 0.63 / 1;
  padding: 18px;
  border-radius: 62px;
  background: linear-gradient(180deg, rgba(72, 49, 93, 0.95), rgba(26, 18, 35, 0.98));
  box-shadow:
    0 0 0 2px rgba(140, 106, 170, 0.25),
    0 0 0 7px rgba(26, 17, 36, 0.9),
    0 40px 110px rgba(0, 0, 0, 0.62);
  position: relative;
}

@media (min-width: 960px) {
  .scene {
    grid-template-columns: minmax(340px, 460px) minmax(320px, 520px);
    align-items: center;
    justify-content: center;
    gap: clamp(42px, 7vw, 108px);
    padding: 40px clamp(36px, 6vw, 92px) 120px;
  }

  .phone-frame {
    width: clamp(360px, 34vw, 460px);
    max-width: 460px;
    justify-self: end;
    transform: translateX(clamp(-54px, -3vw, -28px));
  }

  .desktop-project-copy {
    display: grid;
    justify-self: start;
    align-content: center;
    gap: 16px;
    max-width: 520px;
    min-width: 0;
    color: var(--text);
  }

  .desktop-project-kicker {
    width: max-content;
    max-width: 100%;
    padding: 7px 11px;
    border: 1px solid rgba(216, 137, 255, 0.24);
    border-radius: 999px;
    color: rgba(248, 241, 255, 0.82);
    background: rgba(19, 10, 31, 0.42);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .desktop-project-copy h1 {
    margin: 0;
    max-width: 13ch;
    color: #ffffff;
    font-family: "Cormorant Garamond", "Playfair Display", serif;
    font-size: clamp(3rem, 5.6vw, 5.8rem);
    line-height: 0.88;
    letter-spacing: 0;
    text-shadow: 0 24px 70px rgba(121, 58, 190, 0.36);
  }

  .desktop-played-counter {
    width: max-content;
    max-width: 100%;
    display: inline-flex;
    align-items: stretch;
    gap: 12px;
    padding: 11px 14px;
    border: 1px solid rgba(216, 137, 255, 0.24);
    border-radius: 16px;
    color: rgba(241, 223, 248, 0.78);
    background:
      linear-gradient(135deg, rgba(216, 137, 255, 0.12), rgba(255, 255, 255, 0.045)),
      rgba(19, 10, 31, 0.36);
    box-shadow: 0 18px 48px rgba(44, 15, 72, 0.24);
  }

  .desktop-stat-item {
    position: relative;
    display: grid;
    gap: 3px;
    min-width: 0;
  }

  .desktop-stat-divider {
    width: 1px;
    align-self: stretch;
    background: linear-gradient(180deg, transparent, rgba(241, 223, 248, 0.28), transparent);
  }

  .desktop-stat-item strong {
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.55rem, 2.2vw, 2.28rem);
    line-height: 1;
  }

  .desktop-stat-item small {
    color: rgba(241, 223, 248, 0.72);
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.08;
    text-transform: uppercase;
  }

  .desktop-user-thanks {
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    z-index: 2;
    width: max-content;
    max-width: 190px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: #fff;
    background:
      linear-gradient(135deg, rgba(216, 137, 255, 0.36), rgba(112, 45, 194, 0.24)),
      rgba(21, 9, 36, 0.92);
    box-shadow: 0 14px 34px rgba(70, 22, 114, 0.34);
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px) scale(0.96);
  }

  .desktop-user-thanks.is-visible {
    animation: desktopUserThanksRise 4.2s ease-out both;
  }

  @keyframes desktopUserThanksRise {
    0% {
      opacity: 0;
      transform: translateY(10px) scale(0.94);
    }
    16%,
    68% {
      opacity: 1;
      transform: translateY(-12px) scale(1);
    }
    100% {
      opacity: 0;
      transform: translateY(-38px) scale(0.98);
    }
  }

  .desktop-project-copy p {
    margin: 0;
    max-width: 60ch;
    color: rgba(241, 223, 248, 0.76);
    font-size: clamp(0.98rem, 1.05vw, 1.08rem);
    line-height: 1.68;
  }

  .desktop-project-copy p:first-of-type {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.04rem, 1.16vw, 1.18rem);
  }

  .desktop-project-dedication {
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.9);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(216, 137, 255, 0.08)),
      rgba(19, 10, 31, 0.32);
  }

  .desktop-project-badges {
    display: grid;
    gap: 10px;
  }

  .desktop-project-badges span {
    min-height: 72px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    padding: 11px 12px;
    color: rgba(255, 255, 255, 0.9);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
      rgba(19, 10, 31, 0.32);
  }

  .desktop-project-badges i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    grid-row: span 2;
    border-radius: 12px;
    color: #180d23;
    background: linear-gradient(135deg, #f8f1ff, #ffffff);
    font-style: normal;
    font-size: 1rem;
    font-weight: 900;
  }

  .desktop-project-badges strong {
    min-width: 0;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
  }

  .desktop-project-badges small {
    min-width: 0;
    color: rgba(241, 223, 248, 0.66);
    font-size: 0.78rem;
    line-height: 1.35;
  }
}

.install-section {
  position: relative;
  padding-top: 2px;
}

.install-dismiss-today {
  position: absolute;
  top: 12px;
  right: 10px;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(10, 7, 17, 0.42);
  font: 900 1.05rem/1 system-ui, sans-serif;
  cursor: pointer;
}

.install-dismiss-today:hover,
.install-dismiss-today:focus-visible {
  outline: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.install-app-card {
  width: 100%;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  padding: 16px;
  text-align: left;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.055)),
    rgba(18, 10, 29, 0.76);
  box-shadow: 0 18px 38px rgba(5, 2, 12, 0.28);
  cursor: pointer;
}

.install-app-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.84);
  outline-offset: 3px;
}

.install-app-kicker,
.install-app-action {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.install-app-kicker {
  padding: 6px 8px;
  color: #180d23;
  background: linear-gradient(135deg, #f8f1ff, #ffffff);
}

.install-app-title {
  color: #fff;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.12;
}

.install-app-copy {
  color: rgba(244, 230, 250, 0.74);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.35;
}

.install-app-action {
  justify-self: start;
  margin-top: 2px;
  min-height: var(--button-compact-height);
  padding: 0 var(--button-padding-x);
  color: #1b0f26;
  background: #ffffff;
}

.install-app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.install-app-badges span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 5px 8px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15;
}

.install-app-badges i {
  width: 15px;
  height: 15px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #170b23;
  background: linear-gradient(135deg, #f8f1ff, #ffffff);
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
}

.phone-screen {
  --header-collapse-progress: 0;
  --header-offset-expanded: calc(78px + var(--safe-top));
  --header-offset-compact: calc(78px + var(--safe-top));
  --search-section-offset: 16px;
  --header-offset: calc(
    var(--header-offset-expanded) - ((var(--header-offset-expanded) - var(--header-offset-compact)) * var(--header-collapse-progress))
  );
  position: relative;
  height: 100%;
  border-radius: 48px;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 10%, rgba(214, 128, 255, 0.22), transparent 16%),
    radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.03), transparent 35%),
    linear-gradient(180deg, rgba(13, 9, 20, 0.98), rgba(11, 8, 18, 0.99));
  box-shadow: inset 0 0 0 1px rgba(228, 183, 255, 0.08);
  transition: background 0.58s ease, box-shadow 0.58s ease, color 0.58s ease;
}

.phone-screen[data-content-mode="podcast"] {
  background:
    radial-gradient(circle at 76% 10%, rgba(255, 208, 98, 0.42), transparent 20%),
    radial-gradient(circle at 18% 18%, rgba(255, 132, 102, 0.24), transparent 28%),
    radial-gradient(circle at 34% 72%, rgba(86, 190, 255, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(255, 247, 222, 0.98), rgba(255, 224, 193, 0.98) 42%, rgba(255, 205, 163, 0.99));
  box-shadow: inset 0 0 0 1px rgba(166, 110, 68, 0.16);
}

.app-toast {
  position: absolute;
  z-index: 90;
  left: 50%;
  bottom: calc(var(--bottom-stack-height) + var(--safe-bottom) + 18px);
  max-width: min(280px, calc(100% - 44px));
  min-height: 42px;
  padding: 11px 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #06120a;
  background: #67f08d;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.24) inset;
  font: 800 0.82rem/1.2 "Space Grotesk", system-ui, sans-serif;
  opacity: 0;
  transform: translate(-50%, 12px) scale(0.96);
  transition: opacity 0.18s ease, transform 0.2s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}

.ai-confetti-layer {
  position: absolute;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  overflow: hidden;
}

.ai-confetti-layer span {
  position: absolute;
  top: 96px;
  left: 50%;
  width: 7px;
  height: 12px;
  border-radius: 3px;
  background: var(--confetti-color, #d9b4ff);
  opacity: 0;
  transform: translate3d(-50%, 0, 0) rotate(0deg);
  animation: aiConfettiBurst 1.25s cubic-bezier(.18,.78,.28,1) var(--confetti-delay, 0s) both;
}

.ai-confetti-layer span:nth-child(3n) {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.ai-confetti-layer span:nth-child(4n) {
  width: 5px;
  height: 14px;
}

@keyframes aiConfettiBurst {
  0% {
    opacity: 0;
    transform: translate3d(-50%, 0, 0) rotate(0deg) scale(0.6);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform:
      translate3d(calc(-50% + var(--confetti-x, 0px)), var(--confetti-y, 220px), 0)
      rotate(var(--confetti-r, 180deg))
      scale(1);
  }
}

.app-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.app-toast[data-state="error"] {
  color: #fff;
  background: #e1495b;
}

.phone-screen[data-content-mode="podcast"]::before {
  background-image: radial-gradient(circle, rgba(135, 87, 48, 0.18) 0 1px, transparent 1px);
  opacity: 0.22;
}

.phone-screen[data-content-mode="podcast"]::after {
  background:
    linear-gradient(180deg, rgba(255, 226, 196, 0), rgba(255, 218, 182, 0.72) 24%, rgba(255, 205, 163, 0.98));
}

.phone-screen[data-content-mode="podcast"] .app-header {
  background:
    linear-gradient(180deg, rgba(255, 247, 225, 0.99), rgba(255, 234, 203, 0.95) 74%, rgba(255, 228, 191, 0));
  box-shadow: inset 0 -1px 0 rgba(199, 154, 113, 0.08);
}

.phone-screen[data-content-mode="podcast"] .search-shell {
  border-color: rgba(166, 110, 68, 0.14);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.6), transparent 22%),
    linear-gradient(180deg, rgba(255, 249, 238, 0.94), rgba(255, 237, 214, 0.96));
  box-shadow:
    0 18px 34px rgba(176, 120, 74, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.phone-screen[data-content-mode="podcast"] .search-form,
.phone-screen[data-content-mode="podcast"] .mini-player,
.phone-screen[data-content-mode="podcast"] .content-section:not(#results-panel) {
  color: #20242b;
}

.phone-screen[data-content-mode="podcast"] .search-form {
  border-color: rgba(166, 110, 68, 0.18);
  background: rgba(255, 248, 233, 0.84);
  box-shadow: 0 12px 34px rgba(176, 120, 74, 0.16);
}

.phone-screen[data-content-mode="podcast"] .search-form input {
  color: #20242b;
}

.phone-screen[data-content-mode="podcast"] .search-form input::placeholder {
  color: #7b8492;
}

.phone-screen[data-content-mode="podcast"] .search-mode-hint {
  color: rgba(73, 85, 96, 0.74);
}

.phone-screen[data-content-mode="podcast"] .brand-row,
.phone-screen[data-content-mode="podcast"] .brand-logo,
.phone-screen[data-content-mode="podcast"] .header-visualizer {
  filter: none;
}

.phone-screen[data-content-mode="podcast"] .search-icon {
  color: #56606e;
}

.phone-screen[data-content-mode="podcast"] .search-voice[data-mode="podcast"] {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(20, 13, 31, 0.68), rgba(9, 6, 15, 0.78)),
    rgba(8, 6, 12, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -9px 18px rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px rgba(123, 45, 255, 0.1),
    0 8px 22px rgba(16, 8, 28, 0.18),
    0 0 18px rgba(123, 45, 255, 0.08);
}

.phone-screen[data-content-mode="podcast"] .content-section,
.phone-screen[data-content-mode="podcast"] .moment-launch-card,
.phone-screen[data-content-mode="podcast"] .mix-card,
.phone-screen[data-content-mode="podcast"] .library-shelf {
  border-color: rgba(166, 110, 68, 0.12);
}

.phone-screen[data-content-mode="podcast"] .album-card.is-podcast,
.phone-screen[data-content-mode="podcast"] .moment-launch-card,
.phone-screen[data-content-mode="podcast"] .mix-card,
.phone-screen[data-content-mode="podcast"] .library-media-main,
.phone-screen[data-content-mode="podcast"] .playlist-track-row .player-queue-main {
  background:
    linear-gradient(145deg, rgba(255, 250, 240, 0.88), rgba(255, 228, 202, 0.8));
  color: #20242b;
  border-color: rgba(166, 110, 68, 0.12);
  box-shadow:
    0 16px 34px rgba(140, 152, 167, 0.14),
    0 2px 0 rgba(255, 255, 255, 0.76) inset,
    0 0 0 1px rgba(190, 148, 116, 0.08);
}

.phone-screen[data-content-mode="podcast"] .album-title,
.phone-screen[data-content-mode="podcast"] .playlist-title,
.phone-screen[data-content-mode="podcast"] .library-media-title,
.phone-screen[data-content-mode="podcast"] .mix-card strong {
  color: #20242b;
  text-shadow: none;
}

.phone-screen[data-content-mode="podcast"] .album-meta,
.phone-screen[data-content-mode="podcast"] .playlist-meta,
.phone-screen[data-content-mode="podcast"] .library-media-meta,
.phone-screen[data-content-mode="podcast"] .library-media-preview,
.phone-screen[data-content-mode="podcast"] .mix-card span,
.phone-screen[data-content-mode="podcast"] .moment-launch-copy,
.phone-screen[data-content-mode="podcast"] .moment-launch-preview {
  color: #667181;
}

.phone-screen[data-content-mode="podcast"] .meta-duration-chip,
body[data-content-mode="podcast"] .meta-duration-chip {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(153, 163, 176, 0.16);
  color: #42505d;
}

.phone-screen[data-content-mode="podcast"] .library-shelf {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.95), transparent 28%),
    linear-gradient(180deg, rgba(255, 248, 239, 0.84), rgba(236, 226, 214, 0.9));
  box-shadow:
    0 20px 46px rgba(139, 147, 160, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.phone-screen[data-content-mode="podcast"] .library-shelf::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.22), transparent 34%),
    radial-gradient(circle at 85% 18%, rgba(204, 169, 142, 0.16), transparent 22%);
}

.phone-screen[data-content-mode="podcast"] .library-media-card {
  filter: saturate(0.96);
}

.phone-screen[data-content-mode="podcast"] .library-media-main {
  border-radius: 18px;
}

.phone-screen[data-content-mode="podcast"] .library-media-cover-shell {
  border-radius: 15px;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.72), transparent 26%),
    radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--library-accent, #8bc1d3) 26%, rgba(255, 255, 255, 0.3)), transparent 34%),
    linear-gradient(180deg, rgba(244, 237, 229, 0.98), rgba(224, 214, 201, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 14px 24px rgba(126, 136, 150, 0.16);
}

.phone-screen[data-content-mode="podcast"] .library-media-cover {
  mix-blend-mode: multiply;
}

.phone-screen[data-content-mode="podcast"] .library-media-indicator {
  background: rgba(255, 255, 255, 0.88);
  color: #24303a;
  box-shadow:
    0 8px 16px rgba(125, 137, 149, 0.14),
    inset 0 0 0 1px rgba(159, 169, 181, 0.12);
}

.phone-screen[data-content-mode="podcast"] .library-media-tag {
  background: rgba(255, 255, 255, 0.72);
  color: #566170;
  box-shadow: inset 0 0 0 1px rgba(151, 161, 174, 0.12);
}

.phone-screen[data-content-mode="podcast"] .library-media-remove {
  background: rgba(255, 255, 255, 0.9);
  color: #475564;
  box-shadow:
    0 10px 20px rgba(124, 133, 145, 0.14),
    inset 0 0 0 1px rgba(150, 160, 172, 0.16);
}

.phone-screen[data-content-mode="podcast"] .library-media-remove:hover {
  background: #fff;
  color: #26323d;
}

.phone-screen[data-header-state="compact"] {
  --header-collapse-progress: 1;
}

.phone-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.38) 0 1px, transparent 1px);
  background-size: 90px 90px;
  opacity: 0.13;
  pointer-events: none;
}

.phone-screen::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--bottom-stack-height) + var(--safe-bottom) + 18px);
  background:
    linear-gradient(180deg, rgba(11, 8, 18, 0), rgba(11, 8, 18, 0.72) 24%, rgba(11, 8, 18, 0.98));
  pointer-events: none;
  z-index: 1;
}

.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 39%;
  height: 22px;
  border-radius: 0 0 18px 18px;
  background: #0b0811;
  z-index: 3;
}

.app-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: auto minmax(0, 96px) minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  min-height: var(--header-offset);
  padding:
    calc(22px + var(--safe-top)) 16px 8px;
  background:
    linear-gradient(180deg, rgba(11, 8, 18, 0.998), rgba(11, 8, 18, 0.97) 76%, rgba(11, 8, 18, 0));
  backdrop-filter: blur(18px);
  isolation: isolate;
  overflow: visible;
  transform: translateZ(0);
  transition: min-height 0.24s ease, padding 0.24s ease, background 0.24s ease;
}

.app-header::before {
  content: "";
  position: absolute;
  top: 16px;
  right: -46px;
  width: 156px;
  height: 104px;
  pointer-events: none;
  background:
    radial-gradient(circle at 76% 28%, rgba(255, 255, 255, 0.28), transparent 8%),
    radial-gradient(circle at 58% 38%, rgba(255, 255, 255, 0.17), transparent 18%),
    radial-gradient(circle at 72% 42%, rgba(216, 137, 255, 0.26), transparent 32%),
    radial-gradient(circle at 36% 46%, rgba(110, 153, 255, 0.16), transparent 28%);
  filter: blur(1px);
  opacity: 0.54;
  transform: translateZ(0);
  animation: headerFixedLightPulse 5.8s ease-in-out infinite;
  z-index: 0;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  position: relative;
  min-height: 42px;
  width: auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  z-index: 5;
  transition: min-height 0.24s ease, margin-bottom 0.24s ease, gap 0.24s ease;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(216, 137, 255, 0.18));
  transform: none;
  transition: width 0.24s ease, height 0.24s ease, transform 0.24s ease, opacity 0.24s ease;
}

.brand-copy {
  display: none;
  gap: 1px;
  min-width: 0;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transform: none;
  transform-origin: left center;
  transition: opacity 0.2s ease, transform 0.24s ease, max-width 0.24s ease;
}

.brand-name {
  position: relative;
  z-index: 2;
  font-family: "Playfair Display", "Space Grotesk", serif;
  font-size: 1.82rem;
  font-weight: 700;
  letter-spacing: -0.055em;
  text-shadow: 0 0 18px rgba(12, 9, 18, 0.82);
  transition: font-size 0.24s ease, opacity 0.2s ease;
}

.brand-tag {
  color: rgba(230, 213, 247, 0.6);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: calc(1 - var(--header-collapse-progress));
  transform: translateY(calc(-4px * var(--header-collapse-progress)));
  transition: opacity 0.2s ease, transform 0.24s ease;
}

.profile-edit-trigger {
  position: relative;
  z-index: 6;
  display: inline-grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  justify-self: start;
  align-self: start;
  width: min(96px, 100%);
  min-width: 0;
  height: 38px;
  border: 1px solid rgba(217, 180, 255, 0.36);
  border-radius: 999px;
  padding: 4px 9px 4px 4px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.26), transparent 28%),
    linear-gradient(135deg, rgba(178, 107, 255, 0.32), rgba(12, 9, 18, 0.82));
  color: #fff;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.22),
    0 0 18px rgba(178, 107, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
  cursor: pointer;
}

.profile-edit-avatar {
  grid-column: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-edit-avatar[hidden] {
  display: none;
}

.profile-edit-initials {
  grid-column: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(8, 5, 14, 0.58);
  color: #fff;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0;
}

.profile-edit-trigger:has(.profile-edit-avatar:not([hidden])) .profile-edit-initials {
  display: none;
}

.profile-edit-name {
  min-width: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.62rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-screen:not([data-app-view="home"]) .profile-edit-trigger {
  display: none;
}

.header-visualizer {
  --wave-level: 0;
  margin-left: auto;
  position: absolute;
  left: auto;
  right: 14px;
  justify-self: end;
  top: calc(18px + var(--safe-top));
  width: 84px;
  height: 38px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  z-index: 1;
  cursor: pointer;
  pointer-events: auto;
  filter:
    drop-shadow(0 0 calc(8px + (12px * var(--wave-level))) rgba(216, 137, 255, calc(0.08 + (0.16 * var(--wave-level)))))
    drop-shadow(0 0 calc(4px + (6px * var(--wave-level))) rgba(255, 255, 255, calc(0.06 + (0.1 * var(--wave-level)))));
  opacity: 0.88;
  transform: none;
  transition: opacity 0.2s ease, transform 0.24s ease;
}

.header-visualizer:focus-visible {
  outline: 2px solid rgba(216, 137, 255, 0.78);
  outline-offset: 5px;
  border-radius: 999px;
}

.header-visualizer:active {
  transform: translateY(1px) scale(0.98);
}

.phone-screen:not([data-app-view="library"]) .header-visualizer {
  cursor: default;
}

.marke-studio {
  --marke-beat: 0;
  --marke-eye-color: #d889ff;
  --marke-plate-color: #6e99ff;
  position: absolute;
  left: 12px;
  right: 12px;
  top: calc(76px + var(--safe-top));
  z-index: 8;
  display: grid;
  gap: 12px;
  max-height: calc(100% - var(--bottom-stack-height) - var(--safe-bottom) - 104px);
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(233, 207, 255, 0.16);
  border-radius: 8px;
  color: #fff8ff;
  background:
    radial-gradient(circle at 76% 8%, rgba(216, 137, 255, 0.24), transparent 30%),
    radial-gradient(circle at 12% 18%, rgba(110, 153, 255, 0.16), transparent 36%),
    rgba(13, 8, 20, 0.96);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(216, 137, 255, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: markeStudioIn 0.22s cubic-bezier(.2,.8,.2,1);
}

.marke-studio.is-preview-expanded {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 96;
  max-height: none;
  grid-template-rows: auto minmax(0, 1fr);
  padding: calc(12px + var(--safe-top)) 0 0;
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 74% 12%, color-mix(in srgb, var(--marke-eye-color) 32%, transparent), transparent 34%),
    radial-gradient(circle at 20% 78%, color-mix(in srgb, var(--marke-plate-color) 24%, transparent), transparent 38%),
    rgba(5, 3, 9, 0.98);
}

.marke-studio.is-preview-expanded .marke-controls {
  display: none;
}

.marke-studio.is-preview-expanded .marke-studio-kicker::after {
  content: " / tela cheia";
}

.marke-studio[hidden] {
  display: none;
}

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

.marke-studio-kicker {
  display: block;
  color: rgba(236, 213, 255, 0.64);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.marke-studio h2 {
  margin: 0;
  font-size: 1.36rem;
  line-height: 1;
}

.marke-studio-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  font: inherit;
  font-size: 1.28rem;
  line-height: 1;
  cursor: pointer;
}

.marke-phone-preview {
  display: grid;
  place-items: center;
  min-height: 270px;
  border-radius: 8px;
  cursor: zoom-in;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
    repeating-linear-gradient(90deg, rgba(216, 137, 255, 0.08) 0 1px, transparent 1px 18px),
    rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.marke-studio.is-preview-expanded .marke-phone-preview {
  min-height: 0;
  height: 100%;
  border-radius: 0;
  cursor: zoom-out;
  background:
    repeating-radial-gradient(circle at 50% 50%, transparent 0 12px, rgba(216, 137, 255, 0.05) 13px 14px, transparent 15px 26px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent);
}

.marke-phone-device {
  --marke-beat: 0;
  --marke-eye-color: #d889ff;
  --marke-plate-color: #6e99ff;
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: clamp(12px, 5vh, 28px);
  width: min(178px, 54vw);
  aspect-ratio: 9 / 16;
  padding: 28px 16px 24px;
  border: 7px solid #08050d;
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.14), transparent 18%),
    radial-gradient(circle at 24% 74%, rgba(110, 153, 255, 0.12), transparent 32%),
    linear-gradient(180deg, #190d25, #07040b 68%);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.42),
    0 0 calc(34px + (28px * var(--marke-beat))) color-mix(in srgb, var(--marke-eye-color) 48%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  transition: transform 0.24s ease, box-shadow 0.12s ease;
  animation: markeDevicePulse 0.72s ease-in-out infinite;
}

.marke-phone-device.is-inverted {
  transform: rotate(180deg);
}

.marke-studio.is-preview-expanded .marke-phone-device {
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  padding: clamp(34px, 8vh, 66px) clamp(16px, 7vw, 42px) clamp(30px, 7vh, 58px);
  background:
    radial-gradient(circle at 50% 16%, color-mix(in srgb, var(--marke-eye-color) 14%, transparent), transparent 28%),
    radial-gradient(circle at 50% 82%, color-mix(in srgb, var(--marke-plate-color) 12%, transparent), transparent 36%),
    linear-gradient(180deg, rgba(25, 13, 37, 0.86), rgba(7, 4, 11, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 0 calc(80px + (64px * var(--marke-beat))) color-mix(in srgb, var(--marke-eye-color) 18%, transparent);
  grid-template-rows: minmax(90px, 1fr) auto minmax(44px, 0.55fr);
  align-content: stretch;
  justify-content: stretch;
  justify-items: center;
}

.marke-studio.is-preview-expanded .marke-phone-speaker {
  display: none;
}

.marke-phone-speaker {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 44px;
  height: 5px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.22);
}

.marke-face {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 12vw, 54px);
  width: 100%;
  transform: translateX(calc((var(--marke-beat) - 0.35) * 8px));
  transition: transform 0.1s ease-out;
}

.marke-eye {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--marke-eye-color);
  box-shadow:
    0 0 calc(12px + (16px * var(--marke-beat))) rgba(255, 255, 255, 0.7),
    0 0 calc(22px + (38px * var(--marke-beat))) color-mix(in srgb, var(--marke-eye-color) 82%, transparent),
    0 0 calc(8px + (22px * var(--marke-beat))) color-mix(in srgb, var(--marke-plate-color) 48%, transparent);
  transform: scale(calc(0.94 + (var(--marke-beat) * 0.22)));
  transition: background 0.08s ease, box-shadow 0.08s ease, transform 0.08s ease;
}

.marke-studio.is-preview-expanded .marke-eye {
  width: clamp(54px, 17vw, 124px);
  height: clamp(54px, 17vw, 124px);
}

.marke-studio.is-preview-expanded .marke-face {
  align-self: end;
  width: min(92%, 680px);
  gap: clamp(36px, 18vw, 180px);
}

.marke-studio.is-preview-expanded .marke-face[data-eye-mode="soft"] .marke-eye {
  height: clamp(32px, 10vw, 78px);
}

.marke-studio.is-preview-expanded .marke-face[data-eye-mode="focus"] .marke-eye {
  width: clamp(78px, 22vw, 170px);
  height: clamp(26px, 7vw, 58px);
}

.marke-face[data-eye-mode="spark"] .marke-eye {
  clip-path: polygon(50% 0, 62% 34%, 98% 50%, 62% 66%, 50% 100%, 38% 66%, 2% 50%, 38% 34%);
}

.marke-face[data-eye-mode="soft"] .marke-eye {
  height: 18px;
  margin-top: 6px;
  border-radius: 999px 999px 20px 20px;
}

.marke-face[data-eye-mode="focus"] .marke-eye {
  width: 34px;
  height: 14px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff, var(--marke-eye-color));
}

.marke-sign-text {
  display: block;
  max-width: 100%;
  min-width: 100%;
  color: transparent;
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-size: clamp(1.25rem, 9vw, 2.3rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.02;
  text-align: center;
  white-space: nowrap;
  overflow-wrap: normal;
  -webkit-text-stroke: 1px rgba(255, 246, 255, 0.9);
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.86),
    0 0 12px rgba(216, 137, 255, 0.72),
    0 0 26px rgba(110, 153, 255, 0.32);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 27%, transparent 31%) 0 0 / 9px 9px;
  -webkit-background-clip: text;
  background-clip: text;
  animation: markeLedTicker 7s linear infinite;
  transform: translateX(calc(var(--marke-beat) * 5px));
}

.marke-studio.is-preview-expanded .marke-sign-text {
  font-size: clamp(2.8rem, 19vw, 8rem);
  animation-duration: 5.2s;
}

.marke-glow-plate {
  width: 72%;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--marke-plate-color) 76%, white), transparent);
  box-shadow:
    0 0 calc(18px + (22px * var(--marke-beat))) color-mix(in srgb, var(--marke-eye-color) 62%, transparent),
    0 0 calc(30px + (34px * var(--marke-beat))) color-mix(in srgb, var(--marke-plate-color) 48%, transparent);
}

.marke-studio.is-preview-expanded .marke-glow-plate {
  align-self: start;
  width: min(92%, 760px);
  height: clamp(12px, 3vh, 28px);
}

.marke-phone-device[data-marke-orientation="horizontal"] {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr) minmax(0, 0.8fr);
  grid-template-rows: 1fr;
  align-items: center;
  gap: clamp(10px, 3vw, 24px);
}

.marke-phone-device[data-marke-orientation="horizontal"] .marke-face {
  grid-column: 1;
  grid-row: 1;
}

.marke-phone-device[data-marke-orientation="horizontal"] .marke-sign-text {
  grid-column: 2;
  grid-row: 1;
}

.marke-phone-device[data-marke-orientation="horizontal"] .marke-glow-plate {
  grid-column: 3;
  grid-row: 1;
  width: 100%;
  transform: rotate(90deg);
}

.marke-phone-device[data-marke-orientation="diagonal"] .marke-face {
  transform: translate(-18%, -4%) rotate(-8deg);
}

.marke-phone-device[data-marke-orientation="diagonal"] .marke-sign-text {
  transform: translateX(calc(var(--marke-beat) * 5px)) rotate(-7deg);
}

.marke-phone-device[data-marke-orientation="diagonal"] .marke-glow-plate {
  transform: translate(14%, 10%) rotate(-8deg);
}

.marke-studio.is-preview-expanded .marke-phone-device[data-marke-orientation="diagonal"] {
  grid-template-rows: 1fr auto 1fr;
}

.marke-studio.is-preview-expanded .marke-phone-device[data-marke-orientation="horizontal"] .marke-face {
  align-self: center;
  width: 100%;
  gap: clamp(18px, 7vw, 74px);
}

.marke-studio.is-preview-expanded .marke-phone-device[data-marke-orientation="horizontal"] .marke-sign-text {
  font-size: clamp(2.2rem, 12vw, 6.4rem);
}

.marke-studio.is-preview-expanded .marke-phone-device[data-marke-orientation="horizontal"] .marke-glow-plate {
  align-self: center;
  width: min(74vh, 430px);
}

.marke-controls {
  display: grid;
  gap: 10px;
}

.marke-field {
  display: grid;
  gap: 6px;
  color: rgba(244, 229, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
}

.marke-field input {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  font: inherit;
}

.marke-eye-options,
.marke-orientation-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.marke-eye-option,
.marke-orientation-option,
.marke-toggle {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
}

.marke-eye-option {
  cursor: pointer;
}

.marke-eye-option,
.marke-orientation-option {
  cursor: pointer;
}

.marke-eye-option.is-active,
.marke-orientation-option.is-active {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(216, 137, 255, 0.3), rgba(110, 153, 255, 0.16)),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 18px rgba(216, 137, 255, 0.16);
}

.marke-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
}

.marke-toggle input {
  accent-color: #d889ff;
}

@keyframes markeStudioIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes markeLedTicker {
  0% {
    translate: 58%;
  }
  100% {
    translate: -58%;
  }
}

@keyframes markeDevicePulse {
  0%, 100% {
    filter: brightness(calc(0.96 + (var(--marke-beat) * 0.16)));
  }
  50% {
    filter: brightness(calc(1.02 + (var(--marke-beat) * 0.22)));
  }
}

.language-switcher {
  position: relative;
  z-index: 1;
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center;
  gap: 3px;
  width: fit-content;
  min-width: 120px;
  min-height: 38px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.76);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(216, 137, 255, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: auto;
}

.language-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 54px;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  padding: 0 8px;
  color: rgba(255, 255, 255, 0.64);
  background: transparent;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.language-flag {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.42),
    0 3px 7px rgba(0, 0, 0, 0.18);
  opacity: 0.88;
}

.flag-pt {
  background:
    radial-gradient(circle at 50% 50%, #ffffff 0 24%, transparent 25%),
    linear-gradient(135deg, transparent 0 42%, #d889ff 43% 57%, transparent 58%),
    #12081c;
}

.flag-en {
  background:
    linear-gradient(90deg, transparent 0 42%, #ffffff 43% 57%, transparent 58%),
    linear-gradient(0deg, transparent 0 42%, #ffffff 43% 57%, transparent 58%),
    repeating-linear-gradient(0deg, #b26bff 0 2px, #050209 2px 4px);
}

.language-option.is-active {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(216, 137, 255, 0.24)),
    rgba(178, 107, 255, 0.16);
  box-shadow:
    0 5px 14px rgba(0, 0, 0, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.language-option:not(.is-active):hover,
.language-option:not(.is-active):focus-visible {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.language-library-shelf {
  gap: 12px;
}

.language-library-shelf .language-switcher {
  justify-self: start;
  background:
    radial-gradient(circle at 18% 22%, rgba(216, 137, 255, 0.1), transparent 42%),
    rgba(0, 0, 0, 0.72);
}

.home-language-switcher {
  position: absolute;
  top: calc(25px + var(--safe-top));
  left: auto;
  right: 14px;
  z-index: 90;
  min-width: 94px;
  min-height: 30px;
  padding: 3px;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.58);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.home-language-switcher .language-option {
  min-width: 43px;
  min-height: 24px;
  gap: 3px;
  padding: 0 6px;
  font-size: 0.6rem;
}

.home-language-switcher .language-flag {
  width: 13px;
  height: 13px;
}

.phone-screen:not([data-app-view="home"]) .home-language-switcher {
  display: none !important;
}

.phone-screen[data-app-view="home"] .home-language-switcher {
  display: inline-flex !important;
}

.header-waves {
  position: absolute;
  inset: 4px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.header-waves span {
  display: block;
  position: relative;
  width: 26px;
  height: 26px;
  --wave-drive: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 18%, rgba(230, 194, 255, 0.92) 20%, rgba(198, 113, 255, 0.58) 44%, rgba(154, 92, 236, 0.14) 68%, transparent 74%);
  box-shadow:
    0 0 calc(8px + (14px * var(--wave-drive))) rgba(216, 137, 255, calc(0.1 + (0.22 * var(--wave-drive)))),
    0 0 calc(4px + (10px * var(--wave-drive))) rgba(255, 255, 255, calc(0.08 + (0.14 * var(--wave-drive))));
  opacity: calc(0.44 + (0.5 * var(--wave-drive)));
  will-change: transform, opacity, box-shadow, filter;
  transform: translateY(calc(8px - (18px * var(--wave-drive)))) scale(calc(0.62 + (0.6 * var(--wave-drive))));
  filter: blur(calc(0.2px + ((1 - var(--wave-drive)) * 0.45px)));
  transition: transform 0.12s ease-out, opacity 0.12s ease-out, filter 0.12s ease-out;
}

.header-waves span::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid rgba(219, 163, 255, calc(0.18 + (0.22 * var(--wave-drive))));
  opacity: calc(0.1 + (0.24 * var(--wave-drive)));
  transform: translateY(calc(2px + (10px * (1 - var(--wave-drive))))) scale(calc(1 + (0.92 * var(--wave-drive))));
  transition: transform 0.14s ease-out, opacity 0.14s ease-out;
}

.header-waves span::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, calc(0.08 + (0.16 * var(--wave-drive))));
  opacity: calc(0.08 + (0.18 * var(--wave-drive)));
  transform: translateY(calc(4px + (14px * (1 - var(--wave-drive))))) scale(calc(1.18 + (1.18 * var(--wave-drive))));
  transition: transform 0.18s ease-out, opacity 0.18s ease-out;
}

.header-waves span:nth-child(1) {
  transform: translateY(calc(10px - (16px * var(--wave-drive)))) scale(calc(0.56 + (0.5 * var(--wave-drive))));
}

.header-waves span:nth-child(2) {
  transform: translateY(calc(6px - (20px * var(--wave-drive)))) scale(calc(0.74 + (0.68 * var(--wave-drive))));
}

.header-waves span:nth-child(3) {
  transform: translateY(calc(8px - (18px * var(--wave-drive)))) scale(calc(0.64 + (0.56 * var(--wave-drive))));
}

.header-waves span:nth-child(odd) {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 16%, rgba(236, 206, 255, 0.94) 22%, rgba(207, 118, 255, 0.54) 48%, rgba(138, 84, 236, 0.12) 72%, transparent 78%);
}

.header-waves span:nth-child(even) {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 14%, rgba(219, 181, 255, 0.92) 22%, rgba(178, 106, 255, 0.58) 46%, rgba(118, 82, 228, 0.14) 70%, transparent 76%);
}

.header-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.header-particles span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 242, 255, 0.82);
  filter: blur(0.25px);
  animation: particleRise 4.6s linear infinite;
}

.header-particles span:nth-child(1) {
  left: auto;
  right: 62px;
  bottom: 2px;
  animation-delay: 0s;
}

.header-particles span:nth-child(2) {
  left: auto;
  right: 34px;
  bottom: 10px;
  animation-delay: 1.1s;
}

.header-particles span:nth-child(3) {
  left: auto;
  right: 15px;
  bottom: 0;
  animation-delay: 2.1s;
}

.header-particles span:nth-child(4) {
  right: 22px;
  bottom: 12px;
  animation-delay: 1.8s;
}

.header-particles span:nth-child(5) {
  right: 8px;
  bottom: 4px;
  animation-delay: 3s;
}

.search-shell {
  display: grid;
  gap: 0;
  position: relative;
  z-index: 5;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  justify-self: stretch;
  transition: gap 0.24s ease, transform 0.24s ease;
}

@keyframes splashLogoRise {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.84);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes splashLogoEntrance {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.72);
    filter: blur(8px);
  }
  62% {
    opacity: 1;
    transform: translateY(-5px) scale(1.08);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes splashLogoAura {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.025);
  }
}

@keyframes splashLogoPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 28px rgba(204, 101, 255, 0.2));
  }
  50% {
    transform: scale(1.025);
    filter: drop-shadow(0 0 38px rgba(190, 124, 255, 0.3));
  }
}

@keyframes splashInkCloud {
  0%,
  100% {
    transform: translate3d(-1.6%, 1%, 0) scale(0.96) rotate(-1.2deg);
    opacity: 0.52;
    border-radius: 48% 52% 46% 54% / 44% 52% 48% 56%;
  }
  50% {
    transform: translate3d(1.8%, -1.2%, 0) scale(1.06) rotate(1deg);
    opacity: 0.76;
    border-radius: 56% 44% 54% 46% / 52% 42% 58% 48%;
  }
}

@keyframes splashInkBloom {
  0%,
  100% {
    background-position: 0% 46%, 52% 0%, 100% 40%, 62% 100%, 28% 72%;
    transform: translate3d(-2%, 1%, 0) scale(0.98) rotate(-0.8deg);
    opacity: 0.34;
  }
  50% {
    background-position: 12% 54%, 46% 10%, 88% 48%, 70% 86%, 36% 60%;
    transform: translate3d(2.4%, -1.8%, 0) scale(1.08) rotate(0.9deg);
    opacity: 0.6;
  }
}

@keyframes splashParticleCloud {
  0%,
  100% {
    transform: translate3d(calc(-50% + var(--particle-drift-x, 0px)), calc(-50% + var(--particle-drift-y, 0px)), 0) scale(0.72) rotate(-3deg);
    opacity: calc(var(--particle-opacity, 0.44) * 0.62);
    border-radius: 46% 54% 58% 42% / 50% 42% 58% 50%;
  }
  50% {
    transform: translate3d(calc(-50% + 18px), calc(-50% - 14px), 0) scale(1.06) rotate(2deg);
    opacity: var(--particle-opacity, 0.44);
    border-radius: 58% 42% 48% 52% / 42% 58% 46% 54%;
  }
}

@keyframes splashLensPulse {
  0%,
  100% {
    opacity: 0.62;
    transform: translate(-50%, -50%) scale(0.92);
    filter: blur(0.35px) drop-shadow(0 0 22px rgba(255, 255, 255, 0.36)) drop-shadow(0 0 52px rgba(178, 107, 255, 0.28));
  }
  42% {
    opacity: 0.84;
    transform: translate(-50%, -50%) scale(1.05);
    filter: blur(0.2px) drop-shadow(0 0 34px rgba(255, 255, 255, 0.56)) drop-shadow(0 0 74px rgba(112, 224, 255, 0.34));
  }
  68% {
    opacity: 0.72;
    transform: translate(-50%, -50%) scale(0.98);
  }
}

@keyframes splashLensLine {
  0%,
  100% {
    opacity: 0.28;
    transform: translate(calc(-50% - 12vw), calc(-50% - 1.4vh)) rotate(calc(var(--flare-beam-angle, -8deg) - 1.4deg)) scaleX(0.82);
  }
  42% {
    opacity: 0.82;
    transform: translate(calc(-50% + 10vw), calc(-50% + 1.1vh)) rotate(calc(var(--flare-beam-angle, -8deg) + 2.4deg)) scaleX(1.18);
  }
  72% {
    opacity: 0.56;
    transform: translate(calc(-50% + 2vw), calc(-50% - 1.7vh)) rotate(calc(var(--flare-beam-angle, -8deg) - 1deg)) scaleX(1);
  }
}

@keyframes splashLensAura {
  0%,
  100% {
    opacity: 0.28;
    transform: translate(-50%, -50%) rotate(-8deg) scaleX(1.14) scaleY(0.94);
  }
  48% {
    opacity: 0.5;
    transform: translate(-50%, -50%) rotate(-5deg) scaleX(1.28) scaleY(1.04);
  }
}

@keyframes splashLensRay {
  0%,
  100% {
    opacity: 0.16;
    transform: translate(calc(-50% - 11vw + var(--flare-ray-shift, 0px)), calc(-50% - 1vh)) rotate(calc(var(--flare-ray-angle, -8deg) - 1.2deg)) scaleX(0.78);
  }
  48% {
    opacity: 0.5;
    transform: translate(calc(-50% + 12vw + var(--flare-ray-shift, 0px)), calc(-50% + 1vh)) rotate(calc(var(--flare-ray-angle, -8deg) + 2deg)) scaleX(1.16);
  }
  76% {
    opacity: 0.28;
    transform: translate(calc(-50% + 3vw + var(--flare-ray-shift, 0px)), calc(-50% - 1.4vh)) rotate(calc(var(--flare-ray-angle, -8deg) - 1deg)) scaleX(0.94);
  }
}

@keyframes splashLensGhost {
  0%,
  100% {
    opacity: 0.22;
    transform: translate(-50%, -50%) scale(0.86);
  }
  45% {
    opacity: 0.48;
    transform: translate(-50%, -50%) scale(1.06);
  }
  70% {
    opacity: 0.34;
    transform: translate(-50%, -50%) scale(0.96);
  }
}

@keyframes splashLensDrift {
  0%,
  100% {
    transform: translate3d(-5.5vw, -1.2vh, 0) scale(1);
  }
  36% {
    transform: translate3d(5.2vw, 1.1vh, 0) scale(1.018);
  }
  68% {
    transform: translate3d(1.2vw, -1.8vh, 0) scale(0.994);
  }
}

@keyframes splashArtistReveal {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.94;
    filter:
      drop-shadow(0 24px 48px rgba(0, 0, 0, 0.62))
      drop-shadow(0 0 24px rgba(194, 124, 255, 0.22));
  }
  42% {
    transform: translateY(-2px) scale(1.018);
    opacity: 1;
    filter:
      drop-shadow(0 28px 54px rgba(0, 0, 0, 0.7))
      drop-shadow(0 0 44px rgba(216, 137, 255, 0.42));
  }
  46% {
    opacity: 0.88;
  }
  50% {
    opacity: 1;
  }
}

@keyframes splashStageGlow {
  0%,
  100% {
    opacity: 0.34;
    transform: translateX(-50%) scaleX(0.82);
  }
  45% {
    opacity: 0.62;
    transform: translateX(-50%) scaleX(1);
  }
  50% {
    opacity: 0.42;
  }
  56% {
    opacity: 0.58;
  }
}

@keyframes splashSmokeDrift {
  0%,
  100% {
    transform: translate3d(-5%, 2%, 0) scale(1) rotate(-1deg);
    opacity: 0.34;
  }
  45% {
    transform: translate3d(5%, -3%, 0) scale(1.08) rotate(1.2deg);
    opacity: 0.58;
  }
  70% {
    transform: translate3d(2%, 1%, 0) scale(1.04) rotate(0.4deg);
    opacity: 0.48;
  }
}

@keyframes splashPurpleBar {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 230% 50%;
  }
}

@keyframes splashPurpleGlow {
  0%,
  100% {
    box-shadow:
      0 0 14px rgba(255, 255, 255, 0.3),
      0 0 30px rgba(178, 107, 255, 0.38);
  }
  50% {
    box-shadow:
      0 0 24px rgba(248, 241, 255, 0.5),
      0 0 52px rgba(138, 73, 214, 0.58),
      0 -10px 32px rgba(207, 140, 255, 0.34),
      0 10px 32px rgba(83, 31, 142, 0.34);
  }
}

@keyframes splashPurpleWave {
  0%,
  100% {
    background-position: 44% 0, 0 0, 100% 0, 0 0;
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.42;
  }
  50% {
    background-position: 56% 0, 14% 0, 86% 0, 40px 0;
    transform: translate3d(0, -1.2%, 0) scale(1.025);
    opacity: 0.64;
  }
}

@keyframes splashConsoleRing {
  from {
    transform: rotateX(64deg) rotateZ(0deg) scale(1);
  }

  to {
    transform: rotateX(64deg) rotateZ(360deg) scale(1);
  }
}

@keyframes splashCoreRing {
  0% {
    transform: rotate(0deg) scale(0.98);
    opacity: 0.46;
  }

  50% {
    transform: rotate(180deg) scale(1.04);
    opacity: 0.66;
  }

  100% {
    transform: rotate(360deg) scale(0.98);
    opacity: 0.46;
  }
}

@keyframes splashRainbowBreath {
  0%,
  100% {
    transform: scale(0.98);
    opacity: 0.34;
  }

  50% {
    transform: scale(1.02);
    opacity: 0.48;
  }
}

@keyframes splashProgressWave {
  from {
    transform: translateX(-48px);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes splashProgressShine {
  0% {
    transform: translateX(-72%);
  }
  52%,
  100% {
    transform: translateX(72%);
  }
}

@keyframes splashFallbackDrift {
  from {
    background-position: 0 0, 0 0, 0 0, 0 0;
    transform: scale(1);
  }
  to {
    background-position: 56px 0, 24px -18px, -18px 22px, 0 0;
    transform: scale(1.04);
  }
}

@keyframes splashLineDraw {
  0% {
    clip-path: inset(0 100% 0 0 round 999px);
    opacity: 0;
  }
  16%,
  62% {
    clip-path: inset(0 0 0 0 round 999px);
    opacity: 1;
  }
  100% {
    clip-path: inset(0 0 0 100% round 999px);
    opacity: 0;
  }
}

@keyframes splashPlaneDraw {
  0% {
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    opacity: 0;
    filter: blur(1px);
  }
  18%,
  72% {
    clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
    opacity: 0.95;
    filter: blur(0);
  }
  100% {
    clip-path: polygon(100% 0, 100% 0, 82% 100%, 82% 100%);
    opacity: 0;
    filter: blur(1px);
  }
}

@keyframes splashCoverZoom {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0) rotate(var(--cover-rotate, 0deg)) scale(0.88);
    filter: saturate(0.78) blur(1px);
  }
  20%,
  72% {
    opacity: 0.92;
    transform: translate3d(0, 0, 0) rotate(var(--cover-rotate, 0deg)) scale(1);
    filter: saturate(1.08) blur(0);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -10px, 0) rotate(var(--cover-rotate, 0deg)) scale(1.1);
    filter: saturate(0.92) blur(1px);
  }
}

@keyframes splashWelcomeFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -7px, 0);
  }
}

@keyframes splashStripeWallDraw {
  0% {
    clip-path: inset(0 100% 0 0 round 30px);
    filter: saturate(0.9);
  }
  18%,
  72% {
    clip-path: inset(0 0 0 0 round 30px);
    filter: saturate(1.08);
  }
  100% {
    clip-path: inset(0 0 0 100% round 30px);
    filter: saturate(0.92);
  }
}

@keyframes splashShapeTrace {
  0% {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.86);
  }
  22%,
  68% {
    opacity: 0.94;
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -10px, 0) scale(0.96);
  }
}

@keyframes splashArcDraw {
  from {
    opacity: 0;
    transform: rotate(-24deg) scale(0.86);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

@keyframes splashArcStar {
  0%,
  100% {
    transform: scale(0.86);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.28);
    opacity: 1;
  }
}

@keyframes splashLightfall {
  0% {
    transform: translateY(-40px) scaleY(0.8);
    opacity: 0;
  }
  18%,
  54% {
    opacity: 1;
  }
  100% {
    transform: translateY(128vh) scaleY(1.16);
    opacity: 0;
  }
}

@keyframes splashNoteArc {
  0% {
    transform: translate3d(-26px, 24px, 0) scale(0.78) rotate(-10deg);
    opacity: 0;
  }
  18%,
  70% {
    opacity: 1;
  }
  100% {
    transform: translate3d(34px, -66px, 0) scale(1.08) rotate(12deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash-screen::before,
  .splash-art::before,
  .splash-art::after,
  .splash-brand,
  .splash-brand::before,
  .splash-brand::after,
  .splash-lens-flare,
  .splash-lens-flare::before,
  .splash-lens-flare::after,
  .splash-lens-flare span,
  .splash-logo,
  .splash-brand-name::before,
  .splash-logo-particles span,
  .splash-progress-bar,
  .splash-progress-bar::before,
  .splash-progress-bar::after,
  .mode-transition-lens,
  .mode-transition-lens span,
  .album-card.is-skeleton::before,
  .skeleton-block,
  .skeleton-line {
    animation: none !important;
  }

  .splash-art::before,
  .splash-art::after {
    opacity: 0.32;
  }
}

.search-form {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 34px 104px;
  align-items: center;
  gap: 7px;
  padding: 10px 7px 10px 13px;
  border: 1px solid rgba(218, 168, 255, 0.2);
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 0%, rgba(216, 137, 255, 0.1), transparent 34%),
    rgba(10, 7, 16, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    inset 0 0 0 1px rgba(123, 45, 255, 0.06),
    0 12px 28px rgba(0, 0, 0, 0.14);
  transition: padding 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
  isolation: isolate;
}

.search-form::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background:
    conic-gradient(
      from var(--ai-border-angle),
      rgba(178, 107, 255, 0.08) 0deg,
      rgba(178, 107, 255, 0.08) 46deg,
      #b26bff 74deg,
      #f4b8ff 112deg,
      #76f7d0 150deg,
      #ffcf6f 188deg,
      #b26bff 226deg,
      rgba(178, 107, 255, 0.08) 274deg,
      rgba(178, 107, 255, 0.08) 360deg
    );
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  opacity: 0.92;
  pointer-events: none;
  animation: aiRainbowBorderFlow 5.2s linear infinite;
  z-index: 0;
}

.search-form > * {
  position: relative;
  z-index: 1;
}

.search-shell {
  display: grid;
  gap: 8px;
}

.search-icon,
.search-voice,
.search-mic {
  color: #d8c0e9;
  display: grid;
  place-items: center;
}

.search-leading {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.search-leading .search-icon-search,
.search-leading .search-icon-back {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.search-leading[data-mode="search"] .search-icon-back,
.search-leading[data-mode="back"] .search-icon-search {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.82);
}

.search-icon svg,
.search-mic svg,
.search-voice svg,
.bottom-nav-icon svg,
.circle-action svg {
  width: 19px;
  height: 19px;
  display: block;
  fill: currentColor;
}

.search-form input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.94rem;
  transition: font-size 0.28s ease;
}

.search-form input::placeholder {
  color: #9d8ba8;
}

.search-mic {
  width: 34px;
  min-width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 18%, rgba(255, 255, 255, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(33, 20, 50, 0.82), rgba(11, 8, 18, 0.9));
  color: #f2e5ff;
  box-shadow:
    inset 0 0 0 1px rgba(218, 168, 255, 0.18),
    0 8px 18px rgba(123, 45, 255, 0.18);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.search-mic:hover {
  color: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(218, 168, 255, 0.32),
    0 10px 24px rgba(178, 107, 255, 0.24);
}

.search-mic:active {
  transform: scale(0.94);
}

.search-mic[data-listening="true"] {
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.22), transparent 38%),
    linear-gradient(135deg, #7b2dff, #c46dff);
  box-shadow:
    0 0 0 4px rgba(178, 107, 255, 0.14),
    0 0 26px rgba(178, 107, 255, 0.42);
  animation: micListenPulse 1.1s ease-in-out infinite;
}

.search-mic:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
}

.search-form[data-voice-search="off"] {
  grid-template-columns: 22px minmax(0, 1fr) 104px;
}

.search-form[data-voice-search="off"] .search-mic {
  display: none;
}

.search-voice {
  border: 0;
  width: 104px;
  min-width: 104px;
  min-height: 30px;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 0;
  padding: 3px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(20, 13, 31, 0.68), rgba(9, 6, 15, 0.78)),
    rgba(8, 6, 12, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -9px 18px rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px rgba(123, 45, 255, 0.1),
    0 8px 22px rgba(16, 8, 28, 0.24),
    0 0 18px rgba(123, 45, 255, 0.08);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  cursor: pointer;
  line-height: 1;
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: background 300ms ease, box-shadow 300ms ease, color 300ms ease, transform 300ms ease, filter 300ms ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.search-voice::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.46), transparent 30%),
    linear-gradient(135deg, #7b2dff 0%, #9d4dff 48%, #b066ff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -8px 18px rgba(48, 10, 104, 0.28),
    0 7px 16px rgba(123, 45, 255, 0.3),
    0 0 18px rgba(176, 102, 255, 0.22);
  transform: translateX(0);
  transition: transform 340ms cubic-bezier(0.2, 0.82, 0.18, 1), box-shadow 300ms ease, filter 300ms ease;
  pointer-events: none;
}

.search-voice::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 1;
  border-radius: inherit;
  background:
    linear-gradient(120deg, transparent 16%, rgba(255, 255, 255, 0.16), transparent 42%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.1), transparent 46%);
  transform: translateX(-45%);
  opacity: 0;
  transition: opacity 300ms ease, transform 300ms ease;
  pointer-events: none;
}

.search-mode-dot {
  position: relative;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff, #ead9ff 54%, #c79aff);
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.34),
    0 0 16px rgba(176, 102, 255, 0.38);
}

.search-mode-icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  margin-left: 5px;
  color: #fff;
  transform: translateX(0);
  transition: transform 340ms cubic-bezier(0.2, 0.82, 0.18, 1), opacity 300ms ease;
}

.search-mode-dot::before,
.search-mode-dot::after {
  content: "";
  position: absolute;
  transition: transform 300ms ease, opacity 300ms ease, border-color 300ms ease, background 300ms ease;
}

.search-voice[data-mode="music"] .search-mode-dot::before {
  inset: 3px 4px 2px 3px;
  border-radius: 2px;
  background:
    linear-gradient(90deg,
      rgba(49, 12, 99, 0.96) 0 2px,
      transparent 2px 3px,
      rgba(49, 12, 99, 0.96) 3px 5px,
      transparent 5px 7px);
  opacity: 0.9;
}

.search-voice[data-mode="music"] .search-mode-dot::after {
  width: 5px;
  height: 5px;
  right: 0;
  top: 0;
  border-radius: 2px 2px 999px 999px;
  border: 1.8px solid rgba(49, 12, 99, 0.96);
  border-left: 0;
  border-bottom: 0;
  transform: rotate(18deg);
}

.search-mode-text {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  max-width: 40px;
  padding-right: 5px;
  color: #ffffff;
  text-shadow: 0 1px 7px rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translateX(0);
  transition: transform 340ms cubic-bezier(0.2, 0.82, 0.18, 1), color 300ms ease, text-shadow 300ms ease;
}

.search-mode-secondary {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  max-width: 48px;
  color: rgba(138, 138, 149, 0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1.09em;
  transform: translateX(0);
  transition: transform 340ms cubic-bezier(0.2, 0.82, 0.18, 1), color 300ms ease, opacity 300ms ease;
}

.search-voice[data-mode="music"] {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(20, 13, 31, 0.68), rgba(9, 6, 15, 0.78)),
    rgba(8, 6, 12, 0.7);
}

.search-voice[data-mode="podcast"] {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(20, 13, 31, 0.68), rgba(9, 6, 15, 0.78)),
    rgba(8, 6, 12, 0.7);
}

.search-voice[data-mode="podcast"]::before {
  transform: translateX(calc(100% + 3px));
}

.search-voice[data-mode="podcast"] .search-mode-icon,
.search-voice[data-mode="podcast"] .search-mode-text {
  transform: translateX(52px);
}

.search-voice[data-mode="podcast"] .search-mode-secondary {
  transform: translateX(-52px);
}

.search-voice[data-mode="podcast"] .search-mode-dot {
  background: linear-gradient(135deg, #ffffff, #ead9ff 54%, #c79aff);
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.34),
    0 0 16px rgba(176, 102, 255, 0.38);
}

.search-voice[data-mode="podcast"] .search-mode-dot::before {
  width: 7px;
  height: 9px;
  left: 50%;
  top: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(49, 12, 99, 0.96);
}

.search-voice[data-mode="podcast"] .search-mode-dot::after {
  width: 10px;
  height: 6px;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  border: 1.8px solid rgba(49, 12, 99, 0.96);
  border-top: 0;
  border-radius: 0 0 999px 999px;
}

.search-voice:hover {
  filter: brightness(1.045);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -9px 18px rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px rgba(123, 45, 255, 0.16),
    0 10px 24px rgba(16, 8, 28, 0.28),
    0 0 22px rgba(123, 45, 255, 0.12);
}

.search-voice:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.search-voice:active {
  transform: translateY(0) scale(0.97);
}

.search-voice[data-emphasis="true"] {
  animation: searchModeNudge 0.8s ease 2;
}

.search-voice[data-emphasis="true"]::after {
  animation: searchModeSweep 1.1s ease;
  opacity: 1;
}

.search-mode-hint {
  margin: -2px 4px 0;
  color: rgba(230, 213, 247, 0.72);
  font-size: 0.68rem;
  line-height: 1.35;
  letter-spacing: 0.03em;
  text-align: right;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.search-mode-hint::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  position: relative;
  display: inline-block;
  mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 19.2 5.3 12.5l1.4-1.4 4.3 4.29V4h2v11.39l4.3-4.3 1.4 1.42L12 19.2Z'/%3E%3C/svg%3E")
    center / 12px 12px no-repeat;
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 19.2 5.3 12.5l1.4-1.4 4.3 4.29V4h2v11.39l4.3-4.3 1.4 1.42L12 19.2Z'/%3E%3C/svg%3E")
    center / 12px 12px no-repeat;
  background-color: rgba(255, 255, 255, 0.82);
}

.search-voice:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@keyframes searchModeSweep {
  from {
    transform: translateX(-135%);
  }
  to {
    transform: translateX(135%);
  }
}

@keyframes searchModeNudge {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  30% {
    transform: translateY(-1px) scale(1.03);
  }
  55% {
    transform: translateY(0) scale(0.99);
  }
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(218, 168, 255, 0.14);
  border-radius: 18px;
  background: rgba(11, 8, 18, 0.97);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
  z-index: 6;
}

.album-card.is-podcast {
  border-color: rgba(255, 207, 112, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 207, 112, 0.1), rgba(255, 255, 255, 0.025)),
    rgba(17, 13, 23, 0.88);
}

.album-card.is-podcast .album-thumb {
  box-shadow: 0 12px 26px rgba(255, 183, 75, 0.18);
}

.album-queue-action.is-podcast-save {
  width: 38px;
  min-width: 38px;
  padding: 0;
  gap: 0;
  color: rgba(244, 230, 255, 0.96);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.14), transparent 44%),
    linear-gradient(135deg, rgba(163, 112, 255, 0.16), rgba(216, 137, 255, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.album-queue-action.is-podcast-save .album-queue-label {
  display: none;
}

.album-queue-action.is-podcast-save:hover,
.album-queue-action.is-podcast-save:focus-visible {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 44%),
    linear-gradient(135deg, rgba(177, 126, 255, 0.22), rgba(226, 153, 255, 0.16));
  box-shadow:
    0 8px 18px rgba(93, 58, 145, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.podcast-episodes-section {
  position: relative;
  overflow: hidden;
}

@keyframes micListenPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }
}

.podcast-episodes-section::before {
  content: "";
  position: absolute;
  inset: 42px -34px auto auto;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 207, 112, 0.24), transparent 68%);
  pointer-events: none;
}

.similar-artists-section {
  overflow: hidden;
}

.similar-artists-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(164px, 190px);
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scroll-snap-type: x proximity;
}

.similar-artists-rail::-webkit-scrollbar {
  height: 0;
}

.people-match-section {
  overflow: hidden;
}

.people-match-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(218px, 252px);
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.people-match-list::-webkit-scrollbar {
  height: 0;
}

.people-match-card {
  --match-accent: #b26bff;
  min-width: 0;
  min-height: 142px;
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 12px;
  border: 1px solid rgba(218, 168, 255, 0.14);
  border-radius: 18px;
  scroll-snap-align: start;
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--match-accent) 34%, transparent), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(19, 13, 31, 0.94));
  color: #fff;
  text-align: left;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.people-match-card:hover {
  outline: none;
  border-color: rgba(218, 168, 255, 0.32);
  transform: translateY(-1px);
}

.people-match-person {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.people-match-person > strong {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.people-match-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--match-accent) 72%, #ffffff);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 20%, rgba(255, 255, 255, 0.28), transparent 32%),
    linear-gradient(135deg, var(--match-accent), #2a153d);
  color: #fff;
  font: 950 0.72rem/1 "Space Grotesk", system-ui, sans-serif;
}

.people-match-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.people-match-song {
  min-width: 0;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.people-match-person:focus-visible,
.people-match-song:focus-visible {
  outline: 2px solid rgba(238, 218, 255, 0.72);
  outline-offset: 3px;
  border-radius: 12px;
}

.people-match-cover {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(circle at 34% 20%, rgba(255, 255, 255, 0.22), transparent 32%),
    linear-gradient(135deg, color-mix(in srgb, var(--match-accent) 72%, #ffffff), #251432);
  color: #fff;
  font: 950 0.86rem/1 "Space Grotesk", system-ui, sans-serif;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
}

.people-match-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.people-match-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.people-match-copy strong,
.people-match-copy em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.people-match-copy strong {
  font-size: 0.88rem;
  line-height: 1.15;
}

.people-match-copy em {
  color: rgba(239, 233, 255, 0.82);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 760;
}

.vibe-section {
  display: grid;
  gap: 18px;
  margin-top: 0;
  padding-bottom: 14px;
}

.phone-screen[data-app-view="vibe"] .vibe-section::before {
  content: "";
  position: absolute;
  inset: -18px -22px auto;
  height: 170px;
  pointer-events: none;
  background:
    radial-gradient(circle at 86% 12%, rgba(216, 137, 255, 0.22), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 72%);
  opacity: 0.85;
  z-index: -1;
}

.vibe-hero,
.vibe-composer,
.vibe-room-card,
.vibe-post-card,
.vibe-room-panel {
  border: 1px solid rgba(218, 168, 255, 0.13);
  background:
    radial-gradient(circle at 88% 0%, rgba(178, 107, 255, 0.2), transparent 30%),
    linear-gradient(180deg, rgba(22, 14, 34, 0.9), rgba(11, 8, 18, 0.95));
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(1.05);
}

.vibe-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 136px;
  padding: 20px 18px;
  border-radius: 26px;
  overflow: hidden;
}

.phone-screen[data-app-view="vibe"] .vibe-hero {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.phone-screen[data-app-view="vibe"] .vibe-hero > div:first-child {
  display: none;
}

.phone-screen[data-app-view="vibe"] .vibe-online-avatars {
  justify-content: flex-start;
  min-width: 0;
  min-height: 0;
}

.phone-screen[data-app-view="vibe"] .vibe-online-avatar {
  width: 0;
  height: 0;
  opacity: 0;
  margin: 0;
  overflow: hidden;
}

.vibe-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(178, 107, 255, 0.16);
  color: #d889ff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.vibe-hero h2,
.vibe-room-panel h3 {
  margin: 8px 0 4px;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0;
  line-height: 1.02;
}

.vibe-hero h2 {
  font-size: 1.62rem;
}

.vibe-hero p,
.vibe-room-panel p {
  margin: 0;
  color: rgba(225, 210, 244, 0.76);
  font-size: 0.86rem;
  line-height: 1.36;
}

.vibe-online-avatars,
.vibe-room-avatars,
.vibe-room-people {
  display: flex;
  align-items: center;
}

.vibe-online-avatars {
  justify-content: flex-end;
  min-width: 112px;
}

.vibe-online-avatar,
.vibe-room-avatars i,
.vibe-room-person,
.vibe-post-avatar,
.vibe-composer-avatar {
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.26), transparent 26%),
    linear-gradient(180deg, rgba(69, 42, 100, 0.96), rgba(18, 12, 30, 0.98));
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 900;
  box-shadow: 0 0 0 2px rgba(142, 57, 255, 0.7), 0 0 0 5px rgba(9, 7, 16, 0.72);
}

.vibe-post-avatar[role="button"],
.vibe-comment-avatar[role="button"] {
  cursor: pointer;
  transition: transform var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) ease, filter var(--motion-fast) ease;
}

.vibe-post-avatar[role="button"]:hover,
.vibe-comment-avatar[role="button"]:hover,
.vibe-post-avatar[role="button"]:focus-visible,
.vibe-comment-avatar[role="button"]:focus-visible {
  transform: translateY(-1px) scale(1.03);
  filter: brightness(1.08);
  box-shadow:
    0 0 0 2px rgba(216, 137, 255, 0.92),
    0 0 0 5px rgba(9, 7, 16, 0.78),
    0 0 20px rgba(178, 107, 255, 0.32);
  outline: none;
}

.vibe-online-avatar {
  width: 48px;
  height: 48px;
  margin-left: -13px;
  font-size: 0.84rem;
}

.vibe-online-avatar:first-child {
  margin-left: 0;
}

.vibe-online-avatar img,
.vibe-room-avatars img,
.vibe-room-person img,
.vibe-post-avatar img,
.vibe-composer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vibe-composer {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
}

.phone-screen[data-app-view="vibe"] .vibe-composer {
  border-color: rgba(218, 168, 255, 0.18);
  background:
    radial-gradient(circle at 13% 18%, rgba(216, 137, 255, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(18, 13, 28, 0.9), rgba(9, 7, 15, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 42px rgba(0, 0, 0, 0.22);
}

.vibe-composer-avatar,
.vibe-post-avatar {
  width: 58px;
  height: 58px;
  font-size: 0.78rem;
}

.vibe-composer-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.vibe-composer textarea {
  width: 100%;
  min-height: 62px;
  resize: none;
  border: 1px solid rgba(218, 168, 255, 0.08);
  outline: 0;
  border-radius: 18px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(245, 238, 252, 0.94);
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.36;
}

.vibe-composer textarea::placeholder,
.vibe-room-message-row input::placeholder {
  color: rgba(219, 202, 238, 0.58);
}

.vibe-composer-context {
  display: grid;
  gap: 10px;
}

.vibe-current-track-wrap,
.vibe-track-search,
.vibe-photo-preview-panel,
.vibe-photo-music-panel,
.vibe-clip-controls,
.vibe-moment-tools,
.vibe-emoji-row {
  display: grid;
  gap: 8px;
}

.vibe-track-search input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(218, 168, 255, 0.12);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  outline: none;
}

.vibe-track-search[data-icon="music"] {
  position: relative;
}

.vibe-track-search[data-icon="music"]::before {
  content: "♪";
  position: absolute;
  left: 13px;
  top: 9px;
  z-index: 1;
  color: rgba(225, 210, 244, 0.72);
  font-size: 0.92rem;
  pointer-events: none;
}

.vibe-track-search[data-icon="music"] input {
  padding-left: 34px;
}

.vibe-track-search-results {
  display: grid;
  gap: 8px;
}

.vibe-track-preview {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 7px;
  border: 1px solid rgba(218, 168, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.vibe-track-preview.is-selected {
  border-color: rgba(127, 255, 183, 0.28);
  background:
    radial-gradient(circle at 100% 0%, rgba(127, 255, 183, 0.14), transparent 32%),
    rgba(255, 255, 255, 0.06);
}

.vibe-track-preview img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.vibe-track-preview span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.vibe-track-preview strong,
.vibe-track-preview small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vibe-track-preview strong {
  font-size: 0.82rem;
}

.vibe-track-preview small,
.vibe-context-empty,
.vibe-photo-preview-panel > span {
  margin: 0;
  color: rgba(225, 210, 244, 0.72);
  font-size: 0.74rem;
  line-height: 1.35;
}

.vibe-photo-preview-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(218, 168, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.vibe-photo-preview-panel img {
  grid-column: 1 / -1;
  width: 100%;
  max-height: 180px;
  border-radius: 14px;
  object-fit: cover;
}

.vibe-photo-publisher {
  display: grid;
  gap: 12px;
}

.vibe-photo-publisher-preview {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 230px;
  touch-action: none;
  border: 1px solid rgba(218, 168, 255, 0.16);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(218, 168, 255, 0.14), transparent 38%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.035) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.035) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.035) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.035) 75%),
    rgba(5, 3, 10, 0.78);
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 40px rgba(0, 0, 0, 0.24);
}

.vibe-photo-publisher-preview img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.vibe-photo-crop-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(100%, calc(min(44vh, 330px) * var(--vibe-photo-aspect, 1)));
  height: min(100%, min(44vh, 330px));
  transform: translate(-50%, -50%);
  cursor: grab;
  touch-action: none;
}

.vibe-photo-crop-overlay.is-dragging {
  cursor: grabbing;
}

.vibe-photo-crop-grid {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 12px;
  background:
    linear-gradient(90deg, transparent 32.8%, rgba(255, 255, 255, 0.26) 33%, rgba(255, 255, 255, 0.26) 33.4%, transparent 33.6%, transparent 66.2%, rgba(255, 255, 255, 0.26) 66.4%, rgba(255, 255, 255, 0.26) 66.8%, transparent 67%),
    linear-gradient(180deg, transparent 32.8%, rgba(255, 255, 255, 0.26) 33%, rgba(255, 255, 255, 0.26) 33.4%, transparent 33.6%, transparent 66.2%, rgba(255, 255, 255, 0.26) 66.4%, rgba(255, 255, 255, 0.26) 66.8%, transparent 67%);
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(0, 0, 0, 0.24);
  pointer-events: none;
}

.vibe-photo-crop-overlay i {
  position: absolute;
  width: 11px;
  height: 11px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.vibe-photo-crop-overlay .is-nw { left: 4px; top: 4px; }
.vibe-photo-crop-overlay .is-ne { right: 4px; top: 4px; }
.vibe-photo-crop-overlay .is-sw { left: 4px; bottom: 4px; }
.vibe-photo-crop-overlay .is-se { right: 4px; bottom: 4px; }
.vibe-photo-crop-overlay .is-n { left: 50%; top: 4px; transform: translateX(-50%); }
.vibe-photo-crop-overlay .is-s { left: 50%; bottom: 4px; transform: translateX(-50%); }
.vibe-photo-crop-overlay .is-e { right: 4px; top: 50%; transform: translateY(-50%); }
.vibe-photo-crop-overlay .is-w { left: 4px; top: 50%; transform: translateY(-50%); }

.vibe-photo-publisher-preview button {
  min-height: 44px;
  border: 1px solid rgba(218, 168, 255, 0.2);
  border-radius: 999px;
  padding: 0 18px;
  background: linear-gradient(180deg, rgba(185, 95, 255, 0.52), rgba(112, 50, 195, 0.5));
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
}

.vibe-photo-publisher-body {
  display: grid;
  gap: 10px;
}

.vibe-photo-publisher-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.vibe-photo-publisher-steps button {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-height: 46px;
  border: 1px solid rgba(218, 168, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(225, 210, 244, 0.76);
  font: inherit;
}

.vibe-photo-publisher-steps button.is-active {
  border-color: rgba(224, 174, 255, 0.38);
  background: rgba(185, 95, 255, 0.16);
  color: #fff;
}

.vibe-photo-publisher-steps span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(218, 168, 255, 0.14);
  font-size: 0.72rem;
  font-weight: 900;
}

.vibe-photo-publisher-steps .vibe-step-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.vibe-photo-publisher-steps strong {
  overflow: hidden;
  max-width: 100%;
  font-size: 0.64rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vibe-photo-open,
.vibe-photo-remove,
.vibe-moment-tools button,
.vibe-emoji-row button {
  min-height: 32px;
  border: 1px solid rgba(218, 168, 255, 0.14);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(242, 232, 250, 0.9);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.vibe-photo-open,
.vibe-moment-tools button.is-active {
  border-color: rgba(224, 174, 255, 0.36);
  background: linear-gradient(180deg, rgba(185, 95, 255, 0.42), rgba(112, 50, 195, 0.4));
  color: #fff;
}

.vibe-photo-remove {
  justify-self: end;
}

.vibe-photo-music-panel {
  padding: 10px;
  border: 1px solid rgba(218, 168, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.vibe-photo-edit-panel,
.vibe-photo-caption-panel,
.vibe-mention-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(218, 168, 255, 0.13);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.vibe-photo-music-head {
  display: grid;
  gap: 2px;
}

.vibe-photo-music-head strong {
  color: #fff;
  font-size: 0.82rem;
}

.vibe-photo-music-head small,
.vibe-clip-controls em {
  color: rgba(225, 210, 244, 0.68);
  font-size: 0.7rem;
  font-style: normal;
}

.vibe-clip-controls {
  display: grid;
  gap: 10px;
  padding: 11px;
  border: 1px solid rgba(218, 168, 255, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(187, 108, 255, 0.1), rgba(0, 0, 0, 0.2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.vibe-clip-controls > span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.vibe-clip-controls strong {
  color: #fff;
  font-size: 0.76rem;
}

.vibe-clip-timeline {
  --clip-start: 0%;
  --clip-end: 9%;
  position: relative;
  min-height: 58px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  touch-action: pan-x;
}

.vibe-clip-timeline.is-dragging {
  background: rgba(255, 255, 255, 0.065);
}

.vibe-clip-waveform,
.vibe-clip-selection {
  position: absolute;
  inset: 10px 8px;
  pointer-events: none;
}

.vibe-clip-waveform {
  display: grid;
  grid-template-columns: repeat(32, minmax(2px, 1fr));
  gap: 3px;
  align-items: center;
  opacity: 0.58;
}

.vibe-clip-waveform i {
  height: calc(var(--bar, 48) * 1%);
  min-height: 8px;
  border-radius: 999px;
  background: rgba(225, 210, 244, 0.42);
}

.vibe-clip-selection {
  left: max(8px, var(--clip-start));
  right: max(8px, calc(100% - var(--clip-end)));
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(196, 109, 255, 0.7), rgba(98, 211, 255, 0.42));
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.18), 0 8px 22px rgba(119, 61, 200, 0.18);
}

.vibe-clip-controls input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 58px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: none;
  touch-action: pan-x;
}

.vibe-clip-controls input[type="range"]::-webkit-slider-runnable-track {
  height: 58px;
  background: transparent;
}

.vibe-clip-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 44px;
  margin-top: 7px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: linear-gradient(180deg, #d6a7ff, #8f47ea);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.42), 0 0 0 6px rgba(187, 108, 255, 0.12);
  pointer-events: auto;
}

.vibe-clip-controls input[type="range"]::-moz-range-track {
  height: 58px;
  background: transparent;
}

.vibe-clip-controls input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 40px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: linear-gradient(180deg, #d6a7ff, #8f47ea);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.42);
  pointer-events: auto;
}

.vibe-clip-controls input.is-start {
  z-index: 2;
}

.vibe-clip-controls input.is-end {
  z-index: 3;
}

.vibe-clip-actions {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  gap: 8px;
}

.vibe-clip-actions button {
  min-height: 36px;
  border: 1px solid rgba(218, 168, 255, 0.14);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(242, 232, 250, 0.9);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
}

.vibe-clip-actions .is-primary {
  border-color: rgba(224, 174, 255, 0.36);
  background: linear-gradient(180deg, rgba(185, 95, 255, 0.62), rgba(112, 50, 195, 0.68));
  color: #fff;
}

.vibe-photo-edit-tools {
  display: grid;
  gap: 8px;
}

.vibe-photo-ratio-row {
  display: flex;
  gap: 6px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.vibe-photo-ratio-row::-webkit-scrollbar {
  display: none;
}

.vibe-photo-ratio-row button {
  flex: 0 0 auto;
  min-width: 54px;
  min-height: 34px;
  border: 1px solid rgba(218, 168, 255, 0.12);
  border-radius: 12px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(242, 232, 250, 0.86);
  font: inherit;
  font-size: 0.66rem;
  font-weight: 850;
  white-space: nowrap;
}

.vibe-photo-ratio-row button.is-active {
  border-color: rgba(224, 174, 255, 0.42);
  background: rgba(185, 95, 255, 0.2);
  color: #fff;
}

.vibe-photo-tool-actions,
.vibe-photo-publisher-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.vibe-photo-zoom-control {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 44px;
  gap: 9px;
  align-items: center;
  color: rgba(225, 210, 244, 0.78);
  font-size: 0.72rem;
  font-weight: 850;
}

.vibe-photo-zoom-control output {
  justify-self: end;
  color: #fff;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}

.vibe-photo-zoom-slider {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.vibe-photo-edit-tools input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 38px;
  margin: 0;
  border-radius: 999px;
  background: transparent;
  accent-color: #bb6cff;
  cursor: pointer;
  touch-action: pan-x;
}

.vibe-photo-edit-tools input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(196, 109, 255, 0.9), rgba(118, 70, 255, 0.55));
}

.vibe-photo-edit-tools input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -10px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #bb6cff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.38), 0 0 0 6px rgba(187, 108, 255, 0.16);
}

.vibe-photo-edit-tools input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(196, 109, 255, 0.9), rgba(118, 70, 255, 0.55));
}

.vibe-photo-edit-tools input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #bb6cff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.38);
}

.vibe-photo-edit-tools button,
.vibe-photo-filter-row button,
.vibe-photo-publisher-actions button {
  min-height: 32px;
  border: 1px solid rgba(218, 168, 255, 0.14);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(242, 232, 250, 0.9);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
}

.vibe-photo-edit-tools .vibe-photo-zoom-step {
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
  font-size: 1rem;
  line-height: 1;
}

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

.vibe-photo-publisher-actions .is-primary {
  grid-column: 1 / -1;
  min-height: 42px;
  border-color: rgba(224, 174, 255, 0.38);
  background: linear-gradient(180deg, rgba(185, 95, 255, 0.72), rgba(112, 50, 195, 0.76));
  color: #fff;
}

.vibe-photo-publisher-actions .is-primary span {
  display: inline-grid;
  place-items: center;
  margin-right: 6px;
}

.vibe-photo-filter-row {
  display: flex;
  gap: 7px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.vibe-photo-filter-row::-webkit-scrollbar {
  display: none;
}

.vibe-photo-filter-row button {
  flex: 0 0 auto;
  min-width: 68px;
  display: grid;
  justify-items: center;
  gap: 5px;
  height: auto;
  min-height: 74px;
  padding: 6px;
  border-radius: 14px;
}

.vibe-photo-filter-row button.is-active {
  border-color: rgba(224, 174, 255, 0.36);
  background: linear-gradient(180deg, rgba(185, 95, 255, 0.42), rgba(112, 50, 195, 0.4));
  color: #fff;
}

.vibe-photo-filter-thumb {
  width: 58px;
  height: 42px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.vibe-photo-filter-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--filter-preview, none);
}

.vibe-mention-panel > strong {
  color: #fff;
  font-size: 0.82rem;
}

.vibe-mention-panel > small {
  color: rgba(225, 210, 244, 0.68);
  font-size: 0.7rem;
}

.vibe-mention-panel > span {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vibe-mention-suggestions {
  display: grid;
  gap: 6px;
}

.vibe-mention-suggestions button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid rgba(218, 168, 255, 0.1);
  border-radius: 13px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  font: inherit;
  text-align: left;
}

.vibe-mention-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(185, 95, 255, 0.22);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
}

.vibe-mention-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vibe-mention-suggestions button > span:nth-child(2) {
  display: grid;
  min-width: 0;
}

.vibe-mention-suggestions strong,
.vibe-mention-suggestions small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vibe-mention-suggestions small {
  color: rgba(225, 210, 244, 0.68);
  font-size: 0.66rem;
}

.vibe-mention-suggestions em {
  min-width: 38px;
  border-radius: 999px;
  padding: 4px 7px;
  background: rgba(185, 95, 255, 0.18);
  color: #e6c8ff;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.vibe-mention-panel em {
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(185, 95, 255, 0.2);
  color: #f0dbff;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 850;
}

.vibe-moment-tools {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vibe-moment-tools button {
  min-width: 0;
  padding: 0 7px;
}

.vibe-emoji-row {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.vibe-emoji-row button {
  min-width: 0;
  padding: 0;
  font-size: 1rem;
}

.vibe-composer-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  grid-column: 1 / -1;
  gap: 8px;
  align-items: center;
  justify-content: stretch;
  padding-top: 12px;
  border-top: 1px solid rgba(218, 168, 255, 0.1);
}

.vibe-compose-kind,
.vibe-post-submit,
.vibe-room-card button,
.vibe-room-message-row button {
  border: 0;
  border-radius: 0;
  min-height: 38px;
  padding: 0 10px;
  background: transparent;
  color: rgba(242, 232, 250, 0.9);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.vibe-compose-kind.is-active,
.vibe-post-submit,
.vibe-room-card button {
  border-color: transparent;
  background: transparent;
  color: #fff;
}

.vibe-compose-kind.is-active {
  color: #fff;
  text-shadow: 0 0 14px rgba(178, 107, 255, 0.46);
  background: rgba(178, 107, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(216, 137, 255, 0.24);
}

.vibe-compose-kind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.vibe-compose-kind::before {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  color: currentColor;
  font-size: 1rem;
  line-height: 1;
}

.vibe-compose-kind[data-vibe-kind="moment"]::before {
  content: "●●";
  letter-spacing: -0.18em;
  font-size: 0.78rem;
}

.vibe-compose-kind[data-vibe-kind="music"]::before {
  content: "♪";
  font-size: 1.22rem;
}

.vibe-compose-kind[data-vibe-kind="photo"]::before {
  content: "▣";
  font-size: 1.04rem;
}

.vibe-post-submit {
  margin-left: auto;
  min-width: 82px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(185, 95, 255, 0.78), rgba(112, 50, 195, 0.84));
  box-shadow: 0 12px 24px rgba(112, 50, 195, 0.22);
}

.vibe-rooms-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.vibe-rooms-head h3 {
  margin: 0;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
  line-height: 1.1;
}

.vibe-rooms-head button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: rgba(225, 210, 244, 0.82);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.vibe-rooms-head button::after {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.72;
}

.vibe-feed {
  display: grid;
  gap: 12px;
}

.vibe-rooms {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(152px, 176px);
  gap: 12px;
  overflow-x: auto;
  padding: 0 2px 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.vibe-rooms::-webkit-scrollbar {
  height: 0;
}

.vibe-room-card {
  --vibe-room-image: none;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: end;
  gap: 8px;
  min-height: 222px;
  padding: 14px;
  border-radius: 18px;
  overflow: hidden;
  scroll-snap-align: start;
  background:
    linear-gradient(180deg, rgba(5, 4, 10, 0.08), rgba(8, 5, 14, 0.72) 46%, rgba(8, 5, 14, 0.96)),
    var(--vibe-room-image),
    linear-gradient(135deg, rgba(99, 36, 161, 0.92), rgba(8, 5, 14, 0.98));
  background-size: cover;
  background-position: center;
}

.vibe-room-card > span:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.vibe-room-card strong,
.vibe-post-head strong,
.vibe-post-media strong {
  min-width: 0;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vibe-room-live {
  position: absolute;
  top: 44px;
  right: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(178, 107, 255, 0.9), rgba(98, 42, 170, 0.9));
  color: #fff;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.vibe-room-listeners {
  position: relative;
  z-index: 2;
  color: rgba(234, 224, 246, 0.82);
  font-size: 0.76rem;
}

.vibe-room-listeners::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 50%;
  background: #18e37c;
  box-shadow: 0 0 12px rgba(24, 227, 124, 0.58);
}

.vibe-room-card > span:first-of-type,
.vibe-room-card .vibe-room-avatars,
.vibe-room-card button {
  position: relative;
  z-index: 2;
}

.vibe-room-card button {
  width: 100%;
  min-height: 42px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(185, 95, 255, 0.92), rgba(112, 50, 195, 0.95));
}

.vibe-room-card span span,
.vibe-post-head small,
.vibe-post-media span span {
  color: rgba(225, 210, 244, 0.72);
  font-size: 0.74rem;
  line-height: 1.28;
}

.vibe-room-avatars {
  grid-column: 1 / -1;
  min-height: 34px;
  padding-left: 4px;
}

.vibe-room-avatars i,
.vibe-room-person {
  width: 30px;
  height: 30px;
  margin-left: -7px;
  font-size: 0.58rem;
  font-style: normal;
}

.vibe-room-avatars i:first-child,
.vibe-room-person:first-child {
  margin-left: 0;
}

.vibe-room-card.is-empty {
  grid-template-columns: 1fr;
}

.vibe-room-card.is-empty span {
  color: rgba(225, 210, 244, 0.72);
  font-size: 0.78rem;
}

.vibe-room-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
}

.vibe-room-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: start;
}

.vibe-room-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.vibe-room-people {
  min-height: 38px;
}

.vibe-room-messages {
  display: grid;
  gap: 8px;
  max-height: 168px;
  overflow: auto;
}

.vibe-room-system-message,
.vibe-room-chat-message {
  margin: 0;
  padding: 10px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(234, 224, 246, 0.82);
  font-size: 0.78rem;
  line-height: 1.36;
}

.vibe-room-chat-message {
  display: grid;
  gap: 2px;
  background: rgba(178, 107, 255, 0.12);
}

.vibe-room-message-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 8px;
  align-items: center;
}

.vibe-room-message-row input {
  min-width: 0;
  min-height: 40px;
  border: 1px solid rgba(218, 168, 255, 0.1);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  outline: 0;
}

.vibe-room-message-row button {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
}

.vibe-room-message-row svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.vibe-feed-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 44px;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
  border-bottom: 1px solid rgba(218, 168, 255, 0.12);
}

.vibe-feed-tabs button {
  position: relative;
  min-width: 0;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: rgba(225, 210, 244, 0.72);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 850;
  cursor: pointer;
}

.vibe-feed-tabs button.is-active {
  color: #d889ff;
}

.vibe-feed-tabs button.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, #b142ff, #efb8ff);
  box-shadow: 0 0 20px rgba(177, 66, 255, 0.5);
}

.vibe-feed-tabs .vibe-feed-filter {
  justify-self: end;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(218, 168, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  display: grid;
  place-items: center;
}

.vibe-feed-filter svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.vibe-post-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 136px 32px;
  gap: 8px 14px;
  align-items: start;
  padding: 20px 18px 16px;
  border-radius: 22px;
}

.phone-screen[data-app-view="vibe"] .vibe-post-card {
  border-color: rgba(218, 168, 255, 0.12);
  background:
    radial-gradient(circle at 88% 8%, rgba(178, 107, 255, 0.13), transparent 32%),
    linear-gradient(180deg, rgba(17, 13, 27, 0.88), rgba(9, 7, 16, 0.96));
}

.vibe-post-card.is-empty {
  grid-template-columns: 1fr;
  color: rgba(225, 210, 244, 0.72);
}

.vibe-post-card.is-empty p {
  margin: 0;
}

.vibe-post-head {
  display: contents;
}

.vibe-post-head .vibe-post-avatar {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.vibe-post-head > span:last-child {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  display: grid;
  gap: 6px;
  align-items: start;
}

.vibe-post-meta-line {
  min-width: 0;
  display: grid;
  gap: 3px;
  color: rgba(225, 210, 244, 0.74);
  font-size: 0.82rem;
  line-height: 1.25;
}

.vibe-post-meta-line small,
.vibe-post-listening,
.vibe-post-track-artist {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vibe-post-listening strong {
  color: #d889ff;
  font: inherit;
  font-weight: 900;
}

.vibe-post-track-artist {
  color: rgba(245, 238, 252, 0.86);
}

.vibe-post-menu {
  grid-column: 4;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  z-index: 2;
  border: 0;
  width: 34px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: transparent;
  color: rgba(225, 210, 244, 0.72);
  font: 900 1rem/1 "Space Grotesk", system-ui, sans-serif;
  letter-spacing: 0.08em;
  cursor: default;
}

.vibe-post-action-menu {
  grid-column: 4;
  grid-row: 1 / span 2;
  justify-self: end;
  align-self: start;
  z-index: 5;
  min-width: 108px;
  margin-top: 30px;
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(218, 168, 255, 0.14);
  border-radius: 14px;
  background: rgba(13, 9, 20, 0.98);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
}

.vibe-post-action-menu[hidden] {
  display: none !important;
}

.vibe-post-action-menu button {
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  padding: 0 10px;
  background: transparent;
  color: rgba(245, 238, 252, 0.9);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.vibe-post-action-menu button:hover {
  background: rgba(255, 255, 255, 0.07);
}

.vibe-post-action-menu button.is-danger {
  color: #ff9aac;
}

.vibe-post-card > p {
  grid-column: 2 / 3;
  grid-row: 2;
  margin: 12px 0 0;
  color: rgba(245, 238, 252, 0.9);
  font-size: 0.88rem;
  line-height: 1.42;
}

.vibe-post-edit-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(218, 168, 255, 0.11);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.vibe-post-edit-panel[hidden] {
  display: none !important;
}

.vibe-post-edit-panel textarea {
  width: 100%;
  min-height: 86px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: rgba(245, 238, 252, 0.94);
  font: inherit;
  font-size: 0.86rem;
  line-height: 1.38;
}

.vibe-post-edit-panel > div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.vibe-post-edit-panel button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 13px;
  color: #fff;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 850;
  cursor: pointer;
}

.vibe-post-edit-panel button:first-child {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(242, 232, 250, 0.86);
}

.vibe-post-edit-panel button:last-child {
  background: linear-gradient(180deg, rgba(185, 95, 255, 0.72), rgba(112, 50, 195, 0.76));
}

.vibe-post-text.vibe-style-spark,
.vibe-post-text.vibe-style-neon,
.vibe-post-text.vibe-style-soft {
  padding: 12px;
  border-radius: 16px;
}

.vibe-post-text.vibe-style-spark {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.18), transparent 18%),
    linear-gradient(135deg, rgba(216, 137, 255, 0.18), rgba(255, 202, 104, 0.12));
}

.vibe-post-text.vibe-style-neon {
  color: #f8e8ff;
  background: rgba(178, 107, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(216, 137, 255, 0.18), 0 0 18px rgba(178, 107, 255, 0.12);
}

.vibe-post-text.vibe-style-soft {
  background: rgba(255, 255, 255, 0.07);
}

.vibe-post-photo {
  grid-column: 3;
  grid-row: 1 / span 2;
  width: 100%;
  min-width: 108px;
  max-width: 116px;
  max-height: 260px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(218, 168, 255, 0.12);
}

.vibe-post-media {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  justify-items: end;
  width: 116px;
  height: 116px;
  padding: 0;
  border: 1px solid rgba(218, 168, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}

.vibe-post-media img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

.vibe-post-media > span {
  display: none;
}

.vibe-post-media::after {
  content: "";
  grid-area: 1 / 1;
  justify-self: end;
  align-self: end;
  width: 46px;
  height: 46px;
  margin: 10px;
  border-radius: 50%;
  border: 2px solid rgba(216, 137, 255, 0.75);
  background: rgba(8, 5, 14, 0.58);
}

.vibe-post-media::before {
  content: "";
  grid-area: 1 / 1;
  justify-self: end;
  align-self: end;
  width: 0;
  height: 0;
  margin: 25px 25px 25px 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #fff;
  z-index: 2;
}

.vibe-post-media > span {
  display: none;
}

.vibe-post-actions {
  grid-column: 1 / 3;
  grid-row: 4;
  border-top: 1px solid rgba(218, 168, 255, 0.08);
  margin-top: 10px;
  padding-top: 14px;
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.vibe-liked-by {
  grid-column: 3 / -1;
  grid-row: 4;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: rgba(225, 210, 244, 0.72);
  font-size: 0.72rem;
  line-height: 1.28;
}

.vibe-liked-avatars {
  display: flex;
  align-items: center;
  padding-left: 8px;
}

.vibe-liked-avatars i {
  width: 24px;
  height: 24px;
  margin-left: -8px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(135deg, #a65cff, #181022);
  color: #fff;
  box-shadow: 0 0 0 2px rgba(9, 7, 16, 0.96);
  font: 900 0.58rem/1 "Space Grotesk", system-ui, sans-serif;
}

.vibe-liked-avatars img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.vibe-liked-by > span:last-child {
  min-width: 0;
}

.vibe-post-actions button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  padding: 0 10px;
  background: transparent;
  color: rgba(225, 210, 244, 0.78);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.vibe-post-actions button::before {
  color: #b989ff;
  font-size: 1.28rem;
  line-height: 1;
}

.vibe-post-actions button.vibe-action-button::before {
  content: none;
}

.vibe-action-button .vibe-icon {
  display: inline-grid;
  place-items: center;
  color: #b989ff;
}

.vibe-action-button .vibe-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.vibe-post-actions button:nth-child(1)::before {
  content: "♥";
}

.vibe-post-actions button:nth-child(2)::before {
  content: "◯";
}

.vibe-post-actions button:nth-child(3)::before {
  content: "↗";
}

.vibe-post-actions button.is-liked {
  color: #f4d9ff;
  background: rgba(178, 107, 255, 0.2);
}

.vibe-post-actions button.vibe-action-button::before {
  content: none;
}

.vibe-comments-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(218, 168, 255, 0.08);
}

.vibe-comments-panel[hidden] {
  display: none !important;
}

.vibe-comments-list {
  display: grid;
  gap: 10px;
}

.vibe-comments-empty {
  margin: 0;
  color: rgba(225, 210, 244, 0.68);
  font-size: 0.76rem;
}

.vibe-comment-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  margin-left: calc(var(--comment-depth, 0) * 28px);
}

.vibe-comment-avatar {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.24), transparent 26%),
    linear-gradient(180deg, rgba(69, 42, 100, 0.96), rgba(18, 12, 30, 0.98));
  color: #fff;
  box-shadow: 0 0 0 2px rgba(142, 57, 255, 0.58);
  font: 900 0.62rem/1 "Space Grotesk", system-ui, sans-serif;
}

.vibe-comment-avatar img,
.vibe-comment-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vibe-comment-item > div {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 9px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.052);
}

.vibe-comment-item > div > span {
  min-width: 0;
  display: flex;
  gap: 8px;
  align-items: center;
}

.vibe-comment-item strong {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vibe-comment-item small {
  flex: 0 0 auto;
  color: rgba(225, 210, 244, 0.62);
  font-size: 0.66rem;
  line-height: 1;
}

.vibe-comment-item p {
  margin: 0;
  color: rgba(245, 238, 252, 0.88);
  font-size: 0.78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.vibe-comment-photo {
  width: min(100%, 170px);
  height: auto;
  max-height: 170px;
  border-radius: 12px;
  border: 1px solid rgba(218, 168, 255, 0.12);
}

.vibe-comment-reply {
  justify-self: start;
  border: 0;
  padding: 0;
  background: transparent;
  color: #d889ff;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
}

.vibe-comment-form {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(218, 168, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.vibe-comment-form textarea {
  width: 100%;
  min-height: 54px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: rgba(245, 238, 252, 0.94);
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.35;
}

.vibe-comment-form textarea::placeholder {
  color: rgba(219, 202, 238, 0.58);
}

.vibe-comment-reply-context {
  width: fit-content;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(178, 107, 255, 0.14);
  color: rgba(242, 232, 250, 0.86);
  font-size: 0.68rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vibe-comment-preview {
  display: grid;
  grid-template-columns: 64px auto;
  gap: 8px;
  align-items: center;
}

.vibe-comment-preview[hidden] {
  display: none !important;
}

.vibe-comment-preview img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(218, 168, 255, 0.14);
}

.vibe-comment-preview button,
.vibe-comment-attach,
.vibe-comment-submit {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  color: rgba(242, 232, 250, 0.9);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.vibe-comment-preview button,
.vibe-comment-attach {
  background: rgba(255, 255, 255, 0.07);
}

.vibe-comment-form > div:last-child {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.vibe-comment-submit {
  background: linear-gradient(180deg, rgba(185, 95, 255, 0.72), rgba(112, 50, 195, 0.76));
  color: #fff;
}

.vibe-photo-modal {
  position: fixed;
  inset: 0;
  z-index: 16;
  display: grid;
  place-items: end center;
  padding: 20px;
}

.vibe-photo-modal[hidden] {
  display: none !important;
}

.vibe-file-input {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-100vw, 100vh);
}

.vibe-photo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 9, 0.66);
  backdrop-filter: blur(8px);
}

.vibe-photo-card {
  position: relative;
  width: min(100%, 420px);
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(218, 168, 255, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 0%, rgba(216, 137, 255, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(25, 17, 39, 0.98), rgba(13, 10, 22, 0.98));
  color: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.vibe-photo-card h2,
.vibe-photo-card p {
  margin: 0;
}

.vibe-photo-card h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.18rem;
  line-height: 1.1;
}

.vibe-photo-card p {
  color: rgba(225, 210, 244, 0.78);
  font-size: 0.86rem;
  line-height: 1.4;
}

.vibe-photo-steps {
  display: grid;
  gap: 8px;
  margin: 2px 0;
  padding: 0;
  list-style: none;
}

.vibe-photo-steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(218, 168, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.vibe-photo-steps span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(218, 168, 255, 0.16);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
}

.vibe-photo-steps strong {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 850;
}

.vibe-photo-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 1.2rem;
  cursor: pointer;
}

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

.vibe-photo-actions button {
  min-height: 42px;
  border: 1px solid rgba(218, 168, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.similar-artist-card {
  --similar-accent: #8f65d8;
  position: relative;
  display: grid;
  align-content: end;
  gap: 7px;
  min-height: 214px;
  padding: 14px;
  border: 1px solid rgba(218, 168, 255, 0.13);
  border-radius: 24px;
  overflow: hidden;
  scroll-snap-align: start;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--similar-accent) 38%, transparent), transparent 32%),
    linear-gradient(180deg, rgba(24, 16, 36, 0.96), rgba(10, 7, 17, 0.98));
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.similar-artist-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.24);
}

.similar-artist-card .artist-affinity-avatars {
  position: absolute;
  top: 12px;
  right: 12px;
}

.similar-artist-image,
.similar-artist-shade {
  position: absolute;
  inset: 0;
}

.similar-artist-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.98) contrast(1.02) brightness(0.74);
}

.similar-artist-shade {
  background:
    linear-gradient(180deg, rgba(8, 7, 12, 0.08), rgba(8, 7, 12, 0.44) 46%, rgba(8, 7, 12, 0.94)),
    radial-gradient(circle at top right, color-mix(in srgb, var(--similar-accent) 36%, transparent), transparent 32%);
}

.similar-artist-kicker,
.similar-artist-title,
.similar-artist-meta {
  position: relative;
  z-index: 1;
}

.similar-artist-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.similar-artist-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

.similar-artist-meta {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.68rem;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.suggestion-item {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.suggestion-item:hover,
.suggestion-item:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.suggestion-title {
  font-size: 0.88rem;
}

.suggestion-meta {
  color: var(--muted);
  font-size: 0.72rem;
}

.status,
.runtime-hint {
  margin: 0 8px;
  font-size: 0.76rem;
  color: var(--muted2);
  display: none !important;
}

.status[data-state="error"] {
  color: #ff9da8;
}

.screen-scroll {
  position: absolute;
  inset: calc(var(--header-offset) + var(--active-search-offset, 0px)) 0 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 22px calc(var(--bottom-stack-height) + var(--safe-bottom) + var(--space-lg));
  min-height: 0;
  transition: inset 0.28s ease;
}

.screen-scroll > * {
  transition:
    opacity 0.24s ease,
    transform 0.28s cubic-bezier(.2,.8,.2,1),
    filter 0.28s ease;
  will-change: opacity, transform, filter;
}

.phone-screen[data-app-view="home"] .screen-scroll::before {
  content: "";
  position: fixed;
  left: 50%;
  top: 112px;
  width: min(480px, 112vw);
  height: 280px;
  pointer-events: none;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.13), transparent 58%),
    repeating-radial-gradient(ellipse at 50% 52%, transparent 0 17px, rgba(216, 137, 255, 0.09) 18px 20px, transparent 21px 34px);
  filter: blur(0.2px);
  opacity: 0.72;
  z-index: 0;
  animation: homeSoundWaveDrift 8s ease-in-out infinite;
}

.phone-screen[data-view-transition="out"] .screen-scroll > * {
  opacity: 0.74;
  transform: translateY(10px) scale(0.992);
  filter: blur(2px);
}

.phone-screen[data-view-transition="in"] .screen-scroll > * {
  animation: appViewContentIn 0.32s cubic-bezier(.2,.8,.2,1);
}

@keyframes appViewContentIn {
  0% {
    opacity: 0.76;
    transform: translateY(12px) scale(0.992);
    filter: blur(3px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.phone-screen[data-header-state="compact"] .app-header {
  grid-template-columns: auto minmax(0, 96px) minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  padding: calc(22px + var(--safe-top)) 16px 8px;
  background:
    linear-gradient(180deg, rgba(11, 8, 18, 0.998), rgba(11, 8, 18, 0.97) 76%, rgba(11, 8, 18, 0));
}

.phone-screen[data-header-state="compact"] .brand-row {
  width: auto;
  min-height: 48px;
  margin-bottom: 0;
  gap: 10px;
  align-self: start;
}

.phone-screen[data-header-state="compact"] .brand-logo {
  width: 42px;
  height: 42px;
}

.phone-screen[data-header-state="compact"] .brand-copy {
  display: none;
  max-width: 0;
  pointer-events: none;
}

.phone-screen[data-header-state="compact"] .brand-name {
  font-size: 1.18rem;
}

.phone-screen[data-header-state="compact"] .brand-tag {
  opacity: 0;
  transform: translateY(-4px);
}

.phone-screen[data-header-state="compact"] .header-visualizer {
  left: auto;
  right: 14px;
  opacity: 0.88;
  transform: none;
}

.phone-screen[data-header-state="compact"] .search-shell {
  min-width: 0;
  gap: 8px;
  align-self: start;
}

.phone-screen:not([data-app-view="search"]) .search-shell {
  display: none;
}

.phone-screen[data-app-view="search"] {
  --active-search-offset: var(--search-section-offset);
}

.phone-screen[data-app-view="vibe"] {
  --header-offset: calc(92px + var(--safe-top));
  --bottom-stack-height: var(--bottom-nav-height);
  background:
    radial-gradient(circle at 78% 8%, rgba(216, 137, 255, 0.28), transparent 22%),
    radial-gradient(circle at 18% 42%, rgba(112, 68, 190, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(8, 4, 14, 0.99), rgba(13, 7, 22, 0.99) 44%, rgba(5, 4, 10, 0.99));
}

.phone-screen[data-app-view="vibe"] .mini-player-shell {
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
}

.phone-screen[data-app-view="search"] .app-header {
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 10px;
  padding-right: 10px;
}

.phone-screen[data-app-view="search"] .brand-row {
  grid-column: 1;
  width: 42px;
  min-height: 42px;
  overflow: visible;
}

.phone-screen[data-app-view="search"] .brand-logo {
  width: 42px;
  height: 42px;
}

.phone-screen[data-app-view="search"] .search-shell {
  grid-column: 2 / -1;
  justify-self: stretch;
  width: 100%;
  z-index: 6;
}

.phone-screen[data-app-view="search"][data-search-ai-mode="on"] {
  --active-search-offset: calc(var(--search-section-offset) + 224px);
}

.phone-screen[data-app-view="home"] .app-header,
.phone-screen[data-app-view="library"] .app-header,
.phone-screen[data-app-view="liked"] .app-header {
  min-height: var(--header-offset-compact);
  padding: calc(22px + var(--safe-top)) 16px 8px;
  background:
    linear-gradient(180deg, rgba(11, 8, 18, 0.998), rgba(11, 8, 18, 0.97) 76%, rgba(11, 8, 18, 0));
}

.phone-screen[data-app-view="home"] .app-header {
  grid-template-columns: auto minmax(0, 96px) minmax(0, 1fr);
}

.phone-screen[data-app-view="home"] .brand-row,
.phone-screen[data-app-view="library"] .brand-row,
.phone-screen[data-app-view="liked"] .brand-row {
  width: auto;
  min-height: 48px;
  margin-bottom: 0;
  gap: 10px;
  align-self: start;
}

.phone-screen[data-app-view="home"] .brand-logo,
.phone-screen[data-app-view="library"] .brand-logo,
.phone-screen[data-app-view="liked"] .brand-logo {
  width: 42px;
  height: 42px;
}

.phone-screen[data-app-view="home"] .brand-copy,
.phone-screen[data-app-view="library"] .brand-copy,
.phone-screen[data-app-view="liked"] .brand-copy {
  display: none;
}

.phone-screen[data-app-view="home"] .brand-row {
  grid-column: 1;
  justify-self: start;
  justify-content: flex-start;
  width: auto;
  min-height: 48px;
  padding-right: 0;
}

.phone-screen[data-app-view="home"] .brand-logo,
.phone-screen[data-app-view="home"] .brand-copy {
  position: relative;
  z-index: 3;
}

.phone-screen[data-app-view="home"] .brand-name {
  font-family: "Cormorant Garamond", "Playfair Display", serif;
}

.phone-screen[data-app-view="home"] .brand-tag {
  display: none;
}

.phone-screen[data-app-view="library"] .header-visualizer,
.phone-screen[data-app-view="liked"] .header-visualizer {
  left: auto;
  right: 14px;
  opacity: 0.88;
  transform: none;
}

.phone-screen[data-app-view="home"] .header-visualizer {
  top: calc(18px + var(--safe-top));
  left: auto;
  right: 174px;
  opacity: 0.3;
  transform: none;
}

.phone-screen[data-app-view="home"] .header-waves span {
  --wave-drive: 0.7;
  animation: headerHomeWaveFloat 2.8s ease-in-out infinite;
}

.phone-screen[data-app-view="home"] .header-waves span:nth-child(2) {
  animation-delay: -0.9s;
}

.phone-screen[data-app-view="home"] .header-waves span:nth-child(3) {
  animation-delay: -1.7s;
}

.social-vibe-trigger {
  position: absolute;
  top: calc(17px + var(--safe-top));
  right: 122px;
  z-index: 4;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(196, 122, 255, 0.44);
  border-radius: 15px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 72% 18%, rgba(216, 137, 255, 0.36), transparent 26%),
    linear-gradient(180deg, rgba(25, 15, 40, 0.92), rgba(10, 7, 18, 0.88));
  color: #d79aff;
  box-shadow:
    0 12px 28px rgba(81, 24, 132, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-medium) ease, box-shadow var(--motion-medium) ease;
}

.social-vibe-trigger svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.social-vibe-trigger:hover,
.phone-screen[data-app-view="vibe"] .social-vibe-trigger {
  transform: translateY(-1px);
  border-color: rgba(226, 178, 255, 0.78);
  box-shadow:
    0 0 0 1px rgba(178, 107, 255, 0.24),
    0 16px 34px rgba(116, 47, 195, 0.36);
}

.social-vibe-indicator {
  position: absolute;
  top: -6px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d889ff, #7f35ff);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 0 3px rgba(10, 7, 18, 0.94), 0 8px 18px rgba(178, 107, 255, 0.42);
}

.phone-screen[data-app-view="vibe"] .brand-row,
.phone-screen[data-app-view="vibe"] .profile-edit-trigger,
.phone-screen[data-app-view="vibe"] .header-visualizer,
.phone-screen[data-app-view="vibe"] .search-shell {
  display: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}

.phone-screen[data-app-view="vibe"] .brand-row {
  display: block;
  position: absolute;
  left: 18px;
  top: calc(60px + var(--safe-top));
  width: auto;
  height: auto;
  min-height: 0;
  opacity: 1;
  pointer-events: none;
  transform: none;
}

.phone-screen[data-app-view="vibe"] .brand-row > * {
  display: none;
}

.phone-screen[data-app-view="vibe"] .brand-row::after {
  content: "Conecte-se atraves da musica";
  display: block;
  color: rgba(225, 210, 244, 0.82);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.25;
}

.phone-screen[data-app-view="vibe"] .app-header {
  min-height: calc(92px + var(--safe-top));
  display: block;
  background:
    radial-gradient(circle at 50% 0%, rgba(178, 107, 255, 0.24), transparent 38%),
    linear-gradient(180deg, rgba(7, 4, 13, 0.99), rgba(7, 4, 13, 0.9) 76%, rgba(7, 4, 13, 0));
}

.phone-screen[data-app-view="vibe"] .app-header::after {
  content: "Vibe social";
  position: absolute;
  left: 18px;
  top: calc(26px + var(--safe-top));
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.72rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.phone-screen[data-app-view="vibe"] .app-header {
  min-height: calc(116px + var(--safe-top));
}

.phone-screen[data-app-view="vibe"] {
  --header-offset: calc(116px + var(--safe-top));
}

.phone-screen[data-app-view="vibe"] .app-header .social-vibe-trigger::after {
  content: "";
}

.phone-screen[data-app-view="vibe"] .app-header::before {
  background:
    radial-gradient(circle at 70% 24%, rgba(216, 137, 255, 0.36), transparent 22%),
    radial-gradient(circle at 56% 42%, rgba(255, 255, 255, 0.16), transparent 20%);
}

.phone-screen[data-app-view="vibe"] .app-header .social-vibe-trigger {
  top: calc(28px + var(--safe-top));
}

.phone-screen[data-app-view="vibe"] .app-header .social-vibe-trigger + * {
  pointer-events: none;
}

.phone-screen[data-app-view="vibe"] .app-header::after {
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
}

.phone-screen[data-app-view="vibe"] .app-header {
  box-shadow: inset 0 -1px 0 rgba(218, 168, 255, 0.05);
}

.phone-screen[data-app-view="vibe"] .app-header .social-vibe-indicator {
  top: -8px;
  right: -8px;
}

.phone-screen[data-app-view="vibe"] .app-header::before {
  right: -28px;
  opacity: 0.34;
}

.phone-screen[data-app-view="vibe"] .social-vibe-trigger {
  top: calc(20px + var(--safe-top));
  right: 18px;
  z-index: 7;
  width: 48px;
  height: 48px;
  border-radius: 17px;
}

.phone-screen[data-content-mode="podcast"][data-header-state="compact"] .app-header,
.phone-screen[data-content-mode="podcast"][data-app-view="home"] .app-header,
.phone-screen[data-content-mode="podcast"][data-app-view="library"] .app-header,
.phone-screen[data-content-mode="podcast"][data-app-view="liked"] .app-header {
  background:
    linear-gradient(180deg, rgba(249, 251, 253, 0.98), rgba(237, 242, 247, 0.96) 82%, rgba(237, 242, 247, 0));
  box-shadow: 0 12px 30px rgba(76, 91, 108, 0.06);
}

.phone-screen[data-content-mode="podcast"] .brand-row,
.phone-screen[data-content-mode="podcast"] .brand-name {
  color: #172128;
  text-shadow: none;
}

.phone-screen[data-content-mode="podcast"] .brand-row {
  gap: 0;
}

.phone-screen[data-content-mode="podcast"] .brand-logo {
  display: none;
}

.phone-screen[data-content-mode="podcast"] .brand-copy {
  gap: 2px;
}

.phone-screen[data-content-mode="podcast"] .brand-name {
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-size: 2.28rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.92;
  color: #23313b;
}

.phone-screen[data-content-mode="podcast"] .brand-tag {
  color: rgba(68, 82, 94, 0.72);
  letter-spacing: 0.12em;
}

.phone-screen[data-content-mode="podcast"][data-header-state="compact"] .search-form {
  border-color: rgba(86, 96, 112, 0.16);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 26px rgba(95, 106, 122, 0.12);
}

.phone-screen[data-content-mode="podcast"] .section-action,
.phone-screen[data-content-mode="podcast"] .album-queue-action,
.phone-screen[data-content-mode="podcast"] .player-modal-chip,
.phone-screen[data-content-mode="podcast"] .playlist-save-item,
.phone-screen[data-content-mode="podcast"] .circle-action {
  border-color: rgba(55, 74, 88, 0.18);
  background: rgba(255, 255, 255, 0.78);
  color: #172128;
  box-shadow: 0 8px 20px rgba(61, 78, 94, 0.1);
}

.phone-screen[data-content-mode="podcast"] .section-action:hover,
.phone-screen[data-content-mode="podcast"] .album-queue-action:hover,
.phone-screen[data-content-mode="podcast"] .circle-action:hover {
  background: rgba(239, 245, 248, 0.96);
  border-color: rgba(55, 74, 88, 0.28);
}

.phone-screen[data-content-mode="podcast"] .bottom-nav {
  background: linear-gradient(180deg, rgba(236, 241, 246, 0), rgba(236, 241, 246, 0.96) 20%, rgba(236, 241, 246, 0.995));
  color: #5d6877;
}

.phone-screen[data-content-mode="podcast"] .bottom-nav::before {
  background: rgba(56, 78, 88, 0.12);
}

.phone-screen[data-content-mode="podcast"] .bottom-nav-item.active {
  color: #172128;
}

.screen-scroll::-webkit-scrollbar {
  width: 0;
}

.content-section {
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-xl);
  transform-origin: center top;
  transition: opacity var(--motion-medium) var(--motion-ease), transform var(--motion-medium) var(--motion-ease);
  content-visibility: auto;
  contain-intrinsic-size: 1px 520px;
}

.phone-screen[data-view-transition="in"] .content-section:not([hidden]) {
  animation: sectionSoftEnter 260ms var(--motion-ease-soft) both;
}

.phone-screen[data-app-view="home"] .library-section,
.phone-screen[data-app-view="home"] #search-genre-playlists-section,
.phone-screen[data-app-view="home"] #search-latest-section,
.phone-screen[data-app-view="search"] #moment-recommendation-section,
.phone-screen[data-app-view="search"] #people-match-section,
.phone-screen[data-app-view="search"] .curated-section,
.phone-screen[data-app-view="vibe"] #results-panel,
.phone-screen[data-app-view="vibe"] #install-section,
.phone-screen[data-app-view="vibe"] #similar-artists-section,
.phone-screen[data-app-view="vibe"] #search-genre-playlists-section,
.phone-screen[data-app-view="vibe"] #search-latest-section,
.phone-screen[data-app-view="vibe"] #home-podcast-section,
.phone-screen[data-app-view="vibe"] #moment-recommendation-section,
.phone-screen[data-app-view="vibe"] #people-match-section,
.phone-screen[data-app-view="vibe"] .library-section,
.phone-screen[data-app-view="vibe"] .search-ai-library-shelf,
.phone-screen[data-app-view="vibe"] .auto-queue-library-shelf,
.phone-screen[data-app-view="vibe"] #search-ai-chat,
.phone-screen[data-app-view="vibe"] #search-suggestions,
.phone-screen[data-app-view="vibe"] #status,
.phone-screen[data-app-view="vibe"] #runtime-hint,
.phone-screen[data-app-view="vibe"] .curated-section,
.phone-screen[data-app-view="library"] #liked-library-shelf,
.phone-screen[data-app-view="library"] #search-genre-playlists-section,
.phone-screen[data-app-view="library"] #search-latest-section,
.phone-screen[data-app-view="library"] #results-panel,
.phone-screen[data-app-view="library"] #moment-recommendation-section,
 .phone-screen[data-app-view="library"] #people-match-section,
 .phone-screen[data-app-view="library"] .curated-section,
.phone-screen[data-app-view="liked"] #search-genre-playlists-section,
.phone-screen[data-app-view="liked"] #search-latest-section,
.phone-screen[data-app-view="liked"] #people-match-section,
.phone-screen[data-app-view="liked"] #results-panel,
.phone-screen[data-app-view="liked"] #moment-recommendation-section,
.phone-screen[data-app-view="liked"] .curated-section {
  display: none;
}

.phone-screen[data-app-view="liked"] #custom-library-shelf,
.phone-screen[data-app-view="liked"] #podcast-library-shelf,
.phone-screen[data-app-view="liked"] .library-section-head {
  display: none;
}

.phone-screen[data-app-view="liked"] #liked-library-shelf {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.phone-screen[data-app-view="liked"] #liked-playlist.library-media-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.phone-screen[data-app-view="liked"] #liked-playlist .library-media-card {
  width: 100%;
}

.phone-screen[data-app-view="liked"] #liked-playlist .library-media-main {
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(218, 168, 255, 0.06);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(24, 18, 35, 0.9), rgba(14, 10, 22, 0.94));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.phone-screen[data-app-view="liked"] #liked-playlist .library-media-cover-shell {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
}

.phone-screen[data-app-view="liked"] #liked-playlist .library-media-indicator,
.phone-screen[data-app-view="liked"] #liked-playlist .library-media-tags,
.phone-screen[data-app-view="liked"] #liked-playlist .library-media-preview {
  display: none;
}

.phone-screen[data-app-view="liked"] #liked-playlist .library-media-copy {
  gap: 3px;
}

.phone-screen[data-app-view="liked"] #liked-playlist .library-media-title {
  font-size: 0.92rem;
  -webkit-line-clamp: 1;
}

.phone-screen[data-app-view="liked"] #liked-playlist .library-media-meta {
  font-size: 0.72rem;
}

.phone-screen[data-app-view="liked"] #liked-playlist .library-media-remove {
  top: 50%;
  right: 10px;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
}

.phone-screen[data-app-view="search"] .library-section {
  display: none;
}

.phone-screen[data-app-view="search"] #install-section,
.phone-screen[data-app-view="search"] .home-showcase,
.phone-screen[data-app-view="search"] .home-top-tracks-block,
.phone-screen[data-app-view="search"] .album-grid[data-layout="home-showcase"],
.phone-screen[data-app-view="search"] .album-grid[data-layout="home-top-tracks"] {
  display: none;
}

.phone-screen[data-app-view="search"] .mini-progress-row {
  display: none;
}

.phone-screen[data-app-view="library"] .screen-scroll {
  padding-top: 20px;
}

.phone-screen[data-app-view="liked"] .screen-scroll {
  padding-top: 20px;
}

.phone-screen[data-app-view="liked"] .library-section,
.phone-screen[data-app-view="library"] .library-section {
  margin-bottom: 0;
}

.phone-screen[data-app-view="liked"] .library-overview,
.phone-screen[data-app-view="library"] .library-overview {
  gap: 18px;
}

.phone-screen[data-app-view="library"] #custom-playlists .library-media-preview,
.phone-screen[data-app-view="library"] #custom-playlists .library-media-tags {
  display: none;
}

.phone-screen[data-app-view="library"] #custom-playlists .library-media-copy {
  gap: 3px;
}

.phone-screen[data-app-view="library"] #custom-playlists .library-media-title {
  -webkit-line-clamp: 1;
}

.podcast-library-shelf {
  border-color: rgba(139, 193, 211, 0.14);
  background:
    radial-gradient(circle at 88% 10%, rgba(139, 193, 211, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(18, 22, 27, 0.92), rgba(12, 11, 18, 0.94));
}

.phone-screen[data-content-mode="podcast"] .podcast-library-shelf {
  border-color: rgba(122, 152, 170, 0.18);
  background:
    radial-gradient(circle at 88% 10%, rgba(181, 208, 220, 0.42), transparent 32%),
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.82), transparent 28%),
    linear-gradient(180deg, rgba(242, 247, 250, 0.94), rgba(226, 235, 241, 0.92));
}

.podcast-library-shelf .library-media-card.is-podcast-channel .library-media-main {
  background:
    radial-gradient(circle at 82% 14%, color-mix(in srgb, var(--library-accent, #8bc1d3) 22%, transparent), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
}

.phone-screen[data-content-mode="podcast"] .podcast-library-shelf .library-media-card.is-podcast-channel .library-media-main {
  background:
    radial-gradient(circle at 82% 14%, color-mix(in srgb, var(--library-accent, #8bc1d3) 30%, rgba(255, 255, 255, 0.2)), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 249, 0.82));
}

.podcast-library-shelf .library-media-indicator {
  background: rgba(229, 244, 249, 0.92);
  color: #142329;
}

.moment-chooser-section {
  display: grid;
  gap: 16px;
}

.search-genre-playlists-section {
  display: grid;
  gap: var(--space-sm);
  order: 1;
}

#search-latest-section {
  order: 2;
}

#results-panel {
  order: 3;
}

.phone-screen[data-app-view="search"][data-search-mode="search"] #results-panel {
  order: 1;
}

.phone-screen[data-app-view="search"][data-search-mode="search"] #search-genre-playlists-section {
  order: 2;
}

.phone-screen[data-app-view="search"][data-search-mode="search"] #search-latest-section {
  order: 3;
}

.phone-screen[data-app-view="search"] .content-section {
  margin-bottom: var(--space-lg);
}

.phone-screen[data-app-view="search"] #results-panel,
.phone-screen[data-app-view="search"] #search-genre-playlists-section,
.phone-screen[data-app-view="search"] #search-latest-section {
  display: grid;
  gap: var(--space-sm);
}

.phone-screen[data-app-view="search"] #results-panel .section-head,
.phone-screen[data-app-view="search"] #search-genre-playlists-section .section-head,
.phone-screen[data-app-view="search"] #search-latest-section .section-head {
  margin-bottom: 0;
}

.search-genre-playlists-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
}

.search-genre-playlists-grid.is-podcast-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(178px, 68%, 236px);
  grid-template-columns: none;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 2px 2px 10px;
  margin: 0 -2px;
  scrollbar-width: none;
}

.search-genre-playlists-grid.is-podcast-carousel::-webkit-scrollbar {
  display: none;
}

.search-genre-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px;
  grid-template-areas:
    "kicker visual"
    "title visual"
    "action visual";
  align-content: space-between;
  column-gap: 10px;
  row-gap: 4px;
  min-height: 72px;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--search-genre-accent, #e13300) 28%, rgba(255, 255, 255, 0.18));
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    linear-gradient(160deg, color-mix(in srgb, var(--search-genre-accent, #e13300) 10%, rgba(27, 18, 39, 0.94)) 0%, rgba(15, 12, 23, 0.9) 100%);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px color-mix(in srgb, var(--search-genre-accent, #e13300) 16%, rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(12px) saturate(1.02);
  -webkit-backdrop-filter: blur(12px) saturate(1.02);
  overflow: hidden;
}

.search-genre-card::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 72%;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--search-genre-accent, #e13300) 26%, transparent), transparent 72%);
  opacity: 0.52;
  transform: translate(-50%, -50%);
  filter: blur(10px);
  animation: search-card-orb-drift 11s ease-in-out infinite;
  pointer-events: none;
}

.search-genre-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 32%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.01));
  pointer-events: none;
}

.search-genre-card > * {
  position: relative;
  z-index: 1;
}

.search-genre-card-visual {
  grid-area: visual;
  align-self: stretch;
  justify-self: end;
  width: 68px;
  min-height: 68px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(22, 18, 31, 0.98), rgba(11, 9, 18, 0.96));
  box-shadow:
    0 12px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: rotate(7deg) translateY(1px);
  transform-origin: center;
}

.search-genre-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.search-genre-card-kicker {
  grid-area: kicker;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.5rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.search-genre-card-title {
  grid-area: title;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  line-height: 1.16;
  letter-spacing: 0;
  font-weight: 850;
  color: rgba(255, 252, 246, 0.96);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(2 * 1.16em);
  padding-bottom: 1px;
}

.search-genre-card-action {
  grid-area: action;
  margin-top: auto;
  width: fit-content;
  min-height: var(--button-compact-height);
  padding: 0 var(--button-padding-x);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 249, 232, 0.96);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 850;
  cursor: pointer;
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.search-genre-card-action:hover,
.search-genre-card-action:focus-visible {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.32);
  outline: none;
}

.search-genre-card:hover .search-genre-card-visual,
.search-genre-card:focus-within .search-genre-card-visual {
  transform: rotate(5deg) translateY(-1px) scale(1.02);
}

.search-genre-card.is-podcast-suggestion {
  scroll-snap-align: start;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "visual"
    "copy"
    "action";
  row-gap: 9px;
  min-height: 224px;
  padding: 10px;
  border-color: color-mix(in srgb, var(--search-genre-accent, #477d95) 18%, rgba(55, 74, 88, 0.22));
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.14)),
    linear-gradient(160deg, color-mix(in srgb, var(--search-genre-accent, #477d95) 10%, rgba(247, 250, 252, 0.94)) 0%, rgba(237, 242, 247, 0.9) 100%);
  color: #172128;
  box-shadow:
    0 12px 24px rgba(76, 91, 108, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.search-genre-card.is-podcast-suggestion::after {
  left: 78%;
  top: 28%;
  opacity: 0.36;
}

.search-genre-card.is-podcast-suggestion .search-genre-card-visual {
  grid-area: visual;
  justify-self: stretch;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  transform: none;
  box-shadow:
    0 12px 22px rgba(76, 91, 108, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.search-genre-card.is-podcast-suggestion .search-genre-card-image {
  transform: scale(1.02);
}

.search-genre-card.is-podcast-suggestion .search-genre-card-copy {
  grid-area: copy;
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.search-genre-card.is-podcast-suggestion::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.36), transparent 32%),
    linear-gradient(0deg, rgba(76, 91, 108, 0.08), rgba(255, 255, 255, 0.02));
}

.search-genre-card.is-podcast-suggestion .search-genre-card-kicker {
  color: rgba(35, 49, 59, 0.56);
  font-size: 0.54rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-genre-card.is-podcast-suggestion .search-genre-card-title {
  font-size: 0.82rem;
  line-height: 1.18;
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: calc(2 * 1.18em);
  max-height: calc(2 * 1.18em);
  overflow: hidden;
  overflow-wrap: anywhere;
  color: #172128;
}

.search-genre-card-meta {
  color: rgba(35, 49, 59, 0.62);
  font-size: 0.66rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: calc(2 * 1.25em);
  max-height: calc(2 * 1.25em);
  overflow: hidden;
  overflow-wrap: anywhere;
}

.search-genre-card.is-podcast-suggestion .search-genre-card-action {
  grid-area: action;
  align-self: end;
  justify-self: start;
  margin-top: 0;
  background: rgba(35, 49, 59, 0.08);
  color: rgba(35, 49, 59, 0.8);
  min-height: var(--button-compact-height);
  padding: 0 var(--button-padding-x);
  font-size: 0.68rem;
}

.search-genre-card.is-podcast-suggestion:hover .search-genre-card-visual,
.search-genre-card.is-podcast-suggestion:focus-within .search-genre-card-visual {
  transform: translateY(-1px) scale(1.01);
}

.search-genre-card.is-loading {
  min-height: 72px;
}

@keyframes search-card-orb-drift {
  0% {
    transform: translate(-50%, -50%) scale(0.96);
  }
  50% {
    transform: translate(-58%, -42%) scale(1.08);
  }
  100% {
    transform: translate(-50%, -50%) scale(0.96);
  }
}

.search-playlist-card {
  max-width: min(760px, calc(100vw - 28px));
}

.search-playlist-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.search-playlist-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.moment-launch-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  grid-template-areas:
    "kicker art"
    "title art"
    "copy art"
    "meta meta";
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 17px 18px;
  border: 1px solid rgba(244, 226, 255, 0.08);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(28, 22, 38, 0.86), rgba(12, 11, 18, 0.96));
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.moment-launch-card::before {
  content: "";
  position: absolute;
  inset: 12px 14px auto auto;
  width: min(38%, 132px);
  height: 78px;
  pointer-events: none;
  opacity: 0.28;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent) 0 50% / 100% 1px no-repeat,
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.15) 0 5px,
      transparent 5px 13px,
      rgba(216, 137, 255, 0.16) 13px 18px,
      transparent 18px 29px
    );
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 14%,
    #000 84%,
    transparent 100%
  );
  border-radius: 999px;
  filter: drop-shadow(0 14px 28px rgba(216, 137, 255, 0.1));
  transform: skewX(-8deg);
  animation: homeSoundBars 5.2s ease-in-out infinite;
}

.moment-launch-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 34%);
  opacity: 0.42;
  pointer-events: none;
}

.moment-launch-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(31, 24, 42, 0.9), rgba(12, 11, 18, 0.98));
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.moment-launch-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.42);
  outline-offset: 2px;
}

.moment-launch-kicker,
.moment-launch-title,
.moment-launch-copy,
.moment-launch-meta {
  position: relative;
  z-index: 1;
}

.moment-launch-art {
  grid-area: art;
  position: relative;
  z-index: 1;
  width: 96px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background:
    radial-gradient(circle at 28% 16%, rgba(255, 255, 255, 0.22), transparent 36%),
    linear-gradient(135deg, rgba(216, 137, 255, 0.24), rgba(255, 181, 89, 0.16));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.moment-launch-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.moment-launch-kicker {
  grid-area: kicker;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.028);
  color: rgba(255, 244, 214, 0.7);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.moment-launch-title {
  grid-area: title;
  max-width: 20ch;
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-size: 1.62rem;
  line-height: 1.03;
  letter-spacing: 0;
  color: rgba(255, 250, 240, 0.96);
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.moment-launch-copy {
  grid-area: copy;
  margin: 0;
  max-width: 50ch;
  color: rgba(236, 227, 246, 0.54);
  font-size: 0.81rem;
  line-height: 1.44;
}

.moment-launch-meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding-top: 3px;
}

@media (max-width: 430px) {
  .moment-launch-card {
    grid-template-columns: minmax(0, 1fr) 82px;
    grid-template-areas:
      "kicker art"
      "title art"
      "copy copy"
      "meta meta";
  }

  .moment-launch-art {
    width: 82px;
    border-radius: 16px;
  }
}

.moment-launch-status {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.moment-launch-preview {
  color: rgba(250, 244, 255, 0.58);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.moment-launch-action {
  display: inline-flex;
  align-items: center;
  min-height: var(--button-compact-height);
  margin-left: auto;
  padding: 0 var(--button-padding-x);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.032);
  color: rgba(255, 246, 226, 0.78);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.moment-launch-card:hover .moment-launch-action,
.moment-launch-card:focus-visible .moment-launch-action {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.065);
  transform: translateY(-1px);
}

.moment-hero {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(145deg, rgba(20, 18, 28, 0.98), rgba(12, 11, 18, 0.98));
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.moment-hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -30% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 137, 255, 0.08), transparent 70%);
  pointer-events: none;
}

.moment-modal-card {
  display: grid;
  gap: 18px;
  max-width: min(920px, calc(100vw - 28px));
  max-height: min(88vh, 920px);
  padding: 18px;
  overflow: auto;
}

.moment-modal-hero {
  margin-top: 20px;
}

.moment-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.moment-badge,
.moment-context-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 238, 255, 0.7);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.moment-hero h2 {
  margin: 0;
  max-width: 14ch;
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-size: clamp(1.75rem, 5vw, 2.45rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.moment-hero-subtitle {
  margin: 0;
  max-width: 56ch;
  color: rgba(236, 227, 246, 0.62);
  font-size: 0.92rem;
  line-height: 1.58;
}

.moment-action-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.moment-primary-action {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(216, 137, 255, 0.08));
  border-color: rgba(255, 255, 255, 0.12);
}

.moment-recommendation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.moment-card {
  position: relative;
  display: grid;
  grid-template-rows: 132px minmax(0, 1fr);
  min-height: 312px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(18, 17, 25, 0.98), rgba(11, 10, 16, 0.98));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}

.moment-card::before {
  content: "";
  position: absolute;
  inset: auto auto -18% -12%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--moment-accent, rgba(216, 137, 255, 0.24)), transparent 68%);
  opacity: 0.16;
  pointer-events: none;
}

.moment-card.is-featured {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.06), transparent 26%),
    linear-gradient(180deg, rgba(21, 19, 28, 0.99), rgba(11, 10, 16, 0.98));
}

.moment-card.is-peer-powered {
  border-color: rgba(124, 190, 255, 0.12);
  background:
    radial-gradient(circle at top right, rgba(124, 190, 255, 0.06), transparent 24%),
    linear-gradient(180deg, rgba(18, 20, 28, 0.99), rgba(11, 10, 16, 0.98));
}

.moment-card > * {
  position: relative;
  z-index: 1;
}

.moment-card-visual {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(24, 25, 33, 0.92), rgba(13, 14, 19, 0.96));
}

.moment-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  filter: saturate(0.82) contrast(0.98) brightness(0.74);
}

.moment-card-visual-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 7, 10, 0.12), rgba(7, 7, 10, 0.14) 45%, rgba(10, 10, 14, 0.88) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.16), transparent 42%);
}

.moment-card-content {
  display: grid;
  gap: 9px;
  padding: 14px 14px 15px;
}

.moment-card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.moment-card-eyebrow {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.moment-card.is-peer-powered .moment-card-eyebrow {
  color: rgba(163, 212, 255, 0.88);
}

.moment-card-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.96rem;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.moment-card-copy {
  margin: 0;
  color: rgba(236, 227, 246, 0.68);
  font-size: 0.78rem;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.moment-card-meta {
  color: rgba(210, 195, 225, 0.52);
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  text-align: right;
}

.moment-card-sample {
  color: rgba(250, 244, 255, 0.68);
  font-size: 0.71rem;
  line-height: 1.4;
  padding-left: 10px;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
}

.moment-card-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-content: start;
}

.moment-card-reason {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 238, 255, 0.6);
  font-size: 0.62rem;
  line-height: 1.2;
}

.moment-card-actions {
  margin-top: auto;
}

.moment-card-button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  min-height: var(--button-height);
  padding: 0 var(--button-padding-x);
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 249, 232, 0.92);
  font: inherit;
  font-size: var(--button-font-size);
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.moment-card.is-loading {
  grid-template-rows: 132px minmax(0, 1fr);
  min-height: 312px;
}

.moment-card.is-loading .moment-card-title.skeleton-line {
  min-height: 1em;
  width: 72%;
}

.moment-card.is-loading .moment-card-copy.skeleton-line {
  min-height: 0.95em;
  width: 88%;
}

.moment-card.is-loading .moment-card-meta.skeleton-line {
  min-height: 0.8em;
  width: 42%;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.section-head h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.section-link {
  color: var(--accent-soft);
  font-size: 0.95rem;
}

.section-action {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  min-height: var(--button-height);
  padding: 0 var(--button-padding-x);
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 249, 232, 0.96);
  font: inherit;
  font-size: var(--button-font-size);
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateZ(0);
  transition:
    transform var(--motion-fast) var(--motion-ease),
    filter var(--motion-fast) ease,
    opacity var(--motion-fast) ease,
    background var(--motion-medium) var(--motion-ease),
    border-color var(--motion-medium) var(--motion-ease),
    box-shadow var(--motion-medium) var(--motion-ease);
}

.section-action:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.section-count {
  display: none;
}

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

.album-grid[data-layout="home-showcase"],
.album-grid[data-layout="home-dashboard"] {
  display: block;
}

.album-grid[data-layout="home-top-tracks"] {
  --home-track-row-height: 76px;
  display: flex;
  gap: 10px;
  max-height: calc((var(--home-track-row-height) * 4) + 37px);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 3px 4px 4px;
  scroll-snap-type: x mandatory;
  scroll-padding: 3px;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}

.album-grid[data-layout="home-top-tracks"]::-webkit-scrollbar {
  display: none;
}

.home-top-tracks-page {
  flex: 0 0 100%;
  display: grid;
  grid-template-rows: repeat(4, var(--home-track-row-height));
  gap: 10px;
  min-width: 0;
  scroll-snap-align: start;
}

.album-grid[data-layout="home-top-tracks"] .album-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: var(--home-track-row-height);
  width: 100%;
  padding: 8px 9px 8px 8px;
  border-radius: 8px;
  border-color: color-mix(in srgb, var(--card-accent, #d889ff) 28%, rgba(255, 255, 255, 0.08));
  background:
    radial-gradient(circle at 94% 18%, color-mix(in srgb, var(--card-accent, #d889ff) 14%, transparent), transparent 30%),
    linear-gradient(145deg, rgba(20, 16, 30, 0.82), rgba(12, 9, 18, 0.88));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.album-grid[data-layout="home-top-tracks"] .album-card-main {
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  height: 100%;
}

.album-grid[data-layout="home-top-tracks"] .album-thumb {
  width: 56px;
  height: 56px;
  border-radius: 13px;
}

.album-grid[data-layout="home-top-tracks"] .album-title {
  font-size: 0.88rem;
}

.album-grid[data-layout="home-top-tracks"] .album-meta {
  font-size: 0.68rem;
}

.album-grid[data-layout="home-top-tracks"] .album-queue-action {
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-color: transparent;
  background: transparent;
  color: rgba(239, 233, 255, 0.72);
  box-shadow: none;
}

.album-grid[data-layout="home-top-tracks"] .album-card.active,
.album-grid[data-layout="home-top-tracks"] .album-card:hover,
.album-grid[data-layout="home-top-tracks"] .album-card:focus-within {
  border-color: color-mix(in srgb, var(--card-accent, #d889ff) 42%, rgba(255, 255, 255, 0.14));
  background:
    radial-gradient(circle at 94% 18%, color-mix(in srgb, var(--card-accent, #d889ff) 22%, transparent), transparent 33%),
    linear-gradient(145deg, rgba(33, 26, 47, 0.96), rgba(20, 15, 30, 0.98));
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.035) inset;
  transform: translateY(-2px);
}

.album-grid[data-layout="home-top-tracks"] .home-track-options:hover,
.album-grid[data-layout="home-top-tracks"] .home-track-options:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 252, 246, 0.96);
  box-shadow: none;
}

.home-track-detail-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.home-track-plays {
  min-width: 0;
  color: rgba(239, 233, 255, 0.56);
  font-size: 0.66rem;
  line-height: 1.12;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-track-explicit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: rgba(239, 233, 255, 0.72);
  color: rgba(11, 8, 16, 0.96);
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
}

.home-track-options svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.home-top-tracks-block {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.home-top-tracks-heading {
  margin: 0;
  color: rgba(255, 249, 232, 0.96);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0;
}

.album-grid[data-layout="podcast-channels"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.album-grid[data-layout="podcast-channels"] .album-card.is-podcast-channel {
  min-height: 156px;
  border-color: color-mix(in srgb, var(--card-accent, #8bc1d3) 22%, rgba(255, 255, 255, 0.1));
  background:
    radial-gradient(circle at 86% 12%, color-mix(in srgb, var(--card-accent, #8bc1d3) 22%, transparent), transparent 34%),
    linear-gradient(150deg, rgba(27, 33, 38, 0.95), rgba(13, 12, 18, 0.95));
}

.album-grid[data-layout="podcast-channels"] .album-card.is-podcast-channel .album-card-main {
  align-content: end;
}

.album-grid[data-layout="podcast-channels"] .album-card.is-podcast-channel .album-copy {
  max-width: calc(100% - 18px);
}

.album-grid[data-layout="podcast-channels"] .album-card.is-podcast-channel .podcast-channel-preview {
  max-width: 72%;
}

.album-grid[data-layout="podcast-channels"] .album-card.is-podcast-channel .album-thumb {
  width: 84px;
  height: 84px;
  right: -10px;
  bottom: -8px;
  border-radius: 24px;
  filter: saturate(0.9) contrast(1.04);
}

.album-grid[data-layout="podcast-channels"] .album-card.is-podcast-channel .album-queue-action {
  background: rgba(238, 247, 250, 0.9);
  color: #15242b;
}

.podcast-channel-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  column-gap: 10px;
}

.podcast-channel-row .player-queue-main {
  grid-column: 1;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
  width: 100%;
  min-height: 72px;
  overflow: visible;
  padding: 10px 12px;
}

.podcast-channel-row .player-queue-remove {
  grid-column: 2;
  align-self: center;
}

.podcast-channel-row .player-queue-drag {
  display: none;
}

.podcast-channel-row .player-queue-copy {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: start;
  gap: 6px;
}

.podcast-channel-row .player-queue-title,
.podcast-channel-row .player-queue-meta {
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
}

.podcast-channel-row .player-queue-title {
  display: block;
  line-height: 1.22;
}

.podcast-channel-row .player-queue-meta {
  display: block;
  line-height: 1.28;
}

body[data-content-mode="podcast"] .album-grid[data-layout="podcast-channels"] .album-card.is-podcast-channel,
.phone-screen[data-content-mode="podcast"] .album-grid[data-layout="podcast-channels"] .album-card.is-podcast-channel {
  border-color: rgba(166, 110, 68, 0.18);
  background:
    radial-gradient(circle at 84% 10%, color-mix(in srgb, var(--card-accent, #ffb86c) 28%, transparent), transparent 34%),
    radial-gradient(circle at 16% 20%, rgba(255, 148, 102, 0.16), transparent 28%),
    linear-gradient(150deg, rgba(255, 248, 235, 0.96), rgba(255, 223, 194, 0.84));
  box-shadow: 0 18px 40px rgba(168, 106, 52, 0.16);
}

body[data-content-mode="podcast"] .album-grid[data-layout="podcast-channels"] .album-card.is-podcast-channel .album-title,
.phone-screen[data-content-mode="podcast"] .album-grid[data-layout="podcast-channels"] .album-card.is-podcast-channel .album-title {
  color: #172128;
}

body[data-content-mode="podcast"] .album-grid[data-layout="podcast-channels"] .album-card.is-podcast-channel .album-meta,
.phone-screen[data-content-mode="podcast"] .album-grid[data-layout="podcast-channels"] .album-card.is-podcast-channel .album-meta {
  color: rgba(91, 56, 29, 0.82);
}

body[data-content-mode="podcast"] .album-grid[data-layout="podcast-channels"] .album-card.is-podcast-channel .album-preview,
.phone-screen[data-content-mode="podcast"] .album-grid[data-layout="podcast-channels"] .album-card.is-podcast-channel .album-preview {
  color: rgba(112, 68, 36, 0.78);
}

.home-showcase {
  display: grid;
  gap: 8px;
}

.home-showcase-stage {
  position: relative;
  min-height: 172px;
}

.home-showcase-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(244, 236, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(24, 22, 31, 0.66), rgba(10, 9, 14, 0.78));
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  opacity: 0;
  transform: translateX(16px) scale(0.992);
  pointer-events: none;
  transition: opacity 0.34s ease, transform 0.34s ease;
}

.home-showcase-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 7, 12, 0.88), rgba(8, 7, 12, 0.56) 48%, rgba(8, 7, 12, 0.72)),
    linear-gradient(180deg, rgba(8, 7, 12, 0.3), rgba(8, 7, 12, 0.78)),
    radial-gradient(circle at 88% 14%, color-mix(in srgb, var(--showcase-accent) 20%, transparent), transparent 34%);
  backdrop-filter: blur(3px) saturate(1.02);
  -webkit-backdrop-filter: blur(3px) saturate(1.02);
  opacity: 0.96;
  z-index: 1;
}

.home-showcase-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.home-showcase-slide .artist-affinity-avatars {
  position: absolute;
  right: 14px;
  top: 14px;
}

.home-showcase-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(0.98) brightness(0.62);
}

.home-showcase-overlay {
  position: relative;
  z-index: 2;
  min-height: 172px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 15px;
}

.home-showcase-avatar {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.home-showcase-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.home-showcase-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(242, 230, 255, 0.62);
  font-size: 0.58rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.home-showcase-title {
  max-width: 100%;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.12rem;
  line-height: 1.05;
  letter-spacing: 0;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes homeSoundWaveDrift {
  0%,
  100% {
    transform: translateX(-50%) scale(0.98);
    opacity: 0.58;
  }
  50% {
    transform: translateX(-50%) scale(1.04);
    opacity: 0.78;
  }
}

@keyframes headerFixedLightPulse {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(0.96);
    opacity: 0.56;
  }
  50% {
    transform: translate3d(-8px, 5px, 0) scale(1.05);
    opacity: 0.78;
  }
}

@keyframes headerHomeWaveFloat {
  0%,
  100% {
    filter: blur(0.15px);
    opacity: 0.62;
  }
  50% {
    filter: blur(0);
    opacity: 0.96;
  }
}

@keyframes homeSoundBars {
  0%,
  100% {
    clip-path: polygon(0 44%, 6% 35%, 12% 62%, 18% 26%, 24% 70%, 30% 38%, 36% 58%, 42% 24%, 48% 76%, 54% 34%, 60% 64%, 66% 28%, 72% 70%, 78% 42%, 84% 58%, 90% 30%, 100% 48%, 100% 100%, 0 100%);
  }
  50% {
    clip-path: polygon(0 56%, 6% 28%, 12% 72%, 18% 38%, 24% 58%, 30% 18%, 36% 78%, 42% 36%, 48% 62%, 54% 22%, 60% 82%, 66% 40%, 72% 56%, 78% 26%, 84% 74%, 90% 34%, 100% 60%, 100% 100%, 0 100%);
  }
}

@keyframes homeShowcaseBars {
  0%,
  100% {
    transform: rotate(-8deg) translateY(0) scaleY(0.96);
    opacity: 0.48;
  }
  50% {
    transform: rotate(-8deg) translateY(-8px) scaleY(1.12);
    opacity: 0.68;
  }
}

.home-showcase-bio {
  margin: 0;
  max-width: min(100%, 42ch);
  color: rgba(243, 235, 250, 0.64);
  font-size: 0.7rem;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body[data-content-mode="podcast"] .home-showcase-stage,
.phone-screen[data-content-mode="podcast"] .home-showcase-stage {
  min-height: 286px;
}

body[data-content-mode="podcast"] .home-showcase-overlay,
.phone-screen[data-content-mode="podcast"] .home-showcase-overlay {
  min-height: 286px;
  gap: 9px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(12, 18, 22, 0.04), rgba(12, 18, 22, 0.5) 38%, rgba(12, 18, 22, 0.92)),
    linear-gradient(90deg, rgba(12, 18, 22, 0.84), rgba(12, 18, 22, 0.22) 68%);
}

body[data-content-mode="podcast"] .home-showcase-kicker,
.phone-screen[data-content-mode="podcast"] .home-showcase-kicker {
  max-width: 100%;
  background: rgba(255, 247, 222, 0.88);
  border-color: rgba(166, 110, 68, 0.18);
  color: rgba(35, 49, 59, 0.78);
  font-size: 0.6rem;
  line-height: 1.2;
}

body[data-content-mode="podcast"] .home-showcase-title,
.phone-screen[data-content-mode="podcast"] .home-showcase-title {
  max-width: min(100%, 24ch);
  color: rgba(255, 252, 244, 0.98);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.38rem;
  line-height: 1.12;
  letter-spacing: 0;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.52);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body[data-content-mode="podcast"] .home-showcase-bio,
.phone-screen[data-content-mode="podcast"] .home-showcase-bio {
  max-width: min(100%, 38ch);
  color: rgba(255, 247, 232, 0.82);
  font-size: 0.78rem;
  line-height: 1.38;
  -webkit-line-clamp: 2;
}

.home-showcase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.home-showcase-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(231, 205, 255, 0.12);
  border-radius: 999px;
  min-height: 29px;
  padding: 0 10px;
  background: rgba(12, 10, 18, 0.38);
  color: rgba(246, 239, 255, 0.78);
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.home-showcase-chip.primary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
}

.home-showcase-chip:hover,
.home-showcase-chip:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.home-showcase-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 18px;
}

.home-showcase-arrow {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(245, 235, 255, 0.16);
  border-radius: 999px;
  background: rgba(18, 12, 29, 0.62);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
  cursor: pointer;
  opacity: 0.86;
  transition: opacity 0.2s ease, background 0.2s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.home-showcase-arrow:hover,
.home-showcase-arrow:focus-visible {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
}

.home-showcase-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.home-showcase-dot {
  width: 5px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, width 0.2s ease;
}

.home-showcase-dot.is-active {
  width: 16px;
  background: rgba(255, 255, 255, 0.5);
}

.home-showcase:not(.artist-showcase) {
  gap: 14px;
}

.home-showcase:not(.artist-showcase) .home-showcase-stage,
.home-showcase:not(.artist-showcase) .home-showcase-overlay {
  min-height: 320px;
}

.home-showcase:not(.artist-showcase) .home-showcase-slide {
  border-radius: 28px;
  border-color: rgba(220, 174, 255, 0.12);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--showcase-accent) 28%, transparent), transparent 34%),
    linear-gradient(180deg, rgba(23, 15, 35, 0.96), rgba(11, 8, 18, 0.98));
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.24);
}

.home-showcase:not(.artist-showcase) .home-showcase-slide::before {
  inset: auto -18% 12% auto;
  width: 78%;
  height: 46%;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.16) 0 4px,
      transparent 4px 12px,
      color-mix(in srgb, var(--showcase-accent) 42%, transparent) 12px 17px,
      transparent 17px 27px
    );
  mask-image:
    radial-gradient(ellipse at center, #000 0 58%, transparent 72%),
    linear-gradient(180deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
  filter: blur(0.1px) drop-shadow(0 18px 42px color-mix(in srgb, var(--showcase-accent) 28%, transparent));
  opacity: 0.62;
  transform: rotate(-8deg);
  animation: homeShowcaseBars 4.6s ease-in-out infinite;
}

.home-showcase:not(.artist-showcase) .home-showcase-art {
  filter: saturate(1.04) contrast(1.02);
}

.home-showcase:not(.artist-showcase) .home-showcase-overlay {
  display: grid;
  grid-template-columns: none;
  align-content: end;
  align-items: stretch;
  gap: 12px;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(9, 7, 16, 0.08), rgba(9, 7, 16, 0.44) 44%, rgba(9, 7, 16, 0.92)),
    linear-gradient(90deg, rgba(9, 7, 16, 0.72), rgba(9, 7, 16, 0.1) 52%);
}

.home-showcase:not(.artist-showcase) .home-showcase-avatar,
.home-showcase:not(.artist-showcase) .home-showcase-copy {
  display: contents;
}

.home-showcase:not(.artist-showcase) .home-showcase-kicker {
  padding: 6px 10px;
  border: 1px solid rgba(244, 226, 255, 0.14);
  background: rgba(10, 7, 16, 0.42);
  color: rgba(242, 230, 255, 0.82);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.home-showcase:not(.artist-showcase) .home-showcase-title {
  max-width: 76%;
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-size: clamp(2.55rem, 6.8vw, 3.55rem);
  line-height: 0.8;
  letter-spacing: 0;
}

.home-showcase:not(.artist-showcase) .home-showcase-bio {
  max-width: 62%;
  color: rgba(243, 235, 250, 0.76);
  font-size: 0.8rem;
  line-height: 1.38;
  -webkit-line-clamp: 3;
}

.home-showcase:not(.artist-showcase) .home-showcase-actions {
  gap: 10px;
}

.home-showcase:not(.artist-showcase) .home-showcase-chip {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.76rem;
}

.home-showcase:not(.artist-showcase) .home-showcase-arrow {
  width: 38px;
  height: 38px;
  background: rgba(18, 12, 29, 0.84);
  color: var(--text);
  font-size: 1.15rem;
  opacity: 1;
}

.home-showcase:not(.artist-showcase) .home-showcase-dots {
  gap: 8px;
}

.home-showcase:not(.artist-showcase) .home-showcase-dot {
  width: 9px;
  height: 9px;
}

.home-showcase:not(.artist-showcase) .home-showcase-dot.is-active {
  width: 24px;
  background: linear-gradient(90deg, #dd63ff, #6e99ff);
}

.album-grid[data-layout="search-list"] {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  justify-items: stretch;
}

.album-card {
  display: grid;
  align-content: start;
  gap: var(--space-xs);
  min-height: 0;
  padding: var(--space-sm);
  border-radius: 18px;
  border: 1px solid rgba(218, 168, 255, 0.1);
  background: rgba(18, 13, 27, 0.88);
  color: var(--text);
  text-align: left;
  transform: translateZ(0);
  transition:
    transform var(--motion-medium) var(--motion-ease),
    filter var(--motion-fast) ease,
    opacity var(--motion-fast) ease,
    border-color var(--motion-medium) var(--motion-ease),
    background var(--motion-medium) var(--motion-ease),
    box-shadow var(--motion-medium) var(--motion-ease);
}

.album-card-main {
  display: grid;
  align-content: start;
  gap: var(--space-xs);
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transform: translateZ(0);
  transition: transform var(--motion-fast) var(--motion-ease), filter var(--motion-fast) ease, opacity var(--motion-fast) ease;
}

.album-copy {
  min-width: 0;
  display: grid;
  gap: var(--space-2xs);
}

.album-live-indicator {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 96, 96, 0.16);
  border: 1px solid rgba(255, 122, 122, 0.28);
  color: #ffb4b4;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 0 rgba(255, 86, 86, 0);
  animation: liveBreakingPulse 1.45s ease-in-out infinite;
}

.album-live-indicator::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ff5e5e;
  box-shadow: 0 0 10px rgba(255, 94, 94, 0.86);
}

.album-live-indicator::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transform: translateX(-120%);
  animation: liveBreakingSweep 2.1s ease-in-out infinite;
}

.album-card.is-context-live {
  border-color: rgba(255, 120, 120, 0.12);
  background:
    radial-gradient(circle at top right, rgba(255, 118, 118, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(24, 18, 35, 0.9), rgba(14, 10, 22, 0.94));
}

@keyframes liveBreakingPulse {
  0%,
  100% {
    border-color: rgba(255, 122, 122, 0.28);
    box-shadow: 0 0 0 rgba(255, 86, 86, 0);
  }
  50% {
    border-color: rgba(255, 152, 152, 0.62);
    box-shadow: 0 0 18px rgba(255, 86, 86, 0.22);
  }
}

@keyframes liveBreakingSweep {
  0%,
  42% {
    transform: translateX(-120%);
  }
  70%,
  100% {
    transform: translateX(120%);
  }
}

.album-grid[data-layout="search-list"] .album-card {
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 5% 0%, color-mix(in srgb, var(--card-accent, #8c67b4) 18%, transparent), transparent 34%),
    linear-gradient(180deg, rgba(24, 18, 35, 0.9), rgba(14, 10, 22, 0.94));
  border-color: rgba(218, 168, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 10px 24px rgba(0, 0, 0, 0.12);
}

.album-grid[data-layout="search-list"] .album-card-main {
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.album-card.is-skeleton {
  position: relative;
  overflow: hidden;
  pointer-events: none;
  border-color: rgba(190, 128, 255, 0.12);
  background:
    radial-gradient(circle at 18% 10%, rgba(176, 102, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(25, 17, 38, 0.86), rgba(10, 7, 16, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 12px 30px rgba(0, 0, 0, 0.16),
    0 0 24px rgba(123, 45, 255, 0.06);
}

.album-card.is-skeleton::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    linear-gradient(112deg, transparent 0 28%, rgba(255, 255, 255, 0.08) 42%, rgba(176, 102, 255, 0.1) 50%, transparent 64% 100%);
  transform: translateX(-120%);
  animation: skeletonCardSweep 1.85s ease-in-out infinite;
  pointer-events: none;
}

.album-card.is-skeleton > * {
  position: relative;
  z-index: 1;
}

.album-card.active,
.album-card:hover,
.playlist-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
}

.album-card:hover .album-queue-action,
.album-card:focus-within .album-queue-action {
  opacity: 1;
  transform: translateY(0);
}

.album-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(31, 21, 47, 0.95), rgba(11, 8, 18, 0.95));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition:
    opacity var(--motion-medium) var(--motion-ease),
    transform var(--motion-medium) var(--motion-ease),
    filter var(--motion-medium) var(--motion-ease),
    box-shadow var(--motion-medium) var(--motion-ease);
}

.album-grid[data-layout="search-list"] .album-thumb {
  width: 52px;
  height: 52px;
  border-radius: 11px;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.14);
}

.album-title {
  max-width: 100%;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.96rem;
  line-height: 1.08;
  font-weight: 850;
  color: rgba(255, 252, 246, 0.98);
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.album-grid[data-layout="search-list"] .album-title {
  font-size: 0.88rem;
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 850;
  white-space: nowrap;
  max-width: 100%;
}

.album-meta {
  max-width: 100%;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.album-grid > .album-meta {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  padding: var(--space-md) var(--space-sm);
  border: 1px solid rgba(218, 168, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(239, 233, 255, 0.68);
  text-align: center;
  white-space: normal;
}

.album-preview {
  max-width: 100%;
  color: rgba(239, 233, 255, 0.56);
  font-size: 0.68rem;
  line-height: 1.25;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.album-grid[data-layout="search-list"] .album-meta {
  font-size: 0.68rem;
  line-height: 1.1;
  color: rgba(239, 233, 255, 0.68);
  white-space: nowrap;
  max-width: 100%;
}

.meta-with-duration {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.meta-with-duration-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-duration-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}

.album-queue-action {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), transparent 44%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(216, 137, 255, 0.16));
  color: rgba(255, 249, 232, 0.98);
  font: inherit;
  cursor: pointer;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.035) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.album-queue-action:hover,
.album-queue-action:focus-visible {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 44%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.38), rgba(216, 137, 255, 0.2));
  opacity: 1;
  transform: translateY(-1px);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.2),
    0 0 16px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  outline: none;
}

.album-queue-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.album-queue-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.album-queue-label {
  display: none;
}

.album-grid[data-layout="search-list"] .album-queue-action {
  width: 34px;
  min-width: 34px;
  height: 34px;
}

.skeleton-block,
.skeleton-line {
  background:
    linear-gradient(100deg, transparent 0 28%, rgba(255, 255, 255, 0.18) 44%, rgba(176, 102, 255, 0.18) 52%, transparent 68% 100%),
    linear-gradient(180deg, rgba(48, 36, 67, 0.92), rgba(21, 14, 32, 0.96));
  background-size: 240% 100%, 100% 100%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  animation: skeletonPremiumPulse 1.55s ease-in-out infinite;
}

.album-card.is-skeleton .album-thumb {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(123, 45, 255, 0.22), rgba(176, 102, 255, 0.1) 42%, rgba(14, 9, 22, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 9px 20px rgba(0, 0, 0, 0.18),
    0 0 18px rgba(123, 45, 255, 0.08);
}

.album-grid[data-layout="search-list"] .album-card.is-skeleton {
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  row-gap: 6px;
}

.album-grid[data-layout="search-list"] .album-card.is-skeleton .album-thumb {
  grid-row: 1 / span 2;
}

.album-grid[data-layout="search-list"] .album-card.is-skeleton .album-title,
.album-grid[data-layout="search-list"] .album-card.is-skeleton .album-meta {
  grid-column: 2;
}

.skeleton-line {
  display: block;
  border-radius: 999px;
}

.album-card.is-skeleton .album-title.skeleton-line {
  width: 78%;
  min-height: 0.92em;
}

.album-card.is-skeleton .album-meta.skeleton-line {
  width: 58%;
  min-height: 0.72em;
  opacity: 0.78;
}

.album-card.is-skeleton .album-meta.skeleton-line.short {
  width: 46%;
}

.album-card.is-skeleton:nth-child(2n) .album-title.skeleton-line {
  width: 66%;
}

.album-card.is-skeleton:nth-child(3n) .album-meta.skeleton-line.short {
  width: 54%;
}

.curated-section {
  margin-bottom: 10px;
}

.mix-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(162px, 178px);
  gap: 12px;
  overflow-x: auto;
  padding: 1px 2px 6px;
  scroll-snap-type: x proximity;
}

.mix-grid::-webkit-scrollbar {
  height: 0;
}

.mix-grid[data-count="1"] {
  grid-auto-columns: minmax(190px, 220px);
}

.mix-grid[data-count="1"] .mix-card {
  max-width: none;
}

.mix-card {
  --mix-accent: rgba(154, 95, 255, 0.34);
  display: grid;
  align-content: start;
  gap: 9px;
  width: 100%;
  min-height: 216px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(235, 219, 255, 0.1);
  background:
    radial-gradient(circle at 88% 0%, var(--mix-accent), transparent 34%),
    linear-gradient(145deg, rgba(38, 24, 56, 0.92), rgba(16, 12, 26, 0.96) 62%, rgba(9, 8, 14, 0.98));
  color: var(--text);
  overflow: hidden;
  position: relative;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(10px) saturate(1.04);
  -webkit-backdrop-filter: blur(10px) saturate(1.04);
  transform: translateZ(0);
  transition:
    transform var(--motion-medium) var(--motion-ease),
    filter var(--motion-fast) ease,
    opacity var(--motion-fast) ease,
    box-shadow var(--motion-medium) var(--motion-ease),
    border-color var(--motion-medium) var(--motion-ease),
    background var(--motion-medium) var(--motion-ease);
}

.mix-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 36%);
  opacity: 0.7;
}

.mix-card.is-editorial-mix {
  background:
    radial-gradient(circle at 92% 0%, color-mix(in srgb, var(--mix-accent) 54%, transparent), transparent 36%),
    linear-gradient(145deg, rgba(38, 24, 56, 0.94), rgba(16, 12, 26, 0.96) 62%, rgba(9, 8, 14, 0.99));
}

.mix-tag {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 22px);
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--mix-accent) 64%, rgba(255, 255, 255, 0.16)), rgba(12, 9, 18, 0.74));
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.56rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
}

.mix-card strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  line-height: 1.08;
  letter-spacing: 0;
  position: relative;
  z-index: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mix-card span {
  color: rgba(225, 210, 244, 0.7);
  font-size: 0.74rem;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.mix-card .mix-subtitle {
  max-width: calc(100% - 38px);
  min-height: 32px;
  display: flex;
  align-items: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mix-card:hover {
  transform: translateY(-1px);
  border-color: rgba(235, 219, 255, 0.16);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.mix-card.is-active-mix {
  border-color: rgba(142, 226, 170, 0.42);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(142, 226, 170, 0.18) inset,
    0 0 22px rgba(142, 226, 170, 0.12);
}

.mix-card.is-active-mix .mix-action {
  color: #0b1710;
  background: linear-gradient(180deg, #b8ffd0, #64e293);
}

.news-reels {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
}

.news-reels::-webkit-scrollbar {
  height: 0;
}

.news-reel-card {
  position: relative;
  min-height: 328px;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 16px;
  border-radius: 26px;
  overflow: hidden;
  scroll-snap-align: start;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--reel-accent) 38%, transparent), transparent 28%),
    linear-gradient(180deg, rgba(24, 16, 36, 0.96), rgba(10, 7, 17, 0.98));
  border: 1px solid rgba(218, 168, 255, 0.12);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.news-reel-card.is-loading {
  pointer-events: none;
}

.news-reel-card.is-loading .news-reel-visual {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.news-reel-card.is-loading .news-reel-source,
.news-reel-card.is-loading .news-reel-title,
.news-reel-card.is-loading .news-reel-meta,
.news-reel-card.is-loading .news-reel-description,
.news-reel-card.is-loading .news-reel-action {
  position: relative;
  z-index: 1;
}

.news-reel-card.is-loading .news-reel-source {
  min-height: 28px;
  min-width: 86px;
  color: transparent;
}

.news-reel-card.is-loading .news-reel-title {
  min-height: 50px;
  border-radius: 16px;
  color: transparent;
}

.news-reel-card.is-loading .news-reel-meta {
  min-height: 16px;
  color: transparent;
}

.news-reel-card.is-loading .news-reel-description {
  min-height: 48px;
  border-radius: 14px;
  color: transparent;
}

.news-reel-card.is-loading .news-reel-action {
  min-height: 34px;
  min-width: 74px;
  color: transparent;
}

.news-reel-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 16%),
    linear-gradient(180deg, rgba(9, 7, 16, 0.2), rgba(9, 7, 16, 0.68) 46%, rgba(9, 7, 16, 0.96));
  pointer-events: none;
}

.news-reel-visual {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--reel-accent) 50%, transparent), transparent 28%),
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(32, 22, 48, 0.98), rgba(10, 7, 17, 0.98));
}

.news-reel-visual::after {
  content: attr(data-fallback-label);
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--reel-accent) 38%, rgba(255, 255, 255, 0.14)), rgba(12, 9, 18, 0.76));
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
  opacity: 0;
}

.news-reel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.02);
}

.news-reel-image.is-media-empty,
.news-reel-image.is-media-loading {
  opacity: 0;
}

.news-reel-visual:has(.news-reel-image.is-media-empty)::after,
.news-reel-visual:has(.news-reel-image.is-media-loading)::after {
  opacity: 1;
}

.news-reel-source,
.news-reel-title,
.news-reel-meta,
.news-reel-description,
.news-reel-action {
  position: relative;
  z-index: 1;
}

.news-reel-source {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.36);
}

.news-reel-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.18rem;
  line-height: 1.04;
  letter-spacing: 0;
  color: #ffffff;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.62);
}

.news-reel-meta {
  color: rgba(248, 244, 255, 0.9);
  font-size: 0.72rem;
  line-height: 1.35;
  font-weight: 700;
  text-shadow: 0 5px 18px rgba(0, 0, 0, 0.52);
}

.news-reel-description {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.75rem;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-reel-action {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: var(--button-height);
  padding: 0 var(--button-padding-x);
  border-radius: 999px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--reel-accent) 32%, #ffffff), color-mix(in srgb, var(--reel-accent) 72%, #2a153e));
  color: #ffffff;
  text-decoration: none;
  font-size: var(--button-font-size);
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.38);
}

.shows-calendar {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 240px);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
}

.shows-calendar::-webkit-scrollbar {
  height: 0;
}

.show-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 218px;
  padding: 18px;
  border-radius: 24px;
  scroll-snap-align: start;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--show-accent) 34%, transparent), transparent 28%),
    linear-gradient(180deg, rgba(22, 16, 34, 0.98), rgba(9, 7, 16, 0.98));
  border: 1px solid rgba(218, 168, 255, 0.12);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

.show-card.is-loading {
  pointer-events: none;
}

.show-card.is-loading .show-date-badge,
.show-card.is-loading .show-artist,
.show-card.is-loading .show-title,
.show-card.is-loading .show-meta,
.show-card.is-loading .show-lineup,
.show-card.is-loading .show-action {
  color: transparent;
}

.show-card.is-loading .show-date-badge {
  min-height: 30px;
  min-width: 74px;
}

.show-card.is-loading .show-artist {
  min-height: 16px;
  min-width: 92px;
}

.show-card.is-loading .show-title {
  min-height: 38px;
  border-radius: 14px;
}

.show-card.is-loading .show-meta {
  min-height: 18px;
}

.show-card.is-loading .show-lineup {
  min-height: 44px;
  border-radius: 14px;
}

.show-card.is-loading .show-action {
  min-height: 34px;
  min-width: 80px;
}

.show-date-badge {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(244, 237, 252, 0.86);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.show-artist {
  color: rgba(244, 237, 252, 0.78);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.show-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.02rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.show-meta {
  color: rgba(235, 225, 246, 0.74);
  font-size: 0.76rem;
  line-height: 1.4;
}

.show-lineup {
  margin: 0;
  color: rgba(241, 233, 250, 0.82);
  font-size: 0.75rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.show-action {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-top: auto;
  min-height: var(--button-height);
  padding: 0 var(--button-padding-x);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
  font-size: var(--button-font-size);
}

.news-article-card {
  max-width: min(760px, calc(100vw - 28px));
  max-height: 88vh;
  overflow: auto;
}

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

.news-article-image {
  width: 100%;
  min-height: 180px;
  max-height: 280px;
  border-radius: 18px;
  object-fit: cover;
}

.news-article-body {
  display: grid;
  gap: 12px;
  color: rgba(242, 234, 250, 0.84);
  font-size: 0.92rem;
  line-height: 1.62;
}

.news-article-body p {
  margin: 0;
}

.mix-collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  aspect-ratio: 1 / 0.78;
  position: relative;
  z-index: 1;
}

.mix-card.is-editorial-mix .mix-collage {
  display: block;
  aspect-ratio: 1 / 0.78;
  border-radius: 15px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.24);
}

.mix-thumb {
  width: 100%;
  height: 100%;
  border-radius: 13px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(31, 21, 47, 0.95), rgba(11, 8, 18, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.mix-card.is-editorial-mix .mix-thumb {
  border: 0;
  border-radius: 0;
  filter: grayscale(1) contrast(1.12) brightness(0.86);
  box-shadow: none;
}

.mix-card.is-editorial-mix .mix-thumb:not(:first-child) {
  display: none;
}

.mix-card.is-editorial-mix .mix-collage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 8, 18, 0.02), rgba(12, 8, 18, 0.52)),
    radial-gradient(circle at 82% 0%, color-mix(in srgb, var(--mix-accent) 38%, transparent), transparent 42%);
  pointer-events: none;
}

.mix-card .mix-action {
  position: absolute;
  left: auto;
  right: 10px;
  inset-inline-start: auto;
  inset-inline-end: 14px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.15);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  font-size: 0.74rem;
  padding-left: 2px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform var(--motion-fast) var(--motion-ease), filter var(--motion-fast) ease, background var(--motion-medium) var(--motion-ease);
}

.mix-card .mix-action svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: currentColor;
  transform: translateX(1px);
}

.mix-card:hover .mix-action {
  transform: scale(1.04);
  filter: brightness(1.12);
}

.mix-card:active .mix-action {
  transform: scale(0.96);
}

.playlist-section,
.library-section {
  margin-bottom: 8px;
}

.library-section-head {
  margin-bottom: 14px;
}

.library-overview {
  display: grid;
  gap: 16px;
}

.library-shelf {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(218, 168, 255, 0.1);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent 26%),
    linear-gradient(180deg, rgba(24, 16, 36, 0.96), rgba(10, 8, 18, 0.98));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

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

.library-shelf-head strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
}

.liked-play-all-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 36px;
  padding: 0 12px;
  border-color: transparent;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(109, 45, 255, 0.44), rgba(201, 119, 255, 0.18));
  color: #fff;
  box-shadow:
    0 10px 22px rgba(85, 35, 125, 0.25),
    0 0 18px rgba(178, 107, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  isolation: isolate;
  overflow: hidden;
  animation: likedPlayButtonColor 4.8s ease-in-out infinite;
}

.liked-play-all-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background:
    conic-gradient(
      from var(--ai-border-angle),
      rgba(95, 35, 255, 0.12) 0deg,
      rgba(95, 35, 255, 0.12) 38deg,
      #6f2cff 58deg,
      #b26bff 86deg,
      #f2c7ff 118deg,
      #c77dff 150deg,
      #7f35ff 184deg,
      rgba(95, 35, 255, 0.12) 226deg,
      rgba(95, 35, 255, 0.12) 360deg
    );
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  opacity: 1;
  pointer-events: none;
  animation: aiRainbowBorderFlow 2.1s linear infinite;
  z-index: 1;
}

.liked-play-all-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      rgba(95, 35, 255, 0.08),
      rgba(178, 107, 255, 0.26),
      rgba(242, 199, 255, 0.2),
      rgba(123, 45, 255, 0.24),
      rgba(95, 35, 255, 0.08)
    );
  background-size: 240% 100%;
  border: 1px solid rgba(242, 199, 255, 0.1);
  box-shadow:
    inset 0 0 0 1px rgba(111, 44, 255, 0.08),
    0 0 14px rgba(178, 107, 255, 0.28);
  opacity: 0.48;
  pointer-events: none;
  animation: likedPlayButtonSurface 3.8s linear infinite;
  z-index: 0;
}

.liked-play-all-button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  display: block;
  fill: currentColor;
}

.liked-play-all-button svg,
.liked-play-all-button span {
  position: relative;
  z-index: 2;
}

.liked-play-all-button span {
  max-width: 82px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-shelf-count {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
}

.library-media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.library-media-card {
  --library-accent: #477d95;
  position: relative;
  width: 100%;
}

.library-media-card:has(.library-media-remove:not([hidden])) .library-media-main {
  padding-right: 78px;
}

.library-media-main {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(218, 168, 255, 0.06);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(24, 18, 35, 0.9), rgba(14, 10, 22, 0.94));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transform: translateZ(0);
  transition:
    transform var(--motion-medium) var(--motion-ease),
    filter var(--motion-fast) ease,
    opacity var(--motion-fast) ease,
    border-color var(--motion-medium) var(--motion-ease),
    background var(--motion-medium) var(--motion-ease),
    box-shadow var(--motion-medium) var(--motion-ease);
}

.library-media-cover-shell {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--library-accent) 34%, transparent), transparent 26%),
    linear-gradient(180deg, rgba(28, 20, 41, 0.98), rgba(12, 9, 20, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 30px rgba(0, 0, 0, 0.22);
}

.library-media-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--motion-medium) var(--motion-ease), transform var(--motion-medium) var(--motion-ease);
}

.library-media-indicator {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(8, 8, 12, 0.72);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.library-media-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.library-media-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  line-height: 1.16;
  letter-spacing: -0.03em;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.library-media-meta {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
}

.library-media-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.library-media-tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.6rem;
}

.library-media-preview {
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.68rem;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.library-media-remove {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(8, 8, 12, 0.74);
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  transition: transform var(--motion-fast) var(--motion-ease), filter var(--motion-fast) ease, background var(--motion-medium) var(--motion-ease);
}

.library-media-card > .track-like-avatars {
  position: absolute;
  right: 42px;
  bottom: 9px;
  z-index: 2;
}

.phone-screen[data-app-view="liked"] #liked-playlist .library-media-card > .track-like-avatars {
  right: 44px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}

.library-section:not(.is-focused) .library-media-preview {
  -webkit-line-clamp: 1;
}

.library-section:not(.is-focused) .library-media-tags .library-media-tag:nth-child(n+2) {
  display: none;
}

.search-ai-library-shelf {
  border-color: color-mix(in srgb, #b26bff 30%, rgba(255, 255, 255, 0.18));
}

.auto-queue-library-shelf {
  border-color: color-mix(in srgb, #ffc260 30%, rgba(255, 255, 255, 0.18));
}

.search-ai-toggle[aria-pressed="true"] {
  background: #b26bff;
  color: #16091f;
  border-color: color-mix(in srgb, #d9b4ff 62%, rgba(255, 255, 255, 0.24));
}

.auto-queue-toggle[aria-pressed="true"] {
  background: #ffc260;
  color: #241403;
  border-color: color-mix(in srgb, #ffe1a3 62%, rgba(255, 255, 255, 0.24));
}

.search-ai-library-preview,
.auto-queue-library-preview {
  display: block;
  margin: 10px 0 0;
}

.phone-screen[data-search-ai-mode="on"] .search-form {
  border-color: color-mix(in srgb, #b26bff 54%, rgba(255, 255, 255, 0.18));
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.18),
    0 0 0 1px color-mix(in srgb, #d9b4ff 20%, transparent);
}

.search-ai-chat {
  display: grid;
  grid-auto-rows: min-content;
  box-sizing: border-box;
  gap: 11px;
  width: 100%;
  max-height: clamp(268px, 42dvh, 360px);
  margin-top: 10px;
  padding: 15px 13px 14px;
  overflow: auto;
  border: 1px solid rgba(210, 164, 255, 0.28);
  border-radius: 22px;
  background:
    radial-gradient(circle at 9% 0%, rgba(178, 107, 255, 0.2), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(118, 247, 208, 0.06), transparent 24%),
    linear-gradient(180deg, rgba(22, 13, 36, 0.84), rgba(10, 8, 18, 0.68));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.065),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 18px 40px rgba(0, 0, 0, 0.24);
  scrollbar-width: none;
}

.search-ai-chat::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.phone-screen[data-app-view="search"] .search-ai-chat {
  position: relative;
  left: -54px;
  width: calc(100% + 54px);
  max-width: none;
  justify-self: start;
  margin-left: 0;
  margin-right: 0;
}

.search-ai-chat[hidden] {
  display: none;
}

.search-ai-chat.is-ai-thinking {
  border-color: rgba(244, 184, 255, 0.78);
  animation: aiChatNeonPulse 1.15s ease-in-out infinite;
}

.search-ai-chat-message {
  position: relative;
  width: fit-content;
  max-width: min(88%, 360px);
  margin: 0;
  padding: 11px 14px 9px;
  border-radius: 18px;
  color: var(--text);
  font-size: 0.83rem;
  line-height: 1.46;
  animation: searchAiMessageIn 220ms cubic-bezier(.2,.8,.2,1) both;
}

.search-ai-chat-text {
  display: block;
  overflow-wrap: anywhere;
  word-break: normal;
}

.search-ai-chat-time {
  display: block;
  margin-top: 6px;
  color: rgba(230, 244, 239, 0.58);
  font-size: 0.62rem;
  line-height: 1;
}

.search-ai-chat-message.is-assistant {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 11px;
  row-gap: 2px;
  justify-self: start;
  max-width: min(92%, 372px);
  padding: 12px 14px 11px 10px;
  border: 1px solid rgba(210, 164, 255, 0.42);
  border-top-color: rgba(244, 184, 255, 0.54);
  background:
    radial-gradient(circle at 0% 0%, rgba(244, 184, 255, 0.16), transparent 40%),
    linear-gradient(180deg, rgba(35, 22, 52, 0.94), rgba(20, 16, 31, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.075),
    0 12px 24px rgba(0, 0, 0, 0.18),
    0 0 22px rgba(178, 107, 255, 0.1);
  overflow: hidden;
}

.search-ai-chat-message.is-assistant,
.search-ai-choice-row {
  margin-left: 2px;
}

.search-ai-chat-message.is-assistant:not(.is-thinking) {
  animation: aiAssistantBubbleIn 300ms var(--motion-ease-soft) both;
}

.search-ai-chat-message.is-assistant:not(.is-thinking)::before {
  content: "BIA";
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  align-self: start;
  border-radius: 50%;
  color: #16091f;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.8), transparent 18%),
    conic-gradient(from 25deg, #6f2cff, #b26bff, #f4b8ff, #8d45ff, #6f2cff);
  box-shadow:
    0 0 18px rgba(178, 107, 255, 0.52),
    inset 0 0 0 1px rgba(255, 255, 255, 0.62);
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0;
}

.search-ai-chat-message.is-assistant:not(.is-thinking)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 28%, rgba(255, 255, 255, 0.12) 44%, transparent 60% 100%);
  transform: translateX(-120%);
  animation: aiAssistantSheen 1.35s 160ms var(--motion-ease-soft) both;
  pointer-events: none;
}

.search-ai-chat-message.is-user {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  column-gap: 9px;
  align-items: start;
  justify-self: end;
  max-width: min(88%, 332px);
  padding: 9px 9px 9px 14px;
  border: 1px solid rgba(246, 231, 255, 0.42);
  border-top-color: rgba(255, 255, 255, 0.62);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.32), transparent 28%),
    linear-gradient(180deg, #d9b4ff, #b26bff);
  color: #16091f;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(178, 107, 255, 0.24);
}

.search-ai-user-avatar {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  align-self: start;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.72), transparent 24%),
    linear-gradient(135deg, #16091f, #7f35ff);
  color: #fff;
  font: 950 0.72rem/1 "Space Grotesk", system-ui, sans-serif;
  box-shadow:
    0 0 16px rgba(178, 107, 255, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.search-ai-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-ai-chat-message.is-user .search-ai-chat-time {
  color: rgba(22, 9, 31, 0.58);
}

.search-ai-chat-message.is-user .search-ai-chat-text,
.search-ai-chat-message.is-user .search-ai-chat-time {
  grid-column: 1;
}

.search-ai-chat-message.is-assistant .search-ai-chat-text,
.search-ai-chat-message.is-assistant .search-ai-chat-time {
  grid-column: 2;
}

.search-ai-chat-message.is-thinking {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 84px;
  padding: 10px 14px;
}

.ai-choice-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  justify-self: stretch;
  margin-top: 1px;
  padding-top: 2px;
}

.search-ai-track-cards,
.search-ai-artist-cards {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.search-ai-artist-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.search-ai-artist-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
  min-height: 112px;
  padding: 8px 6px 7px;
  border: 1px solid rgba(217, 180, 255, 0.32);
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgba(178, 107, 255, 0.22), transparent 48%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  color: rgba(248, 241, 255, 0.95);
  text-align: center;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 22px rgba(0, 0, 0, 0.16);
}

.search-ai-artist-card .artist-affinity-avatars {
  min-height: 22px;
  margin-top: -2px;
  justify-content: center;
}

.search-ai-artist-card .artist-affinity-avatar {
  width: 22px;
  height: 22px;
  border-width: 1.5px;
}

.search-ai-artist-card > img {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.search-ai-artist-card .artist-affinity-avatar img {
  border: 0;
  border-radius: 50%;
  box-shadow: none;
}

.search-ai-artist-copy {
  display: grid;
  gap: 0;
  width: 100%;
  min-width: 0;
}

.search-ai-artist-copy strong {
  min-width: 0;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1.12;
  white-space: normal;
  overflow: hidden;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.search-ai-artist-options {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.search-ai-artist-options span {
  max-width: 100%;
  min-height: 18px;
  padding: 3px 7px;
  border: 1px solid rgba(217, 180, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(239, 233, 255, 0.72);
  font-size: 0.55rem;
  font-weight: 800;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-ai-artist-card em {
  width: fit-content;
  max-width: 100%;
  min-height: 20px;
  margin-top: auto;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(178, 107, 255, 0.72), rgba(118, 247, 208, 0.26));
  color: #fff;
  font-size: 0.56rem;
  font-style: normal;
  font-weight: 950;
  line-height: 20px;
  white-space: nowrap;
  box-shadow: 0 0 18px rgba(178, 107, 255, 0.18);
}

.search-ai-artist-card:active {
  transform: translateY(1px);
}

.search-ai-track-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 8px;
  min-width: 0;
  min-height: 60px;
  padding: 8px 9px;
  border: 1px solid rgba(217, 180, 255, 0.28);
  border-radius: 14px;
  background:
    radial-gradient(circle at top left, rgba(178, 107, 255, 0.2), transparent 42%),
    rgba(255, 255, 255, 0.055);
  color: rgba(248, 241, 255, 0.94);
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.search-ai-track-card img {
  grid-row: 1 / span 2;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.search-ai-track-card span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.search-ai-track-card strong,
.search-ai-track-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-ai-track-card strong {
  font-size: 0.68rem;
  line-height: 1.05;
}

.search-ai-track-card small {
  color: rgba(239, 233, 255, 0.62);
  font-size: 0.58rem;
  line-height: 1.05;
}

.search-ai-track-card em {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  width: fit-content;
  max-width: 100%;
  min-height: 19px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(178, 107, 255, 0.24);
  color: #f8f1ff;
  font-size: 0.56rem;
  font-style: normal;
  font-weight: 900;
  line-height: 19px;
  white-space: nowrap;
}

.search-ai-track-card:active {
  transform: translateY(1px);
}

.ai-choice-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 34px;
  border: 1px solid rgba(217, 180, 255, 0.48);
  border-radius: 999px;
  padding: 0 10px;
  color: rgba(248, 241, 255, 0.94);
  background:
    linear-gradient(180deg, rgba(178, 107, 255, 0.22), rgba(118, 247, 208, 0.08)),
    rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.16);
  font: 800 0.68rem/1.05 "Space Grotesk", system-ui, sans-serif;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.search-ai-choice-row .ai-choice-chip.is-save {
  grid-column: span 2;
}

@media (max-width: 430px) {
  .search-ai-chat {
    max-height: clamp(244px, 38dvh, 330px);
  }

  .phone-screen[data-app-view="search"] .search-ai-chat {
    left: -52px;
    width: calc(100% + 52px);
    margin-left: 0;
    margin-right: 0;
  }

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

  .search-ai-track-cards {
    grid-template-columns: 1fr;
  }

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

  .search-ai-artist-card {
    min-height: 110px;
  }

  .search-ai-artist-card img {
    width: 44px;
    height: 44px;
  }

  .search-ai-artist-card em {
    align-self: center;
  }

  .search-ai-choice-row .ai-choice-chip.is-save {
    grid-column: 1 / -1;
  }
}

.ai-choice-chip:active {
  transform: translateY(1px);
}

.ai-choice-chip.is-save {
  border-color: rgba(118, 247, 208, 0.5);
  color: #101711;
  background: linear-gradient(135deg, #76f7d0, #f8f1ff);
}

.remote-ai-choice-row {
  gap: 5px;
}

.remote-ai-choice-row .ai-choice-chip {
  min-height: 26px;
  padding: 0 9px;
  font-size: 0.66rem;
}

.ai-thinking-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 50%;
  background: rgba(18, 12, 28, 0.92);
  box-shadow:
    0 0 16px rgba(178, 107, 255, 0.42),
    0 0 26px rgba(118, 247, 208, 0.18);
  animation: aiThinkingAura 1.35s ease-in-out infinite;
  overflow: hidden;
}

.ai-thinking-icon::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0.02) 0 8%,
    #5f23ff 10% 22%,
    #9b4dff 28% 44%,
    #d6a6ff 52% 68%,
    #7f35ff 76% 88%,
    rgba(95, 35, 255, 0.12) 92% 100%
  );
  animation: aiThinkingSpin 0.58s linear infinite;
}

.ai-thinking-icon::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background:
    radial-gradient(circle, rgba(118, 247, 208, 0.2), transparent 48%),
    rgba(18, 12, 28, 0.95);
  box-shadow:
    inset 0 0 0 1px rgba(214, 166, 255, 0.2),
    0 0 12px rgba(155, 77, 255, 0.34);
}

.ai-thinking-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 16px;
}

.ai-thinking-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(246, 231, 255, 0.92);
  box-shadow: 0 0 8px rgba(217, 180, 255, 0.45);
  animation: aiThinkingDot 1.05s ease-in-out infinite;
}

.ai-thinking-dots span:nth-child(2) {
  animation-delay: 0.14s;
}

.ai-thinking-dots span:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes aiThinkingAura {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes aiThinkingSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes aiRainbowBorderSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes aiRainbowBorderFlow {
  to {
    --ai-border-angle: 360deg;
  }
}

@keyframes likedPlayButtonSurface {
  to {
    background-position: 240% 0;
  }
}

@keyframes likedPlayButtonColor {
  0%,
  100% {
    filter: saturate(1) brightness(1);
  }
  45% {
    filter: saturate(1.22) brightness(1.08);
  }
  70% {
    filter: saturate(1.12) brightness(0.98);
  }
}

@keyframes aiChatNeonPulse {
  0%,
  100% {
    box-shadow:
      inset 0 0 0 1px rgba(244, 184, 255, 0.08),
      0 0 0 0 rgba(178, 107, 255, 0.18),
      0 0 18px rgba(178, 107, 255, 0.18);
    filter: saturate(1);
  }
  50% {
    box-shadow:
      inset 0 0 0 1px rgba(244, 184, 255, 0.38),
      0 0 0 3px rgba(178, 107, 255, 0.24),
      0 0 30px rgba(178, 107, 255, 0.56),
      0 0 46px rgba(118, 247, 208, 0.16);
    filter: saturate(1.18);
  }
}

@keyframes aiAssistantBubbleIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.965);
    filter: saturate(0.82);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: saturate(1);
  }
}

@keyframes aiAssistantSheen {
  to {
    transform: translateX(120%);
  }
}

@keyframes aiThinkingDot {
  0%,
  70%,
  100% {
    opacity: 0.38;
    transform: translateY(0);
  }
  35% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-thinking-icon,
  .ai-thinking-icon::before,
  .ai-thinking-icon::after,
  .ai-thinking-dots span,
  .search-form::before,
  .liked-play-all-button,
  .liked-play-all-button::before,
  .liked-play-all-button::after,
  .remote-control-panel.is-remote-ai-enabled .remote-ai-form::before,
  .search-ai-chat.is-ai-thinking,
  .remote-ai-messages.is-ai-thinking,
  .search-ai-chat-message.is-assistant:not(.is-thinking),
  .search-ai-chat-message.is-assistant:not(.is-thinking)::after,
  .remote-ai-message.is-assistant:not(.is-thinking) {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }
}

@keyframes searchAiMessageIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 430px) {
  .search-ai-chat {
    border-color: rgba(210, 164, 255, 0.48);
  }

  .search-ai-chat-message {
    max-width: 92%;
  }

  .search-ai-chat-message.is-assistant {
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 9px;
    max-width: 94%;
    padding: 10px 11px 9px 9px;
    border-color: rgba(210, 164, 255, 0.74);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.08),
      0 12px 28px rgba(0, 0, 0, 0.24);
  }

  .search-ai-chat-message.is-assistant:not(.is-thinking)::before {
    width: 28px;
    height: 28px;
    font-size: 0.56rem;
  }

  .search-ai-chat-message.is-user {
    max-width: 90%;
    grid-template-columns: minmax(0, 1fr) 28px;
  }

  .search-ai-user-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.68rem;
  }
}

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

.playlist-library-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 108px;
  padding: 13px;
  border: 1px solid rgba(218, 168, 255, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(29, 20, 42, 0.96), rgba(17, 12, 27, 0.94));
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
  transform: translateZ(0);
  transition:
    transform var(--motion-medium) var(--motion-ease),
    filter var(--motion-fast) ease,
    opacity var(--motion-fast) ease,
    border-color var(--motion-medium) var(--motion-ease),
    background var(--motion-medium) var(--motion-ease),
    box-shadow var(--motion-medium) var(--motion-ease);
}

.playlist-library-visual {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: 78px;
  height: 78px;
  padding: 4px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.playlist-library-thumb {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.playlist-library-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.playlist-library-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.98);
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.14;
}

.playlist-library-meta {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  line-height: 1.2;
}

.playlist-library-preview {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  line-height: 1.22;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.playlist-card {
  --card-accent: #477d95;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  width: 100%;
  min-height: 116px;
  padding: 14px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--card-accent) 92%, white 8%), var(--card-accent));
  color: #fff;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
  transition:
    transform var(--motion-medium) var(--motion-ease),
    filter var(--motion-fast) ease,
    opacity var(--motion-fast) ease,
    background var(--motion-medium) var(--motion-ease),
    box-shadow var(--motion-medium) var(--motion-ease);
}

.playlist-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transform: translateZ(0);
  transition: transform var(--motion-fast) var(--motion-ease), filter var(--motion-fast) ease, opacity var(--motion-fast) ease;
}

.playlist-thumb {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 1;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.15);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
  transform: none;
}

.playlist-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: 6px;
  padding-right: 6px;
}

.playlist-remove {
  position: relative;
  z-index: 2;
  align-self: start;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.playlist-confirm-card {
  width: min(100%, 420px);
  gap: 16px;
  align-items: center;
  text-align: center;
  padding-top: 26px;
}

.playlist-confirm-icon {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 120, 146, 0.14);
  color: #ffc7d1;
  font-size: 1.5rem;
  line-height: 1;
}

.playlist-confirm-head {
  justify-content: center;
}

.playlist-confirm-copy {
  margin: 0;
  max-width: 32ch;
}

.playlist-confirm-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

.playlist-confirm-danger {
  min-width: 132px;
}

.playlist-modal-card,
.playlist-detail-card {
  width: min(100%, 520px);
}

.playlist-modal-list {
  display: grid;
  gap: 10px;
}

.playlist-save-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(218, 168, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.playlist-save-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.playlist-save-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-save-meta {
  color: var(--muted);
  font-size: 0.74rem;
}

.playlist-save-action {
  color: var(--accent-soft);
  font-size: 0.78rem;
}

.playlist-create-box {
  display: grid;
  gap: 10px;
  padding-top: 6px;
}

.playlist-create-label {
  color: var(--muted);
  font-size: 0.8rem;
}

.playlist-create-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.playlist-create-input {
  width: 100%;
  border: 1px solid rgba(218, 168, 255, 0.14);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(12, 9, 19, 0.96);
  color: var(--text);
  font: inherit;
}

.playlist-detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8rem;
}

.playlist-danger {
  border: 0;
  border-radius: 999px;
  min-height: var(--button-height);
  padding: 0 var(--button-padding-x);
  background: rgba(255, 120, 146, 0.14);
  color: #ffc7d1;
  font: inherit;
  font-size: var(--button-font-size);
  cursor: pointer;
}

.playlist-track-row {
  grid-template-columns: 38px minmax(0, 1fr) 30px;
  align-items: center;
  column-gap: 12px;
  padding: 6px 0;
}

.liked-track-row {
  grid-template-columns: 38px minmax(0, 1fr) 58px 30px;
}

.liked-track-row .player-queue-state {
  display: none;
}

.track-like-avatars {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.track-like-avatar {
  position: relative;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  margin-left: -7px;
  overflow: hidden;
  border: 2px solid rgba(16, 10, 26, 0.96);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.32), transparent 32%),
    linear-gradient(135deg, var(--avatar-accent, #b26bff), #2a153d);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.26);
  transition: transform var(--motion-fast) var(--motion-ease), filter var(--motion-fast) ease;
}

.track-like-avatar:first-child {
  margin-left: 0;
}

.track-like-avatar:hover,
.track-like-avatar:focus-visible {
  z-index: 2;
  outline: none;
  transform: translateY(-2px) scale(1.06);
  filter: brightness(1.12);
}

.track-like-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-like-avatar img + span {
  display: none;
}

.track-like-avatar span {
  font: 950 0.58rem/1 "Space Grotesk", system-ui, sans-serif;
}

.artist-affinity-avatars {
  z-index: 3;
}

.artist-affinity-avatar {
  width: 24px;
  height: 24px;
}

.liked-track-row .track-like-avatars {
  grid-column: 3;
  grid-row: 1;
}

.liked-track-row .player-queue-remove {
  grid-column: 4;
}

.playlist-detail-card .artist-top-tracks {
  display: grid;
  gap: 10px;
}

.playlist-track-row .player-queue-main {
  min-width: 0;
  overflow: hidden;
  padding: 6px 8px;
  border: 1px solid rgba(218, 168, 255, 0.06);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(24, 18, 35, 0.9), rgba(14, 10, 22, 0.94));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.playlist-track-row .player-queue-copy {
  min-width: 0;
  padding-right: 2px;
}

.playlist-title {
  font-family: "Space Grotesk", sans-serif;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.98);
  font-size: 1.04rem;
  line-height: 1.16;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: balance;
  text-shadow: 0 1px 10px rgba(12, 9, 18, 0.2);
}

.playlist-meta {
  max-width: 100%;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  line-height: 1.28;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 0.96;
}

.mini-player-shell {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: var(--bottom-nav-height);
  z-index: 4;
  display: grid;
  gap: 8px;
  transform: translateZ(0);
}

.mini-player {
  --mini-progress-value: 0%;
  --mini-bass-pulse: 0;
  display: grid;
  grid-template-columns: 68px minmax(0, 1.2fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(22, 14, 34, 0.78), rgba(15, 10, 24, 0.68));
  border: 1px solid rgba(218, 168, 255, 0.1);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px) saturate(1.08);
  min-height: 98px;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  transition:
    transform var(--motion-medium) var(--motion-ease),
    filter var(--motion-fast) ease,
    border-color var(--motion-medium) var(--motion-ease),
    background var(--motion-medium) var(--motion-ease),
    box-shadow var(--motion-medium) var(--motion-ease);
}

.mini-player.empty {
  opacity: 0.92;
}

.mini-player::before,
.mini-player::after {
  content: "";
  display: block;
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: calc(4px + (2.2px * var(--mini-bass-pulse)));
  border-radius: 999px;
  pointer-events: none;
  transform-origin: center;
}

.mini-player::before {
  background:
    radial-gradient(circle at 8px 50%, rgba(255, 255, 255, 0.38) 0 20%, transparent 22%) 0 50% / 18px 100% repeat-x,
    radial-gradient(circle at 18px 50%, rgba(216, 137, 255, calc(0.2 + (0.24 * var(--mini-bass-pulse)))) 0 16%, transparent 18%) 0 50% / 24px 100% repeat-x,
    linear-gradient(90deg, rgba(216, 137, 255, 0.18), rgba(255, 255, 255, 0.1));
  box-shadow:
    0 0 calc(5px + (7px * var(--mini-bass-pulse))) rgba(216, 137, 255, calc(0.06 + (0.1 * var(--mini-bass-pulse))));
  opacity: calc(0.7 + (0.14 * var(--mini-bass-pulse)));
  transform: translateY(calc(-0.35px * var(--mini-bass-pulse))) scaleY(calc(1 + (0.1 * var(--mini-bass-pulse))));
  animation: miniProgressWave 1.45s linear infinite;
}

.mini-player::after {
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.98) 0,
      rgba(231, 189, 255, 0.98) max(0%, calc(var(--mini-progress-value) - 18%)),
      rgba(216, 137, 255, 1) var(--mini-progress-value),
      transparent var(--mini-progress-value),
      transparent 100%
    );
  box-shadow:
    0 0 calc(7px + (9px * var(--mini-bass-pulse))) rgba(216, 137, 255, calc(0.08 + (0.14 * var(--mini-bass-pulse)))),
    0 0 calc(2px + (5px * var(--mini-bass-pulse))) rgba(255, 255, 255, calc(0.05 + (0.14 * var(--mini-bass-pulse))));
  transform: translateY(calc(-0.45px * var(--mini-bass-pulse))) scaleY(calc(1 + (0.14 * var(--mini-bass-pulse))));
  opacity: calc(0.86 + (0.14 * var(--mini-bass-pulse)));
  animation: miniProgressPulse 0.95s ease-in-out infinite;
}

.mini-cover {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  transition:
    opacity var(--motion-medium) var(--motion-ease),
    transform var(--motion-medium) var(--motion-ease),
    filter var(--motion-medium) var(--motion-ease);
}

.mini-cover-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  place-items: center;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.32), transparent 28%),
    linear-gradient(180deg, rgba(33, 22, 49, 0.98), rgba(13, 10, 22, 0.98));
}

.mini-cover-logo {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f2f2f2, #d7c8e8);
  color: #17111f;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.26);
}

.mini-player.empty .mini-cover-fallback {
  display: grid;
}

.mini-cover-trigger,
.mini-copy-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transform: translateZ(0);
  transition: transform var(--motion-fast) var(--motion-ease), opacity var(--motion-fast) ease, filter var(--motion-fast) ease;
}

.mini-cover-trigger {
  display: grid;
  place-items: center;
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 18px;
}

.mini-copy-button {
  display: grid;
  gap: 4px;
  justify-items: start;
  min-width: 0;
  width: 100%;
}

.mini-cover-trigger::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 20px;
  background: conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0.08),
    rgba(216, 137, 255, 0.95),
    rgba(178, 107, 255, 0.92),
    rgba(255, 255, 255, 0.94),
    rgba(255, 255, 255, 0.08)
  );
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.mini-cover-trigger::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  background: linear-gradient(180deg, rgba(22, 14, 34, 0.97), rgba(15, 10, 24, 0.94));
  pointer-events: none;
}

.mini-player.is-loading .mini-cover-trigger::before {
  opacity: 1;
  animation: playerLoaderSpin 1.05s linear infinite;
}

.mini-cover {
  position: relative;
  z-index: 1;
}

.mini-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
  width: 100%;
}

.mini-expand-trigger {
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.mini-expand-indicator {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid rgba(218, 168, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(241, 223, 248, 0.82);
  font-size: 0.63rem;
  line-height: 1;
  letter-spacing: 0.02em;
  backdrop-filter: blur(12px);
}

.mini-expand-indicator svg {
  width: 11px;
  height: 11px;
  display: block;
  fill: currentColor;
}

.mini-copy-button {
  padding-top: 18px;
  overflow: hidden;
}

.mini-title-marquee {
  display: block;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.mini-title-marquee.is-marquee-active #track-title {
  animation: miniTitleMarquee var(--mini-title-duration, 10s) linear infinite alternate;
}

#track-title {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem;
  line-height: 1.05;
  white-space: nowrap;
  max-width: none;
  transform: translateX(0);
  transition: opacity var(--motion-medium) var(--motion-ease), transform var(--motion-medium) var(--motion-ease);
}

#track-meta {
  color: var(--muted);
  font-size: 0.74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transition: opacity var(--motion-medium) var(--motion-ease), transform var(--motion-medium) var(--motion-ease);
}

.mini-progress-row {
  display: none;
}

.mini-player:not(.empty) .mini-progress-row {
  display: none;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.phone-screen[data-app-view="search"] .mini-player .mini-progress-row {
  display: none;
}

.mini-time {
  color: var(--muted);
  font-size: 0.72rem;
}

.mini-progress {
  width: 100%;
  accent-color: #cf8dff;
}

.mini-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.circle-action {
  width: 33px;
  height: 33px;
  flex: 0 0 33px;
  border-radius: 999px;
  border: 1px solid rgba(218, 168, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  transition:
    transform var(--motion-fast) var(--motion-ease),
    filter var(--motion-fast) ease,
    background var(--motion-medium) var(--motion-ease),
    border-color var(--motion-medium) var(--motion-ease),
    color var(--motion-medium) var(--motion-ease),
    box-shadow var(--motion-medium) var(--motion-ease);
}

.circle-action:hover {
  transform: translateY(-1px);
}

.circle-action:active {
  transform: scale(0.96);
  filter: brightness(1.14);
}

.mini-actions .circle-action svg {
  width: 14px;
  height: 14px;
}

.circle-action:disabled,
.player-modal-control:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  transform: none;
}

.like-action[data-liked="true"] {
  color: #ffe0ef;
  background: linear-gradient(180deg, rgba(178, 107, 255, 0.26), rgba(216, 137, 255, 0.22));
  border-color: rgba(255, 146, 191, 0.42);
}

.like-action[data-liked="true"] svg {
  filter: drop-shadow(0 0 10px rgba(255, 132, 182, 0.32));
}

#toggle-play .icon-play,
#toggle-play .icon-pause {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: scale(1) rotate(0deg);
  transition:
    opacity var(--motion-fast) var(--motion-ease),
    transform var(--motion-fast) var(--motion-ease);
}

#toggle-play[data-state="playing"] .icon-play,
#toggle-play[data-state="paused"] .icon-pause {
  opacity: 0;
  transform: scale(0.72) rotate(-8deg);
  pointer-events: none;
}

#toggle-play.is-play-pulse,
#player-modal-toggle.is-play-pulse {
  animation: playControlPulse 240ms var(--motion-ease-soft) both;
}

.mini-player.is-track-changing .mini-cover,
.mini-player.is-track-changing #track-title,
.mini-player.is-track-changing #track-meta {
  animation: trackInfoFade 260ms var(--motion-ease-soft) both;
}

.utility-link,
.download-button,
#audio-player {
  display: none;
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  min-height: var(--bottom-nav-height);
  padding: 10px 16px calc(22px + var(--safe-bottom));
  background: linear-gradient(180deg, rgba(11, 8, 18, 0), rgba(11, 8, 18, 0.96) 18%, rgba(11, 8, 18, 0.995));
  backdrop-filter: blur(18px);
}

.bottom-nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 1px;
  background: rgba(218, 168, 255, 0.12);
}

.bottom-nav-item {
  display: grid;
  gap: 5px;
  justify-items: center;
  min-width: 0;
  padding: 8px 4px 0;
  border: 0;
  background: transparent;
  color: var(--muted2);
  font: inherit;
  cursor: pointer;
  min-height: 58px;
  transform: translateZ(0);
  transition: transform var(--motion-fast) var(--motion-ease), filter var(--motion-fast) ease, color var(--motion-medium) var(--motion-ease), opacity var(--motion-fast) ease;
}

.bottom-nav-item > span:last-child {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  line-height: 1.1;
}

.bottom-nav-item.active {
  color: var(--text);
}

.bottom-nav-item.active .bottom-nav-icon {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at 36% 24%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(178, 107, 255, 0.9), rgba(91, 38, 164, 0.92));
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(229, 190, 255, 0.28),
    0 10px 22px rgba(91, 38, 164, 0.38);
  filter: none;
}

.bottom-nav-item.active .bottom-nav-icon svg {
  width: 20px;
  height: 20px;
}

.bottom-nav-icon {
  width: 24px;
  height: 24px;
  line-height: 1;
}

.debug-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  border: 1px solid rgba(218, 168, 255, 0.15);
  border-radius: 999px;
  padding: 11px 14px;
  background: rgba(14, 10, 22, 0.94);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.debug-panel {
  position: fixed;
  right: 18px;
  bottom: 74px;
  z-index: 9;
  width: min(420px, calc(100vw - 24px));
  max-height: min(58vh, 560px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(218, 168, 255, 0.16);
  border-radius: 18px;
  background: rgba(12, 9, 19, 0.96);
  color: var(--text);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.debug-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(218, 168, 255, 0.12);
}

.debug-clear {
  border: 0;
  border-radius: 10px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.debug-log {
  overflow: auto;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.debug-entry {
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  line-height: 1.35;
}

.debug-entry strong {
  color: #f1c4ff;
}

.debug-entry[data-level="success"] strong {
  color: #ffe09c;
}

.debug-entry[data-level="error"] {
  background: rgba(255, 120, 146, 0.14);
}

.artist-modal {
  position: fixed;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: end center;
  padding: 20px;
}

.artist-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 9, 0.62);
  backdrop-filter: blur(8px);
}

.artist-modal-card {
  position: relative;
  width: min(100%, 520px);
  max-height: min(78vh, 760px);
  display: grid;
  gap: 14px;
  padding: 22px 18px 18px;
  border: 1px solid rgba(218, 168, 255, 0.16);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(25, 17, 39, 0.98), rgba(13, 10, 22, 0.97));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  overflow: auto;
}

.artist-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.artist-modal-close svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.artist-modal-head {
  display: grid;
  gap: 6px;
  padding-right: 42px;
}

.artist-modal-head strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
}

#playlist-detail-title {
  cursor: text;
  border-radius: 10px;
  outline: none;
}

#playlist-detail-title.is-editing {
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(218, 168, 255, 0.2);
}

.artist-modal-link {
  color: var(--accent-soft);
  font-size: 0.82rem;
}

.artist-modal-bio {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.55;
}

.artist-modal-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(218, 168, 255, 0.1);
}

.artist-modal-tab {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.artist-modal-tab.active {
  background: rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.artist-modal-section {
  display: grid;
  gap: 12px;
}

.artist-top-tracks {
  display: grid;
  gap: 10px;
}

.artist-track-item {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 74px;
  padding: 9px;
  border: 1px solid rgba(218, 168, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transform: translateZ(0);
  transition:
    transform var(--motion-fast) var(--motion-ease),
    filter var(--motion-fast) ease,
    opacity var(--motion-fast) ease,
    background var(--motion-medium) var(--motion-ease),
    border-color var(--motion-medium) var(--motion-ease),
    box-shadow var(--motion-medium) var(--motion-ease);
}

.artist-album-item {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  overflow: hidden;
}

.artist-album-item.is-disabled {
  cursor: default;
  opacity: 0.62;
}

.artist-album-detail {
  display: grid;
  gap: 12px;
}

.artist-album-detail-head {
  display: grid;
  gap: 10px;
}

.artist-album-detail-copy {
  display: grid;
  gap: 4px;
}

.artist-album-back {
  justify-self: start;
  border: 1px solid rgba(218, 168, 255, 0.14);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 0.76rem;
  cursor: pointer;
}

.artist-track-loading {
  cursor: default;
}

.artist-track-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(31, 21, 47, 0.95), rgba(11, 8, 18, 0.95));
}

.artist-track-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
  align-content: center;
}

.artist-track-title {
  font-size: 0.92rem;
  line-height: 1.08;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist-track-meta {
  color: var(--muted);
  font-size: 0.74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-modal {
  position: fixed;
  inset: 0;
  z-index: 12;
  display: block;
  padding: 0;
}

.player-modal-card {
  --player-modal-accent: #8c67b4;
  --player-modal-accent-soft: #29458f;
  --player-modal-accent-rgb: 140 103 180;
  --player-modal-accent-soft-rgb: 41 69 143;
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 24px;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(circle at 20% 16%, rgb(var(--player-modal-accent-rgb) / 0.48), transparent 30%),
    radial-gradient(circle at 80% 24%, rgb(var(--player-modal-accent-soft-rgb) / 0.4), transparent 32%),
    linear-gradient(180deg, rgb(var(--player-modal-accent-soft-rgb) / 0.2), rgba(12, 14, 16, 1) 52%, rgba(6, 7, 8, 1));
  overflow: hidden;
}

.player-modal-card::before,
.player-modal-card::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(38px);
  opacity: 0.68;
  animation: playerModalGlowFloat 7.5s ease-in-out infinite;
}

.player-modal-card::before {
  top: 20%;
  left: -6%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgb(var(--player-modal-accent-rgb) / 0.62), transparent 68%);
}

.player-modal-card::after {
  right: -8%;
  bottom: 14%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgb(var(--player-modal-accent-soft-rgb) / 0.56), transparent 70%);
  animation-delay: -3s;
}

.player-modal-artwork-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.player-modal-artwork-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 35% 18%, rgb(var(--player-modal-accent-rgb) / 0.18), transparent 24%),
    radial-gradient(circle at 70% 30%, rgb(var(--player-modal-accent-soft-rgb) / 0.16), transparent 28%),
    linear-gradient(180deg, rgba(7, 8, 10, 0.16), rgba(6, 7, 8, 0.58) 42%, rgba(4, 5, 6, 0.92) 100%);
  z-index: 1;
}

.player-modal-backdrop-cover {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  height: 140%;
  object-fit: cover;
  transform: translate(-50%, -50%) scale(1.18);
  filter: blur(52px) saturate(1.16) brightness(0.54);
  opacity: 0.58;
  animation: playerModalBackdropDrift 8.5s ease-in-out infinite;
}

.player-modal-card[data-has-artwork="false"] {
  background:
    radial-gradient(circle at 22% 16%, rgb(var(--player-modal-accent-rgb) / 0.56), transparent 30%),
    radial-gradient(circle at 80% 22%, rgb(var(--player-modal-accent-soft-rgb) / 0.42), transparent 34%),
    linear-gradient(180deg, rgb(var(--player-modal-accent-rgb) / 0.14), rgba(12, 14, 16, 1) 56%, rgba(6, 7, 8, 1));
}

.player-modal-clip {
  display: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  z-index: 0;
}

.player-modal-clip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top center, rgba(126, 150, 154, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(10, 12, 14, 0.12), rgba(7, 8, 9, 0.58) 36%, rgba(4, 5, 6, 0.9) 100%);
  z-index: 2;
}

.player-modal-clip::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 0 36%, rgba(5, 6, 8, 0.28) 72%, rgba(4, 5, 6, 0.6) 100%);
  mix-blend-mode: normal;
  z-index: 2;
}

.player-modal-clip-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(177.78vh, 100vw);
  height: max(100vh, 56.25vw);
  border: 0;
  transform: translate(-50%, -50%) scale(1.14);
  opacity: 0;
  filter: saturate(1.05) contrast(1.02) brightness(0.6);
  transition: opacity 0.26s ease;
}

.player-modal-card[data-live-mode="true"] .player-modal-clip {
  display: block;
}

.player-modal-card[data-has-clip="true"] .player-modal-clip-frame {
  opacity: 0.36;
}

.player-modal-card[data-has-clip="true"] .player-modal-backdrop-cover {
  opacity: 0.18;
}

.player-modal-card[data-live-mode="true"] {
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 92, 92, 0.24), transparent 30%),
    radial-gradient(circle at 80% 22%, rgb(var(--player-modal-accent-soft-rgb) / 0.34), transparent 34%),
    linear-gradient(180deg, rgba(16, 12, 16, 0.96), rgba(7, 8, 10, 1) 58%, rgba(4, 5, 6, 1));
}

.player-modal-card[data-live-mode="true"] .player-modal-kicker {
  color: #ffb4b4;
}

.player-modal-card[data-has-artwork="false"] .player-modal-backdrop-cover {
  opacity: 0;
}

.player-modal-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.player-modal-head-copy {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 3px;
  text-align: center;
}

.player-modal-kicker {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.player-modal-headline {
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-modal-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.player-modal-close,
.player-modal-head-action {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.player-modal-head-action:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.player-modal-close svg,
.player-modal-head-action svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.player-modal-stage {
  min-height: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 16px;
  padding: 0 8px;
  position: relative;
  z-index: 1;
}

.player-modal-card[data-has-clip="true"] .player-modal-stage {
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "copy art"
    "progress art"
    "controls art"
    "actions actions"
    "lyrics lyrics";
  align-items: center;
  justify-items: stretch;
  gap: 16px 18px;
}

.player-modal-art-shell {
  width: min(76vw, 390px);
  aspect-ratio: 1;
  padding: 14px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgb(var(--player-modal-accent-rgb) / 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.player-modal-card[data-has-clip="true"] .player-modal-art-shell {
  grid-area: art;
  width: min(34vw, 148px);
  min-width: 116px;
  align-self: center;
  justify-self: end;
  padding: 8px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.player-modal-cover {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(31, 21, 47, 0.95), rgba(11, 8, 18, 0.95));
  cursor: pointer;
}

.player-modal-cover-fallback {
  position: absolute;
  inset: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--player-modal-accent) 34%, transparent), transparent 28%),
    linear-gradient(180deg, rgba(33, 22, 49, 0.98), rgba(13, 10, 22, 0.98));
  pointer-events: none;
}

.player-modal-cover-logo {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f2f2f2, #d7c8e8);
  color: #17111f;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

@keyframes playerModalBackdropDrift {
  0% {
    transform: translate(-50%, -44%) scale(1.18);
  }
  50% {
    transform: translate(-47%, -61%) scale(1.3);
  }
  100% {
    transform: translate(-50%, -44%) scale(1.18);
  }
}

@keyframes playerModalGlowFloat {
  0% {
    transform: translate3d(0, 30px, 0) scale(0.96);
  }
  50% {
    transform: translate3d(12px, -34px, 0) scale(1.14);
  }
  100% {
    transform: translate3d(0, 30px, 0) scale(0.96);
  }
}

.player-modal-copy {
  width: min(100%, 420px);
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

.player-modal-card[data-has-clip="true"] .player-modal-copy {
  grid-area: copy;
  width: 100%;
  justify-items: start;
  text-align: left;
}

.player-modal-copy > * {
  max-width: 100%;
}

#player-modal-title,
#player-modal-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#player-modal-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  line-height: 1.08;
  color: #fff;
}

#player-modal-meta {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.player-modal-state,
.player-queue-count {
  color: #8ee2aa;
  font-size: 0.76rem;
}

.player-modal-progress-row {
  width: min(100%, 420px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.player-modal-card[data-has-clip="true"] .player-modal-progress-row {
  grid-area: progress;
  width: 100%;
}

.player-modal-time {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.74rem;
}

.player-modal-progress {
  width: 100%;
  accent-color: #ffffff;
}

.player-modal-controls {
  display: flex;
  align-items: center;
  gap: 18px;
}

.player-modal-card[data-has-clip="true"] .player-modal-controls {
  grid-area: controls;
  justify-content: flex-start;
}

.player-modal-control {
  border: 0;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transform: translateZ(0);
  transition: transform var(--motion-fast) var(--motion-ease), filter var(--motion-fast) ease, background var(--motion-medium) var(--motion-ease), box-shadow var(--motion-medium) var(--motion-ease);
}

.player-modal-control svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.player-modal-control.ghost {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: transparent;
}

.player-modal-control.primary {
  width: 70px;
  height: 70px;
  border-radius: 999px;
  background: #fff;
  color: #0a0b0c;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
  position: relative;
  overflow: hidden;
}

.player-modal-control:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.player-modal-control:active {
  transform: scale(0.95);
  filter: brightness(1.12);
}

#player-modal-toggle .icon-play,
#player-modal-toggle .icon-pause {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: scale(1) rotate(0deg);
  transition:
    opacity var(--motion-fast) var(--motion-ease),
    transform var(--motion-fast) var(--motion-ease);
}

#player-modal-toggle[data-state="playing"] .icon-play,
#player-modal-toggle[data-state="paused"] .icon-pause {
  opacity: 0;
  transform: scale(0.72) rotate(-8deg);
  pointer-events: none;
}

.player-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.player-modal-card[data-has-clip="true"] .player-modal-actions {
  grid-area: actions;
  justify-content: flex-start;
}

.player-modal-chip {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  min-height: var(--button-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--button-padding-x);
  background: rgba(255, 255, 255, 0.075);
  color: rgba(255, 249, 232, 0.95);
  font: inherit;
  font-size: var(--button-font-size);
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transform: translateZ(0);
  transition:
    transform var(--motion-fast) var(--motion-ease),
    filter var(--motion-fast) ease,
    opacity var(--motion-fast) ease,
    background var(--motion-medium) var(--motion-ease),
    border-color var(--motion-medium) var(--motion-ease),
    color var(--motion-medium) var(--motion-ease);
}

.player-modal-chip[data-liked="true"] {
  background: rgba(255, 255, 255, 0.92);
  color: #101214;
}

.player-modal-chip.is-active {
  background: rgba(216, 137, 255, 0.22);
  border-color: rgba(216, 137, 255, 0.54);
  color: #fff;
}

.player-modal-chip.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

#player-modal-like {
  order: 1;
}

#player-modal-share {
  order: 2;
}

#player-modal-lyrics {
  order: 3;
}

#player-modal-repeat {
  order: 4;
}

#player-modal-shuffle {
  order: 5;
}

#player-modal-follow {
  order: 6;
}

.player-modal-share-chip {
  width: var(--button-height);
  min-width: var(--button-height);
  padding: 0;
  gap: 7px;
}

.player-modal-share-chip svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: currentColor;
}

.player-modal-share-chip span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.player-modal-share-chip:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.player-modal-lyrics-chip {
  background: linear-gradient(135deg, rgba(146, 255, 98, 0.2), rgba(22, 210, 93, 0.12));
  border-color: rgba(176, 255, 137, 0.42);
  color: #f3ffe9;
}

.player-modal-lyrics-chip.is-active {
  background: #dfffd4;
  border-color: rgba(255, 255, 255, 0.86);
  color: #10230a;
}

.player-lyrics-panel[hidden] {
  display: none !important;
}

.player-lyrics-panel {
  grid-area: lyrics;
  width: min(100%, 640px);
  min-height: 230px;
  max-height: min(42vh, 420px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 12%, rgba(210, 132, 255, 0.24), transparent 28%),
    linear-gradient(180deg, #4b137a 0%, #31105f 42%, #1c0838 100%);
  border: 1px solid rgba(215, 166, 255, 0.3);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #f7ecff;
  justify-self: center;
  margin-top: 10px;
}

.player-lyrics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 8px;
  color: rgba(248, 233, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 850;
}

.player-lyrics-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-lyrics-head button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  color: #fbf2ff;
  cursor: pointer;
}

.player-lyrics-head button[hidden] {
  display: none !important;
}

.player-lyrics-head button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.player-lyrics-head button.is-active {
  background: #f7ecff;
  color: #35115d;
}

.player-lyrics-head svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.player-lyrics-content {
  min-height: 0;
  overflow-y: auto;
  padding: 8px 18px 28px;
  color: rgba(242, 222, 255, 0.58);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.28rem, 3.2vw, 2rem);
  font-weight: 850;
  line-height: 1.16;
  scroll-padding: 42% 0;
}

.player-lyrics-content::-webkit-scrollbar {
  width: 8px;
}

.player-lyrics-content::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(236, 211, 255, 0.38);
}

.player-lyrics-line,
.player-lyrics-plain {
  margin: 0;
  white-space: pre-wrap;
}

.player-lyrics-line {
  padding: 9px 0;
  opacity: 0.62;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition:
    color var(--motion-medium) var(--motion-ease),
    opacity var(--motion-medium) var(--motion-ease),
    transform var(--motion-medium) var(--motion-ease);
}

.player-lyrics-original {
  display: block;
}

.player-lyrics-translation {
  display: block;
  max-width: 94%;
  color: rgba(231, 255, 218, 0.84);
  font-size: clamp(0.78rem, 1.75vw, 1.02rem);
  font-weight: 650;
  line-height: 1.24;
}

.player-lyrics-translation.is-loading {
  color: rgba(231, 255, 218, 0.54);
}

.player-lyrics-line.is-past {
  opacity: 0.34;
}

.player-lyrics-line.is-active {
  color: #fff;
  opacity: 1;
  transform: scale(1.02);
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.24);
}

.player-lyrics-line.is-active .player-lyrics-translation {
  color: rgba(232, 255, 222, 0.96);
}

.player-lyrics-plain {
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 650;
  color: rgba(250, 240, 255, 0.92);
}

body[data-content-mode="podcast"] .player-modal-card {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 201, 118, 0.34), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(255, 145, 96, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(255, 248, 234, 0.98), rgba(255, 227, 199, 0.98) 54%, rgba(255, 211, 177, 0.98));
  color: #2f2115;
}

body[data-content-mode="podcast"] .player-modal-artwork-bg::after {
  background:
    radial-gradient(circle at 35% 18%, rgba(255, 188, 92, 0.16), transparent 24%),
    radial-gradient(circle at 70% 30%, rgba(255, 136, 105, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 245, 225, 0.16), rgba(255, 228, 198, 0.44) 42%, rgba(255, 209, 174, 0.78) 100%);
}

body[data-content-mode="podcast"] .player-modal-backdrop-cover {
  filter: blur(52px) saturate(1.1) brightness(0.92);
  opacity: 0.28;
}

body[data-content-mode="podcast"] .player-modal-kicker,
body[data-content-mode="podcast"] .player-modal-headline,
body[data-content-mode="podcast"] #player-modal-title,
body[data-content-mode="podcast"] .player-modal-control.ghost,
body[data-content-mode="podcast"] .player-modal-head-action,
body[data-content-mode="podcast"] .player-modal-close,
body[data-content-mode="podcast"] .player-queue-item,
body[data-content-mode="podcast"] .playlist-track-row .player-queue-title {
  color: #2f2115;
}

body[data-content-mode="podcast"] .player-modal-kicker {
  color: rgba(89, 55, 28, 0.72);
}

body[data-content-mode="podcast"] .artist-modal-backdrop {
  background: rgba(104, 73, 38, 0.28);
  backdrop-filter: blur(10px);
}

body[data-content-mode="podcast"] .artist-modal-card,
body[data-content-mode="podcast"] .playlist-detail-card,
body[data-content-mode="podcast"] .playlist-modal-card,
body[data-content-mode="podcast"] .playlist-confirm-card,
body[data-content-mode="podcast"] .news-article-card,
body[data-content-mode="podcast"] .moment-modal-card,
body[data-content-mode="podcast"] .search-playlist-card {
  background:
    linear-gradient(180deg, rgba(255, 251, 244, 0.98) 0%, rgba(247, 237, 222, 0.98) 100%);
  color: #2f2115;
  box-shadow: 0 28px 64px rgba(89, 52, 18, 0.24);
}

body[data-content-mode="podcast"] .artist-modal-head strong,
body[data-content-mode="podcast"] #playlist-detail-title,
body[data-content-mode="podcast"] #playlist-save-title,
body[data-content-mode="podcast"] #playlist-track-remove-title,
body[data-content-mode="podcast"] #news-article-title,
body[data-content-mode="podcast"] #moment-modal-title,
body[data-content-mode="podcast"] #search-playlist-title,
body[data-content-mode="podcast"] #artist-modal-name,
body[data-content-mode="podcast"] .artist-track-title {
  color: #2f2115;
}

body[data-content-mode="podcast"] .artist-modal-bio,
body[data-content-mode="podcast"] .artist-track-meta,
body[data-content-mode="podcast"] .playlist-detail-meta,
body[data-content-mode="podcast"] .playlist-modal-subtitle,
body[data-content-mode="podcast"] .playlist-confirm-copy,
body[data-content-mode="podcast"] .news-article-copy,
body[data-content-mode="podcast"] .moment-modal-copy,
body[data-content-mode="podcast"] .search-playlist-subtitle,
body[data-content-mode="podcast"] .album-meta {
  color: rgba(83, 52, 27, 0.82);
}

body[data-content-mode="podcast"] .artist-modal-link,
body[data-content-mode="podcast"] .artist-modal-tab {
  color: #62320f;
}

body[data-content-mode="podcast"] .artist-modal-tab.active,
body[data-content-mode="podcast"] .artist-modal-link:hover {
  color: #9a4b17;
}

body[data-content-mode="podcast"] .player-modal-headline,
body[data-content-mode="podcast"] #player-modal-title {
  color: #2f2115;
}

body[data-content-mode="podcast"] #player-modal-meta,
body[data-content-mode="podcast"] .player-modal-time,
body[data-content-mode="podcast"] .player-queue-meta,
body[data-content-mode="podcast"] .playlist-track-row .player-queue-meta {
  color: rgba(89, 55, 28, 0.78);
}

body[data-content-mode="podcast"] .player-modal-state,
body[data-content-mode="podcast"] .player-queue-count {
  color: #8a4c14;
}

body[data-content-mode="podcast"] .player-modal-close,
body[data-content-mode="podcast"] .player-modal-head-action {
  background: rgba(255, 255, 255, 0.54);
}

body[data-content-mode="podcast"] .player-modal-art-shell,
body[data-content-mode="podcast"] .queue-sheet {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(255, 239, 220, 0.88));
  border-color: rgba(153, 92, 46, 0.14);
  box-shadow:
    0 18px 44px rgba(171, 112, 52, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body[data-content-mode="podcast"] .player-modal-chip {
  border-color: rgba(153, 92, 46, 0.14);
  background: rgba(255, 255, 255, 0.66);
  color: #402816;
}

body[data-content-mode="podcast"] .player-modal-chip[data-liked="true"] {
  background: linear-gradient(135deg, #ffcb82, #ffad70);
  color: #3a2414;
}

body[data-content-mode="podcast"] #player-modal-follow {
  background: rgba(206, 111, 26, 0.14);
  color: #7f3b10;
  border-color: rgba(181, 94, 18, 0.28);
}

body[data-content-mode="podcast"] #player-modal-follow:hover:not(:disabled) {
  background: rgba(206, 111, 26, 0.22);
}

body[data-content-mode="podcast"] .queue-sheet-resize-indicator {
  background: rgba(95, 61, 35, 0.28);
}

body[data-content-mode="podcast"] .player-queue-remove,
body[data-content-mode="podcast"] .player-queue-drag:hover,
body[data-content-mode="podcast"] .player-queue-drag:focus-visible {
  background: rgba(95, 61, 35, 0.08);
  color: #4a2e19;
}

body[data-content-mode="podcast"] .player-queue-drag {
  color: rgba(95, 61, 35, 0.5);
}

body[data-content-mode="podcast"] .playlist-detail-card .artist-top-tracks,
body[data-content-mode="podcast"] .artist-top-tracks,
body[data-content-mode="podcast"] .artist-albums,
body[data-content-mode="podcast"] .artist-album-tracks {
  gap: 12px;
}

body[data-content-mode="podcast"] .playlist-track-row,
body[data-content-mode="podcast"] .artist-track-item,
body[data-content-mode="podcast"] .artist-album-item {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(173, 126, 77, 0.18);
  box-shadow: 0 12px 24px rgba(126, 84, 40, 0.08);
}

body[data-content-mode="podcast"] .playlist-track-row .player-queue-main,
body[data-content-mode="podcast"] .artist-track-item,
body[data-content-mode="podcast"] .artist-album-item {
  align-items: start;
}

body[data-content-mode="podcast"] .podcast-channel-row .player-queue-main {
  background: rgba(255, 252, 247, 0.96);
  border: 1px solid rgba(177, 126, 77, 0.2);
  box-shadow: 0 10px 22px rgba(126, 84, 40, 0.08);
}

body[data-content-mode="podcast"] .playlist-track-row .player-queue-copy {
  min-width: 0;
  width: 100%;
  align-self: start;
  gap: 6px;
}

body[data-content-mode="podcast"] .podcast-channel-row .player-queue-copy {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  gap: 6px;
}

body[data-content-mode="podcast"] .playlist-track-row .player-queue-title,
body[data-content-mode="podcast"] .playlist-track-row .player-queue-meta {
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
}

body[data-content-mode="podcast"] .podcast-channel-row .player-queue-title,
body[data-content-mode="podcast"] .podcast-channel-row .player-queue-meta {
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
}

body[data-content-mode="podcast"] .playlist-track-row .player-queue-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.24;
}

body[data-content-mode="podcast"] .podcast-channel-row .player-queue-title {
  display: block;
  color: #2f2115;
  font-size: 0.9rem;
  line-height: 1.24;
}

body[data-content-mode="podcast"] .playlist-track-row .player-queue-meta {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-height: 1.32;
}

body[data-content-mode="podcast"] .podcast-channel-row .player-queue-meta {
  display: block;
  color: rgba(89, 55, 28, 0.82);
  font-size: 0.74rem;
  line-height: 1.32;
}

body[data-content-mode="podcast"] .playlist-track-row .player-queue-remove,
body[data-content-mode="podcast"] .playlist-danger,
body[data-content-mode="podcast"] .playlist-confirm-button.danger {
  color: #7d350f;
  border-color: rgba(177, 96, 28, 0.24);
  background: rgba(205, 108, 25, 0.1);
}

.queue-sheet {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  width: calc(100% - 28px);
  height: 34vh;
  min-height: 220px;
  max-height: min(56vh, 520px);
  margin: auto auto 0;
  padding: 14px 14px 8px;
  border-radius: 28px 28px 18px 18px;
  background:
    linear-gradient(180deg, rgba(14, 16, 18, 0.78), rgba(7, 8, 10, 0.92)),
    radial-gradient(circle at top center, rgb(var(--player-modal-accent-rgb) / 0.12), transparent 58%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 38px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px) saturate(1.04);
  overflow: hidden;
  align-self: end;
  position: relative;
  z-index: 1;
}

.player-modal-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 4px;
  min-height: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.player-modal-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  height: 46px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.48);
  font: inherit;
  font-size: 0.94rem;
  cursor: pointer;
  transition: color 0.18s ease, transform 0.18s ease;
}

.player-modal-tab span {
  color: currentColor;
  font-size: 1rem;
}

.player-modal-tab strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-modal-tab.active {
  color: #ffd064;
}

.player-modal-tab.active::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -1px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, #ffd064, rgb(var(--player-modal-accent-rgb) / 0.9));
  box-shadow: 0 0 18px rgba(255, 208, 100, 0.24);
}

.player-modal-tab:hover,
.player-modal-tab:focus-visible {
  color: rgba(255, 255, 255, 0.82);
}

.player-modal-tab-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}

.player-modal-tab-panel[hidden] {
  display: none;
}

.queue-sheet-resize-handle {
  justify-self: center;
  width: 76px;
  height: 18px;
  margin-top: -4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: ns-resize;
  touch-action: none;
}

.queue-sheet-resize-indicator {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.queue-sheet-resize-handle:hover .queue-sheet-resize-indicator,
.queue-sheet-resize-handle:focus-visible .queue-sheet-resize-indicator,
.queue-sheet-resize-handle.is-dragging .queue-sheet-resize-indicator {
  transform: scaleX(1.08);
  background: rgba(255, 255, 255, 0.42);
}

.player-modal-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.player-queue {
  display: grid;
  gap: 10px;
  min-height: 0;
  height: 100%;
  max-height: none;
  overflow: auto;
  padding-right: 4px;
  padding-bottom: 2px;
  scrollbar-gutter: stable;
}

.player-shows-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  height: 100%;
  overflow: auto;
  padding-right: 4px;
}

.player-show-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 82px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(10, 10, 12, 0.55);
}

.player-show-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: #ffc45b;
  background: rgba(255, 169, 58, 0.13);
  box-shadow: inset 0 0 0 1px rgba(255, 196, 91, 0.1);
}

.player-show-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.player-show-copy strong,
.player-show-copy small,
.player-show-copy em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-show-copy strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.96rem;
}

.player-show-copy small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
}

.player-show-copy em {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  font-style: normal;
}

.player-show-copy em.is-available {
  color: #73e37c;
}

.player-show-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 192, 83, 0.82);
  background: rgba(255, 182, 67, 0.08);
  color: #ffd064;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.player-show-action:disabled {
  opacity: 0.56;
}

.player-merch-empty {
  display: grid;
  place-items: center;
  min-height: 120px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.54);
  text-align: center;
  padding: 18px;
}

.player-queue-section {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 2px 0 8px;
}

.player-queue-section-title {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.player-queue-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transform: translateZ(0);
  transition: transform var(--motion-fast) var(--motion-ease), filter var(--motion-fast) ease, opacity var(--motion-fast) ease;
}

.player-queue-section .player-queue-item {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.player-queue-item[data-queue-section="manual"],
.player-queue-item[data-queue-section="automatic"] {
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
}

.player-queue-item[data-queue-section="manual"] .player-queue-main {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.player-queue-item[data-queue-section="history"] {
  opacity: 0.74;
}

.player-queue-item.is-dragging {
  opacity: 0.42;
}

.player-queue-item.is-drop-target {
  position: relative;
}

.player-queue-item.is-drop-target::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.88), rgba(216, 137, 255, 0.92));
}

.player-queue-item.is-drop-target-bottom {
  position: relative;
}

.player-queue-item.is-drop-target-bottom::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.88), rgba(216, 137, 255, 0.92));
}

.player-queue-main {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transform: translateZ(0);
  transition:
    transform var(--motion-fast) var(--motion-ease),
    filter var(--motion-fast) ease,
    background var(--motion-medium) var(--motion-ease),
    box-shadow var(--motion-medium) var(--motion-ease);
}

.player-queue-item.is-active {
  color: #fff;
  position: relative;
}

.player-queue-item.is-active .player-queue-main {
  padding: 8px 10px 8px 8px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(216, 137, 255, 0.04)),
    rgba(18, 12, 29, 0.56);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 10px 24px rgba(0, 0, 0, 0.12);
}

.player-queue-drag {
  position: relative;
  width: 38px;
  min-width: 38px;
  height: 52px;
  border: 0;
  border-radius: 12px;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  cursor: grab;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.player-queue-drag::before {
  content: "";
  position: absolute;
  inset: -8px -6px;
}

.player-queue-drag:active {
  cursor: grabbing;
}

.player-queue-drag:hover,
.player-queue-drag:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.76);
  transform: translateY(-1px);
  outline: none;
}

.player-queue-drag span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.playlist-track-row .player-queue-thumb,
.player-queue-item .player-queue-thumb {
  padding: 0;
  box-sizing: border-box;
}

.playlist-track-row:hover .player-queue-drag,
.player-queue-item:hover .player-queue-drag {
  color: rgba(255, 255, 255, 0.76);
}

.drag-floating-preview {
  position: fixed;
  z-index: 1200;
  width: min(460px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: min(88px, calc(100vh - 32px));
  overflow: hidden;
  box-sizing: border-box;
  pointer-events: none;
  opacity: 0.86;
  transform: translate(-50%, -50%) scale(0.98);
  border-radius: 16px;
  background: rgba(20, 14, 31, 0.94);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(218, 168, 255, 0.12);
  backdrop-filter: blur(16px);
}

.player-queue-thumb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(31, 21, 47, 0.95), rgba(11, 8, 18, 0.95));
  cursor: grab;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.player-queue-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
  width: 100%;
}

.player-queue-title,
.player-queue-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-queue-title {
  display: block;
  color: rgba(255, 255, 255, 0.98);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.08;
  max-width: 100%;
}

.player-queue-meta {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  max-width: 100%;
}

.playlist-track-row .player-queue-title {
  color: #fff;
}

.playlist-track-row .player-queue-meta {
  color: rgba(255, 255, 255, 0.78);
}

.playlist-track-row.podcast-channel-row {
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: stretch;
  column-gap: 10px;
}

.playlist-track-row.podcast-channel-row .player-queue-main {
  grid-column: 1 / 2;
  width: 100%;
  min-width: 0;
}

.playlist-track-row.podcast-channel-row .player-queue-remove {
  grid-column: 2 / 3;
  align-self: center;
}

.player-queue-state {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 30px;
  min-width: 30px;
  height: 24px;
  padding: 0 2px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(17, 44, 27, 0.72), rgba(10, 22, 15, 0.46));
  box-shadow:
    inset 0 0 0 1px rgba(102, 255, 163, 0.14),
    0 8px 18px rgba(22, 120, 66, 0.12);
}

.player-queue-state span {
  display: block;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #9cffc1 0%, #34d27a 58%, #119451 100%);
  box-shadow: 0 0 10px rgba(52, 210, 122, 0.28);
  transform-origin: center bottom;
  animation: queueNowPlayingBars 1s ease-in-out infinite;
}

.player-queue-state span:nth-child(1) {
  height: 6px;
  animation-delay: -0.15s;
}

.player-queue-state span:nth-child(2) {
  height: 12px;
  animation-delay: -0.4s;
}

.player-queue-state span:nth-child(3) {
  height: 16px;
  animation-delay: -0.65s;
}

.player-queue-state span:nth-child(4) {
  height: 9px;
  animation-delay: -0.25s;
}

.player-queue-remove {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.07) 0 46%, transparent 48%),
    transparent;
  color: rgba(255, 255, 255, 0.64);
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.player-queue-remove:hover,
.player-queue-remove:focus-visible {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12) 0 46%, transparent 48%),
    transparent;
  color: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
  outline: none;
}

.player-queue-item.is-active .player-queue-state {
  display: inline-flex;
}

.section-action:not(:disabled):hover,
.player-modal-chip:not(:disabled):hover,
.bottom-nav-item:not(:disabled):hover,
.mini-copy-button:hover,
.mini-expand-trigger:hover,
.mini-cover-trigger:hover,
.album-card-main:hover,
.library-media-main:hover,
.playlist-main:hover {
  filter: brightness(1.08);
}

.section-action:not(:disabled):active,
.player-modal-chip:not(:disabled):active,
.bottom-nav-item:not(:disabled):active,
.album-card:not(.is-skeleton):active,
.album-card-main:active,
.mix-card:active,
.library-media-main:active,
.playlist-card:active,
.playlist-main:active,
.playlist-library-card:active,
.artist-track-item:active,
.playlist-track-row:active,
.player-queue-item:active,
.player-queue-main:active,
.mini-player:active,
.mini-cover-trigger:active,
.mini-copy-button:active,
.mini-expand-trigger:active {
  transform: scale(0.978);
  filter: brightness(1.1);
}

.album-card:not(.is-skeleton):active,
.mix-card:active,
.library-media-main:active,
.playlist-card:active,
.playlist-library-card:active,
.player-queue-main:active {
  opacity: 0.94;
}

.album-card:not(.is-skeleton):hover .album-thumb,
.mix-card:hover .mix-thumb,
.library-media-main:hover .library-media-cover,
.playlist-card:hover .playlist-thumb,
.playlist-library-card:hover .playlist-library-visual,
.mini-cover-trigger:hover .mini-cover {
  transform: scale(1.025);
}

.album-card:focus-visible,
.album-card-main:focus-visible,
.mix-card:focus-visible,
.library-media-main:focus-visible,
.playlist-card:focus-visible,
.playlist-main:focus-visible,
.playlist-library-card:focus-visible,
.player-queue-main:focus-visible,
.section-action:focus-visible,
.player-modal-chip:focus-visible,
.circle-action:focus-visible,
.player-modal-control:focus-visible,
.bottom-nav-item:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.18),
    0 0 0 5px rgba(216, 137, 255, 0.16);
}

.mini-player.is-track-changing .mini-cover-fallback,
.player-modal.is-track-changing .player-modal-cover,
.player-modal.is-track-changing .player-modal-backdrop-cover,
.player-modal.is-track-changing #player-modal-title,
.player-modal.is-track-changing #player-modal-meta,
.player-modal.is-track-changing #player-modal-state {
  animation: trackInfoFade 260ms var(--motion-ease-soft) both;
}

@keyframes playControlPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(216, 137, 255, 0.28);
  }
  58% {
    transform: scale(1.06);
    box-shadow: 0 0 0 8px rgba(216, 137, 255, 0.09);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 12px rgba(216, 137, 255, 0);
  }
}

@keyframes trackInfoFade {
  0% {
    opacity: 0.46;
    transform: translateY(5px) scale(0.992);
    filter: blur(1px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes sectionSoftEnter {
  0% {
    opacity: 0.78;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-screen[data-view-transition="in"] .content-section:not([hidden]),
  #toggle-play.is-play-pulse,
  #player-modal-toggle.is-play-pulse,
  .mini-player.is-track-changing .mini-cover,
  .mini-player.is-track-changing #track-title,
  .mini-player.is-track-changing #track-meta,
  .player-modal.is-track-changing .player-modal-cover,
  .player-modal.is-track-changing .player-modal-backdrop-cover,
  .player-modal.is-track-changing #player-modal-title,
  .player-modal.is-track-changing #player-modal-meta,
  .player-modal.is-track-changing #player-modal-state {
    animation: none !important;
  }
}

body[data-low-performance] *,
body[data-low-performance] *::before,
body[data-low-performance] *::after {
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

body[data-low-performance] .splash-cover-card,
body[data-low-performance] .splash-cover-card::after,
body[data-low-performance] .splash-line,
body[data-low-performance] .splash-shape,
body[data-low-performance] .splash-composition::before,
body[data-low-performance] .splash-composition::after,
body[data-low-performance] .splash-logo-particles span,
body[data-low-performance] .splash-lens-flare,
body[data-low-performance] .splash-lens-flare::before,
body[data-low-performance] .splash-lens-flare::after,
body[data-low-performance] .splash-lens-flare span,
body[data-low-performance] .mode-transition-wash::before,
body[data-low-performance] .mode-transition-wash::after,
body[data-low-performance] .mode-transition-orb,
body[data-low-performance] .mode-transition-lens,
body[data-low-performance] .mode-transition-lens span,
body[data-low-performance] .album-card.is-skeleton::before,
body[data-low-performance] .skeleton-block,
body[data-low-performance] .skeleton-line,
body[data-low-performance] .header-particles span,
body[data-low-performance] .header-waves span,
body[data-low-performance] .home-showcase:not(.artist-showcase) .home-showcase-art,
body[data-low-performance] .mini-player::before,
body[data-low-performance] .mini-player::after,
body[data-low-performance] .player-modal-card::before,
body[data-low-performance] .player-modal-card::after,
body[data-low-performance] .player-modal-backdrop-cover,
body[data-low-performance] .news-reel-card::before,
body[data-low-performance] .search-genre-card::before,
body[data-low-performance] .search-genre-card::after {
  animation: none !important;
  filter: none !important;
}

body[data-low-performance] .splash-lens-flare,
body[data-low-performance] .splash-cover-wall,
body[data-low-performance] .splash-logo-particles,
body[data-low-performance] .splash-line,
body[data-low-performance] .splash-shape,
body[data-low-performance] .mode-transition-orb,
body[data-low-performance] .mode-transition-lens,
body[data-low-performance] .header-particles,
body[data-low-performance] .header-waves,
body[data-low-performance] .home-sound-wave {
  display: none !important;
}

body[data-low-performance] .mini-player,
body[data-low-performance] .bottom-nav,
body[data-low-performance] .fixed-header-shell,
body[data-low-performance] .search-form,
body[data-low-performance] .artist-modal-card,
body[data-low-performance] .playlist-detail-card,
body[data-low-performance] .playlist-modal-card,
body[data-low-performance] .first-access-card,
body[data-low-performance] .usage-terms-card,
body[data-low-performance] .remote-network-panel {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body[data-low-performance] .album-card,
body[data-low-performance] .mix-card,
body[data-low-performance] .playlist-card,
body[data-low-performance] .library-media-main,
body[data-low-performance] .search-genre-card,
body[data-low-performance] .moment-card,
body[data-low-performance] .news-reel-card,
body[data-low-performance] .show-card,
body[data-low-performance] .mini-player,
body[data-low-performance] .player-modal-card {
  box-shadow: none !important;
}

@media (max-width: 720px) and (pointer: coarse) {
  body::before,
  body::after,
  .phone-screen::before,
  .fixed-header-shell::before,
  .home-sound-wave,
  .header-particles,
  .mode-transition-flare,
  .mode-transition-vignette {
    display: none !important;
  }

  .content-section {
    contain-intrinsic-size: 1px 460px;
  }

  .album-card:hover,
  .playlist-card:hover,
  .mix-card:hover,
  .library-media-main:hover,
  .search-genre-card:hover {
    transform: none !important;
  }
}

@keyframes queueNowPlayingBars {
  0%,
  100% {
    transform: scaleY(0.45);
    opacity: 0.42;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes particleRise {
  0% {
    transform: translate3d(0, 0, 0) scale(0.7);
    opacity: 0;
  }

  25% {
    opacity: 0.7;
  }

  100% {
    transform: translate3d(0, -28px, 0) scale(1.1);
    opacity: 0;
  }
}

@keyframes playerLoaderSpin {
  from {
    transform: rotate(0deg) scale(0.98);
  }

  to {
    transform: rotate(360deg) scale(0.98);
  }
}

@keyframes mediaPulse {
  from {
    opacity: 0.72;
    background-position: 0% 50%, 0 0;
  }

  to {
    opacity: 1;
    background-position: 100% 50%, 0 0;
  }
}

@keyframes skeletonPremiumPulse {
  0% {
    opacity: 0.76;
    background-position: 120% 0, 0 0;
  }

  52% {
    opacity: 1;
    background-position: 0% 0, 0 0;
  }

  100% {
    opacity: 0.82;
    background-position: -120% 0, 0 0;
  }
}

@keyframes skeletonCardSweep {
  0%,
  22% {
    opacity: 0;
    transform: translateX(-120%);
  }

  46% {
    opacity: 1;
  }

  76%,
  100% {
    opacity: 0;
    transform: translateX(120%);
  }
}

@keyframes miniTitleMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-1 * var(--mini-title-shift, 0px)));
  }
}

@keyframes miniProgressPulse {
  0%,
  100% {
    filter: saturate(1) brightness(1);
  }

  50% {
    filter: saturate(calc(1 + (0.5 * var(--mini-bass-pulse)))) brightness(calc(1 + (0.18 * var(--mini-bass-pulse))));
  }
}

@keyframes miniProgressWave {
  from {
    background-position:
      0 100%,
      0 0,
      0 0;
  }

  to {
    background-position:
      18px 100%,
      22px 0,
      0 0;
  }
}

@media (max-width: 720px) {
  .scene {
    padding: 0 0 110px;
    min-height: 100dvh;
  }

  .phone-frame {
    width: 100vw;
    aspect-ratio: auto;
    height: 100vh;
    min-height: 100dvh;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }

  .phone-screen {
    --header-offset: calc(78px + var(--safe-top));
    --header-offset-expanded: calc(78px + var(--safe-top));
    --header-offset-compact: calc(78px + var(--safe-top));
    --search-section-offset: 16px;
    border-radius: 0;
    height: 100dvh;
    min-height: 100dvh;
  }

  .phone-screen::after {
    display: none;
  }

  .phone-notch {
    display: none;
  }

  .screen-scroll {
    inset: calc(var(--header-offset) + var(--active-search-offset, 0px)) 0 0;
    padding: 0 16px calc(var(--bottom-stack-height) + var(--safe-bottom) + 24px);
  }

  .mini-player-shell {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(var(--bottom-nav-height) + var(--safe-bottom));
    z-index: 7;
  }

  .mini-player {
    grid-template-columns: 58px minmax(0, 1.25fr) auto;
    gap: 9px;
    padding: 10px;
    min-height: 90px;
  }

  .mini-cover {
    width: 58px;
    height: 58px;
  }

  .mini-expand-indicator {
    top: -4px;
    padding: 3px 7px;
    font-size: 0.58rem;
  }

  .mini-actions {
    gap: 6px;
  }

  .circle-action {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .mini-actions .circle-action svg {
    width: 13px;
    height: 13px;
  }

  .mini-copy-button {
    padding-top: 16px;
  }

  .mix-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(154px, 42vw);
  }

  .moment-recommendation-grid {
    grid-template-columns: 1fr;
  }

  .search-genre-playlists-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .moment-hero {
    padding: 18px;
    border-radius: 24px;
  }

  .moment-hero h2 {
    max-width: none;
  }

  .moment-card {
    grid-template-rows: 126px minmax(0, 1fr);
    min-height: 292px;
  }

  .moment-card-content {
    padding: 13px 13px 14px;
  }

  .moment-card-topline {
    display: grid;
    gap: 6px;
  }

  .moment-card-meta {
    text-align: left;
  }

  .album-grid,
  .playlist-grid,
  .library-media-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .phone-screen[data-app-view="library"] .library-media-grid,
  .phone-screen[data-app-view="liked"] .library-media-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .library-shelf {
    padding: 16px;
  }

  .search-playlist-meta-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-playlist-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .home-showcase-stage,
  .home-showcase-overlay {
    min-height: 284px;
  }

  .home-showcase.artist-showcase .home-showcase-stage,
  .home-showcase.artist-showcase .home-showcase-overlay {
    min-height: 172px;
  }

  .home-showcase-overlay {
    padding: 20px;
  }

  .home-showcase.artist-showcase .home-showcase-overlay {
    padding: 15px;
  }

  .home-showcase-title,
  .home-showcase-bio {
    max-width: 100%;
  }

  .home-showcase-title {
    font-size: clamp(2.35rem, 12vw, 3.05rem);
  }

  .home-showcase.artist-showcase .home-showcase-title {
    font-size: 1.08rem;
  }

  .home-showcase-bio {
    font-size: 0.76rem;
    line-height: 1.34;
  }

  .home-showcase-chip {
    min-height: 34px;
    font-size: 0.72rem;
  }

  .home-showcase.artist-showcase .home-showcase-chip {
    min-height: 29px;
    font-size: 0.68rem;
  }

  .album-card,
  .playlist-card {
    min-height: 108px;
    padding: 12px;
  }

  .album-grid[data-layout="search-list"] .album-card {
    width: 100%;
    min-height: 0;
    padding: 5px 7px;
    gap: 6px;
    border-radius: 13px;
  }

  .album-grid[data-layout="search-list"] .album-card-main {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 7px;
  }

  .album-grid[data-layout="search-list"] .album-thumb {
    width: 42px;
    height: 42px;
    border-radius: 9px;
  }

  .album-grid[data-layout="search-list"] .album-copy {
    gap: 2px;
  }

  .album-grid[data-layout="search-list"] .album-title {
    font-size: 0.79rem;
    line-height: 1.08;
  }

  .album-grid[data-layout="search-list"] .album-meta {
    font-size: 0.62rem;
    line-height: 1.02;
  }

  .album-grid[data-layout="search-list"] .album-queue-action {
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
  }

  .playlist-card {
    min-height: 116px;
  }

  .playlist-title {
    font-size: 0.98rem;
    line-height: 1.14;
  }

  .playlist-meta {
    font-size: 0.66rem;
  }

  .album-thumb,
  .playlist-thumb {
    width: 76px;
    height: 76px;
    right: -10px;
    bottom: -8px;
  }

  .mix-card {
    min-height: 208px;
  }

  .debug-panel {
    right: 10px;
    bottom: calc(var(--bottom-stack-height) + var(--safe-bottom) + 18px);
    width: calc(100vw - 20px);
  }

  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: var(--bottom-nav-height);
    padding: 8px max(8px, env(safe-area-inset-left, 0px)) calc(12px + var(--safe-bottom)) max(8px, env(safe-area-inset-right, 0px));
  }

  .bottom-nav-item {
    min-width: 0;
    min-height: 54px;
    gap: 4px;
    padding: 7px 1px 0;
  }

  .bottom-nav-item > span:last-child {
    font-size: clamp(0.62rem, 2.75vw, 0.76rem);
    letter-spacing: 0;
  }

  .bottom-nav-icon {
    width: 22px;
    height: 22px;
  }

  .bottom-nav-item.active .bottom-nav-icon {
    width: 32px;
    height: 32px;
  }

  .bottom-nav-item.active .bottom-nav-icon svg {
    width: 18px;
    height: 18px;
  }

  .bottom-nav::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(-1 * var(--safe-bottom));
    height: calc(var(--safe-bottom) + 8px);
    background: rgba(11, 8, 18, 0.995);
    pointer-events: none;
  }

  .player-modal,
  .artist-modal {
    padding: 0;
  }

  .player-modal-card,
  .artist-modal-card {
    width: 100%;
  }

  .artist-modal-card {
    max-height: 86vh;
    border-radius: 24px;
  }

  .player-modal-card {
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 14px;
    padding: 14px 14px calc(18px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
  }

  .player-modal-stage {
    align-content: start;
    justify-items: center;
    gap: 12px;
    padding: 8px 8px 14px;
  }

  .player-modal-card.has-lyrics-panel .player-modal-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .player-modal-card[data-has-clip="true"] .player-modal-stage {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "copy art"
      "progress progress"
      "controls controls"
      "actions actions"
      "lyrics lyrics";
    gap: 12px 14px;
    justify-items: stretch;
  }

  .player-modal-art-shell {
    width: min(100%, 248px);
    padding: 10px;
    border-radius: 24px;
  }

  .player-modal-card[data-has-clip="true"] .player-modal-art-shell {
    width: min(28vw, 104px);
    min-width: 88px;
    justify-self: end;
    padding: 6px;
    border-radius: 18px;
  }

  .player-modal-copy {
    width: 100%;
    gap: 4px;
  }

  .player-modal-card[data-has-clip="true"] .player-modal-copy {
    justify-items: start;
    text-align: left;
  }

  #player-modal-title {
    font-size: clamp(1.02rem, 4.8vw, 1.28rem);
  }

  #player-modal-meta {
    font-size: 0.82rem;
  }

  .player-modal-progress-row {
    width: 100%;
    gap: 8px;
  }

  .player-modal-controls {
    width: 100%;
    justify-content: center;
    gap: 14px;
  }

  .player-modal-control.primary {
    width: 62px;
    height: 62px;
  }

  .player-modal-actions {
    width: 100%;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    padding-top: 4px;
    padding-bottom: 12px;
  }

  .player-modal-chip {
    min-height: var(--button-height);
    padding: 0 var(--button-padding-x);
    font-size: 0.76rem;
  }

  .player-lyrics-panel {
    width: 100%;
    min-height: 260px;
    max-height: min(50vh, 410px);
    border-radius: 22px;
    order: 6;
    margin-top: 14px;
    flex: 0 0 auto;
  }

  .player-lyrics-head {
    padding: 13px 14px 6px;
  }

  .player-lyrics-content {
    padding: 8px 16px 26px;
    font-size: clamp(1.36rem, 7vw, 2.04rem);
    line-height: 1.14;
  }

  .player-lyrics-line {
    padding: 10px 0;
  }

  .queue-sheet {
    grid-template-rows: auto auto auto minmax(0, 1fr);
    width: calc(100% - 18px);
    height: 36vh;
    min-height: 210px;
    max-height: min(58vh, 460px);
    margin-top: auto;
    padding: 13px 12px 8px;
    border-radius: 22px 22px 16px 16px;
  }

  .player-queue {
    max-height: none;
  }

  .player-queue-item {
    grid-template-columns: 36px minmax(0, 1fr) auto auto;
    gap: 10px;
    min-height: 68px;
  }

  .playlist-track-row {
    grid-template-columns: 36px minmax(0, 1fr) 30px;
    column-gap: 10px;
  }

  .player-queue-drag {
    width: 36px;
    min-width: 36px;
    height: 48px;
  }

  .player-queue-thumb {
    width: 44px;
    height: 44px;
  }

  .player-queue-main {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
  }

  .debug-toggle {
    right: 10px;
    bottom: calc(var(--safe-bottom) + 10px);
  }
}

/* Vibe mobile polish: shared type, spacing and touch scales for the social view. */
@media (max-width: 720px) {
  .phone-screen[data-app-view="vibe"] {
    --vibe-space-xs: 6px;
    --vibe-space-sm: 10px;
    --vibe-space-md: 14px;
    --vibe-space-lg: 18px;
    --vibe-radius-card: 18px;
    --vibe-control-height: 38px;
    --vibe-title-size: 1.52rem;
    --vibe-section-title-size: 1rem;
    --vibe-body-size: 0.82rem;
    --vibe-small-size: 0.7rem;
    --header-offset: calc(110px + var(--safe-top));
    --bottom-nav-height: 86px;
  }

  .phone-screen[data-app-view="vibe"] .app-header {
    min-height: calc(110px + var(--safe-top));
  }

  .phone-screen[data-app-view="vibe"] .app-header::after {
    left: 18px;
    right: 84px;
    top: calc(24px + var(--safe-top));
    font-size: var(--vibe-title-size);
    line-height: 1.08;
  }

  .phone-screen[data-app-view="vibe"] .brand-row {
    left: 18px;
    right: 84px;
    top: calc(57px + var(--safe-top));
  }

  .phone-screen[data-app-view="vibe"] .brand-row::after {
    font-size: 0.88rem;
    line-height: 1.25;
  }

  .phone-screen[data-app-view="vibe"] .social-vibe-trigger {
    top: calc(24px + var(--safe-top));
    right: 18px;
    width: 48px;
    height: 48px;
  }

  .phone-screen[data-app-view="vibe"] .screen-scroll {
    padding-inline: 16px;
    padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 22px);
  }

  .phone-screen[data-app-view="vibe"] .vibe-section {
    gap: var(--vibe-space-lg);
  }

  .phone-screen[data-app-view="vibe"] .vibe-composer,
  .phone-screen[data-app-view="vibe"] .vibe-room-panel,
  .phone-screen[data-app-view="vibe"] .vibe-post-card {
    border-radius: var(--vibe-radius-card);
  }

  .phone-screen[data-app-view="vibe"] .vibe-composer {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .phone-screen[data-app-view="vibe"] .vibe-composer-avatar,
  .phone-screen[data-app-view="vibe"] .vibe-post-avatar {
    width: 48px;
    height: 48px;
    font-size: 0.72rem;
  }

  .phone-screen[data-app-view="vibe"] .vibe-composer-main {
    gap: var(--vibe-space-sm);
  }

  .phone-screen[data-app-view="vibe"] .vibe-composer textarea {
    min-height: 50px;
    padding: 11px 12px;
    border-radius: 15px;
    font-size: var(--vibe-body-size);
    line-height: 1.35;
  }

  .phone-screen[data-app-view="vibe"] .vibe-photo-preview-panel {
    min-width: 0;
    gap: 8px;
    padding: 9px;
  }

  .phone-screen[data-app-view="vibe"] .vibe-photo-preview-panel > span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .phone-screen[data-app-view="vibe"] .vibe-composer-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 6px;
    align-items: end;
    padding-top: 10px;
  }

  .phone-screen[data-app-view="vibe"] .vibe-compose-kind,
  .phone-screen[data-app-view="vibe"] .vibe-post-submit,
  .phone-screen[data-app-view="vibe"] .vibe-room-card button,
  .phone-screen[data-app-view="vibe"] .vibe-room-message-row button {
    min-height: var(--vibe-control-height);
    font-size: 0.74rem;
    line-height: 1.1;
  }

  .phone-screen[data-app-view="vibe"] .vibe-compose-kind {
    gap: 0;
    padding: 0 7px;
    min-width: 0;
    white-space: nowrap;
  }

  .phone-screen[data-app-view="vibe"] .vibe-compose-kind::before {
    display: none;
  }

  .phone-screen[data-app-view="vibe"] .vibe-post-submit {
    min-width: 74px;
    padding-inline: 12px;
    margin-left: 0;
  }

  .phone-screen[data-app-view="vibe"] .vibe-rooms-head {
    gap: 10px;
    margin-top: 0;
  }

  .phone-screen[data-app-view="vibe"] .vibe-rooms-head h3 {
    font-size: var(--vibe-section-title-size);
  }

  .phone-screen[data-app-view="vibe"] .vibe-rooms-head button {
    min-height: 32px;
    padding: 0;
    font-size: 0.74rem;
    white-space: nowrap;
  }

  .phone-screen[data-app-view="vibe"] .vibe-rooms {
    grid-auto-columns: minmax(156px, 1fr);
    gap: 12px;
    padding: 0 0 6px;
  }

  .phone-screen[data-app-view="vibe"] .vibe-room-card {
    min-height: 196px;
    padding: 12px;
    gap: 7px;
    border-radius: 16px;
  }

  .phone-screen[data-app-view="vibe"] .vibe-room-live {
    top: 12px;
    right: 12px;
    padding: 5px 8px;
    font-size: 0.56rem;
  }

  .phone-screen[data-app-view="vibe"] .vibe-room-listeners {
    align-self: start;
    padding-right: 62px;
    font-size: var(--vibe-small-size);
    line-height: 1.2;
  }

  .phone-screen[data-app-view="vibe"] .vibe-room-listeners::before {
    width: 8px;
    height: 8px;
    margin-right: 5px;
  }

  .phone-screen[data-app-view="vibe"] .vibe-room-card > span:first-of-type {
    display: grid;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
  }

  .phone-screen[data-app-view="vibe"] .vibe-room-card strong,
  .phone-screen[data-app-view="vibe"] .vibe-post-head strong,
  .phone-screen[data-app-view="vibe"] .vibe-post-media strong {
    display: block;
    width: 100%;
    font-size: 0.82rem;
    line-height: 1.14;
  }

  .phone-screen[data-app-view="vibe"] .vibe-room-card span span,
  .phone-screen[data-app-view="vibe"] .vibe-post-head small,
  .phone-screen[data-app-view="vibe"] .vibe-post-media span span {
    font-size: var(--vibe-small-size);
    line-height: 1.25;
  }

  .phone-screen[data-app-view="vibe"] .vibe-room-avatars {
    min-height: 30px;
  }

  .phone-screen[data-app-view="vibe"] .vibe-room-avatars i,
  .phone-screen[data-app-view="vibe"] .vibe-room-person {
    width: 28px;
    height: 28px;
  }

  .phone-screen[data-app-view="vibe"] .vibe-room-card button {
    width: 100%;
    border-radius: 12px;
  }

  .phone-screen[data-app-view="vibe"] .vibe-feed-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 40px;
    gap: 8px;
    margin-top: 0;
  }

  .phone-screen[data-app-view="vibe"] .vibe-feed-tabs button {
    min-height: 42px;
    font-size: 0.78rem;
    line-height: 1.1;
    text-align: center;
  }

  .phone-screen[data-app-view="vibe"] .vibe-feed-tabs .vibe-feed-filter {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .phone-screen[data-app-view="vibe"] .vibe-post-card {
    grid-template-columns: 48px minmax(0, 1fr) 84px 26px;
    gap: 8px 10px;
    padding: 14px;
  }

  .phone-screen[data-app-view="vibe"] .vibe-post-head > span:last-child {
    display: grid;
    gap: 2px;
    align-items: start;
  }

  .phone-screen[data-app-view="vibe"] .vibe-post-meta-line {
    gap: 2px;
    font-size: 0.72rem;
  }

  .phone-screen[data-app-view="vibe"] .vibe-post-menu {
    grid-column: 4;
    width: 26px;
    height: 24px;
  }

  .phone-screen[data-app-view="vibe"] .vibe-post-action-menu {
    grid-column: 3 / -1;
    min-width: 102px;
    margin-top: 28px;
  }

  .phone-screen[data-app-view="vibe"] .vibe-post-card > p {
    grid-column: 2 / -1;
    grid-row: 2;
    margin-top: 8px;
    font-size: var(--vibe-body-size);
    line-height: 1.38;
  }

  .phone-screen[data-app-view="vibe"] .vibe-post-edit-panel {
    padding: 10px;
  }

  .phone-screen[data-app-view="vibe"] .vibe-post-media,
  .phone-screen[data-app-view="vibe"] .vibe-post-photo {
    width: 84px;
    min-width: 84px;
    max-width: 84px;
    height: 84px;
    max-height: 140px;
    border-radius: 14px;
  }

  .phone-screen[data-app-view="vibe"] .vibe-post-media::after {
    width: 34px;
    height: 34px;
    margin: 7px;
  }

  .phone-screen[data-app-view="vibe"] .vibe-post-media::before {
    margin: 17px 17px 17px 0;
    border-top-width: 7px;
    border-bottom-width: 7px;
    border-left-width: 10px;
  }

  .phone-screen[data-app-view="vibe"] .vibe-post-actions {
    grid-column: 1 / -1;
    gap: 8px;
    padding-top: 10px;
  }

  .phone-screen[data-app-view="vibe"] .vibe-post-actions button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.7rem;
  }

  .phone-screen[data-app-view="vibe"] .vibe-liked-by {
    grid-column: 1 / -1;
    grid-row: auto;
    font-size: 0.68rem;
  }

  .phone-screen[data-app-view="vibe"] .vibe-comments-panel {
    gap: 10px;
    padding-top: 10px;
  }

  .phone-screen[data-app-view="vibe"] .vibe-comment-item {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    margin-left: calc(var(--comment-depth, 0) * 16px);
  }

  .phone-screen[data-app-view="vibe"] .vibe-comment-avatar {
    width: 30px;
    height: 30px;
  }

  .phone-screen[data-app-view="vibe"] .vibe-comment-item > div {
    padding: 8px 9px;
  }

  .phone-screen[data-app-view="vibe"] .vibe-comment-form {
    padding: 9px;
    border-radius: 14px;
  }

  .phone-screen[data-app-view="vibe"] .bottom-nav {
    min-height: var(--bottom-nav-height);
    padding: 8px max(8px, env(safe-area-inset-left, 0px)) calc(12px + var(--safe-bottom)) max(8px, env(safe-area-inset-right, 0px));
  }

  .phone-screen[data-app-view="vibe"] .bottom-nav-item {
    gap: 4px;
    min-height: 54px;
    padding: 7px 2px 0;
    font-size: 0.74rem;
    line-height: 1.1;
  }

  .phone-screen[data-app-view="vibe"] .bottom-nav-icon {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 380px) {
  .bottom-nav {
    padding-left: 6px;
    padding-right: 6px;
  }

  .bottom-nav-item > span:last-child {
    font-size: 0.62rem;
  }

  .bottom-nav-item.active .bottom-nav-icon {
    width: 30px;
    height: 30px;
  }

  .phone-screen[data-app-view="vibe"] .screen-scroll {
    padding-inline: 14px;
  }

  .phone-screen[data-app-view="vibe"] .vibe-composer {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 14px;
  }

  .phone-screen[data-app-view="vibe"] .vibe-composer-avatar,
  .phone-screen[data-app-view="vibe"] .vibe-post-avatar {
    width: 42px;
    height: 42px;
  }

  .phone-screen[data-app-view="vibe"] .vibe-composer-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .phone-screen[data-app-view="vibe"] .vibe-post-submit {
    grid-column: 1 / -1;
    width: 100%;
  }

  .phone-screen[data-app-view="vibe"] .vibe-rooms {
    grid-auto-columns: minmax(148px, 1fr);
  }

  .phone-screen[data-app-view="vibe"] .vibe-feed-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 38px;
    gap: 6px;
  }

  .phone-screen[data-app-view="vibe"] .vibe-feed-tabs button {
    font-size: 0.72rem;
  }
}

/* Compact composer pass: icon-first tools with collapsible mode details. */
.phone-screen[data-app-view="vibe"] .vibe-composer {
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 11px;
  padding: 14px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 20%, rgba(216, 137, 255, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(18, 13, 28, 0.9), rgba(9, 7, 15, 0.96));
}

.phone-screen[data-app-view="vibe"] .vibe-composer-avatar {
  width: 46px;
  height: 46px;
  align-self: start;
  font-size: 0.72rem;
}

.phone-screen[data-app-view="vibe"] .vibe-composer-main {
  gap: 9px;
}

.phone-screen[data-app-view="vibe"] .vibe-composer textarea {
  min-height: 46px;
  padding: 11px 12px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
  line-height: 1.32;
}

.phone-screen[data-app-view="vibe"] .vibe-composer-context {
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(218, 168, 255, 0.1);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.032);
}

.phone-screen[data-app-view="vibe"] .vibe-composer-context[hidden] {
  display: none !important;
}

.phone-screen[data-app-view="vibe"] .vibe-track-search input {
  min-height: 34px;
}

.phone-screen[data-app-view="vibe"] .vibe-track-preview {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 9px;
  min-height: 48px;
  padding: 6px;
}

.phone-screen[data-app-view="vibe"] .vibe-track-preview img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.phone-screen[data-app-view="vibe"] .vibe-photo-preview-panel {
  padding: 8px;
}

.phone-screen[data-app-view="vibe"] .vibe-photo-preview-panel img {
  max-height: 132px;
  border-radius: 12px;
}

.phone-screen[data-app-view="vibe"] .vibe-composer-actions {
  grid-template-columns: repeat(3, minmax(38px, 1fr)) 44px;
  gap: 7px;
  padding-top: 9px;
}

.phone-screen[data-app-view="vibe"] .vibe-compose-kind,
.phone-screen[data-app-view="vibe"] .vibe-post-submit {
  min-height: 36px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.7rem;
}

.phone-screen[data-app-view="vibe"] .vibe-compose-kind {
  gap: 5px;
  background: rgba(255, 255, 255, 0.045);
}

.phone-screen[data-app-view="vibe"] .vibe-compose-kind::before {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  font-size: 0.95rem;
  line-height: 1;
}

.phone-screen[data-app-view="vibe"] .vibe-compose-kind[data-vibe-kind="moment"]::before {
  content: "\1F465";
  letter-spacing: 0;
  font-size: 0.86rem;
}

.phone-screen[data-app-view="vibe"] .vibe-compose-kind[data-vibe-kind="music"]::before {
  content: "\266B";
  font-size: 1rem;
}

.phone-screen[data-app-view="vibe"] .vibe-compose-kind[data-vibe-kind="photo"]::before {
  content: "\25A3";
  font-size: 0.92rem;
}

.phone-screen[data-app-view="vibe"] .vibe-composer.is-detail-open .vibe-compose-kind.is-active {
  background: linear-gradient(180deg, rgba(178, 107, 255, 0.24), rgba(112, 50, 195, 0.18));
}

.phone-screen[data-app-view="vibe"] .vibe-post-submit {
  width: 44px;
  min-width: 44px;
  padding: 0;
  font-size: 0;
}

.phone-screen[data-app-view="vibe"] .vibe-post-submit::before {
  content: "\27A4";
  font-size: 1rem;
  line-height: 1;
}

.phone-screen[data-app-view="vibe"] .vibe-post-card {
  grid-template-columns: 46px minmax(0, 1fr) 88px 24px;
  gap: 8px 10px;
  padding: 14px;
  border-radius: 18px;
}

.phone-screen[data-app-view="vibe"] .vibe-post-head .vibe-post-avatar {
  grid-row: 1 / span 3;
}

.phone-screen[data-app-view="vibe"] .vibe-post-head > span:last-child {
  gap: 3px;
}

.phone-screen[data-app-view="vibe"] .vibe-post-meta-line {
  display: grid;
  gap: 2px;
  font-size: 0.68rem;
  line-height: 1.22;
}

.phone-screen[data-app-view="vibe"] .vibe-post-listening::before {
  content: "\266B";
  display: inline-block;
  width: 14px;
  color: rgba(216, 137, 255, 0.82);
}

.phone-screen[data-app-view="vibe"] .vibe-post-card > p {
  grid-column: 2 / 3;
  margin-top: 7px;
  font-size: 0.76rem;
  line-height: 1.34;
}

.phone-screen[data-app-view="vibe"] .vibe-post-media,
.phone-screen[data-app-view="vibe"] .vibe-post-photo {
  position: relative;
  grid-column: 3;
  grid-row: 1 / span 3;
  width: 88px;
  min-width: 88px;
  max-width: 88px;
  height: 84px;
  border-radius: 14px;
}

.phone-screen[data-app-view="vibe"] .vibe-post-media {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 12px 24px rgba(0, 0, 0, 0.24);
}

.phone-screen[data-app-view="vibe"] .vibe-post-media::after {
  width: 38px;
  height: 38px;
  margin: 7px;
  border-color: rgba(216, 137, 255, 0.85);
  background: rgba(8, 5, 14, 0.68);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 22px rgba(178, 107, 255, 0.24);
}

.phone-screen[data-app-view="vibe"] .vibe-post-media::before {
  margin: 18px 18px 18px 0;
}

.phone-screen[data-app-view="vibe"] .vibe-post-style-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #b956ff;
  box-shadow: 0 0 10px rgba(185, 86, 255, 0.56);
}

.phone-screen[data-app-view="vibe"] .vibe-post-style-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #b956ff;
  box-shadow: 0 0 10px rgba(185, 86, 255, 0.56);
}

.phone-screen[data-app-view="vibe"] .vibe-post-actions {
  grid-column: 1 / 3;
  gap: 14px;
  margin-top: 9px;
  padding-top: 11px;
}

.phone-screen[data-app-view="vibe"] .vibe-post-actions button {
  gap: 6px;
  min-height: 32px;
  padding: 0 4px;
  font-size: 0.7rem;
  line-height: 1;
  background: transparent;
}

.phone-screen[data-app-view="vibe"] .vibe-post-actions button::before {
  font-size: 1.22rem;
}

.phone-screen[data-app-view="vibe"] .vibe-liked-by {
  grid-column: 3 / -1;
  grid-row: 4;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px;
  margin-top: 9px;
  padding-top: 11px;
  border-top: 1px solid rgba(218, 168, 255, 0.08);
  font-size: 0.62rem;
  line-height: 1.25;
}

.phone-screen[data-app-view="vibe"] .vibe-liked-avatars i {
  width: 20px;
  height: 20px;
}

.phone-screen[data-app-view="vibe"] .vibe-liked-by > span:last-child {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.phone-screen[data-app-view="vibe"] .vibe-post-menu {
  grid-column: 4;
  width: 24px;
  height: 22px;
  font-size: 0.92rem;
}

/* Vibe reference fit: denser feed, larger rooms, cleaner social rows. */
.phone-screen[data-app-view="vibe"] {
  background:
    radial-gradient(circle at 74% 4%, rgba(216, 137, 255, 0.16), transparent 24%),
    radial-gradient(circle at 18% 42%, rgba(98, 55, 180, 0.12), transparent 30%),
    linear-gradient(180deg, #05050b 0%, #070610 42%, #05050b 100%);
}

.phone-screen[data-app-view="vibe"] .screen-scroll {
  padding-inline: 16px;
}

.phone-screen[data-app-view="vibe"] .vibe-section {
  gap: 16px;
}

.phone-screen[data-app-view="vibe"] .vibe-composer {
  min-height: 104px;
  padding: 14px;
  border-radius: 18px;
  border-color: rgba(218, 168, 255, 0.18);
  background:
    radial-gradient(circle at 18% 12%, rgba(216, 137, 255, 0.11), transparent 22%),
    linear-gradient(180deg, rgba(17, 13, 25, 0.72), rgba(9, 7, 16, 0.88));
}

.phone-screen[data-app-view="vibe"] .vibe-composer textarea {
  border: 0;
  background: transparent;
  color: rgba(245, 238, 252, 0.9);
  font-size: 0.84rem;
}

.phone-screen[data-app-view="vibe"] .vibe-compose-kind {
  background: transparent;
  color: rgba(225, 210, 244, 0.72);
}

.phone-screen[data-app-view="vibe"] .vibe-compose-kind.is-active {
  color: #fff;
  background: transparent;
  box-shadow: inset 0 -2px 0 #b142ff;
}

.phone-screen[data-app-view="vibe"] .vibe-post-submit {
  width: 84px;
  min-width: 84px;
  font-size: 0.78rem;
}

.phone-screen[data-app-view="vibe"] .vibe-post-submit::before {
  content: "";
}

.phone-screen[data-app-view="vibe"] .vibe-post-submit::after {
  content: "Publicar";
}

.phone-screen[data-app-view="vibe"] .vibe-rooms-head {
  margin-top: 4px;
}

.phone-screen[data-app-view="vibe"] .vibe-rooms-head h3 {
  font-size: 1.08rem;
}

.phone-screen[data-app-view="vibe"] .vibe-rooms-head button {
  color: #bb6cff;
  font-size: 0.8rem;
}

.phone-screen[data-app-view="vibe"] .vibe-rooms {
  grid-auto-columns: minmax(178px, 49%);
  gap: 14px;
  padding-bottom: 8px;
}

.phone-screen[data-app-view="vibe"] .vibe-room-card {
  min-height: 162px;
  align-content: stretch;
  grid-template-rows: auto 1fr auto;
  gap: 7px;
  padding: 14px;
  border-radius: 18px;
  border-color: rgba(218, 168, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(5, 4, 10, 0.18), rgba(8, 5, 14, 0.5) 42%, rgba(8, 5, 14, 0.96)),
    var(--vibe-room-image),
    linear-gradient(135deg, rgba(99, 36, 161, 0.88), rgba(8, 5, 14, 0.98));
  background-size: cover;
  background-position: center;
}

.phone-screen[data-app-view="vibe"] .vibe-room-live {
  top: 14px;
  left: 14px;
  right: auto;
  padding: 7px 12px;
  font-size: 0.66rem;
}

.phone-screen[data-app-view="vibe"] .vibe-room-listeners {
  align-self: end;
  padding: 42px 0 0;
  font-size: 0.74rem;
}

.phone-screen[data-app-view="vibe"] .vibe-room-card > span:first-of-type {
  align-self: end;
}

.phone-screen[data-app-view="vibe"] .vibe-room-card strong {
  font-size: 0.9rem;
}

.phone-screen[data-app-view="vibe"] .vibe-room-card span span {
  font-size: 0.76rem;
}

.phone-screen[data-app-view="vibe"] .vibe-room-avatars {
  min-height: 34px;
  align-items: center;
  padding-left: 0;
}

.phone-screen[data-app-view="vibe"] .vibe-room-avatars i,
.phone-screen[data-app-view="vibe"] .vibe-room-person {
  width: 30px;
  height: 30px;
  margin-left: -8px;
}

.phone-screen[data-app-view="vibe"] .vibe-room-avatars i:first-child {
  margin-left: 0;
}

.phone-screen[data-app-view="vibe"] .vibe-room-avatars .vibe-room-more {
  background: linear-gradient(180deg, rgba(178, 107, 255, 0.96), rgba(92, 40, 166, 0.96));
  font-size: 0.66rem;
}

.phone-screen[data-app-view="vibe"] .vibe-room-card button {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 76px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(8, 5, 14, 0.34);
  font-size: 0.76rem;
}

.phone-screen[data-app-view="vibe"] .vibe-feed-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr)) 40px;
  gap: 8px;
  margin-top: 0;
}

.phone-screen[data-app-view="vibe"] .vibe-feed-tabs button {
  min-height: 42px;
  font-size: 0.82rem;
}

.phone-screen[data-app-view="vibe"] .vibe-feed-tabs .vibe-feed-filter {
  border-radius: 13px;
}

.phone-screen[data-app-view="vibe"] .vibe-feed {
  gap: 12px;
}

.phone-screen[data-app-view="vibe"] .vibe-post-card {
  grid-template-columns: 46px minmax(0, 1fr) 92px 22px;
  gap: 7px 10px;
  padding: 14px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 8%, rgba(178, 107, 255, 0.09), transparent 30%),
    linear-gradient(180deg, rgba(13, 11, 23, 0.84), rgba(8, 7, 15, 0.94));
}

.phone-screen[data-app-view="vibe"] .vibe-post-avatar {
  width: 44px;
  height: 44px;
}

.phone-screen[data-app-view="vibe"] .vibe-post-head strong {
  font-size: 0.88rem;
}

.phone-screen[data-app-view="vibe"] .vibe-post-meta-line {
  font-size: 0.72rem;
  color: rgba(225, 210, 244, 0.68);
}

.phone-screen[data-app-view="vibe"] .vibe-post-listening strong {
  color: #b956ff;
}

.phone-screen[data-app-view="vibe"] .vibe-post-card > p {
  margin-top: 8px;
  color: #fff;
  font-size: 0.76rem;
}

.phone-screen[data-app-view="vibe"] .vibe-post-media,
.phone-screen[data-app-view="vibe"] .vibe-post-photo {
  width: 92px;
  min-width: 92px;
  max-width: 92px;
  height: 82px;
}

.phone-screen[data-app-view="vibe"] .vibe-post-actions,
.phone-screen[data-app-view="vibe"] .vibe-liked-by {
  margin-top: 10px;
  padding-top: 10px;
}

.phone-screen[data-app-view="vibe"] .vibe-post-actions {
  gap: 18px;
}

.phone-screen[data-app-view="vibe"] .vibe-post-actions button {
  color: rgba(225, 210, 244, 0.78);
  font-size: 0.72rem;
}

.phone-screen[data-app-view="vibe"] .vibe-post-actions button::before {
  font-size: 1.32rem;
}

.phone-screen[data-app-view="vibe"] .vibe-post-actions button.is-liked,
.phone-screen[data-app-view="vibe"] .vibe-post-actions button.is-liked::before {
  color: #b956ff;
}

.phone-screen[data-app-view="vibe"] .vibe-liked-by {
  align-self: stretch;
  font-size: 0.64rem;
}

/* Vibe vertical reel mode. Scoped to the Vibe screen only. */
.phone-screen[data-app-view="vibe"] {
  --header-offset: calc(96px + var(--safe-top));
}

.phone-screen[data-app-view="vibe"] .app-header {
  min-height: calc(96px + var(--safe-top));
  background:
    linear-gradient(180deg, rgba(5, 5, 11, 0.98), rgba(5, 5, 11, 0.68) 72%, rgba(5, 5, 11, 0));
}

.phone-screen[data-app-view="vibe"] .app-header::after {
  content: "Vibe";
  top: calc(24px + var(--safe-top));
  font-size: 1.7rem;
}

.phone-screen[data-app-view="vibe"] .brand-row {
  display: none;
}

.phone-screen[data-app-view="vibe"] .screen-scroll {
  scroll-snap-type: y mandatory;
  scroll-padding-top: 58px;
  overscroll-behavior-y: contain;
}

.phone-screen[data-app-view="vibe"] .vibe-section {
  gap: 12px;
}

.phone-screen[data-app-view="vibe"] .vibe-hero,
.phone-screen[data-app-view="vibe"] .vibe-composer,
.phone-screen[data-app-view="vibe"] .vibe-rooms-head,
.phone-screen[data-app-view="vibe"] .vibe-rooms,
.phone-screen[data-app-view="vibe"] .vibe-room-panel {
  display: none !important;
}

.phone-screen[data-app-view="vibe"] .vibe-feed-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  grid-template-columns: repeat(3, minmax(0, auto)) 42px;
  justify-content: start;
  gap: 22px;
  min-height: 50px;
  margin: -2px 0 2px;
  border-bottom: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 11, 0.96), rgba(5, 5, 11, 0.76) 82%, rgba(5, 5, 11, 0));
}

.phone-screen[data-app-view="vibe"] .vibe-feed-tabs button {
  min-height: 44px;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 850;
}

.phone-screen[data-app-view="vibe"] .vibe-feed-tabs button.is-active::after {
  left: 0;
  right: auto;
  bottom: 1px;
  width: 44px;
  height: 3px;
}

.phone-screen[data-app-view="vibe"] .vibe-feed-tabs .vibe-feed-filter {
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.phone-screen[data-app-view="vibe"] .vibe-feed {
  gap: 14px;
}

.phone-screen[data-app-view="vibe"] .vibe-post-card {
  --vibe-story-progress: 0;
  position: relative;
  min-height: calc(100dvh - var(--bottom-nav-height) - var(--safe-bottom) - 150px);
  max-height: none;
  grid-template-columns: 52px minmax(0, 1fr) 74px;
  grid-template-rows: auto 1fr auto auto auto auto;
  gap: 8px 12px;
  padding: 18px 18px 18px;
  border-radius: 24px;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background:
    linear-gradient(180deg, rgba(5, 5, 11, 0.18), rgba(5, 5, 11, 0.42) 38%, rgba(5, 5, 11, 0.92) 78%, rgba(5, 5, 11, 0.98)),
    var(--vibe-post-bg),
    radial-gradient(circle at 70% 18%, rgba(149, 83, 255, 0.34), transparent 34%),
    linear-gradient(180deg, #090812, #05050b);
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(218, 168, 255, 0.22), 0 16px 42px rgba(0, 0, 0, 0.34);
}

.phone-screen[data-app-view="vibe"] .vibe-story-progress {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  z-index: 3;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(5, 4, 11, 0.32);
  pointer-events: none;
}

.phone-screen[data-app-view="vibe"] .vibe-story-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #ffffff, #d889ff 58%, #8d43ff);
  box-shadow: 0 0 18px rgba(185, 86, 255, 0.62);
  transform: scaleX(var(--vibe-story-progress));
  transform-origin: left center;
  transition: transform 80ms linear;
}

.phone-screen[data-app-view="vibe"] .vibe-post-card.is-vibe-story-paused .vibe-story-progress-fill {
  background: linear-gradient(90deg, #ffffff, #ffe08a 62%, #d889ff);
  transition-duration: 0ms;
}

.phone-screen[data-app-view="vibe"] .vibe-post-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 52% 32%, rgba(255, 255, 255, 0.08), transparent 20%),
    linear-gradient(90deg, rgba(3, 3, 8, 0.74), transparent 44%, rgba(3, 3, 8, 0.66)),
    linear-gradient(180deg, rgba(3, 3, 8, 0.22), transparent 42%, rgba(3, 3, 8, 0.9));
  pointer-events: none;
}

.phone-screen[data-app-view="vibe"] .vibe-post-card > * {
  position: relative;
  z-index: 1;
}

.phone-screen[data-app-view="vibe"] .vibe-post-head {
  display: contents;
}

.phone-screen[data-app-view="vibe"] .vibe-post-head .vibe-post-avatar {
  grid-column: 1;
  grid-row: 1;
  width: 48px;
  height: 48px;
}

.phone-screen[data-app-view="vibe"] .vibe-post-head > span:last-child {
  grid-column: 2 / 3;
  grid-row: 1;
  gap: 3px;
  align-self: center;
}

.phone-screen[data-app-view="vibe"] .vibe-post-head strong {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(5, 4, 11, 0.46);
  backdrop-filter: blur(10px);
  font-size: 1.04rem;
  line-height: 1.08;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-screen[data-app-view="vibe"] .vibe-post-meta-line {
  font-size: 0.82rem;
  line-height: 1.18;
  color: rgba(242, 232, 250, 0.82);
}

.phone-screen[data-app-view="vibe"] .vibe-post-listening {
  width: fit-content;
  max-width: 100%;
  margin-top: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(225, 210, 244, 0.28);
  border-radius: 999px;
  background: rgba(10, 8, 18, 0.58);
  backdrop-filter: blur(10px);
  color: rgba(225, 210, 244, 0.88);
}

.phone-screen[data-app-view="vibe"] .vibe-post-live {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 7px;
  padding: 5px 9px;
  border: 1px solid rgba(70, 255, 152, 0.2);
  border-radius: 999px;
  background: rgba(9, 28, 18, 0.58);
  color: #76ffad;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 18px rgba(44, 255, 127, 0.12);
}

.phone-screen[data-app-view="vibe"] .vibe-post-live::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 999px;
  background: #20ee77;
  box-shadow: 0 0 12px rgba(32, 238, 119, 0.8);
}

.phone-screen[data-app-view="vibe"] .vibe-post-track-artist {
  display: none;
}

.phone-screen[data-app-view="vibe"] .vibe-post-menu {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  color: rgba(245, 238, 252, 0.72);
}

.phone-screen[data-app-view="vibe"] .vibe-post-media,
.phone-screen[data-app-view="vibe"] .vibe-post-photo {
  position: relative;
  grid-column: 3;
  grid-row: 3 / 5;
  align-self: end;
  justify-self: center;
  width: 68px;
  min-width: 68px;
  max-width: 68px;
  height: 92px;
  padding: 6px;
  border-radius: 18px;
  border: 1px solid rgba(218, 168, 255, 0.28);
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(10, 8, 18, 0.64), rgba(7, 6, 14, 0.86));
  box-shadow:
    0 0 0 1px rgba(185, 95, 255, 0.2),
    0 14px 32px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.phone-screen[data-app-view="vibe"] .vibe-post-media img {
  grid-area: 1 / 1;
  align-self: start;
  justify-self: center;
  width: 54px;
  height: 54px;
  border: 2px solid rgba(185, 95, 255, 0.82);
  border-radius: 999px;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
  image-rendering: auto;
  box-shadow:
    0 0 0 3px rgba(149, 83, 255, 0.26),
    0 12px 26px rgba(0, 0, 0, 0.42);
}

.phone-screen[data-app-view="vibe"] .vibe-post-photo {
  height: 74px;
  padding: 0;
  border-radius: 18px;
  object-fit: cover;
}

.phone-screen[data-app-view="vibe"] .vibe-post-media::after {
  content: "Tocando";
  right: auto;
  left: 6px;
  right: 6px;
  bottom: 6px;
  align-self: end;
  justify-self: stretch;
  width: auto;
  height: 18px;
  margin: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(218, 168, 255, 0.22);
  border-radius: 999px;
  background: rgba(5, 4, 11, 0.68);
  color: rgba(245, 238, 252, 0.9);
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0;
}

.phone-screen[data-app-view="vibe"] .vibe-post-media::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  pointer-events: none;
}

.phone-screen[data-app-view="vibe"] .vibe-post-media > span:not(.vibe-post-media-badge):not(.vibe-post-media-pulse) {
  grid-area: 1 / 1;
  align-self: end;
  justify-self: stretch;
  display: grid;
  gap: 1px;
  min-width: 0;
  padding: 0 1px 20px;
  text-align: center;
}

.phone-screen[data-app-view="vibe"] .vibe-post-media > span strong,
.phone-screen[data-app-view="vibe"] .vibe-post-media > span span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-screen[data-app-view="vibe"] .vibe-post-media > span strong {
  color: #fff;
  font-size: 0.52rem;
  line-height: 1.08;
}

.phone-screen[data-app-view="vibe"] .vibe-post-media > span span {
  color: rgba(225, 210, 244, 0.68);
  font-size: 0.48rem;
  line-height: 1.1;
}

.phone-screen[data-app-view="vibe"] .vibe-post-media-badge {
  grid-area: 1 / 1;
  align-self: start;
  justify-self: end;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: linear-gradient(180deg, #bf68ff, #6d2ac0);
  color: #fff;
  box-shadow: 0 8px 18px rgba(91, 38, 164, 0.36);
}

.phone-screen[data-app-view="vibe"] .vibe-post-media-badge .vibe-icon svg {
  width: 11px;
  height: 11px;
}

.phone-screen[data-app-view="vibe"] .vibe-post-media-pulse {
  grid-area: 1 / 1;
  align-self: center;
  justify-self: center;
  display: flex;
  gap: 2px;
  align-items: center;
  height: 15px;
  margin-top: 36px;
  padding: 2px 4px;
  border-radius: 999px;
  background: rgba(4, 4, 10, 0.58);
}

.phone-screen[data-app-view="vibe"] .vibe-post-media-pulse i {
  width: 3px;
  height: 7px;
  border-radius: 999px;
  background: #d28aff;
  animation: vibeMiniPlayerPulse 0.86s ease-in-out infinite;
}

.phone-screen[data-app-view="vibe"] .vibe-post-media-pulse i:nth-child(2) {
  height: 12px;
  animation-delay: -0.28s;
}

.phone-screen[data-app-view="vibe"] .vibe-post-media-pulse i:nth-child(3) {
  height: 9px;
  animation-delay: -0.52s;
}

@keyframes vibeMiniPlayerPulse {
  0%,
  100% {
    transform: scaleY(0.72);
    opacity: 0.62;
  }
  50% {
    transform: scaleY(1.18);
    opacity: 1;
  }
}

.phone-screen[data-app-view="vibe"] .vibe-post-card > p {
  grid-column: 1 / 3;
  grid-row: 3;
  align-self: end;
  margin: 0;
  max-width: 28ch;
  color: #fff;
  font-size: 1rem;
  line-height: 1.28;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.74);
}

.phone-screen[data-app-view="vibe"] .vibe-post-style-chip {
  grid-column: 1 / 3;
  grid-row: 4;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 100%;
  padding: 0 12px;
  border: 1px solid rgba(218, 168, 255, 0.22);
  border-radius: 999px;
  background: rgba(10, 8, 18, 0.54);
  color: #f0d7ff;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(12px);
}

.phone-screen[data-app-view="vibe"] .vibe-post-style-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 999px;
  background: #b956ff;
  box-shadow: 0 0 10px rgba(185, 86, 255, 0.56);
}

.phone-screen[data-app-view="vibe"] .vibe-post-actions {
  grid-column: 3;
  grid-row: 2;
  align-self: start;
  justify-self: center;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.phone-screen[data-app-view="vibe"] .vibe-post-actions button {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  color: #fff;
  font-size: 0.78rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.phone-screen[data-app-view="vibe"] .vibe-post-actions button::before {
  content: none;
}

.phone-screen[data-app-view="vibe"] .vibe-post-actions .vibe-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(218, 168, 255, 0.18);
  border-radius: 999px;
  background: rgba(5, 4, 11, 0.54);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.phone-screen[data-app-view="vibe"] .vibe-post-actions .vibe-icon svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.phone-screen[data-app-view="vibe"] .vibe-post-actions button.is-liked .vibe-icon {
  color: #fff;
  background: linear-gradient(180deg, #c86cff, #742bc8);
  border-color: rgba(235, 199, 255, 0.48);
  box-shadow: 0 0 0 3px rgba(149, 83, 255, 0.22), 0 12px 26px rgba(91, 38, 164, 0.36);
}

.phone-screen[data-app-view="vibe"] .vibe-liked-by {
  grid-column: 3;
  grid-row: 6;
  align-self: end;
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 72px;
  margin: 0;
  padding: 0;
  border: 0;
  text-align: center;
  font-size: 0.74rem;
  color: rgba(245, 238, 252, 0.82);
}

.phone-screen[data-app-view="vibe"] .vibe-liked-avatars {
  justify-content: center;
  padding-left: 0;
}

.phone-screen[data-app-view="vibe"] .vibe-liked-avatars i {
  width: 24px;
  height: 24px;
}

.phone-screen[data-app-view="vibe"] .vibe-liked-by > span:last-child {
  -webkit-line-clamp: 2;
}

.phone-screen[data-app-view="vibe"] .vibe-post-room-dock {
  grid-column: 1 / -1;
  grid-row: 6;
  align-self: end;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 68px;
  padding: 10px 88px 10px 10px;
  border: 1px solid rgba(218, 168, 255, 0.14);
  border-radius: 18px;
  background: rgba(8, 7, 15, 0.64);
  backdrop-filter: blur(14px);
}

.phone-screen[data-app-view="vibe"] .vibe-post-room-avatars {
  display: flex;
  padding-left: 8px;
}

.phone-screen[data-app-view="vibe"] .vibe-post-room-avatars i {
  width: 34px;
  height: 34px;
  margin-left: -8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(135deg, #a65cff, #181022);
  box-shadow: 0 0 0 2px rgba(8, 7, 15, 0.96);
  color: #fff;
  font: 900 0.66rem/1 "Space Grotesk", system-ui, sans-serif;
}

.phone-screen[data-app-view="vibe"] .vibe-post-room-avatars img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-screen[data-app-view="vibe"] .vibe-post-room-dock span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.phone-screen[data-app-view="vibe"] .vibe-post-room-dock strong {
  color: #fff;
  font-size: 0.82rem;
  line-height: 1.16;
}

.phone-screen[data-app-view="vibe"] .vibe-post-room-dock em {
  color: #bb6cff;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
}

.phone-screen[data-app-view="vibe"] .vibe-post-room-dock button {
  grid-column: 2;
  justify-self: start;
  min-width: 118px;
  min-height: 38px;
  margin-top: 3px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: linear-gradient(180deg, rgba(185, 95, 255, 0.9), rgba(112, 50, 195, 0.92));
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
}

.phone-screen[data-app-view="vibe"] .vibe-comments-panel {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 86px;
  z-index: 4;
  max-height: min(58%, 390px);
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(218, 168, 255, 0.18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 14% 0%, rgba(185, 95, 255, 0.18), transparent 34%),
    rgba(8, 7, 15, 0.92);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
}

/* TikTok-like Vibe post composition: sparse stage, right rail actions, bottom identity. */
.phone-screen[data-app-view="vibe"] .vibe-feed-tabs {
  grid-template-columns: repeat(3, minmax(0, auto)) 34px;
  justify-content: center;
  gap: 28px;
  margin-bottom: 4px;
  padding-inline: 6px;
}

.phone-screen[data-app-view="vibe"] .vibe-feed-tabs .vibe-feed-filter {
  position: absolute;
  right: 6px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
}

.phone-screen[data-app-view="vibe"] .vibe-post-card {
  min-height: calc(100dvh - var(--bottom-nav-height) - var(--safe-bottom) - 122px);
  grid-template-columns: minmax(0, 1fr) 50px;
  grid-template-rows: minmax(0, 1fr) auto auto auto;
  gap: 7px 8px;
  padding: 14px 6px 22px 18px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.22) 42%, rgba(0, 0, 0, 0.78) 78%, rgba(0, 0, 0, 0.94)),
    var(--vibe-post-bg),
    #000;
  background-size: cover;
  background-position: center;
  box-shadow: none;
}

.phone-screen[data-app-view="vibe"] .vibe-post-card::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.32), transparent 52%, rgba(0, 0, 0, 0.28)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), transparent 38%, rgba(0, 0, 0, 0.86));
}

.phone-screen[data-app-view="vibe"] .vibe-post-head,
.phone-screen[data-app-view="vibe"] .vibe-post-head > span:last-child {
  display: contents;
}

.phone-screen[data-app-view="vibe"] .vibe-post-head .vibe-post-avatar {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  justify-self: end;
  width: 44px;
  height: 44px;
  margin-bottom: 236px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.34), 0 10px 22px rgba(0, 0, 0, 0.38);
}

.phone-screen[data-app-view="vibe"] .vibe-post-head .vibe-post-avatar::after {
  content: "+";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ff285d;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  transform: translateX(-50%);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.72);
}

.phone-screen[data-app-view="vibe"] .vibe-post-head strong {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  max-width: min(100%, 28ch);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.82);
  backdrop-filter: none;
  cursor: pointer;
}

.phone-screen[data-app-view="vibe"] .vibe-post-head strong::before {
  content: "@";
}

.phone-screen[data-app-view="vibe"] .vibe-post-meta-line {
  grid-column: 1;
  grid-row: 4;
  display: grid;
  gap: 4px;
  align-self: end;
  color: #fff;
  font-size: 0.78rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.82);
}

.phone-screen[data-app-view="vibe"] .vibe-post-meta-line > small {
  display: none;
}

.phone-screen[data-app-view="vibe"] .vibe-post-listening {
  max-width: 30ch;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.25;
  backdrop-filter: none;
}

.phone-screen[data-app-view="vibe"] .vibe-post-listening::before {
  content: "♫ ";
}

.phone-screen[data-app-view="vibe"] .vibe-post-live {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  width: 9px;
  height: 9px;
  margin: 0 18px 228px 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid #fff;
  background: #ff285d;
  color: transparent;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.72);
}

.phone-screen[data-app-view="vibe"] .vibe-post-live::before {
  display: none;
}

.phone-screen[data-app-view="vibe"] .vibe-post-track-artist {
  display: none;
}

.phone-screen[data-app-view="vibe"] .vibe-post-card > p {
  grid-column: 1;
  grid-row: 3;
  align-self: end;
  max-width: min(100%, 30ch);
  margin: 2px 0 0;
  color: #fff;
  font-size: 0.82rem;
  line-height: 1.28;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.82);
}

.phone-screen[data-app-view="vibe"] .vibe-post-style-chip {
  grid-column: 1;
  grid-row: 4;
  align-self: start;
  justify-self: start;
  min-height: 18px;
  margin-top: 23px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.68rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.82);
  backdrop-filter: none;
}

.phone-screen[data-app-view="vibe"] .vibe-post-style-chip::before {
  width: 5px;
  height: 5px;
  margin-right: 6px;
  background: #ff285d;
  box-shadow: 0 0 10px rgba(255, 40, 93, 0.58);
}

.phone-screen[data-app-view="vibe"] .vibe-post-actions {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  justify-self: end;
  gap: 10px;
  margin-bottom: 100px;
}

.phone-screen[data-app-view="vibe"] .vibe-post-actions button {
  min-width: 42px;
  min-height: 45px;
  gap: 3px;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 900;
}

.phone-screen[data-app-view="vibe"] .vibe-post-actions .vibe-icon {
  width: 36px;
  height: 36px;
  border: 0;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.phone-screen[data-app-view="vibe"] .vibe-post-actions .vibe-icon svg {
  width: 22px;
  height: 22px;
}

.phone-screen[data-app-view="vibe"] .vibe-post-actions button.is-liked .vibe-icon {
  background: #ff285d;
  box-shadow: 0 8px 20px rgba(255, 40, 93, 0.26);
}

.phone-screen[data-app-view="vibe"] .vibe-post-media {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  justify-self: end;
  width: 38px;
  min-width: 38px;
  max-width: 38px;
  height: 38px;
  margin-bottom: 16px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.16);
  backdrop-filter: none;
}

.phone-screen[data-app-view="vibe"] .vibe-post-media img {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  box-shadow: none;
}

.phone-screen[data-app-view="vibe"] .vibe-post-media::before,
.phone-screen[data-app-view="vibe"] .vibe-post-media::after,
.phone-screen[data-app-view="vibe"] .vibe-post-media-badge,
.phone-screen[data-app-view="vibe"] .vibe-post-media-pulse,
.phone-screen[data-app-view="vibe"] .vibe-post-media > span:not(.vibe-post-media-badge):not(.vibe-post-media-pulse) {
  display: none;
}

.phone-screen[data-app-view="vibe"] .vibe-liked-by {
  display: none;
}

.phone-screen[data-app-view="vibe"] .vibe-post-room-dock {
  grid-column: 1;
  grid-row: 4;
  align-self: end;
  justify-self: start;
  min-height: 30px;
  max-width: min(100%, 230px);
  margin-top: 46px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.phone-screen[data-app-view="vibe"] .vibe-post-room-avatars {
  display: none;
}

.phone-screen[data-app-view="vibe"] .vibe-post-room-dock span:nth-child(2) {
  display: none;
}

.phone-screen[data-app-view="vibe"] .vibe-post-room-dock button {
  grid-column: 1;
  min-width: 0;
  min-height: 28px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-size: 0.64rem;
  backdrop-filter: blur(10px);
}

.phone-screen[data-app-view="vibe"] .vibe-story-progress {
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.2);
}

.phone-screen[data-app-view="vibe"] .vibe-comments-list {
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.phone-screen[data-app-view="vibe"] .vibe-comment-item {
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  margin-left: calc(var(--comment-depth, 0) * 16px);
}

.phone-screen[data-app-view="vibe"] .vibe-comment-avatar {
  width: 30px;
  height: 30px;
}

.phone-screen[data-app-view="vibe"] .vibe-comment-item > div {
  border: 1px solid rgba(218, 168, 255, 0.08);
  background: rgba(255, 255, 255, 0.065);
}

.phone-screen[data-app-view="vibe"] .vibe-comment-reply-context {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.phone-screen[data-app-view="vibe"] .vibe-comment-reply-context button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 900;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-panel:not([hidden]) {
  position: absolute;
  inset: 0;
  z-index: 24;
  display: grid !important;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto auto;
  gap: 12px;
  max-height: none;
  min-height: 100%;
  padding: calc(var(--safe-top) + 18px) 14px calc(var(--safe-bottom) + 14px);
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(2, 3, 10, 0.42), rgba(3, 3, 10, 0.94) 36%, #03040b 100%),
    var(--vibe-room-panel-image, linear-gradient(135deg, rgba(92, 45, 150, 0.42), rgba(4, 5, 13, 0.95))),
    radial-gradient(circle at 78% 4%, rgba(166, 92, 255, 0.32), transparent 32%),
    linear-gradient(180deg, #050713, #03040b 70%, #02030a);
  background-size: cover;
  background-position: center top;
  box-shadow: none;
  backdrop-filter: none;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-panel:not([hidden])::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.66), transparent 34%, rgba(0, 0, 0, 0.58)),
    radial-gradient(circle at 50% 28%, rgba(155, 74, 255, 0.14), transparent 34%);
  pointer-events: none;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-panel:not([hidden]) > * {
  position: relative;
  z-index: 1;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-panel-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
  padding: 0 2px;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-panel-head .vibe-kicker {
  display: inline-flex;
  width: fit-content;
  margin-top: 3px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(126, 54, 205, 0.52);
  color: #d8a8ff;
  font-size: 0.72rem;
  font-weight: 850;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-panel-head h3 {
  margin: 0;
  color: #fff;
  font-size: 1.48rem;
  line-height: 1.08;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-panel-head p {
  margin: 4px 0 0;
  color: rgba(225, 210, 244, 0.78);
  font-size: 0.86rem;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-back,
.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-share {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-back svg,
.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-share svg,
.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-play svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-now-card,
.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-people-shell,
.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-messages,
.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-message-row {
  border: 1px solid rgba(216, 168, 255, 0.17);
  background: rgba(9, 8, 18, 0.68);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(18px);
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-now-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 62px;
  gap: 13px;
  align-items: center;
  min-height: 132px;
  padding: 12px;
  border-radius: 22px;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-now-card img {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(166, 92, 255, 0.32), rgba(9, 8, 18, 0.92));
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-now-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-now-copy strong {
  color: #fff;
  font-size: 1.02rem;
  line-height: 1.14;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-now-copy > span:not(.vibe-room-time) {
  color: rgba(225, 210, 244, 0.78);
  font-size: 0.82rem;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-wave {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  align-items: center;
  width: 100%;
  max-width: 220px;
  height: 30px;
  margin-top: 2px;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-wave i {
  height: 4px;
  border-radius: 999px;
  background: rgba(190, 104, 255, 0.44);
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-wave i:nth-child(3n + 1) {
  height: 18px;
  background: #bb65ff;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-wave i:nth-child(4n) {
  height: 26px;
  background: #d18aff;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-time {
  display: flex;
  justify-content: space-between;
  max-width: 220px;
  color: rgba(225, 210, 244, 0.72);
  font-size: 0.74rem;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-time em {
  font-style: normal;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-play {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(178, 92, 255, 0.72);
  border-radius: 999px;
  background: rgba(45, 19, 80, 0.42);
  color: #fff;
  box-shadow: 0 0 26px rgba(156, 70, 255, 0.34);
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-people-shell {
  display: grid;
  gap: 14px;
  padding: 16px 14px;
  border-radius: 22px;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-people-shell > strong {
  color: #fff;
  font-size: 1rem;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-people {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-person {
  width: auto;
  height: auto;
  display: grid;
  justify-items: center;
  gap: 7px;
  margin: 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-person-avatar {
  position: relative;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(175, 84, 255, 0.88);
  border-radius: 999px;
  background: linear-gradient(135deg, #a65cff, #181022);
  box-shadow: 0 0 0 3px rgba(29, 16, 49, 0.78);
  font-style: normal;
  font-weight: 900;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-person.is-host .vibe-room-person-avatar::before {
  content: "Host";
  position: absolute;
  left: -2px;
  top: -2px;
  padding: 3px 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, #b85cff, #7430bc);
  color: #fff;
  font-size: 0.58rem;
  line-height: 1;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-person em {
  max-width: 100%;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-person.is-more .vibe-room-person-avatar {
  border-style: dashed;
  border-color: rgba(225, 210, 244, 0.42);
  background: rgba(255, 255, 255, 0.04);
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  gap: 18px;
  align-items: center;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(216, 168, 255, 0.14);
  border-radius: 20px 20px 0 0;
  background: rgba(9, 8, 18, 0.66);
  backdrop-filter: blur(18px);
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-tabs button {
  position: relative;
  min-height: 50px;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(225, 210, 244, 0.58);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-tabs button.is-active {
  color: #c46dff;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-tabs button.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: #c46dff;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-tabs span {
  margin-left: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #a849ff;
  color: #fff;
  font-size: 0.72rem;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-messages {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 240px;
  max-height: none;
  overflow-y: auto;
  margin-top: -12px;
  padding: 18px 14px 16px;
  border-top: 0;
  border-radius: 0 0 22px 22px;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-chat-message {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  color: #fff;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-chat-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(135deg, #a65cff, #181022);
  font-style: normal;
  font-weight: 900;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-chat-message > span {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 5px;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-chat-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(225, 210, 244, 0.58);
  font-size: 0.76rem;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-chat-head strong {
  color: #fff;
  font-size: 0.9rem;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-chat-head em {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(155, 74, 255, 0.54);
  color: #d8a8ff;
  font-style: normal;
  font-weight: 900;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-chat-bubble {
  max-width: min(100%, 32ch);
  padding: 10px 13px;
  border-radius: 0 16px 16px;
  background: rgba(255, 255, 255, 0.075);
  color: #fff;
  line-height: 1.28;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-like {
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: linear-gradient(180deg, rgba(155, 74, 255, 0.82), rgba(74, 31, 122, 0.9));
  color: #e7c8ff;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-system-message {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 3px 0 0;
  color: #c46dff;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-system-message span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #9d4aff, #4b1f7a);
  color: #fff;
  font-weight: 900;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-system-message strong,
.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-system-message small {
  grid-column: 2;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-message-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 10px;
  padding: 10px;
  border-radius: 22px;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-message-row input {
  min-height: 54px;
  border: 1px solid rgba(216, 168, 255, 0.12);
  border-radius: 18px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  font: inherit;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-message-row button {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(216, 168, 255, 0.2);
  border-radius: 18px;
  background: linear-gradient(180deg, #b85cff, #7430bc);
  color: #fff;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-message-row svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-control-dock {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 102px;
  margin: 2px -14px calc(-1 * (var(--safe-bottom) + 14px));
  padding: 12px 14px calc(var(--safe-bottom) + 10px);
  border-top: 1px solid rgba(216, 168, 255, 0.13);
  background: rgba(3, 4, 11, 0.94);
  backdrop-filter: blur(18px);
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-control-dock button {
  display: grid;
  justify-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: rgba(225, 210, 244, 0.82);
  font: inherit;
  font-size: 0.68rem;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-control-dock span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 168, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-control-dock em {
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-control-dock .is-primary span {
  width: 68px;
  height: 68px;
  background: radial-gradient(circle at 50% 35%, #c58aff, #6428aa 70%);
  box-shadow: 0 0 0 4px rgba(127, 54, 205, 0.38), 0 0 30px rgba(166, 92, 255, 0.42);
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-control-dock .is-exit span {
  color: #ff6884;
}

.vibe-compose-fab,
.vibe-composer-backdrop,
.vibe-compose-choice-sheet,
.vibe-composer-modal-head {
  display: none;
}

.phone-screen[data-app-view="vibe"] .vibe-compose-fab {
  position: absolute;
  right: 28px;
  bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 16px);
  z-index: 8;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(178, 107, 255, 0.78);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(142, 58, 235, 0.96), rgba(85, 35, 162, 0.98));
  color: #fff;
  font: 400 2.4rem/1 "IBM Plex Sans", sans-serif;
  box-shadow: 0 0 0 6px rgba(7, 5, 12, 0.78), 0 18px 42px rgba(91, 38, 164, 0.5);
}

.phone-screen[data-app-view="vibe"] .vibe-composer-backdrop {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: block;
  border: 0;
  background: rgba(2, 2, 8, 0.58);
  backdrop-filter: blur(8px);
}

.phone-screen[data-app-view="vibe"] .vibe-composer-backdrop[hidden] {
  display: none !important;
}

.phone-screen[data-app-view="vibe"] .vibe-compose-choice-sheet {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 16px);
  z-index: 13;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(218, 168, 255, 0.17);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(178, 107, 255, 0.16), transparent 34%),
    rgba(12, 10, 20, 0.98);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.52);
}

.phone-screen[data-app-view="vibe"] .vibe-compose-choice-sheet[hidden] {
  display: none !important;
}

.phone-screen[data-app-view="vibe"] .vibe-choice-handle {
  justify-self: center;
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: rgba(225, 210, 244, 0.34);
}

.phone-screen[data-app-view="vibe"] .vibe-compose-choice-sheet > strong {
  color: #fff;
  text-align: center;
  font-size: 1rem;
}

.phone-screen[data-app-view="vibe"] .vibe-compose-choice-sheet button {
  min-height: 64px;
  border: 1px solid rgba(218, 168, 255, 0.1);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 12px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  font: inherit;
  text-align: left;
}

.phone-screen[data-app-view="vibe"] .vibe-compose-choice-sheet button span {
  grid-row: 1 / span 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(178, 107, 255, 0.82), rgba(91, 38, 164, 0.9));
  color: #fff;
  font-size: 1.2rem;
}

.phone-screen[data-app-view="vibe"] .vibe-compose-choice-sheet button em {
  font-style: normal;
  font-weight: 900;
}

.phone-screen[data-app-view="vibe"] .vibe-compose-choice-sheet button small {
  color: rgba(225, 210, 244, 0.72);
  font-size: 0.74rem;
}

.phone-screen[data-app-view="vibe"] .vibe-compose-choice-sheet [data-vibe-choice-cancel] {
  display: block;
  min-height: 52px;
  text-align: center;
  border-radius: 15px;
  color: #fff;
}

.phone-screen[data-app-view="vibe"].is-vibe-composer-open .vibe-composer {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: calc(var(--safe-bottom) + 8px);
  z-index: 14;
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr);
  max-height: calc(100dvh - var(--safe-top) - 34px);
  overflow: auto;
  padding: 14px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(178, 107, 255, 0.18), transparent 34%),
    rgba(11, 9, 18, 0.98);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.62);
}

.phone-screen[data-app-view="vibe"].is-vibe-composer-open .vibe-composer-modal-head {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
}

.phone-screen[data-app-view="vibe"] .vibe-composer-modal-head button {
  border: 0;
  background: transparent;
  color: #bb6cff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
}

.phone-screen[data-app-view="vibe"] .vibe-composer-modal-head strong {
  color: #fff;
  text-align: center;
  font-size: 0.9rem;
}

.phone-screen[data-app-view="vibe"].is-vibe-composer-open .vibe-post-submit,
.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-post-submit {
  display: none;
}

.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-composer {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  height: 100%;
  max-height: none;
  overflow: hidden;
  padding: calc(var(--safe-top) + 8px) 16px calc(var(--safe-bottom) + 14px);
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(178, 107, 255, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(9, 7, 16, 0.99), rgba(5, 4, 10, 0.99));
}

.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .bottom-nav,
.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-compose-fab,
.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .app-header {
  display: none !important;
}

.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-composer-modal-head {
  grid-column: 1 / -1;
  display: grid;
  position: sticky;
  top: 0;
  z-index: 4;
  min-height: 34px;
  background: rgba(9, 7, 16, 0.96);
}

.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-composer-avatar {
  display: none;
}

.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-composer-main {
  display: contents;
}

.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-composer > .vibe-composer-main > textarea {
  display: none;
}

.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-composer-context {
  grid-column: 1 / -1;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  place-items: stretch center;
}

.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-composer-actions {
  display: none;
}

.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-photo-publisher-preview {
  min-height: 0;
  max-height: none;
  height: min(44vh, 330px);
  aspect-ratio: var(--vibe-photo-aspect, 1);
  justify-self: center;
  max-width: 100%;
}

.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-photo-publisher-preview img {
  height: 100%;
  width: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
}

.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-photo-publisher {
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  width: min(100%, 420px);
  height: 100%;
  min-height: 0;
  justify-self: center;
}

.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-photo-publisher-body {
  gap: 7px;
  min-height: 0;
  overflow: auto;
  scrollbar-width: none;
}

.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-photo-publisher-body::-webkit-scrollbar {
  display: none;
}

.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-photo-edit-panel,
.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-photo-caption-panel,
.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-photo-music-panel,
.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-mention-panel {
  gap: 7px;
  padding: 8px;
  border-radius: 13px;
}

.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-photo-zoom-control {
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 8px;
  padding: 4px 2px 2px;
}

.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-photo-zoom-slider {
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  gap: 7px;
}

.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-photo-edit-tools input[type="range"] {
  height: 44px;
}

.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-photo-edit-tools .vibe-photo-zoom-step {
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  font-size: 1.08rem;
}

.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-photo-music-panel {
  max-height: 36vh;
  overflow: auto;
}

.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-photo-caption-panel textarea {
  display: block;
  min-height: 64px;
  max-height: 96px;
}

.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-photo-filter-row button,
.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-photo-ratio-row button,
.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-photo-edit-tools button,
.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-photo-publisher-actions button {
  min-height: 30px;
  padding-inline: 6px;
  font-size: 0.62rem;
}

.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-photo-ratio-row button {
  min-width: 46px;
}

.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-photo-filter-row button {
  min-width: 62px;
  min-height: 66px;
}

.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-photo-filter-thumb {
  width: 52px;
  height: 36px;
}

.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-photo-publisher-steps button {
  min-height: 38px;
  min-width: 0;
  padding-inline: 4px;
}

.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-photo-publisher-steps span {
  display: grid;
  width: 26px;
  height: 26px;
}

.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-photo-publisher-steps strong {
  font-size: 0.62rem;
}

.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-photo-publisher-steps .vibe-step-icon svg {
  width: 15px;
  height: 15px;
}

.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-photo-music-head small {
  display: none;
}

.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-mention-panel > span {
  display: none;
}

.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-mention-suggestions button {
  min-height: 38px;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  padding: 4px 6px;
}

.phone-screen[data-app-view="vibe"].is-vibe-photo-editor-open .vibe-mention-avatar {
  width: 30px;
  height: 30px;
}

/* Audio room live polish. */
.phone-screen[data-app-view="vibe"] .vibe-post-room-live {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 20px;
  padding: 0 8px;
  border: 1px solid rgba(255, 40, 93, 0.36);
  border-radius: 999px;
  background: rgba(255, 40, 93, 0.22);
  color: #fff;
  font-size: 0.56rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.62);
}

.phone-screen[data-app-view="vibe"] .vibe-post-room-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #20ee77;
  box-shadow: 0 0 10px rgba(32, 238, 119, 0.8);
}

.phone-screen[data-app-view="vibe"] .vibe-post-room-dock {
  grid-template-columns: auto auto;
  gap: 8px;
  align-items: center;
}

.phone-screen[data-app-view="vibe"] .vibe-post-room-dock button {
  grid-column: 2;
  grid-row: 1;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-panel:not([hidden]) {
  grid-template-rows: auto auto auto auto minmax(260px, 1fr) auto auto;
  gap: 10px;
  padding: calc(var(--safe-top) + 18px) 14px calc(var(--safe-bottom) + 0px);
  background:
    radial-gradient(circle at 76% 0%, rgba(158, 82, 255, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(2, 3, 10, 0.7), #03040b 38%, #02030a 100%);
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-panel-head {
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  min-height: 74px;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-panel-head h3 {
  font-size: 1.34rem;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-panel-head p {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 6px;
  padding: 0 10px;
  min-height: 24px;
  border-radius: 999px;
  background: rgba(126, 54, 205, 0.58);
  color: #dcc2ff;
  font-size: 0.78rem;
  font-weight: 850;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-panel-head p::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 999px;
  background: #20ee77;
  box-shadow: 0 0 10px rgba(32, 238, 119, 0.78);
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-now-card {
  grid-template-columns: 94px minmax(0, 1fr) 58px;
  min-height: 124px;
  padding: 10px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 78% 12%, rgba(166, 92, 255, 0.16), transparent 32%),
    rgba(13, 10, 24, 0.72);
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-now-card img {
  width: 92px;
  height: 92px;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-play {
  width: 54px;
  height: 54px;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-people-shell {
  padding: 14px 12px;
  border-radius: 20px;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-people {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-person-avatar {
  width: 54px;
  height: 54px;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-tabs {
  min-height: 48px;
  border-radius: 20px 20px 0 0;
  grid-template-columns: repeat(3, minmax(0, auto)) minmax(92px, 1fr);
  gap: 18px;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-tabs button:last-child {
  justify-self: end;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(188, 103, 255, 0.42);
  border-radius: 999px;
  background: rgba(126, 54, 205, 0.22);
  color: #d8a8ff;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-messages {
  min-height: 250px;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-message-row {
  grid-template-columns: minmax(0, 1fr) 56px;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-control-dock {
  min-height: 108px;
  padding-top: 10px;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-control-dock span {
  font-size: 0;
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-control-dock button:nth-child(1) span::before {
  content: "<";
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-control-dock button:nth-child(2) span::before {
  content: "mic";
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-control-dock button:nth-child(3) span::before {
  content: "++";
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-control-dock button:nth-child(4) span::before {
  content: "vol";
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-control-dock button:nth-child(5) span::before {
  content: "...";
}

.phone-screen[data-app-view="vibe"].is-vibe-room-open .vibe-room-control-dock span::before {
  font-size: 0.82rem;
  font-weight: 900;
}

/* Vibe text posts and right rail spacing. */
.phone-screen[data-app-view="vibe"] .vibe-post-card.has-no-backdrop {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 40, 93, 0.2), transparent 26%),
    radial-gradient(circle at 86% 8%, rgba(178, 107, 255, 0.24), transparent 30%),
    linear-gradient(160deg, #090611 0%, #161022 48%, #03040a 100%);
}

.phone-screen[data-app-view="vibe"] .vibe-post-card.has-no-backdrop::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), transparent 34%, rgba(0, 0, 0, 0.72)),
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.06), transparent 38%);
}

.phone-screen[data-app-view="vibe"] .vibe-post-card.has-no-backdrop > p {
  align-self: center;
  width: min(100%, 30ch);
  max-height: min(42vh, 260px);
  margin-bottom: 16px;
  overflow: hidden;
  color: #fff;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.22;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.phone-screen[data-app-view="vibe"] .vibe-post-card.has-no-backdrop .vibe-post-text.vibe-style-spark,
.phone-screen[data-app-view="vibe"] .vibe-post-card.has-no-backdrop .vibe-post-text.vibe-style-neon,
.phone-screen[data-app-view="vibe"] .vibe-post-card.has-no-backdrop .vibe-post-text.vibe-style-soft {
  padding: 14px 0 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.phone-screen[data-app-view="vibe"] .vibe-post-card.has-no-backdrop .vibe-post-style-chip {
  color: rgba(255, 255, 255, 0.82);
}

.phone-screen[data-app-view="vibe"] .vibe-post-card.has-photo-track .vibe-post-media {
  display: none;
}

.phone-screen[data-app-view="vibe"] .vibe-photo-track-details {
  grid-column: 1;
  grid-row: 4;
  align-self: end;
  justify-self: start;
  width: min(100%, 238px);
  min-height: 42px;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 24px;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 5px 8px 5px 5px;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font: inherit;
  text-align: left;
  backdrop-filter: blur(12px);
}

.phone-screen[data-app-view="vibe"] .vibe-photo-track-details img {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
}

.phone-screen[data-app-view="vibe"] .vibe-photo-track-details span {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.phone-screen[data-app-view="vibe"] .vibe-photo-track-details strong,
.phone-screen[data-app-view="vibe"] .vibe-photo-track-details small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-screen[data-app-view="vibe"] .vibe-photo-track-details strong {
  font-size: 0.68rem;
}

.phone-screen[data-app-view="vibe"] .vibe-photo-track-details small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.58rem;
}

.phone-screen[data-app-view="vibe"] .vibe-photo-track-details .vibe-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.phone-screen[data-app-view="vibe"] .vibe-post-mentions {
  grid-column: 1;
  grid-row: 4;
  align-self: end;
  justify-self: start;
  max-width: min(100%, 230px);
  margin-bottom: 76px;
  overflow: hidden;
  color: #d8a8ff;
  font-size: 0.66rem;
  font-weight: 900;
  text-overflow: ellipsis;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.82);
  white-space: nowrap;
}

.phone-screen[data-app-view="vibe"] .vibe-post-head .vibe-post-avatar {
  margin-bottom: 246px;
}

.phone-screen[data-app-view="vibe"] .vibe-post-actions {
  margin-bottom: 68px;
}

.phone-screen[data-app-view="vibe"] .vibe-post-head strong,
.phone-screen[data-app-view="vibe"] .vibe-post-card > p,
.phone-screen[data-app-view="vibe"] .vibe-post-meta-line,
.phone-screen[data-app-view="vibe"] .vibe-post-style-chip {
  position: relative;
  top: 34px;
}

.phone-screen[data-app-view="vibe"] .vibe-post-card > p {
  max-width: min(100%, 32ch);
}

.phone-screen[data-app-view="vibe"] .vibe-post-meta-line {
  gap: 5px;
}

@media (max-height: 720px) {
  .phone-screen[data-app-view="vibe"] .vibe-post-card.has-no-backdrop > p {
    max-height: 190px;
    font-size: 0.96rem;
    line-height: 1.18;
  }

  .phone-screen[data-app-view="vibe"] .vibe-post-head .vibe-post-avatar {
    margin-bottom: 230px;
  }

  .phone-screen[data-app-view="vibe"] .vibe-post-actions {
    margin-bottom: 54px;
  }

  .phone-screen[data-app-view="vibe"] .vibe-post-head strong,
  .phone-screen[data-app-view="vibe"] .vibe-post-card > p,
  .phone-screen[data-app-view="vibe"] .vibe-post-meta-line,
  .phone-screen[data-app-view="vibe"] .vibe-post-style-chip {
    top: 24px;
  }
}

.phone-screen[data-app-view="vibe"] .vibe-post-card {
  grid-template-columns: minmax(0, 1fr) 50px;
  grid-template-rows: 54px minmax(0, 1fr) auto auto 58px;
  gap: 6px 10px;
  padding: 14px 8px 76px 18px;
}

.phone-screen[data-app-view="vibe"] .vibe-post-card.has-photo-post .vibe-post-photo {
  display: none;
}

.phone-screen[data-app-view="vibe"] .vibe-post-head .vibe-post-avatar {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-self: end;
  width: 44px;
  height: 44px;
  margin: 18px 0 0;
}

.phone-screen[data-app-view="vibe"] .vibe-post-menu {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-self: end;
  margin: 0;
  transform: translateY(-2px);
}

.phone-screen[data-app-view="vibe"] .vibe-post-actions {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  justify-self: end;
  gap: 11px;
  margin: 0;
}

.phone-screen[data-app-view="vibe"] .vibe-post-actions button {
  min-width: 42px;
  min-height: 42px;
}

.phone-screen[data-app-view="vibe"] .vibe-post-head strong,
.phone-screen[data-app-view="vibe"] .vibe-post-card > p,
.phone-screen[data-app-view="vibe"] .vibe-post-meta-line,
.phone-screen[data-app-view="vibe"] .vibe-post-style-chip {
  top: auto;
}

.phone-screen[data-app-view="vibe"] .vibe-post-head strong {
  grid-column: 1;
  grid-row: 4;
  align-self: end;
  margin-bottom: 44px;
}

.phone-screen[data-app-view="vibe"] .vibe-post-card > p {
  grid-column: 1;
  grid-row: 3;
  align-self: end;
  margin: 0 0 12px;
  max-width: min(100%, 31ch);
}

.phone-screen[data-app-view="vibe"] .vibe-post-card.has-photo-post .vibe-post-meta-line {
  display: none;
}

.phone-screen[data-app-view="vibe"] .vibe-post-card.has-photo-post .vibe-post-head strong {
  margin-bottom: 30px;
}

.phone-screen[data-app-view="vibe"] .vibe-post-meta-line {
  grid-column: 1;
  grid-row: 4;
  align-self: end;
  gap: 3px;
}

.phone-screen[data-app-view="vibe"] .vibe-post-style-chip {
  grid-column: 1;
  grid-row: 4;
  align-self: end;
  margin: 0 0 24px;
}

.phone-screen[data-app-view="vibe"] .vibe-photo-track-details {
  grid-column: 1;
  grid-row: 5;
  align-self: end;
  justify-self: start;
  width: min(100%, 214px);
  margin: 0 0 12px;
}

.phone-screen[data-app-view="vibe"] .vibe-post-mentions {
  grid-column: 1;
  grid-row: 4;
  align-self: end;
  max-width: min(100%, 224px);
  margin: 0 0 10px;
}

.phone-screen[data-app-view="vibe"] .vibe-story-progress {
  left: 18px;
  right: 54px;
  bottom: 58px;
  height: 3px;
  border-radius: 999px;
}

@media (max-height: 720px) {
  .phone-screen[data-app-view="vibe"] .vibe-post-head .vibe-post-avatar,
  .phone-screen[data-app-view="vibe"] .vibe-post-actions {
    margin: 0;
  }

  .phone-screen[data-app-view="vibe"] .vibe-post-head strong,
  .phone-screen[data-app-view="vibe"] .vibe-post-card > p,
  .phone-screen[data-app-view="vibe"] .vibe-post-meta-line,
  .phone-screen[data-app-view="vibe"] .vibe-post-style-chip {
    top: auto;
  }
}

/* Vibe social shell inspired by the reference screens. Scoped to the Vibe app only. */
.phone-screen[data-app-view="vibe"] {
  --vibe-purple: #a943ff;
  --vibe-purple-2: #6f26d9;
  --vibe-ink: #03060d;
  --vibe-panel: rgba(14, 16, 27, 0.72);
}

.phone-screen[data-app-view="vibe"] .app-header,
.phone-screen[data-app-view="vibe"] .mini-player-shell {
  display: none;
}

.phone-screen[data-app-view="vibe"] .screen-scroll {
  padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 22px);
  background:
    radial-gradient(circle at 78% 0%, rgba(146, 70, 255, 0.18), transparent 30%),
    radial-gradient(circle at 12% 42%, rgba(66, 150, 255, 0.08), transparent 34%),
    linear-gradient(180deg, #040811, #02040a);
}

.phone-screen[data-app-view="vibe"] .bottom-nav {
  display: none;
}

.phone-screen[data-app-view="vibe"] .vibe-section {
  display: grid;
  gap: 18px;
  min-height: calc(100dvh - var(--safe-top) - 8px);
  padding: calc(var(--safe-top) + 16px) 14px 0;
  background: transparent;
}

.phone-screen[data-app-view="vibe"] .vibe-hero,
.phone-screen[data-app-view="vibe"] .vibe-composer {
  display: none;
}

.phone-screen[data-app-view="vibe"] .vibe-social-shell {
  display: block;
  min-width: 0;
}

.phone-screen[data-app-view="vibe"] .vibe-social-panel {
  display: grid;
  gap: 22px;
}

.phone-screen[data-app-view="vibe"] .vibe-social-panel[hidden] {
  display: none;
}

.phone-screen[data-app-view="vibe"] .vibe-social-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 14px;
  align-items: start;
}

.phone-screen[data-app-view="vibe"] .vibe-social-top > strong {
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.phone-screen[data-app-view="vibe"] .vibe-social-top > strong span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 3px;
  border-radius: 999px;
  background: var(--vibe-purple);
  vertical-align: top;
}

.phone-screen[data-app-view="vibe"] .vibe-social-profile-chip,
.phone-screen[data-app-view="vibe"] .vibe-social-profile-chip button {
  border: 0;
}

.phone-screen[data-app-view="vibe"] .vibe-social-profile-chip {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
}

.phone-screen[data-app-view="vibe"] .vibe-social-avatar {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--vibe-purple);
  border-radius: 999px;
  background: linear-gradient(135deg, #ad58ff, #15111f);
  color: #fff;
  font-weight: 900;
}

.phone-screen[data-app-view="vibe"] .vibe-social-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-screen[data-app-view="vibe"] .vibe-social-tabs {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.phone-screen[data-app-view="vibe"] .vibe-social-tabs button,
.phone-screen[data-app-view="vibe"] .vibe-social-discover-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 13px;
  background: transparent;
  color: rgba(245, 239, 255, 0.76);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
}

.phone-screen[data-app-view="vibe"] .vibe-social-tabs .is-active,
.phone-screen[data-app-view="vibe"] .vibe-social-discover-tabs .is-active {
  background: linear-gradient(180deg, #9f45ff, #6023c6);
  color: #fff;
}

.phone-screen[data-app-view="vibe"] .vibe-social-section-head,
.phone-screen[data-app-view="vibe"] .vibe-social-page-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.phone-screen[data-app-view="vibe"] .vibe-social-section-head strong,
.phone-screen[data-app-view="vibe"] .vibe-social-page-head strong,
.phone-screen[data-app-view="vibe"] .vibe-social-together > strong,
.phone-screen[data-app-view="vibe"] .vibe-social-moments-title {
  color: #fff;
  font-size: 1rem;
}

.phone-screen[data-app-view="vibe"] .vibe-social-section-head button,
.phone-screen[data-app-view="vibe"] .vibe-social-page-head button {
  border: 0;
  background: transparent;
  color: #c46dff;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 850;
}

.phone-screen[data-app-view="vibe"] .vibe-social-now {
  display: grid;
  gap: 12px;
}

.phone-screen[data-app-view="vibe"] .vibe-social-now-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.phone-screen[data-app-view="vibe"] .vibe-social-vibe-card {
  min-height: 150px;
  display: grid;
  align-content: end;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.74)),
    var(--vibe-card-image),
    linear-gradient(135deg, #301569, #e65f34);
  background-position: center;
  background-size: cover;
  color: #fff;
  font: inherit;
  text-align: left;
}

.phone-screen[data-app-view="vibe"] .vibe-social-vibe-card strong {
  font-size: 0.76rem;
  line-height: 1.12;
}

.phone-screen[data-app-view="vibe"] .vibe-social-vibe-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.62rem;
}

.phone-screen[data-app-view="vibe"] .vibe-social-together {
  display: grid;
  gap: 8px;
}

.phone-screen[data-app-view="vibe"] .vibe-social-together small {
  color: rgba(240, 230, 255, 0.62);
  font-size: 0.76rem;
}

.phone-screen[data-app-view="vibe"] .vibe-social-people-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 0 4px;
  scrollbar-width: none;
}

.phone-screen[data-app-view="vibe"] .vibe-social-people-rail button {
  flex: 0 0 52px;
  display: grid;
  justify-items: center;
  gap: 6px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.66rem;
}

.phone-screen[data-app-view="vibe"] .vibe-social-people-rail .vibe-social-avatar {
  width: 50px;
  height: 50px;
}

.phone-screen[data-app-view="vibe"] .vibe-rooms-head {
  margin-top: 2px;
}

.phone-screen[data-app-view="vibe"] .vibe-section:not([data-vibe-social-view="rooms"]) .vibe-rooms-head,
.phone-screen[data-app-view="vibe"] .vibe-section:not([data-vibe-social-view="rooms"]) .vibe-rooms,
.phone-screen[data-app-view="vibe"] .vibe-feed-tabs {
  display: none;
}

.phone-screen[data-app-view="vibe"] .vibe-section[data-vibe-social-view="rooms"] .vibe-feed {
  display: none;
}

.phone-screen[data-app-view="vibe"] .vibe-section[data-vibe-social-view="discover"] .vibe-rooms-head,
.phone-screen[data-app-view="vibe"] .vibe-section[data-vibe-social-view="discover"] .vibe-rooms,
.phone-screen[data-app-view="vibe"] .vibe-section[data-vibe-social-view="discover"] .vibe-feed-tabs,
.phone-screen[data-app-view="vibe"] .vibe-section[data-vibe-social-view="discover"] .vibe-feed,
.phone-screen[data-app-view="vibe"] .vibe-section[data-vibe-social-view="profile"] .vibe-rooms-head,
.phone-screen[data-app-view="vibe"] .vibe-section[data-vibe-social-view="profile"] .vibe-rooms,
.phone-screen[data-app-view="vibe"] .vibe-section[data-vibe-social-view="profile"] .vibe-feed-tabs,
.phone-screen[data-app-view="vibe"] .vibe-section[data-vibe-social-view="profile"] .vibe-feed {
  display: none;
}

.phone-screen[data-app-view="vibe"] .vibe-social-page-head {
  min-height: 48px;
}

.phone-screen[data-app-view="vibe"] .vibe-social-page-head strong {
  font-size: 1.35rem;
}

.phone-screen[data-app-view="vibe"] .vibe-social-discover-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.phone-screen[data-app-view="vibe"] .vibe-social-discover-list {
  display: grid;
  gap: 11px;
}

.phone-screen[data-app-view="vibe"] .vibe-social-discover-list button {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 40px;
  gap: 11px;
  align-items: center;
  min-height: 64px;
  border: 0;
  border-radius: 12px;
  padding: 6px;
  background: transparent;
  color: #fff;
  font: inherit;
  text-align: left;
}

.phone-screen[data-app-view="vibe"] .vibe-social-discover-list img {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
}

.phone-screen[data-app-view="vibe"] .vibe-social-discover-list span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.phone-screen[data-app-view="vibe"] .vibe-social-discover-list strong,
.phone-screen[data-app-view="vibe"] .vibe-social-discover-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-screen[data-app-view="vibe"] .vibe-social-discover-list small {
  color: rgba(244, 236, 255, 0.62);
}

.phone-screen[data-app-view="vibe"] .vibe-social-discover-list .vibe-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.phone-screen[data-app-view="vibe"] .vibe-social-discover-list .vibe-icon svg,
.phone-screen[data-app-view="vibe"] .vibe-social-bottom-nav svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.phone-screen[data-app-view="vibe"] .vibe-social-profile-head {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 12px 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-screen[data-app-view="vibe"] .vibe-social-profile-photo {
  width: 98px;
  height: 98px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 3px solid var(--vibe-purple);
  border-radius: 999px;
  background: linear-gradient(135deg, #ad58ff, #15111f);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 900;
}

.phone-screen[data-app-view="vibe"] .vibe-social-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-screen[data-app-view="vibe"] .vibe-social-profile-head > strong {
  color: #fff;
  font-size: 1.12rem;
}

.phone-screen[data-app-view="vibe"] .vibe-social-profile-head > span {
  color: rgba(244, 236, 255, 0.66);
}

.phone-screen[data-app-view="vibe"] .vibe-social-profile-stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: center;
}

.phone-screen[data-app-view="vibe"] .vibe-social-profile-stats span {
  display: grid;
  gap: 3px;
  color: rgba(244, 236, 255, 0.66);
  font-size: 0.72rem;
}

.phone-screen[data-app-view="vibe"] .vibe-social-profile-stats strong {
  color: #fff;
  font-size: 0.98rem;
}

.phone-screen[data-app-view="vibe"] .vibe-social-profile-mode {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 2px 12px;
  align-items: center;
  border: 1px solid rgba(196, 109, 255, 0.22);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(135, 44, 255, 0.42), rgba(54, 13, 92, 0.54));
}

.phone-screen[data-app-view="vibe"] .vibe-social-profile-mode::before {
  content: "";
  grid-row: 1 / 3;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, #ffe58a, #9e45ff 58%, #2d1249);
}

.phone-screen[data-app-view="vibe"] .vibe-social-profile-mode small {
  grid-column: 1 / -1;
  color: rgba(244, 236, 255, 0.6);
}

.phone-screen[data-app-view="vibe"] .vibe-social-profile-mode strong,
.phone-screen[data-app-view="vibe"] .vibe-social-profile-mode span {
  grid-column: 2;
}

.phone-screen[data-app-view="vibe"] .vibe-social-profile-mode strong {
  color: #fff;
}

.phone-screen[data-app-view="vibe"] .vibe-social-profile-mode span {
  color: rgba(244, 236, 255, 0.68);
  font-size: 0.76rem;
}

.phone-screen[data-app-view="vibe"] .vibe-social-profile-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.phone-screen[data-app-view="vibe"] .vibe-social-profile-tags span {
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(147, 67, 255, 0.22);
  color: #fff;
  font-size: 0.76rem;
}

.phone-screen[data-app-view="vibe"] .vibe-social-profile-artists {
  display: grid;
  gap: 12px;
}

.phone-screen[data-app-view="vibe"] .vibe-social-profile-artists > small {
  color: rgba(244, 236, 255, 0.62);
  font-size: 0.78rem;
}

.phone-screen[data-app-view="vibe"] .vibe-social-profile-artist-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.phone-screen[data-app-view="vibe"] .vibe-social-profile-artist-rail span {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
}

.phone-screen[data-app-view="vibe"] .vibe-social-profile-artist-rail i {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background:
    var(--vibe-card-image),
    linear-gradient(135deg, #6930c3, #15111f);
  background-position: center;
  background-size: cover;
}

.phone-screen[data-app-view="vibe"] .vibe-social-profile-artist-rail em {
  max-width: 100%;
  overflow: hidden;
  color: #fff;
  font-size: 0.64rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-screen[data-app-view="vibe"] .vibe-social-profile-recent {
  display: grid;
  gap: 12px;
}

.phone-screen[data-app-view="vibe"] .vibe-social-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.phone-screen[data-app-view="vibe"] .vibe-social-profile-grid span {
  aspect-ratio: 1;
  display: grid;
  align-content: end;
  border-radius: 10px;
  padding: 7px;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62)),
    var(--vibe-card-image),
    linear-gradient(135deg, #301569, #e65f34);
  background-position: center;
  background-size: cover;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 850;
}

.phone-screen[data-app-view="vibe"] .vibe-social-edit-profile {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #8e3ceb, #5e21b8);
  color: #fff;
  font: inherit;
  font-weight: 900;
}

.phone-screen[data-app-view="vibe"] .vibe-social-bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 22;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  min-height: calc(var(--bottom-nav-height) + var(--safe-bottom));
  padding: 8px 10px calc(var(--safe-bottom) + 8px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 6, 13, 0.88);
  backdrop-filter: blur(18px);
}

.phone-screen:not([data-app-view="vibe"]) .vibe-social-bottom-nav {
  display: none;
}

.phone-screen[data-app-view="vibe"] .vibe-social-bottom-nav button {
  display: grid;
  justify-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: rgba(244, 236, 255, 0.68);
  font: inherit;
  font-size: 0.62rem;
}

.phone-screen[data-app-view="vibe"] .vibe-social-bottom-nav button[data-vibe-social-nav="compose"] {
  transform: translateY(-16px);
}

.phone-screen[data-app-view="vibe"] .vibe-social-bottom-nav button[data-vibe-social-nav="compose"] .vibe-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 35%, #d28aff, #7d28e8 72%);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(92, 30, 180, 0.2), 0 0 28px rgba(157, 74, 255, 0.48);
}

.phone-screen[data-app-view="vibe"] .vibe-social-bottom-nav button.is-active {
  color: #fff;
}

.phone-screen[data-app-view="vibe"] .vibe-social-bottom-nav .vibe-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
}

.phone-screen[data-app-view="vibe"] .vibe-compose-fab {
  display: none;
}

.phone-screen[data-app-view="vibe"] .vibe-section[data-vibe-social-view="home"] .vibe-feed {
  gap: 12px;
}

.phone-screen[data-app-view="vibe"] .vibe-section[data-vibe-social-view="home"] .vibe-post-card {
  min-height: 198px;
  grid-template-columns: 44px minmax(0, 1fr) 46px;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 8px 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  scroll-snap-align: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.76)),
    var(--vibe-post-bg),
    linear-gradient(135deg, #190c33, #44115d);
  background-position: center;
  background-size: cover;
}

.phone-screen[data-app-view="vibe"] .vibe-section[data-vibe-social-view="home"] .vibe-post-head .vibe-post-avatar {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  justify-self: start;
  width: 36px;
  height: 36px;
  margin: 0;
}

.phone-screen[data-app-view="vibe"] .vibe-section[data-vibe-social-view="home"] .vibe-post-menu {
  grid-column: 3;
  grid-row: 1;
}

.phone-screen[data-app-view="vibe"] .vibe-section[data-vibe-social-view="home"] .vibe-post-head strong {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  margin: 0;
  font-size: 0.78rem;
}

.phone-screen[data-app-view="vibe"] .vibe-section[data-vibe-social-view="home"] .vibe-post-card > p {
  grid-column: 1 / 3;
  grid-row: 3;
  align-self: end;
  margin: 0;
  max-width: min(100%, 32ch);
  font-size: 0.86rem;
}

.phone-screen[data-app-view="vibe"] .vibe-section[data-vibe-social-view="home"] .vibe-post-meta-line {
  grid-column: 1 / 3;
  grid-row: 4;
  display: grid;
  align-self: end;
}

.phone-screen[data-app-view="vibe"] .vibe-section[data-vibe-social-view="home"] .vibe-post-actions {
  grid-column: 1 / -1;
  grid-row: 5;
  display: flex;
  justify-self: start;
  align-self: end;
  gap: 14px;
  margin: 8px 0 0;
}

.phone-screen[data-app-view="vibe"] .vibe-section[data-vibe-social-view="home"] .vibe-post-actions button {
  min-width: 34px;
  min-height: 30px;
  display: inline-flex;
  gap: 6px;
}

.phone-screen[data-app-view="vibe"] .vibe-section[data-vibe-social-view="home"] .vibe-post-actions .vibe-icon {
  width: 22px;
  height: 22px;
  background: transparent;
}

.phone-screen[data-app-view="vibe"] .vibe-section[data-vibe-social-view="home"] .vibe-photo-track-details {
  grid-column: 1 / 3;
  grid-row: 4;
  align-self: end;
  width: min(100%, 230px);
  margin: 0 0 22px;
}

.phone-screen[data-app-view="vibe"] .vibe-section[data-vibe-social-view="home"] .vibe-post-mentions {
  grid-column: 1 / 3;
  grid-row: 4;
  margin: 0 0 64px;
}

.phone-screen[data-app-view="vibe"] .vibe-section[data-vibe-social-view="home"] .vibe-story-progress,
.phone-screen[data-app-view="vibe"] .vibe-section[data-vibe-social-view="home"] .vibe-liked-by {
  display: none;
}

/* Fresh standalone Vibe feed. Only active inside the Vibe view. */
.phone-screen[data-app-view="vibe"] .app-header,
.phone-screen[data-app-view="vibe"] .mini-player-shell,
.phone-screen[data-app-view="vibe"] .bottom-nav,
.phone-screen[data-app-view="vibe"] .vibe-hero,
.phone-screen[data-app-view="vibe"] .vibe-composer,
.phone-screen[data-app-view="vibe"] .vibe-social-shell,
.phone-screen[data-app-view="vibe"] .vibe-social-bottom-nav,
.phone-screen[data-app-view="vibe"] .vibe-rooms-head,
.phone-screen[data-app-view="vibe"] .vibe-rooms,
.phone-screen[data-app-view="vibe"] .vibe-room-panel,
.phone-screen[data-app-view="vibe"] .vibe-feed-tabs,
.phone-screen[data-app-view="vibe"] #vibe-feed {
  display: none !important;
}

.phone-screen[data-app-view="vibe"] .screen-scroll {
  padding-bottom: calc(var(--safe-bottom) + 18px);
  background:
    radial-gradient(circle at 80% 0%, rgba(171, 75, 255, 0.18), transparent 30%),
    radial-gradient(circle at 12% 38%, rgba(74, 126, 255, 0.08), transparent 36%),
    linear-gradient(180deg, #060812, #02040a 72%);
}

.phone-screen[data-app-view="vibe"] .vibe-section {
  min-height: 100dvh;
  padding: calc(var(--safe-top) + 18px) 14px 24px;
  background: transparent;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-app {
  display: grid;
  min-height: 100dvh;
}

.phone-screen:not([data-app-view="vibe"]) .vibe-lite-app {
  display: none;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 28;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: calc(var(--safe-top) + 10px) 18px 10px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent);
}

.phone-screen[data-app-view="vibe"] .vibe-lite-logo,
.phone-screen[data-app-view="vibe"] .vibe-lite-compose,
.phone-screen[data-app-view="vibe"] .vibe-lite-search,
.phone-screen[data-app-view="vibe"] .vibe-lite-notify {
  border: 0;
  font: inherit;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-logo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 0;
  background: transparent;
  color: #fff;
  pointer-events: auto;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-logo strong {
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-logo em {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 800;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-logo strong::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d28aff, #8d43ff);
  box-shadow: 0 0 14px rgba(180, 76, 255, 0.7);
}

.phone-screen[data-app-view="vibe"] .vibe-lite-header-actions {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-search,
.phone-screen[data-app-view="vibe"] .vibe-lite-notify {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  backdrop-filter: blur(10px);
}

.phone-screen[data-app-view="vibe"] .vibe-lite-search svg,
.phone-screen[data-app-view="vibe"] .vibe-lite-notify svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-compose {
  position: fixed;
  left: 50%;
  bottom: calc(var(--safe-bottom) + 48px);
  z-index: 32;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff9a52, #ffbf5f);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  transform: translateX(-50%);
  box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.24), 0 14px 28px rgba(255, 143, 66, 0.42);
}

.phone-screen[data-app-view="vibe"] .vibe-lite-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 29;
  min-height: calc(58px + var(--safe-bottom));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  padding: 8px 10px calc(var(--safe-bottom) + 7px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(3, 5, 12, 0.76);
  backdrop-filter: blur(18px);
}

.phone-screen[data-app-view="vibe"] .vibe-lite-bottom-nav button {
  display: grid;
  justify-items: center;
  gap: 3px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 0.58rem;
  font-weight: 800;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-bottom-nav svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-bottom-nav .is-vibe-active {
  color: #fff;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-bottom-nav .is-vibe-active svg {
  width: 26px;
  height: 26px;
  padding: 7px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 35%, #d28aff, #7d28e8 72%);
  box-shadow: 0 0 24px rgba(157, 74, 255, 0.55);
}

.phone-screen[data-app-view="vibe"] .vibe-lite-feed {
  display: grid;
  gap: 0;
  margin: calc(-1 * (var(--safe-top) + 18px)) -14px -24px;
  scroll-snap-type: y mandatory;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-card {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 10px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  padding: calc(var(--safe-top) + 82px) 16px calc(var(--safe-bottom) + 118px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background:
    linear-gradient(180deg, rgba(2, 3, 9, 0.08), rgba(2, 3, 9, 0.18) 38%, rgba(2, 3, 9, 0.78) 88%),
    var(--vibe-lite-image),
    radial-gradient(circle at 18% 0%, rgba(180, 76, 255, 0.28), transparent 32%),
    linear-gradient(135deg, #12101d, #33145f 58%, #111827);
  background-position: center;
  background-size: cover;
  color: #fff;
  box-shadow: none;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.44), transparent 52%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), transparent 42%, rgba(0, 0, 0, 0.74));
  pointer-events: none;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-card > * {
  position: relative;
  z-index: 1;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-card-head {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: 0 minmax(0, 1fr);
  gap: 0;
  align-items: center;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-avatar {
  width: 0;
  height: 0;
  opacity: 0;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-side-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(195, 104, 255, 0.92);
  border-radius: 999px;
  background: linear-gradient(135deg, #ad58ff, #15111f);
  color: #fff;
  font-weight: 900;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-side-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-side-avatar {
  position: relative;
  margin-bottom: 4px;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-side-avatar::after {
  content: "+";
  position: absolute;
  right: -3px;
  bottom: -4px;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #ff2b5f;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-card-head span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-card-head strong,
.phone-screen[data-app-view="vibe"] .vibe-lite-card-head small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-card-head small {
  display: none;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-track {
  grid-column: 1;
  grid-row: 3;
  align-self: end;
  width: min(100%, 210px);
  min-height: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  gap: 8px;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: 4px 5px 4px 0;
  background: transparent;
  color: #fff;
  font: inherit;
  text-align: left;
  backdrop-filter: blur(12px);
}

.phone-screen[data-app-view="vibe"] .vibe-lite-tags {
  grid-column: 1;
  grid-row: 3;
  align-self: start;
  max-width: 30ch;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.76);
}

.phone-screen[data-app-view="vibe"] .vibe-lite-track span {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-track strong,
.phone-screen[data-app-view="vibe"] .vibe-lite-track small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-track strong {
  display: none;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-track small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.68rem;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-track .vibe-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #5e21b8;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-track svg,
.phone-screen[data-app-view="vibe"] .vibe-lite-actions svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-text {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  margin: 24px 0 22px;
  max-width: 32ch;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.28;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
}

.phone-screen[data-app-view="vibe"] .vibe-lite-actions {
  display: none;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-side-actions {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: end;
  justify-self: end;
  display: grid;
  justify-items: center;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding-bottom: 16px;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-side-actions button {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  justify-items: center;
  gap: 3px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 850;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.78);
}

.phone-screen[data-app-view="vibe"] .vibe-lite-side-actions button .vibe-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-join {
  width: 48px;
  min-height: 70px !important;
  border: 1px solid rgba(210, 138, 255, 0.38) !important;
  border-radius: 999px !important;
  padding: 8px 6px !important;
  background: linear-gradient(180deg, rgba(176, 82, 255, 0.92), rgba(98, 32, 196, 0.9)) !important;
  color: #fff !important;
  font-size: 0.58rem !important;
  line-height: 1.05;
  box-shadow: 0 0 0 4px rgba(105, 38, 217, 0.16), 0 12px 26px rgba(94, 33, 184, 0.34);
}

.phone-screen[data-app-view="vibe"] .vibe-lite-sentinel {
  display: block;
  height: 60px;
}

/* Vibe reset: standalone start page, kept isolated from the rest of Bbeat. */
.phone-screen[data-app-view="vibe"] .screen-scroll {
  inset: 0;
  padding-bottom: 0;
  background: #04050b;
}

.phone-screen[data-app-view="vibe"] .vibe-section {
  min-height: 100dvh;
  padding: 0;
}

.phone-screen[data-app-view="vibe"] {
  --header-offset: 0px;
  --bottom-stack-height: 0px;
  transform: translateZ(0);
}

.phone-screen[data-app-view="vibe"] .vibe-lite-app {
  --vibe-accent: #b44cff;
  --vibe-accent-2: #7d28e8;
  --vibe-warm: #ff9f45;
  --vibe-glass: rgba(13, 11, 24, 0.68);
  --vibe-border: rgba(210, 138, 255, 0.18);
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  background:
    radial-gradient(circle at 82% 0%, rgba(180, 76, 255, 0.22), transparent 34%),
    radial-gradient(circle at 12% 34%, rgba(125, 40, 232, 0.16), transparent 36%),
    linear-gradient(180deg, #070912, #03040a 68%);
  color: #fff;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-compose,
.phone-screen[data-app-view="vibe"] .vibe-lite-bottom-nav,
.phone-screen[data-app-view="vibe"] .vibe-lite-sentinel {
  display: none !important;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-header {
  position: sticky;
  top: 0;
  left: auto;
  right: auto;
  z-index: 24;
  min-height: 48px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 7px;
  background: linear-gradient(180deg, rgba(6, 5, 14, 0.96), rgba(6, 5, 14, 0.82));
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-logo {
  justify-self: start;
  gap: 4px;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-logo strong {
  color: #fff;
  font-size: 1.34rem;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 0 22px rgba(180, 76, 255, 0.42);
}

.phone-screen[data-app-view="vibe"] .vibe-lite-logo strong::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 0 11px 3px;
  border-radius: 999px;
  background: var(--vibe-accent);
  box-shadow: 0 0 18px rgba(180, 76, 255, 0.85);
}

.phone-screen[data-app-view="vibe"] .vibe-lite-tabs {
  justify-self: start;
  display: flex;
  gap: 9px;
  min-width: 0;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-tabs em {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 850;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-tabs em:first-child {
  color: #fff;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-tabs em:first-child::after {
  content: "";
  display: block;
  width: 18px;
  height: 3px;
  margin: 6px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--vibe-accent), var(--vibe-accent-2));
}

.phone-screen[data-app-view="vibe"] .vibe-lite-header-actions {
  gap: 9px;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-search,
.phone-screen[data-app-view="vibe"] .vibe-lite-notify {
  position: relative;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--vibe-glass);
}

.phone-screen[data-app-view="vibe"] .vibe-lite-notify i {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ff305f;
  box-shadow: 0 0 10px rgba(255, 48, 95, 0.75);
}

.phone-screen[data-app-view="vibe"] .vibe-lite-stories {
  position: sticky;
  top: 48px;
  z-index: 20;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 16px 12px;
  background:
    linear-gradient(180deg, rgba(6, 5, 14, 0.88), rgba(8, 6, 18, 0.72)),
    radial-gradient(circle at 18% 0%, rgba(180, 76, 255, 0.18), transparent 34%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 20px 20px;
  backdrop-filter: blur(18px);
  scrollbar-width: none;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-story {
  flex: 0 0 52px;
  display: grid;
  justify-items: center;
  gap: 6px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  font: inherit;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-story small {
  max-width: 56px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.56rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-story-avatar,
.phone-screen[data-app-view="vibe"] .vibe-lite-story.is-add > span {
  position: relative;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  overflow: visible;
  border: 2px solid var(--vibe-accent);
  border-radius: 999px;
  background: var(--vibe-glass);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  box-shadow:
    0 0 0 3px rgba(180, 76, 255, 0.08),
    0 10px 22px rgba(0, 0, 0, 0.28);
}

.phone-screen[data-app-view="vibe"] .vibe-lite-story-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-story-avatar::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 11px;
  height: 11px;
  border: 2px solid #070912;
  border-radius: 999px;
  background: rgba(148, 154, 170, 0.92);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.phone-screen[data-app-view="vibe"] .vibe-lite-story-avatar.is-online::after {
  background: #27e28a;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 12px rgba(39, 226, 138, 0.72);
}

.phone-screen[data-app-view="vibe"] .vibe-lite-story-avatar.is-offline {
  border-color: rgba(255, 255, 255, 0.24);
  opacity: 0.74;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-feed {
  gap: 13px;
  margin: 0;
  padding: 13px 22px calc(var(--safe-bottom) + 84px);
  scroll-snap-type: none;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-card {
  min-height: 300px;
  grid-template-columns: minmax(0, 1fr) 42px;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  border-radius: 22px;
  padding: 14px 10px 14px 14px;
  scroll-snap-align: none;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.34), inset 0 0 0 1px var(--vibe-border);
}

.phone-screen[data-app-view="vibe"] .vibe-lite-card-head {
  grid-column: 1 / 3;
  grid-row: 1;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-avatar {
  width: 32px;
  height: 32px;
  opacity: 1;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-card-head strong {
  font-size: 0.66rem;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-card-head small {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.56rem;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-side-actions {
  grid-column: 2;
  grid-row: 1 / 5;
  align-self: center;
  gap: 8px;
  padding: 18px 0 0;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-side-avatar {
  display: none;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-side-actions button {
  min-width: 34px;
  min-height: 30px;
  font-size: 0.5rem;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-join {
  display: none !important;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-text {
  grid-column: 1;
  grid-row: 3;
  margin: 0;
  font-size: 0.66rem;
  line-height: 1.28;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-tags {
  grid-column: 1;
  grid-row: 4;
  align-self: end;
  margin: 4px 0 0;
  font-size: 0.56rem;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-track {
  grid-column: 1;
  grid-row: 4;
  width: min(100%, 210px);
  margin-top: 26px;
  transform: translateY(16px);
}

.phone-screen[data-app-view="vibe"] .vibe-lite-compose {
  position: fixed;
  bottom: calc(var(--safe-bottom) + 43px);
  width: 48px;
  height: 48px;
  font-size: 1.42rem;
  background: radial-gradient(circle at 35% 25%, #ffd36d, #ff8f42 54%, #a943ff);
}

.phone-screen[data-app-view="vibe"] .vibe-lite-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  min-height: calc(54px + var(--safe-bottom));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 6px 10px calc(var(--safe-bottom) + 6px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(3, 4, 10, 0.9);
  backdrop-filter: blur(18px);
}

.phone-screen[data-app-view="vibe"] .vibe-lite-bottom-nav button {
  min-width: 0;
  min-height: 37px;
  gap: 2px;
  font-size: 0.52rem;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-bottom-nav svg {
  width: 17px;
  height: 17px;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-bottom-nav .is-vibe-active svg {
  width: 19px;
  height: 19px;
  padding: 6px;
}

/* Vibe feed rebuild: music-first social posts below followed people. */
.phone-screen[data-app-view="vibe"] .vibe-lite-feed {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 16px 14px 28px;
  scroll-snap-type: none;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-card {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto auto auto auto auto auto;
  gap: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(18, 13, 30, 0.92), rgba(8, 7, 14, 0.96)),
    radial-gradient(circle at 86% 0%, rgba(180, 76, 255, 0.2), transparent 38%);
  color: #fff;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.phone-screen[data-app-view="vibe"] .vibe-lite-card::before {
  display: none;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-card > * {
  position: relative;
  z-index: 1;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-card-head {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(180, 76, 255, 0.72);
  border-radius: 999px;
  background: rgba(180, 76, 255, 0.16);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  opacity: 1;
  cursor: pointer;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-card-head span {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-card-head strong,
.phone-screen[data-app-view="vibe"] .vibe-lite-card-head small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-card-head strong {
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-card-head small {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.58rem;
  font-weight: 700;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-media {
  grid-column: 1;
  grid-row: 2;
  min-height: 245px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.36)),
    var(--vibe-lite-image),
    radial-gradient(circle at 30% 20%, rgba(180, 76, 255, 0.4), transparent 36%),
    linear-gradient(135deg, #171224, #4a1b80 58%, #0c101c);
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 -70px 80px rgba(0, 0, 0, 0.38);
}

.phone-screen[data-app-view="vibe"] .vibe-lite-track {
  grid-column: 1;
  grid-row: 3;
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
  margin: 0;
  border: 1px solid rgba(180, 76, 255, 0.22);
  border-radius: 14px;
  padding: 8px 8px 8px 11px;
  background: rgba(180, 76, 255, 0.11);
  color: #fff;
  font: inherit;
  text-align: left;
  transform: none;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-track span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-track strong,
.phone-screen[data-app-view="vibe"] .vibe-lite-track small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-track strong {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-track small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.58rem;
  font-weight: 750;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-track .vibe-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #b44cff, #ff9f45);
  color: #fff;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-room {
  grid-column: 1;
  grid-row: 4;
  display: grid;
  gap: 9px;
  padding: 11px;
  border: 1px solid rgba(180, 76, 255, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(circle at 14% 0%, rgba(180, 76, 255, 0.18), transparent 36%),
    rgba(255, 255, 255, 0.045);
}

.phone-screen[data-app-view="vibe"] .vibe-lite-room-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-room-head span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-room-head strong {
  overflow: hidden;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-room-head small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.56rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-room-join {
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: linear-gradient(135deg, #b44cff, #ff9f45);
  color: #fff;
  font: 900 0.58rem/1 "Space Grotesk", system-ui, sans-serif;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-room-listeners {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-room-person {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 3px 8px 3px 3px;
  background: rgba(0, 0, 0, 0.18);
}

.phone-screen[data-app-view="vibe"] .vibe-lite-room-person.is-host {
  border-color: rgba(255, 207, 100, 0.34);
}

.phone-screen[data-app-view="vibe"] .vibe-lite-room-avatar {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(180, 76, 255, 0.28);
  color: #fff;
  font-size: 0.5rem;
  font-weight: 900;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-room-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-room-person em {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.54rem;
  font-style: normal;
  font-weight: 800;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-room-person.is-host em {
  color: #ffcf64;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-room-reactions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-room-reactions button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  font-size: 1rem;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-room-chat {
  display: grid;
  gap: 5px;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-room-chat p {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.58rem;
  line-height: 1.25;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-room-chat strong {
  color: #fff;
  font-weight: 900;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-room-chat span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-room-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 7px;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-room-form input {
  min-width: 0;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0 11px;
  outline: none;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  font: 750 0.62rem/1 "Space Grotesk", system-ui, sans-serif;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-room-form button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(180, 76, 255, 0.28);
  color: #fff;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-room-form svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Temporary Vibe holding state: keep the social module intact, but show only the coming-soon notice. */
.phone-screen[data-app-view="vibe"] .vibe-lite-tabs,
.phone-screen[data-app-view="vibe"] .vibe-lite-header-actions,
.phone-screen[data-app-view="vibe"] .vibe-lite-stories,
.phone-screen[data-app-view="vibe"] .vibe-lite-feed,
.phone-screen[data-app-view="vibe"] .vibe-lite-compose,
.phone-screen[data-app-view="vibe"] .vibe-lite-bottom-nav,
.phone-screen[data-app-view="vibe"] .vibe-lite-sentinel,
.phone-screen[data-app-view="vibe"] .vibe-social-shell,
.phone-screen[data-app-view="vibe"] .vibe-social-bottom-nav,
.phone-screen[data-app-view="vibe"] .vibe-hero,
.phone-screen[data-app-view="vibe"] .vibe-composer,
.phone-screen[data-app-view="vibe"] .vibe-rooms-head,
.phone-screen[data-app-view="vibe"] .vibe-rooms,
.phone-screen[data-app-view="vibe"] .vibe-room-panel,
.phone-screen[data-app-view="vibe"] .vibe-feed-tabs,
.phone-screen[data-app-view="vibe"] #vibe-feed {
  display: none !important;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-app {
  grid-template-rows: auto minmax(0, 1fr);
}

.phone-screen[data-app-view="vibe"] .vibe-lite-header {
  grid-template-columns: minmax(0, 1fr);
}

.phone-screen[data-app-view="vibe"] .vibe-coming-soon {
  position: relative;
  align-self: center;
  justify-self: center;
  width: min(calc(100% - 32px), 340px);
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 44px auto 76px;
  padding: 28px 20px 22px;
  border: 1px solid rgba(210, 138, 255, 0.18);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 0%, rgba(180, 76, 255, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(21, 15, 34, 0.82), rgba(8, 7, 16, 0.92));
  color: #fff;
  text-align: center;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.phone-screen[data-app-view="vibe"] .vibe-coming-back {
  position: absolute;
  left: 14px;
  top: 14px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0 10px 0 8px;
  background: rgba(255, 255, 255, 0.065);
  color: rgba(255, 255, 255, 0.86);
  font: 850 0.62rem/1 "Space Grotesk", system-ui, sans-serif;
  cursor: pointer;
}

.phone-screen[data-app-view="vibe"] .vibe-coming-back svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.phone-screen[data-app-view="vibe"] .vibe-coming-orb {
  width: 58px;
  height: 58px;
  margin-top: 16px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, #b44cff, #ff9f45);
  color: #fff;
  box-shadow: 0 18px 36px rgba(180, 76, 255, 0.28);
}

.phone-screen[data-app-view="vibe"] .vibe-coming-orb svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.phone-screen[data-app-view="vibe"] .vibe-coming-kicker {
  color: #d99aff;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phone-screen[data-app-view="vibe"] .vibe-coming-soon h2 {
  margin: 0;
  color: #fff;
  font-size: 1.72rem;
  font-weight: 950;
  line-height: 1.02;
}

.phone-screen[data-app-view="vibe"] .vibe-coming-soon p {
  max-width: 27ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.42;
}

.phone-screen[data-app-view="vibe"] .vibe-coming-soon strong {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(180, 76, 255, 0.18);
  color: #f0dcff;
  font-size: 0.68rem;
  font-weight: 900;
}

.phone-screen[data-app-view="vibe"] .vibe-coming-soon small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.64rem;
  font-weight: 700;
}

.phone-screen[data-app-view="vibe"] .vibe-coming-language {
  margin-top: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.phone-screen[data-app-view="vibe"] .vibe-lite-text {
  grid-column: 1;
  grid-row: 5;
  max-width: none;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  line-height: 1.35;
  text-shadow: none;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-tags {
  grid-column: 1;
  grid-row: 6;
  align-self: start;
  margin: -2px 0 0;
  color: rgba(195, 139, 255, 0.9);
  font-size: 0.58rem;
  font-weight: 800;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-liked-by {
  grid-column: 1;
  grid-row: 7;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.6rem;
  font-weight: 750;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-liked-avatars {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding-left: 3px;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-liked-avatar {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-left: -3px;
  border: 2px solid #0c0914;
  border-radius: 999px;
  background: rgba(180, 76, 255, 0.22);
  color: #fff;
  font-size: 0.5rem;
  font-weight: 900;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-liked-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-liked-by > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-side-actions {
  display: none;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-actions {
  grid-column: 1;
  grid-row: 8;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding-top: 2px;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-actions button {
  min-width: 0;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 0.58rem;
  font-weight: 850;
}

.phone-screen[data-app-view="vibe"] .vibe-lite-actions button[data-vibe-lite-action="like"] {
  color: #d99aff;
  background: rgba(180, 76, 255, 0.14);
}

.phone-screen[data-app-view="vibe"] .vibe-lite-actions button[data-vibe-lite-action="comment"] {
  color: rgba(255, 255, 255, 0.9);
}

.phone-screen[data-app-view="vibe"] .vibe-lite-actions button.is-liked {
  color: #ffcf64;
  border-color: rgba(255, 207, 100, 0.38);
}

.phone-screen[data-app-view="vibe"] .vibe-lite-actions svg,
.phone-screen[data-app-view="vibe"] .vibe-lite-track svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
