/* ============================================================
   DKtorrent — Cyan theme, full-width layout
   ============================================================ */

:root {
  --accent-1: #22d3ee;
  --accent-2: #0891b2;
  --accent-soft: rgba(34, 211, 238, 0.10);
  --accent-border: rgba(34, 211, 238, 0.25);
  --accent-glow: rgba(34, 211, 238, 0.18);

  --bg: #0a0a0c;
  --surface: rgba(255, 255, 255, 0.02);
  --surface-hover: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  --text: #e0e0e0;
  --text-muted: #888;
  --text-dim: #555;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(ellipse 600px 400px at 10% 20%, rgba(34, 211, 238, 0.10), transparent),
    radial-gradient(ellipse 500px 500px at 85% 15%, rgba(8, 145, 178, 0.08), transparent),
    radial-gradient(ellipse 400px 300px at 50% 80%, rgba(59, 130, 246, 0.06), transparent);
  min-height: 100vh;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

.hidden { display: none !important; }

/* ===== HEADER ===== */
header {
  padding: 0.8rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 12, 0.7);
}
.header-left, .header-right { display: flex; align-items: center; gap: 0.6rem; }

/* ===== MODE SWITCHER ===== */
.mode-switcher {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 2px;
  padding: 3px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 10px;
  z-index: 1;
}
@media (max-width: 720px) {
  /* Sur petit écran, on revient en flow normal pour éviter les chevauchements */
  .mode-switcher { position: static; transform: none; }
}
.mode-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  min-width: 110px;
  background: transparent;
  border: none;
  border-radius: 7px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.mode-btn:hover { color: #ddd; background: rgba(255,255,255,0.04); }
.mode-btn.active {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #052238;
  box-shadow: 0 1px 4px rgba(34, 211, 238, 0.3);
}
.mode-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: currentColor;
}
@media (max-width: 720px) {
  .mode-label { display: none; }
  .mode-btn { padding: 0.4rem 0.55rem; }
}
.header-logo-link { cursor: pointer; display: flex; align-items: center; }
.header-logo-link:hover { opacity: 0.85; }
.header-logo { height: 28px; }

.indexer-status {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.indexer-status:hover { background: var(--surface-hover); border-color: var(--border-hover); }
.indexer-status .status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: all 0.2s;
}
.indexer-status.ok .status-dot { background: #22c55e; box-shadow: 0 0 6px rgba(34, 197, 94, 0.6); }
.indexer-status.ok { color: #4ade80; border-color: rgba(34, 197, 94, 0.18); }
.indexer-status.err .status-dot { background: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.6); }
.indexer-status.err { color: #f87171; border-color: rgba(239, 68, 68, 0.2); }
.indexer-status.warn .status-dot { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, 0.6); }
.indexer-status.warn { color: #fbbf24; border-color: rgba(245, 158, 11, 0.22); }

/* === Badge VPN dans le header (check IP qBit vs host) === */
.vpn-status {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.vpn-status:hover { background: var(--surface-hover); border-color: var(--border-hover); }
.vpn-status .vpn-icon { font-size: 0.85rem; line-height: 1; }
.vpn-status.checking { color: var(--text-dim); }
.vpn-status.ok       { color: #4ade80; border-color: rgba(34, 197, 94, 0.25); background: rgba(34, 197, 94, 0.06); }
.vpn-status.unknown  { color: #fbbf24; border-color: rgba(245, 158, 11, 0.25); background: rgba(245, 158, 11, 0.06); }
.vpn-status.leak     {
  color: #fef2f2;
  background: #dc2626;
  border-color: #991b1b;
  box-shadow: 0 0 16px rgba(220, 38, 38, 0.55);
  animation: vpnLeakPulse 1.2s ease-in-out infinite;
}
@keyframes vpnLeakPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(220, 38, 38, 0.55); }
  50%      { box-shadow: 0 0 26px rgba(220, 38, 38, 0.95); }
}

/* === Bouton téléchargements dans le header === */
.downloads-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.downloads-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  color: #ddd;
}
.downloads-btn.has-active {
  background: rgba(34, 211, 238, 0.10);
  border-color: var(--accent-border);
  color: var(--accent-1);
}
.downloads-btn.has-active:hover { background: rgba(34, 211, 238, 0.16); }
.downloads-btn svg { stroke: currentColor; }
.downloads-count {
  background: var(--accent-1);
  color: #052238;
  font-weight: 800;
  font-size: 0.68rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
}
.downloads-count.hidden { display: none; }
@media (max-width: 720px) { .downloads-btn .downloads-label { display: none; } }

/* === Modal "Choisir la catégorie" === */
.cat-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  z-index: 90;
  animation: fadeIn 0.15s ease-out;
}
.cat-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 540px;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 4rem);
  background: rgba(18, 18, 22, 0.98);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 60px rgba(0,0,0,0.6);
  z-index: 95;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: catModalIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes catModalIn {
  from { opacity: 0; transform: translate(-50%, -48%) scale(0.96); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.cat-modal.hidden, .cat-modal-overlay.hidden { display: none; }

.cat-modal-header {
  padding: 1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.7rem;
  border-bottom: 1px solid var(--border);
}
.cat-modal-header h3 { font-size: 1.05rem; color: #fff; margin: 0 0 0.3rem 0; }
.cat-modal-context {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 380px;
}
.cat-modal-close {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.cat-modal-close:hover { color: #fff; border-color: var(--border-hover); background: var(--surface); }

.cat-modal-options {
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
}
.cat-modal .wizard-cat-btn { padding: 0.85rem 1rem; }

/* Modal de confirmation : actions verticales */
.confirm-actions {
  padding: 0.8rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.confirm-action {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}
.confirm-action:hover { background: var(--surface-hover); border-color: var(--border-hover); }
.confirm-action .confirm-icon { font-size: 1.1rem; flex-shrink: 0; }
.confirm-action .confirm-info { flex: 1; min-width: 0; }
.confirm-action .confirm-label { display: block; color: #fff; }
.confirm-action .confirm-desc { display: block; color: var(--text-muted); font-size: 0.78rem; font-weight: 500; margin-top: 0.1rem; }
.confirm-action.secondary { background: transparent; }
.confirm-action.secondary .confirm-label { color: var(--text-muted); }
.confirm-action.danger { border-color: rgba(239, 68, 68, 0.3); }
.confirm-action.danger:hover { background: rgba(239, 68, 68, 0.06); border-color: rgba(239, 68, 68, 0.5); }
.confirm-action.danger .confirm-label { color: #f87171; }

/* === Modal Aperçu === */
.sample-body { padding: 1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: 0.8rem; }
.sample-progress {
  height: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  overflow: hidden;
}
.sample-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-1));
  transition: width 0.4s ease-out;
}
.sample-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.sample-stats strong { color: #fff; font-weight: 600; }
.sample-status-text {
  font-size: 0.85rem;
  color: #ddd;
  text-align: center;
  padding: 0.4rem 0;
}
.sample-status-text.ready { color: #4ade80; font-weight: 600; }
.sample-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}
.sample-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  min-width: 140px;
}
.sample-action:hover { border-color: var(--accent-border); color: var(--accent-1); }
.sample-action.primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #052238;
  border-color: transparent;
}
.sample-action.primary:hover { color: #052238; transform: translateY(-1px); }
.sample-hint {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}
.sample-url {
  font-family: ui-monospace, monospace;
  font-size: 0.74rem;
  color: var(--text-muted);
  background: rgba(0,0,0,0.3);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  word-break: break-all;
  border: 1px solid var(--border);
}
.cat-modal .wizard-cat-path {
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === Panel "Mes téléchargements" === */
.downloads-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 70;
  animation: fadeIn 0.15s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.downloads-panel {
  position: fixed;
  top: 60px;
  right: 1rem;
  width: 460px;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 80px);
  background: rgba(18, 18, 22, 0.97);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(20px);
  box-shadow: 0 14px 50px rgba(0,0,0,0.55);
  z-index: 80;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: panelIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.downloads-panel.hidden, .downloads-overlay.hidden { display: none; }
@keyframes panelIn {
  from { opacity: 0; transform: translateX(20px) scale(0.98); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.downloads-panel-header {
  padding: 0.85rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.7rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.downloads-panel-header h2 { font-size: 1rem; color: #fff; margin: 0; }
.downloads-summary { font-size: 0.75rem; color: var(--text-muted); }
.downloads-close {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.downloads-close:hover { color: #fff; border-color: var(--border-hover); background: var(--surface); }

.downloads-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.downloads-tab {
  flex: 1;
  padding: 0.4rem;
  background: transparent;
  border: none;
  border-radius: 7px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.downloads-tab:hover { background: var(--surface); color: #ddd; }
.downloads-tab.active { background: var(--accent-soft); color: var(--accent-1); }

.downloads-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.download-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0.7rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: background 0.15s;
}
.download-item:hover { background: var(--surface-hover); }

.download-name {
  font-size: 0.84rem;
  color: #fff;
  font-weight: 500;
  line-height: 1.35;
  word-break: break-word;
}
.download-meta-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.download-cat {
  background: rgba(34, 211, 238, 0.1);
  color: var(--accent-1);
  padding: 0.08rem 0.45rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.66rem;
}
.download-source {
  margin-left: auto;
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  padding: 0.08rem 0.55rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.02em;
}
.download-state-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-dim); }
.download-state-dot.downloading { background: #22c55e; box-shadow: 0 0 6px rgba(34, 197, 94, 0.6); animation: pulse 2s ease-in-out infinite; }
.download-state-dot.stalled { background: #f59e0b; }
.download-state-dot.paused { background: #6b7280; }
.download-state-dot.completed { background: var(--accent-1); }
.download-state-dot.error { background: #ef4444; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.download-progress {
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.download-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-1));
  border-radius: 3px;
  transition: width 0.3s ease-out;
}
.download-progress-bar.completed { background: linear-gradient(90deg, #16a34a, #22c55e); }

.download-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.download-stats strong { color: #ddd; font-weight: 600; }
.download-actions {
  display: flex;
  gap: 0.3rem;
}
.download-action-btn {
  padding: 0.25rem 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.12s;
}
.download-action-btn:hover { color: #fff; border-color: var(--border-hover); }
.download-action-btn.danger:hover { color: #f87171; border-color: rgba(239, 68, 68, 0.4); background: rgba(239, 68, 68, 0.06); }

.downloads-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* === Health panel === */
.health-list {
  padding: 0.6rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.health-item {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
}
.health-item.ok { border-color: rgba(34, 197, 94, 0.18); }
.health-item.ko { border-color: rgba(239, 68, 68, 0.25); background: rgba(239, 68, 68, 0.04); }
.health-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--text-dim);
}
.health-dot.ok  { background: #22c55e; box-shadow: 0 0 6px rgba(34, 197, 94, 0.6); }
.health-dot.ko  { background: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.6); }
.health-dot.warn { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, 0.6); }
.health-info-name { color: #fff; font-weight: 600; font-size: 0.86rem; }
.health-info-detail { color: var(--text-muted); font-size: 0.72rem; }
.health-time { font-family: ui-monospace, monospace; font-size: 0.72rem; color: var(--text-dim); }
.health-time.slow { color: #fbbf24; }
.health-time.error { color: #f87171; }
.downloads-empty .empty-icon {
  font-size: 2.5rem;
  opacity: 0.4;
  margin-bottom: 0.5rem;
}

.header-icon-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.header-icon-btn:hover { background: var(--surface-hover); color: #ccc; border-color: var(--border-hover); }
.header-icon-btn.spinning svg { animation: spin 0.8s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ===== MAIN — FULL WIDTH ===== */
main {
  flex: 1;
  padding: 1.2rem 1.5rem 3rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* ===== SEARCH HERO (centré, taille fixe) ===== */
.search-hero {
  display: flex;
  justify-content: center;
  padding: 0.8rem 0 0.3rem;
}
.search-form {
  position: relative;
  width: 100%;
  max-width: 760px;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 18px;
  display: flex;
  align-items: center;
  pointer-events: none;
  color: var(--text-muted);
  transition: color 0.2s;
}
.search-form:focus-within .search-icon { color: var(--accent-1); }

.search-input {
  width: 100%;
  padding: 1rem 56px 1rem 50px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: all 0.2s;
}
.search-input::placeholder { color: var(--text-dim); }
.search-input:hover { border-color: var(--border-hover); }
.search-input:focus {
  border-color: var(--accent-border);
  background: var(--surface-hover);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.search-input::-webkit-search-cancel-button { display: none; }

.search-submit {
  position: absolute;
  right: 8px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border: none;
  border-radius: 10px;
  color: #052238;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 2px 8px rgba(34, 211, 238, 0.3);
}
.search-submit:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(34, 211, 238, 0.45); }
.search-submit:active { transform: translateY(0); }

/* ===== AUTOCOMPLETE DROPDOWN ===== */
.suggestions-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(18, 18, 22, 0.97);
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(34, 211, 238, 0.05);
  max-height: 480px;
  overflow-y: auto;
  z-index: 60;
  padding: 0.4rem;
  animation: dropdownIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.suggestion-item {
  display: flex;
  gap: 0.7rem;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.1s;
  align-items: center;
  border: 1px solid transparent;
}
.suggestion-item.active,
.suggestion-item:hover {
  background: var(--surface-hover);
  border-color: var(--accent-border);
}
.suggestion-poster {
  width: 42px;
  height: 63px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.03);
}
.suggestion-poster.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 1.2rem;
  border: 1px dashed var(--border);
}
.suggestion-info { display: flex; flex-direction: column; gap: 0.18rem; min-width: 0; flex: 1; }
.suggestion-title-row { display: flex; align-items: baseline; gap: 0.4rem; min-width: 0; }
.suggestion-name {
  font-weight: 500;
  color: #fff;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.suggestion-year { color: var(--text-dim); font-size: 0.78rem; flex-shrink: 0; }
.suggestion-meta {
  display: flex;
  gap: 0.6rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  align-items: center;
}
.suggestion-rating { color: #facc15; font-weight: 600; }
.suggestion-type {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.05rem 0.4rem;
  background: rgba(34, 211, 238, 0.08);
  color: var(--accent-1);
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
}
.suggestion-type.tv { background: rgba(168, 85, 247, 0.10); color: #c084fc; }
.suggestion-original { color: var(--text-dim); font-style: italic; }
.suggestions-empty { padding: 1rem; text-align: center; color: var(--text-dim); font-size: 0.85rem; }

/* ===== FILTERS BAR (full width) ===== */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1.4rem;
  padding: 0.7rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filter-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}
.filter-chips {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.chip {
  padding: 0.28rem 0.65rem;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.chip:hover { background: var(--surface-hover); color: #ccc; border-color: var(--border-hover); }
.chip.active {
  background: var(--accent-soft);
  color: var(--accent-1);
  border-color: var(--accent-border);
}

.filter-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-left: auto;
}
.filter-control { display: flex; align-items: center; gap: 0.4rem; }
.filter-select, .filter-input {
  padding: 0.32rem 0.65rem;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.78rem;
  outline: none;
  transition: all 0.15s;
  cursor: pointer;
}
.filter-input { width: 70px; }
.filter-select:hover, .filter-input:hover { border-color: var(--border-hover); }
.filter-select:focus, .filter-input:focus { border-color: var(--accent-border); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ===== RESULTS META ===== */
.results-meta {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
#results-count strong { color: var(--accent-1); font-weight: 700; }
.results-time { color: var(--text-dim); font-size: 0.72rem; }

/* ===== MODE IA — WIZARD plein écran ===== */
.ai-wizard {
  display: none;
  flex: 1;
  width: 100%;
  padding: 2rem 1.5rem 4rem;
  position: relative;
  overflow-y: auto;
  min-height: 0;
}
body[data-mode="ai"] main { display: none; }
body[data-mode="ai"] .ai-wizard { display: flex; }
body:not([data-mode="ai"]) .ai-wizard { display: none !important; }

/* Une seule étape visible à la fois */
.wizard-step {
  display: none;
  flex: 1;
  width: 100%;
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(1.5rem, 6vh, 4rem);
  padding-bottom: clamp(1.5rem, 4vh, 3rem);
  animation: stepIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.wizard-step.active { display: flex; }
/* Étapes avec contenu long (results/détails/catégorie) : moins d'air en haut */
.wizard-step[data-step="4"],
.wizard-step[data-step="5"],
.wizard-step[data-step="6"] {
  padding-top: clamp(1rem, 2.5vh, 1.5rem);
}
/* padding-bottom robuste appliqué sur le conteneur interne (workaround scroll) */
.wizard-results-content {
  padding-bottom: 2.5rem;
}
/* Loading + succès : recentrer (peu de contenu, mieux au milieu) */
.wizard-step[data-step="3"],
.wizard-step[data-step="7"] {
  align-items: center;
  padding-top: 0;
}
@keyframes stepIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.wizard-content {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 1rem;
}

.wizard-greeting {
  font-size: 1rem;
  color: var(--accent-1);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.wizard-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}
.wizard-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0;
}

/* Searchbar wizard (étape 1) */
.wizard-search {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin-top: 1.5rem;
}
.wizard-search-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s;
  display: flex;
}
.wizard-search:focus-within .wizard-search-icon { color: var(--accent-1); }
.wizard-input {
  width: 100%;
  padding: 1.2rem 1.4rem 1.2rem 60px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 1.15rem;
  outline: none;
  transition: all 0.2s;
  font-weight: 500;
}
.wizard-input::placeholder { color: var(--text-dim); font-weight: 400; }
.wizard-input:hover { border-color: var(--border-hover); }
.wizard-input:focus {
  border-color: var(--accent-border);
  background: var(--surface-hover);
  box-shadow: 0 0 0 5px var(--accent-soft), 0 8px 32px rgba(0,0,0,0.3);
}
.wizard-input::-webkit-search-cancel-button { display: none; }

/* Suggestions wizard — plus visuelles que le dropdown classique */
.wizard-suggest {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: rgba(18, 18, 22, 0.97);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 50px rgba(0,0,0,0.55);
  max-height: min(60vh, 480px);
  overflow-y: auto;
  z-index: 20;
  padding: 0.5rem;
  animation: dropdownIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}
.wizard-suggest-item {
  display: flex;
  gap: 1rem;
  padding: 0.7rem 0.8rem;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.1s;
  align-items: center;
  border: 1px solid transparent;
}
.wizard-suggest-item.active,
.wizard-suggest-item:hover {
  background: var(--surface-hover);
  border-color: var(--accent-border);
}
.wizard-suggest-poster {
  width: 56px;
  height: 84px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
}
.wizard-suggest-poster.placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--text-dim);
  border: 1px dashed var(--border);
}
.wizard-suggest-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.wizard-suggest-title {
  color: #fff; font-weight: 600; font-size: 1rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wizard-suggest-meta {
  display: flex; gap: 0.7rem; font-size: 0.82rem; color: var(--text-muted);
  align-items: center; flex-wrap: wrap;
}
.wizard-suggest-rating { color: #facc15; font-weight: 700; }
.wizard-suggest-original { color: var(--text-dim); font-style: italic; font-size: 0.78rem; }

/* Étape 2 : Picked title preview + langue */
.wizard-back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.wizard-back:hover { color: #fff; border-color: var(--border-hover); background: rgba(255,255,255,0.06); }

.wizard-picked {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 540px;
  margin-bottom: 0.5rem;
}
.wizard-picked-change {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
  white-space: nowrap;
}
.wizard-picked-change:hover {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-1);
}
@media (max-width: 480px) {
  .wizard-picked-change span:last-child { display: none; }
}
.wizard-picked-poster {
  width: 50px;
  height: 75px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.wizard-picked-info { flex: 1; min-width: 0; text-align: left; }
.wizard-picked-title {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wizard-picked-meta { color: var(--text-muted); font-size: 0.8rem; margin-top: 0.15rem; }

.wizard-lang-options {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: 100%;
  max-width: 500px;
  margin-top: 0.7rem;
}
.wizard-lang-btn {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.1rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  width: 100%;
}
.wizard-lang-btn:hover {
  background: var(--surface-hover);
  border-color: var(--accent-border);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 211, 238, 0.15);
}
.wizard-lang-flag {
  font-size: 2rem;
  flex-shrink: 0;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wizard-lang-text {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  flex: 1;
  min-width: 0;
}
.wizard-lang-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.wizard-lang-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Étape 3 : Loading (SVG spinner net) */
.wizard-loading-content {
  align-items: center;
  text-align: center;
}
.wizard-spinner {
  width: 88px;
  height: 88px;
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 0 24px rgba(34, 211, 238, 0.35));
}
.wizard-spinner-arc {
  transform-origin: 50% 50%;
  animation: spinnerArc 1.2s linear infinite;
}
@keyframes spinnerArc {
  from { transform: rotate(-90deg); }
  to { transform: rotate(270deg); }
}

.wizard-progress {
  list-style: none;
  margin-top: 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  min-width: 320px;
  text-align: left;
}
.wizard-progress li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  animation: cardIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.wizard-progress li.done { color: #4ade80; border-color: rgba(34, 197, 94, 0.18); }
.wizard-progress li.active { color: var(--accent-1); border-color: var(--accent-border); }
.wizard-progress-icon { width: 14px; height: 14px; flex-shrink: 0; }

/* Étape 4 : Résultats */
.wizard-results-content {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.wizard-tmdb-hero {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.wizard-tmdb-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  opacity: 0.07;
  filter: blur(10px);
  z-index: 0;
}
.wizard-tmdb-hero > * { position: relative; z-index: 1; }
.wizard-tmdb-poster {
  width: 160px;
  flex-shrink: 0;
  aspect-ratio: 2/3;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  background: rgba(0,0,0,0.3);
}
.wizard-tmdb-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wizard-tmdb-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.wizard-tmdb-info h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.2;
  word-break: break-word;
}
.wizard-tmdb-info .tmdb-year { color: var(--text-muted); font-weight: 500; }
.wizard-tmdb-info .tmdb-meta-row { font-size: 0.9rem; }
.wizard-tmdb-info .tmdb-overview { font-size: 0.95rem; line-height: 1.6; color: #d0d0d0; }

.wizard-recos-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.wizard-recos-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.wizard-ai-source {
  font-size: 0.78rem;
  color: var(--text-dim);
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}

.wizard-recommendations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  align-items: stretch;
}
.wizard-reco-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.2rem 1.3rem;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--accent-border);
  border-radius: 14px;
  transition: all 0.2s;
  cursor: pointer;
  min-height: 100%;
}
.wizard-reco-reason { flex: 1; }
.wizard-reco-card:hover {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.07), rgba(255, 255, 255, 0.03));
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(34, 211, 238, 0.15);
}
.wizard-reco-rank {
  position: absolute;
  top: -10px;
  left: 18px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #052238;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  box-shadow: 0 3px 10px rgba(34, 211, 238, 0.4);
}
.wizard-reco-reason {
  font-size: 1rem;
  color: #fff;
  line-height: 1.5;
  font-style: italic;
  font-weight: 500;
  margin-top: 0.4rem;
}
.wizard-reco-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  font-size: 0.83rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}
.wizard-reco-meta .qual {
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent-1);
  padding: 0.1rem 0.5rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.75rem;
}
.wizard-reco-meta .lang {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  padding: 0.1rem 0.5rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.75rem;
}
.wizard-reco-meta .seeds-strong { color: #4ade80; font-weight: 700; }
.wizard-reco-meta .seeds-mid { color: #facc15; font-weight: 700; }

.wizard-reco-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.3rem;
}
.wizard-reco-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.wizard-reco-action:hover { border-color: var(--accent-border); color: var(--accent-1); }
.wizard-reco-action.primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #052238;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(34, 211, 238, 0.3);
}
.wizard-reco-action.primary:hover { color: #052238; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(34, 211, 238, 0.45); }

/* Étape 5 : détails enrichis */
.wizard-detail-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
}
.wizard-detail-h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.7rem 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.wizard-detail-release {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.7rem 1.4rem;
  font-size: 0.86rem;
}
.wizard-detail-release-item { display: flex; flex-direction: column; gap: 0.1rem; }
.wizard-detail-release-item .lbl {
  color: var(--text-dim); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600;
}
.wizard-detail-release-item .val { color: #ddd; font-weight: 500; word-break: break-word; }
.wizard-detail-release-item .val.full {
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  background: rgba(0,0,0,0.25);
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  word-break: break-all;
}
.wizard-detail-release-item.full-row { grid-column: 1 / -1; }

.wizard-detail-analysis {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.wizard-analysis-loading {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--text-muted); font-size: 0.88rem;
}
.wizard-analysis-loading .spinner { width: 14px; height: 14px; border-width: 2px; }
.wizard-analysis-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0.6rem;
  align-items: start;
  padding: 0.4rem 0;
}
.wizard-analysis-row .icon { font-size: 1.1rem; line-height: 1.3; }
.wizard-analysis-row .label { font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; margin-bottom: 0.15rem; }
.wizard-analysis-row .text { color: #ddd; font-size: 0.9rem; line-height: 1.45; }
.wizard-verdict {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 0.4rem;
}
.wizard-verdict.EXCELLENT { background: rgba(34, 197, 94, 0.12); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.25); }
.wizard-verdict.BON       { background: rgba(34, 211, 238, 0.10); color: var(--accent-1); border: 1px solid var(--accent-border); }
.wizard-verdict.MOYEN     { background: rgba(245, 158, 11, 0.10); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.25); }
.wizard-verdict.RISQUE    { background: rgba(239, 68, 68, 0.10); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.25); }

.wizard-detail-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}

/* Étape 6 : choix catégorie */
.wizard-cat-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.7rem;
  width: 100%;
  max-width: 540px;
  margin-top: 0.5rem;
}
.wizard-cat-btn {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}
.wizard-cat-btn:hover {
  background: var(--surface-hover);
  border-color: var(--accent-border);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(34, 211, 238, 0.15);
}
.wizard-cat-btn.suggested {
  border-color: var(--accent-border);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.07), rgba(34, 211, 238, 0.02));
}
.wizard-cat-btn { position: relative; }
.wizard-cat-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 40px;
  display: flex;
  justify-content: center;
}
.wizard-cat-info { flex: 1; min-width: 0; }
.wizard-cat-name { color: #fff; font-weight: 700; font-size: 1rem; }
.wizard-cat-path {
  color: var(--text-dim);
  font-size: 0.74rem;
  font-family: ui-monospace, monospace;
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Étape 6 : succès */
.wizard-success-content { text-align: center; align-items: center; }
.wizard-success-check {
  width: 96px;
  height: 96px;
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.4));
}
.wizard-success-check svg { width: 100%; height: 100%; }
.success-circle {
  stroke-dasharray: 176;
  stroke-dashoffset: 176;
  animation: drawCircle 0.5s ease-out forwards;
}
.success-tick {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: drawTick 0.4s 0.4s ease-out forwards;
}
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawTick { to { stroke-dashoffset: 0; } }

.wizard-success-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
}
.wizard-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.wizard-action-btn:hover { border-color: var(--border-hover); background: var(--surface-hover); }
.wizard-action-btn.primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #052238;
  border-color: transparent;
  box-shadow: 0 3px 12px rgba(34, 211, 238, 0.3);
}
.wizard-action-btn.primary:hover {
  color: #052238;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(34, 211, 238, 0.45);
}

/* Barre de "rerolls" focus sous les recos IA */
.wizard-focus-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.7rem 0.9rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 10px;
  margin-top: 0.4rem;
}
.wizard-focus-bar.hidden { display: none; }
.wizard-focus-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-right: 0.2rem;
}
.wizard-focus-btn {
  padding: 0.35rem 0.7rem;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.wizard-focus-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-1);
}
.wizard-focus-btn.active {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #052238;
  border-color: transparent;
  font-weight: 700;
}
.wizard-focus-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

.wizard-empty, .wizard-error {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.wizard-empty button, .wizard-error button {
  margin-top: 1rem;
  padding: 0.55rem 1rem;
  background: var(--surface);
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  color: var(--accent-1);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .wizard-title { font-size: 1.7rem; }
  .wizard-subtitle { font-size: 0.95rem; }
  .wizard-tmdb-hero { flex-direction: column; align-items: center; text-align: center; }
  .wizard-tmdb-poster { width: 130px; }
}

/* (Le mode "Recherche" affiche tous les filtres, pas de masquage spécifique) */

/* ===== RESULTS LIST (full width) ===== */
.results {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* ===== CARD (résultat) ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  transition: all 0.18s;
  overflow: hidden;
}
.card:hover {
  background: var(--surface-hover);
  border-color: rgba(34, 211, 238, 0.18);
}
.card.expanded {
  background: var(--surface-strong);
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 6px 24px rgba(0,0,0,0.3);
}

.card-summary {
  padding: 0.7rem 0.9rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  user-select: none;
}
.card-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.card.expanded .card-title { white-space: normal; }
.card-badges {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.73rem;
  color: var(--text-muted);
  flex-shrink: 0;
  white-space: nowrap;
}
.card-meta-item { display: inline-flex; align-items: center; gap: 0.25rem; }
.card-meta-sep { color: var(--text-dim); }
.indexer-name { color: #ddd; font-weight: 500; }
.seeders-strong { color: #4ade80; font-weight: 600; }
.seeders-mid    { color: #facc15; font-weight: 600; }
.seeders-weak   { color: #fb923c; font-weight: 600; }
.seeders-dead   { color: #ef4444; font-weight: 600; }

.card-actions {
  display: flex;
  gap: 0.3rem;
  flex-shrink: 0;
}
.card-action {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.12s;
  text-decoration: none;
}
.card-action:hover { color: var(--accent-1); border-color: var(--accent-border); background: var(--accent-soft); }
.card-action svg { width: 14px; height: 14px; }
.card-action.expand-btn { color: var(--accent-1); }
.card.expanded .expand-btn svg { transform: rotate(180deg); }
.expand-btn svg { transition: transform 0.2s; }

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.13rem 0.5rem;
  border-radius: 5px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge-q-2160 { background: rgba(168, 85, 247, 0.12); color: #c084fc; border-color: rgba(168, 85, 247, 0.25); }
.badge-q-1080 { background: rgba(34, 211, 238, 0.12); color: #22d3ee; border-color: rgba(34, 211, 238, 0.25); }
.badge-q-720  { background: rgba(59, 130, 246, 0.12); color: #60a5fa; border-color: rgba(59, 130, 246, 0.25); }
.badge-q-sd   { background: rgba(255, 255, 255, 0.04); color: #999; border-color: var(--border); }
.badge-source { background: rgba(245, 158, 11, 0.10); color: #fbbf24; border-color: rgba(245, 158, 11, 0.22); }
.badge-codec  { background: rgba(255,255,255,0.03); color: #aaa; border-color: var(--border); }
.badge-lang-fr     { background: rgba(34, 197, 94, 0.12); color: #4ade80; border-color: rgba(34, 197, 94, 0.25); }
.badge-lang-multi  { background: rgba(20, 184, 166, 0.12); color: #2dd4bf; border-color: rgba(20, 184, 166, 0.25); }
.badge-lang-vostfr { background: rgba(249, 115, 22, 0.12); color: #fb923c; border-color: rgba(249, 115, 22, 0.25); }
.badge-hdr    { background: rgba(236, 72, 153, 0.10); color: #f472b6; border-color: rgba(236, 72, 153, 0.22); }
.badge-audio  { background: rgba(124, 58, 237, 0.10); color: #a78bfa; border-color: rgba(124, 58, 237, 0.22); }
.badge-scope-warn { background: rgba(249, 115, 22, 0.10); color: #fb923c; border-color: rgba(249, 115, 22, 0.30); font-weight: 700; }
.badge-scope-info { background: rgba(168, 85, 247, 0.10); color: #c084fc; border-color: rgba(168, 85, 247, 0.25); }

/* ===== CARD DETAILS (déplié) ===== */
.card-details {
  border-top: 1px solid var(--border);
  padding: 1.2rem 1.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 1.6rem;
  animation: detailsIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes detailsIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.details-left-pane {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

/* TMDB hero : poster gauche + infos droite */
.tmdb-hero {
  display: flex;
  gap: 1.3rem;
  align-items: flex-start;
}
.tmdb-poster {
  width: 160px;
  aspect-ratio: 2 / 3;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.tmdb-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tmdb-poster.placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.02);
}

.tmdb-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.tmdb-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0;
  word-break: break-word;
}
.tmdb-year { color: var(--text-muted); font-weight: 500; }
.tmdb-original-title {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.85rem;
  margin-top: -0.3rem;
}
.tmdb-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  font-size: 0.83rem;
  align-items: center;
  color: var(--text-muted);
  margin-top: 0.1rem;
}
.tmdb-rating { color: #facc15; font-weight: 700; }
.tmdb-genres { color: #ddd; }
.tmdb-type {
  background: rgba(168, 85, 247, 0.10);
  color: #c084fc;
  padding: 0.1rem 0.5rem;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tmdb-tagline {
  color: #aaa;
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 0.2rem;
}
.tmdb-overview {
  color: #d0d0d0;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-top: 0.3rem;
}
.tmdb-overview.empty {
  color: var(--text-dim);
  font-style: italic;
}
.tmdb-link {
  margin-top: auto;
  padding-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  align-self: flex-start;
  transition: color 0.15s;
}
.tmdb-link:hover { color: var(--accent-1); }

/* Strip horizontal infos tracker */
.tracker-strip {
  display: flex;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding: 0.8rem 1.1rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  border-radius: 9px;
}
.tracker-strip-item {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 70px;
}
.ts-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}
.ts-value {
  font-size: 0.95rem;
  color: #ddd;
  font-weight: 600;
}

.details-right {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.details-action-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  text-decoration: none;
}
.details-action-btn:hover { border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent-1); }
.details-action-btn.primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #052238;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(34, 211, 238, 0.25);
  font-weight: 600;
}
.details-action-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(34, 211, 238, 0.4); color: #052238; }
.details-action-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.details-loading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.details-error {
  grid-column: 1 / -1;
  padding: 1.5rem;
  text-align: center;
  color: #f87171;
  font-size: 0.85rem;
}

/* ===== STATES ===== */
.state-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.state-logo { width: 64px; height: 64px; opacity: 0.55; }
.state-icon { color: var(--text-dim); }
.state-icon.error {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 50%;
  color: #f87171;
  font-size: 1.5rem;
  font-weight: 700;
}
.state-title { font-size: 1.05rem; font-weight: 600; color: #ddd; }
.state-desc { font-size: 0.85rem; color: var(--text-muted); text-align: center; }

.spinner {
  width: 22px; height: 22px;
  border: 2.5px solid var(--border);
  border-top-color: var(--accent-1);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ===== TOASTS ===== */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 100;
  pointer-events: none;
}
.toast {
  padding: 0.65rem 1rem;
  background: rgba(20, 20, 24, 0.96);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.85rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
  display: flex; align-items: center; gap: 0.5rem;
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}
.toast.success { border-color: rgba(34, 197, 94, 0.3); }
.toast.success::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.toast.error { border-color: rgba(239, 68, 68, 0.3); }
.toast.error::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #ef4444; }
.toast.info::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-1); box-shadow: 0 0 8px var(--accent-1); }
@keyframes toastIn {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.toast.fade-out { animation: toastOut 0.2s forwards; }
@keyframes toastOut {
  to { transform: translateX(20px); opacity: 0; }
}

/* ===== CARD ANIM ===== */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.card { animation: cardIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .card-details { grid-template-columns: 1fr; }
  .details-right { flex-direction: row; flex-wrap: wrap; }
  .details-action-btn { flex: 1 1 200px; }
}
@media (max-width: 720px) {
  main { padding: 1rem; }
  header { padding: 0.6rem 1rem; }
  .indexer-status .status-text { display: none; }
  .filter-controls { margin-left: 0; }
  .card-summary { grid-template-columns: 1fr; gap: 0.5rem; }
  .card-title { white-space: normal; }
  .details-left { flex-direction: column; }
  .details-poster, .details-poster.placeholder { width: 100%; max-width: 220px; }
}

/* ===== Login modal (auth protect) ===== */
.login-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 16, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}
.login-modal.hidden { display: none; }
.login-modal-content {
  background: var(--surface, #14181d);
  border: 1px solid var(--border, #2a2f36);
  border-radius: 14px;
  padding: 2.2rem 2.4rem;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  text-align: center;
}
.login-modal-content .login-logo {
  font-size: 2.4rem;
  margin-bottom: 0.6rem;
}
.login-modal-content h2 {
  font-size: 1.4rem;
  margin: 0 0 0.4rem 0;
  color: var(--accent-1, #22d3ee);
  letter-spacing: 0.04em;
}
.login-modal-content .login-hint {
  color: var(--text-muted, #94a3b8);
  font-size: 0.85rem;
  margin: 0 0 1.4rem 0;
}
.login-modal-content form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
#login-password {
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border, #2a2f36);
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border 0.15s;
}
#login-password:focus {
  border-color: var(--accent-1, #22d3ee);
}
#login-form button {
  padding: 0.7rem 1rem;
  background: var(--accent-1, #22d3ee);
  color: #0a0e12;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.15s;
  font-family: inherit;
}
#login-form button:hover { opacity: 0.85; }
#login-form button:disabled { opacity: 0.5; cursor: wait; }
.login-error {
  min-height: 1.2em;
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 0.4rem;
}

/* ============ Sniper ============ */
.sniper-btn { font-size: 1rem; }
.sniper-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 1rem;
}
.sniper-overlay.hidden { display: none; }
.sniper-modal {
  background: #161821; border: 1px solid #2a2d3a; border-radius: 12px;
  max-width: 780px; width: 100%; max-height: 90vh; display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.sniper-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.2rem; border-bottom: 1px solid #2a2d3a;
}
.sniper-header h2 { margin: 0; font-size: 1.05rem; }
.sniper-close {
  background: transparent; border: none; color: #aaa; cursor: pointer; padding: 0.3rem;
}
.sniper-close:hover { color: #fff; }
.sniper-body { padding: 1.2rem; overflow-y: auto; }

.sniper-pwd-form { display: flex; flex-direction: column; gap: 0.8rem; }
.sniper-pwd-form label { font-size: 0.85rem; color: #bbb; }
.sniper-pwd-form input {
  background: #0d0f17; border: 1px solid #2a2d3a; border-radius: 6px;
  color: #fff; padding: 0.6rem 0.8rem; font-size: 1rem;
}
.sniper-pwd-form button {
  background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff;
  border: none; border-radius: 6px; padding: 0.65rem 1rem; font-weight: 600;
  cursor: pointer; font-size: 0.95rem;
}
.sniper-pwd-form button:disabled { opacity: 0.5; cursor: not-allowed; }
.sniper-pwd-error { color: #ef4444; font-size: 0.85rem; min-height: 1.2em; }

.sniper-loading {
  text-align: center; padding: 2.5rem 1rem; color: #aaa;
}
.sniper-loading .spinner {
  font-size: 2rem; margin-bottom: 0.8rem;
  animation: sniperPulse 1.4s ease-in-out infinite;
}
@keyframes sniperPulse { 0%,100% { opacity: 0.4 } 50% { opacity: 1 } }

.sniper-stats {
  font-size: 0.8rem; color: #888; margin-bottom: 0.8rem; padding-bottom: 0.7rem;
  border-bottom: 1px solid #2a2d3a;
}
.sniper-pick {
  background: #1c1f2b; border: 1px solid #2a2d3a; border-radius: 8px;
  padding: 0.8rem 0.9rem; margin-bottom: 0.6rem;
}
.sniper-pick-head {
  display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 0.4rem;
}
.sniper-pick-score {
  background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff;
  border-radius: 6px; padding: 0.2rem 0.5rem; font-size: 0.78rem; font-weight: 700;
  flex-shrink: 0; min-width: 34px; text-align: center;
}
.sniper-pick-title {
  font-size: 0.92rem; color: #fff; font-weight: 600; line-height: 1.3;
  word-break: break-word;
}
.sniper-pick-meta {
  font-size: 0.78rem; color: #999; margin-bottom: 0.5rem;
}
.sniper-pick-meta .freeleech { color: #10b981; font-weight: 600; }
.sniper-pick-why {
  font-size: 0.82rem; color: #bbb; font-style: italic;
  margin-bottom: 0.55rem; line-height: 1.35;
}
.sniper-pick-actions { display: flex; gap: 0.4rem; }
.sniper-pick-actions button {
  background: #f59e0b; color: #1a1a1a; border: none; border-radius: 5px;
  padding: 0.4rem 0.85rem; font-weight: 600; cursor: pointer; font-size: 0.82rem;
}
.sniper-pick-actions button:hover { background: #fbbf24; }
.sniper-pick-actions button.secondary {
  background: transparent; border: 1px solid #444; color: #ccc;
}
.sniper-error {
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
  border-radius: 6px; padding: 0.8rem 1rem; color: #fca5a5;
}
.sniper-empty {
  text-align: center; padding: 2rem 1rem; color: #888;
}
