/* ══════════════════════════════════════════════════════════════════
   MEDIA HUB — Design System
   Dark mode premium, palette esport violet/cyan
══════════════════════════════════════════════════════════════════ */

:root {
  /* Palette de base ultra-sombre et technologique (pure jais) */
  --bg-base:        #030406;
  --bg-surface:     rgba(5, 7, 12, 0.74);   /* Glassmorphism translucide */
  --bg-card:        rgba(10, 14, 28, 0.52);  /* Cartes semi-transparentes */
  --bg-elevated:    rgba(16, 22, 42, 0.8);
  --bg-hover:       rgba(0, 240, 255, 0.08); /* Hover néon cyan */

  /* Accents Esports Ultra-Flashy */
  --accent-primary:   #0055ff;               /* Bleu électrique Lausanne Esports */
  --accent-cyan:      #00f0ff;               /* Cyan néon ultra-flashy */
  --accent-magenta:   #ff0077;               /* Rose/Magenta néon flashy */
  --accent-glow:      rgba(0, 85, 255, 0.4);
  --accent-cyan-glow: rgba(0, 240, 255, 0.3);
  --accent-orange:    #ff7700;
  --accent-green:     #00ff66;
  --accent-red:       #ff003c;

  /* Gradients Flashy & Énergétiques */
  --gradient-hero:    linear-gradient(135deg, rgba(0, 85, 255, 0.15) 0%, rgba(5, 7, 12, 0.8) 50%, rgba(0, 240, 255, 0.1) 100%);
  --gradient-card:    linear-gradient(135deg, rgba(14, 18, 36, 0.6) 0%, rgba(8, 10, 22, 0.6) 100%);
  --gradient-accent:  linear-gradient(135deg, var(--accent-primary), var(--accent-cyan));
  --gradient-neon:    linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
  --gradient-glow:    radial-gradient(ellipse at center, rgba(0, 240, 255, 0.25) 0%, transparent 70%);

  /* Texte */
  --text-primary:   #ffffff;
  --text-secondary: #a0aec0;
  --text-muted:     #64748b;
  --text-disabled:  #475569;

  /* Bordures Néo-Futuristes */
  --border:         rgba(0, 178, 255, 0.15);
  --border-hover:   rgba(0, 240, 255, 0.4);
  --border-focus:   #00f0ff;
  --border-card:    rgba(0, 178, 255, 0.14);

  /* Ombres & Lueurs Néon */
  --shadow-sm:   0 2px 8px rgba(0, 0, 0, 0.6);
  --shadow-md:   0 8px 24px rgba(0, 0, 0, 0.7);
  --shadow-lg:   0 16px 48px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 30px rgba(0, 85, 255, 0.25);
  --shadow-neon: 0 0 20px rgba(0, 240, 255, 0.35);

  /* Sidebar */
  --sidebar-w: 280px;
  --header-h:  72px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── THÈME CLAIR PREMIUM ── */
[data-theme="light"] {
  --bg-base:        #f4f6fa;
  --bg-surface:     rgba(255, 255, 255, 0.86);
  --bg-card:        rgba(255, 255, 255, 0.72);
  --bg-elevated:    #ffffff;
  --bg-hover:       rgba(0, 85, 255, 0.05);

  --text-primary:   #111827;
  --text-secondary: #4b5563;
  --text-muted:     #9ca3af;
  --text-disabled:  #d1d5db;

  --border:         rgba(0, 85, 255, 0.1);
  --border-hover:   rgba(0, 85, 255, 0.3);
  --border-card:    rgba(0, 85, 255, 0.08);

  --shadow-sm:   0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md:   0 8px 24px rgba(0, 0, 0, 0.07);
  --shadow-lg:   0 16px 48px rgba(0, 0, 0, 0.09);
  --shadow-glow: none;
  --shadow-neon: none;
}

[data-theme="light"] .gaming-bg {
  background-color: #f3f4f6;
}
[data-theme="light"] .gaming-bg::before {
  background: radial-gradient(circle, rgba(0, 85, 255, 0.08) 0%, rgba(0, 85, 255, 0) 70%);
}
[data-theme="light"] .gaming-bg::after {
  background: radial-gradient(circle, rgba(0, 240, 255, 0.06) 0%, rgba(0, 240, 255, 0) 70%);
}
[data-theme="light"] .gaming-bg-orb3 {
  background: radial-gradient(circle, rgba(255, 0, 119, 0.04) 0%, rgba(255, 0, 119, 0) 70%);
}
[data-theme="light"] .gaming-grid {
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 59px,
      rgba(0, 85, 255, 0.015) 59px,
      rgba(0, 85, 255, 0.015) 60px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 59px,
      rgba(0, 85, 255, 0.015) 59px,
      rgba(0, 85, 255, 0.015) 60px
    );
}
[data-theme="light"] .gaming-noise {
  opacity: 0.015;
}
[data-theme="light"] .logo-img {
  filter: drop-shadow(0 2px 10px rgba(0, 85, 255, 0.15));
}
[data-theme="light"] .sidebar-logo:hover .logo-img {
  filter: drop-shadow(0 4px 14px rgba(0, 85, 255, 0.3));
}
[data-theme="light"] .logo-text {
  filter: drop-shadow(0 1px 4px rgba(0, 85, 255, 0.15));
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: transparent; /* Permet de voir le fond Lausanne */
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ── UTILITAIRE ICÔNES SVG INLINE ── */
.inline-icon {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  line-height: 1;
}

/* ═══════════════════════════════════════════════════════════════
   FOND ANIMÉ "NEBULA GRID" — 4 couches superposées
   Couche 1 : Orbes lumineux amplifiés (3 orbes)
   Couche 2 : Grille perspective cyberpunk
   Couche 3 : Grain de texture organique
   Couche 4 : Mouse Glow interactif (amplifié)
═══════════════════════════════════════════════════════════════ */

/* ── COUCHE 1 : Orbes Lumineux Amplifiés ── */
.gaming-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #020204;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
}

/* Orbes communs */
.gaming-bg::before,
.gaming-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Orbe 1 : Bleu électrique — AMPLIFIÉ (flou natif via gradient) */
.gaming-bg::before {
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(0, 85, 255, 0.08) 0%, rgba(0, 85, 255, 0.03) 40%, rgba(0, 85, 255, 0) 70%);
  top: -20%;
  left: -12%;
  animation: floatOrb1 30s ease-in-out infinite alternate;
}

/* Orbe 2 : Cyan néon — AMPLIFIÉ (flou natif via gradient) */
.gaming-bg::after {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.06) 0%, rgba(0, 240, 255, 0.02) 40%, rgba(0, 240, 255, 0) 70%);
  bottom: -20%;
  right: -12%;
  animation: floatOrb2 26s ease-in-out infinite alternate;
}

/* Orbe 3 : Magenta/Rose — NOUVEAU (flou natif via gradient) */
.gaming-bg-orb3 {
  position: fixed;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 0, 119, 0.04) 0%, rgba(255, 0, 119, 0.01) 40%, rgba(255, 0, 119, 0) 70%);
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: -3;
  animation: floatOrb3 36s ease-in-out infinite alternate;
}

/* ── COUCHE 2 : Grille Perspective Cyberpunk (Statique pour des performances maximales) ── */
.gaming-grid {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 60vh;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 59px,
      rgba(0, 240, 255, 0.035) 59px,
      rgba(0, 240, 255, 0.035) 60px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 59px,
      rgba(0, 240, 255, 0.035) 59px,
      rgba(0, 240, 255, 0.035) 60px
    );
  transform: perspective(500px) rotateX(55deg);
  transform-origin: center bottom;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 85%);
  pointer-events: none;
  z-index: -3;
}

/* ── COUCHE 3 : Grain de Texture Organique (Désactivé pour de meilleures performances) ── */
.gaming-noise {
  display: none;
}

/* ── COUCHE 4 : Halo Interactif de Souris — AMPLIFIÉ ── */
.mouse-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(0, 240, 255, 0.06) 0%,
    rgba(0, 85, 255, 0.02) 40%,
    rgba(0, 0, 0, 0) 70%
  );
  border-radius: 50%;
  transform: translate3d(0, 0, 0);
  pointer-events: none;
  z-index: -2;
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: transform;
}

/* ── KEYFRAMES FOND ── */
@keyframes floatOrb1 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(15%, 20%) scale(1.2); }
  66%  { transform: translate(-8%, 10%) scale(0.95); }
  100% { transform: translate(-5%, -8%) scale(1.05); }
}

@keyframes floatOrb2 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-18%, -12%) scale(0.85); }
  66%  { transform: translate(5%, -5%) scale(1.1); }
  100% { transform: translate(10%, 15%) scale(0.92); }
}

@keyframes floatOrb3 {
  0%   { transform: translate(-50%, -50%) scale(1); }
  50%  { transform: translate(-40%, -55%) scale(1.15); }
  100% { transform: translate(-60%, -45%) scale(0.9); }
}

@keyframes gridScroll {
  0%   { transform: perspective(500px) rotateX(55deg) translateY(0); }
  100% { transform: perspective(500px) rotateX(55deg) translateY(60px); }
}

/* ── LAYOUT ───────────────────────────────────────────────────── */
#app {
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR ──────────────────────────────────────────────────── */
#sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: #060810; /* Fond opaque solide pour éliminer les baisses de FPS lors du défilement */
  border-right: 1px solid rgba(0, 240, 255, 0.16); /* Fine ligne néon discrète */
  display: flex;
  flex-direction: column;
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
}

.sidebar-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px 10px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.16);
  text-align: center;
  cursor: pointer;
}

.logo-img {
  height: 210px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(0, 85, 255, 0.6));
  transition: transform 0.4s var(--ease-spring);
  flex-shrink: 0;
}

.sidebar-logo:hover .logo-img {
  transform: scale(1.08) rotate(-3deg);
  filter: drop-shadow(0 0 26px rgba(0, 240, 255, 0.8));
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 900;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.9px;
  filter: drop-shadow(0 2px 12px rgba(0, 240, 255, 0.45));
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 12px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px; /* Plus d'espace entre icône et texte */
  padding: 12px 18px; /* Plus grand */
  border-radius: var(--r-md);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 17px; /* Écrit plus grand */
  font-weight: 600; /* Plus impactant */
  cursor: pointer;
  border-left: 0 solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-left 0.25s var(--ease-spring), padding-left 0.25s var(--ease-spring), transform 0.2s var(--ease);
  text-align: left;
  width: 100%;
}

.nav-item svg {
  width: 22px; /* Icône plus grande et lisible */
  height: 22px;
  flex-shrink: 0;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--accent-cyan); /* Texte cyan flashy au survol */
  border-left: 3px solid var(--accent-cyan);
  padding-left: 15px; /* Compenser la bordure pour ne pas décaler */
  transform: translateX(6px); /* Effet de glissement dynamique */
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.18), rgba(255, 0, 119, 0.08));
  color: #ffffff;
  border-left: 4px solid var(--accent-cyan); /* Bordure active cyan néon */
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding-left: 14px;
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.2);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid rgba(0, 240, 255, 0.16);
}

.sync-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}

.sync-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.sync-btn:hover {
  background: var(--bg-hover);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.sync-btn.syncing svg {
  animation: spin 1s linear infinite;
}

/* ── MAIN ─────────────────────────────────────────────────────── */
#main {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── HEADER ───────────────────────────────────────────────────── */
#top-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.16); /* Bordure fine néon */
  background: #060810; /* Header opaque solide pour d'excellentes performances de scrolling */
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-search-wrap { flex: 1; max-width: 560px; }

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 14, 28, 0.5); /* Semi-transparent */
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 8px 16px;
  transition: all 0.2s var(--ease);
}

.search-box:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.3); /* Glow néon cyan au focus */
}

.search-icon { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }

#search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

#search-input::placeholder { color: var(--text-muted); }

.search-kbd {
  font-family: monospace;
  font-size: 11px;
  color: var(--text-disabled);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
}

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

/* ── BUTTONS ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r-md);
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  white-space: nowrap;
}

.btn svg { width: 16px; height: 16px; }

.btn-primary {
  background: var(--gradient-neon); /* Dégradé cyan à rose néon très flashy */
  color: #030406; /* Texte sombre pour un parfait contraste */
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.4), 0 0 30px rgba(255, 0, 119, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.03); /* Agrandissement et élévation dynamique */
  color: #ffffff; /* Devient blanc au survol */
  box-shadow: 0 6px 24px rgba(255, 0, 119, 0.55), 0 0 35px rgba(0, 240, 255, 0.45);
}

.btn-ghost {
  background: rgba(10, 14, 28, 0.85); /* Plus opaque pour se passer de flou */
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

.btn-danger {
  background: rgba(255, 0, 60, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(255, 0, 60, 0.3);
}

.btn-danger:hover {
  background: rgba(255, 0, 60, 0.22);
  box-shadow: 0 0 12px rgba(255, 0, 60, 0.25);
}

.btn-lg { padding: 12px 28px; font-size: 15px; font-weight: 700; letter-spacing: 0.5px; }

/* ── FILTER BAR ───────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  animation: slideDown 0.2s var(--ease);
}

.filter-bar.hidden { display: none; }

.filter-group { display: flex; flex-direction: column; gap: 8px; }

.filter-group label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.chip-group { display: flex; gap: 6px; flex-wrap: wrap; }

.chip {
  padding: 4px 12px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.15s;
}

.chip:hover { 
  border-color: var(--accent-cyan); 
  color: var(--accent-cyan); 
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.chip.active {
  background: rgba(0, 240, 255, 0.18);
  border-color: var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

.filter-select {
  padding: 6px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: rgba(10, 14, 28, 0.5);
  color: var(--text-primary);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  outline: none;
}

/* ── VIEWS ────────────────────────────────────────────────────── */
.view { display: none; padding: 28px; flex: 1; }
.view.active { display: block; }

.view-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.view-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 28px; /* Plus grand */
  font-weight: 800; /* Plus impactant */
  color: var(--text-primary);
}

.badge {
  background: rgba(0, 240, 255, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--r-full);
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
}

/* ── MEDIA GRID ───────────────────────────────────────────────── */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.media-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  position: relative;
}

.media-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: 0 8px 20px rgba(0, 240, 255, 0.15);
}

.media-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--bg-elevated);
  display: block;
}

.media-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  font-size: 40px;
}

.media-type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.type-image  { background: #00ff66; color: #000; }
.type-video  { background: #8a2be2; color: #fff; }
.type-link   { background: #ff7700; color: #fff; }

.source-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 600;
  background: rgba(10, 14, 28, 0.9);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.media-card-body {
  padding: 14px;
}

.media-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.media-card-tag {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 2px 8px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
}

.media-card-date {
  font-size: 11px;
  color: var(--text-disabled);
  margin-left: auto;
}

.media-delete-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: var(--r-full);
  background: hsla(356,80%,60%,0.15);
  border: 1px solid hsla(356,80%,60%,0.3);
  color: var(--accent-red);
  font-size: 13px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  z-index: 2;
}

.media-card:hover .media-delete-btn { display: flex; }
.media-delete-btn:hover { background: hsla(356,80%,60%,0.3); }

/* ── EMPTY STATE ──────────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  gap: 16px;
}

.empty-state.hidden { display: none; }

.empty-icon { font-size: 64px; }

.empty-state h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-secondary);
}

.empty-state p { font-size: 14px; color: var(--text-muted); max-width: 360px; }

/* ── LOAD MORE ────────────────────────────────────────────────── */
.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

/* ── PLAYERS GRID ─────────────────────────────────────────────── */
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.player-card {
  background: var(--bg-card); /* Utilise le verre sombre */
  border: 1px solid var(--border-card);
  border-radius: var(--r-lg);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
  position: relative;
}

.player-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 24px rgba(0, 240, 255, 0.25), var(--shadow-md);
}

.player-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 12px;
  box-shadow: 0 0 20px rgba(0, 85, 255, 0.35);
  overflow: hidden;
  background: rgba(10, 14, 28, 0.5);
}

.player-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.player-game {
  font-size: 12px;
  color: var(--text-muted);
}

.player-delete {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-disabled);
  font-size: 14px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.player-card:hover .player-delete { display: flex; }
.player-delete:hover { color: var(--accent-red); }

.player-edit {
  position: absolute;
  top: 10px;
  right: 36px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-disabled);
  font-size: 11px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.player-card:hover .player-edit { display: flex; }
.player-edit:hover { color: var(--accent-cyan); }

/* ── COMPETITIONS LIST ────────────────────────────────────────── */
.competitions-list { display: flex; flex-direction: column; gap: 12px; }

.competition-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card); /* Utilise le verre sombre */
  border: 1px solid var(--border-card);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  transition: all 0.25s var(--ease);
  cursor: pointer;
}

.competition-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 8px 20px rgba(0, 240, 255, 0.2), var(--shadow-md);
  transform: translateX(4px); /* Léger glissement */
}

.comp-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(0, 85, 255, 0.2), rgba(0, 240, 255, 0.1));
  border: 1px solid rgba(0, 240, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.comp-info { flex: 1; }

.comp-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.comp-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 12px; }

.comp-result {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-green);
  background: rgba(0, 255, 102, 0.1);
  border: 1px solid rgba(0, 255, 102, 0.22);
  border-radius: var(--r-full);
  padding: 3px 10px;
}

.comp-actions {
  display: none;
  gap: 8px;
  align-items: center;
  margin-left: 12px;
}

.competition-card:hover .comp-actions {
  display: flex;
}

.comp-edit-btn, .comp-delete-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.comp-edit-btn:hover { color: var(--accent-cyan); border-color: var(--accent-cyan); }
.comp-delete-btn:hover { color: var(--accent-red); border-color: var(--accent-red); }

/* ── UPLOAD VIEW ──────────────────────────────────────────────── */
.upload-zone-wrap {
  max-width: 760px;
}

.tab-group {
  display: flex;
  gap: 4px;
  background: rgba(10, 14, 28, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 4px;
  width: fit-content;
  margin-bottom: 20px;
}

.tab {
  padding: 8px 20px;
  border-radius: var(--r-md);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}

.tab.active {
  background: var(--gradient-neon); /* Onglet actif flashy cyan/magenta */
  color: #030406;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
}

.tab-content { display: none; margin-bottom: 20px; }
.tab-content.active { display: block; }

.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--r-xl);
  padding: 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: all 0.22s var(--ease);
  cursor: pointer;
  background: rgba(10, 14, 28, 0.8); /* Fond opaque */
}

.drop-zone.drag-over {
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: inset 0 0 30px rgba(0, 240, 255, 0.25);
}

.drop-icon { font-size: 48px; }

.drop-title { font-size: 18px; font-weight: 600; color: var(--text-primary); }
.drop-sub { color: var(--text-muted); font-size: 14px; }
.drop-hint { font-size: 12px; color: var(--text-disabled); }

/* ── FORM CARD ────────────────────────────────────────────────── */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r-xl);
  padding: 28px;
  margin-bottom: 16px;
}

.form-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(10, 14, 28, 0.6); /* Inputs sombres */
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: all 0.18s;
  width: 100%;
}

.form-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25); /* Glow cyan au focus */
}

textarea.form-input { resize: vertical; min-height: 80px; }

.form-hint { font-size: 12px; color: var(--text-muted); }

.form-actions { display: flex; justify-content: flex-end; margin-top: 8px; }

/* ── MULTI SELECT ─────────────────────────────────────────────── */
.multi-select {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 38px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(10, 14, 28, 0.6);
}

.multi-select-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--accent-cyan);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.multi-select-chip.selected {
  background: rgba(0, 240, 255, 0.22);
  border-color: var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.15);
}

.multi-select-chip:hover { opacity: 0.8; }

/* ── UPLOAD PREVIEW ───────────────────────────────────────────── */
#upload-preview-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.preview-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.preview-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  object-fit: cover;
  background: var(--bg-elevated);
  flex-shrink: 0;
}

.preview-name {
  flex: 1;
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-size { font-size: 12px; color: var(--text-muted); }

.preview-status {
  font-size: 12px;
  font-weight: 600;
}

.status-pending { color: var(--text-muted); }
.status-uploading { color: var(--accent-cyan); }
.status-done { color: var(--accent-green); }
.status-error { color: var(--accent-red); }

/* ── STATS ────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 42px;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat-sub { font-size: 13px; color: var(--text-secondary); }

/* ── MODAL ────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: hsla(225, 30%, 5%, 0.94); /* Un peu plus sombre et opaque */
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  animation: modalFadeIn 0.3s var(--ease) forwards;
}

.modal-overlay.hidden {
  display: none;
  animation: none;
}

.modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  gap: 28px;
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(0, 85, 255, 0.08);
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  animation: modalSlideUp 0.35s var(--ease-spring) 0.05s forwards;
}

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

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-container.modal-sm {
  max-width: 480px;
  flex-direction: column;
}

.modal-container.modal-sm h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  z-index: 1;
}

.modal-close:hover { color: var(--text-primary); background: var(--bg-hover); }

.modal-media {
  flex: 1.2;
  min-width: 0;
}

.modal-media img, .modal-media video {
  width: 100%;
  border-radius: var(--r-lg);
  max-height: 500px;
  object-fit: contain;
}

.modal-media-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--r-lg);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  font-size: 56px;
}

.modal-media-placeholder a {
  font-size: 14px;
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
}

.modal-info { flex: 0.8; display: flex; flex-direction: column; gap: 16px; }

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-word;
}

.modal-meta-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-meta-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.modal-meta-value { font-size: 14px; color: var(--text-secondary); }

.modal-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.modal-tag {
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
}

.modal-players { display: flex; flex-wrap: wrap; gap: 8px; }

.modal-player {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-full);
  background: hsla(266,90%,65%,0.1);
  border: 1px solid hsla(266,90%,65%,0.2);
  font-size: 13px;
  color: var(--accent-primary);
  font-weight: 500;
}

.modal-action { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }

/* ── SOURCE ICONS ─────────────────────────────────────────────── */
.source-sharepoint { color: #0078d4; }
.source-youtube    { color: #ff0000; }
.source-instagram  { color: #e1306c; }
.source-twitter    { color: #1da1f2; }

/* ── TOAST ────────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: slideInRight 0.25s var(--ease-spring);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
}

.toast-success { border-color: hsla(142,70%,55%,0.4); }
.toast-error   { border-color: hsla(356,80%,60%,0.4); }
.toast-info    { border-color: hsla(266,90%,65%,0.4); }

.toast-icon { font-size: 16px; }

/* ── SCROLL ───────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--bg-hover); }

/* ── ANIMATIONS ───────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

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

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* Skeleton loading shimmer */
.skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, rgba(0, 240, 255, 0.06) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
  border-radius: var(--r-md);
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── SCROLL REVEAL (Désactivé pour des performances de scrolling maximales) ── */

/* ── EDITION DE METADONNEES ───────────────────────────────────── */
.edit-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: 70vh;
  padding-right: 8px;
}

.edit-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.edit-form .form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.edit-form input[type="text"],
.edit-form input[type="date"],
.edit-form textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s var(--ease);
}

.edit-form input[type="text"]:focus,
.edit-form input[type="date"]:focus,
.edit-form textarea:focus {
  border-color: var(--border-focus);
  outline: none;
}

.edit-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 120px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 8px 12px;
}

.edit-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.edit-checkbox-label input[type="checkbox"] {
  accent-color: var(--accent-cyan);
}

/* ── SELECTION MULTIPLE ET EXPORT ZIP ────────────────────────── */
.media-card-checkbox {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 22px;
  height: 22px;
  accent-color: var(--accent-cyan);
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.media-card:hover .media-card-checkbox,
.media-card-checkbox:checked {
  opacity: 1;
}

.floating-zip-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  background: rgba(5, 7, 12, 0.95);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.25);
  border-radius: var(--r-full);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 999;
  transition: transform 0.4s var(--ease-spring), opacity 0.3s ease;
}

.floating-zip-bar.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.floating-zip-bar .selected-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Toggle & Overlay */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(10, 14, 28, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.menu-toggle:hover {
  background: var(--bg-hover);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 2, 4, 0.85); /* Plus opaque */
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

@media (max-width: 768px) {
  #app {
    display: block;
    width: 100%;
    overflow-x: hidden;
  }

  /* Toggle visible */
  .menu-toggle {
    display: flex;
  }

  /* Sidebar Drawer */
  #sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-w);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  #sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.25);
  }

  /* Main content takes full space */
  #main {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Header adjustments */
  #top-header {
    padding: 0 16px;
    gap: 12px;
  }

  .header-search-wrap {
    max-width: 100%;
    min-width: 0;
  }

  .search-kbd {
    display: none; /* Hide shortcut on mobile */
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions .btn span {
    display: none; /* Hide button text, keep icons */
  }

  .header-actions .btn {
    padding: 10px;
    border-radius: var(--r-md);
  }

  /* Filter bar wrap */
  .filter-bar {
    padding: 16px;
    gap: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    width: 100%;
  }

  .filter-select {
    width: 100%;
  }

  /* Views padding */
  .view {
    padding: 16px;
  }

  .view-header h1 {
    font-size: 22px;
  }

  /* Two column grids for gallery and players */
  .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
    gap: 12px;
  }

  .media-card-title {
    font-size: 12px;
  }

  .media-card-tag {
    font-size: 10px;
    padding: 1px 6px;
  }

  .media-card-date {
    font-size: 10px;
  }

  .players-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
    gap: 10px;
  }

  .player-card {
    padding: 12px;
  }

  .player-avatar {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .player-name {
    font-size: 13px;
  }

  /* Form layouts */
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }

  .form-card {
    padding: 16px;
  }

  .drop-zone {
    padding: 24px 16px;
  }

  .drop-title {
    font-size: 15px;
  }

  /* Modal responsive */
  .modal-container {
    flex-direction: column !important;
    padding: 16px;
    max-height: 95vh;
    gap: 16px;
  }

  .modal-media {
    max-height: 250px;
    width: 100%;
  }

  .modal-media img, .modal-media video {
    max-height: 250px;
  }

  .modal-info {
    width: 100%;
    gap: 12px;
  }

  .modal-title {
    font-size: 18px;
  }

  /* Floating ZIP bar mobile */
  .floating-zip-bar {
    width: 90%;
    bottom: 16px;
    padding: 8px 16px;
    gap: 10px;
    flex-direction: column;
    border-radius: var(--r-lg);
    transform: translateX(-50%) translateY(20px);
  }

  .floating-zip-bar.visible {
    transform: translateX(-50%) translateY(0);
  }

  .floating-zip-bar .btn {
    width: 100%;
    justify-content: center;
    font-size: 13px;
  }
}

/* ── SEARCHABLE MULTI SELECT ── */
.searchable-multi-select {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(10, 14, 28, 0.6);
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 42px;
}

.searchable-multi-select:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.select-selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.select-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--accent-cyan);
  padding: 2px 8px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
}

.select-tag-remove {
  cursor: pointer;
  color: var(--text-secondary);
  font-weight: bold;
}

.select-tag-remove:hover {
  color: var(--accent-magenta);
}

.select-search-input {
  border: none;
  background: transparent;
  outline: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  width: 100%;
  padding: 4px 0;
}

.select-dropdown-list {
  position: absolute;
  top: 105%;
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.select-dropdown-list.hidden {
  display: none;
}

.select-dropdown-item {
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  background: transparent;
  border: none;
  width: 100%;
}

.select-dropdown-item:hover {
  background: var(--bg-hover);
  color: var(--accent-cyan);
}

.select-dropdown-item.selected {
  background: rgba(0, 240, 255, 0.1);
  color: #ffffff;
}
