/* ════════════════════════════════════════════════════════════════════
   Activity (onglets + Radio) — même design que le TCG (src/tcg/style.css) :
   fond nuit, violet néon + rose action, Russo One (titres) / Chakra Petch (texte).
   Les jetons de couleur, rayons et mouvements sont les mêmes que ceux du TCG.
   ════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #0f0f23;
  --bg-deep: #090916;
  --surface: #1e1c35;
  --surface-2: #27273b;
  --surface-3: #312f4d;
  --text: #e2e8f0;
  --text-muted: #a3adc2;
  --text-faint: #7a839a;
  --primary: #7c3aed;
  --primary-hi: #8b5cf6;
  --primary-soft: #a78bfa;
  --accent: #f43f5e;
  --accent-hi: #fb5b77;
  --on-accent: #1a0510;
  --success: #34d399;
  --warn: #ffb42e;
  --danger: #f87171;
  --border: rgba(167, 139, 250, 0.16);
  --border-strong: rgba(167, 139, 250, 0.34);
  --ring: #a78bfa;

  --font-display: "Russo One", "Segoe UI", system-ui, sans-serif;
  --font-body: "Chakra Petch", "Segoe UI", system-ui, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --radius-sm: 8px; --radius: 12px; --radius-lg: 18px; --radius-xl: 24px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 150ms; --dur: 240ms; --dur-slow: 420ms;

  font-family: var(--font-body);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; color: var(--text); }
body {
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(124, 58, 237, 0.22), transparent 60%),
    radial-gradient(700px 480px at -10% 10%, rgba(244, 63, 94, 0.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
svg { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 6px; }

/* ---------- Structure : onglets à gauche, contenu à droite ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; align-self: flex-start; height: 100vh; flex: none; width: 184px;
  display: flex; flex-direction: column; gap: 4px; padding: 16px 10px;
  background: rgba(15, 15, 35, 0.78); border-right: 1px solid var(--border);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.tab {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 14px; border-radius: 999px;
  background: transparent; color: var(--text-muted); font-weight: 600; font-size: 15px; text-align: left;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.tab svg { font-size: 20px; }
.tab .tab-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab .tag {
  padding: 1px 6px; border-radius: 999px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  background: var(--surface-2); color: var(--text-faint);
}
.tab:hover { color: var(--text); background: rgba(167, 139, 250, 0.08); }
.tab[aria-selected="true"] {
  color: #fff; background: linear-gradient(180deg, rgba(124, 58, 237, 0.42), rgba(124, 58, 237, 0.22));
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.4);
}
.tab[aria-selected="true"] svg { color: var(--primary-soft); }

.views { flex: 1; min-width: 0; display: flex; justify-content: center; }
.view[hidden] { display: none !important; }
#app {
  width: 100%; max-width: 1180px; padding: var(--s5) var(--s5) 40px;
  display: flex; flex-direction: column; gap: var(--s4);
}
/* Radio : la page d'avant, centrée */
#pane-radio { width: 100%; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--s5); }

/* TCG : l'interface du TCG (activity/dist/tcg) prend toute la place à droite des onglets */
.tcg-view { flex: 1; min-width: 0; height: 100vh; display: flex; }
.tcg-view iframe { flex: 1; width: 100%; height: 100%; border: 0; display: block; background: var(--bg); }

/* Partie pas encore disponible (étiquette « Bientôt » d'un futur onglet) */
.soon { width: 100%; max-width: 580px; padding: 20px 16px; display: flex; align-items: center; justify-content: center; }
.soon-card { width: 100%; padding: 40px 24px; text-align: center; color: var(--text-muted); }
.soon-icon { font-size: 48px; color: var(--primary-soft); }
.soon-card h2 { margin: 12px 0 4px; color: var(--text); font-family: var(--font-display); font-weight: 400; font-size: 22px; }
.soon-card p { margin: 0; }

/* Surface (comme .panel du TCG) */
.card {
  background: linear-gradient(180deg, rgba(39, 39, 59, 0.55), rgba(30, 28, 53, 0.75));
  border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-1);
}

/* ---------- En-tête ---------- */
.top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.live {
  flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 10px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--border);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--text-faint)); flex: none; }
.live .dot.on { background: var(--success); animation: pulse 2s infinite; }
.live .dot.paused { background: var(--warn); }
.channel { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-weight: 600; min-width: 0; }
.channel svg { font-size: 16px; }
#channel { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge {
  margin-left: auto; flex: none; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(124, 58, 237, 0.22); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong);
}
.badge:empty { display: none; }

/* ---------- En cours ---------- */
.now { display: flex; gap: 20px; align-items: center; padding: 20px; }
.cover {
  position: relative; flex: none; width: 112px; height: 112px; border-radius: var(--radius-lg); overflow: hidden;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(167, 139, 250, 0.55), transparent 55%),
    linear-gradient(165deg, #4c1d95 0%, #2e1065 42%, #170a3a 100%);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.25), 0 10px 40px rgba(124, 58, 237, 0.35);
}
.cover-icon { font-size: 44px; color: #fff; filter: drop-shadow(0 2px 6px rgb(0 0 0 / .35)); transition: opacity var(--dur), transform var(--dur); }
.eq {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  display: flex; justify-content: center; align-items: flex-end; gap: 5px; height: 44%;
  opacity: 0; transition: opacity var(--dur);
}
.eq i { width: 7%; height: 100%; border-radius: 3px; background: linear-gradient(180deg, #fff, var(--primary-soft)); transform-origin: bottom; transform: scaleY(.2); }
#pane-radio.playing .eq { opacity: 1; }
#pane-radio.playing .cover-icon { opacity: 0; transform: scale(.6); }
#pane-radio.playing:not(.paused) .eq i { animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.4s !important; animation-duration: .8s !important; }
.eq i:nth-child(3) { animation-delay: -.7s !important; animation-duration: 1.2s !important; }
.eq i:nth-child(4) { animation-delay: -.2s !important; animation-duration: .9s !important; }
.eq i:nth-child(5) { animation-delay: -.55s !important; animation-duration: 1.1s !important; }
#pane-radio.paused .eq i { transform: scaleY(.25); }

.meta { min-width: 0; flex: 1; }
.label { color: var(--primary-soft); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
#pane-radio.paused .label { color: var(--warn); }
#pane-radio:not(.playing) .label { color: var(--text-muted); }
h1 {
  margin: 6px 0; font-family: var(--font-display); font-weight: 400; letter-spacing: .01em;
  font-size: 22px; line-height: 1.2; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.time { color: var(--text-muted); font-variant-numeric: tabular-nums; font-size: 14px; }
.skeleton {
  display: block; height: 22px; width: 70%; border-radius: 6px;
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 300% 100%;
  animation: shimmer 1.4s linear infinite;
}

/* ---------- Boutons (comme .btn du TCG) ---------- */
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; }
button.busy { opacity: .6; pointer-events: none; }

.controls { display: flex; justify-content: center; align-items: center; gap: 18px; }
.round {
  display: grid; place-items: center; border-radius: 50%; width: 56px; height: 56px; font-size: 24px;
  background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong);
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease), opacity var(--dur-fast);
}
.round:hover:not(:disabled) { background: var(--surface-3); transform: translateY(-1px); }
.round:active:not(:disabled) { transform: translateY(0) scale(.96); }
.round:disabled { opacity: .45; }
.round.primary {
  width: 72px; height: 72px; font-size: 32px; color: var(--on-accent); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 8px 26px rgba(244, 63, 94, 0.4);
  background: linear-gradient(135deg, var(--accent-hi), var(--accent));
}
.round.primary:hover:not(:disabled) { background: linear-gradient(135deg, #ff7189, var(--accent-hi)); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 12px 34px rgba(244, 63, 94, 0.5); }
.round.primary:disabled { box-shadow: none; }

/* ---------- Titres de section (comme .eyebrow du TCG) ---------- */
.section-title {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  color: var(--primary-soft); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
}
.count { padding: 0 8px; border-radius: 999px; background: var(--surface-3); color: var(--text); font-size: 11px; line-height: 18px; letter-spacing: 0; font-variant-numeric: tabular-nums; }

/* ---------- Playlists (puces de filtre du TCG : aria-pressed) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); color: var(--text-muted); box-shadow: inset 0 0 0 1px var(--border);
  font-size: 14px; font-weight: 600;
  transition: background var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast);
}
.chip:hover:not(:disabled) { color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.chip .swatch { flex: none; width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--h) 80% 60%); }
.chip .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 18ch; }
.chip .n { font-size: 12px; opacity: .7; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); box-shadow: none; }
.chip[aria-pressed="true"]:disabled { opacity: 1; cursor: default; }
.chip:disabled:not([aria-pressed="true"]) { opacity: .45; }

/* ---------- Auditeurs ---------- */
.listeners ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.listeners li {
  display: flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); font-weight: 600; font-size: 14px;
  animation: pop .25s var(--ease);
}
.avatar {
  width: 30px; height: 30px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 12px; color: var(--primary-soft); background: var(--surface-3);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.listeners li.me { box-shadow: inset 0 0 0 1px var(--primary-soft); }
.listeners li.me .avatar { box-shadow: 0 0 0 2px var(--primary-soft); }
.empty { margin: 0; color: var(--text-faint); font-size: 14px; }

/* ---------- Bas de page ---------- */
footer {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px;
  background: rgba(255, 180, 46, 0.1); border: 1px solid rgba(255, 180, 46, 0.4); color: #ffd98a;
}
.shortcuts { margin: 0; text-align: center; color: var(--text-faint); font-size: 12px; }
kbd {
  font: inherit; font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--surface-2);
  border-bottom: 2px solid var(--bg-deep); color: var(--text-muted);
}

#toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translateX(-50%);
  max-width: min(520px, calc(100vw - 32px)); padding: 12px 16px; border-radius: var(--radius-lg);
  background: rgba(30, 28, 53, 0.96); backdrop-filter: blur(10px); color: var(--text);
  border: 1px solid rgba(248, 113, 113, 0.5); box-shadow: var(--shadow-2);
  font-size: 14px; animation: toast-in var(--dur) var(--ease);
}
#toast.info { border-color: var(--border-strong); }

/* Chargement : les commandes restent visibles mais neutres */
#pane-radio.loading .controls, #pane-radio.loading .modes, #pane-radio.loading .listeners { opacity: .5; }

/* ---------- Téléphone : les onglets passent en barre fine en haut ---------- */
/* Le TCG garde toute la largeur (il a sa propre barre d'onglets en bas) ; le zoom se range à droite. */
@media (max-width: 640px) {
  .shell { flex-direction: column; }
  .sidebar {
    position: sticky; top: 0; z-index: 4; width: 100%; height: 48px; align-self: stretch;
    flex-direction: row; align-items: center; gap: 4px; padding: 6px 140px 6px 8px;
    border-right: 0; border-bottom: 1px solid var(--border);
  }
  .tab { width: auto; flex: none; min-height: 36px; padding: 0 14px; }
  .tab .tab-label { flex: none; }
  .views { min-height: calc(100vh - 48px); }
  .tcg-view { height: calc(100vh - 48px); height: calc(100dvh - 48px); }
  #app { padding: var(--s5) var(--s4) 32px; }
}

/* ---------- Petite fenêtre (Activity réduite / PIP) : l'essentiel seulement ---------- */
@media (max-height: 420px) {
  .sidebar { padding-top: 10px; }
  #app { padding: 10px 12px; gap: 10px; }
  #pane-radio { gap: 10px; }
  .modes, .listeners, .shortcuts, footer, .mu-search, .mu-side, .mu-switch { display: none !important; }
  .now { padding: 10px; gap: 12px; }
  .cover { width: 72px; height: 72px; }
  .cover-icon { font-size: 30px; }
  h1 { font-size: 17px; -webkit-line-clamp: 2; }
  .round { width: 44px; height: 44px; font-size: 18px; }
  .round.primary { width: 52px; height: 52px; font-size: 24px; }
}
/* Très petite fenêtre (PIP de Discord, ~225 px de haut) : sans l'en-tête, sans barre de défilement */
@media (max-height: 260px) {
  html, body { overflow: hidden; }
  .sidebar { display: none; }
  .top { display: none; }
  #app { gap: 8px; }
  .now { padding: 8px; }
  .cover { width: 64px; height: 64px; }
  .label { font-size: 11px; }
  h1 { font-size: 16px; margin: 3px 0; }
  .controls { gap: 14px; }
}
@media (max-width: 380px) {
  .cover { width: 84px; height: 84px; }
  h1 { font-size: 19px; }
  .shortcuts { display: none; }
}

@media (pointer: coarse) { .shortcuts { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@keyframes eq { 0%, 100% { transform: scaleY(.2); } 50% { transform: scaleY(1); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); } 70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
@keyframes shimmer { to { background-position: -150% 0; } }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
@keyframes toast-in { from { transform: translate(-50%, 12px); opacity: 0; } }

/* Onglet TCG : message tant que le TCG n'est pas affiché (connexion, chargement, erreur) */
.tcg-status { flex: 1; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; color: var(--text-muted); background: var(--bg); }
.tcg-status.error { color: #fca5a5; }
.tcg-status.error .tcg-spinner { display: none; }
.tcg-status[hidden], .tcg-view iframe[hidden] { display: none; }
.tcg-spinner { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 3px solid rgba(167, 139, 250, 0.2); border-top-color: var(--primary-soft); animation: tcg-spin .8s linear infinite; }
@keyframes tcg-spin { to { transform: rotate(360deg); } }

/* Zoom (en bas des onglets, posé par-dessus la barre latérale) */
.zoom-ctl {
  position: fixed; left: 10px; bottom: 12px; z-index: 5; width: 164px;
  display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong);
}
.zoom-ctl button {
  height: 30px; min-width: 30px; border-radius: 999px; background: transparent; color: var(--text-muted);
  font-weight: 700; font-size: 16px; line-height: 1; display: grid; place-items: center;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.zoom-ctl #zoom-value { flex: 1; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zoom-ctl button:hover:not(:disabled) { background: rgba(167, 139, 250, 0.14); color: var(--text); }
.zoom-ctl button:disabled { opacity: .35; cursor: default; }
@media (max-width: 640px) {
  .zoom-ctl { top: 6px; right: 8px; bottom: auto; left: auto; width: 124px; height: 36px; padding: 3px; }
  .zoom-ctl button { height: 30px; min-width: 32px; }
}
/* Téléphones (≤ 480 px) : trois onglets + le zoom ne tiennent pas avec leurs noms ; seul l'onglet ouvert
   garde son nom, les autres leur icône (nom dans l'infobulle et pour les lecteurs d'écran) */
@media (max-width: 480px) {
  .sidebar { overflow-x: auto; scrollbar-width: none; }
  .tab:not([aria-selected="true"]) { padding: 0 12px; }
  .tab:not([aria-selected="true"]) .tab-label { display: none; }
}
/* Petits téléphones (≤ 360 px) : un peu moins d'espace pour que les onglets et le zoom tiennent */
@media (max-width: 360px) {
  .sidebar { padding-right: 124px; gap: 2px; }
  .tab { padding: 0 11px; gap: 7px; }
  .zoom-ctl { width: 110px; }
  .zoom-ctl button { min-width: 28px; }
  .zoom-ctl #zoom-value { font-size: 11px; }
}
/* Écran tactile : boutons de zoom plus grands, plus faciles à toucher */
@media (hover: none) and (min-width: 641px) { .zoom-ctl button { height: 36px; min-width: 36px; } }
@media (max-height: 420px) { .zoom-ctl { display: none; } }

/* ════════════════════ Onglet Musique : choix du bot + page Bot musique ════════════════════ */
.mu-switch { display: flex; gap: var(--s2); padding: 4px; border-radius: 999px; background: rgba(15, 15, 35, .6); box-shadow: inset 0 0 0 1px var(--border); align-self: center; max-width: 100%; }
.mu-switch button {
  display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 18px 6px 12px; border-radius: 999px;
  background: transparent; color: var(--text-muted); text-align: left; transition: background var(--dur-fast), color var(--dur-fast);
}
.mu-switch button svg { font-size: 22px; }
.mu-switch button span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.mu-switch button b { font-family: var(--font-display); font-weight: 400; font-size: 15px; letter-spacing: .02em; }
.mu-switch button small { font-size: 12px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 26ch; }
.mu-switch button:hover { color: var(--text); }
.mu-switch button[aria-selected="true"] { color: #fff; background: linear-gradient(135deg, rgba(124, 58, 237, .55), rgba(244, 63, 94, .35)); box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .45); }
.mu-switch button[aria-selected="true"] small { color: rgba(255, 255, 255, .75); }

.mu { display: flex; flex-direction: column; gap: var(--s4); }
.mu-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: var(--s4); align-items: start; }
.mu-main { display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }

/* Titre en cours */
.mu-now { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 16px 22px; padding: 22px; position: relative; overflow: hidden; }
.mu-now::before { content: ""; position: absolute; inset: -40%; background: radial-gradient(closest-side, rgba(124, 58, 237, .28), transparent); pointer-events: none; }
.mu-art { position: relative; width: 168px; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, #4c1d95, #be123c); box-shadow: 0 14px 34px rgba(0, 0, 0, .45); grid-row: span 2; }
.mu-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mu-art-icon { font-size: 56px; color: #fff; opacity: .85; }
.mu-art .eq { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 26px; opacity: 0; }
.mu.playing:not(.paused) .mu-art .eq { opacity: .95; }
.mu.playing:not(.paused) .mu-art-icon { opacity: 0; }
.mu.playing:not(.paused) .mu-art .eq i { animation: eq 1s ease-in-out infinite; }
.mu-info { min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; position: relative; }
.mu-status { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--primary-soft); }
.mu-status .dot.on { background: var(--success); animation: pulse 2s infinite; }
.mu-status .dot.paused { background: var(--warn); }
.mu-ch { color: var(--text-faint); text-transform: none; letter-spacing: 0; font-weight: 500; }
.mu-info h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(20px, 2.6vw, 28px); line-height: 1.15;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mu-artist { margin: 0; color: var(--text-muted); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--text-faint); }
.mu-src-tag { padding: 2px 8px; border-radius: 999px; font-weight: 700; font-size: 11px; letter-spacing: .04em; background: var(--surface-3); color: var(--text); }
.mu-src-tag i { font-style: normal; font-weight: 500; opacity: .8; }
.mu-src-tag.s-youtube { background: rgba(239, 68, 68, .22); color: #fecaca; }
.mu-src-tag.s-soundcloud { background: rgba(249, 115, 22, .22); color: #fed7aa; }
.mu-src-tag.s-spotify { background: rgba(34, 197, 94, .2); color: #bbf7d0; }
.mu-src-tag.s-radio { background: rgba(167, 139, 250, .22); color: #ddd6fe; }
.mu-req { display: inline-flex; align-items: center; gap: 6px; }
.mu-progress { grid-column: 2; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; position: relative; }
.mu-bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.mu-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--primary-hi), var(--accent)); transition: width .5s linear; }
.mu-controls { grid-column: 1 / -1; display: flex; justify-content: center; align-items: center; gap: 16px; position: relative; }
.mu-controls .round.primary { width: 64px; height: 64px; font-size: 28px; }
.ic { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: transparent; color: var(--text-muted); font-size: 20px; transition: color var(--dur-fast), background var(--dur-fast); }
.ic:hover:not(:disabled) { color: var(--text); background: rgba(167, 139, 250, .12); }
.ic:disabled { opacity: .35; }
.ic[aria-pressed="true"] { color: var(--success); }
.ic.danger:hover:not(:disabled) { color: var(--danger); }
.mu-loop-one { position: absolute; right: 6px; bottom: 6px; font-size: 9px; line-height: 1; padding: 1px 3px; border-radius: 4px; background: var(--success); color: var(--bg); display: none; }
#mu-loop[data-mode="track"] .mu-loop-one { display: block; }
.mu-bottom { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; }
.mu-volume { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 13px; font-variant-numeric: tabular-nums; flex: 1; max-width: 320px; }
.mu-volume input { flex: 1; accent-color: var(--primary-hi); }
.mu-volume span { min-width: 4ch; text-align: right; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 14px;
  background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); transition: background var(--dur-fast), transform var(--dur-fast); white-space: nowrap; }
.btn:hover:not(:disabled) { background: var(--surface-3); }
.btn:disabled { opacity: .45; }
.btn.primary { background: linear-gradient(135deg, var(--primary-hi), var(--primary)); color: #fff; box-shadow: 0 6px 18px rgba(124, 58, 237, .35); }
.btn.primary:hover:not(:disabled) { background: linear-gradient(135deg, #9d74ff, var(--primary-hi)); }
.btn.ghost { background: transparent; }
.btn.danger { color: #fca5a5; }
.btn.danger[data-confirm="1"] { background: rgba(248, 113, 113, .18); box-shadow: inset 0 0 0 1px rgba(248, 113, 113, .6); }
.btn.small { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn svg { font-size: 16px; }
.busy { opacity: .6; pointer-events: none; }

/* Recherche */
.mu-search { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.mu-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mu-input { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--bg-deep);
  box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--text-faint); }
.mu-input:focus-within { box-shadow: inset 0 0 0 2px var(--ring); }
.mu-input input { flex: 1; min-width: 0; height: 42px; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 15px; }
.mu-src { display: flex; padding: 3px; border-radius: 999px; background: var(--bg-deep); box-shadow: inset 0 0 0 1px var(--border); }
.mu-src button { padding: 6px 12px; border-radius: 999px; background: transparent; color: var(--text-muted); font-size: 13px; font-weight: 600; }
.mu-src button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }
.mu-results:empty { display: none; }
.mu-loading { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--text-muted); font-size: 14px; }
.mu-loading .tcg-spinner { width: 18px; height: 18px; border-width: 2px; }
.mu-err { margin: 0; color: #fca5a5; font-size: 14px; }
.mu-plhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 14px; color: var(--text-muted); }
.mu-list, .mu-queue { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mu-list { max-height: 360px; overflow-y: auto; scrollbar-width: thin; }
.mu-list li, .mu-queue li { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: var(--radius); min-width: 0; }
.mu-list li:hover, .mu-queue li:hover { background: rgba(167, 139, 250, .08); }
.mu-thumb { position: relative; flex: none; width: 46px; height: 46px; border-radius: 8px; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, #3b2a6b, #5b1f3c); color: rgba(255, 255, 255, .6); font-size: 18px; }
.mu-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mu-li-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mu-li-text b { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-li-text small { font-size: 12px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }
.mu-li-act { flex: none; display: flex; align-items: center; gap: 2px; }
.mu-li-act .ic { width: 32px; height: 32px; font-size: 16px; }
.mu-lists { display: flex; flex-direction: column; gap: 8px; }

/* File d'attente (colonne de droite) */
.mu-side { padding: 18px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 16px; max-height: calc(100vh - 32px); min-height: 0; }
.mu-qhead { display: flex; align-items: center; gap: 10px; }
.mu-qhead .section-title { margin: 0; flex: 1; }
.mu-qdur { font-size: 12px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.mu-side > .mu-queue { flex: 1; min-height: 80px; overflow-y: auto; scrollbar-width: thin; }
/* Boutons d'une ligne de la file : par-dessus la fin de la ligne, au survol (le titre garde toute la place) */
.mu-queue li { position: relative; }
.mu-queue li .mu-li-act { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); padding: 2px; border-radius: 999px;
  background: rgba(30, 28, 53, .96); box-shadow: 0 0 0 1px var(--border), -12px 0 16px rgba(30, 28, 53, .9); opacity: 0; pointer-events: none; transition: opacity var(--dur-fast); }
.mu-queue li:hover .mu-li-act, .mu-queue li:focus-within .mu-li-act { opacity: 1; pointer-events: auto; }
.mu-queue li .mu-av.sm { flex: none; }
.mu-queue li.mu-more { justify-content: center; color: var(--text-faint); font-size: 13px; }
.mu-queue.mini li { padding: 4px 6px; opacity: .75; }
.mu-queue.mini .mu-thumb { width: 34px; height: 34px; font-size: 14px; }
.mu-history summary { cursor: pointer; color: var(--text-muted); font-size: 13px; font-weight: 600; }
.mu-history[open] summary { margin-bottom: 6px; }
.mu-history .mu-queue { max-height: 200px; overflow-y: auto; }
.mu-av { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--surface-3); color: var(--text-muted); font-size: 12px; }
.mu-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mu-av.sm { width: 22px; height: 22px; font-size: 10px; }
.mu-who .section-title { margin-bottom: 8px; }
.mu-avatars { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mu-avatars li { display: flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--surface-2); font-size: 13px; max-width: 100%; }
.mu-avatars li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-avatars li.me { box-shadow: inset 0 0 0 1px var(--primary-soft); }
.mu-avatars li.empty { background: transparent; padding: 0; }

/* Taille moyenne : la file passe sous le reste */
@media (max-width: 980px) {
  .mu-grid { grid-template-columns: minmax(0, 1fr); }
  .mu-side { position: static; max-height: none; }
  .mu-side > .mu-queue { max-height: 420px; }
}
@media (max-width: 560px) {
  .mu-now { grid-template-columns: 96px minmax(0, 1fr); padding: 16px; gap: 12px 14px; }
  .mu-art { width: 96px; grid-row: auto; }
  .mu-art-icon { font-size: 36px; }
  .mu-progress { grid-column: 1 / -1; }
  .mu-controls { gap: 8px; }
  .mu-switch button { padding: 6px 12px 6px 10px; }
  .mu-switch button small { max-width: 14ch; }
  .mu-queue li .mu-li-act { position: static; transform: none; box-shadow: none; background: transparent; opacity: 1; pointer-events: auto; }
}
@media (pointer: coarse) { .mu-queue li .mu-li-act { position: static; transform: none; box-shadow: none; background: transparent; opacity: 1; pointer-events: auto; } }
/* Petite fenêtre (PIP) : seulement le titre en cours et les commandes */
@media (max-height: 420px) {
  .mu-now { grid-template-columns: 72px minmax(0, 1fr); padding: 10px; gap: 8px 12px; }
  .mu-art { width: 72px; grid-row: auto; }
  .mu-bottom { display: none; }
  .mu-controls .round.primary { width: 48px; height: 48px; font-size: 22px; }
}

/* ---------- Patch notes : bouton à part en bas à gauche (au-dessus du zoom), allumé s'il y a du nouveau ---------- */
.patch-btn {
  position: fixed; left: 10px; bottom: 58px; z-index: 5; width: 164px; height: 38px;
  display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 10px;
  background: rgba(15, 15, 35, 0.6); color: var(--text-muted); font-weight: 600; font-size: 13px;
  box-shadow: inset 0 0 0 1px var(--border-strong); border: 0;
  transition: color var(--dur-fast), background var(--dur-fast), box-shadow var(--dur-fast);
}
.patch-btn svg { font-size: 17px; }
.patch-btn .patch-label { flex: 1; text-align: left; }
.patch-btn:hover { color: var(--text); background: rgba(56, 189, 248, 0.1); box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.45); }
.patch-btn[aria-pressed="true"] { color: #e0f2fe; background: rgba(56, 189, 248, 0.16); box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.6); }
.patch-dot { width: 8px; height: 8px; border-radius: 50%; background: #38bdf8; display: none; }
.patch-btn.has-new { color: #e0f2fe; box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.6), 0 0 14px rgba(56, 189, 248, 0.35); animation: patch-glow 2.4s ease-in-out infinite; }
.patch-btn.has-new .patch-dot { display: block; box-shadow: 0 0 0 0 rgba(56, 189, 248, .7); animation: patch-dot 1.8s ease-out infinite; }
@keyframes patch-glow { 50% { box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.85), 0 0 22px rgba(56, 189, 248, 0.5); } }
@keyframes patch-dot { 70% { box-shadow: 0 0 0 7px rgba(56, 189, 248, 0); } 100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); } }
@media (max-height: 420px) { .patch-btn { bottom: 12px; } }
@media (max-height: 260px) { .patch-btn { display: none; } }

.pn-view { width: 100%; max-width: 820px; padding: var(--s5) var(--s5) 48px; display: flex; flex-direction: column; gap: var(--s4); }
.pn-head h1 { font-family: var(--font-display, inherit); font-size: 26px; margin: 0; }
.pn-entry { padding: var(--s5); }
.pn-entry.latest { box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.45); }
.pn-entry h2 { margin: 4px 0 8px; font-size: 19px; }
.pn-entry h3 { margin: 14px 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--primary-soft); }
.pn-entry ul { margin: 0; padding-left: 20px; color: var(--text-muted); display: grid; gap: 4px; }
.pn-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--text-faint); }
.pn-new { padding: 1px 8px; border-radius: 999px; background: rgba(56, 189, 248, 0.16); color: #7dd3fc; font-weight: 700; }

/* Haut de l'Activity : encoche du téléphone (safe-area), et sur Discord mobile (classe dc-mobile, mise par main.js
   d'après ?platform=mobile) le bandeau de Discord (pseudo, « Leave ») posé PAR-DESSUS l'Activity sans être déclaré
   comme zone réservée : on descend la barre d'onglets d'autant, sinon on ne peut pas la toucher. */
:root { --top-inset: env(safe-area-inset-top, 0px); }
:root.dc-mobile { --top-inset: max(env(safe-area-inset-top, 0px), 58px); }
:root.dc-mobile .sidebar { padding-top: calc(16px + var(--top-inset)); }

/* ---------- Téléphone en portrait : onglets répartis sur toute la largeur (icône + nom court), sans défilement ;
   zoom masqué (Discord gère le pincement), patch notes en petit bouton rond à droite ---------- */
@media (max-width: 640px) {
  .sidebar {
    height: calc(54px + var(--top-inset)); padding: var(--top-inset) 52px 0 max(4px, env(safe-area-inset-left));
    gap: 2px; overflow: visible;
  }
  .tab, .tab:not([aria-selected="true"]) {
    flex: 1 1 0; min-width: 0; width: auto; min-height: 48px; padding: 4px 2px; gap: 2px; border-radius: 12px;
    flex-direction: column; justify-content: center; align-items: center; font-size: 10.5px; text-align: center;
  }
  .tab .tab-label, .tab:not([aria-selected="true"]) .tab-label { display: block; flex: none; max-width: 100%; }
  .tab svg { font-size: 20px; }
  .tab .tag { display: none; }
  .zoom-ctl { display: none; }
  .patch-btn { top: calc(9px + var(--top-inset)); right: max(8px, env(safe-area-inset-right)); left: auto; bottom: auto; width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 50%; }
  .patch-btn .patch-label { display: none; }
  .patch-btn .patch-dot { position: absolute; top: 4px; right: 4px; }
  .views { min-height: calc(100dvh - 54px - var(--top-inset)); }
  .tcg-view { height: calc(100vh - 54px); height: calc(100dvh - 54px - var(--top-inset)); }
  .pn-view { padding: var(--s4) var(--s4) calc(32px + env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) { .sidebar { padding-right: 48px; } .tab { font-size: 9.5px; } }

/* ════════════ Site web (hors de Discord, classe html.web mise par main.js) : en-tête et page de connexion ════════════ */
.web-brand, .web-user { display: none; }
:root.web .web-brand {
  position: fixed; top: 0; left: 0; z-index: 6; width: 184px; height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 22px;
  font-family: var(--font-display); font-size: 21px; letter-spacing: .02em; color: var(--text); pointer-events: none;
}
.web-brand b, .web-gate-brand b { color: var(--accent); font-weight: 400; }
.web-logo { color: var(--primary-soft); text-shadow: 0 0 14px rgba(167, 139, 250, 0.7); }
:root.web .sidebar { padding-top: 72px; }
:root.web .web-user:not([hidden]) { display: block; position: fixed; left: 10px; bottom: 104px; z-index: 7; width: 164px; }
#web-user-btn {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 44px; padding: 0 8px; border-radius: 12px;
  background: rgba(15, 15, 35, 0.6); box-shadow: inset 0 0 0 1px var(--border-strong); font-weight: 600; font-size: 13px; color: var(--text);
}
#web-user-btn:hover, #web-user-btn[aria-expanded="true"] { background: rgba(124, 58, 237, 0.2); }
.web-av {
  width: 30px; height: 30px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: var(--surface-3); color: var(--primary-soft); font-family: var(--font-display); font-size: 14px;
}
.web-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.web-name { flex: 1; min-width: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.web-menu {
  position: absolute; left: 0; bottom: calc(100% + 6px); min-width: 100%; width: max-content; max-width: 260px; padding: 6px;
  display: grid; gap: 2px; border-radius: 12px; background: rgba(30, 28, 53, 0.98); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--border-strong);
}
.web-menu button { text-align: left; padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text-muted); }
.web-menu button:hover, .web-menu button:focus-visible { background: rgba(167, 139, 250, 0.12); color: var(--text); }
.web-menu button.danger { color: var(--danger); }
@media (max-height: 420px) { :root.web .web-user:not([hidden]) { bottom: 58px; } }
@media (max-height: 260px) { :root.web .web-user:not([hidden]) { display: none; } }
@media (max-width: 640px) {
  :root.web .web-brand { display: none; }
  :root.web .sidebar { padding-top: var(--top-inset); padding-right: 96px; }
  :root.web .web-user:not([hidden]) { top: calc(8px + var(--top-inset)); right: max(52px, calc(44px + env(safe-area-inset-right))); left: auto; bottom: auto; width: auto; }
  #web-user-btn { width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 50%; }
  #web-user-btn .web-name { display: none; }
  .web-av { width: 30px; height: 30px; }
  .web-menu { left: auto; right: 0; top: calc(100% + 6px); bottom: auto; }
}

/* Page de connexion (et profil public sans connexion) */
.web-gate {
  position: fixed; inset: 0; z-index: 40; overflow-y: auto; display: grid; place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(124, 58, 237, 0.28), transparent 60%),
    radial-gradient(700px 480px at -10% 10%, rgba(244, 63, 94, 0.14), transparent 60%),
    var(--bg);
}
.web-card {
  width: 100%; max-width: 540px; padding: 32px; border-radius: var(--radius-xl); display: flex; flex-direction: column; gap: 16px;
  background: linear-gradient(180deg, rgba(39, 39, 59, 0.92), rgba(30, 28, 53, 0.92)); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--border);
}
.web-gate-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 24px; }
.web-card h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 5vw, 30px); line-height: 1.15; }
.web-lead { margin: 0; color: var(--text-muted); }
.web-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.web-features li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); }
.web-features svg { font-size: 22px; color: var(--primary-soft); margin-top: 1px; }
.web-features b { color: var(--text); }
.web-msg { margin: 0; padding: 10px 14px; border-radius: var(--radius); background: rgba(167, 139, 250, 0.12); color: var(--text); font-size: 14px; }
.web-msg.error { background: rgba(248, 113, 113, 0.14); box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.4); }
.web-login {
  display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 24px; border-radius: 999px;
  background: #5865f2; color: #fff; font-weight: 700; font-size: 17px; text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 28px rgba(88, 101, 242, 0.45);
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.web-login svg { font-size: 24px; }
.web-login:hover { background: #4752c4; }
.web-login:active { transform: translateY(1px); }
.web-fine, .web-hint { margin: 0; color: var(--text-faint); font-size: 13px; }
.web-profile { border-top: 1px solid var(--border); padding-top: 16px; }
.web-pp { display: flex; flex-direction: column; gap: 14px; }
.web-pp-id { display: flex; align-items: center; gap: 14px; }
.web-pp-av { width: 64px; height: 64px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--surface-3); font-family: var(--font-display); font-size: 26px; color: var(--primary-soft); box-shadow: 0 0 0 2px var(--border-strong); }
.web-pp-av img { width: 100%; height: 100%; object-fit: cover; }
.web-pp h2 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 400; font-size: 22px; overflow-wrap: anywhere; }
.web-pp h3 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--primary-soft); }
.web-pp-sub { display: flex; flex-wrap: wrap; gap: 6px; }
.web-tag { padding: 2px 10px; border-radius: 999px; background: var(--surface-3); font-size: 12px; font-weight: 600; color: var(--text-muted); }
.web-pp-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.web-pp-stats span { display: flex; flex-direction: column; padding: 8px 10px; border-radius: var(--radius); background: var(--bg-deep); }
.web-pp-stats b { font-size: 16px; }
.web-pp-stats small, .web-pp-ach small { color: var(--text-faint); font-size: 12px; }
.web-pp-ach { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.web-pp-ach li { display: flex; flex-direction: column; padding: 8px 12px; border-radius: var(--radius); background: rgba(167, 139, 250, 0.08); }
@media (max-width: 480px) { .web-card { padding: 22px 18px; } }
