@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./assets/fonts/Inter-Variable.ttf') format('truetype');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('./assets/fonts/Manrope-Variable.ttf') format('truetype');
}

:root {
  color-scheme: dark;
  --bg: #070707;
  --text: #f7f7f7;
  --muted: rgba(255,255,255,.58);
  --faint: rgba(255,255,255,.34);
  --glass: rgba(13,13,15,.56);
  --glass-strong: rgba(13,13,15,.78);
  --border: rgba(255,255,255,.12);
  --border-strong: rgba(255,255,255,.19);
  --shadow: 0 24px 90px rgba(0,0,0,.5);
  --radius: 28px;
  --accent: #ffffff;
  --video-percent: 62%;
  --card-blur: 24px;
  --lyrics-color: #ffffff;
  --lyrics-size: 28px;
  --lyrics-inactive-opacity: .22;
  --cursor-size: 7px;
  --background-poster: none;
  font-family: var(--ui-font, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: var(--bg); }
body { color: var(--text); -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button, a { color: inherit; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid rgba(255,255,255,.9);
  outline-offset: 3px;
}

::-webkit-scrollbar { width: 0; height: 0; }
* { scrollbar-width: none; }

.background, .background video, .background-overlay, .background-vignette, .grain {
  position: fixed;
  inset: 0;
}
.background { z-index: 0; background: #060606 var(--background-poster) center / cover no-repeat; overflow: hidden; }
html:not(.has-entered) .background { visibility: hidden; }
.background video {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 50%;
  filter: brightness(var(--background-brightness, .78)) saturate(1.04) contrast(1.03);
  transform: scale(1.015);
  opacity: 0;
  transition: opacity .58s cubic-bezier(.2,.72,.2,1), filter .25s ease;
  will-change: opacity;
}
.background video.is-active { opacity: 1; }
.background-overlay { background: rgba(0,0,0,var(--background-overlay,.32)); }
.background-vignette {
  background:
    radial-gradient(circle at 50% 46%, transparent 18%, rgba(0,0,0,.08) 55%, rgba(0,0,0,.62) 110%),
    linear-gradient(180deg, rgba(0,0,0,.12), transparent 34%, rgba(0,0,0,.2));
}
.grain {
  opacity: .055;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.glass {
  background: linear-gradient(145deg, rgba(21,21,23,.7), rgba(9,9,10,.45));
  border: 1px solid var(--border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.045);
  backdrop-filter: blur(var(--card-blur, 24px)) saturate(1.08);
  -webkit-backdrop-filter: blur(var(--card-blur, 24px)) saturate(1.08);
}

.enter-screen {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: #070707;
  transition: opacity .7s cubic-bezier(.2,.8,.2,1), visibility .7s;
}
.enter-screen.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.enter-card {
  width: min(460px, calc(100vw - 40px));
  padding: 44px 38px 34px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 30px;
  background: rgba(10,10,11,.5);
  box-shadow: 0 30px 90px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(24px);
  text-align: center;
}
.enter-kicker { display: block; font-size: 10px; letter-spacing: .38em; color: rgba(255,255,255,.52); }
.enter-card h1 { margin: 10px 0 28px; font-size: clamp(44px, 8vw, 74px); letter-spacing: -.055em; font-weight: 590; }
.enter-button {
  width: 100%; height: 58px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px;
  background: rgba(255,255,255,.94); color: #080808; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 680; letter-spacing: .02em;
  transition: transform .22s ease, background .22s ease;
}
.enter-button:hover { transform: translateY(-2px); background: #fff; }
.enter-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.enter-card p { margin: 15px 0 0; color: rgba(255,255,255,.42); font-size: 12px; }

.site { position: relative; z-index: 2; width: 100%; height: 100%; opacity: 0; transition: opacity .8s ease; }
.site.is-visible { opacity: 1; }
.topbar {
  position: fixed; z-index: 10; top: 0; left: 0; right: 0;
  height: 76px; padding: 0 clamp(18px, 3vw, 48px);
  display: flex; align-items: center; justify-content: flex-end;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar-actions { display: flex; gap: 10px; }
.top-button {
  height: 42px; padding: 0 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px;
  background: rgba(10,10,11,.48); backdrop-filter: blur(calc(var(--card-blur, 24px) * .75)); color: rgba(255,255,255,.9);
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  box-shadow: 0 10px 36px rgba(0,0,0,.22);
  transition: background .2s ease, transform .2s ease;
}
.top-button:hover { background: rgba(24,24,26,.72); transform: translateY(-1px); }
.top-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.top-button span { font-size: 12px; }
.settings-trigger, .settings-trigger:hover, .settings-trigger:active, .settings-trigger[aria-expanded="true"] { appearance: none; display: grid; place-items: center; width: 30px; height: 40px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; filter: none; color: rgba(255,255,255,.65); cursor: pointer; }
.settings-trigger:hover { color: #fff; }
.settings-trigger::before, .settings-trigger::after { content: none; }
.settings-trigger svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.layout {
  width: min(1540px, calc(100vw - 70px));
  height: calc(100vh - 116px);
  margin: 76px auto 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: stretch;
  transition: width .45s ease, grid-template-columns .45s cubic-bezier(.2,.75,.2,1), gap .45s ease;
}
.profile-panel {
  position: relative; min-height: 0; overflow: hidden; border-radius: var(--radius);
  padding: 34px 30px 28px; display: flex; flex-direction: column; justify-content: center;
  grid-column: 2; grid-row: 1;
}
.profile-eyebrow { margin: 0 0 4px; font-size: 10px; letter-spacing: .3em; color: rgba(255,255,255,.4); }
.profile-panel h2 { position: relative; z-index: 1; margin: 0 0 25px; font-size: clamp(40px, 4vw, 66px); line-height: .98; letter-spacing: -.06em; font-weight: 570; }
.identity-card {
  position: relative; z-index: 1; min-height: 78px; padding: 12px 14px;
  display: flex; align-items: center; gap: 13px;
  border: 1px solid rgba(255,255,255,.1); border-radius: 21px;
  background: rgba(255,255,255,.055);
}
.avatar-wrap { position: relative; flex: 0 0 auto; }
.avatar-wrap img { display: block; width: 53px; height: 53px; border-radius: 16px; object-fit: cover; box-shadow: 0 8px 30px rgba(0,0,0,.34); }
.status-dot { position: absolute; right: -2px; bottom: -1px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid #1a1a1c; }
.status-away { background: #f3ad38; }
.status-online { background: #37d67a; }
.status-idle { background: #f3ad38; }
.status-dnd { background: #f45164; }
.status-offline { background: #74787f; }
.identity-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.identity-name-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.identity-name-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.identity-copy > span { font-size: 12px; color: rgba(255,255,255,.53); }
.verified { display: inline-flex; width: 17px; color: #8469e9; }
.verified svg { width: 100%; fill: currentColor; }
.verified svg path:last-child { fill: none; stroke: #fff; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }

.presence-card {
  position: relative; z-index: 1; margin-top: 14px; padding: 11px; min-height: 66px;
  display: flex; align-items: center; gap: 11px; border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px; background: rgba(255,255,255,.045); text-decoration: none; overflow: hidden;
}
.presence-card > img { width: 44px; height: 44px; border-radius: 13px; object-fit: cover; background: #171719; }
.presence-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.presence-copy > span { font-size: 8px; letter-spacing: .18em; color: rgba(255,255,255,.4); }
.presence-copy strong { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.presence-copy small { color: rgba(255,255,255,.5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.presence-progress { margin-top: 5px; height: 2px; border-radius: 10px; background: rgba(255,255,255,.1); overflow: hidden; }
.presence-progress span { display: block; width: 0; height: 100%; background: #fff; transition: width 1s linear; }

.social-links { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 17px; }
.social-link img { width: 22px; height: 22px; object-fit: contain; }
.social-link {
  height: 44px; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04);
  display: grid; place-items: center; text-decoration: none; transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.social-link:hover { transform: translateY(-2px); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); }
.social-link svg { width: 19px; height: 19px; fill: currentColor; }
.social-letter { display: block; font-size: 20px; line-height: 1; font-weight: 760; letter-spacing: -.06em; }
.social-link--flixy { background: rgba(255,255,255,.035); }
.social-link--flixy:hover { background: rgba(255,255,255,.1); }
.views { position: relative; z-index: 1; margin-top: 18px; display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.52); font-size: 11px; }
.views svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }


/* Minimal background-video brightness control. */
.brightness-control {
  --brightness-progress: 53%;
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 2px;
  color: rgba(255,255,255,.62);
  user-select: none;
}
.brightness-control svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}
.brightness-control input {
  width: 92px;
  height: 24px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}
.brightness-control input::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 99px;
  background:
    linear-gradient(90deg,
      rgba(255,255,255,.92) 0 var(--brightness-progress),
      rgba(255,255,255,.18) var(--brightness-progress) 100%);
}
.brightness-control input::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border: 0;
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.08), 0 0 14px rgba(255,255,255,.35);
}
.brightness-control input::-moz-range-track {
  height: 2px;
  border: 0;
  border-radius: 99px;
  background: rgba(255,255,255,.18);
}
.brightness-control input::-moz-range-progress {
  height: 2px;
  border-radius: 99px;
  background: rgba(255,255,255,.92);
}
.brightness-control input::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.08), 0 0 14px rgba(255,255,255,.35);
}
.brightness-control input:focus-visible { outline: none; }
.brightness-control:has(input:focus-visible) { color: #fff; }

.blur-control {
  --blur-progress: 60%;
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 2px;
  color: rgba(255,255,255,.62);
  user-select: none;
}
.blur-control svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
}
.blur-control input {
  width: 82px;
  height: 24px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}
.blur-control input::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 99px;
  background:
    linear-gradient(90deg,
      rgba(255,255,255,.92) 0 var(--blur-progress),
      rgba(255,255,255,.18) var(--blur-progress) 100%);
}
.blur-control input::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border: 0;
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.08), 0 0 14px rgba(255,255,255,.35);
}
.blur-control input::-moz-range-track {
  height: 2px;
  border: 0;
  border-radius: 99px;
  background: rgba(255,255,255,.18);
}
.blur-control input::-moz-range-progress {
  height: 2px;
  border-radius: 99px;
  background: rgba(255,255,255,.92);
}
.blur-control input::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.08), 0 0 14px rgba(255,255,255,.35);
}
.blur-control input:focus-visible { outline: none; }
.blur-control:has(input:focus-visible) { color: #fff; }

.player {
  position: relative; min-width: 0; min-height: 0; border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; grid-column: 1; grid-row: 1;
}
.cinematic-grid {
  flex: 1; min-height: 0; display: grid;
  grid-template-columns: minmax(0, var(--video-percent)) 10px minmax(260px, 1fr);
  padding: 14px 14px 0; overflow: hidden;
}
.video-pane {
  position: relative; min-width: 0; min-height: 0; overflow: hidden; border-radius: 20px;
  background: #050505; border: 1px solid rgba(255,255,255,.08);
}
.video-pane video, .video-pane .cover {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #050505;
}
.video-pane video { opacity: 1; transition: opacity .45s ease; }
.video-pane .cover { opacity: 0; transition: opacity .45s ease; }
.video-pane.is-loading video { opacity: 0; }
.video-pane.is-loading .cover { opacity: 1; object-fit: cover; }
.video-pane.is-cover video { opacity: 0; pointer-events: none; }
.video-pane.is-cover .cover { opacity: 1; object-fit: cover; }
.video-sheen { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 80px rgba(0,0,0,.18); }
.video-toggle {
  position: absolute; right: 13px; top: 13px; width: 38px; height: 38px; border-radius: 13px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(5,5,6,.55); backdrop-filter: blur(12px); cursor: pointer;
  display: grid; place-items: center; opacity: 0; transform: translateY(-4px); transition: opacity .2s ease, transform .2s ease, background .2s ease;
}
.video-pane:hover .video-toggle, .video-toggle:focus-visible { opacity: 1; transform: translateY(0); }
.video-toggle:hover { background: rgba(25,25,27,.82); }
.video-toggle svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.split-handle {
  position: relative; width: 10px; border: 0; background: transparent; padding: 0; cursor: ew-resize;
  display: grid; place-items: center;
}
.split-handle::before { content: ""; position: absolute; inset: 0 -6px; }
.split-handle span { width: 2px; height: 44px; border-radius: 20px; background: rgba(255,255,255,.16); transition: height .2s ease, background .2s ease; }
.split-handle:hover span, .split-handle.is-dragging span { height: 70px; background: rgba(255,255,255,.42); }

.lyrics-panel {
  min-width: 0; min-height: 0; padding: 10px 12px 0 20px; display: flex; flex-direction: column;
  opacity: 1; transform: translateX(0); transition: opacity .42s ease, transform .42s cubic-bezier(.2,.75,.2,1), width .42s ease;
}
.lyrics-panel[hidden] { display: none; }
.lyrics-header { height: 52px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lyrics-header > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lyrics-header span { font-size: 8px; letter-spacing: .23em; color: rgba(255,255,255,.34); }
.lyrics-header .lyrics-kicker { display: flex; align-items: center; gap: 7px; }
.lyrics-kicker b { padding: 3px 5px; border: 1px solid rgba(255,255,255,.1); border-radius: 5px; color: rgba(255,255,255,.56); font-size: 6px; letter-spacing: .13em; font-weight: 700; }
.lyrics-header strong { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 580; color: rgba(255,255,255,.74); }
.lyrics-header button, .queue-panel header button {
  width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px;
  background: rgba(255,255,255,.035); cursor: pointer; display: grid; place-items: center;
}
.lyrics-header button:hover, .queue-panel header button:hover { background: rgba(255,255,255,.09); }
.lyrics-header svg, .queue-panel header svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.lyrics-viewport { min-height: 0; flex: 1; overflow: auto; mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 88%, transparent); padding: 30% 4px 34%; scroll-behavior: auto; }
.lyrics-lines { display: flex; flex-direction: column; gap: 15px; }
.lyric-line {
  margin: 0; border: 0; padding: 0; background: transparent; color: rgba(255,255,255,.22); text-align: left;
  font-size: clamp(18px, var(--lyrics-size), 48px); line-height: 1.2; font-weight: 560; letter-spacing: -.025em;
  cursor: pointer; transform-origin: left center;
  transition: opacity .6s cubic-bezier(.22,1,.36,1);
}
.lyric-line { color: var(--lyrics-color); opacity: var(--lyrics-inactive-opacity); }
.lyric-line.is-near { opacity: max(.48, var(--lyrics-inactive-opacity)); }
.lyric-line.is-active { opacity: 1; }
.lyric-text { display: block; width: 92%; transform: scale(.88); transform-origin: left center; transition: transform .58s cubic-bezier(.22,1,.36,1); }
.lyric-line.is-active .lyric-text { transform: scale(1.06); }
.lyric-line [data-word] { display: inline-block; opacity: .5; transform: scale(.84); transform-origin: center 65%; transition: opacity .22s ease, transform .32s cubic-bezier(.22,1,.36,1); }
.lyric-line [data-word].is-word-active { opacity: 1; }
.lyric-line.is-active [data-word].is-word-current { transform: translateY(-.035em) scale(1); }
.lyric-line:not(.is-active) [data-word] { opacity: 1; }
.lyric-line:hover, .lyric-line:focus-visible { opacity: 1; }
.lyric-status { color: rgba(255,255,255,.42); font-size: 13px; line-height: 1.6; padding: 22px 2px; }

.player-console {
  flex: 0 0 auto; min-height: 142px; padding: 19px 20px 18px;
  display: grid; grid-template-columns: minmax(190px, .8fr) minmax(300px, 1.5fr) minmax(190px, .7fr);
  align-items: center; gap: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(8,8,9,.42); backdrop-filter: blur(var(--card-blur, 24px));
}
.now-playing { min-width: 0; display: flex; align-items: center; gap: 12px; }
.mini-cover { width: 56px; height: 56px; border-radius: 15px; object-fit: cover; flex: 0 0 auto; box-shadow: 0 9px 28px rgba(0,0,0,.35); }
.track-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.track-copy > span { font-size: 8px; letter-spacing: .19em; color: rgba(255,255,255,.34); }
.track-copy strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; font-weight: 650; }
.track-copy small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(255,255,255,.52); font-size: 11px; }
.track-copy .track-volume { align-self: flex-start; }
.transport-area { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.transport-area .main-controls { justify-content: center; margin-top: 1px; }
.visualizer { width: 100%; height: 49px; display: block; opacity: .9; }
.timeline-row { display: grid; grid-template-columns: 34px 1fr 34px; gap: 9px; align-items: center; color: rgba(255,255,255,.48); font-size: 9px; font-variant-numeric: tabular-nums; }
.timeline-row span:last-child { text-align: right; }
.progress { position: relative; height: 16px; cursor: pointer; touch-action: none; }
.progress::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; border-radius: 10px; background: rgba(255,255,255,.15); }
.progress-fill { position: absolute; left: 0; top: 7px; width: 0; height: 2px; border-radius: 10px; background: #fff; box-shadow: 0 0 15px rgba(255,255,255,.44); }
.progress-thumb { position: absolute; top: 3px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 15px rgba(255,255,255,.4); transform: translateX(-50%) scale(.65); opacity: 0; transition: opacity .2s ease, transform .2s ease; }
.progress:hover .progress-thumb, .progress:focus-visible .progress-thumb { opacity: 1; transform: translateX(-50%) scale(1); }
.controls-area { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.track-volume {
  --volume-progress: 72%;
  height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 0 1px;
  color: rgba(255,255,255,.62);
  user-select: none;
}
.track-volume-button {
  width: 15px;
  height: 15px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}
.track-volume-button:hover { color: #fff; }
.track-volume-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#volumeSlider {
  width: 88px;
  height: 24px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}
#volumeSlider::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 99px;
  background:
    linear-gradient(90deg,
      rgba(255,255,255,.92) 0 var(--volume-progress),
      rgba(255,255,255,.18) var(--volume-progress) 100%);
}
#volumeSlider::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border: 0;
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.08), 0 0 14px rgba(255,255,255,.35);
}
#volumeSlider::-moz-range-track {
  height: 2px;
  border: 0;
  border-radius: 99px;
  background: rgba(255,255,255,.18);
}
#volumeSlider::-moz-range-progress {
  height: 2px;
  border-radius: 99px;
  background: rgba(255,255,255,.92);
}
#volumeSlider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.08), 0 0 14px rgba(255,255,255,.35);
}
#volumeSlider:focus-visible, .track-volume-button:focus-visible { outline: none; }
.track-volume:has(#volumeSlider:focus-visible), .track-volume:has(.track-volume-button:focus-visible) { color: #fff; }
.main-controls, .secondary-controls { display: flex; align-items: center; gap: 7px; }
.control, .secondary-controls button {
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s ease, color .2s ease, opacity .2s ease, transform .2s ease, border-color .2s ease;
}
.control {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.78);
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.45));
}
.control:hover {
  color: #fff;
  background: transparent;
  transform: scale(1.1);
}
.control:active { transform: scale(.94); }
.secondary-controls button {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.045);
}
.secondary-controls button:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.11);
  border-color: rgba(255,255,255,.18);
}
.control.small { width: 28px; height: 34px; border-radius: 0; }
.control.play { width: 36px; height: 42px; border-radius: 0; background: transparent; color: #fff; }
.control.play:hover { background: transparent; }
.control svg { width: 14px; fill: currentColor; }
.control.play svg { width: 19px; }
.secondary-controls { padding-left: 12px; border-left: 1px solid rgba(255,255,255,.1); }
.secondary-controls button { position: relative; width: 36px; height: 36px; border-radius: 12px; }
.secondary-controls svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.secondary-controls span { position: absolute; right: -4px; top: -5px; min-width: 16px; height: 16px; border-radius: 8px; background: #fff; color: #080808; display: grid; place-items: center; font-size: 8px; font-weight: 800; padding: 0 4px; }

#lyricsButton.is-unavailable { opacity: .42; }
#lyricsButton.is-unavailable::after {
  content: "";
  position: absolute;
  width: 21px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(-45deg);
  box-shadow: 0 0 8px rgba(255,255,255,.25);
}
#lyricsButton.is-loading { opacity: .58; }

.panel-backdrop {
  position: fixed;
  z-index: 108;
  inset: 0;
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: panelFadeIn .25s ease;
}
.panel-backdrop[hidden], .side-panel[hidden] { display: none; }
@keyframes panelFadeIn { from { opacity: 0; } }

.side-panel {
  position: fixed;
  z-index: 110;
  right: clamp(16px, 2.2vw, 34px);
  top: 86px;
  bottom: 24px;
  width: min(420px, calc(100vw - 32px));
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 24px;
  background: rgba(8,8,10,.93);
  backdrop-filter: blur(var(--card-blur, 24px)) saturate(1.08);
  -webkit-backdrop-filter: blur(var(--card-blur, 24px)) saturate(1.08);
  box-shadow: 0 28px 100px rgba(0,0,0,.62), inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: sidePanelIn .34s cubic-bezier(.2,.75,.2,1);
}
@keyframes sidePanelIn { from { opacity: 0; transform: translateX(22px) scale(.985); } }
.side-panel header {
  min-height: 76px;
  flex: 0 0 auto;
  padding: 16px 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.side-panel header > div { display: flex; flex-direction: column; gap: 3px; }
.side-panel header span { font-size: 8px; letter-spacing: .2em; color: rgba(255,255,255,.36); }
.side-panel header strong { font-size: 15px; }
.side-panel header button {
  width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px;
  background: rgba(255,255,255,.035); cursor: pointer; display: grid; place-items: center;
}
.side-panel header button:hover { background: rgba(255,255,255,.09); }
.side-panel header svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.queue-list, .playlist-list { min-height: 0; overflow: auto; padding: 10px; }
.queue-item {
  width: 100%; min-height: 68px; padding: 8px; border: 1px solid transparent; border-radius: 16px; background: transparent;
  display: grid; grid-template-columns: 48px 1fr auto; gap: 11px; align-items: center; text-align: left; cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.queue-item:hover { background: rgba(255,255,255,.055); transform: translateX(2px); }
.queue-item.is-active { background: rgba(255,255,255,.085); border-color: rgba(255,255,255,.1); }
.queue-item img { width: 48px; height: 48px; border-radius: 13px; object-fit: cover; }
.queue-item-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.queue-item-copy strong, .queue-item-copy small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-item-copy strong { font-size: 12px; }
.queue-item-copy small { font-size: 10px; color: rgba(255,255,255,.48); }
.queue-index { color: rgba(255,255,255,.35); font-size: 10px; font-variant-numeric: tabular-nums; }

.playlist-list { display: flex; flex-direction: column; gap: 10px; }
.playlist-option {
  position: relative;
  width: 100%;
  min-height: 124px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 19px;
  background: #101012;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.playlist-option:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.22); }
.playlist-option.is-active { border-color: rgba(255,255,255,.52); box-shadow: 0 0 0 1px rgba(255,255,255,.13), 0 18px 44px rgba(0,0,0,.32); }
.playlist-option > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .58; z-index: -2; }
.playlist-option::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,5,6,.92), rgba(5,5,6,.42) 68%, rgba(5,5,6,.18)); }
.playlist-option-copy { min-height: 124px; padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; }
.playlist-option-copy span { font-size: 8px; letter-spacing: .2em; color: rgba(255,255,255,.5); }
.playlist-option-copy strong { font-size: 20px; letter-spacing: -.03em; }
.playlist-option-copy small { color: rgba(255,255,255,.58); font-size: 11px; }
.playlist-option-check { position: absolute; right: 14px; top: 14px; width: 25px; height: 25px; border-radius: 50%; background: rgba(255,255,255,.92); color: #080808; display: none; place-items: center; font-size: 13px; font-weight: 900; }
.playlist-option.is-active .playlist-option-check { display: grid; }

.toast {
  position: fixed; z-index: 60; left: 50%; bottom: 28px; transform: translate(-50%, 14px);
  opacity: 0; visibility: hidden; pointer-events: none; padding: 10px 14px; border: 1px solid rgba(255,255,255,.11); border-radius: 12px;
  background: rgba(10,10,11,.82); backdrop-filter: blur(18px); color: rgba(255,255,255,.82); font-size: 11px;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* Profile view: preserves the centered guns.lol-inspired presentation. */
.site:not(.is-cinematic) .layout {
  width: min(800px, calc(100vw - 40px));
  grid-template-columns: 1fr;
  align-content: center;
  gap: 18px;
}
.site:not(.is-cinematic) .profile-panel {
  grid-column: 1; grid-row: 1; width: min(430px, 100%); min-height: 310px; justify-self: center;
}
.site:not(.is-cinematic) .player {
  grid-column: 1; grid-row: 2; min-height: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site:not(.is-cinematic) .cinematic-grid { display: none; }
.site:not(.is-cinematic) .player-console {
  min-height: 150px;
  grid-template-columns: minmax(190px,.8fr) minmax(260px,1.3fr) auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(8,8,9,.86);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(var(--card-blur, 24px)) saturate(1.05);
  -webkit-backdrop-filter: blur(var(--card-blur, 24px)) saturate(1.05);
}

/* Lyrics hidden: give the video the full visual stage. */
.player.lyrics-hidden .cinematic-grid { grid-template-columns: minmax(0,1fr); }
.player.lyrics-hidden .split-handle, .player.lyrics-hidden .lyrics-panel { display: none; }

/* Fullscreen keeps video on the left and lyrics on the right. */
.player:fullscreen, .player:-webkit-full-screen {
  width: 100vw; height: 100vh; border-radius: 0; border: 0; background: #050505;
}
.player:fullscreen .cinematic-grid, .player:-webkit-full-screen .cinematic-grid { padding: 14px 14px 0; }
.player:fullscreen .player-console, .player:-webkit-full-screen .player-console { min-height: 132px; }
.player:fullscreen .lyrics-panel, .player:-webkit-full-screen .lyrics-panel { max-width: 560px; }
.player:fullscreen .lyric-line, .player:-webkit-full-screen .lyric-line { font-size: clamp(21px, 2vw, 36px); }

@media (hover: hover) and (pointer: fine) {
  html.cursor-dot-enabled, html.cursor-dot-enabled * { cursor: var(--dot-cursor, auto) !important; }
  html.cursor-dot-enabled input[type="text"], html.cursor-dot-enabled textarea { cursor: text !important; }
}

@media (max-width: 1120px) {
  .layout { width: min(1040px, calc(100vw - 34px)); grid-template-columns: minmax(0,1fr) 290px; gap: 18px; }
  .profile-panel { padding: 27px 22px; }
  .player-console { grid-template-columns: minmax(150px,.7fr) minmax(260px,1.3fr) auto; gap: 12px; padding: 16px; }
  #volumeSlider { width: 82px; }
  .secondary-controls { display: grid; grid-template-columns: repeat(4, 34px); gap: 5px; padding-left: 8px; }
  .secondary-controls button { width: 34px; height: 34px; }
}

@media (max-width: 860px) {
  html, body { overflow: auto; min-height: 100%; }
  .background { position: fixed; }
  .site { min-height: 100svh; height: auto; }
  .topbar { height: 66px; }
  .top-button span { display: none; }
  .brightness-control { gap: 6px; height: 40px; }
  .brightness-control input { width: 72px; }
  .brightness-control svg { width: 14px; height: 14px; }
  .blur-control { gap: 6px; height: 40px; }
  .blur-control input { width: 62px; }
  .blur-control svg { width: 14px; height: 14px; }
  .layout, .site:not(.is-cinematic) .layout {
    width: min(720px, calc(100vw - 24px)); height: auto; min-height: calc(100svh - 90px); margin: 66px auto 24px;
    grid-template-columns: 1fr; display: flex; flex-direction: column; gap: 14px;
  }
  .profile-panel, .site:not(.is-cinematic) .profile-panel {
    width: 100%; min-height: 280px; order: 2; grid-column: auto; grid-row: auto; justify-self: auto;
  }
  .player, .site:not(.is-cinematic) .player { order: 1; min-height: 720px; grid-column: auto; grid-row: auto; }
  .cinematic-grid, .site:not(.is-cinematic) .cinematic-grid {
    display: grid; flex: 1; grid-template-columns: 1fr; grid-template-rows: minmax(280px, 46svh) auto;
    padding: 10px 10px 0;
  }
  .video-pane { min-height: 280px; }
  .split-handle { display: none; }
  .lyrics-panel { min-height: 340px; padding: 8px 8px 0; }
  .lyrics-viewport { padding: 18% 4px 24%; }
  .player-console { grid-template-columns: 1fr; gap: 13px; padding: 15px; }
  .now-playing { justify-content: center; }
  .transport-area { width: 100%; }
  .controls-area { justify-content: center; }
  #volumeSlider { width: 96px; }
  .main-controls { order: 1; }
  .secondary-controls { order: 3; display: flex; }
  .social-links { grid-template-columns: repeat(5, 1fr); }
  .side-panel { left: 12px; right: 12px; width: auto; }
  .player.lyrics-hidden { min-height: 500px; }
  .player.lyrics-hidden .cinematic-grid { display: grid; grid-template-rows: minmax(320px, 1fr); }
  .player:fullscreen .cinematic-grid, .player:-webkit-full-screen .cinematic-grid { grid-template-columns: 1fr; grid-template-rows: minmax(45vh, 1fr) minmax(260px, 40vh); }
}

@media (max-width: 520px) {
  .topbar { padding: 0 12px; }
  .layout, .site:not(.is-cinematic) .layout { width: calc(100vw - 16px); }
  .player { border-radius: 22px; }
  .profile-panel { border-radius: 22px; }
  .player-console { min-height: 224px; }
  .now-playing { justify-content: flex-start; }
  .controls-area { flex-direction: column; gap: 10px; }
  .secondary-controls { padding-left: 0; border-left: 0; }
  .social-links { grid-template-columns: repeat(5, 1fr); }
  .profile-panel h2 { font-size: 48px; }
  .lyric-line { font-size: 22px; }
  .enter-card { padding: 38px 24px 29px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .grain { display: none; }
}



/* Mobile-first public profile refinement — v1.2 */
@media (max-width: 860px) {
  :root { --radius: 22px; }

  html, body {
    min-height: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    background: #050505;
  }

  body { padding-bottom: env(safe-area-inset-bottom, 0); }
  .background video { transform: scale(1.035); }
  .background-vignette {
    background:
      linear-gradient(180deg, rgba(0,0,0,.24), transparent 26%, rgba(0,0,0,.34)),
      radial-gradient(circle at 50% 34%, transparent 6%, rgba(0,0,0,.6) 112%);
  }

  .site { min-height: 100dvh; height: auto; }
  .topbar {
    height: calc(56px + env(safe-area-inset-top, 0));
    padding: env(safe-area-inset-top, 0) 10px 0;
    align-items: center;
  }
  .top-button {
    width: 42px; height: 42px; padding: 0; justify-content: center;
    border-radius: 14px; background: rgba(8,8,9,.64);
  }
  .top-button span { display: none; }

  .layout, .site:not(.is-cinematic) .layout {
    width: calc(100vw - 16px);
    min-height: 0;
    height: auto;
    margin: calc(64px + env(safe-area-inset-top, 0)) auto max(12px, env(safe-area-inset-bottom, 0));
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .player, .site:not(.is-cinematic) .player {
    order: 1;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    border-radius: 22px;
  }
  .profile-panel, .site:not(.is-cinematic) .profile-panel {
    order: 2;
    width: 100%;
    min-height: 0;
    padding: 23px 20px 19px;
    justify-content: flex-start;
    border-radius: 22px;
  }
  .site:not(.is-cinematic) .profile-panel { order: 1; }
  .site:not(.is-cinematic) .player { order: 2; }

  .profile-eyebrow { font-size: 8px; margin-bottom: 5px; }
  .profile-panel h2 { margin-bottom: 18px; font-size: clamp(42px, 13vw, 58px); }
  .identity-card { min-height: 68px; padding: 9px 11px; border-radius: 18px; }
  .avatar-wrap img { width: 48px; height: 48px; border-radius: 14px; }
  .presence-card { margin-top: 11px; min-height: 61px; border-radius: 16px; }
  .social-links { margin-top: 13px; gap: 7px; }
  .social-link { height: 42px; border-radius: 13px; }
  .views { margin-top: 14px; }

  .cinematic-grid, .site:not(.is-cinematic) .cinematic-grid {
    display: block;
    flex: 0 0 auto;
    min-height: 0;
    padding: 8px 8px 0;
    overflow: visible;
  }
  .site:not(.is-cinematic) .cinematic-grid { display: none; }
  .video-pane {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
  }
  .video-toggle {
    opacity: 1;
    transform: none;
    top: 9px; right: 9px;
    width: 36px; height: 36px;
    border-radius: 12px;
  }
  .split-handle { display: none; }

  .lyrics-panel {
    position: fixed;
    z-index: 80;
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom, 0));
    width: auto;
    height: min(68dvh, 620px);
    min-height: 0;
    padding: 10px 12px 0;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 24px;
    background: rgba(8,8,10,.91);
    box-shadow: 0 24px 90px rgba(0,0,0,.72);
    backdrop-filter: blur(var(--card-blur, 24px)) saturate(1.12);
    -webkit-backdrop-filter: blur(var(--card-blur, 24px)) saturate(1.12);
    animation: mobileSheetIn .3s cubic-bezier(.2,.75,.2,1);
  }
  @keyframes mobileSheetIn {
    from { opacity: 0; transform: translateY(18px) scale(.985); }
  }
  .lyrics-header { height: 48px; padding: 0 2px; }
  .lyrics-header strong { font-size: 11px; }
  .lyrics-viewport { padding: 22% 3px 30%; }
  .lyrics-lines { gap: 14px; }
  .lyric-line {
    font-size: clamp(21px, 6.4vw, 29px);
    line-height: 1.16;
  }

  .player-console, .site:not(.is-cinematic) .player-console {
    min-height: 0;
    padding: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "now controls"
      "transport transport";
    gap: 11px 12px;
    align-items: center;
  }
  .now-playing { grid-area: now; justify-content: flex-start; gap: 10px; }
  .mini-cover { width: 46px; height: 46px; border-radius: 13px; }
  .track-copy > span { font-size: 7px; }
  .track-copy strong { font-size: 13px; }
  .track-copy small { font-size: 10px; }
  .track-volume { margin-top: 5px; }
  #volumeSlider { width: 76px; }
  .transport-area { grid-area: transport; width: 100%; }
  .visualizer { height: 34px; }
  .timeline-row { gap: 8px; }
  .timeline-row > span { width: 31px; font-size: 9px; }
  .controls-area {
    grid-area: controls;
    justify-content: flex-end;
    flex-direction: row;
    gap: 8px;
  }
  .main-controls, .secondary-controls { gap: 5px; }
  .control.small { width: 27px; height: 32px; border-radius: 0; }
  .control.play { width: 34px; height: 40px; border-radius: 0; }
  .secondary-controls {
    display: flex;
    padding-left: 8px;
    border-left: 1px solid rgba(255,255,255,.1);
  }
  .secondary-controls button { width: 33px; height: 33px; border-radius: 11px; }

  .side-panel {
    position: fixed;
    z-index: 90;
    left: 8px;
    right: 8px;
    top: auto;
    bottom: max(8px, env(safe-area-inset-bottom, 0));
    width: auto;
    height: min(74dvh, 660px);
    border-radius: 24px;
    background: rgba(8,8,10,.95);
    box-shadow: 0 24px 90px rgba(0,0,0,.74);
    animation: mobileSheetIn .3s cubic-bezier(.2,.75,.2,1);
  }
  .side-panel header { min-height: 68px; }
  .queue-list, .playlist-list { padding: 7px; }
  .queue-item { min-height: 64px; grid-template-columns: 45px 1fr auto; }
  .queue-item img { width: 45px; height: 45px; }
  .playlist-option { min-height: 112px; }
  .playlist-option-copy { min-height: 112px; }

  .toast { bottom: max(14px, env(safe-area-inset-bottom, 0)); }
}

@media (max-width: 560px) {
  .player-console, .site:not(.is-cinematic) .player-console {
    grid-template-columns: 1fr;
    grid-template-areas:
      "now"
      "transport"
      "controls";
    gap: 10px;
    padding: 11px;
  }
  .controls-area {
    width: 100%;
    justify-content: space-between;
    flex-direction: row !important;
  }
  .secondary-controls { padding-left: 9px; }
  .profile-panel { padding: 21px 18px 18px; }
  .enter-card { width: calc(100vw - 24px); padding: 35px 23px 27px; border-radius: 24px; }
  .enter-card h1 { font-size: clamp(48px, 16vw, 68px); }
}

@media (max-width: 390px) {
  .layout, .site:not(.is-cinematic) .layout { width: calc(100vw - 12px); gap: 8px; }
  .player, .profile-panel { border-radius: 19px; }
  .cinematic-grid { padding: 6px 6px 0; }
  .video-pane { border-radius: 14px; }
  .profile-panel h2 { font-size: 43px; }
  .social-links { gap: 5px; }
  .social-link { height: 39px; }
  .main-controls, .secondary-controls { gap: 4px; }
  .control.small { width: 25px; height: 30px; }
  .control.play { width: 32px; height: 38px; }
  .secondary-controls button { width: 31px; height: 31px; }
}

/* Fullscreen mobile player: video gets the stage, controls stay reachable. */
@media (max-width: 860px) {
  .player:fullscreen, .player:-webkit-full-screen {
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    display: flex;
    border-radius: 0;
  }
  .player:fullscreen .cinematic-grid, .player:-webkit-full-screen .cinematic-grid {
    flex: 1 1 auto;
    min-height: 0;
    display: block;
    padding: 0;
  }
  .player:fullscreen .video-pane, .player:-webkit-full-screen .video-pane {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
  }
  .player:fullscreen .player-console, .player:-webkit-full-screen .player-console {
    flex: 0 0 auto;
    min-height: 0;
    padding-bottom: max(11px, env(safe-area-inset-bottom, 0));
    border-radius: 0;
  }
  .player:fullscreen .lyrics-panel, .player:-webkit-full-screen .lyrics-panel {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    max-width: none;
    border: 0;
    border-radius: 0;
    background: rgba(5,5,6,.9);
    padding-top: max(10px, env(safe-area-inset-top, 0));
  }
  .player:fullscreen .side-panel, .player:-webkit-full-screen .side-panel {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: min(78dvh, 720px);
    border-radius: 24px 24px 0 0;
  }
}


/* v1.6 player and overlay corrections */
.controls-area { justify-content: flex-end; }
.transport-area .main-controls { width: 100%; }
.site:not(.is-cinematic) .player-console { overflow: hidden; }
.side-panel, .panel-backdrop { isolation: isolate; }

@media (max-width: 860px) {
  .transport-area .main-controls { margin-top: 0; }
  .controls-area { align-self: center; }
  .site:not(.is-cinematic) .player-console { border-radius: 22px; }
}

@media (max-width: 560px) {
  .controls-area { justify-content: center; }
  .secondary-controls { padding-left: 0; border-left: 0; }
}

@media (max-width: 520px) {
  .topbar { padding-inline: 10px; }
  .topbar-actions { gap: 7px; }
  .brightness-control input { width: 58px; }
  .blur-control input { width: 52px; }
  #volumeSlider { width: 96px; }
}

/* Viewer settings — intentionally local and view-only. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
.presence-inline { display: block; margin-top: 7px; text-decoration: none; color: inherit; border: 0; background: none; }
.presence-inline .presence-copy { gap: 3px; }
.presence-inline strong { font-size: 11px; font-weight: 500; line-height: 1.4; color: rgba(255,255,255,.76); white-space: normal; }
.presence-inline small { font-size: 10px; line-height: 1.4; white-space: normal; }
.presence-inline .presence-progress { max-width: 140px; height: 2px; margin-top: 5px; }
.identity-card { align-items: flex-start; }
.side-panel { z-index: 110; }
.settings-panel { width: min(430px, calc(100vw - 30px)); }
.setting-group h3 { margin: 0 0 14px; font-size: 10px; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .16em; font-weight: 600; }
.setting-choice { margin: 14px 0; }
.setting-choice > strong { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 600; }
.setting-help { margin: 0 0 8px; font-size: 10px; color: rgba(255,255,255,.38); line-height: 1.5; }
.setting-help { color: rgba(255,255,255,.56); font-size: 11px; line-height: 1.55; }
.setting-row + .setting-help { margin-bottom: 15px; }
.setting-switch { padding-block: 9px; }
.setting-switch small { font-size: 11px; line-height: 1.5; color: rgba(255,255,255,.52); max-width: 290px; }
.timing-settings { margin: 17px 0 4px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.07); }
.timing-settings summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; font-size: 11px; font-weight: 600; }
.timing-settings summary::-webkit-details-marker { display: none; }
.timing-settings[open] summary { margin-bottom: 10px; }
.timing-settings[open] summary span { transform: rotate(180deg); }
.timing-song { margin: 9px 0 0; color: rgba(255,255,255,.7); font-size: 11px; }
.setting-row output { font-variant-numeric: tabular-nums; font-size: 10px; color: rgba(255,255,255,.48); }
.settings-content { min-height: 0; overflow-y: auto; padding: 12px 16px 22px; }
.settings-lock {
  margin: 0 0 18px; padding: 12px; display: flex; align-items: flex-start; gap: 9px;
  border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(255,255,255,.035);
  color: rgba(255,255,255,.54); font-size: 10px; line-height: 1.45;
}
.settings-lock svg { width: 14px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.setting-group { padding: 17px 1px; border-top: 1px solid rgba(255,255,255,.08); }
.setting-group:first-of-type { border-top: 0; padding-top: 0; }
.setting-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.setting-heading > div, .setting-row > span, .setting-switch > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.setting-heading strong, .setting-row strong, .setting-switch strong { font-size: 11px; font-weight: 640; color: rgba(255,255,255,.86); }
.setting-heading small, .setting-row small, .setting-switch small { color: rgba(255,255,255,.54); font-size: 11px; line-height: 1.5; }
.setting-row { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.setting-row input[type="range"] { width: 145px; flex-shrink: 0; height: 28px; margin: 0; padding: 0; border: 0; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; }
.setting-row input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 8px; background: linear-gradient(to right, var(--lyrics-color) var(--range-fill,0%), rgba(255,255,255,.16) var(--range-fill,0%)); }
.setting-row input[type="range"]::-moz-range-track { height: 3px; border-radius: 8px; background: rgba(255,255,255,.16); }
.setting-row input[type="range"]::-moz-range-progress { height: 3px; border-radius: 8px; background: var(--lyrics-color); }
.setting-row input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 11px; height: 11px; margin-top: -4px; border: 2px solid #101014; border-radius: 50%; background: var(--lyrics-color); box-shadow: 0 0 0 1px rgba(255,255,255,.3); }
.setting-row input[type="range"]::-moz-range-thumb { width: 8px; height: 8px; border: 2px solid #101014; border-radius: 50%; background: var(--lyrics-color); box-shadow: 0 0 0 1px rgba(255,255,255,.3); }
.setting-row input:disabled, .setting-switch:has(input:disabled) { opacity: .35; cursor: default; }
.setting-row input:focus-visible { outline: 1px solid rgba(255,255,255,.65); outline-offset: 5px; border-radius: 4px; }
.color-palette { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.color-palette button { width: 20px; height: 20px; padding: 0; border: 3px solid #17171b; border-radius: 50%; background: var(--swatch); cursor: pointer; }
.color-palette button.is-active { box-shadow: 0 0 0 1px var(--swatch); }
.hex-color input { width: 81px; padding: 6px 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; background: rgba(0,0,0,.2); color: rgba(255,255,255,.72); font-size: 11px; font-family: inherit; }
.hex-color input[aria-invalid="true"] { border-color: #ffaac8; }
.setting-segments { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; padding: 3px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(0,0,0,.22); }
.setting-segments.three { grid-template-columns: repeat(3, 1fr); }
.setting-segments.compact { margin-top: 8px; }
.setting-segments button { min-height: 34px; border: 0; border-radius: 9px; background: transparent; color: rgba(255,255,255,.46); cursor: pointer; font-size: 10px; transition: background .18s ease, color .18s ease, transform .18s ease; }
.setting-segments button:hover { color: rgba(255,255,255,.82); }
.setting-segments button.is-active { background: rgba(255,255,255,.11); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.setting-segments button:active { transform: scale(.97); }
.color-control { display: flex; align-items: center; gap: 8px; }
.color-control span { width: 17px; height: 17px; border-radius: 50%; box-shadow: 0 0 14px color-mix(in srgb, var(--lyrics-color) 42%, transparent); }
.color-control input { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 9px; background: transparent; cursor: pointer; overflow: hidden; }
.color-control input::-webkit-color-swatch-wrapper { padding: 0; }
.color-control input::-webkit-color-swatch { border: 1px solid rgba(255,255,255,.18); border-radius: 9px; }
.setting-switch { position: relative; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.setting-switch input { position: absolute; opacity: 0; pointer-events: none; }
.setting-switch i { position: relative; width: 36px; height: 21px; flex: 0 0 auto; border-radius: 20px; background: rgba(255,255,255,.12); transition: background .2s ease; }
.setting-switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: rgba(255,255,255,.68); transition: transform .2s cubic-bezier(.2,.75,.2,1), background .2s ease; }
.setting-switch input:checked + i { background: color-mix(in srgb, var(--lyrics-color) 44%, rgba(255,255,255,.18)); }
.setting-switch input:checked + i::after { transform: translateX(15px); background: #fff; }
.setting-switch input:focus-visible + i { outline: 2px solid #fff; outline-offset: 3px; }
.settings-reset { width: 100%; height: 38px; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; background: rgba(255,255,255,.035); color: rgba(255,255,255,.5); cursor: pointer; font-size: 10px; }
.settings-reset:hover { background: rgba(255,255,255,.08); color: #fff; }
.dev-trigger, .dev-trigger:hover, .dev-trigger:active {
  display: block; width: auto; min-width: 28px; min-height: 32px; margin: 8px 0 -8px auto; padding: 4px 0;
  appearance: none; border: 0; border-radius: 0; background: transparent; box-shadow: none;
  backdrop-filter: none; color: rgba(255,255,255,.4); font-family: inherit; font-size: 10px; line-height: 1.2; cursor: pointer;
}
.dev-trigger:hover { color: #fff; }
.dev-trigger::before, .dev-trigger::after { content: none; }
.dev-console {
  width: min(400px, calc(100vw - 28px)); max-width: none; max-height: min(760px, calc(100dvh - 40px));
  margin: auto; padding: 0; overflow: hidden; color: #ededf0; background: #101012;
  border: 1px solid rgba(255,255,255,.13); border-radius: 18px; box-shadow: 0 30px 100px rgba(0,0,0,.6);
  font-family: inherit; text-align: left;
}
.dev-console[open] { display: flex; flex-direction: column; animation: devReveal 300ms cubic-bezier(.2,.8,.2,1) both; }
.dev-console::backdrop { background: rgba(0,0,0,.48); backdrop-filter: blur(5px); animation: panelFadeIn 250ms ease; }
.dev-console.is-closing { animation: devDismiss 160ms ease both; pointer-events: none; }
.dev-console.is-closing::backdrop { animation: devFadeOut 160ms ease both; }
.dev-console [hidden] { display: none !important; }
.dev-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; flex: 0 0 auto; border-bottom: 1px solid rgba(255,255,255,.07); }
.dev-header > span { font-family: ui-monospace, Consolas, monospace; font-size: 12px; letter-spacing: .02em; }
.dev-header > div { display: flex; align-items: center; gap: 16px; }
.dev-caret { display: inline-block; color: #777; animation: devCursor 1.2s steps(1) 3; }
.dev-close { appearance: none; border: 0; background: none; width: 26px; height: 30px; color: #a3a3a8; font-family: inherit; font-size: 23px; line-height: 1; cursor: pointer; }
.dev-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px; scrollbar-width: none; }
.dev-login { width: 228px; max-width: 100%; margin: 5px auto 0; animation: devStageIn 260ms ease both; }
.dev-login > label { font: 11px ui-monospace, Consolas, monospace; color: #85858d; }
.dev-prompt { display: flex; align-items: center; gap: 12px; margin: 10px 0 22px; border-bottom: 1px solid #343438; padding-bottom: 9px; }
.dev-prompt > span { font: 25px ui-monospace, Consolas, monospace; color: #727278; }
.dev-prompt input { width: 100%; min-width: 0; border: 0; background: none; outline: none; color: #fff; font: 22px ui-monospace, Consolas, monospace; letter-spacing: .3em; }
.dev-prompt:focus-within { border-color: #b9b9bf; }
.dev-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.dev-keypad button { height: 50px; border: 0; border-radius: 9px; background: #19191c; color: #d9d9df; font: 17px ui-monospace, Consolas, monospace; cursor: pointer; transition: background 130ms ease, transform 130ms ease; }
.dev-keypad button:hover { background: #29292e; }
.dev-keypad button:active { transform: scale(.93); }
.dev-keypad button[type="submit"] { background: #dedee3; color: #141416; }
.dev-status { min-height: 14px; margin: 18px 0 0; color: #96969f; font-size: 11px; line-height: 1.6; }
.dev-status:empty { margin-top: 5px; min-height: 0; }
.dev-status.is-error { color: #e5a3a3; }
.dev-editor { animation: devStageIn 260ms cubic-bezier(.2,.8,.2,1) both; }
.dev-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.dev-section-title h2 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.02em; }
.dev-section-title > span { color: #777780; font-size: 9px; }
.dev-field { display: block; margin-bottom: 12px; font-size: 11px; font-weight: 500; color: #bdbdc6; }
.dev-field input { display: block; appearance: none; width: 100%; min-width: 0; padding: 11px 12px; margin-top: 7px; border: 1px solid #2d2d33; border-radius: 8px; background: #161619; color: #eeeeef; font-family: inherit; font-size: 12px; line-height: 1.4; outline: none; transition: border-color 150ms ease; }
.dev-field input:focus { border-color: #777780; }
.dev-field input::placeholder { color: #62626c; }
#devViews { font-family: ui-monospace, Consolas, monospace; font-size: 22px; letter-spacing: -.03em; }
.dev-help { margin: -3px 0 0; color: #797982; font-size: 10px; line-height: 1.6; }
.dev-links-heading { margin: 27px 0 6px; }
.dev-text-button { appearance: none; border: 0; border-radius: 0; background: none; box-shadow: none; padding: 7px 0; color: #a7a7b0; font: inherit; font-size: 10px; cursor: pointer; }
.dev-text-button:hover { color: #fff; }
.dev-link-row { border-bottom: 1px solid #27272d; }
.dev-link-row > summary { display: flex; align-items: center; gap: 11px; padding: 13px 0; list-style: none; cursor: pointer; }
.dev-link-row > summary::-webkit-details-marker { display: none; }
.dev-logo-preview { display: grid; place-items: center; width: 25px; flex: 0 0 25px; height: 25px; color: #b9b9c1; }
.dev-logo-preview svg, .dev-logo-preview img { width: 19px; height: 19px; object-fit: contain; fill: currentColor; }
.dev-link-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; white-space: nowrap; }
.dev-chevron { margin-left: auto; color: #74747e; transition: transform 180ms ease; }
.dev-link-row[open] .dev-chevron { transform: rotate(180deg); }
.dev-link-fields { padding: 2px 0 12px; animation: devStageIn 200ms ease; }
.dev-field-label { display: block; font-size: 11px; color: #bdbdc6; }
.dev-icon-picker { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin: 8px 0 15px; }
.dev-icon-picker button { display: grid; place-items: center; height: 36px; border: 1px solid transparent; border-radius: 6px; background: #1b1b1f; color: #858590; cursor: pointer; }
.dev-icon-picker button:hover { color: #eee; background: #25252c; }
.dev-icon-picker button[aria-pressed="true"] { color: #fff; border-color: #747481; background: #29292f; }
.dev-icon-picker svg { width: 17px; height: 17px; fill: currentColor; }
.dev-icon-picker .social-letter, .dev-logo-preview .social-letter { font-size: 18px; }
.dev-optional { font-size: 9px; font-weight: 400; color: #6e6e79; margin-left: 5px; }
.dev-remove { color: #a88787; margin-top: 10px; }
.dev-save-bar { position: sticky; bottom: -22px; margin: 18px -2px -6px; padding: 10px 2px 8px; background: #101012; z-index: 1; }
.dev-primary { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 12px 14px; border: 0; border-radius: 9px; background: #e7e7ea; color: #141416; cursor: pointer; font-family: inherit; font-size: 11px; font-weight: 600; transition: background 150ms ease, transform 150ms ease; }
.dev-primary:hover { background: #fff; }
.dev-primary:active { transform: scale(.99); }
.dev-console button:disabled, .dev-console input:disabled { opacity: .45; cursor: wait; }
.dev-console button:focus-visible, .dev-console summary:focus-visible, .dev-trigger:focus-visible { outline: 2px solid #ddd; outline-offset: 3px; }
.dev-discard { border-top: 1px solid #303037; margin-top: 12px; padding-top: 8px; font-size: 11px; }
.dev-discard button + button { margin-left: 20px; color: #e5a3a3; }
@keyframes devReveal { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes devDismiss { to { opacity: 0; transform: translateY(8px) scale(.985); } }
@keyframes devStageIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes devFadeOut { to { opacity: 0; } }
@keyframes devCursor { 50% { opacity: 0; } }
@media (max-width: 480px) { .dev-console { max-height: calc(100dvh - 24px); } .dev-body { padding: 18px; } .dev-save-bar { bottom: -18px; } }
@media (prefers-reduced-motion: reduce) { .dev-console, .dev-console *, .dev-console::backdrop { animation: none !important; transition: none !important; } }

/* Lyrics presentation preferences. */
.lyrics-panel { position: relative; }
html .lyrics-viewport { position: relative; padding: 0 8px; overscroll-behavior: contain; overflow-anchor: none; }
html .lyrics-lines { position: relative; gap: var(--lyrics-spacing,16px); }
html .lyric-line, html .player:fullscreen .lyric-line, html .player:-webkit-full-screen .lyric-line { font-family: var(--lyric-font, Inter, sans-serif); font-size: var(--lyrics-size,28px); font-weight: 720; letter-spacing: -.028em; line-height: 1.55; transform: none; }
html .lyric-line.is-active { transform: none; }
.no-word-highlight .lyric-line [data-word] { opacity: 1; }
.lyrics-follow { position: absolute; bottom: 13px; left: 50%; transform: translateX(-50%); z-index: 4; padding: 9px 14px; border: 1px solid rgba(255,255,255,.17); border-radius: 20px; background: #17171be8; color: #eee; font: 11px inherit; white-space: nowrap; cursor: pointer; }
.no-ambient .background-video, .no-grain .grain, .no-visualizer .visualizer { display: none !important; }
.player:fullscreen > .settings-trigger, .player:-webkit-full-screen > .settings-trigger { position: absolute; top: 10px; right: 14px; z-index: 20; }
@media (min-width: 861px) {
  html.is-tv-mode .lyric-line, html.is-tv-mode .player:fullscreen .lyric-line { font-size: clamp(28px,calc(var(--lyrics-size) * 1.35),76px); }
}
.lyrics-center .lyric-line { text-align: center; transform-origin: center; }
.lyrics-center .lyric-line.is-active { transform: scale(1.035); }
.lyrics-static .lyric-line, .lyrics-static .lyric-text, .lyrics-static .lyric-line [data-word] { transition: none; }
.lyrics-static .lyric-line.is-active { transform: none; }
.lyrics-static .lyric-line .lyric-text { transform: none; }
.lyrics-static .lyric-line.is-active [data-word].is-word-current { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .lyric-line, .lyric-text, .lyric-line [data-word] { transition: none; }
  .lyric-text, .lyric-line.is-active .lyric-text { transform: none; }
  .lyric-line.is-active [data-word].is-word-current { transform: none; }
}

/* Low-effects mode avoids decoding a second copy of the active music video. */
.reduce-effects .background-video, .reduce-effects .grain, .reduce-effects .visualizer { display: none !important; }
.reduce-effects .glass, .reduce-effects .player-console, .reduce-effects .side-panel { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Large-screen treatment scales fluidly, without fixed-width console overflow. */
@media (min-width: 861px) {
  .is-tv-mode .site.is-cinematic .layout { width: calc(100vw - 48px); height: calc(100dvh - 96px); margin: 72px auto 24px; grid-template-columns: minmax(0,1fr); }
  .is-tv-mode .site.is-cinematic .profile-panel { display: none; }
  .is-tv-mode .player { min-width: 0; min-height: 0; --video-percent: 52%; }
  .is-tv-mode .player-console { grid-template-columns: minmax(0,1fr) minmax(220px,1.5fr) auto; min-height: 138px; gap: 18px; padding: 20px 24px; }
  .is-tv-mode .track-copy strong { font-size: clamp(14px,1.2vw,22px); }
  .is-tv-mode .track-copy small { font-size: 13px; }
  .is-tv-mode .control.small, .is-tv-mode .secondary-controls button { width: 44px; height: 44px; }
  .is-tv-mode .control.play { width: 54px; height: 54px; }
  .is-tv-mode .lyrics-header strong { font-size: 14px; }
}

@media (max-width: 560px) {
  .settings-panel { left: 6px; right: 6px; width: auto; height: min(82dvh, 720px); }
  .settings-content { padding-inline: 13px; }
  .setting-row input[type="range"] { width: 118px; }
  .settings-trigger { width: 30px; height: 40px; border-radius: 0; background: transparent; }
}

@media (max-width: 860px) {
  .player.lyrics-hidden .cinematic-grid {
    display: block;
    grid-template-rows: none;
  }
  .site.is-cinematic .player:not(.lyrics-hidden) { height: calc(100dvh - 80px); min-height: 570px; display: flex; flex-direction: column; }
  .site.is-cinematic .player:not(.lyrics-hidden) .cinematic-grid { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; }
  .player:not(.lyrics-hidden) .video-pane { flex: 0 0 clamp(100px,20dvh,180px); height: clamp(100px,20dvh,180px); aspect-ratio: auto; }
  .player:not(.lyrics-hidden) .lyrics-panel { position: relative; inset: auto; flex: 1 1 auto; width: 100%; height: auto; min-height: 0; margin: 0; padding: 8px 6px 0; border: 0; border-radius: 0; box-shadow: none; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; animation: none; }
  .player:not(.lyrics-hidden) .player-console { flex: 0 0 auto; }
  .site.is-cinematic .player:fullscreen { height: 100dvh; min-height: 0; }
}

/* The layout switch and cog share the same bare, quiet treatment. */
#viewButton, #viewButton:hover, #viewButton:active, #viewButton[aria-pressed="true"] {
  width: 30px; min-width: 30px; height: 40px; padding: 0; border: 0; border-radius: 0;
  background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  color: rgba(255,255,255,.64); display: inline-grid; place-items: center;
}
#viewButton:hover { color: #fff; }
#viewButton svg { width: 18px; height: 18px; }
#viewButtonLabel { display: none; }
.setting-segments:has(button:nth-child(4)) { grid-template-columns: repeat(4,minmax(0,1fr)); }
.setting-segments:has(button:nth-child(5)) { grid-template-columns: repeat(5,minmax(0,1fr)); }
.settings-lock { border: 0; padding: 0 0 5px; background: none; }
.settings-faq { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; background: none; color: #a8a8b1; padding: 14px 1px; font-size: 11px; cursor: pointer; }
.settings-faq:hover { color: #fff; }
html.cursor-dot-enabled input:not([type="range"]):not([type="checkbox"]), html.cursor-dot-enabled textarea, html.cursor-dot-enabled [contenteditable="true"] { cursor: text !important; }

/* Timed words use transforms, never font-size/layout animation. Breathing room
   is reserved in the line so a word can grow without pushing its neighbors. */
.lyric-text { width: 93%; transform: scale(.9); transition: transform 560ms cubic-bezier(.2,.8,.2,1); }
.lyric-line.is-active .lyric-text { transform: scale(1.03); }
.lyric-line [data-word] { margin-inline: .035em; opacity: .28; transform: scale(.9); transform-origin: center 65%; transition: opacity 150ms ease-out, transform 190ms cubic-bezier(.18,.8,.22,1); }
.lyric-line.is-active [data-word].is-word-active { opacity: .4; transform: scale(.9); }
.lyric-line.is-active [data-word].is-word-current { opacity: 1; transform: translateY(-.025em) scale(1.14); }
.lyric-line:not(.is-active) [data-word] { opacity: 1; transform: scale(.94); }
.lyric-line:not(.is-active):hover { opacity: max(.5,var(--lyrics-inactive-opacity)); }
.lyrics-center .lyric-text { margin-inline: auto; transform-origin: center; }
html.lyrics-center .lyric-line.is-active { transform: none; }
html.lyrics-static .lyric-text, html.lyrics-static .lyric-line [data-word] { transition: none; transform: none; }
html.lyrics-static .lyric-line.is-active [data-word].is-word-current { transform: none; }
.artwork-link { display: flex; flex: 0 0 auto; border-radius: 12px; }
.artwork-link[href]:hover { opacity: .85; }
.playlist-art-grid { position: absolute; inset: 0 0 0 auto; width: 65%; height: 100%; display: grid; grid-template-columns: repeat(2,1fr); grid-template-rows: repeat(2,1fr); z-index: -2; opacity: .85; transform: rotate(-9deg) scale(1.2); }
.playlist-art-grid img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.playlist-art-grid.is-single { width: 100%; grid-template-columns: 1fr; grid-template-rows: 1fr; transform: none; opacity: .7; }
.playlist-option::after { background: linear-gradient(90deg,#0c0c0fee 6%,#0c0c0fa8 46%,#0c0c0f24); }
.playlist-option-copy { max-width: 86%; }
.playlist-option-copy strong { overflow-wrap: anywhere; }
.brand-icon { width: 19px; height: 19px; object-fit: contain; filter: invert(1); }

.ambient-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 800ms ease; pointer-events: none; }
.is-paused-ambient .ambient-canvas { opacity: 1; }
.is-paused-ambient .background { background-image: none; }
.is-paused-ambient .background-video { opacity: 0 !important; }
.profile-about { position: relative; z-index: 1; margin-top: 16px; color: #b6b6bf; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.profile-about p { margin: 0 0 5px; white-space: pre-line; }
.profile-about span { font-size: 10px; color: #868691; }
.profile-games { position: relative; z-index: 1; margin-top: 19px; }
.profile-games h3 { margin: 0 0 9px; color: #94949e; font-size: 9px; font-weight: 550; letter-spacing: .08em; text-transform: uppercase; }
#favoriteGames { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.favorite-game { min-width: 0; display: block; text-decoration: none; transition: opacity 180ms ease; }
.favorite-game img { display: block; width: 100%; aspect-ratio: 184/69; object-fit: cover; border-radius: 5px; background: #17171c; }
.favorite-game span { display: block; margin-top: 5px; font-size: 9px; color: #acacb7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.favorite-game:hover { opacity: .8; }
.profile-panel.has-banner::before { content: ''; display: block; min-height: 80px; flex: 0 0 80px; margin: -34px -30px 22px; background: var(--profile-banner) center/cover; border-bottom: 1px solid #ffffff12; }
.profile-panel:has(.profile-about:not([hidden])), .profile-panel:has(.profile-games:not([hidden])) { justify-content: flex-start; overflow-y: auto; }
@media (min-width:861px) {
  .site:not(.is-cinematic) .profile-panel:has(.profile-about:not([hidden])), .site:not(.is-cinematic) .profile-panel:has(.profile-games:not([hidden])), .site:not(.is-cinematic) .profile-panel.has-banner { max-height: calc(100dvh - 300px); min-height: 230px; overflow-y: auto; }
}
.verified { color: var(--accent); }

/* Owner tools: one modal, four sections, no browser-default widgets. */
.dev-console:has(#devEditor:not([hidden])) { width: min(500px,calc(100vw - 28px)); }
.dev-console { font-family: Inter, sans-serif; }
.dev-body, .dev-body * { scrollbar-width: none; }
.dev-body::-webkit-scrollbar, .dev-body *::-webkit-scrollbar { width: 0; height: 0; display: none; }
.dev-tabs { position: sticky; top: -22px; z-index: 3; display: grid; grid-template-columns: repeat(4,1fr); margin: -7px 0 22px; padding: 7px 0 10px; border-bottom: 1px solid #ffffff12; background: #101012; }
.dev-tabs button { border: 0; background: transparent; color: #747480; font-size: 11px; padding: 10px 4px; cursor: pointer; }
.dev-tabs button[aria-selected="true"] { color: #f1f1f4; box-shadow: 0 1px #d6d6dd; }
.dev-editor [role="tabpanel"] { animation: devStageIn 180ms ease-out; }
.dev-field-pair { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
.dev-field textarea { display: block; resize: vertical; width: 100%; min-height: 65px; max-height: 160px; padding: 11px 12px; margin-top: 7px; border: 1px solid #2d2d33; border-radius: 8px; background: #161619; color: #eeeeef; font: 12px/1.6 Inter,sans-serif; outline: none; }
.dev-field textarea:focus { border-color: #777780; }
.dev-field input[aria-invalid="true"] { border-color: #bf7f8b; }
.dev-field-error { display: block; margin-top: 6px; color: #e5a3a3; font-size: 10px; line-height: 1.6; }
.profile-panel h2, .enter-card h1 { overflow-wrap: anywhere; }
.dev-help { color: #91919c; margin-bottom: 16px; }
.dev-font-picker { display: flex; gap: 5px; margin: 8px 0 17px; flex-wrap: wrap; }
.dev-font-picker button { flex: 1; min-width: 57px; border: 1px solid #27272e; background: transparent; border-radius: 6px; color: #9999a6; padding: 9px 5px; font-size: 11px; cursor: pointer; }
.dev-font-picker button[aria-pressed="true"] { color: #eeeeef; border-color: #73737e; background: #222228; }
.dev-accent-row { display: flex; align-items: center; gap: 12px; margin-top: 7px; }
.dev-accent-swatches { display: flex; gap: 8px; }
.dev-accent-swatches button { width: 19px; height: 19px; background: var(--swatch); border: 3px solid #101012; border-radius: 50%; box-shadow: 0 0 0 1px #ffffff16; cursor: pointer; }
.dev-accent-row input { max-width: 100px; margin-top: 0; font: 11px ui-monospace,monospace; }
.dev-services { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; max-height: 170px; overflow-y: auto; margin-bottom: 12px; }
.dev-services button { display: flex; align-items: center; gap: 8px; padding: 9px 8px; border: 0; border-radius: 6px; background: #1b1b20; color: #b8b8c3; font-size: 10px; cursor: pointer; text-align: left; }
.dev-services button:hover { color: #fff; background: #27272e; }
.dev-services svg, .dev-services img { width: 14px; height: 14px; fill: currentColor; flex: 0 0 auto; }
.dev-services .social-letter { width: 14px; font-size: 16px; }
.dev-icon-picker { grid-template-columns: repeat(6,minmax(0,1fr)); }
.dev-icon-picker img { width: 17px; height: 17px; }
.dev-link-actions { display: flex; gap: 16px; align-items: center; }
.dev-link-actions .dev-remove { margin: 0 0 0 auto; }
.dev-search-row { display: flex; align-items: stretch; gap: 7px; margin-top: 7px; }
.dev-search-row input { margin: 0; }
.dev-search-button { width: 40px; flex: 0 0 40px; border: 1px solid #414149; border-radius: 8px; background: #25252b; color: #ddd; cursor: pointer; }
.dev-search-results { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 12px 0; color: #9595a0; font-size: 11px; }
.dev-search-results:empty { margin: 0; }
.dev-search-result { display: flex; align-items: center; gap: 9px; padding: 7px; background: #1a1a1f; border: 1px solid #ffffff08; border-radius: 7px; color: #d0d0d8; font: 10px/1.5 Inter,sans-serif; cursor: pointer; text-align: left; min-width: 0; }
.dev-search-result img { width: 56px; height: 28px; object-fit: cover; border-radius: 3px; flex: 0 0 auto; }
.dev-search-result:hover { background: #25252b; }
.dev-search-result span { overflow-wrap: anywhere; }
.dev-game-row { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid #ffffff0d; }
.dev-game-row img { width: 68px; height: 28px; border-radius: 4px; object-fit: cover; }
.dev-game-row > span { flex: 1; font-size: 11px; color: #bdbdc6; }
.dev-game-row button { min-width: 24px; font-size: 15px; }
.dev-empty { padding: 16px 0; color: #82828e; font-size: 11px; line-height: 1.7; }
.dev-attribution { margin: 18px 0 0; color: #767682; font-size: 9px; }
.dev-playlist-row { display: flex; gap: 14px; margin: 16px 0 22px; }
.dev-playlist-preview { width: 76px; height: 76px; flex: 0 0 76px; display: grid; overflow: hidden; border-radius: 8px; margin-top: 23px; background: #202026; }
.dev-playlist-preview.is-collage { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.dev-playlist-preview img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.dev-playlist-fields { min-width: 0; flex: 1; }
.dev-album-result .dev-search-result { width: 100%; flex-direction: column; align-items: flex-start; }
.dev-album-result .dev-search-result img { width: 100%; height: auto; aspect-ratio: 1; }
.dev-album-result > a { display: block; text-decoration: none; }
.is-missing { opacity: 0; }
.dev-console textarea:disabled { opacity: .45; }

.faq-dialog { width: min(430px,calc(100vw - 28px)); max-height: calc(100dvh - 40px); padding: 22px; overflow-y: auto; border: 1px solid #ffffff20; border-radius: 18px; background: #101012; color: #dddde3; box-shadow: 0 30px 100px #0009; }
.faq-dialog[open] { animation: devReveal 240ms ease-out; }
.faq-dialog::backdrop { background: #0008; backdrop-filter: blur(5px); }
.faq-dialog header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.faq-dialog h2 { font-size: 17px; letter-spacing: -.03em; margin: 0; font-weight: 600; }
.faq-dialog header button { width: 30px; height: 30px; border: 0; background: none; font-size: 23px; color: #aaa; cursor: pointer; }
.faq-content details { padding: 15px 0; border-top: 1px solid #ffffff12; }
.faq-content summary { font-size: 12px; cursor: pointer; list-style: none; }
.faq-content summary::-webkit-details-marker { display: none; }
.faq-content summary::after { content: '+'; float: right; color: #888; }
.faq-content details[open] summary::after { content: '−'; }
.faq-content p { font-size: 11px; line-height: 1.8; color: #9999a5; margin-bottom: 8px; }
.faq-contact { display: inline-block; font-size: 11px; padding: 8px 0 0; text-decoration: none; color: #d8d4f1; }
@media (max-width:560px) {
  .dev-body { padding: 18px; }.dev-tabs { top: -18px; }.dev-field-pair { gap: 9px; }
  .dev-services { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dev-accent-row { gap: 8px; }.dev-accent-swatches { gap: 5px; }
  .dev-playlist-preview { width: 55px; height: 55px; flex-basis: 55px; }
  .dev-playlist-row { gap: 10px; }.dev-search-results:not(.dev-album-results) { grid-template-columns: 1fr; }
  .profile-panel.has-banner::before { margin: -23px -20px 18px; }
}
@media (prefers-reduced-motion:reduce) {
  .ambient-canvas, .lyric-text, .lyric-line [data-word], .faq-dialog { transition: none; animation: none; }
  .lyric-text, .lyric-line.is-active .lyric-text, .lyric-line [data-word], .lyric-line.is-active [data-word].is-word-current { transform: none; }
}
