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

:root {
  --bg: #0f0f0f;
  --bg2: #161616;
  --bg3: #1e1e1e;
  --border: #2a2a2a;
  --accent: #a3e635;
  --accent-hover: #8cc62e;
  --accent-rgb: 163 230 53;
  --accent-contrast: #0f0f0f;
  --text: #e5e5e5;
  --muted: #888;
  --danger: #ef4444;
  --success: #22c55e;
  --warn: #f59e0b;
  --radius: 10px;
  --card-radius: 12px;
  --bottom-nav-h: 76px;
}

html { font-size: 14px; }
body {
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh; min-height: 100dvh;
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ── Auth pages ── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-box { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--card-radius); padding: 32px 28px; width: 100%; max-width: 420px; }
.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.auth-logo svg { color: var(--accent); }
.auth-logo span { font-size: 1.3rem; font-weight: 700; }
.auth-box h1 { font-size: 1.4rem; margin-bottom: 6px; }
.auth-box p { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }
label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 6px; color: var(--muted); }
input[type=email], input[type=password], input[type=text], input[type=search], input[type=number], input[type=date], textarea, select {
  color-scheme: dark;
  width: 100%; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); padding: 10px 14px; font-size: 0.95rem; outline: none; transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 80px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius); font-size: 0.95rem; font-weight: 500;
  border: none; cursor: pointer; transition: background 0.2s, opacity 0.2s; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--bg3); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: default; }

.error-msg { color: var(--danger); font-size: 0.85rem; margin-top: 12px; display: none; }
.error-msg.show { display: block; }
.success-msg { color: var(--success); font-size: 0.85rem; margin-top: 12px; display: none; }
.success-msg.show { display: block; }

/* ── Layout ── */
.app { display: flex; flex-direction: column; min-height: 100vh; }

/* ── Navbar (desktop) ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,15,15,0.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex; align-items: center;
}
.navbar-inner {
  display: flex; align-items: center; gap: 20px;
  width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 24px;
}
.nav-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.1rem; color: var(--text); cursor: pointer; flex-shrink: 0; }
.nav-logo svg { color: var(--accent); }
.nav-links { display: flex; gap: 4px; }
.nav-link {
  padding: 6px 14px; border-radius: 8px; color: var(--muted); font-size: 0.9rem;
  cursor: pointer; transition: background 0.15s, color 0.15s; border: none; background: none;
}
.nav-link:hover, .nav-link.active { background: var(--bg3); color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-search { position: relative; }
.nav-search input { background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 7px 14px 7px 36px; font-size: 0.9rem; width: 200px; color: var(--text); outline: none; cursor: pointer; }
.nav-search input:focus { border-color: var(--accent); }
.nav-search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }

/* ── Bottom nav (mobile) ── */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
  background: #0f0f0f;
  border-top: 1px solid var(--border);
  padding: 0 8px env(safe-area-inset-bottom);
  transition: transform 0.25s ease;
}
.bottom-nav.nav-hidden { transform: translateY(100%); }
.bottom-nav-inner { display: flex; align-items: center; justify-content: space-around; height: 100%; }
.bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 2px; border-radius: 10px; border: none; background: none;
  color: var(--muted); font-size: 0.52rem; font-weight: 500; cursor: pointer;
  transition: color 0.15s; flex: 1; min-width: 0;
}
.bottom-nav-btn.active { color: var(--accent); }
.bottom-nav-btn svg { flex-shrink: 0; }
.bottom-nav-add {
  width: 48px; height: 48px; border-radius: 50%; background: var(--accent);
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--accent-contrast); transition: background 0.2s; flex-shrink: 0;
  box-shadow: 0 4px 16px rgb(var(--accent-rgb) / 0.4);
}
.bottom-nav-add:hover { background: var(--accent-hover); }
.bottom-nav-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }

/* ── Main content ── */
.main { flex: 1; padding: 28px 24px; max-width: 1400px; margin: 0 auto; width: 100%; }

/* ── Stats bar ── */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 32px; }
.stat-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--card-radius); padding: 18px 20px; }
.stat-card .value { font-size: 1.8rem; font-weight: 700; color: var(--accent); }
.stat-card .label { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

/* ── Section ── */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title { font-size: 1rem; font-weight: 600; }
.section { margin-bottom: 40px; }

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

.media-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--card-radius);
  overflow: hidden; cursor: pointer; transition: transform 0.2s, border-color 0.2s;
  position: relative; width: 100%; display: flex; flex-direction: column;
}
.media-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.media-card-poster { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: var(--bg3); display: block; flex-shrink: 0; }
.media-card-poster-placeholder { width: 100%; aspect-ratio: 3/4; background: var(--bg3); display: flex; align-items: center; justify-content: center; color: var(--muted); flex-shrink: 0; }
.media-card-body { padding: 10px 12px 12px; flex: 1; }
.media-card-title { font-size: 0.85rem; font-weight: 600; line-height: 1.3; margin-bottom: 4px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.media-card-meta { font-size: 0.75rem; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; overflow: hidden; }
.media-card-status { position: absolute; top: 8px; right: 8px; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; }
.badge-watchlist { background: rgb(var(--accent-rgb) / 0.15); color: var(--accent); }
.badge-watching { background: rgba(245,158,11,0.15); color: var(--warn); }
.badge-watched { background: rgba(34,197,94,0.15); color: var(--success); }
.badge-game { background: rgba(255,255,255,0.08); color: var(--muted); }

/* Tooltip au survol, plus fiable que l'attribut title natif (délai/comportement
   incohérents selon navigateur). Apparaît après ~500ms de survol, disparaît aussitôt. */
.tooltip { position: relative; }
.tooltip .tooltip-text {
  position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%);
  background: var(--bg3); color: var(--text); border: 1px solid var(--border);
  padding: 5px 9px; border-radius: 6px; font-size: 0.72rem; font-weight: 500;
  white-space: nowrap; pointer-events: none; z-index: 20;
  opacity: 0; visibility: hidden; transition: opacity 0.12s ease, visibility 0.12s ease;
}
.tooltip .tooltip-text::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--border);
}
.tooltip:hover .tooltip-text {
  opacity: 1; visibility: visible; transition-delay: 0.5s;
}

.stars { display: flex; gap: 2px; }
.star { color: var(--border); font-size: 0.9rem; cursor: pointer; transition: color 0.1s; }
.star.filled { color: var(--warn); }
.star:hover { color: var(--warn); }

/* ── Filters ── */
.filters { display: flex; gap: 8px; margin-bottom: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter-btn { padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; cursor: pointer; border: 1px solid var(--border); background: var(--bg2); color: var(--muted); transition: all 0.15s; flex-shrink: 0; }
.filter-btn.active, .filter-btn:hover { border-color: var(--accent); color: var(--accent); background: rgb(var(--accent-rgb) / 0.08); }

/* ── Search overlay ── */
.search-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 200; display: none; align-items: flex-start; justify-content: center; padding: 60px 16px 0; }
.search-overlay.open { display: flex; }
.search-box { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--card-radius); width: 100%; max-width: 600px; overflow: hidden; }
.search-input-wrap { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.search-input-wrap input { flex: 1; background: none; border: none; color: var(--text); font-size: 1rem; outline: none; min-width: 0; }
.search-results { max-height: 65vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.search-result { display: flex; gap: 14px; padding: 12px 18px; cursor: pointer; transition: background 0.15s; align-items: center; }
.search-result:hover { background: var(--bg3); }
.search-result img { width: 44px; height: 66px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.search-result-placeholder { width: 44px; height: 66px; border-radius: 6px; background: var(--bg3); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.search-result-info { flex: 1; min-width: 0; }
.search-result-title { font-weight: 500; font-size: 0.95rem; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-meta { font-size: 0.8rem; color: var(--muted); display: flex; gap: 8px; }
.search-empty { padding: 32px; text-align: center; color: var(--muted); font-size: 0.9rem; }

/* ── Detail page ── */
/* Hauteur fixe + object-fit:cover (comme à l'origine, 280px) mais plus haute -- object-fit:contain
   évitait tout rognage mais laissait des bandes vides sur les côtés dès que la hauteur devenait
   la contrainte dominante (écran large). Compromis : toujours en pleine largeur sans bande vide,
   un rognage vertical possible mais minime vu la hauteur généreuse. */
.detail-backdrop { position: relative; height: 460px; overflow: hidden; border-radius: var(--card-radius); margin-bottom: 28px; }
.detail-backdrop img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-backdrop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0%, transparent 60%); }
.detail-header { display: flex; gap: 24px; margin-bottom: 32px; align-items: flex-start; }
.detail-poster { width: 175px; flex-shrink: 0; border-radius: var(--card-radius); overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.5); }
.detail-poster img { width: 100%; display: block; }
.detail-info { flex: 1; min-width: 0; padding-top: 4px; }
.detail-title { font-size: 1.7rem; font-weight: 700; margin-bottom: 8px; }
.detail-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.detail-overview { color: var(--muted); font-size: 0.93rem; line-height: 1.6; margin-bottom: 18px; max-width: 680px; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ── Status selector ── */
.status-select { appearance: none; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 32px 8px 12px; font-size: 0.9rem; color: var(--text); cursor: pointer; }

/* ── Barre de progression ── */
.progress-bar { height: 4px; background: var(--bg3); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.3s; }

/* ── Modal ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--card-radius); width: 100%; max-width: 480px; padding: 26px; }
.modal-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 18px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }

/* ── Toast ── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 400; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 18px; font-size: 0.9rem; min-width: 200px; max-width: 340px; box-shadow: 0 4px 20px rgba(0,0,0,0.4); animation: slideIn 0.2s ease; }
.toast.success { border-color: var(--success); color: var(--success); }
.toast.error { border-color: var(--danger); color: var(--danger); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── Empty state ── */
.empty { grid-column: 1/-1; text-align: center; padding: 56px 24px; color: var(--muted); }
.empty svg { margin: 0 auto 16px; display: block; color: var(--border); }
.empty h3 { font-size: 1rem; color: var(--text); margin-bottom: 8px; }
.empty p { font-size: 0.9rem; }

/* ── Toggle switch ── */
.toggle-wrap { display: flex; align-items: center; gap: 10px; }
.toggle { position: relative; display: inline-block; width: 40px; height: 22px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: var(--bg3); border-radius: 22px; cursor: pointer; transition: background 0.2s; border: 1px solid var(--border); }
.slider::before { content: ''; position: absolute; width: 16px; height: 16px; left: 2px; top: 50%; transform: translateY(-50%); background: var(--muted); border-radius: 50%; transition: all 0.2s; }
input:checked + .slider { background: var(--accent); border-color: var(--accent); }
input:checked + .slider::before { left: calc(100% - 18px); background: var(--accent-contrast); }

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

/* ── Loaders ── */
.spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 16px; }
.skeleton { background: var(--bg2); border-radius: var(--card-radius); overflow: hidden; animation: pulse 1.5s ease-in-out infinite; }
.skeleton-poster { width: 100%; aspect-ratio: 3/4; background: var(--bg3); }
.skeleton-line { height: 12px; background: var(--bg3); border-radius: 4px; margin: 10px 12px 6px; }
.skeleton-line.short { width: 60%; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Trombinoscope */
.cast-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.cast-scroll::-webkit-scrollbar { display: none; }
.cast-card { flex-shrink: 0; width: 80px; text-align: center; cursor: pointer; }
.cast-card img, .cast-card-placeholder { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; background: var(--bg3); display: flex; align-items: center; justify-content: center; color: var(--muted); border: 2px solid var(--border); }
.cast-card-name { font-size: 0.72rem; font-weight: 600; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cast-card-role { font-size: 0.68rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ══════════════════════════════
   MOBILE  (≤ 768px)
══════════════════════════════ */
@media (max-width: 768px) {

  .profile-action-btn { padding: 7px 10px; }
  .profile-action-label { display: none; }

  /* Header profil public : les actions (Suivre/lien/QR) passent sur leur propre ligne
     pleine largeur au lieu de déborder hors écran */
  .pub-profile-header { gap: 14px 24px; }
  .pub-profile-actions { margin-left: 0 !important; width: 100%; justify-content: flex-start; }

  /* Empêche iOS Safari de zoomer sur les inputs (zoom déclenché si font-size < 16px) */
  input, select, textarea { font-size: 16px !important; }

  /* Navbar desktop → cachée, remplacée par bottom nav */
  .navbar { display: none; }
  .bottom-nav { display: block; }

  /* Padding bas pour laisser place à la bottom nav */
  .main { padding: 16px 14px calc(var(--bottom-nav-h) + env(safe-area-inset-bottom) + 16px); }

  /* Auth */
  .auth-box { padding: 28px 20px; }

  /* Stats : 2×2 */
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 24px; }
  .stat-card { padding: 14px 16px; }
  .stat-card .value { font-size: 1.5rem; }

  /* Grille media : 2 colonnes fixes sur mobile (cartes plus grandes) */
  .media-grid, .loading-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Section */
  .section { margin-bottom: 28px; }
  .section-header { margin-bottom: 12px; }

  /* Detail header : poster à gauche, info à droite */
  .detail-backdrop { height: 230px; border-radius: 10px; margin-bottom: 16px; }
  .detail-header { gap: 14px; margin-bottom: 20px; }
  .detail-poster { width: 110px; border-radius: 10px; }
  .detail-title { font-size: 1.2rem; margin-bottom: 6px; }
  .detail-overview { font-size: 0.88rem; margin-bottom: 14px; -webkit-line-clamp: 4; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .detail-actions { gap: 8px; }
  .detail-actions .btn { padding: 8px 12px; font-size: 0.82rem; }

  /* Modal → sheet qui monte du bas */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-overlay.open { display: flex; }
  .modal {
    border-radius: var(--card-radius) var(--card-radius) 0 0;
    max-width: 100%;
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  }
  .modal::before {
    content: ''; display: block; width: 36px; height: 4px;
    background: var(--border); border-radius: 2px; margin: 0 auto 18px;
  }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; }

  /* Toast → centré en bas */
  .toast-container { right: 12px; left: 12px; bottom: calc(var(--bottom-nav-h) + 12px + env(safe-area-inset-bottom)); align-items: center; }
  .toast { min-width: unset; max-width: 100%; width: 100%; text-align: center; }
  @keyframes slideIn { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

  /* Search overlay → plein écran sur mobile */
  .search-overlay { padding: 0; align-items: flex-end; }
  .search-box { border-radius: var(--card-radius) var(--card-radius) 0 0; max-width: 100%; }
  .search-results { max-height: 72vh; }

  /* Filtres → scroll horizontal */
  .filters { flex-wrap: nowrap; padding-bottom: 4px; }
}

/* ── Bannière de confirmation d'email ── */
.verify-banner { background: rgba(255,255,255,0.04); border-bottom: 1px solid var(--border); }
.verify-banner-inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; width: 100%; max-width: 1400px; margin: 0 auto; padding: 10px 24px; font-size: 0.88rem; color: var(--muted); }
.verify-banner-close { margin-left: auto; background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px; display: flex; }
.verify-banner-close:hover { color: var(--text); }

/* ── Bouton de bascule vers le site jumeau (couleur de MARQUE de l'autre site, via --brand) ── */
.sibling-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; text-decoration: none; color: var(--brand); border: 1px solid var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); transition: background 0.15s; white-space: nowrap; }
.sibling-pill:hover { color: var(--brand); background: color-mix(in srgb, var(--brand) 24%, transparent); }
.sibling-pill svg { flex-shrink: 0; }
/* En-tête déjà serré autour de 1000 px : on interdit le retour à la ligne des onglets et on
   resserre un peu les espacements quand la pastille (icône seule) s'ajoute. */
.nav-link { white-space: nowrap; }
@media (max-width: 1180px) {
  .sibling-pill span { display: none; }
  .sibling-pill { padding: 6px 9px; }
  .navbar-inner { gap: 12px; }
  .nav-right { gap: 6px; }
  .nav-link { padding: 6px 10px; }
}
/* Sous 820 px l'en-tête n'a plus la place pour la pastille ; l'accès à l'autre site reste dans Réglages (« Moi »). */
/* Tablette : boutons Ajouter/Roulette et pseudo passent en icône seule pour que l'en-tête tienne. */
@media (max-width: 1100px) {
  .nav-btn-label { display: none; }
  .nav-right .btn-primary { padding: 7px 10px !important; }
}
@media (max-width: 960px) { .nav-user-label { display: none; } .nav-search input { width: 150px; } }
@media (max-width: 820px) { .sibling-pill { display: none; } }

/* ── Fiche jeu ── */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 500; background: rgba(255,255,255,0.06); color: var(--muted); border: 1px solid transparent; white-space: nowrap; }
button.chip { cursor: pointer; font-family: inherit; }
button.chip:hover { border-color: var(--accent); color: var(--text); }
button.chip.on { background: rgb(var(--accent-rgb) / 0.15); color: var(--accent); border-color: rgb(var(--accent-rgb) / 0.4); }
.store-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 500; background: var(--bg3); border: 1px solid var(--border); color: var(--text); }
.store-link:hover { border-color: var(--accent); color: var(--text); }
.game-section { margin-bottom: 28px; }
.game-section > .section-title { margin-bottom: 14px; }
.shots-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.shot { flex: 0 0 auto; height: 160px; aspect-ratio: 16/9; border-radius: 10px; object-fit: cover; background: var(--bg3); cursor: zoom-in; scroll-snap-align: start; border: 1px solid var(--border); }
.mini-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.mini-card { flex: 0 0 auto; width: 112px; cursor: pointer; }
.mini-card.static { cursor: default; }
.mini-card img, .mini-card .mini-ph { width: 112px; aspect-ratio: 3/4; object-fit: cover; border-radius: 8px; background: var(--bg3); display: flex; align-items: center; justify-content: center; color: var(--muted); border: 1px solid var(--border); }
.mini-card .mini-title { font-size: 0.78rem; font-weight: 500; margin-top: 6px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-card .mini-meta { font-size: 0.7rem; color: var(--muted); margin-top: 2px; }
.track-panel { margin-top: 18px; padding: 16px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--card-radius); display: grid; gap: 14px; max-width: 680px; }
.track-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.track-panel label { margin-bottom: 4px; font-size: 0.78rem; }
.track-panel input[type=number], .track-panel input[type=date] { padding: 8px 10px; font-size: 0.88rem; }
.rd-table { width: 100%; max-width: 680px; border-collapse: collapse; font-size: 0.85rem; }
.rd-table td { padding: 7px 10px; border-bottom: 1px solid var(--border); }
.rd-table td:last-child { text-align: right; color: var(--muted); }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 450; display: flex; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; }
.rating-chip { display: inline-flex; align-items: center; gap: 6px; }
.rating-chip strong { color: var(--accent); }
.stat-hours { font-variant-numeric: tabular-nums; }
.platform-pills { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.platform-pills span { font-size: 0.62rem; padding: 1px 6px; border-radius: 10px; background: rgba(255,255,255,0.1); color: var(--text); }
.cal-approx-title { font-weight: 600; font-size: 0.95rem; margin: 32px 0 4px; }
.cal-approx-sub { color: var(--muted); font-size: 0.8rem; margin-bottom: 12px; }
