/* =============================================================================
   Stock-n-Rolle — Design System
   Dark theme · Mobile-first · Surveillance UI
   ============================================================================= */

/* --- Variables --- */
:root {
  --bg-0:         #0a0d14;
  --bg-1:         #0f1320;
  --bg-2:         #161b2e;
  --bg-3:         #1e2540;
  --bg-card:      #1a2035;
  --bg-card-h:    #202840;

  --accent:       #3b82f6;
  --accent-h:     #2563eb;
  --accent-glow:  rgba(59, 130, 246, 0.15);

  --green:        #10b981;
  --red:          #ef4444;
  --orange:       #f59e0b;
  --purple:       #8b5cf6;

  --text-1:       #f1f5f9;
  --text-2:       #94a3b8;
  --text-3:       #64748b;

  --border:       rgba(255,255,255,0.07);
  --border-h:     rgba(255,255,255,0.12);

  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;

  --shadow:       0 4px 24px rgba(0,0,0,0.4);
  --shadow-card:  0 2px 12px rgba(0,0,0,0.3);

  --header-h:     56px;
  --sidebar-w:    280px;
  --player-w:     420px;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.5;
  min-height: 100dvh;
  overflow-x: hidden;
}

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

img { display: block; max-width: 100%; }

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

/* =============================================================================
   COMPOSANTS DE BASE
   ============================================================================= */

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border: none; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-primary  { background: var(--accent);  color: #fff; }
.btn-primary:hover  { background: var(--accent-h); transform: translateY(-1px); }
.btn-ghost    { background: transparent; color: var(--text-2); border: 1px solid var(--border); }
.btn-ghost:hover    { background: var(--bg-3); color: var(--text-1); border-color: var(--border-h); }
.btn-danger   { background: rgba(239,68,68,0.15); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }
.btn-danger:hover   { background: rgba(239,68,68,0.25); }
.btn-block    { width: 100%; justify-content: center; }
.btn-sm       { padding: 5px 10px; font-size: 0.8rem; }

/* Badges */
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 20px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.03em;
}
.badge-admin   { background: rgba(139,92,246,0.2); color: #a78bfa; }
.badge-viewer  { background: rgba(59,130,246,0.15); color: var(--accent); }
.badge-you     { background: rgba(16,185,129,0.15); color: var(--green); }
.badge-count   { background: var(--bg-3); color: var(--text-2); }

/* Alertes */
.alert {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 0.875rem; margin-bottom: 16px;
}
.alert-error   { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.25); color: #fca5a5; }
.alert-success { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.25); color: #6ee7b7; }

/* Formulaires */
.form-group         { display: flex; flex-direction: column; gap: 6px; }
.form-group label   { font-size: 0.8rem; font-weight: 500; color: var(--text-2); }

input[type="text"],
input[type="password"],
input[type="email"],
select {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 9px 12px;
  transition: border-color 0.15s;
  width: 100%;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
input::placeholder { color: var(--text-3); }
select { cursor: pointer; }
select option { background: var(--bg-2); }

/* Spinner */
.spinner {
  width: 24px; height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =============================================================================
   LOGIN PAGE
   ============================================================================= */

.login-page {
  display: flex; align-items: center; justify-content: center;
  min-height: 100dvh;
  background: radial-gradient(ellipse at 50% 0%, rgba(59,130,246,0.08) 0%, var(--bg-0) 70%);
}

.login-container {
  width: 100%; max-width: 400px;
  padding: 40px 32px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin: 20px;
}

.login-logo {
  text-align: center; margin-bottom: 32px;
}
.login-icon { font-size: 2.5rem; display: block; margin-bottom: 12px; }
.login-logo h1 { font-size: 1.25rem; font-weight: 700; color: var(--text-1); }
.login-logo p  { font-size: 0.8rem; color: var(--text-3); margin-top: 4px; }

.login-form { display: flex; flex-direction: column; gap: 16px; }

.input-password-wrap {
  position: relative;
}
.input-password-wrap input {
  padding-right: 44px;
}
.btn-toggle-password {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--text-3); padding: 4px;
  display: flex; align-items: center;
}
.btn-toggle-password svg { width: 18px; height: 18px; }
.btn-toggle-password:hover, .btn-toggle-password.active { color: var(--accent); }

.form-row { display: flex; align-items: center; }
.checkbox-label {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; font-size: 0.85rem; color: var(--text-2);
}
.checkbox-label input { width: auto; cursor: pointer; }

.login-footer {
  text-align: center; margin-top: 20px;
  font-size: 0.75rem; color: var(--text-3);
}

/* =============================================================================
   APP HEADER
   ============================================================================= */

.app-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  background: rgba(10, 13, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.header-left  { display: flex; align-items: center; gap: 10px; min-width: 0; }
.header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-stats { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: center; }

.header-logo { font-weight: 700; font-size: 1rem; color: var(--text-1); white-space: nowrap; }
.header-title { display: none; }

.stat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 20px;
  background: var(--bg-2); border: 1px solid var(--border);
  font-size: 0.78rem; color: var(--text-2); white-space: nowrap;
}
.stat-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.stat-dot-green { background: var(--green); box-shadow: 0 0 6px var(--green); }

.header-user-name { font-size: 0.8rem; color: var(--text-3); display: none; }

.btn-menu {
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--text-2); padding: 6px; border-radius: var(--radius-sm);
}
.btn-menu svg { width: 20px; height: 20px; }
.btn-menu:hover { color: var(--text-1); background: var(--bg-2); }

/* =============================================================================
   APP LAYOUT — 3 colonnes desktop / 1 colonne mobile
   ============================================================================= */

.app-body { overflow: hidden; }

.app-layout {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  height: calc(100dvh - var(--header-h));
  margin-top: var(--header-h);
  overflow: hidden;
}

/* --- Sidebar --- */
.sidebar {
  position: fixed; left: 0; top: var(--header-h);
  width: var(--sidebar-w); height: calc(100dvh - var(--header-h));
  background: var(--bg-1);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 50;
}
.sidebar.open { transform: translateX(0); }

.sidebar-inner  { padding: 16px; display: flex; flex-direction: column; gap: 24px; }
.sidebar-section { display: flex; flex-direction: column; gap: 10px; }
.sidebar-label  {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-3);
  display: flex; align-items: center; justify-content: space-between;
}

/* Filtres chips */
.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-label { font-size: 0.78rem; color: var(--text-3); font-weight: 500; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  padding: 5px 12px; border-radius: 20px;
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text-2); font-size: 0.8rem; cursor: pointer;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--border-h); color: var(--text-1); }
.chip-active { background: var(--accent-glow); border-color: var(--accent); color: var(--accent); }

/* Recherche plaque */
.search-wrap   { position: relative; }
.filter-input  { font-size: 0.85rem; padding-right: 32px; }
.btn-clear-search {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--text-3); font-size: 0.85rem;
}
.btn-clear-search:hover { color: var(--text-1); }

/* Calendrier */
.date-list { display: flex; flex-direction: column; gap: 2px; }
.date-item {
  text-align: left; padding: 7px 10px; border-radius: var(--radius-sm);
  background: none; border: none; cursor: pointer;
  color: var(--text-2); font-size: 0.85rem; transition: all 0.1s;
}
.date-item:hover  { background: var(--bg-2); color: var(--text-1); }
.date-item.active { background: var(--accent-glow); color: var(--accent); font-weight: 600; }

/* Mini stats */
.sidebar-stats { border-top: 1px solid var(--border); padding-top: 16px; }
.mini-stat {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 0; font-size: 0.82rem; color: var(--text-2);
}
.mini-stat-count { font-weight: 600; color: var(--text-1); }
.plates-today   { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.plate-badge {
  display: inline-block;
  padding: 3px 10px; border-radius: 4px;
  background: var(--bg-3); border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-1);
  letter-spacing: 0.05em;
}

/* --- Main content --- */
.main-content {
  grid-area: 1/1;
  overflow-y: auto;
  padding: 0;
  height: 100%;
}

.content-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: var(--bg-1);
  position: sticky; top: 0; z-index: 10;
}
.toolbar-left  { display: flex; align-items: center; gap: 10px; }
.results-count { font-size: 0.82rem; color: var(--text-3); }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; }

.filter-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 20px;
  background: var(--accent-glow); border: 1px solid rgba(59,130,246,0.3);
  font-size: 0.72rem; color: var(--accent);
}

/* Grille événements */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
}

.loading-state, .empty-state {
  grid-column: 1/-1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 60px 20px;
  color: var(--text-3); font-size: 0.9rem;
  background: var(--bg-0);
}
.empty-state { font-size: 1rem; }
.empty-icon  { font-size: 2.5rem; }

/* Carte événement */
.event-card {
  background: var(--bg-card);
  cursor: pointer; transition: background 0.12s;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.event-card:hover, .event-card.active {
  background: var(--bg-card-h);
}
.event-card.active { outline: 2px solid var(--accent); outline-offset: -2px; }

.card-thumbnail {
  position: relative; aspect-ratio: 16/9;
  background: var(--bg-2); overflow: hidden;
}
.card-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.2s;
}
.card-img[src=""] { display: none; }
.card-no-img {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--text-3);
}
.card-img:not([src=""]) + .card-no-img { display: none; }
.card-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0); display: flex;
  align-items: center; justify-content: center;
  transition: background 0.15s;
}
.event-card:hover .card-overlay { background: rgba(0,0,0,0.35); }
.card-play {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(59,130,246,0.9);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: white; opacity: 0;
  transform: scale(0.8); transition: all 0.15s;
}
.event-card:hover .card-play { opacity: 1; transform: scale(1); }
.card-duration {
  position: absolute; bottom: 6px; right: 6px;
  background: rgba(0,0,0,0.7); color: white;
  font-size: 0.7rem; padding: 2px 6px; border-radius: 3px;
  font-family: var(--font-mono);
}

.card-body  { padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }
.card-top   { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; }
.card-camera { font-size: 0.75rem; font-weight: 600; color: var(--accent); truncate; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-time   { font-size: 0.7rem; color: var(--text-3); white-space: nowrap; flex-shrink: 0; }
.card-labels { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card-label-badge {
  font-size: 0.72rem; padding: 1px 6px; border-radius: 3px;
  background: var(--bg-3); color: var(--text-2);
}
.card-zones  { font-size: 0.7rem; color: var(--text-3); }
.card-plates { display: flex; gap: 4px; flex-wrap: wrap; }
.card-plate  {
  font-family: var(--font-mono); font-size: 0.68rem;
  padding: 1px 6px; border-radius: 3px;
  background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3);
  color: #fbbf24;
}

/* Pagination */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; padding: 20px 16px;
}
.page-btn {
  padding: 6px 12px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text-2); cursor: pointer; font-size: 0.82rem;
  transition: all 0.1s;
}
.page-btn:hover   { border-color: var(--border-h); color: var(--text-1); }
.page-btn.current { background: var(--accent-glow); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.page-btn:disabled { opacity: 0.3; cursor: default; }

/* --- Player panel (desktop) --- */
.player-panel {
  display: none;
  background: var(--bg-1);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  flex-direction: column;
}

.player-placeholder {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; padding: 40px;
  color: var(--text-3); text-align: center; font-size: 0.85rem;
}
.placeholder-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--bg-3); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--text-3);
}
.player-active { display: flex; flex-direction: column; }

.player-wrap { background: #000; }
.player-wrap video { width: 100%; display: block; }
.clip-preview { width: 100%; display: block; object-fit: contain; max-height: 60vh; }

.player-meta {
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.meta-row { display: flex; justify-content: space-between; align-items: baseline; }
.meta-camera { font-weight: 600; color: var(--text-1); }
.meta-time   { font-size: 0.82rem; color: var(--text-3); }
.meta-labels { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.meta-zone   { font-size: 0.78rem; color: var(--text-3); }
.meta-plates { display: flex; gap: 6px; flex-wrap: wrap; }
.meta-plate  {
  font-family: var(--font-mono); font-size: 0.85rem;
  padding: 3px 10px; border-radius: 4px;
  background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.35);
  color: #fbbf24; letter-spacing: 0.05em;
}

.player-speed-controls {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.speed-label { font-size: 0.78rem; color: var(--text-3); }
.speed-btns  { display: flex; gap: 6px; }
.speed-btn {
  padding: 4px 10px; border-radius: 4px;
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text-2); font-size: 0.78rem; cursor: pointer;
  transition: all 0.1s;
}
.speed-btn:hover { border-color: var(--border-h); color: var(--text-1); }
.speed-btn-active { background: var(--accent-glow); border-color: var(--accent); color: var(--accent); }

.player-nav {
  display: flex; justify-content: space-between;
  padding: 12px 16px;
}

/* =============================================================================
   MODAL PLAYER (mobile)
   ============================================================================= */

.modal-player {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  max-height: 92dvh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-player.open { transform: translateY(0); }

.modal-player-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  font-weight: 600; font-size: 0.9rem;
}
.btn-close-modal {
  background: var(--bg-3); border: none; cursor: pointer;
  color: var(--text-2); width: 28px; height: 28px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.modal-player video { width: 100%; display: block; background: #000; }
.mobile-meta { padding: 12px 16px; font-size: 0.85rem; color: var(--text-2); }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}

/* =============================================================================
   ADMIN PAGE
   ============================================================================= */

.admin-page { background: var(--bg-0); }
.admin-main { padding-top: var(--header-h); }
.admin-container { max-width: 1000px; margin: 0 auto; padding: 24px 16px; }
.section-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; color: var(--text-1); }

.admin-card {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  margin-bottom: 20px;
}
.admin-card h3 {
  font-size: 0.9rem; font-weight: 600; color: var(--text-2);
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.admin-form .form-row-inline {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end;
}
.admin-form .form-group { flex: 1; min-width: 150px; }
.form-group-action { flex: none; }

.table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%; border-collapse: collapse; font-size: 0.85rem;
}
.admin-table th {
  text-align: left; padding: 8px 12px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--text-3);
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 10px 12px; border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: var(--bg-2); }
.row-current td { background: rgba(59,130,246,0.04); }
.actions-cell { display: flex; gap: 6px; }
.log-date { font-size: 0.78rem; color: var(--text-3); white-space: nowrap; }
.log-ip   { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-3); }
code { font-family: var(--font-mono); font-size: 0.78rem; color: var(--green); }

/* Modal admin */
.modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
}
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.modal-content {
  position: relative; z-index: 1;
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  width: 100%; max-width: 400px; margin: 16px;
  display: flex; flex-direction: column; gap: 16px;
}
.modal-content h3 { font-size: 1rem; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* =============================================================================
   RESPONSIVE — TABLET (768px+)
   ============================================================================= */

@media (min-width: 768px) {
  .header-title      { display: inline; }
  .header-user-name  { display: inline; }
  .stat-pill-hide-mobile { display: inline-flex; }

  .events-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .sidebar {
    position: relative; top: auto;
    transform: translateX(0) !important;
    height: 100%;
    width: var(--sidebar-w);
    flex-shrink: 0;
  }

  .btn-menu { display: none; }

  .app-layout {
    grid-template-columns: var(--sidebar-w) 1fr;
    grid-template-areas: "sidebar main";
  }
  .sidebar      { grid-area: sidebar; }
  .main-content { grid-area: main; }
  .player-panel { display: none !important; }
}

/* =============================================================================
   RESPONSIVE — DESKTOP (1200px+)
   ============================================================================= */

@media (min-width: 1200px) {
  .app-layout {
    grid-template-columns: var(--sidebar-w) 1fr var(--player-w);
    grid-template-areas: "sidebar main player";
  }
  .player-panel {
    grid-area: player;
    display: flex !important;
    height: 100%;
  }

  /* Sur desktop, les clics ouvrent le player panel, pas la modal */
  .modal-player, .modal-backdrop { display: none !important; }

  .events-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

/* =============================================================================
   PLYR OVERRIDES
   ============================================================================= */

.plyr {
  --plyr-color-main: var(--accent);
  --plyr-video-background: #000;
  --plyr-font-family: var(--font);
}
.plyr__control--overlaid { background: rgba(59,130,246,0.85); }

/* =============================================================================
   UTILS
   ============================================================================= */

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
