.restart-player-tools{width:100%;padding:14px;box-sizing:border-box;text-align:left;background:var(--surface,#fff);color:var(--text,#365e91)}
.restart-player-controls{display:flex;justify-content:flex-end;align-items:flex-end;gap:12px;flex-wrap:wrap}
.restart-player-controls label{display:flex;flex-direction:column;gap:5px;margin:0;font-size:13px}
.restart-player-controls select{width:auto;min-height:44px;margin:0;max-width:100%}
.restart-player-controls button{min-height:44px;margin:0}
.restart-player-tools .player-status{font-size:12px;color:var(--muted,#365e91);margin:10px 0 0;text-align:right}
.restart-player-tools details{margin-top:16px;border-top:1px solid var(--border,#e1e3e6);padding-top:12px}
.restart-player-tools summary{cursor:pointer;font-weight:600;color:var(--primary,#063373)}
.restart-player-tools .video-summary{font-size:14px;line-height:1.6;margin:12px 0}
.restart-player-tools .video-highlights{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.restart-player-tools .video-highlights li{padding:12px;background:var(--accent-light,#fff0e5);border-radius:10px}
.restart-player-tools .video-highlights p{font-size:14px;line-height:1.5;margin:0 0 8px;text-align:left}
.restart-player-tools .video-highlights button{display:block;margin-left:auto;min-height:44px}
.restart-player-tools .video-highlights [aria-current=true]{outline:2px solid var(--primary,#063373);outline-offset:2px}
video::cue{background:rgba(0,0,0,.82);color:#fff;font-size:clamp(13px,2.6vw,19px);font-family:Arial,sans-serif;line-height:1.2;text-align:center}
video:fullscreen::cue{font-size:3.5vh}
@media(max-width:600px){.restart-player-controls{gap:8px}.restart-player-controls label{max-width:100%}.restart-player-controls select{font-size:14px}.restart-player-tools{padding:12px}}

/* Larger chapter text, inline time links and a seek bar with matching markers. */
:is(.restart-player-tools,.home-highlights) details{margin-top:16px;border-top:1px solid var(--border,#e1e3e6);padding-top:12px;text-align:left}
:is(.restart-player-tools,.home-highlights) summary{font-size:21px;line-height:1.35;cursor:pointer;font-weight:700;color:var(--primary,#063373)}
:is(.restart-player-tools,.home-highlights) .video-summary{font-size:17px;line-height:1.65;margin:16px 0;color:var(--muted,#365e91)}
:is(.restart-player-tools,.home-highlights) .video-highlights{list-style:none;padding:0;margin:0;display:grid;gap:12px}
:is(.restart-player-tools,.home-highlights) .video-highlights li{padding:15px;background:var(--accent-light,#fff0e5);border-radius:12px}
:is(.restart-player-tools,.home-highlights) .video-highlights p{font-size:18px;line-height:1.65;margin:0;text-align:left;overflow-wrap:anywhere}
:is(.restart-player-tools,.home-highlights) .video-highlights strong{font-weight:700;color:var(--primary,#063373)}
:is(.restart-player-tools,.home-highlights) .video-highlights .highlight-time{display:inline;margin:0 6px 0 0;min-height:44px;padding:4px 8px;border-radius:6px;background:var(--surface,#fff);font-size:16px;font-weight:700;line-height:1.5;vertical-align:baseline;color:var(--primary,#063373);text-decoration:underline;text-underline-offset:3px;font-variant-numeric:tabular-nums}
:is(.restart-player-tools,.home-highlights) .video-highlights .highlight-time[aria-current=true]{outline:2px solid var(--primary,#063373);outline-offset:2px}
.home-highlights>details{margin:0;padding:18px;background:white;border:1px solid var(--border,#e1e3e6);border-radius:16px}
.player-timeline{width:100%;margin:0 0 16px}
.player-timeline[hidden]{display:none}
.player-seek-track{position:relative;height:32px;margin:0 10px}
.player-seek-track:before{content:'';position:absolute;top:13px;left:0;right:0;height:6px;border-radius:8px;background:linear-gradient(to right,var(--primary,#063373) var(--played,0%),#dce4ed var(--played,0%))}
.restart-player-tools .player-seek{position:absolute;inset:0;width:100%;height:32px;min-height:0;margin:0;padding:0;border:0;background:transparent;appearance:none;cursor:pointer}
.player-seek::-webkit-slider-runnable-track{height:6px;background:transparent}
.player-seek::-webkit-slider-thumb{appearance:none;width:14px;height:14px;margin-top:-4px;border-radius:50%;background:var(--primary,#063373)}
.player-seek::-moz-range-track{height:6px;background:transparent}
.player-seek::-moz-range-thumb{width:14px;height:14px;border:0;border-radius:50%;background:var(--primary,#063373)}
.player-markers{position:absolute;inset:0;pointer-events:none}
.player-markers .player-marker{position:absolute;top:0;transform:translateX(-50%);width:20px;height:32px;padding:0;margin:0;pointer-events:auto;background:transparent;border:0;border-radius:4px}
.player-markers .player-marker:after{content:'';display:block;width:4px;height:12px;border:1px solid white;border-radius:3px;background:#8c6033;margin:auto;box-shadow:0 0 0 1px #8c603344}
.player-markers .player-marker[aria-current=true]:after{background:var(--primary,#063373);height:16px}
.player-markers .player-marker:focus-visible,.highlight-time:focus-visible{outline:2px solid var(--primary,#063373);outline-offset:2px}
.player-time-label{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted,#365e91);font-variant-numeric:tabular-nums}

/* Commandes intégrées à l’image ; réglages accessibles au clavier et au toucher. */
:is(.restart-player-tools,.home-highlights) .video-summary,
:is(.restart-player-tools,.home-highlights) .video-highlights p{font-size:15px;line-height:1.6}
:is(.restart-player-tools,.home-highlights) summary{font-size:18px}
.restart-video-frame{position:relative;width:100%;min-width:0;background:#101722;border-radius:10px;isolation:isolate}
.restart-video-frame:has(>video[hidden]){display:none}
.restart-video-frame>video{display:block;width:100%;margin:0!important;max-height:none}
.restart-video-frame>.restart-player-tools{position:absolute;z-index:2;inset:auto 0 0;padding:30px 10px 6px;background:linear-gradient(transparent,rgba(0,0,0,.85));color:white;border-radius:0 0 10px 10px;opacity:0;pointer-events:none;transition:opacity .15s}
.restart-video-frame.controls-visible>.restart-player-tools,.restart-video-frame:has(:focus-visible)>.restart-player-tools{opacity:1;pointer-events:auto}
.restart-video-frame .player-timeline{margin:0}
.restart-video-frame .player-time-label{color:white;font-size:11px;padding:0 6px}
.restart-video-frame .player-time-label>span{display:none}
.restart-video-frame .player-time-label>output{margin-left:auto}
.player-overlay-bar{display:flex;justify-content:flex-end;gap:4px;align-items:center}
.player-overlay-bar button{display:grid;place-items:center;color:white!important;background:transparent!important;border:0;min-height:40px;min-width:40px;padding:4px;margin:0;border-radius:6px;font-size:22px}
.player-overlay-bar button:hover,.player-overlay-bar button:focus-visible{background:#ffffff30!important;outline:2px solid #fff;outline-offset:-2px}
.restart-video-frame .player-settings{position:absolute;bottom:44px;right:8px;width:min(320px,calc(100% - 16px));max-height:calc(100% - 52px);overflow:auto;padding:12px;background:#132136f5;border:1px solid #ffffff45;border-radius:10px;color:#fff;box-shadow:0 8px 30px #0004}
.restart-video-frame .player-settings[hidden]{display:none}
.restart-video-frame .restart-player-controls{display:grid;grid-template-columns:1fr;gap:8px}
.restart-video-frame .restart-player-controls label{display:grid;grid-template-columns:1fr 1fr;align-items:center;color:white;gap:8px;font-size:13px}
.restart-video-frame .restart-player-controls select{width:100%;min-height:36px;padding:6px;background:#fff;color:#182d46;font-size:13px}
.restart-video-frame .player-status{color:#e1e9f3;font-size:11px;line-height:1.4}
.restart-video-frame .player-seek-track{--primary:#fff}
.restart-video-frame+.home-highlights{margin-top:18px}
.restart-video-frame:fullscreen{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:#000}
.restart-video-frame:fullscreen>video{height:100%;max-height:100%;object-fit:contain}
.restart-video-frame:fullscreen .player-settings{max-height:70vh}
.restart-video-frame:fullscreen video::cue{font-size:3.5vh}
@media(max-width:799px){.restart-video-frame .player-settings{bottom:44px;right:6px;max-height:calc(100% - 52px);z-index:3}.restart-video-frame:has(.player-settings:not([hidden])){z-index:4}}
@media(prefers-reduced-motion:reduce){.restart-video-frame>.restart-player-tools{transition:none}}
