/* ═══════════════════════════════════════════════════
   MUZIK v2 — Mukiz-Inspired Design System
   Colorful, playful, rounded, bold
   ═══════════════════════════════════════════════════ */

:root {
  /* Harmonie color palette - Modern Neon & Dark Harmony */
  --bg-page: #0b0f19;
  --bg-page-gradient: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #0f172a 50%, #090d16 100%);
  --bg-card: rgba(30, 41, 59, 0.75);
  --bg-card-alt: rgba(15, 23, 42, 0.85);
  --bg-sidebar: #0f172a;
  --bg-header: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #d946ef 100%);
  --bg-header-dark: #1e1b4b;

  --primary: #8b5cf6;
  --primary-hover: #7c3aed;
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --secondary-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);

  --yellow: #f59e0b;
  --yellow-hover: #d97706;
  --blue-primary: #6366f1;
  --blue-light: #818cf8;
  --blue-dark: #3730a3;
  --purple: #a855f7;
  --pink: #ec4899;
  --green: #10b981;
  --red: #f43f5e;
  --orange: #f97316;
  --cyan: #06b6d4;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --text-white: #ffffff;

  --border-color: rgba(255, 255, 255, 0.12);
  --border-light: rgba(255, 255, 255, 0.06);

  --font-display: 'Nunito', 'Inter', sans-serif;
  --font-body: 'Inter', 'Nunito', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.55);

  --header-h: 64px;
  --sidebar-w: 230px;
}

/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-page-gradient);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════
   HEADER (STREAMLINED MUKIZ TOP STATUS BAR)
   ═══════════════════════════════════════ */
.app-header {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  height: var(--header-h);
  background: rgba(11, 15, 25, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 90;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-demo-reveal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 6px 16px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-demo-reveal:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.45);
}

.btn-demo-banner {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 12px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-demo-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.coins-badge-mukiz {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  cursor: pointer;
  transition: transform 0.15s;
}

.coins-badge-mukiz:hover {
  transform: scale(1.04);
}

.online-badge-mukiz {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
  backdrop-filter: blur(4px);
}

.online-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: onlinePulse 2s ease-in-out infinite;
}

@keyframes onlinePulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

.btn-icon-mukiz {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: transform 0.15s, background 0.15s;
}

.btn-icon-mukiz:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.35);
}

.profile-pill-mukiz {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid white;
  border-radius: var(--radius-full);
  padding: 4px 12px 4px 6px;
  color: white;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: transform 0.15s, background 0.15s;
}

.profile-pill-mukiz:hover {
  transform: scale(1.03);
  background: rgba(255, 255, 255, 0.35);
}

/* ═══════════════════════════════════════
   PERMANENT HARMONIE SIDEBAR
   ═══════════════════════════════════════ */
.mukiz-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: #0f172a;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  z-index: 100;
  box-shadow: 4px 0 25px rgba(0, 0, 0, 0.4);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  padding: 22px 20px 24px 20px;
  text-decoration: none;
}

.sidebar-logo-text {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 900;
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(168, 85, 247, 0.4));
  letter-spacing: -0.5px;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 14px;
  flex: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  color: #94a3b8;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.sidebar-link .sb-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: color 0.2s ease, transform 0.2s ease;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
}

.sidebar-link:hover .sb-icon {
  color: #a855f7;
  transform: translateX(2px);
}

.sidebar-link.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(236, 72, 153, 0.25) 100%);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.25);
  font-weight: 800;
}

.sidebar-link.active .sb-icon {
  color: #ec4899;
}

.sb-badge-count {
  margin-left: auto;
  background: #f43f5e;
  color: white;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-footer {
  padding: 18px 14px;
  display: flex;
  justify-content: center;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sb-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 2px solid #181c2e;
  background: #ffffff;
  box-shadow: 0 2px 0 #181c2e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #181c2e;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.sb-social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 0 #181c2e;
  background: #f0f4ff;
}

/* ═══════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════ */
.main-content {
  margin-top: var(--header-h);
  margin-left: var(--sidebar-w);
  padding: 24px;
  min-height: calc(100vh - var(--header-h));
  max-width: 1050px;
}

/* ─── Views ─── */
.view { display: none; animation: fadeSlide 0.35s ease; }
.view.active { display: block; }

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════
   CARDS
   ═══════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-color);
  padding: 20px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}

.card-section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

/* ═══════════════════════════════════════
   HERO CARD (Jouer entre amis)
   ═══════════════════════════════════════ */
.card-hero {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 24px;
  border-color: var(--blue-primary);
  border-width: 2px;
}

.hero-illustration {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #f72585, #7209b7, #4361ee);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-chars { font-size: 2.8rem; }

.hero-content { flex: 1; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.join-input-wrapper {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.join-input-wrapper input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.join-input-wrapper input:focus { border-color: var(--blue-primary); }

.btn-icon-only {
  width: 42px; height: 42px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-secondary);
}

.btn-icon-only:hover { border-color: var(--blue-primary); color: var(--blue-primary); }

.hero-divider {
  display: flex;
  align-items: center;
  margin: 12px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.hero-divider::before, .hero-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.hero-divider span { padding: 0 10px; }

.pseudo-row {
  margin-bottom: 10px;
}

.pseudo-row input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.pseudo-row input:focus { border-color: var(--blue-primary); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn:active { transform: scale(0.97); }

.btn-yellow {
  background: var(--yellow);
  color: var(--text-primary);
  border-color: #e6ce00;
}

.btn-yellow:hover { background: var(--yellow-hover); box-shadow: var(--shadow-md); }

.btn-outline {
  background: white;
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-outline:hover { border-color: var(--blue-primary); color: var(--blue-primary); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 14px;
}

.btn-ghost:hover { color: var(--blue-primary); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; border-radius: var(--radius-lg); }

/* ═══════════════════════════════════════
   LIVE GAMES
   ═══════════════════════════════════════ */
.section-header {
  margin: 20px 0 10px;
}

.section-header h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-dot { color: var(--red); animation: onlinePulse 1.5s infinite; font-size: 0.7rem; }

.live-games-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.live-game-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
}

.live-game-item .game-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.live-game-item .game-name { font-weight: 700; font-size: 0.95rem; }
.live-game-item .game-meta { font-size: 0.8rem; color: var(--text-muted); }

.live-game-item .btn { font-size: 0.8rem; padding: 6px 14px; }

.empty-state {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════
   GAME MODES
   ═══════════════════════════════════════ */
.game-modes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 8px;
}

.mode-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 14px;
}

.mode-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--blue-primary); }

.mode-card-illustration { font-size: 2.4rem; flex-shrink: 0; }

.mode-card-body h3 { font-family: var(--font-display); font-weight: 800; font-size: 1rem; margin-bottom: 4px; }
.mode-card-body p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.3; }

.mode-badge {
  position: absolute;
  top: 10px; right: 10px;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.badge-live { background: var(--red); color: white; animation: onlinePulse 1.5s infinite; }

/* ═══════════════════════════════════════
   ARCADE
   ═══════════════════════════════════════ */
.arcade-grid {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.arcade-card {
  flex: 1;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.arcade-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--blue-primary); }
.arcade-icon { font-size: 2rem; margin-bottom: 6px; }
.arcade-card span { font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; }

/* ═══════════════════════════════════════
   PLAYLISTS
   ═══════════════════════════════════════ */
.playlists-header { margin-bottom: 20px; }

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  margin-bottom: 14px;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: transparent;
}

.search-icon { font-size: 1.1rem; }

.filter-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.filter-tab {
  padding: 8px 18px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-full);
  background: var(--bg-card);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tab:hover { border-color: var(--blue-primary); }
.filter-tab.active { background: var(--blue-primary); color: white; border-color: var(--blue-primary); }

.category-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.category-tag {
  padding: 10px 20px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.category-tag:hover { border-color: var(--blue-primary); transform: translateY(-1px); }

.playlists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.playlist-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.playlist-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-primary); }

.playlist-card-emoji {
  font-size: 2.2rem;
  margin-bottom: 8px;
  display: block;
}

.playlist-card-color {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}

.playlist-card-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-primary);
}

/* ═══════════════════════════════════════
   LOBBY
   ═══════════════════════════════════════ */
.lobby-top-bar {
  margin-bottom: 16px;
}

.card-invite {
  background: var(--blue-light);
  border-color: var(--blue-primary);
}

.invite-header {
  text-align: center;
  margin-bottom: 16px;
}

.invite-header p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 12px; }

.invite-code-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.invite-code {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--blue-dark);
}

.qr-canvas {
  width: 80px;
  height: 80px;
  border: 2px solid var(--yellow);
  border-radius: var(--radius-sm);
  background: white;
}

.invite-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.invite-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.invite-action-btn:hover { background: rgba(255,255,255,0.9); }
.invite-action-btn span { font-size: 1.3rem; }
.invite-whatsapp { color: #25d366; }

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.setting-item label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.select-styled {
  width: 100%;
  padding: 9px 12px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a4a6a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.select-styled:focus { border-color: var(--blue-primary); }

.lobby-players-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }

.lobby-player-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-card-alt);
  border-radius: var(--radius-md);
  animation: playerIn 0.3s ease;
}

@keyframes playerIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.lobby-player-name { font-weight: 700; display: flex; align-items: center; gap: 8px; }

.host-badge {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--blue-primary);
  color: white;
  font-weight: 800;
  text-transform: uppercase;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--blue-primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  margin-left: 6px;
}

.waiting-host {
  text-align: center;
  padding: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.waiting-dot { color: var(--blue-primary); animation: onlinePulse 1.5s infinite; }

/* ═══════════════════════════════════════
   GAME VIEW
   ═══════════════════════════════════════ */
.game-top-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.round-indicator {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--blue-primary);
  flex-shrink: 0;
}

.round-current { font-size: 1.4rem; }

.timer-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.timer-track {
  flex: 1;
  height: 24px;
  background: var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 2px solid var(--border-color);
}

.timer-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-primary), var(--cyan));
  border-radius: var(--radius-full);
  width: 100%;
  transition: width 1s linear;
}

.timer-fill.warning { background: linear-gradient(90deg, var(--orange), var(--red)); }
.timer-fill.critical { background: var(--red); animation: timerPulse 0.5s infinite; }

@keyframes timerPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }

.timer-seconds {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  color: var(--text-primary);
  min-width: 28px;
  text-align: center;
}

.game-scoreboard {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.score-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
}

.score-chip-name { font-weight: 700; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-chip-value { font-family: var(--font-display); font-weight: 900; color: var(--blue-primary); }

/* Audio zone */
.game-audio-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.vinyl-wrapper { width: 180px; height: 180px; }

.vinyl-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #222 0%, #222 18%, #333 19%, #333 35%, #2a2a2a 36%, #2a2a2a 50%, #333 51%, #333 65%, #222 66%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  border: 3px solid var(--blue-primary);
}

.vinyl-disc.spinning { animation: spin 2.5s linear infinite; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.vinyl-cover-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--blue-primary);
}

.game-visualizer {
  width: 100%;
  height: 50px;
  border-radius: var(--radius-md);
}

/* Answer zone */
.game-answer-zone { margin-bottom: 16px; }

.answer-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.answer-field {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.answer-field:focus { border-color: var(--blue-primary); }
.answer-field:disabled { opacity: 0.5; }

.mic-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.mic-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--blue-primary);
  background: white;
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.mic-btn:hover { background: var(--blue-light); }
.mic-btn.listening { background: var(--red); border-color: var(--red); color: white; animation: micGlow 1s infinite; }

@keyframes micGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(230,57,70,0.4); } 50% { box-shadow: 0 0 0 10px rgba(230,57,70,0); } }

.speech-label { font-size: 0.85rem; color: var(--text-muted); }
.speech-preview-text { text-align: center; font-style: italic; color: var(--blue-primary); min-height: 20px; font-size: 0.9rem; margin-top: 6px; }

/* Feedback */
.game-feedback {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.5);
}

.game-feedback.hidden { display: none; }

.feedback-popup { text-align: center; animation: popIn 0.3s cubic-bezier(0.34,1.56,0.64,1); }

@keyframes popIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.fb-icon { font-size: 3.5rem; display: block; margin-bottom: 8px; }
.fb-msg { font-size: 1.2rem; font-weight: 700; color: white; max-width: 340px; }
.fb-pts { font-family: var(--font-display); font-size: 1.4rem; font-weight: 900; color: var(--yellow); margin-top: 6px; }

/* Round End */
.round-end-overlay {
  position: fixed; inset: 0; z-index: 190;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.6);
  padding: 20px;
}

.round-end-overlay.hidden { display: none; }

.round-end-card { max-width: 460px; width: 100%; animation: fadeSlide 0.4s ease; }
.round-end-card h3 { font-family: var(--font-display); font-weight: 900; text-align: center; margin-bottom: 14px; }

.correct-answer-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(6,214,160,0.1);
  border: 2px solid rgba(6,214,160,0.3);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}

.correct-thumb { width: 50px; height: 50px; border-radius: var(--radius-sm); object-fit: cover; }
.correct-artist-name { font-weight: 800; }
.correct-track-name { font-size: 0.9rem; color: var(--text-secondary); }

.round-results { list-style: none; display: flex; flex-direction: column; gap: 5px; }

.rr-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-alt);
}

.rr-item.correct { background: rgba(6,214,160,0.08); border-left: 3px solid var(--green); }
.rr-item.wrong { border-left: 3px solid var(--border-light); }

.rr-name { font-weight: 700; font-size: 0.9rem; }
.rr-pts { font-family: var(--font-display); font-weight: 900; color: var(--blue-primary); }
.rr-total { font-size: 0.75rem; color: var(--text-muted); margin-left: 6px; }

/* ═══════════════════════════════════════
   GAME OVER
   ═══════════════════════════════════════ */
.confetti-layer {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  width: 100%; height: 100%;
}

.gameover-content {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.gameover-heading {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--blue-dark);
  margin-bottom: 20px;
}

.winner-highlight {
  border-color: var(--yellow) !important;
  background: linear-gradient(135deg, #fff9e6, white) !important;
}

.winner-crown { font-size: 2.5rem; animation: crownBob 1s ease-in-out infinite; }

@keyframes crownBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.winner-big-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; margin: 6px 0 2px; }
.winner-big-score { font-size: 1.1rem; color: var(--orange); font-weight: 700; }

.rankings-list { list-style: none; display: flex; flex-direction: column; gap: 8px; text-align: left; }

.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-card-alt);
  border-radius: var(--radius-md);
}

.rank-pos { font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; width: 32px; text-align: center; }
.rank-pos.gold { color: #fbbf24; }
.rank-pos.silver { color: #94a3b8; }
.rank-pos.bronze { color: #d97706; }

.rank-name { flex: 1; font-weight: 700; }
.rank-score { font-family: var(--font-display); font-weight: 900; color: var(--blue-primary); }

.gameover-btns { margin-top: 20px; display: flex; gap: 10px; justify-content: center; }

/* ═══════════════════════════════════════
   OVERLAYS
   ═══════════════════════════════════════ */
.overlay-fullscreen {
  position: fixed; inset: 0; z-index: 300;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.8);
}

.overlay-fullscreen.hidden { display: none; }

.countdown-big {
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 900;
  color: var(--yellow);
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
  animation: countPop 1s ease-out;
}

@keyframes countPop {
  0% { transform: scale(2.5); opacity: 0; }
  40% { transform: scale(0.9); opacity: 1; }
  60% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.loader-spinner {
  width: 44px; height: 44px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-bottom: 14px;
}

.loader-text { color: rgba(255,255,255,0.7); font-size: 0.95rem; }

/* ═══════════════════════════════════════
   TOASTS
   ═══════════════════════════════════════ */
.toast-container {
  position: fixed;
  top: calc(var(--header-h) + 10px);
  right: 20px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  max-width: 320px;
  animation: toastIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.success { border-color: var(--green); }
.toast.error { border-color: var(--red); }
.toast.info { border-color: var(--blue-primary); }

.toast.removing { animation: toastOut 0.3s ease forwards; }

@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; padding: 16px; }
  .header-nav { display: none; }
  .card-hero { flex-direction: column; text-align: center; }
  .hero-illustration { width: 90px; height: 90px; margin: 0 auto; }
  .hero-chars { font-size: 2rem; }
  .game-modes-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .playlists-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .invite-actions { flex-wrap: wrap; }
  .countdown-big { font-size: 5rem; }
}

/* ═══════════════════════════════════════
   HEADER ENHANCEMENTS (MUKIZ STYLE)
   ═══════════════════════════════════════ */
.coins-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--yellow);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  cursor: default;
  transition: transform 0.2s ease;
}

.coins-badge:hover {
  transform: scale(1.05);
}

.btn-icon-round {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.btn-icon-round:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

/* Volume popup */
.volume-widget-wrapper {
  position: relative;
}

.volume-popup {
  position: absolute;
  top: 48px;
  right: -20px;
  background: white;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border-light);
  z-index: 1000;
  min-width: 180px;
  animation: popIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.volume-popup-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vol-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vol-range {
  width: 100%;
  accent-color: var(--blue-primary);
  cursor: pointer;
}

.vol-val {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--blue-primary);
  text-align: right;
}

/* Profile pill */
.profile-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 4px 12px 4px 6px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-pill:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.profile-avatar {
  font-size: 1.3rem;
  line-height: 1;
}

.profile-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--text-primary);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ═══════════════════════════════════════
   DYNAMIC HINTS & TIMER URGENCY
   ═══════════════════════════════════════ */
.hint-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #3a0ca3, #7209b7);
  color: var(--yellow);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  margin: 12px auto;
  max-width: 480px;
  box-shadow: 0 4px 20px rgba(114, 9, 183, 0.4);
  border: 2px solid rgba(255, 229, 0, 0.5);
  animation: hintBounceIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes hintBounceIn {
  from { opacity: 0; transform: scale(0.8) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.hint-icon {
  font-size: 1.3rem;
  animation: pulseIcon 1s infinite alternate;
}

@keyframes pulseIcon {
  from { transform: scale(1); }
  to { transform: scale(1.25); }
}

.hint-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* Mystery center question mark inside vinyl */
.vinyl-mystery-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe500 0%, #ff6b35 100%);
  color: #1a1a2e;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(255, 229, 0, 0.6);
  z-index: 5;
  animation: pulseGlow 1.5s infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: translate(-50%, -50%) scale(0.95); box-shadow: 0 0 15px rgba(255, 229, 0, 0.4); }
  100% { transform: translate(-50%, -50%) scale(1.05); box-shadow: 0 0 35px rgba(255, 229, 0, 0.8); }
}

/* Urgent timer states */
.timer-fill.urgent {
  background: #e63946 !important;
  animation: flashUrgent 0.6s infinite alternate;
}

.timer-seconds.urgent {
  color: #e63946 !important;
  animation: pulseTimer 0.6s infinite alternate;
}

@keyframes flashUrgent {
  from { opacity: 0.7; }
  to { opacity: 1; filter: drop-shadow(0 0 8px #e63946); }
}

@keyframes pulseTimer {
  from { transform: scale(1); }
  to { transform: scale(1.15); }
}

/* ═══════════════════════════════════════
   MODALS (AUTH & SETTINGS)
   ═══════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  position: relative;
  background: white;
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border-light);
  animation: modalCardPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalCardPop {
  from { transform: scale(0.9) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--bg-card-alt);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #fee2e2;
  color: var(--red);
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-brand-icon {
  font-size: 2.8rem;
  margin-bottom: 8px;
}

.modal-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* OAuth Buttons */
.oauth-buttons-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.oauth-svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-google {
  background: white;
  color: #3c4043;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.btn-google:hover {
  background: #f8f9fa;
  border-color: #c2c8d0;
  transform: translateY(-2px);
}

.btn-apple {
  background: #000000;
  color: white;
  border-color: #000000;
}
.btn-apple:hover {
  background: #1c1c1e;
  transform: translateY(-2px);
}

.btn-facebook {
  background: #1877f2;
  color: white;
  border-color: #1877f2;
}
.btn-facebook:hover {
  background: #166fe5;
  transform: translateY(-2px);
}

.modal-divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.modal-divider::before, .modal-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}
.modal-divider span {
  padding: 0 12px;
}

/* Settings Modal Elements */
.modal-settings-card {
  max-width: 500px;
}

.settings-sections {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.settings-sec {
  background: var(--bg-card-alt);
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.settings-sec-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--blue-dark);
  margin-bottom: 14px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 16px;
}

.settings-row label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  max-width: 200px;
}

.styled-range {
  width: 100%;
  accent-color: var(--blue-primary);
  cursor: pointer;
}

.slider-val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--blue-primary);
  min-width: 38px;
  text-align: right;
}

.toggle-row {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
}

.row-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.row-desc {
  display: block;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

/* Switch styling */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider.round {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 34px;
}

.slider.round:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider.round {
  background-color: var(--green);
}

input:checked + .slider.round:before {
  transform: translateX(20px);
}

/* Profile in Settings */
.profile-settings-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.profile-big-avatar {
  font-size: 2.4rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
}

.profile-settings-info {
  flex: 1;
}

.settings-name-field {
  width: 100%;
  padding: 8px 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
}

.settings-name-field:focus {
  border-color: var(--blue-primary);
}

.auth-provider-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 4px;
}

.avatar-picker-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.avatar-picker-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.avatar-choices {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
}

.avatar-choice-btn {
  font-size: 1.4rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.avatar-choice-btn:hover, .avatar-choice-btn.active {
  border-color: var(--blue-primary);
  transform: scale(1.15);
}

.settings-footer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

/* ═══════════════════════════════════════
   SPOTIFY CONNECT CARD & INPUT
   ═══════════════════════════════════════ */
.card-spotify-connect {
  background: linear-gradient(135deg, #121212 0%, #182c1e 100%);
  border: 2px solid #1DB954;
  border-radius: var(--radius-xl);
  padding: 24px;
  color: white;
  box-shadow: 0 8px 30px rgba(29, 185, 84, 0.2);
  margin-bottom: 24px;
}

.spotify-connect-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.spotify-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(29, 185, 84, 0.15);
  border: 2px solid #1DB954;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spotify-connect-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  color: #1DB954;
  margin-bottom: 4px;
}

.spotify-connect-subtitle {
  font-size: 0.88rem;
  color: #b3b3b3;
}

.spotify-input-row {
  display: flex;
  gap: 10px;
}

.spotify-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-full);
  border: 2px solid #333333;
  background: #242424;
  color: white;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.spotify-input:focus {
  border-color: #1DB954;
  box-shadow: 0 0 12px rgba(29, 185, 84, 0.3);
}

.spotify-input::placeholder {
  color: #777777;
}

.btn-spotify {
  background: #1DB954;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(29, 185, 84, 0.4);
  transition: all 0.2s ease;
}

.btn-spotify:hover {
  background: #1ed760;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 185, 84, 0.5);
}

/* ═══════════════════════════════════════
   MUKIZ PLAYLIST CARDS GRID
   ═══════════════════════════════════════ */
.playlists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 14px;
}

/* ─── Signature Mukiz Card Design ─── */
.playlist-card-mukiz {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  border: 2px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  transition: all 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
}

.playlist-card-mukiz:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(67, 97, 238, 0.2);
  border-color: var(--blue-primary);
}

/* Top Dark Title Bar (Mukiz Signature) */
.card-mukiz-header {
  background: #1e293b;
  color: white;
  padding: 8px 12px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-card-cover {
  position: relative;
  height: 155px;
  overflow: hidden;
  background: #0f172a;
}

.playlist-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.playlist-card-mukiz:hover .playlist-cover-img {
  transform: scale(1.08);
}

.playlist-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 60%);
}

/* Golden Crown Badge at bottom-left corner */
.mukiz-crown-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid #fbbf24;
  border-radius: 8px;
  padding: 2px 6px;
  font-size: 0.75rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  z-index: 2;
}

.playlist-count-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--yellow);
  color: #1a1a2e;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  z-index: 2;
}

.playlist-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.playlist-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.35;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 💿 Mini Song Covers Stack ("la cover du son") */
.track-covers-stack {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  gap: 2px;
}

.mini-track-cover {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  margin-right: -10px;
  transition: transform 0.2s ease, z-index 0.2s;
  background: #cbd5e1;
}

.mini-track-cover:hover {
  transform: scale(1.2) translateY(-2px);
  z-index: 5;
}

.track-covers-label {
  margin-left: 16px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
}

.playlist-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
}

.playlist-diff-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.playlist-diff-badge.facile { background: #d1fae5; color: #065f46; }
.playlist-diff-badge.moyen { background: #fef3c7; color: #92400e; }
.playlist-diff-badge.expert { background: #fee2e2; color: #991b1b; }

.btn-play-card {
  background: var(--yellow);
  color: var(--text-primary);
  border: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(255, 209, 102, 0.4);
}

.btn-play-card:hover {
  background: var(--yellow-hover);
  transform: scale(1.05);
}

/* ─── Mukiz Custom Playlists Card ─── */
.card-custom-playlists-mukiz {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border: 2px solid #86efac;
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.08);
}

.custom-pl-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.custom-pl-icon {
  font-size: 2rem;
  background: #dcfce7;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
}

.custom-pl-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  color: #0f172a;
}

.custom-pl-subtitle {
  font-size: 0.88rem;
  color: #475569;
}

.btn-manage-pl {
  width: 100%;
  font-size: 1rem;
  padding: 12px;
  border-radius: 14px;
  font-weight: 800;
  margin-bottom: 14px;
}

.divider-or {
  display: flex;
  align-items: center;
  text-align: center;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 700;
  margin: 12px 0;
}

.divider-or::before, .divider-or::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #cbd5e1;
}

.divider-or span {
  padding: 0 12px;
  text-transform: lowercase;
}

.custom-pl-input-row {
  display: flex;
  gap: 10px;
}

.custom-pl-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  background: white;
  transition: border-color 0.2s;
}

.custom-pl-input:focus {
  border-color: #10b981;
}

.btn-open-custom {
  background: #0f172a;
  color: white;
  border: none;
  font-family: var(--font-display);
  font-weight: 800;
  padding: 0 22px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-open-custom:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════
   LOBBY SELECTED PLAYLIST SHOWCASE
   ═══════════════════════════════════════ */
.lobby-selected-playlist {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  border: 2px solid #a8c0ff;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.08);
}

.lobby-playlist-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lobby-cover-wrapper {
  position: relative;
  flex-shrink: 0;
}

.lobby-playlist-thumb {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  border: 2px solid white;
}

.lobby-playlist-meta {
  display: flex;
  flex-direction: column;
}

.lobby-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.lobby-playlist-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--blue-primary);
  text-transform: uppercase;
}

.lobby-playlist-diff {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: #d1fae5;
  color: #065f46;
}

.lobby-playlist-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.lobby-playlist-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.lobby-track-covers-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lobby-covers-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
}

.lobby-track-covers-stack {
  display: flex;
  align-items: center;
}

/* ═══════════════════════════════════════
   GAME VIEW: CHOSEN PLAYLIST & HISTORY
   ═══════════════════════════════════════ */
.game-chosen-playlist-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 12px 4px 4px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1.5px solid #e2e8f0;
}

.chosen-playlist-thumb {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.chosen-playlist-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.round-pills-container {
  display: flex;
  gap: 6px;
  align-items: center;
}

.round-pill {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: white;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  color: #64748b;
  transition: all 0.2s ease;
}

.round-pill.active {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(67, 97, 238, 0.35);
}

.round-pill.past {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #334155;
}

/* Game 2-Column Layout (History + Center Arena) */
.game-layout-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 900px) {
  .game-layout-grid {
    grid-template-columns: 1fr;
  }
  .game-history-sidebar {
    display: none;
  }
}

.game-history-sidebar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.history-sidebar-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-align: center;
}

.history-mascot-box {
  text-align: center;
  padding: 20px 10px;
}

.history-mascot {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.history-empty-text {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.3;
}

.history-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: white;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  animation: slideInLeft 0.3s ease;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-15px); }
  to { opacity: 1; transform: translateX(0); }
}

.history-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.history-meta {
  flex: 1;
  min-width: 0;
}

.history-track {
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-artist {
  font-size: 0.7rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-status {
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════
   MODAL: PLAYLIST DETAILS & SPOTIFY
   ═══════════════════════════════════════ */
.modal-playlist-card {
  max-width: 520px;
}

.playlist-modal-header {
  display: flex;
  gap: 18px;
  margin-bottom: 16px;
}

.modal-cover-wrapper {
  position: relative;
  flex-shrink: 0;
}

.modal-pl-img {
  width: 140px;
  height: 140px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.modal-crown {
  bottom: 8px;
  left: 8px;
  font-size: 0.9rem;
}

.modal-pl-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pl-stat-pill {
  display: inline-block;
  background: var(--bg-card-alt);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-right: 6px;
  margin-top: 8px;
}

.modal-pl-preview-section {
  background: #f8fafc;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 18px;
  border: 1px solid #e2e8f0;
}

.modal-preview-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.modal-preview-covers-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.modal-mini-cover {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* ─── Spotify Connect Modal ─── */
.modal-spotify-card {
  max-width: 560px;
  border-top: 6px solid #1DB954;
}

.spotify-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.spotify-logo-box {
  background: #121212;
  padding: 10px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spotify-section {
  margin-bottom: 18px;
}

.spotify-input-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #334155;
  margin-bottom: 6px;
}

.spotify-input-group {
  display: flex;
  gap: 8px;
}

.spotify-modal-field {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
}

.spotify-modal-field:focus {
  border-color: #1DB954;
}

.spotify-presets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.spotify-preset-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 10px;
  transition: all 0.2s ease;
}

.spotify-preset-card:hover {
  border-color: #1DB954;
  background: #f0fdf4;
}

.preset-thumb {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
}

.preset-meta {
  flex: 1;
  min-width: 0;
}

.preset-meta h5 {
  font-size: 0.8rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preset-meta span {
  font-size: 0.68rem;
  color: #64748b;
}

.btn-preset-add {
  background: #1DB954;
  color: white;
  border: none;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-preset-add:hover {
  opacity: 0.9;
}

.spotify-saved-list {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  padding: 12px;
  max-height: 160px;
  overflow-y: auto;
}

.spotify-no-saved {
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: center;
  margin: 8px 0;
}

.category-tag.active {
  background: var(--blue-primary);
  color: white;
  border-color: var(--blue-primary);
}

/* ═══════════════════════════════════════════════════
   CUSTOM PLAYLIST ACTIONS & PURPLE BUTTON
   ═══════════════════════════════════════════════════ */
.custom-pl-actions-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.btn-purple {
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
  color: white !important;
  font-weight: 800;
  border: none;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.5);
}

/* ═══════════════════════════════════════════════════
   GAME ARENA REAL ROTATING VINYL
   ═══════════════════════════════════════════════════ */
.vinyl-disc-real {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-real-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.6));
}

.spinning {
  animation: spinVinyl 3s linear infinite;
}

@keyframes spinVinyl {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════
   MUKIZ OFFICIAL REVEAL COMPOSITION (USER MOCKUP)
   Vinyl in back + Portrait Artist Card + Blue Pill
   ═══════════════════════════════════════════════════ */
.round-end-card-mukiz {
  background: #111827;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 24px;
  max-width: 640px;
  width: 95%;
  color: white;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 21, 255, 0.25);
  animation: popIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.round-end-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.round-end-tag {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #FBBF24;
  background: rgba(251, 191, 36, 0.15);
  padding: 4px 10px;
  border-radius: 20px;
}

.round-end-timer-badge {
  font-size: 0.85rem;
  color: #94a3b8;
}

.round-end-timer-badge b {
  color: #38bdf8;
}

/* 🎵 Center Stage : Vinyl + Portrait Card + Blue Pill */
.mukiz-reveal-hero {
  position: relative;
  width: 100%;
  height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 16px 0;
  overflow: visible;
}

.reveal-vinyl-container {
  position: absolute;
  width: 270px;
  height: 270px;
  left: calc(50% - 190px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}

.reveal-vinyl-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.8));
}

.reveal-artist-portrait-card {
  position: relative;
  z-index: 2;
  width: 180px;
  height: 250px;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85), 0 0 1px rgba(255, 255, 255, 0.3);
  transform: rotate(-1deg);
  margin-left: -35px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.reveal-artist-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reveal-blue-pill {
  position: absolute;
  z-index: 3;
  right: calc(50% - 240px);
  bottom: 30px;
  background: #0015FF;
  border-radius: 14px;
  padding: 16px 30px;
  color: white;
  box-shadow: 0 14px 30px rgba(0, 21, 255, 0.55), 0 0 25px rgba(0, 21, 255, 0.35);
  transform: rotate(2deg);
  animation: slideInPill 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  min-width: 190px;
}

@keyframes slideInPill {
  0% { transform: translate(30px, 10px) scale(0.9) rotate(5deg); opacity: 0; }
  100% { transform: rotate(2deg); opacity: 1; }
}

.reveal-pill-artist {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.2;
}

.reveal-pill-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  margin-top: 3px;
  line-height: 1.2;
}

.reveal-meta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.re-feat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(236, 72, 153, 0.18);
  border: 1px solid rgba(236, 72, 153, 0.4);
  color: #f472b6;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  width: fit-content;
}

.re-player-status-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.re-status-chip {
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.re-status-chip.chip-streak {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.25), rgba(239, 68, 68, 0.25));
  border: 1px solid #f97316;
  color: #fb923c;
  animation: pulseGlow 1.5s infinite alternate;
}

.re-status-chip.chip-feat {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(236, 72, 153, 0.25));
  border: 1px solid #c084fc;
  color: #e879f9;
}

.re-status-chip.chip-missed {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.re-leaderboard-section {
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

.re-leaderboard-title {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.re-round-results-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
}

.re-player-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: 10px;
}

.re-player-name {
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.re-player-streak-badge {
  font-size: 0.75rem;
  background: rgba(249, 115, 22, 0.2);
  color: #f97316;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 900;
}

.re-player-points {
  font-weight: 900;
  color: #FBBF24;
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════
   MODAL: CRÉER MA PLAYLIST PERSONNALISÉE
   ═══════════════════════════════════════════════════ */
.modal-create-pl-card {
  max-width: 680px;
  width: 95%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 22px;
}

.create-pl-meta-form {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.create-pl-row {
  display: flex;
  gap: 12px;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }
.text-center { text-align: center; }

.create-pl-field label, .create-pl-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  color: #475569;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.styled-input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  background: #f8fafc;
  transition: border-color 0.2s, background 0.2s;
}

.styled-input:focus {
  border-color: var(--blue-primary);
  background: white;
}

.create-pl-search-zone {
  margin-bottom: 14px;
}

.search-input-wrapper {
  position: relative;
}

.search-mini-spinner {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0,0,0,0.1);
  border-top-color: var(--blue-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.search-results-list {
  margin-top: 8px;
  max-height: 180px;
  overflow-y: auto;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.search-track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid #e2e8f0;
  transition: background 0.15s;
}

.search-track-item:last-child {
  border-bottom: none;
}

.search-track-item:hover {
  background: #f1f5f9;
}

.search-track-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.search-track-thumb {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
}

.search-track-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.search-track-title {
  font-weight: 800;
  font-size: 0.9rem;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-track-artist {
  font-size: 0.8rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-track-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-track-preview {
  background: #e2e8f0;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.btn-track-preview:hover {
  background: #cbd5e1;
}

.btn-track-add {
  background: var(--blue-primary);
  color: white;
  border: none;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-track-add:hover {
  background: var(--blue-dark);
}

.btn-track-add.added {
  background: #10b981;
  pointer-events: none;
}

/* Selected Zone */
.create-pl-selected-zone {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 130px;
  max-height: 220px;
  margin-bottom: 14px;
}

.selected-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.selected-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #334155;
}

.btn-text-danger {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-text-danger:hover {
  text-decoration: underline;
}

.selected-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 20px;
  color: #94a3b8;
  font-size: 0.85rem;
  gap: 6px;
}

.selected-empty-state span {
  font-size: 1.8rem;
}

.selected-tracks-list {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.selected-track-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f5f9;
  padding: 6px 10px;
  border-radius: 8px;
}

.selected-track-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.selected-track-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: #94a3b8;
  width: 18px;
}

.selected-track-thumb {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
}

.selected-track-meta {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-track-remove {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 2px 6px;
  transition: color 0.15s;
}

.btn-track-remove:hover {
  color: #ef4444;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 5px rgba(249, 115, 22, 0.4); }
  100% { box-shadow: 0 0 15px rgba(249, 115, 22, 0.8); }
}

/* ═══════════════════════════════════════
   ROUND END REVEAL CONTROLS
   ═══════════════════════════════════════ */
.re-header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.re-control-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: white;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.re-control-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}

.re-control-btn.btn-close-cross {
  font-size: 1.1rem;
  padding: 2px 8px;
  line-height: 1;
}

/* ═══════════════════════════════════════
   QUESTS (DÉFIS DU JOUR) MUKIZ STYLES
   ═══════════════════════════════════════ */
.quests-hero-character {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.quests-mascot-box {
  width: 130px;
  height: 110px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #3a86ff, #6ea8fe);
  border: 3px solid #181c2e;
  box-shadow: 0 6px 0 #181c2e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.quests-mascot-emoji {
  font-size: 3rem;
  animation: bounceSlow 2s infinite ease-in-out;
}

.quests-mascot-calendar {
  position: absolute;
  top: -12px;
  right: -10px;
  font-size: 1.8rem;
  background: white;
  border-radius: 8px;
  border: 2px solid #181c2e;
  padding: 2px 4px;
  box-shadow: 0 2px 0 #181c2e;
}

@keyframes bounceSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.quests-container-card {
  margin-bottom: 24px;
}

.quests-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.quests-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #181c2e;
}

.quests-timer {
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
}

.quests-streak-card {
  background: linear-gradient(135deg, #e0e7ff, #ede9fe);
  border: 2px solid #181c2e;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
}

.streak-banner-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 14px;
  text-align: center;
}

.streak-progress-stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  position: relative;
  padding: 0 10px;
}

.streak-progress-stepper::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  height: 4px;
  background: #cbd5e1;
  z-index: 1;
}

.streak-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 2;
}

.streak-step .step-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #181c2e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.streak-step.completed .step-icon {
  background: #ffe600;
  border-color: #181c2e;
}

.streak-step .step-coins {
  font-size: 0.8rem;
  font-weight: 800;
  color: #475569;
}

.streak-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 10px;
}

.streak-current-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #334155;
}

.btn-claim {
  background: #ffe600;
  color: #181c2e;
  border: 2px solid #181c2e;
  font-weight: 800;
  box-shadow: 0 2px 0 #181c2e;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.quest-item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 10px;
  transition: border-color 0.2s;
}

.quest-item-row:hover {
  border-color: #3a86ff;
}

.quest-item-icon {
  font-size: 1.8rem;
}

.quest-item-content {
  flex: 1;
}

.quest-item-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: #181c2e;
  margin-bottom: 6px;
}

.quest-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 4px;
}

.quest-bar-fill {
  height: 100%;
  background: #3a86ff;
  border-radius: 999px;
}

.quest-ratio {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
}

.quest-reward-pill {
  background: #fef08a;
  border: 2px solid #181c2e;
  color: #181c2e;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.quest-nav-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #181c2e;
  background: white;
  color: #181c2e;
  font-size: 1.3rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 0 #181c2e;
  transition: transform 0.15s;
}

.quest-nav-arrow:hover {
  transform: translateX(2px);
}

/* ═══════════════════════════════════════
   SHOP (BOUTIQUE) MUKIZ STYLES
   ═══════════════════════════════════════ */
.shop-hero-card {
  text-align: center;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #f0fdf4, #dbeafe);
}

.shop-hero-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: #181c2e;
  margin-bottom: 6px;
}

.shop-hero-card p {
  color: #475569;
  font-weight: 600;
}

.shop-grid-mukiz {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.shop-product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  gap: 8px;
  border-radius: var(--radius-lg);
  transition: transform 0.2s;
}

.shop-product-card:hover {
  transform: translateY(-4px);
}

.shop-item-emoji {
  font-size: 2.8rem;
  margin-bottom: 4px;
}

.shop-product-card h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: #181c2e;
}

.shop-desc {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 10px;
}

/* ═══════════════════════════════════════
   MUKIZ PREMIUM BANNER & MODAL
   ═══════════════════════════════════════ */
.mukiz-premium-banner {
  background: linear-gradient(135deg, #1e1b4b, #312e81, #1e293b);
  border: 2px solid #ffe600;
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 4px 20px rgba(254, 240, 138, 0.15);
  margin-bottom: 20px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.mukiz-premium-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(254, 240, 138, 0.25);
}

.premium-banner-badge {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: white;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.premium-banner-badge span {
  color: #ffe600;
  font-style: italic;
}

.premium-banner-text {
  color: #cbd5e1;
  font-size: 0.92rem;
  font-weight: 600;
  max-width: 600px;
}

.btn-premium-cta {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  padding: 10px 22px;
  flex-shrink: 0;
}

.modal-premium-card {
  max-width: 600px;
  background: linear-gradient(135deg, #ffffff, #fdf4ff);
}

.premium-modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.premium-crown-big {
  font-size: 3.5rem;
  display: block;
  animation: pulseGlow 1.5s infinite alternate;
}

.text-gold {
  color: #d97706;
  font-style: italic;
}

.premium-perks-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.premium-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: white;
  border: 2px solid #f1f5f9;
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.premium-perk-item .perk-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.premium-perk-item h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: #1e1b4b;
  margin-bottom: 2px;
}

.premium-perk-item p {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
}

/* ═══════════════════════════════════════
   MODE QCM (4 CHOIX INTERACTIFS)
   ═══════════════════════════════════════ */
.answer-mode-toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.mode-tab {
  background: rgba(255, 255, 255, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: white;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s;
}

.mode-tab.active {
  background: #ffe600;
  color: #181c2e;
  border-color: #181c2e;
  box-shadow: 0 2px 0 #181c2e;
}

.qcm-choices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 6px;
}

.qcm-choice-btn {
  background: white;
  border: 2px solid #181c2e;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 0 #181c2e;
  padding: 14px 16px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: #181c2e;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
}

.qcm-choice-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #181c2e;
  background: #f0fdf4;
}

.qcm-choice-btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #181c2e;
}

.qcm-choice-btn.selected {
  background: #3a86ff;
  color: white;
  border-color: #181c2e;
}

.qcm-choice-btn.correct {
  background: #10b981 !important;
  color: white !important;
  border-color: #065f46 !important;
  animation: pulseGlow 0.4s;
}

.qcm-choice-btn.wrong {
  background: #ef4444 !important;
  color: white !important;
  border-color: #991b1b !important;
  opacity: 0.7;
}

/* ═══════════════════════════════════════
   MODE SURVIE (❤️ VIES & MODAL)
   ═══════════════════════════════════════ */
.arcade-hot-badge {
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-top: 4px;
}

.survival-lives-badge {
  display: flex;
  align-items: center;
  background: rgba(239, 68, 68, 0.2);
  border: 2px solid #ef4444;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 1.1rem;
  letter-spacing: 2px;
  animation: pulseGlow 1s infinite alternate;
}

.modal-survival-card {
  text-align: center;
  max-width: 480px;
}

.survival-skull-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 8px;
  animation: bounceSlow 1.5s infinite;
}

.survival-stats-box {
  display: flex;
  justify-content: space-around;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 20px 0;
}

.survival-stat {
  display: flex;
  flex-direction: column;
}

.survival-stat .stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: #ef4444;
}

.survival-stat .stat-lbl {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
}

/* ═══════════════════════════════════════
   BANDIZ & RANKIZ MODALS
   ═══════════════════════════════════════ */
.modal-bandiz-card {
  text-align: center;
  max-width: 520px;
}

.bandiz-slot-icon {
  font-size: 3.5rem;
}

.bandiz-machine-box {
  display: flex;
  gap: 12px;
  margin: 24px 0;
}

.bandiz-reel {
  flex: 1;
  background: #1e1b4b;
  border: 3px solid #ffe600;
  border-radius: var(--radius-md);
  padding: 16px 8px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6);
}

.reel-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  color: #ffe600;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.reel-val {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-rankiz-card {
  max-width: 580px;
}

.rankiz-header {
  text-align: center;
  margin-bottom: 20px;
}

.rankiz-trophy-icon {
  font-size: 3rem;
}

.rankiz-podium-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}

.podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  border: 2px solid #181c2e;
  border-radius: var(--radius-md);
  padding: 12px;
  width: 140px;
  box-shadow: 0 4px 0 #181c2e;
}

.podium-1 {
  background: #fef08a;
  transform: translateY(-10px);
}

.podium-avatar {
  font-size: 2.2rem;
  margin: 4px 0;
}

.podium-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: #181c2e;
}

.podium-score {
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
}

.rankiz-list-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rankiz-player-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 700;
}

.rankiz-player-row.current-user {
  background: #eff6ff;
  border-color: #3b82f6;
}

.r-badge {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 800;
  color: #2563eb;
}

.r-score {
  font-weight: 800;
  color: #1e293b;
}

/* ─── Utils ─── */
.hidden { display: none !important; }
.shake { animation: shake 0.5s ease; }

@keyframes shake {
  0%,100% { transform: translateX(0); }
  10%,30%,50%,70%,90% { transform: translateX(-4px); }
  20%,40%,60%,80% { transform: translateX(4px); }
}

/* ═══════════════════════════════════════
   ÉMOTES FLOTTANTES, JOKERS, CHAT & MVP
   ═══════════════════════════════════════ */

/* 1. Émotes Flottantes Particle Animation */
@keyframes floatUpReaction {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(0) scale(0.6) rotate(0deg);
  }
  15% {
    opacity: 1;
    transform: translateX(-50%) translateY(-30px) scale(1.3) rotate(-10deg);
  }
  80% {
    opacity: 1;
    transform: translateX(-50%) translateY(-220px) scale(1.1) rotate(15deg);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-280px) scale(0.8) rotate(25deg);
  }
}

.floating-emoji-particle .emoji-symbol {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.floating-emoji-particle .emoji-sender {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 900;
  color: white;
  background: rgba(15, 23, 42, 0.85);
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  margin-top: 2px;
}

/* 2. Barre d'Émotes Réactions */
.game-reactions-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
  flex-wrap: wrap;
}

.reaction-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reaction-btn:hover {
  transform: scale(1.25) translateY(-4px);
  background: white;
  box-shadow: 0 8px 20px rgba(67, 97, 238, 0.25);
  border-color: #3a86ff;
}

.reaction-btn:active {
  transform: scale(0.95);
}

/* 3. Barre de Jokers & Power-Ups */
.game-jokers-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 12px 0;
}

.joker-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  border: 2px solid #cbd5e1;
  border-radius: 14px;
  padding: 8px 14px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  transition: all 0.2s ease;
}

.joker-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: #fbbf24;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.25);
  background: #fffbeb;
}

.joker-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.8);
}

.joker-icon {
  font-size: 1.2rem;
}

.joker-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  color: #1e293b;
}

.joker-cost {
  font-size: 0.72rem;
  font-weight: 900;
  color: #d97706;
  background: #fef3c7;
  padding: 2px 6px;
  border-radius: 8px;
}

/* 4. Sélecteur de Visualiseur Canvas */
.visualizer-header-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 6px;
}

.btn-visu-toggle {
  background: rgba(15, 23, 42, 0.75);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 4px 10px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all 0.2s;
}

.btn-visu-toggle:hover {
  background: rgba(67, 97, 238, 0.9);
  border-color: white;
}

/* 5. Chat Drawer Sidebar */
.game-chat-drawer {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  height: 380px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.chat-drawer-header h4 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.92rem;
  color: #1e293b;
  margin-bottom: 10px;
}

.chat-messages-container {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.chat-msg-row {
  font-size: 0.82rem;
  line-height: 1.3;
  word-break: break-word;
}

.chat-msg-author {
  font-weight: 800;
  color: #3b82f6;
  margin-right: 4px;
}

.chat-msg-text {
  color: #1e293b;
}

.chat-msg-time {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-left: 4px;
}

.chat-system-msg {
  font-size: 0.78rem;
  color: #64748b;
  font-style: italic;
  text-align: center;
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 8px;
}

.chat-input-row {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.chat-input-row input {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.82rem;
  outline: none;
}

.btn-chat-send {
  background: var(--blue-primary);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0 12px;
  font-weight: 800;
  cursor: pointer;
}

/* 6. MVP Award Card Showcase */
.mvp-card-showcase {
  background: linear-gradient(135deg, #fffbe6 0%, #fef3c7 100%);
  border: 2px solid #f59e0b;
  border-radius: 18px;
  padding: 16px;
  margin-top: 14px;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.15);
}

.mvp-badge-header {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.85rem;
  color: #b45309;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 10px;
}

.mvp-body {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mvp-avatar {
  font-size: 2.8rem;
  background: white;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #f59e0b;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.mvp-meta h4 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  color: #78350f;
  margin-bottom: 4px;
}

.mvp-stats-pills {
  display: flex;
  gap: 8px;
}

.mvp-pill {
  font-size: 0.75rem;
  font-weight: 800;
  background: white;
  color: #92400e;
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid #fcd34d;
}

/* ═══════════════════════════════════════════════════
   SPLASH SCREEN
   ═══════════════════════════════════════════════════ */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #3a0ca3 0%, #4361ee 50%, #7209b7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.splash-screen.splash-out {
  opacity: 0;
  transform: scale(1.06);
  pointer-events: none;
}
.splash-content {
  text-align: center;
  animation: splashIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes splashIn {
  from { opacity: 0; transform: translateY(30px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.splash-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
}
.splash-logo-text {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 900;
  color: #ffe600;
  -webkit-text-stroke: 3px #181c2e;
  text-shadow: 4px 5px 0 #181c2e;
  letter-spacing: -2px;
}
.splash-vinyl {
  font-size: 3.5rem;
  animation: vinylSpin 2s linear infinite;
}
@keyframes vinylSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.splash-tagline {
  color: rgba(255,255,255,0.85);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.splash-loader { margin-bottom: 24px; }
.splash-bar {
  width: 220px;
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 999px;
  overflow: hidden;
  margin: 0 auto;
}
.splash-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffe600, #f72585);
  border-radius: 999px;
  width: 0%;
  transition: width 0.3s ease;
}
.splash-notes {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.splash-note {
  font-size: 1.5rem;
  animation: noteBounce 1.4s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes noteBounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(-10px); opacity: 1; }
}

/* ═══════════════════════════════════════════════════
   NOTIFICATION PANEL
   ═══════════════════════════════════════════════════ */
.notif-bell-btn { position: relative; }
.notif-bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--red);
  color: white;
  font-size: 0.65rem;
  font-weight: 900;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  padding: 0 4px;
}
.notif-panel {
  position: fixed;
  top: var(--header-h);
  right: 20px;
  width: 340px;
  max-height: 520px;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: panelSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes panelSlideIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border-light);
}
.notif-panel-header h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 800; }
.notif-header-actions { display: flex; align-items: center; gap: 8px; }
.btn-text-sm {
  background: none;
  border: none;
  color: var(--blue-primary);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: background 0.15s;
}
.btn-text-sm:hover { background: var(--bg-card-alt); }
.btn-icon-small {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--bg-card-alt);
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.btn-icon-small:hover { background: var(--border-color); }
.notif-panel-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 12px 6px;
  border-bottom: 1px solid var(--border-light);
}
.notif-tab {
  flex: 1;
  padding: 5px 10px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  background: none;
  color: var(--text-secondary);
  transition: all 0.15s;
}
.notif-tab.active { background: var(--blue-primary); color: white; border-color: var(--blue-primary); }
.notif-list { overflow-y: auto; flex: 1; }
.notif-empty { text-align: center; padding: 32px 16px; color: var(--text-muted); font-size: 0.9rem; }
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.12s;
  position: relative;
}
.notif-item:hover { background: var(--bg-card-alt); }
.notif-item.unread { background: #f0f4ff; }
.notif-item-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.notif-item-content { flex: 1; }
.notif-item-title { font-weight: 700; font-size: 0.88rem; color: var(--text-primary); margin-bottom: 2px; }
.notif-item-body { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.4; }
.notif-item-time { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }
.notif-unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-primary); flex-shrink: 0; margin-top: 6px; }

/* ═══════════════════════════════════════════════════
   MINI PLAYER
   ═══════════════════════════════════════════════════ */
.mini-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  background: #1a1a2e;
  border: 2px solid #181c2e;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  animation: miniPlayerIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes miniPlayerIn {
  from { opacity: 0; transform: translateY(20px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.mini-player-cover {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7209b7, #4361ee);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
}
.mini-player-info { flex: 1; min-width: 0; }
.mini-player-title { font-family: var(--font-display); font-weight: 800; font-size: 0.85rem; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-player-artist { font-size: 0.75rem; color: rgba(255,255,255,0.6); margin-top: 2px; }
.mini-player-controls { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.mini-player-progress { display: flex; align-items: center; gap: 6px; }
.mini-player-bar {
  width: 70px; height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 999px;
  overflow: hidden;
}
.mini-player-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffe600, #f72585);
  border-radius: 999px;
  width: 0%;
  transition: width 1s linear;
}
.mini-player-time { font-size: 0.7rem; color: rgba(255,255,255,0.5); font-weight: 700; }
.mini-player-btns { display: flex; gap: 4px; justify-content: flex-end; }
.mini-player-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: white;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.mini-player-btn:hover { background: rgba(255,255,255,0.25); }

/* ═══════════════════════════════════════════════════
   PROFILE VIEW
   ═══════════════════════════════════════════════════ */
.profile-hero-card { position: relative; overflow: hidden; padding: 0; border-radius: var(--radius-lg); border: 2px solid var(--blue-primary); }
.profile-hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #4361ee 0%, #7209b7 50%, #f72585 100%); }
.profile-hero-content { position: relative; z-index: 1; display: flex; align-items: center; gap: 20px; padding: 28px 24px; }
.profile-big-avatar-wrapper { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.profile-avatar-big {
  font-size: 3.5rem;
  background: rgba(255,255,255,0.2);
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
}
.profile-rank-badge {
  background: rgba(255,255,255,0.2);
  color: white;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.4);
  white-space: nowrap;
}
.profile-hero-info { color: white; }
.profile-hero-name { font-family: var(--font-display); font-size: 2rem; font-weight: 900; margin-bottom: 4px; }
.profile-hero-provider { font-size: 0.85rem; opacity: 0.8; margin-bottom: 10px; }
.profile-coins-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-coins-pill { background: #ffe600; color: #181c2e; font-family: var(--font-display); font-weight: 900; font-size: 0.9rem; padding: 4px 12px; border-radius: 999px; border: 2px solid #181c2e; }
.profile-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.profile-stat-card { background: white; border: 2px solid var(--border-color); border-radius: var(--radius-md); padding: 16px 12px; text-align: center; box-shadow: var(--shadow-card); }
.pstat-value { font-family: var(--font-display); font-size: 1.8rem; font-weight: 900; color: var(--blue-primary); line-height: 1; margin-bottom: 6px; }
.pstat-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.rank-progress-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.rank-icon-current, .rank-icon-next { font-size: 2rem; flex-shrink: 0; }
.rank-progress-bar-wrap { flex: 1; }
.rank-label-row { display: flex; justify-content: space-between; font-size: 0.8rem; font-weight: 700; margin-bottom: 6px; color: var(--text-secondary); }
.rank-bar { height: 10px; background: var(--border-light); border-radius: 999px; overflow: hidden; border: 1px solid var(--border-color); }
.rank-bar-fill { height: 100%; background: linear-gradient(90deg, var(--blue-primary), var(--purple)); border-radius: 999px; transition: width 0.8s ease; }
.rank-next-hint { font-size: 0.8rem; color: var(--text-muted); text-align: center; }
.badges-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; }
.badge-item { text-align: center; padding: 12px 8px; border-radius: var(--radius-md); border: 2px solid var(--border-color); cursor: default; transition: transform 0.15s; }
.badge-item.earned { background: linear-gradient(135deg, #fef9c3, #fef3c7); border-color: #f59e0b; }
.badge-item.locked { background: var(--bg-card-alt); opacity: 0.65; }
.badge-item:hover { transform: scale(1.05); }
.badge-icon { font-size: 1.8rem; margin-bottom: 4px; }
.badge-name { font-size: 0.72rem; font-weight: 800; color: var(--text-primary); }
.badge-desc { font-size: 0.65rem; color: var(--text-muted); margin-top: 2px; line-height: 1.3; }
.genre-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.genre-bar-label { width: 110px; font-size: 0.82rem; font-weight: 700; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.genre-bar-track { flex: 1; height: 8px; background: var(--border-light); border-radius: 999px; overflow: hidden; }
.genre-bar-fill { height: 100%; background: linear-gradient(90deg, var(--blue-primary), var(--cyan)); border-radius: 999px; transition: width 0.6s ease; }
.genre-bar-count { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; width: 60px; text-align: right; }
.profile-history-list { display: flex; flex-direction: column; gap: 8px; }
.history-game-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--bg-card-alt); border-radius: var(--radius-md); border: 1px solid var(--border-light); }
.hgame-result { font-size: 1.4rem; flex-shrink: 0; }
.hgame-meta { flex: 1; }
.hgame-genre { display: block; font-weight: 700; font-size: 0.88rem; color: var(--text-primary); }
.hgame-stats { font-size: 0.75rem; color: var(--text-muted); }
.hgame-right { text-align: right; }
.hgame-xp { display: block; font-family: var(--font-display); font-weight: 800; font-size: 0.85rem; color: var(--blue-primary); }
.hgame-date { font-size: 0.72rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════
   SIDEBAR NEW BADGE
   ═══════════════════════════════════════════════════ */
.sb-badge-new {
  margin-left: auto;
  background: linear-gradient(135deg, #f72585, #7209b7);
  color: white;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1.5px solid #181c2e;
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════
   SOLO MODE
   ═══════════════════════════════════════════════════ */
.solo-header-bar { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.solo-page-title { font-family: var(--font-display); font-size: 1.8rem; font-weight: 900; }
.solo-search-bar { margin-bottom: 14px; }
.solo-playlists-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; max-height: 350px; overflow-y: auto; padding-right: 4px; }
.solo-pl-card { display: flex; align-items: center; gap: 10px; padding: 10px; border: 2px solid var(--border-color); border-radius: var(--radius-md); cursor: pointer; transition: all 0.15s; background: white; }
.solo-pl-card:hover { border-color: var(--blue-primary); background: var(--bg-card-alt); transform: translateY(-1px); }
.solo-pl-card.selected { border-color: var(--blue-primary); background: #eef2ff; box-shadow: 0 0 0 3px rgba(67,97,238,0.2); }
.solo-pl-card-img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.solo-pl-card-info { flex: 1; min-width: 0; }
.solo-pl-card-name { display: block; font-weight: 700; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.solo-pl-card-count { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.solo-pl-card-diff { font-size: 0.65rem; font-weight: 800; padding: 2px 6px; border-radius: 999px; text-transform: uppercase; flex-shrink: 0; }
.solo-pl-card-diff.facile { background: #d1fae5; color: #065f46; }
.solo-pl-card-diff.intermediaire { background: #fef3c7; color: #92400e; }
.solo-pl-card-diff.expert { background: #fee2e2; color: #991b1b; }
.solo-selected-playlist-pill { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg-card-alt); border-radius: var(--radius-md); border: 2px solid var(--border-color); margin-bottom: 16px; }
.solo-pl-img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.solo-pl-meta { flex: 1; }
.solo-pl-meta span { display: block; }
.solo-pl-meta span:first-child { font-weight: 800; font-size: 0.95rem; }
.solo-pl-meta span:last-child { font-size: 0.75rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════
   GLOBAL CHAT
   ═══════════════════════════════════════════════════ */
.global-chat-card { padding: 0; overflow: hidden; }
.global-chat-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 12px; border-bottom: 1px solid var(--border-light); }
.global-chat-title { font-family: var(--font-display); font-size: 1rem; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.global-chat-online { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }
.global-chat-messages { padding: 12px 16px; max-height: 200px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.gchat-msg { display: flex; align-items: flex-start; gap: 8px; animation: msgFadeIn 0.25s ease; }
@keyframes msgFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.gchat-msg.gchat-own { flex-direction: row-reverse; }
.gchat-msg.gchat-own .gchat-content { align-items: flex-end; background: linear-gradient(135deg, #4361ee, #7209b7); color: white; }
.gchat-msg.gchat-own .gchat-name { color: rgba(255,255,255,0.7); }
.gchat-msg.gchat-own .gchat-text { color: white; }
.gchat-msg.gchat-system { justify-content: center; font-size: 0.75rem; color: var(--text-muted); font-style: italic; padding: 4px 0; }
.gchat-avatar { font-size: 1.4rem; flex-shrink: 0; background: var(--bg-card-alt); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-color); }
.gchat-content { background: var(--bg-card-alt); border-radius: 10px; padding: 6px 10px; max-width: 220px; display: flex; flex-direction: column; border: 1px solid var(--border-light); }
.gchat-name { font-size: 0.72rem; font-weight: 800; color: var(--blue-primary); margin-bottom: 2px; }
.gchat-text { font-size: 0.84rem; color: var(--text-primary); word-break: break-word; }
.gchat-time { font-size: 0.65rem; color: var(--text-muted); flex-shrink: 0; margin-top: 8px; align-self: flex-end; }
.global-chat-input-row { border-top: 1px solid var(--border-light); padding: 10px 14px; }
.gchat-emoji-strip { display: flex; gap: 4px; margin-bottom: 6px; }
.gchat-emoji-btn { background: var(--bg-card-alt); border: 1px solid var(--border-color); border-radius: 6px; font-size: 1rem; width: 30px; height: 28px; cursor: pointer; transition: transform 0.12s, background 0.12s; display: flex; align-items: center; justify-content: center; }
.gchat-emoji-btn:hover { transform: scale(1.15); background: white; }
.gchat-input-wrap { display: flex; gap: 6px; }
.gchat-input-wrap input { flex: 1; height: 36px; border: 2px solid var(--border-color); border-radius: 8px; padding: 0 10px; font-size: 0.88rem; font-family: var(--font-body); background: white; outline: none; transition: border-color 0.15s; }
.gchat-input-wrap input:focus { border-color: var(--blue-primary); }

/* ═══════════════════════════════════════════════════
   TOURNAMENT BRACKET
   ═══════════════════════════════════════════════════ */
.modal-tournoi-card { max-width: 720px; width: 95vw; max-height: 92vh; overflow-y: auto; }
.tournoi-header { text-align: center; margin-bottom: 20px; }
.tournoi-trophy-icon { font-size: 3rem; display: block; margin-bottom: 8px; }
.tournoi-header h2 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 900; }
.tournoi-header p { color: var(--text-secondary); font-size: 0.9rem; margin-top: 6px; }
.tournoi-bracket-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.bracket-round { display: flex; flex-direction: column; gap: 8px; }
.bracket-round-title { font-family: var(--font-display); font-weight: 800; font-size: 0.8rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; text-align: center; margin-bottom: 4px; }
.bracket-matches { display: flex; flex-direction: column; gap: 10px; justify-content: space-around; flex: 1; }
.bracket-match { background: var(--bg-card-alt); border: 2px solid var(--border-color); border-radius: 10px; overflow: hidden; }
.bracket-final { border-color: #f59e0b; box-shadow: 0 4px 16px rgba(245,158,11,0.2); }
.bracket-player { padding: 8px 10px; font-size: 0.82rem; font-weight: 700; color: var(--text-primary); }
.bracket-player.winner { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #065f46; }
.bracket-player.tbd { color: var(--text-muted); font-style: italic; }
.bracket-vs { background: var(--blue-primary); color: white; text-align: center; font-size: 0.65rem; font-weight: 900; padding: 2px; letter-spacing: 1px; }
.tournoi-actions { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.tournoi-info-pill { background: #fef3c7; border: 2px solid #f59e0b; color: #92400e; font-weight: 800; padding: 6px 16px; border-radius: 999px; font-size: 0.88rem; }

/* ═══════════════════════════════════════════════════
   HELP MODAL
   ═══════════════════════════════════════════════════ */
.modal-help-card { max-width: 560px; width: 95vw; max-height: 92vh; overflow-y: auto; }
.help-steps-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }

/* ═══════════════════════════════════════════════════
   HARMONIE VIP PRO & PAID MODES DESIGN SYSTEM
   ═══════════════════════════════════════════════════ */
.badge-vip-tag {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
  vertical-align: middle;
  margin-left: 6px;
}

.vip-modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.mode-card.mode-vip {
  background: radial-gradient(circle at 0% 0%, rgba(245, 158, 11, 0.15) 0%, rgba(30, 41, 59, 0.8) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mode-card.mode-vip:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(245, 158, 11, 0.8);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.35);
}

.mode-badge.badge-vip {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* Pricing Plans Grid inside Premium Modal */
.premium-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.plan-card {
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.plan-card:hover {
  border-color: rgba(168, 85, 247, 0.5);
  background: rgba(30, 41, 59, 0.9);
}

.plan-card.active {
  border-color: #f59e0b;
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.25) 0%, rgba(15, 23, 42, 0.9) 100%);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
}

.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-badge.badge-green {
  background: linear-gradient(135deg, #10b981, #059669);
}

.plan-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  color: #f8fafc;
  margin-top: 6px;
}

.plan-price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  color: #f59e0b;
  margin: 6px 0;
}

.plan-period {
  font-size: 0.72rem;
  color: #cbd5e1;
  font-weight: 500;
}

.plan-desc {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.3;
}

/* Checkout Form Simulation */
.checkout-sim-box {
  background: rgba(15, 23, 42, 0.75);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 18px;
}

.checkout-header {
  font-size: 0.78rem;
  font-weight: 800;
  color: #cbd5e1;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.checkout-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-fields input {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 12px;
  color: #f8fafc;
  font-size: 0.85rem;
  outline: none;
}

.checkout-fields input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.3);
}

.checkout-row {
  display: flex;
  gap: 8px;
}

/* Modal Ranked 1v1 */
.modal-ranked-card {
  max-width: 480px;
  text-align: center;
}

.ranked-badge-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 8px;
}

.ranked-queue-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 14px;
  padding: 24px;
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ranked-loader-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(168, 85, 247, 0.2);
  border-top-color: #a855f7;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.ranked-queue-status {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: #f8fafc;
}

.ranked-timer {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  color: #f59e0b;
}

.ranked-vs-box {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(30, 41, 59, 0.9);
  border: 2px solid #f59e0b;
  border-radius: 14px;
  padding: 16px;
}

.ranked-player-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ranked-player-card .p-name { font-weight: 800; font-size: 0.9rem; }
.ranked-player-card .p-elo { font-size: 0.75rem; color: #f59e0b; font-weight: 800; }
.ranked-vs-text { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; color: #ec4899; }

/* VIP Discographies Modal */
.modal-disco-card {
  max-width: 600px;
  width: 95vw;
}

.disco-header { text-align: center; margin-bottom: 18px; }
.disco-crown-icon { font-size: 2.8rem; display: block; }
.vip-disco-grid { display: flex; flex-direction: column; gap: 10px; }

.vip-disco-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
}

.vip-disco-card .disco-icon { font-size: 1.8rem; }
.vip-disco-card .disco-details { flex: 1; }
.vip-disco-card h3 { font-size: 0.92rem; font-weight: 800; color: #f8fafc; }
.vip-disco-card p { font-size: 0.78rem; color: #94a3b8; margin-top: 2px; }
.help-step { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--bg-card-alt); border-radius: var(--radius-md); border: 2px solid var(--border-color); }
.help-step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--blue-primary); color: white; font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.help-step-content { flex: 1; }
.help-step-content h4 { font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; margin-bottom: 4px; }
.help-step-content p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }
.help-step-emoji { font-size: 1.8rem; flex-shrink: 0; }
.help-shortcuts { margin-bottom: 20px; }
.help-shortcuts-title, .help-faq-title { font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; margin-bottom: 10px; color: var(--text-primary); }
.shortcuts-grid { display: flex; flex-direction: column; gap: 6px; }
.shortcut-row { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; }
kbd { background: #1a1a2e; color: #ffe600; font-family: monospace; font-size: 0.78rem; font-weight: 700; padding: 3px 8px; border-radius: 5px; min-width: 52px; text-align: center; display: inline-block; }
.help-faq { margin-bottom: 8px; }
.faq-item { border: 1px solid var(--border-color); border-radius: var(--radius-sm); margin-bottom: 6px; overflow: hidden; }
.faq-item summary { padding: 10px 14px; cursor: pointer; font-weight: 700; font-size: 0.88rem; list-style: none; display: flex; justify-content: space-between; align-items: center; user-select: none; transition: background 0.12s; }
.faq-item summary:hover { background: var(--bg-card-alt); }
.faq-item summary::after { content: '+'; font-size: 1.1rem; font-weight: 700; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 8px 14px 12px; font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; border-top: 1px solid var(--border-light); }

