: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;
  font-family: 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; overflow: 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: radial-gradient(circle at 50% 50%, rgba(0,0,0,.12), rgba(0,0,0,.72));
  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; }

.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 {
  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 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, 2vw, 31px); line-height: 1.2; font-weight: 560; letter-spacing: -.025em;
  cursor: pointer; transform-origin: left center;
  transition: color .5s ease, opacity .5s ease, transform .55s cubic-bezier(.2,.75,.2,1), filter .5s ease;
}
.lyric-line.is-near { color: rgba(255,255,255,.4); }
.lyric-line.is-active { color: #fff; transform: translateX(5px) scale(1.035); text-shadow: 0 0 24px rgba(255,255,255,.18); }
.lyric-line.is-past { color: rgba(255,255,255,.12); }
.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; }
.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; }
.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); }

.cursor-dot {
  position: fixed; z-index: 2147483647; left: 0; top: 0; width: 7px; height: 7px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 16px rgba(255,255,255,.65); transform: translate(-50%, -50%); pointer-events: none; opacity: 0;
  transition: width .16s ease, height .16s ease, opacity .2s ease, background .16s ease;
}
.cursor-dot.is-visible { opacity: 1; }
.cursor-dot.is-hovering { width: 15px; height: 15px; background: rgba(255,255,255,.5); backdrop-filter: invert(1); }
@media (hover: hover) and (pointer: fine) {
  html, body, button, a, [role="slider"], .lyric-line, .queue-item, .playlist-option { cursor: none !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; }
  .secondary-controls { display: grid; grid-template-columns: repeat(3, 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; }
  .main-controls { order: 1; }
  .secondary-controls { order: 2; 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; }
}


/* The custom cursor is moved into the active fullscreen element by JavaScript. */
:fullscreen .cursor-dot, :-webkit-full-screen .cursor-dot {
  display: block !important;
  position: fixed !important;
  z-index: 2147483647 !important;
}

/* 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;
  }
  .lyric-line.is-active { transform: translateX(3px) scale(1.018); }

  .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; }
  .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; }
}
