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

:root {
  /* Default fallbacks, overridden dynamically by CONFIG.theme in config.js */
  --gold: #ff2d2d;
  --gold-light: #ffffff;
  --gold-dark: #8b1118;
  --glass-bg: rgba(10, 8, 4, 0.42);
  --glass-border: rgba(255, 45, 45, 0.18);
  --glass-border-hover: rgba(255, 255, 255, 0.34);
}

html, body {
  width: 100%; min-height: 100%;
  font-family: 'Inter', sans-serif;
  background: #080604;
  color: #fff;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ── Background ── */
.bg-video {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  opacity: 0.96;
  pointer-events: none;
}

.bg-overlay {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,45,45,0.09) 0%, transparent 70%),
    linear-gradient(to bottom, rgba(4,3,1,0.04) 0%, rgba(4,3,1,0.34) 60%, rgba(4,3,1,0.68) 100%);
}

/* ── Reveal ── */
.reveal {
  position: fixed; inset: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  background: #000;
  cursor: pointer;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.6s;
}
.reveal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.reveal-text {
  color: #fff;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.16em;
  animation: reveal-float 2.4s ease-in-out infinite;
}
@keyframes reveal-float {
  0%, 100% { opacity: 0.7; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

/* ── Layout ── */
.page {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 108px 16px 220px;
  width: 100%; max-width: 460px; margin: 0 auto;
}

/* ── Avatar ── */
.profile-topline {
  position: relative; z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 18px;
  margin-bottom: 12px;
}
.avatar-wrap {
  position: relative;
  display: block;
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 0;
  box-shadow: none;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.avatar-wrap:hover,
.avatar-wrap:focus-visible {
  transform: translateY(-1px);
  box-shadow: none;
  outline: none;
}
.avatar {
  width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover; display: block;
}

/* ── Status dot ── */
.status-dot {
  position: absolute; bottom: 2px; right: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  border: 0; background: #747f8d;
  transition: background 0.3s; z-index: 4;
}
.status-dot.online  { background: #23d18b; box-shadow: none; }
.status-dot.idle    { background: #faa61a; box-shadow: none; }
.status-dot.dnd     { background: #ed4245; box-shadow: none; }
.status-dot.offline { background: #747f8d; }

/* ── Profile carousel ── */
.info-carousel {
  position: relative;
  align-self: center;
  width: min(100%, 390px);
  min-height: 172px;
  margin: 10px auto 14px;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: none;
}
.info-carousel::before {
  content: none;
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.045) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 28% 72%, rgba(255,255,255,0.22), transparent 1.5px),
    radial-gradient(circle at 48% 54%, rgba(255,255,255,0.14), transparent 1.2px),
    radial-gradient(circle at 76% 36%, rgba(255,255,255,0.12), transparent 1.4px);
  opacity: 0.32;
  pointer-events: none;
}
.carousel-viewport {
  position: relative;
  z-index: 1;
  height: 136px;
  overflow: hidden;
  width: 100%;
}
.carousel-track {
  height: 100%;
  display: flex;
  transition: transform 0.34s cubic-bezier(.2,.8,.2,1);
}
.carousel-panel {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 22px 22px;
}
.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 13px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  transform: translateX(-50%);
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  cursor: pointer;
  padding: 0;
  transition: width 0.22s ease, background 0.22s ease, opacity 0.22s ease;
}
.carousel-dot.is-active {
  width: 18px;
  background: rgba(255,255,255,0.86);
}

/* ── Rich presence card ── */
.presence-card {
  width: min(100%, 340px);
  background: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border: 0;
  border-radius: 14px;
  padding: 0;
  margin-bottom: 0;
  display: flex; gap: 12px; align-items: center;
  min-width: 0;
}
.presence-card.visible { display: flex; }
.presence-art-wrap { position: relative; flex-shrink: 0; }
.presence-art {
  width: 48px; height: 48px; border-radius: 10px;
  object-fit: cover; display: block;
  background: rgba(255,45,45,0.08);
  border: 0;
}
.presence-fallback-icon {
  width: 48px; height: 48px; border-radius: 10px;
  display: none; align-items: center; justify-content: center;
  color: #8b9cf8;
  background: rgba(88,101,242,0.16);
  border: 0;
}
.presence-fallback-icon svg { width: 22px; height: 22px; }
.presence-small-art {
  position: absolute; bottom: -4px; right: -4px;
  width: 18px; height: 18px; border-radius: 50%;
  border: 0; object-fit: cover;
  background: #1a1400; display: none;
}
.presence-info { flex: 1; min-width: 0; }
.presence-type { font-size: 10px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--gold); font-weight: 600; margin-bottom: 3px; }
.presence-name   { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.presence-detail { font-size: 11px; color: rgba(255,255,255,0.42); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.presence-state  { font-size: 11px; color: rgba(255,255,255,0.30); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.quick-links {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-bottom: 0;
}
.quick-link {
  position: relative;
  min-width: 54px;
  min-height: 62px;
  border-radius: 12px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--gold);
  background: transparent;
  border: 0;
  text-decoration: none;
  transition: color 0.2s, transform 0.15s, opacity 0.2s;
}
.quick-link:hover {
  color: var(--gold-light);
  transform: translateY(-1px);
}
.quick-link::after {
  content: none;
  display: none;
}
.quick-link:hover::after,
.quick-link:focus-visible::after {
  display: none;
}
.quick-link svg { width: 18px; height: 18px; }
.quick-link-label {
  color: rgba(255,255,255,0.56);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.quick-link:hover .quick-link-label,
.quick-link:focus-visible .quick-link-label {
  color: rgba(255,255,255,0.84);
}

/* ── Identity ── */
.server-name {
  position: relative;
  display: inline-block;
  font-size: 28px; font-weight: 800;
  letter-spacing: -0.4px;
  background: linear-gradient(90deg, var(--gold) 0%, #ffffff 25%, var(--gold) 50%, #ffffff 75%, var(--gold) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(255,45,45,0.32)) drop-shadow(0 0 18px rgba(255,255,255,0.12));
  margin-bottom: 2px; text-align: center;
  animation: name-gradient-shift 5.8s linear infinite;
}
.server-name::before,
.server-name::after { content: none; }
@keyframes name-gradient-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: -200% 50%; }
}
.user-tag {
  font-size: 11px; color: rgba(255,255,255,0.28);
  letter-spacing: 0.3px; margin-bottom: 4px;
}
.discord-badges {
  display: none;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
  margin: 6px 0 3px;
}
.discord-badges.visible { display: flex; }
.discord-badge {
  position: relative;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255,255,255,0.96);
}
.discord-badge svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.78)) drop-shadow(0 0 11px rgba(255,255,255,0.28));
}
.discord-badge-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 20;
  width: max-content;
  min-width: 190px;
  max-width: min(280px, calc(100vw - 28px));
  padding: 9px 11px 10px;
  border: 0;
  border-radius: 4px;
  background: rgba(8,8,8,0.9);
  box-shadow: none;
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translateX(-50%) translateY(5px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.discord-badge-tooltip strong,
.discord-badge-tooltip span {
  display: block;
}
.discord-badge-tooltip strong {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.discord-badge-tooltip span {
  margin-top: 4px;
  color: rgba(255,255,255,0.42);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  white-space: normal;
}
.discord-badge:hover .discord-badge-tooltip,
.discord-badge:focus .discord-badge-tooltip,
.discord-badge:focus-visible .discord-badge-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.views-pill {
  display: none;
  position: relative;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(10,8,4,0.28);
  color: rgba(255,255,255,0.56);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.profile-topline .views-pill {
  position: absolute;
  left: calc(50% + 62px);
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
}
.views-pill.visible { display: inline-flex; }
.views-pill::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  min-height: 28px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(10,8,4,0.58);
  color: rgba(255,255,255,0.82);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.01em;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 9;
}
.views-pill:hover::after,
.views-pill:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.views-pill svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}
.views-count {
  color: rgba(255,255,255,0.78);
  font-variant-numeric: tabular-nums;
}

/* ── Discord card ── */
.discord-card {
  width: min(100%, 340px);
  height: 100%;
  position: relative;
  background: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0;
  color: inherit;
}
.discord-banner {
  position: relative;
  width: 100%;
  height: 62px;
  object-fit: cover;
  display: block;
  opacity: 0.3;
  transform: none;
  z-index: 1;
  border-radius: 12px;
}
.discord-body {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 2px 0;
}
.discord-icon {
  position: relative;
  z-index: 2;
  width: 42px; height: 42px; border-radius: 14px;
  background: rgba(0,0,0,0.58);
  border: 0;
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.discord-icon img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; display: block; opacity: 0.3; }
.discord-icon svg { width: 19px; height: 19px; }
.discord-info { position: relative; z-index: 2; flex: 1; min-width: 0; }
.discord-name { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.discord-stats { display: flex; gap: 12px; }
.dc-stat { display: flex; align-items: center; gap: 4px; font-size: 11px; color: rgba(255,255,255,0.45); }
.dc-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dc-dot.online { background: #23d18b; box-shadow: none; }
.dc-dot.members { background: rgba(255,255,255,0.25); }
.discord-join-badge {
  position: relative;
  z-index: 2;
  font-size: 11px; font-weight: 600;
  background: rgba(255,45,45,0.16);
  border: 0;
  color: var(--gold);
  border-radius: 8px; padding: 5px 11px;
  white-space: nowrap; flex-shrink: 0;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.discord-join-badge:hover {
  background: rgba(255,255,255,0.14);
  color: var(--gold-light);
}

/* ── Music player ── */
.player {
  position: fixed;
  left: 22px;
  right: 22px;
  bottom: 12px;
  z-index: 8;
  width: auto;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 0;
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 0;
  box-shadow: none;
}
.player::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 1px;
  height: 1px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.32), rgba(255,45,45,0.28), transparent);
  opacity: 0.78;
}
.dock-reflection {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 24px;
  z-index: 1;
  pointer-events: none;
  border-radius: 999px 999px 0 0;
  opacity: 0.74;
  filter: saturate(1.28) contrast(1.08) blur(0.2px);
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.46) 55%, transparent);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.46) 55%, transparent);
}
.player.reflection-fallback .dock-reflection {
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,0.12), rgba(255,45,45,0.14), transparent),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.14), transparent 58%);
}
.player-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.player-art-wrap { position: relative; flex-shrink: 0; }
.player-art {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; display: block;
  border: 0;
}
.player-art-placeholder {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,45,45,0.08);
  border: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); flex-shrink: 0;
}
.player-meta { flex: 1; min-width: 0; max-width: 360px; }
.player-title-row { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.player-track {
  color: rgba(255,255,255,0.86);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  transition: color 0.18s ease;
}
.player-track:hover,
.player-track:focus-visible {
  color: var(--gold-light);
  outline: none;
}
.player-artist { font-size: 11px; color: rgba(255,255,255,0.42); }

.audio-visualizer {
  width: 96px;
  height: 24px;
  display: block;
  flex: 0 0 96px;
  opacity: 0.92;
  transition: transform 0.22s cubic-bezier(.2,.8,.2,1);
}
.audio-visualizer.paused { opacity: 0.48; }

.player-controls {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
  padding-right: 48px;
}
.ctrl-btn {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.7); padding: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.15s;
}
.ctrl-btn:hover { color: #fff; }
.play-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: transparent;
  border: 0;
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: color 0.15s, transform 0.22s cubic-bezier(.2,.8,.2,1);
}
.play-btn:hover { color: var(--gold-light); }
.play-btn:active { transform: scale(0.94); }
.playlist-wrap {
  position: absolute;
  right: 0;
  top: 50%;
  display: flex;
  align-items: center;
  transform: translateY(-50%);
}
.playlist-wrap::after {
  content: "music list";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  min-height: 28px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(10,8,4,0.58);
  color: rgba(255,255,255,0.82);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.01em;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 9;
}
.playlist-wrap:hover::after,
.playlist-wrap:focus-within::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.song-hint {
  position: absolute;
  right: 0;
  bottom: calc(100% + 18px);
  width: max-content;
  max-width: 190px;
  border: 0;
  border-radius: 14px;
  background: rgba(10,8,4,0.68);
  color: rgba(255,255,255,0.82);
  padding: 9px 11px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0.01em;
  box-shadow: none;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 15;
}
.song-hint.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.song-hint::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: -6px;
  width: 10px;
  height: 10px;
  border-right: 0;
  border-bottom: 0;
  background: rgba(10,8,4,0.68);
  transform: rotate(45deg);
}
.playlist-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.88);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.18s ease, transform 0.12s ease;
}
.playlist-btn svg { width: 17px; height: 17px; }
.playlist-btn:hover,
.playlist-btn[aria-expanded="true"] {
  color: var(--gold);
}
.playlist-btn:active { transform: scale(0.96); }
.playlist-menu {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,0.48);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.playlist-menu.open {
  opacity: 1;
  pointer-events: auto;
}
.playlist-card {
  width: min(520px, calc(100vw - 34px));
  padding: 22px;
  border: 0;
  border-radius: 22px;
  background:
    radial-gradient(circle at 16% 0%, rgba(255,45,45,0.16), transparent 34%),
    linear-gradient(145deg, rgba(28,5,7,0.94), rgba(8,5,3,0.92));
  box-shadow: none;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.22s cubic-bezier(.2,.8,.2,1);
}
.playlist-menu.open .playlist-card {
  transform: translateY(0) scale(1);
}
.playlist-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.playlist-tool {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.055);
  color: rgba(255,255,255,0.76);
  display: flex;
  align-items: center;
  justify-content: center;
  font: inherit;
}
button.playlist-tool { cursor: pointer; }
.playlist-tool:first-child {
  color: var(--gold-light);
  background: rgba(255,45,45,0.16);
}
button.playlist-tool:hover {
  background: rgba(255,255,255,0.12);
  color: var(--gold-light);
}
.playlist-tool svg { width: 15px; height: 15px; }
.playlist-count {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.055);
  color: rgba(255,255,255,0.88);
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.playlist-close {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,0.54);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.18s ease, background 0.18s ease, transform 0.12s ease;
}
.playlist-close:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.playlist-close:active { transform: scale(0.94); }
.playlist-close svg {
  width: 17px;
  height: 17px;
}
.playlist-heading {
  margin: 0 0 12px;
  color: rgba(255,255,255,0.9);
  font-size: 15px;
  font-weight: 850;
}
.playlist-list {
  display: grid;
  gap: 10px;
}
.playlist-track-row {
  width: 100%;
  min-height: 70px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,0.055);
  color: rgba(255,255,255,0.74);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  text-align: left;
  font: inherit;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.12s ease;
}
.playlist-track-row:hover,
.playlist-track-row.active {
  background: rgba(255, 45, 45, 0.09);
}
.playlist-track-row:active { transform: scale(0.99); }
.playlist-cover {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 0;
}
.playlist-copy {
  min-width: 0;
  flex: 1;
}
.playlist-name {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.playlist-artist-label {
  margin-top: 3px;
  color: rgba(255,255,255,0.56);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.playlist-active-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--gold-light);
  opacity: 0;
}
.playlist-track-row.active .playlist-active-icon { opacity: 1; }

.progress-wrap {
  position: absolute;
  left: 56px;
  right: 256px;
  bottom: 0;
  margin: 0;
  padding: 0;
  opacity: 0.82;
  z-index: 2;
  transition: right 0.22s cubic-bezier(.2,.8,.2,1);
}
.player.volume-open .progress-wrap {
  right: 390px;
}
.progress-bar {
  width: 100%;
  height: 16px;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: visible;
  touch-action: none;
}
.progress-bar::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 2px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  box-shadow: none;
  transform: translateY(-50%);
  transition: background 0.18s ease, border-color 0.18s ease;
}
.progress-fill {
  position: absolute;
  left: 0;
  top: 50%;
  height: 2px;
  width: 0%;
  min-width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #8b1118 0%, var(--gold) 58%, var(--gold-light) 100%);
  box-shadow: none;
  transform: translateY(-50%);
  transition: width 0.12s linear, box-shadow 0.18s ease;
}
.progress-fill::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -7px;
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 999px;
  background: var(--gold-light);
  box-shadow: none;
  opacity: 0.82;
  transform: translateY(-50%) scale(0.86);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.progress-bar:hover::before,
.progress-bar.is-seeking::before {
  background: rgba(255,255,255,0.24);
  border-color: rgba(255,45,45,0.24);
}
.progress-bar:hover .progress-fill,
.progress-bar.is-seeking .progress-fill {
  box-shadow: none;
}
.progress-bar:hover .progress-fill::after,
.progress-bar.is-seeking .progress-fill::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
.progress-times {
  display: none; justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 7px; font-size: 10px;
  color: rgba(255,255,255,0.3);
  font-variant-numeric: tabular-nums;
}
.time-main {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,0.52);
}
.time-separator,
.time-left {
  color: rgba(255,255,255,0.22);
}
.volume-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(255,255,255,0.42);
  font-size: 11px;
  flex-shrink: 0;
  overflow: visible;
  transition: width 0.22s cubic-bezier(.2,.8,.2,1);
}
.volume-row.is-open {
  width: 174px;
  justify-content: flex-start;
}
.volume-button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,0.68);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.18s ease, transform 0.22s cubic-bezier(.2,.8,.2,1);
}
.volume-button:hover,
.volume-row.is-open .volume-button {
  color: var(--gold-light);
}
.volume-row.is-open .volume-button {
  transform: translateX(-16px);
}
.volume-button:active { transform: scale(0.96); }
.volume-row.is-open .volume-button:active {
  transform: translateX(-16px) scale(0.96);
}
.volume-button svg { width: 15px; height: 15px; flex-shrink: 0; }
.volume-popover {
  position: absolute;
  left: 42px;
  top: 50%;
  width: 128px;
  height: 32px;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-8px, -50%) scaleX(0.92);
  transform-origin: left center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.volume-row.is-open .volume-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%) scaleX(1);
}
.volume-bar {
  width: 128px;
  height: 16px;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: visible;
  touch-action: none;
}
.volume-bar::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 2px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  box-shadow: none;
  transform: translateY(-50%);
  transition: background 0.18s ease, border-color 0.18s ease;
}
.volume-fill {
  position: absolute;
  left: 0;
  top: 50%;
  height: 2px;
  width: 50%;
  min-width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #8b1118 0%, var(--gold) 58%, var(--gold-light) 100%);
  box-shadow: none;
  transform: translateY(-50%);
  transition: width 0.12s linear, box-shadow 0.18s ease;
}
.volume-fill::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -7px;
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 999px;
  background: var(--gold-light);
  box-shadow: none;
  opacity: 0.82;
  transform: translateY(-50%) scale(0.86);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.volume-bar:hover::before,
.volume-bar.is-seeking::before {
  background: rgba(255,255,255,0.24);
  border-color: rgba(255,45,45,0.24);
}
.volume-bar:hover .volume-fill,
.volume-bar.is-seeking .volume-fill {
  box-shadow: none;
}
.volume-bar:hover .volume-fill::after,
.volume-bar.is-seeking .volume-fill::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
.lyrics-section {
  position: fixed;
  left: 50%;
  bottom: 82px;
  z-index: 8;
  width: min(430px, calc(100vw - 32px));
  margin-top: 0;
  transform: translateX(-50%);
}
.lyrics-panel {
  max-height: 260px;
  overflow: visible;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.lyrics-panel.open {
  max-height: 260px;
  opacity: 1;
  transform: translateY(0);
}
.lyrics-list {
  margin-top: 0;
  max-height: none;
  overflow: hidden;
  padding: 10px 12px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,45,45,0.42) transparent;
}
.lyric-line {
  padding: 3px 0;
  color: rgba(255,255,255,0.26);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  cursor: pointer;
  border-radius: 0;
  text-align: center;
  opacity: 0.52;
  text-shadow: 0 1px 14px rgba(0,0,0,0.45);
  transition: color 0.22s ease, transform 0.22s ease, opacity 0.22s ease, font-size 0.22s ease, filter 0.22s ease;
}
.lyric-line.lyric-enter {
  animation: lyricSlideIn 0.34s cubic-bezier(0.19, 1, 0.22, 1) both;
}
.lyrics-list[data-direction="backward"] .lyric-line.lyric-enter {
  animation-name: lyricSlideInBack;
}
.lyric-line.lyric-enter:nth-child(2) {
  animation-delay: 34ms;
}
.lyric-line.lyric-enter:nth-child(3) {
  animation-delay: 58ms;
}
.lyric-line.active.lyric-enter {
  animation-name: lyricActiveIn;
}
.lyrics-list[data-direction="backward"] .lyric-line.active.lyric-enter {
  animation-name: lyricActiveInBack;
}
.lyric-line:hover,
.lyric-line:focus-visible {
  color: rgba(255,255,255,0.56);
  opacity: 0.78;
  outline: none;
}
.lyric-line.active {
  color: rgba(255,255,255,0.96);
  font-size: 15px;
  font-weight: 800;
  opacity: 1;
  transform: scale(1.035);
  filter: blur(0);
  text-shadow: 0 0 18px rgba(255,255,255,0.16), 0 1px 18px rgba(0,0,0,0.62);
}
.lyrics-note {
  color: rgba(255,255,255,0.36);
  font-size: 12px;
  line-height: 1.45;
  padding: 3px 0;
}
@keyframes lyricSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(5px);
  }
  to {
    opacity: 0.52;
    transform: translateY(0);
    filter: blur(0);
  }
}
@keyframes lyricSlideInBack {
  from {
    opacity: 0;
    transform: translateY(-10px);
    filter: blur(5px);
  }
  to {
    opacity: 0.52;
    transform: translateY(0);
    filter: blur(0);
  }
}
@keyframes lyricActiveIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1.035);
    filter: blur(0);
  }
}
@keyframes lyricActiveInBack {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1.035);
    filter: blur(0);
  }
}

/* ── Divider ── */
.divider {
  display: none;
}

/* ── Footer ── */
.footer { margin-top: 28px; font-size: 11px; color: rgba(255,255,255,0.15); letter-spacing: 0.5px; }
.footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer a:hover,
.footer a:focus-visible {
  color: rgba(255,255,255,0.42);
  outline: none;
}

.support-email {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 6;
  padding: 7px 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(10,8,4,0.24);
  color: rgba(255,255,255,0.46);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.support-email:hover,
.support-email:focus-visible {
  color: rgba(255,255,255,0.78);
  background: rgba(10,8,4,0.42);
  outline: none;
}
.local-time {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 6;
  min-width: 138px;
  padding: 9px 12px 10px;
  border-radius: 6px;
  background: rgba(10,8,4,0.30);
  color: rgba(255,255,255,0.78);
  line-height: 1;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-variant-numeric: tabular-nums;
}
.local-time-zone,
.local-time-date {
  display: block;
  color: rgba(255,255,255,0.32);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.local-time-value {
  display: block;
  margin-top: 3px;
  color: rgba(255,255,255,0.92);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.055em;
}
.local-time-date {
  margin-top: 3px;
}

.watermark-link {
  position: fixed;
  right: 14px;
  bottom: 84px;
  z-index: 6;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(10,8,4,0.24);
  color: rgba(255,255,255,0.34);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.watermark-link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--gold);
}
.watermark-link svg path {
  fill: currentColor;
}
.watermark-link:hover {
  color: rgba(255,255,255,0.72);
  background: rgba(10,8,4,0.42);
  transform: translateY(-1px);
}
.watermark-link.hint-visible {
  transform: translateY(-54px);
}
.watermark-link.hint-visible:hover {
  transform: translateY(-55px);
}
@media (prefers-reduced-motion: reduce) {
  .audio-visualizer { opacity: 0.6; }
  .lyric-line.lyric-enter {
    animation: none;
  }
  .server-name,
  .server-name::before,
  .server-name::after { animation: none; }
}
@media (max-width: 768px) {
  .dock-reflection {
    display: none;
  }
}
@media (max-width: 520px) {
  .page {
    justify-content: flex-start;
    min-height: 100svh;
    padding-top: 92px;
    padding-bottom: 34px;
  }
  .local-time {
    top: 10px;
    left: 10px;
    min-width: 118px;
    padding: 8px 10px;
  }
  .local-time-value {
    font-size: 17px;
  }
  .local-time-zone,
  .local-time-date {
    font-size: 10px;
  }
  .support-email {
    top: 10px;
    right: 10px;
    padding: 6px 8px;
    font-size: 10px;
  }
  .profile-topline .views-pill {
    left: calc(50% + 54px);
    top: 50%;
  }
  .player {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: min(100%, 390px);
    min-height: 62px;
    gap: 10px;
    padding: 8px 12px 10px;
    margin: 10px auto 0;
    border-radius: 28px;
  }
  .player-art {
    width: 38px;
    height: 38px;
  }
  .player-meta {
    max-width: none;
  }
  .player-controls {
    gap: 8px;
    padding-right: 42px;
  }
  .audio-visualizer {
    width: 42px;
    height: 20px;
    flex-basis: 42px;
  }
  .volume-row {
    display: none;
  }
  .dock-reflection {
    display: none;
  }
  .playlist-btn,
  .play-btn {
    width: 34px;
    height: 34px;
  }
  .progress-wrap {
    left: 18px;
    right: 18px;
    bottom: 4px;
  }
  .lyrics-section {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(430px, calc(100vw - 20px));
    margin: 10px auto 0;
    transform: none;
  }
}
