:root {
  --p: #ffffff;
  --s: #a8a8a8;
  --a: #ffffff;
  --bgc: #050505;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Unbounded", system-ui, sans-serif;
}

* { box-sizing: border-box; }

/* Dark minimal scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #141414 transparent;
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-track { background: #050505; }
*::-webkit-scrollbar-thumb {
  background: #141414;
  border-radius: 99px;
  border: 2px solid #050505;
}
*::-webkit-scrollbar-thumb:hover { background: #222; }
*::-webkit-scrollbar-corner { background: #050505; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--p);
  background: var(--bgc);
}

body.profile-page {
  min-height: 100vh;
  overflow-x: hidden;
}

.profile-wrap {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 2rem 1rem 3.5rem;
  /* Keep opacity:1 always so backdrop-filter paints under the reveal overlay.
     Fading opacity:0→1 breaks glass blur in Chromium until a delayed repaint. */
  opacity: 1;
  pointer-events: none;
  perspective: 1600px;
  perspective-origin: 50% 40%;
}

.profile-wrap.visible {
  pointer-events: auto;
}

.tilt-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  max-width: min(var(--box-width, 640px), 100%);
  transform-style: preserve-3d;
  transform-origin: center center;
  transition: transform 0.08s ease-out;
  will-change: transform;
}

.tilt-group > .profile-box,
.tilt-group > .player,
.tilt-group > .side-card,
.tilt-group > .discord-presence,
.tilt-group > .link-boxes,
.tilt-group > .link-cards,
.tilt-group > .showcase-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  transform-style: preserve-3d;
}

.profile-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--bgc, #050505);
}

.profile-bg video,
.profile-bg img.bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reveal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(var(--reveal-blur, 8px));
  -webkit-backdrop-filter: blur(var(--reveal-blur, 8px));
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.reveal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.reveal-inner {
  text-align: center;
  animation: pulseSoft 2.4s ease-in-out infinite;
}

.reveal-line {
  width: 56px;
  height: 1px;
  margin: 0 auto 0.85rem;
  background: var(--a, rgba(255,255,255,0.85));
  border-radius: 999px;
}

.reveal-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--p, #fff);
  max-width: min(90vw, 42rem);
  padding: 0 1rem;
}
.reveal-text .md-hr-theme {
  margin: 0.85rem auto;
  max-width: 12rem;
  --md-theme: var(--a);
}

@keyframes pulseSoft {
  0%, 100% { opacity: 0.7; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

.profile-box {
  width: min(var(--box-width, 640px), 100%);
  padding: var(--box-spacing, 25px);
  border-radius: var(--box-radius, 18px);
  border: var(--border-width, 0px) var(--border-style, solid) rgba(var(--border-rgb, 255, 255, 255), calc(var(--border-opacity, 100) / 100));
  background: rgba(var(--box-rgb, 255, 255, 255), calc(var(--box-opacity, 12) / 100));
  backdrop-filter: blur(var(--box-blur, 16px)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--box-blur, 16px)) saturate(140%);
  box-shadow: 0 8px 32px rgba(var(--box-shadow-rgb, 0, 0, 0), calc(var(--box-shadow-opacity, 45) / 100));
  text-align: center;
  position: relative;
  overflow: visible;
}
.profile-box.has-banner {
  padding-top: 0;
}

.profile-corner-stats {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  bottom: auto;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.profile-corner-stats.is-bottom {
  top: auto;
  bottom: 0.85rem;
}
.corner-stat {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.corner-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: calc(var(--box-radius, 18px) * 0.55);
  border: var(--border-width, 0px) var(--border-style, solid) rgba(var(--border-rgb, 255, 255, 255), calc(var(--border-opacity, 100) / 100 * 0.55));
  background: rgba(255, 255, 255, 0.03);
  color: var(--s);
  font-size: 0.75rem;
  line-height: 1;
  user-select: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.corner-stat:hover .corner-stat-pill,
.corner-stat:focus-visible .corner-stat-pill {
  transform: scale(1.05);
  filter: brightness(1.08);
}
.corner-stat-icon {
  width: 14px;
  height: 14px;
  color: var(--icon, var(--a));
  flex-shrink: 0;
}
.corner-stat-hash {
  width: 12px;
  height: 12px;
}
.corner-stat-tip {
  pointer-events: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  top: auto;
  transform: translateX(-50%) translateY(4px) scale(0.96);
  white-space: nowrap;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #000;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 30;
}
.corner-stat:hover .corner-stat-tip,
.corner-stat:focus-visible .corner-stat-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}
.corner-stat.tip-below .corner-stat-tip {
  bottom: auto;
  top: calc(100% + 10px);
  transform: translateX(-50%) translateY(-4px) scale(0.96);
}
.corner-stat.tip-below:hover .corner-stat-tip,
.corner-stat.tip-below:focus-visible .corner-stat-tip {
  transform: translateX(-50%) translateY(0) scale(1);
}

.profile-stats {
  display: none;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  opacity: 0.9;
}

.stat-chip svg {
  width: 14px;
  height: 14px;
}

.banner {
  display: block;
  width: calc(100% + (var(--box-spacing, 25px) * 2));
  max-width: none;
  height: 140px;
  object-fit: cover;
  margin: 0 0 0 calc(var(--box-spacing, 25px) * -1);
  border: 0;
  border-radius: var(--box-radius, 18px) var(--box-radius, 18px) 0 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
/* Flush to top + sides (padding-top is 0; left/right via negative margin) */
.profile-box.has-banner .profile-identity {
  position: relative;
  z-index: 2;
}
.profile-box.has-banner .profile-identity .avatar-wrap {
  margin-top: -48px; /* half of 96px — equator on banner bottom edge */
  margin-bottom: 0.85rem;
}
.avatar-wrap {
  width: 96px;
  height: 96px;
  margin: 0 auto 0.85rem;
  position: relative;
  z-index: 2;
}

.profile-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.profile-identity-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.profile-identity .avatar-wrap {
  margin-bottom: 0.85rem;
}
.profile-identity .badges-row {
  margin-top: 0.45rem;
}

/* Left alignment (fakecrime-style) */
.align-left .profile-box {
  text-align: left;
}
.align-left .profile-identity {
  flex-direction: row;
  align-items: center;
  gap: 0.9rem;
  padding-right: 3.5rem;
}
.align-left .profile-identity-main {
  align-items: flex-start;
  gap: 0.25rem;
}
.align-left .profile-identity .avatar-wrap {
  width: 72px;
  height: 72px;
  margin: 0;
  flex-shrink: 0;
}
.align-left .profile-box.has-banner .profile-identity {
  align-items: center;
  margin-top: -36px; /* half of 72px — pull row up onto banner edge */
  padding-top: 0;
}
.align-left .profile-box.has-banner .profile-identity .avatar-wrap {
  margin-top: 0;
  margin-bottom: 0;
}
.align-left .username {
  font-size: 1.35rem;
}
.align-left .badges-row {
  justify-content: flex-start;
  margin-top: 0.2rem;
}
.align-left .bio {
  text-align: left;
}
.align-left .tags {
  justify-content: flex-start;
}
.align-left .location {
  justify-content: flex-start;
}
.align-left .links {
  justify-content: flex-start;
}
.align-left .inline-blocks {
  text-align: left;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: var(--avatar-radius, 50px);
  object-fit: cover;
  border: 0;
  background: transparent;
  display: block;
  position: relative;
  z-index: 1;
}

.avatar-decoration {
  position: absolute;
  inset: -12% -12% auto auto;
  width: 124%;
  height: 124%;
  right: -12%;
  top: -12%;
  left: auto;
  bottom: auto;
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
  user-select: none;
  filter: none !important;
  -webkit-filter: none !important;
  opacity: 1;
}

.avatar-fallback {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2rem;
  color: #fff;
  background: #222;
  border: 0;
}

.username {
  margin: 0;
  font-family: var(--profile-font, var(--font-display), inherit);
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  color: var(--p);
}
.username.has-sparkles {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

.bio {
  margin: 0.55rem 0 0;
  color: var(--s);
  font-size: 0.95rem;
  white-space: normal;
  line-height: 1.55;
  word-break: break-word;
}
.bio.md-content {
  color: var(--s);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 0.95rem;
}

.tag {
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--a, rgba(255,255,255,0.28));
  font-size: 0.82rem;
  color: var(--a, var(--p));
}

.location {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  color: var(--s);
  font-size: 0.9rem;
}

.location svg {
  width: 14px;
  height: 14px;
  color: var(--icon, var(--a));
  flex-shrink: 0;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 1;
}

.join-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.55rem;
  color: var(--s);
  font-size: 0.875rem;
  width: 100%;
}
.join-date-icon {
  width: 13px;
  height: 13px;
  color: var(--icon, var(--a));
  flex-shrink: 0;
}
.align-left .join-date {
  justify-content: flex-start;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.1rem;
  align-items: center;
}

/* Icon — bare platform glyph with theme glow + title tip on hover */
.link-btn {
  position: relative;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 0;
  display: grid;
  place-items: center;
  color: var(--icon, var(--a, #fff));
  background: transparent;
  transition: transform 0.2s ease;
  padding: 0;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.link-btn:hover {
  background: transparent;
  transform: translateY(-2px);
}

.link-btn svg,
.link-btn img,
.link-btn video {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 3.5px var(--icon, var(--a, #fff)));
  transition: filter 0.2s ease;
}
.link-btn:hover svg,
.link-btn:hover img,
.link-btn:hover video {
  filter: drop-shadow(0 0 5px var(--icon, var(--a, #fff))) brightness(1.12);
}

.link-tip {
  pointer-events: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px) scale(0.96);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: min(220px, 70vw);
  padding: 0.4rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 30;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}
.link-tip-text {
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-tip-arrow {
  flex-shrink: 0;
  opacity: 0.75;
  font-size: 0.85rem;
}
.link-btn:hover .link-tip,
.link-btn:focus-visible .link-tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Box links — separate rows under profile, width = Box Width */
.link-boxes {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-sizing: border-box;
}

/* Box — horizontal glass row: icon + title/desc + arrow */
.link-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 4.25rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--box-radius, 18px);
  border: var(--border-width, 0px) var(--border-style, solid) rgba(var(--border-rgb, 255, 255, 255), calc(var(--border-opacity, 100) / 100));
  background: rgba(var(--box-rgb, 255, 255, 255), calc(var(--box-opacity, 12) / 100));
  backdrop-filter: blur(var(--box-blur, 16px)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--box-blur, 16px)) saturate(140%);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 24px rgba(255, 255, 255, 0.14),
    0 8px 32px rgba(var(--box-shadow-rgb, 0, 0, 0), calc(var(--box-shadow-opacity, 45) / 100));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.link-box:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 30px rgba(255, 255, 255, 0.2),
    0 10px 36px rgba(var(--box-shadow-rgb, 0, 0, 0), calc((var(--box-shadow-opacity, 45) + 12) / 100));
}
.link-box-ico {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--icon, #fff);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  filter: drop-shadow(0 0 3px var(--icon, #fff));
  line-height: 0;
  overflow: hidden;
}
.link-box-ico svg,
.link-box-ico img,
.link-box-ico video {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
  object-fit: cover;
}
.link-box-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.link-box-meta strong {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-box-meta span {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-box-arrow {
  flex-shrink: 0;
  font-size: 1.05rem;
  line-height: 1;
  opacity: 0.7;
  color: var(--icon, #fff);
}

/* Card links — same width as profile / player (Box Width) */
.link-cards {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Card — same glass as profile; image full-bleed; height follows photo */
.link-card {
  position: relative;
  display: block;
  width: 100%;
  box-sizing: border-box;
  height: auto;
  min-height: 0;
  padding: 0;
  border: var(--border-width, 0px) var(--border-style, solid) rgba(var(--border-rgb, 255, 255, 255), calc(var(--border-opacity, 100) / 100));
  border-radius: var(--box-radius, 18px);
  overflow: hidden;
  background: rgba(var(--box-rgb, 255, 255, 255), calc(var(--box-opacity, 12) / 100));
  backdrop-filter: blur(var(--box-blur, 16px)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--box-blur, 16px)) saturate(140%);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow: 0 8px 32px rgba(var(--box-shadow-rgb, 0, 0, 0), calc(var(--box-shadow-opacity, 45) / 100));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  isolation: isolate;
}
.link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(var(--box-shadow-rgb, 0, 0, 0), calc((var(--box-shadow-opacity, 45) + 12) / 100));
}
.link-card-media {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.link-card video.link-card-media {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  height: auto;
  min-height: 160px;
}
.link-card:not(.has-media) {
  min-height: 160px;
}
.link-card-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.12) 42%, transparent 68%);
}
.link-card-meta {
  position: absolute;
  left: 1.15rem;
  right: 1.15rem;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}
.link-card-meta strong {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-card-meta span {
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-card:not(.has-media) .link-card-shade {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, transparent 55%);
}

.side-card {
  width: min(var(--box-width, 640px), 100%);
  padding: 0.75rem 0.9rem;
  border-radius: var(--box-radius, 18px);
  border: var(--border-width, 0px) var(--border-style, solid) rgba(var(--border-rgb, 255, 255, 255), calc(var(--border-opacity, 100) / 100));
  background: rgba(var(--box-rgb, 255, 255, 255), calc(var(--box-opacity, 12) / 100));
  backdrop-filter: blur(var(--box-blur, 16px)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--box-blur, 16px)) saturate(140%);
  box-shadow: 0 8px 32px rgba(var(--box-shadow-rgb, 0, 0, 0), calc(var(--box-shadow-opacity, 45) / 100));
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.side-card .mini-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 0;
  background: transparent;
}

.side-card .name {
  font-weight: 600;
  font-size: 0.92rem;
}

/* Discord Presence — glass bar under main profile frame */
.discord-presence {
  width: min(var(--box-width, 640px), 100%);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 0.95rem;
  border-radius: var(--box-radius, 18px);
  border: var(--border-width, 0px) var(--border-style, solid) rgba(var(--border-rgb, 255, 255, 255), calc(var(--border-opacity, 100) / 100));
  background: rgba(var(--box-rgb, 255, 255, 255), calc(var(--box-opacity, 12) / 100));
  backdrop-filter: blur(var(--box-blur, 16px)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--box-blur, 16px)) saturate(140%);
  box-shadow: 0 8px 32px rgba(var(--box-shadow-rgb, 0, 0, 0), calc(var(--box-shadow-opacity, 45) / 100));
  text-decoration: none;
  color: inherit;
  text-align: left;
  transition: background 0.2s ease, transform 0.2s ease;
  font-family: var(--profile-font, var(--font-display), inherit);
  overflow: visible;
}
.discord-presence:hover {
  background: rgba(var(--box-rgb, 255, 255, 255), calc((var(--box-opacity, 12) + 6) / 100));
}
.discord-presence-avatar {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  overflow: visible;
  z-index: 1;
}
.discord-presence-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  background: rgba(255, 255, 255, 0.08);
}
.discord-presence-deco {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
  filter: none;
  -webkit-filter: none;
}
.discord-presence-deco[hidden] { display: none !important; }
.discord-presence-status {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #111214;
  box-shadow: 0 0 0 0.15rem #111214;
  z-index: 30;
  box-sizing: border-box;
  pointer-events: none;
  display: grid;
  place-items: center;
  overflow: visible;
}
.discord-presence-status-icon {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.discord-presence-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.discord-presence-name {
  font-family: var(--profile-font, var(--font-display), inherit) !important;
  font-weight: inherit;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--p, #fff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.discord-presence-activity {
  font-family: var(--profile-font, var(--font-body), inherit) !important;
  font-size: 0.78rem;
  color: var(--p, #fff);
  opacity: 0.72;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.discord-presence-activity.is-empty { display: none; }
.discord-presence-clan {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding: 0.22rem 0.5rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--p, #fff);
  font-family: var(--profile-font, var(--font-display), inherit) !important;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.discord-presence-clan.is-empty {
  display: none;
}
.discord-presence-clan-badge {
  width: 14px;
  height: 14px;
  object-fit: contain;
  filter: none;
}
.discord-presence-clan-badge[hidden] { display: none !important; }
.discord-presence-clan-tag {
  line-height: 1;
  text-transform: uppercase;
  color: var(--p, #fff);
  font-family: inherit !important;
}
.align-left .discord-presence {
  margin-right: auto;
}

.player {
  width: min(var(--box-width, 640px), 100%);
  padding: 0.75rem 0.9rem;
  border-radius: var(--box-radius, 18px);
  border: var(--border-width, 0px) var(--border-style, solid) rgba(var(--border-rgb, 255, 255, 255), calc(var(--border-opacity, 100) / 100));
  background: rgba(var(--box-rgb, 255, 255, 255), calc(var(--box-opacity, 12) / 100));
  backdrop-filter: blur(var(--box-blur, 16px)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--box-blur, 16px)) saturate(140%);
  box-shadow: 0 8px 32px rgba(var(--box-shadow-rgb, 0, 0, 0), calc(var(--box-shadow-opacity, 45) / 100));
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  box-sizing: border-box;
}
.player-art {
  position: relative;
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--p, #fff);
  overflow: hidden;
  border-radius: 50%;
}
.player-cover {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.player-cover[hidden] { display: none !important; }
.player-art-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--p, #fff);
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--p, #fff) 35%, transparent));
}
.player-art-fallback[hidden] { display: none !important; }
.player-art-fallback svg {
  width: 1.15rem;
  height: 1.15rem;
}
.player-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.32rem;
}
.player-title-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.4rem;
  min-width: 0;
  max-width: 100%;
}
.player-title {
  flex: 0 1 auto;
  min-width: 0;
  max-width: calc(100% - 1.4rem);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  color: var(--p, #fff);
}
.player-ext {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: var(--icon, var(--a, #fff));
  display: none;
  place-items: center;
}
.player-ext.is-on {
  display: grid;
}
.player-ext[hidden] { display: none !important; }
.player-ext svg {
  width: 0.85rem;
  height: 0.85rem;
}
.player-ext:hover { color: var(--icon, var(--a, #fff)); filter: brightness(1.15); }
.player-progress-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  min-width: 0;
  height: 28px;
}
.player-progress-row > * {
  display: flex;
  align-items: center;
  height: 28px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  line-height: 1;
}
.player-time-cur,
.player-time-dur {
  font-size: 0.68rem;
  color: var(--s, rgba(255, 255, 255, 0.72));
  font-variant-numeric: tabular-nums;
  line-height: 1 !important;
  flex-shrink: 0;
  justify-content: center;
}
.player-seek-wrap {
  flex: 1 1 auto;
  min-width: 3rem;
  align-self: center;
}
.player-bar {
  position: relative;
  width: 100%;
  height: 28px;
  display: block;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  flex: 1;
}
.player-bar::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 1px);
  height: 2px;
  margin: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  pointer-events: none;
}
.player-bar > span {
  position: absolute;
  left: 0;
  top: calc(50% - 1px);
  height: 2px;
  width: 0;
  margin: 0;
  border-radius: 999px;
  background: var(--icon, #fff);
  pointer-events: none;
  z-index: 1;
  transform: none;
}
.player-bar > i,
.player-bar [data-progress-thumb] {
  position: absolute;
  top: calc(50% - 5px);
  left: 0;
  width: 10px;
  height: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--icon, #fff);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
  display: block;
  box-sizing: border-box;
  font-style: normal;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  box-shadow: 0 0 8px color-mix(in srgb, var(--icon, #fff) 70%, transparent);
}
.player-controls {
  gap: 0;
  flex-shrink: 0;
}
.player-controls button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--icon, #fff);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  margin: 0;
  line-height: 0;
}
.player-controls button:hover { background: rgba(255,255,255,0.1); }
.player-controls button[hidden] { display: none !important; }
.player-controls svg {
  width: 14px;
  height: 14px;
  display: block;
}
.player-vol {
  flex-shrink: 0;
  width: 56px;
}
.player-vol input[type="range"] {
  width: 56px;
  height: 28px;
  margin: 0;
  padding: 0;
  background: transparent;
  accent-color: var(--icon, #fff);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  display: block;
}
.player-vol input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
}
.player-vol input[type="range"]::-moz-range-track {
  height: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
}
.player-vol input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--icon, #fff);
  border: 0;
  box-shadow: 0 0 8px color-mix(in srgb, var(--icon, #fff) 70%, transparent);
  cursor: grab;
}
.player-vol input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: var(--icon, #fff);
  box-shadow: 0 0 8px color-mix(in srgb, var(--icon, #fff) 70%, transparent);
  cursor: grab;
}

@media (max-width: 640px) {
  .player {
    padding: 0.75rem;
    gap: 0.55rem;
  }
  .player-vol,
  .player-vol input[type="range"] { width: 44px; }
}

/* Top Bar track player — same glass as profile cards */
.top-player {
  position: fixed;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 60;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  width: 44px;
  height: 44px;
  pointer-events: none;
}
.top-player.is-pending {
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
}
.top-player > * { pointer-events: auto; }
.top-player-fab {
  width: 44px;
  height: 44px;
  border-radius: var(--box-radius, 18px);
  border: var(--border-width, 0px) var(--border-style, solid) rgba(var(--border-rgb, 255, 255, 255), calc(var(--border-opacity, 100) / 100));
  background: rgba(var(--box-rgb, 255, 255, 255), calc(var(--box-opacity, 12) / 100));
  backdrop-filter: blur(var(--box-blur, 16px)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--box-blur, 16px)) saturate(140%);
  color: var(--icon, var(--a, #fff));
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 32px rgba(var(--box-shadow-rgb, 0, 0, 0), calc(var(--box-shadow-opacity, 45) / 100));
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease, background 0.2s ease;
  position: relative;
  z-index: 2;
}
.top-player-fab:hover {
  background: rgba(var(--box-rgb, 255, 255, 255), calc((var(--box-opacity, 12) + 6) / 100));
}
.top-player-fab svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  color: inherit;
}
.top-player.is-open .top-player-fab {
  opacity: 0;
  transform: scale(0.65);
  pointer-events: none;
}
.top-player-panel {
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  height: auto;
  width: max-content;
  max-width: 44px;
  padding: 0.45rem 0.55rem 0.45rem 0.75rem;
  border-radius: var(--box-radius, 18px);
  border: var(--border-width, 0px) var(--border-style, solid) rgba(var(--border-rgb, 255, 255, 255), calc(var(--border-opacity, 100) / 100));
  background: rgba(var(--box-rgb, 255, 255, 255), calc(var(--box-opacity, 12) / 100));
  backdrop-filter: blur(var(--box-blur, 16px)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--box-blur, 16px)) saturate(140%);
  box-shadow: 0 8px 32px rgba(var(--box-shadow-rgb, 0, 0, 0), calc(var(--box-shadow-opacity, 45) / 100));
  color: #fff;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transform-origin: right center;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.25s ease,
    max-width 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.2s ease;
  white-space: nowrap;
  box-sizing: border-box;
}
.top-player.is-open .top-player-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
  max-width: min(720px, calc(100vw - 1.5rem));
}
.top-player-ico {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  display: grid;
  place-items: center;
  color: var(--p, #fff);
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--p, #fff) 35%, transparent));
}
.top-player-ico svg {
  width: 1.05rem;
  height: 1.05rem;
}
.top-player-art.player-art {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.top-player-art .player-cover {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
}
.top-player-art .player-art-fallback svg {
  width: 0.95rem;
  height: 0.95rem;
}
.top-player-title {
  flex: 0 1 auto;
  max-width: 260px;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
  color: var(--p, #fff);
}
.top-player-ext.player-ext {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  color: var(--icon, var(--a, #fff));
}
.top-player-ext.player-ext svg {
  width: 0.82rem;
  height: 0.82rem;
}
.top-player-time {
  font-size: 0.68rem;
  color: var(--s, rgba(255, 255, 255, 0.78));
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  line-height: 1;
  letter-spacing: 0.01em;
}
.top-player-seek {
  flex: 0 0 7.5rem;
  width: 7.5rem;
  min-width: 5rem;
  max-width: 9rem;
  display: flex;
  align-items: center;
}
.top-player-bar.player-bar {
  height: 28px;
}
.top-player-controls {
  display: flex;
  align-items: center;
  gap: 0.05rem;
  flex-shrink: 0;
}
.top-player-controls button {
  width: 26px;
  height: 26px;
}
.top-player-controls svg {
  width: 13px;
  height: 13px;
}
.top-player-vol {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}
.top-player-vol-ico {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
}
.top-player-vol-ico svg {
  width: 13px;
  height: 13px;
}
.top-player-vol input[type="range"] {
  width: 52px;
  height: 14px;
  margin: 0;
  background: transparent;
  accent-color: var(--icon, #fff);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.top-player-vol input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
}
.top-player-vol input[type="range"]::-moz-range-track {
  height: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
}
.top-player-vol input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--icon, #fff);
  border: 0;
  box-shadow: 0 0 8px color-mix(in srgb, var(--icon, #fff) 70%, transparent);
  cursor: grab;
}
.top-player-vol input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: var(--icon, #fff);
  box-shadow: 0 0 8px color-mix(in srgb, var(--icon, #fff) 70%, transparent);
  cursor: grab;
}
.top-player-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--icon, #fff);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.top-player-close:hover { background: rgba(255,255,255,0.1); }
.top-player-close svg { width: 12px; height: 12px; }

@media (max-width: 720px) {
  .top-player-title { max-width: 110px; }
  .top-player-seek { flex-basis: 4.5rem; width: 4.5rem; min-width: 3.5rem; }
  .top-player-vol input[type="range"] { width: 38px; }
  .top-player-vol-ico { display: none; }
}

.watermark {
  position: fixed;
  right: 1.1rem;
  bottom: 0.85rem;
  z-index: 5;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff !important;
  opacity: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none !important;
  line-height: 1;
  padding: 0.5rem 0.78rem;
  border-radius: 10px;
  background: rgba(8, 8, 10, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.watermark span {
  color: #fff !important;
}
.watermark:hover,
.watermark:focus-visible {
  background: rgba(8, 8, 10, 0.88);
  border-color: rgba(255, 255, 255, 0.42);
  text-decoration: none !important;
  color: #fff !important;
  transform: translateY(-1px);
}
.watermark svg {
  width: 12px;
  height: 12px;
  display: block;
  flex-shrink: 0;
  color: #ff6b8a !important;
  fill: currentColor !important;
}

@media (max-width: 520px) {
  .banner { height: 110px; }
  .align-left .profile-box.has-banner .profile-identity {
    margin-top: -36px;
  }
}

.badges-row {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.55rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 3;
}
.badge-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.badge-item:hover {
  transform: scale(1.08);
  filter: brightness(1.1);
  z-index: 5;
}
.badge-svg {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--icon, var(--a, #fff));
  line-height: 0;
}
.badge-svg svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor !important;
  color: inherit;
  opacity: 1;
}
.badge-svg svg path {
  fill: currentColor !important;
  color: inherit;
}
.badge-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: contain;
  display: block;
}
.badge-tip {
  pointer-events: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px) scale(0.92);
  white-space: nowrap;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: #000;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.35;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 30;
}
.badge-item:hover .badge-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}
.badge-text { color: var(--icon, var(--a)); }
.player-inline {
  width: 100%;
  margin-top: 0;
  box-sizing: border-box;
}
.layout-unified .player.player-inline {
  display: flex;
}
.layout-unified .inline-blocks { width: 100%; }
