/* ==========================================================================
   void bio — main stylesheet
   Colours/fonts are injected as CSS variables from config.js (see app.js).
   ========================================================================== */

:root {
  --bg: #030305;
  --accent: #8b5cf6;
  --accent-deep: #4c1d95;
  --accent-glow: #a855f7;
  --text: #ecebf3;
  --muted: #8a8799;
  --card: rgba(14, 12, 22, 0.42);
  --card-border: rgba(167, 139, 250, 0.14);
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font-serif: "Iowan Old Style", Georgia, serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-cine: cubic-bezier(.7, 0, .2, 1);
  --radius: 22px;
  --card-w: 440px;
}

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

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

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100svh;
}

body.is-locked { overflow: hidden; }

::selection { background: color-mix(in srgb, var(--accent) 45%, transparent); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
svg { display: block; }

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

:focus-visible {
  outline: 1px solid color-mix(in srgb, var(--accent-glow) 80%, white);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   Background
   -------------------------------------------------------------------------- */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

.bg__image {
  position: absolute; inset: -3%;
  background-position: center; background-size: cover;
  opacity: 0; transition: opacity 1.6s ease;
  animation: slow-pan 40s ease-in-out infinite alternate;
  filter: saturate(.75);
}
.bg__image.is-on { opacity: 1; }
.bg__image::after { /* the dark overlay */
  content: ""; position: absolute; inset: 0;
  background: var(--overlay-color, #030106);
  opacity: var(--overlay, .8);
}
@keyframes slow-pan {
  from { transform: scale(1.02) translate3d(-.6%, 0, 0); }
  to   { transform: scale(1.06) translate3d(.6%, -.4%, 0); }
}

.bg__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  transition: opacity 2s ease;
  filter: saturate(.8) contrast(1.05);
}
.bg__video.is-on { opacity: var(--video-opacity, .35); }

/* deep violet bloom behind the card */
.bg__glow {
  position: absolute; left: 50%; top: 50%;
  width: min(1100px, 160vw); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--accent-deep) 38%, transparent), transparent 70%);
  opacity: .55;
  animation: breathe 14s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: .42; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: .62; transform: translate(-50%, -50%) scale(1.06); }
}

.fog { position: absolute; inset: -10%; opacity: var(--fog-opacity, .55); mix-blend-mode: screen; }
.fog__layer {
  position: absolute; top: 0; left: 0; height: 100%; width: 200%;
  background-repeat: repeat;
  will-change: transform;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.75) 45%, rgba(0,0,0,.3) 100%);
          mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.75) 45%, rgba(0,0,0,.3) 100%);
}
.fog__layer--a { background-size: 900px 900px; animation: drift 110s linear infinite; opacity: .9; }
.fog__layer--b { background-size: 1400px 1400px; animation: drift 170s linear infinite reverse; opacity: .7; top: 8%; }

@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

.bg__particles { position: absolute; inset: 0; width: 100%; height: 100%; }

.bg__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,.55) 75%, rgba(0,0,0,.92) 100%);
}

.bg__grain {
  position: absolute; inset: -50%;
  opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* --------------------------------------------------------------------------
   Cursor
   -------------------------------------------------------------------------- */
.cursor, .cursor-trail { display: none; }

.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor .cursor { display: block; }
.has-cursor .cursor-trail { display: block; }

.cursor-trail {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 9998; pointer-events: none;
}

.cursor { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; }
.cursor__dot, .cursor__ring {
  position: fixed; left: 0; top: 0; border-radius: 50%;
  will-change: transform;
}
.cursor__dot { /* purple cross */
  width: 22px; height: 22px; margin: -11px 0 0 -11px;
  filter: drop-shadow(0 0 4px var(--accent-glow)) drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 70%, transparent));
}
.cursor__dot::before, .cursor__dot::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 20px; height: 2px; border-radius: 2px;
  background: color-mix(in srgb, var(--accent-glow) 80%, white);
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  transition: transform .35s var(--ease-out), width .35s var(--ease-out);
}
.cursor__dot::after { --r: 90deg; }
.cursor.is-hover .cursor__dot::before { --r: 45deg; width: 24px; }
.cursor.is-hover .cursor__dot::after  { --r: 135deg; width: 24px; }
.cursor.is-down .cursor__dot::before, .cursor.is-down .cursor__dot::after { width: 14px; }
.cursor__ring {
  display: none;
  width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out),
              background-color .35s ease, border-color .35s ease, opacity .3s ease;
}
.cursor.is-hover .cursor__ring {
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-color: color-mix(in srgb, var(--accent-glow) 75%, transparent);
}
.cursor.is-down .cursor__ring { width: 22px; height: 22px; margin: -11px 0 0 -11px; }
.cursor.is-hidden { opacity: 0; }

/* --------------------------------------------------------------------------
   Enter overlay
   -------------------------------------------------------------------------- */
.enter {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: radial-gradient(ellipse at center, rgba(10, 10, 10, .86), rgba(0,0,0,.97) 70%);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  cursor: pointer;
  transition: opacity 1.1s var(--ease-cine), filter 1.1s var(--ease-cine), visibility 0s linear 1.1s;
  outline: none;
}
.enter.is-gone { opacity: 0; filter: blur(10px); visibility: hidden; pointer-events: none; }

.enter__inner { display: grid; justify-items: center; gap: 14px; user-select: none; }

.enter__text {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: .42em; text-transform: lowercase;
  padding-left: .42em; /* optically centre the tracking */
  color: color-mix(in srgb, var(--text) 85%, var(--accent));
  text-shadow: 0 0 18px color-mix(in srgb, var(--accent-glow) 55%, transparent);
  animation: flicker-in 2.4s steps(1) both, pulse-text 3.6s ease-in-out 2.4s infinite;
}
.enter__line {
  width: 64px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform-origin: center; animation: line-in 1.6s var(--ease-out) .5s both;
}
.enter__hint {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .3em;
  color: var(--muted); opacity: .6; padding-left: .3em;
  animation: fade-in 1.2s ease 1.2s both;
}

@keyframes flicker-in {
  0% { opacity: 0 } 8% { opacity: .6 } 10% { opacity: 0 } 18% { opacity: .9 } 20% { opacity: .2 }
  26% { opacity: 1 } 28% { opacity: .5 } 34%, 100% { opacity: 1 }
}
@keyframes pulse-text { 0%, 100% { opacity: 1 } 50% { opacity: .55 } }
@keyframes line-in { from { transform: scaleX(0); opacity: 0 } to { transform: scaleX(1); opacity: 1 } }
@keyframes fade-in { from { opacity: 0 } to { opacity: .6 } }

/* --------------------------------------------------------------------------
   Stage + card
   -------------------------------------------------------------------------- */
.stage {
  position: relative; z-index: 2;
  min-height: 100svh;
  display: grid; place-items: center;
  padding: max(28px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom));
  perspective: 1200px;
}

.card {
  position: relative;
  width: min(var(--card-w), 100%);
  padding: 34px 30px 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
          backdrop-filter: blur(22px) saturate(140%);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,.04) inset,
    0 0 0 1px rgba(0,0,0,.4),
    0 30px 80px -20px rgba(0,0,0,.85),
    0 0 120px -40px color-mix(in srgb, var(--accent) 45%, transparent);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .9s var(--ease-out);
  opacity: 0;
}
.is-entered .card { opacity: 1; transition: transform .9s var(--ease-out), opacity 1.2s ease; }

/* faint light that follows the pointer across the glass */
.card__sheen {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%),
              color-mix(in srgb, var(--accent-glow) 9%, transparent), transparent 45%);
  opacity: .9;
}
/* top edge highlight */
.card::before {
  content: ""; position: absolute; left: 18%; right: 18%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent-glow) 70%, white), transparent);
  opacity: .5;
}

/* staggered reveal after entering */
.reveal { opacity: 0; transform: translateY(10px); filter: blur(4px); }
.is-entered .reveal {
  opacity: 1; transform: none; filter: none;
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out), filter 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms + 250ms);
}

/* view counter */
.card__views {
  position: absolute; top: 16px; right: 16px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  color: var(--muted);
  padding: 4px 9px 4px 8px; border-radius: 999px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.05);
  opacity: 0; transition: opacity 1s ease 1s;
}
.card__views[hidden] { display: none; }
.is-entered .card__views { opacity: 1; }
.card__views svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------------------
   Profile header
   -------------------------------------------------------------------------- */
.profile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }

.avatar { position: relative; width: 112px; height: 112px; flex: none; }
.avatar__img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  background: #0a0a0a;
  border: 3px solid var(--bg);
}
.avatar__ring {
  position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(from var(--spin),
    var(--accent-deep), var(--accent), color-mix(in srgb, var(--accent-glow) 60%, white),
    var(--accent), var(--accent-deep) 55%, transparent 70%, var(--accent-deep));
  animation: spin 6s linear infinite;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent-glow) 55%, transparent));
}
.avatar::after { /* soft halo */
  content: ""; position: absolute; inset: -18px; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 38%, transparent), transparent);
  animation: halo 5s ease-in-out infinite;
}
@keyframes spin { to { --spin: 360deg; } }
@keyframes halo { 0%, 100% { opacity: .55; transform: scale(.96) } 50% { opacity: 1; transform: scale(1.04) } }

.avatar__status {
  position: absolute; z-index: 2; right: 6px; bottom: 6px;
  width: 18px; height: 18px; border-radius: 50%;
  border: 3.5px solid #0a0a0a;
  background: #6b6b6b;
  transition: background-color .4s ease;
}
.avatar__status[data-status="online"] { background: #3ddc97; }
.avatar__status[data-status="idle"]   { background: #f5b942; }
.avatar__status[data-status="dnd"]    { background: #f04460; }

.identity { display: grid; justify-items: center; gap: 8px; }
.identity__row { display: flex; align-items: center; gap: 8px; }

.username {
  margin: 0;
  font-size: 30px; font-weight: 500; letter-spacing: -.025em; line-height: 1.1;
  color: #fff;
  text-shadow:
    0 0 12px color-mix(in srgb, var(--accent-glow) 60%, transparent),
    0 0 34px color-mix(in srgb, var(--accent) 40%, transparent);
}
.is-entered .username { animation: name-glitch 1.4s steps(1) .45s both; }
@keyframes name-glitch {
  0%   { opacity: 0 }
  10%  { opacity: 1; text-shadow: -2px 0 rgba(255,255,255,.7), 2px 0 rgba(120,120,120,.6) }
  14%  { opacity: .3 }
  20%  { opacity: 1; text-shadow: 1px 0 rgba(255,255,255,.7), -1px 0 rgba(120,120,120,.5) }
  26%, 100% { opacity: 1 }
}

.handle { margin: -2px 0 0; font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.handle:empty { display: none; }

/* badges */
.badges { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.badges:empty { display: none; }
.badge {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 8px;
  color: var(--badge-color, var(--accent-glow));
  transition: transform .35s var(--ease-out), background-color .3s ease, filter .3s ease;
}
.badge svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.badge:hover, .badge:focus-visible {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--badge-color, var(--accent)) 14%, transparent);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--badge-color, var(--accent-glow)) 70%, transparent));
}

/* --------------------------------------------------------------------------
   Text blocks
   -------------------------------------------------------------------------- */
.bio {
  margin: 18px auto 0; max-width: 34ch;
  text-align: center; color: color-mix(in srgb, var(--text) 82%, var(--muted));
  font-size: 14.5px; font-weight: 400; text-wrap: balance;
}
.bio:empty { display: none; }
.bio--quote {
  margin-top: 16px;
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 21px; line-height: 1.35; letter-spacing: .005em;
  color: color-mix(in srgb, var(--text) 88%, var(--accent-glow));
  text-shadow: 0 0 22px color-mix(in srgb, var(--accent) 35%, transparent);
}

.status {
  margin: 12px 0 0; min-height: 1.6em;
  display: flex; justify-content: center; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; color: color-mix(in srgb, var(--accent-glow) 55%, var(--text));
  letter-spacing: .01em;
}
.status__prompt { color: var(--accent); opacity: .8; }
.status__caret {
  width: 7px; height: 13px; margin-left: -6px;
  background: var(--accent-glow);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: caret 1.05s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0 } }

.location {
  margin: 6px 0 0; display: flex; justify-content: center; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted);
}
.location[hidden] { display: none; }
.location svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------------------
   Discord presence
   -------------------------------------------------------------------------- */
.presence { margin-top: 20px; display: grid; gap: 8px; }
.presence[hidden] { display: none; }

.activity {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 14px;
  background: rgba(255,255,255,.022);
  border: 1px solid rgba(255,255,255,.05);
  animation: activity-in .7s var(--ease-out) both;
}
@keyframes activity-in { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }

.activity__art {
  position: relative; flex: none; width: 46px; height: 46px; border-radius: 10px;
  background: rgba(255, 255, 255, .06) center / cover no-repeat;
  display: grid; place-items: center; color: var(--accent-glow);
  overflow: hidden;
}
.activity__art svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.activity__body { min-width: 0; flex: 1; display: grid; gap: 1px; }
.activity__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); opacity: .85; }
.activity__name { font-size: 13.5px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity__detail { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.activity { transition: border-color .3s ease, background-color .3s ease, transform .4s var(--ease-out); }
a.activity:hover { border-color: color-mix(in srgb, var(--accent-glow) 35%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); transform: translateY(-1px); }
.activity__art--round { border-radius: 50%; overflow: visible; }
.activity__art--round img { border-radius: 50%; }
.activity__dot {
  position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; border-radius: 50%;
  border: 3px solid #0d0d0d; background: #6b6b6b;
}
.activity__dot[data-status="online"] { background: #3ddc97; }
.activity__dot[data-status="idle"]   { background: #f5b942; }
.activity__dot[data-status="dnd"]    { background: #f04460; }
.activity__state { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.activity__bar { margin-top: 5px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.07); overflow: hidden; }
.activity__bar > span { display: block; height: 100%; width: 0; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }

/* --------------------------------------------------------------------------
   Socials
   -------------------------------------------------------------------------- */
.socials { margin-top: 22px; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.socials:empty { display: none; }

.social {
  position: relative;
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  color: color-mix(in srgb, var(--text) 78%, var(--muted));
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.07); padding: 0;
  transition: color .3s ease, transform .4s var(--ease-out), background-color .3s ease;
}
.social svg {
  width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  transition: filter .3s ease;
}
.social::after { display: none; /* underglow (unused with round buttons) */
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 0; height: 1px;
  background: var(--accent-glow); box-shadow: 0 0 8px var(--accent-glow);
  transform: translateX(-50%); transition: width .4s var(--ease-out);
}
.social:hover, .social:focus-visible {
  color: #fff; transform: translateY(-2px);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-color: color-mix(in srgb, var(--accent-glow) 45%, transparent);
  box-shadow: 0 0 22px -6px var(--accent-glow);
}
.social:hover svg, .social:focus-visible svg {
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent-glow) 90%, transparent));
  stroke: color-mix(in srgb, var(--accent-glow) 55%, white);
}
.social:hover::after, .social:focus-visible::after { width: 14px; }

/* --------------------------------------------------------------------------
   Music player
   -------------------------------------------------------------------------- */
.player {
  margin-top: 24px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.05);
  display: flex; align-items: center; gap: 12px;
}
.player[hidden] { display: none; }

.player__btn {
  flex: none; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: transparent; border: 0; padding: 0;
  color: color-mix(in srgb, var(--text) 75%, var(--muted));
  transition: color .25s ease, background-color .25s ease, transform .3s var(--ease-out);
}
.player__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.player__btn:hover { color: #fff; background: rgba(255,255,255,.05); }
.player__btn[hidden] { display: none; }

.player__btn--play {
  width: 36px; height: 36px;
  color: #fff;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  box-shadow: 0 0 18px -4px color-mix(in srgb, var(--accent-glow) 70%, transparent);
}
.player__btn--play:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); transform: scale(1.04); }
.player__btn--play svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.player__btn--play .i-pause { display: none; }
.player.is-playing .player__btn--play .i-play { display: none; }
.player.is-playing .player__btn--play .i-pause { display: block; }

.player__main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.player__meta { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.player__title { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__artist { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.player__timeline { display: flex; align-items: center; gap: 8px; }
.player__time { font-family: var(--font-mono); font-size: 10px; color: var(--muted); min-width: 28px; font-variant-numeric: tabular-nums; }
.player__time:last-child { text-align: right; }

.progress {
  position: relative; flex: 1; height: 14px;
  display: flex; align-items: center;
  touch-action: none;
}
.progress::before { /* track */
  content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px;
  background: rgba(255,255,255,.08);
}
.progress__buffer, .progress__fill {
  position: absolute; left: 0; height: 2px; border-radius: 2px; width: 0;
}
.progress__buffer { background: rgba(255,255,255,.08); }
.progress__fill {
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-glow));
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent-glow) 60%, transparent);
}
.progress__thumb {
  position: absolute; left: 0; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px var(--accent-glow);
  transform: scale(0); transition: transform .25s var(--ease-out);
}
.progress:hover .progress__thumb, .progress:focus-visible .progress__thumb, .progress.is-dragging .progress__thumb { transform: scale(1); }
.progress:hover::before, .progress.is-dragging::before { background: rgba(255,255,255,.12); }

.player__side { display: flex; align-items: center; gap: 2px; flex: none; }

.volume { display: flex; align-items: center; gap: 4px; }
.player__btn .i-mute { display: none; }
.player.is-muted .player__btn .i-vol { display: none; }
.player.is-muted .player__btn .i-mute { display: block; }

.volume__range {
  -webkit-appearance: none; appearance: none;
  width: 62px; height: 14px; background: transparent; margin: 0;
  --val: 35%;
}
.volume__range::-webkit-slider-runnable-track {
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) var(--val), rgba(255,255,255,.1) var(--val));
}
.volume__range::-moz-range-track { height: 2px; border-radius: 2px; background: rgba(255,255,255,.1); }
.volume__range::-moz-range-progress { height: 2px; border-radius: 2px; background: var(--accent); }
.volume__range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 9px; height: 9px; margin-top: -3.5px; border-radius: 50%;
  background: #fff; border: 0; box-shadow: 0 0 8px var(--accent-glow);
}
.volume__range::-moz-range-thumb { width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 8px var(--accent-glow); }
.no-volume-control .volume__range { display: none; }

/* --------------------------------------------------------------------------
   Tooltip + toast
   -------------------------------------------------------------------------- */
.tooltip {
  position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none;
  padding: 5px 9px; border-radius: 7px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em; white-space: nowrap;
  color: #fff;
  background: rgba(14, 14, 14, .94);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: 0 8px 24px rgba(0,0,0,.5), 0 0 16px -6px var(--accent-glow);
  opacity: 0; transform: translate(var(--tx, 0), var(--ty, 0)) translateY(4px);
  transition: opacity .18s ease, transform .25s var(--ease-out);
}
.tooltip.is-on { opacity: 1; transform: translate(var(--tx, 0), var(--ty, 0)); }

.toast {
  position: fixed; left: 50%; bottom: max(28px, env(safe-area-inset-bottom)); z-index: 200;
  transform: translate(-50%, 12px);
  padding: 8px 14px; border-radius: 10px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .03em;
  background: rgba(14, 14, 14, .94); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .4s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .card {
    padding: 30px 20px 18px; --radius: 20px;
    box-shadow: 0 1px 0 0 rgba(255,255,255,.04) inset, 0 0 0 1px rgba(0,0,0,.4),
                0 24px 60px -24px rgba(0,0,0,.85), 0 0 60px -30px color-mix(in srgb, var(--accent) 45%, transparent);
  }
  .avatar { width: 100px; height: 100px; }
  .username { font-size: 26px; }
  .bio { font-size: 14px; }
  .social { width: 48px; height: 48px; } /* larger touch targets */
  .player { gap: 10px; }
  .volume__range { width: 48px; }
}

@media (max-width: 360px) {
  .volume__range { display: none; }
  .player__time { display: none; }
}

@media (hover: none) {
  .social:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   Reduced motion — OS setting or config.motion = "reduced"
   -------------------------------------------------------------------------- */
html[data-motion="reduced"] *,
html[data-motion="reduced"] *::before,
html[data-motion="reduced"] *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .2s !important;
  transition-delay: 0s !important;
}
html[data-motion="reduced"] .fog__layer,
html[data-motion="reduced"] .avatar__ring,
html[data-motion="reduced"] .bg__glow,
html[data-motion="reduced"] .bg__image { animation: none !important; }
html[data-motion="reduced"] .reveal { transform: none; filter: none; }
html[data-motion="reduced"] .status__caret { animation: none !important; opacity: .6; }
html[data-motion="reduced"] .card { transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  html[data-motion="full"] .fog__layer,
  html[data-motion="full"] .avatar__ring { animation: none; }
}
