/* Salle de classe : bascule Cours / Replays */
.classroom-switch { display: flex; gap: 6px; padding: 4px; margin: 0 0 20px; background: var(--background-soft); border-radius: var(--radius-full); width: fit-content; }
.classroom-switch button { border: 0; background: transparent; padding: 8px 18px; border-radius: var(--radius-full); font: inherit; font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.classroom-switch button.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-card); }
.replays-hidden { display: none !important; }

.replays-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.replays-import { display: inline-flex; align-items: center; padding: 9px 16px; border: 1.5px dashed var(--border); border-radius: var(--radius-full); font-size: 13.5px; font-weight: 600; color: var(--primary); cursor: pointer; }
.replays-import:hover { background: var(--background-soft); }
.replays-progress { font-size: 13px; color: var(--text-muted); }
.replays-empty { text-align: center; padding: 64px 16px; color: var(--text-muted); }
.replays-empty strong { display: block; color: var(--primary); font-size: 16px; margin-bottom: 6px; }

.replay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.replay-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-card); }
.replay-card.is-draft { opacity: .85; }
.replay-thumb { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 9; border: 0; cursor: pointer; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; }
.replay-thumb svg { width: 44px; height: 44px; opacity: .9; transition: transform .15s; }
.replay-thumb:hover:not(:disabled) svg { transform: scale(1.12); }
.replay-thumb:disabled { cursor: default; filter: grayscale(.6); }
.replay-info { padding: 12px 14px 14px; }
.replay-info h3 { margin: 0 0 4px; font-size: 15px; }
.replay-info small { display: block; color: var(--text-muted); font-size: 12.5px; }
.replay-info p { margin: 8px 0 0; font-size: 13px; }
.replay-badge { display: inline-block; padding: 2px 8px; border-radius: var(--radius-full); background: var(--background-soft); color: var(--text-muted); font-size: 11px; font-weight: 600; vertical-align: middle; }
.replay-admin { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.replay-admin button { border: 0; background: transparent; color: var(--primary); font-size: 12.5px; font-weight: 600; padding: 5px 8px; border-radius: 8px; cursor: pointer; }
.replay-admin button:hover { background: var(--background-soft); }
.replay-admin .danger { color: #c0392b; }

.replay-player-backdrop { position: fixed; inset: 0; z-index: 3000; background: rgba(0, 0, 0, .75); display: flex; align-items: center; justify-content: center; padding: 16px; }
.replay-player { position: relative; width: min(960px, 100%); background: #000; border-radius: 14px; overflow: hidden; }
.replay-player video { display: block; width: 100%; max-height: 72vh; background: #000; }
.replay-player-info { background: #fff; padding: 12px 16px; }
.replay-player-info h3 { margin: 0; font-size: 16px; }
.replay-player-info p { margin: 6px 0 0; font-size: 13px; color: var(--text-muted); }
.replay-player-close { position: absolute; top: 8px; right: 10px; z-index: 1; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }

/* Salle live intégrée */
body.live-open { overflow: hidden; }
.live-overlay { position: fixed; inset: 0; z-index: 3500; display: flex; flex-direction: column; background: #111; }
.live-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: #1b1b1f; color: #fff; }
.live-title { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-bar-spacer { flex: 1; }
.live-rec-indicator { color: #ff5a5a; font-size: 13px; font-weight: 600; white-space: nowrap; }
.live-btn { border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; font: inherit; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: var(--radius-full); cursor: pointer; text-decoration: none; white-space: nowrap; }
.live-btn:hover { background: rgba(255, 255, 255, .1); }
.live-btn-rec.recording { background: #d93025; border-color: #d93025; }
.live-btn-leave { background: #d93025; border-color: #d93025; }
.live-btn:disabled { opacity: .6; cursor: default; }
.live-notice { background: #f9e7a8; color: #4a3b00; font-size: 12.5px; padding: 6px 16px; }
.live-stage { flex: 1; min-height: 0; position: relative; }
.live-stage iframe { border: 0; }
.live-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #ccc; }
@media (max-width: 640px) {
  .live-bar { flex-wrap: wrap; }
  .live-title { flex-basis: 100%; }
  .replay-grid { grid-template-columns: 1fr; }
}

/* Bandeau de confirmation d'e-mail */
#verify-banner { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 8px 16px; background: #fdf3d0; color: #5c4600; font-size: 13.5px; }
#verify-banner button { border: 0; background: transparent; color: #203A7C; font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
#verify-banner button[data-act="close"] { text-decoration: none; font-size: 18px; line-height: 1; }
