:root {
  --bg: #0b0b0f;
  --bg-soft: #16161d;
  --bg-card: #1f1f28;
  --line: #2c2c38;
  --text: #f2f2f5;
  --muted: #9a9aab;
  --accent: #ff5a3c;
  --accent-hover: #ff7559;
  --danger: #ff4d6d;
  --ok: #3ddc97;
  --radius: 8px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---------- Boutons et champs ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  padding: 10px 22px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.16);
  transition: background 0.15s, transform 0.1s;
}
.btn:hover { background: rgba(255, 255, 255, 0.26); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-light { background: #fff; color: #000; }
.btn-light:hover { background: #ddd; }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.btn-danger:hover { background: rgba(255, 77, 109, 0.12); }
.btn-small { padding: 6px 12px; font-size: 14px; }

label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }

.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  outline: none;
  transition: border-color 0.15s;
}
.input:focus { border-color: var(--accent); }
textarea.input { resize: vertical; min-height: 90px; }

.field { margin-bottom: 16px; }
.error { color: var(--danger); font-size: 14px; min-height: 20px; margin: 8px 0; }
.success { color: var(--ok); font-size: 14px; }

/* ---------- Logo et barre de navigation ---------- */

.logo {
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -1px;
  color: var(--accent);
  text-transform: uppercase;
}

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 4vw;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent);
  transition: background 0.3s;
}
.nav.scrolled { background: var(--bg); }
.nav-links { display: flex; gap: 20px; font-size: 15px; }
.nav-links a { color: #ccc; }
.nav-links a:hover, .nav-links a.active { color: #fff; font-weight: 600; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-search {
  width: 220px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.5);
  outline: none;
}
.nav-search:focus { border-color: #fff; }
.nav-user { font-size: 14px; font-weight: 600; color: var(--accent); }
.nav-user:hover, .nav-user.active { color: var(--accent-hover); }
.auth-note { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 22px 0 0; }

/* ---------- Accueil : grande bannière ---------- */

.hero {
  position: relative;
  height: 78vh;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  padding: 0 4vw 12vh;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -40px;
  background-size: cover;
  background-position: center 25%;
  filter: blur(28px) brightness(0.55);
  transform: scale(1.1);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(11, 11, 15, 0.95) 0%, rgba(11, 11, 15, 0.4) 60%, transparent 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 40%);
}
.hero-poster {
  position: absolute;
  right: 8vw;
  bottom: 14vh;
  z-index: 1;
  width: min(22vw, 300px);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}
.hero-content { position: relative; z-index: 2; max-width: 560px; }
.hero h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; margin: 0 0 14px; }
.hero p {
  color: #ddd;
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 22px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-actions { display: flex; gap: 12px; }
.meta { display: flex; gap: 12px; color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.meta .tag { border: 1px solid var(--muted); padding: 0 6px; border-radius: 3px; }

/* ---------- Rangées d'affiches ---------- */

.rows { position: relative; z-index: 3; margin-top: -8vh; padding-bottom: 60px; }
.row { margin-bottom: 36px; }
.row h2 { font-size: 20px; margin: 0 4vw 12px; }
.row-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 4vw 20px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.row-track::-webkit-scrollbar { display: none; }

.card {
  flex: 0 0 auto;
  width: 170px;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  scroll-snap-align: start;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.card:hover { transform: scale(1.07); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6); z-index: 2; }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px 10px 10px;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px;
  font-weight: 700;
  font-size: 18px;
  background: linear-gradient(135deg, #2b2b3a, #14141c);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  padding: 0 4vw 60px;
}
.grid .card { width: auto; }

.empty {
  max-width: 520px;
  margin: 22vh auto 0;
  text-align: center;
  padding: 0 20px;
}
.empty h1 { font-size: 30px; }
.empty p { color: var(--muted); line-height: 1.6; }

.page-title { padding: 100px 4vw 20px; margin: 0; font-size: 32px; }

/* ---------- Fiche détaillée (fenêtre) ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding: 6vh 16px;
}
.modal-box {
  position: relative;
  width: min(860px, 100%);
  background: var(--bg-soft);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.7);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.7);
  font-size: 20px;
  cursor: pointer;
}
.modal-head { display: flex; gap: 28px; padding: 32px; }
.modal-head .poster {
  flex: 0 0 200px;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-card);
}
.modal-head .poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-head h2 { font-size: 32px; margin: 0 0 12px; }
.modal-head p { color: #ccc; line-height: 1.6; }
.episodes { padding: 0 32px 32px; }
.episodes h3 { margin: 20px 0 10px; font-size: 18px; }
.episode {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 6px;
  border-bottom: 1px solid var(--line);
}
.episode:hover { background: var(--bg-card); }
.episode-num { font-size: 22px; color: var(--muted); width: 32px; text-align: center; }
.episode-name { flex: 1; }

/* ---------- Connexion ---------- */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at top left, rgba(255, 90, 60, 0.25), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(120, 80, 255, 0.2), transparent 50%),
    var(--bg);
}
.auth-page header { padding: 24px 4vw; }
.auth-card {
  width: min(420px, calc(100% - 32px));
  margin: 6vh auto;
  padding: 44px 40px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--line);
}
.auth-card h1 { margin: 0 0 24px; font-size: 30px; }
.auth-card .btn { width: 100%; justify-content: center; padding: 13px; margin-top: 4px; }
.auth-intro { color: #ccc; line-height: 1.5; margin: -8px 0 20px; }
.auth-card .success { line-height: 1.5; margin: 8px 0 16px; }
.forgot-link {
  background: none;
  border: 0;
  padding: 0;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}
.forgot-link:hover { color: #fff; text-decoration: underline; }
.auth-switch { margin-top: 22px; color: var(--muted); font-size: 15px; }
.auth-switch button { background: none; border: 0; color: #fff; cursor: pointer; padding: 0; font-weight: 600; }
.auth-switch button:hover { text-decoration: underline; }

/* ---------- Lecteur ---------- */

.player { position: fixed; inset: 0; background: #000; }
.player video { width: 100%; height: 100%; background: #000; }
.player-top {
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
  transition: opacity 0.3s;
  z-index: 2;
}
.player.idle .player-top { opacity: 0; pointer-events: none; }
.player-top .btn { background: rgba(0, 0, 0, 0.5); }
.player-title { font-size: 18px; font-weight: 600; }
.player-title small { color: var(--muted); font-weight: 400; margin-left: 8px; }
.player-next { position: absolute; right: 40px; bottom: 150px; z-index: 2; }
.player-help-btn { margin-left: auto; }
.player-controls {
  position: absolute;
  left: 50%;
  bottom: 74px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 40px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  transition: opacity 0.3s;
}
.player.idle .player-controls { opacity: 0; pointer-events: none; }
.pc-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  padding: 0 8px;
  border: 0;
  border-radius: 23px;
  background: transparent;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}
.pc-btn span { font-size: 10px; font-weight: 400; color: #ccc; margin-top: 2px; }
.pc-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.18); }
.pc-btn:disabled { opacity: 0.3; cursor: default; }
.pc-play { background: rgba(255, 255, 255, 0.15); font-size: 20px; min-width: 52px; height: 52px; border-radius: 26px; }
.player-flash {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  padding: 14px 24px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.65);
  font-size: 24px;
  font-weight: 700;
  pointer-events: none;
}
.player-flash.show { animation: flash 0.7s ease-out forwards; }
@keyframes flash {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.85); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; }
}
.player-help {
  position: absolute;
  top: 70px;
  right: 24px;
  z-index: 4;
  padding: 18px 20px;
  border-radius: 10px;
  background: rgba(15, 15, 20, 0.95);
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 2;
  max-width: 340px;
}
.player-help strong { display: block; margin-bottom: 4px; }
.player-help .hint { line-height: 1.5; margin-top: 8px; }
kbd {
  display: inline-block;
  padding: 0 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  font-family: inherit;
  font-size: 12px;
  line-height: 1.6;
}
@media (max-width: 760px) {
  .player-controls { bottom: 64px; gap: 2px; padding: 4px 6px; }
  .pc-btn { min-width: 38px; height: 40px; font-size: 15px; padding: 0 4px; }
  .pc-btn span { display: none; }
  .pc-play { min-width: 44px; height: 44px; }
  .player-next { right: 16px; bottom: 120px; }
}
.player-error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: #ddd;
  line-height: 1.6;
}

/* ---------- Admin ---------- */

.admin { max-width: 1000px; margin: 0 auto; padding: 100px 20px 60px; }
.panel {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
  margin-bottom: 28px;
}
.panel h2 { margin: 0 0 20px; font-size: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .wide { grid-column: 1 / -1; }
.hint { color: var(--muted); font-size: 13px; margin-top: 6px; line-height: 1.5; }

.progress {
  height: 8px;
  border-radius: 4px;
  background: var(--bg-card);
  overflow: hidden;
  margin: 12px 0 4px;
}
.progress-bar { height: 100%; width: 0; background: var(--accent); transition: width 0.2s; }
.progress-text { font-size: 13px; color: var(--muted); }

.admin-item { border-top: 1px solid var(--line); padding: 16px 0; }
.admin-item-head { display: flex; align-items: center; gap: 16px; }
.admin-thumb {
  width: 54px;
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-card);
  flex: 0 0 auto;
}
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-thumb .placeholder { font-size: 10px; padding: 4px; }
.admin-info { flex: 1; min-width: 0; }
.admin-info strong { display: block; margin-bottom: 4px; }
.admin-info span { color: var(--muted); font-size: 14px; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.admin-detail { margin: 16px 0 0 70px; }
.video-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.video-line span { flex: 1; }
.inline-form { display: grid; grid-template-columns: 90px 90px 1fr; gap: 10px; margin-top: 14px; }
.inline-form .wide { grid-column: 1 / -1; }

.dropzone {
  border: 2px dashed var(--line);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 18px;
  background: var(--bg);
}
.dropzone label { color: var(--text); font-weight: 600; font-size: 15px; }
.dropzone-or {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.dropzone-or label, .bulk-actions label { margin: 0; color: var(--text); }
.bulk {
  margin: -6px 0 18px;
  padding: 14px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.bulk-summary { font-size: 14px; line-height: 1.5; margin-bottom: 10px; }
.bulk details { border-top: 1px solid var(--line); padding: 8px 0; }
.bulk summary { cursor: pointer; font-weight: 600; }
.bulk-row {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 10px;
  padding: 5px 0;
  font-size: 13px;
  align-items: center;
}
.bulk-row .file { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bulk-row.skip { opacity: 0.45; }
.tag-warn { color: #ffd75e; font-size: 12px; }
.bulk-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.autofill {
  margin: -6px 0 18px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 90, 60, 0.08);
  border: 1px solid rgba(255, 90, 60, 0.3);
}
.autofill-status { font-size: 14px; line-height: 1.5; }
.matches { display: flex; gap: 10px; overflow-x: auto; margin-top: 10px; }
.matches:empty { display: none; }
.match {
  flex: 0 0 92px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: var(--bg-card);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}
.match.selected { border-color: var(--accent); }
.match img, .match .placeholder { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: flex; font-size: 11px; }
.match span { display: block; padding: 4px 6px; font-size: 11px; line-height: 1.3; }
.link-btn {
  background: none;
  border: 0;
  color: var(--accent);
  cursor: pointer;
  font-size: 13px;
  margin-left: 8px;
  padding: 0;
}
.link-btn:hover { text-decoration: underline; }
.poster-field { display: flex; gap: 18px; align-items: flex-start; }
.poster-field > div:last-child { flex: 1; }
.poster-preview {
  flex: 0 0 110px;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-card);
}
.poster-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-preview .placeholder { font-size: 12px; font-weight: 400; color: var(--muted); }
.tmdb-form { display: flex; gap: 10px; }
.tmdb-form .input { flex: 1; }
details.hint summary { cursor: pointer; margin-top: 8px; }
details.hint a { color: var(--accent); }

.notice {
  display: block;
  margin-bottom: 24px;
  padding: 14px 18px;
  border-radius: 8px;
  background: rgba(255, 196, 0, 0.12);
  border: 1px solid rgba(255, 196, 0, 0.45);
  color: #ffd75e;
  font-weight: 600;
}
.notice:hover { background: rgba(255, 196, 0, 0.18); }
.notice-info, .notice-info:hover {
  background: rgba(80, 160, 255, 0.1);
  border-color: rgba(80, 160, 255, 0.45);
  color: #9fcbff;
  font-weight: 400;
}
.account { border-top: 1px solid var(--line); padding: 16px 0; }
.account-suspended { opacity: 0.6; }
.account-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0 22px; }
.sub-panel { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.sub-panel h3 { margin: 0 0 14px; font-size: 17px; }
.sub-panel .copy-row { margin: 10px 0 4px; }
.sub-panel > .btn { margin-top: 6px; }
.sub-title { font-size: 14px !important; margin: 20px 0 6px !important; color: var(--muted); }
.account-search { margin-bottom: 8px; }
.account-head .admin-info span { display: block; margin-top: 4px; }
.account-head .admin-info .badge { display: inline-block; margin-top: 0; }
.account-head .admin-info strong .hint { display: inline; margin-left: 6px; font-weight: 400; }
.role-inline { width: auto; padding: 6px 10px; font-size: 14px; flex: 0 0 auto; }
.account-actions { justify-content: flex-start; margin-top: 12px; }
.temp-pass {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 196, 0, 0.06);
  border: 1px dashed rgba(255, 196, 0, 0.45);
  font-size: 14px;
}
.temp-pass .copy-row { margin-top: 8px; }
.badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 12px;
  margin-right: 4px;
  background: var(--bg-card);
  color: var(--muted);
}
.badge-admin { background: rgba(255, 90, 60, 0.18); color: #ff8f78; }
.badge-manager { background: rgba(80, 160, 255, 0.15); color: #9fcbff; }
.badge-warn { background: rgba(255, 196, 0, 0.15); color: #ffd75e; }
.badge-danger { background: rgba(255, 77, 109, 0.18); color: var(--danger); }
.check { display: flex; align-items: center; gap: 8px; color: var(--text); margin: 10px 0; }
.table-wrap { overflow-x: auto; }
.log-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.log-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); }
.log-table td { padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.log-fail { color: var(--danger); }
@media (max-width: 760px) {
  .account-tools { grid-template-columns: 1fr; }
}

.site-footer {
  padding: 28px 4vw 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}
.site-footer a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.footer-tmdb { font-size: 12px; opacity: 0.8; }
.auth-page .site-footer { margin-top: auto; border-top: 0; }

.legal { max-width: 780px; margin: 0 auto; padding: 40px 20px 60px; line-height: 1.7; }
.legal h1 { font-size: 32px; margin: 0 0 24px; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal p, .legal li { color: #ddd; }
.legal .todo { color: #ffd75e; font-style: italic; }
.legal a { color: var(--accent); }
.account-request {
  background: rgba(255, 196, 0, 0.06);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 196, 0, 0.35);
}
.account-head { display: flex; gap: 16px; align-items: flex-start; }
.request-tag { display: block; color: #ffd75e !important; margin-top: 6px; }
.account-extra { margin-top: 14px; }
.copy-row { display: flex; gap: 10px; }
.copy-row .input { flex: 1; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }

@media (max-width: 760px) {
  .account-head, .copy-row { flex-direction: column; }
  .nav { gap: 14px; padding: 12px 16px; flex-wrap: wrap; }
  .nav-links { order: 3; width: 100%; }
  .nav-search { width: 140px; }
  .nav-user { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero { padding: 0 16px 14vh; }
  .hero-poster { display: none; }
  .card { width: 120px; }
  .modal-head { flex-direction: column; padding: 22px; }
  .modal-head .poster { flex-basis: auto; width: 140px; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-item-head { flex-wrap: wrap; }
  .admin-detail { margin-left: 0; }
}

/* ---------- Bouton « œil » des mots de passe ---------- */

.pw-wrap { position: relative; display: block; }
.pw-wrap .input { padding-right: 46px; }
.pw-eye {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted, #999);
  cursor: pointer;
}
.pw-eye:hover, .pw-eye:focus-visible { color: var(--text, #fff); background: rgba(255, 255, 255, 0.08); outline: none; }

/* ---------- Sélection à la télécommande / au clavier ---------- */

a:focus-visible, button:focus-visible, select:focus-visible, [tabindex="0"]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.card:focus-visible { transform: scale(1.07); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6); z-index: 2; outline-offset: 0; }
