/* The settings popover floats above the controls without resizing the video. */
.cs-player-interaction{display:none}
.player-shell:fullscreen{display:block!important;overflow:hidden!important;background:#000}
.player-shell:fullscreen .player-stage{position:absolute;inset:0;width:100%;height:100%}
.player-shell:fullscreen .player-stage iframe{width:100%;height:100%}
.player-shell:fullscreen .player-topbar{position:absolute;top:0;left:0;right:0;z-index:3;background:linear-gradient(#0b1117eb,#0b111780);box-sizing:border-box;transition:opacity .2s}
.player-shell:fullscreen .cs-player-controls{position:absolute;bottom:0;left:0;right:0;z-index:3;background:linear-gradient(transparent,#0b1117ef 30%);border-top:0;transition:opacity .2s}
.player-shell:fullscreen .cs-player-interaction{display:block;position:absolute;inset:0;z-index:2}

.player-shell:fullscreen.cs-player-idle{cursor:none}
.player-shell:fullscreen.cs-player-idle .player-topbar,.player-shell:fullscreen.cs-player-idle .cs-player-controls{opacity:0;pointer-events:none}
.cs-player-controls{position:relative;padding-top:14px!important}
.cs-player-controls .cs-player-settings{position:absolute;right:62px;bottom:92px;width:290px;box-sizing:border-box;display:block;background:#161d27;border:1px solid #ffffff26;border-radius:12px;padding:8px;margin:0;box-shadow:0 8px 28px #0008;z-index:1}
.cs-player-settings-heading{font-size:12px;font-weight:700;color:#c6cedd;padding:8px 9px 11px;border-bottom:1px solid #ffffff16}
.cs-player-controls .cs-player-setting{display:flex;justify-content:space-between;gap:10px;min-height:42px;padding:2px 9px;box-sizing:border-box;font-size:13px}
.cs-player-controls .cs-player-setting label{display:flex;width:100%;justify-content:space-between;gap:10px}
.cs-player-controls .cs-player-settings select{min-width:95px;padding:7px 9px;border:0;background:#242d3a;text-align:right}
.cs-player-controls .cs-player-settings p{width:auto;font-size:10px;color:#aab4c3;padding:8px 9px 2px;margin:0;line-height:1.4}
.cs-player-controls .cs-player-mobile-volume{display:none}
@media(max-width:768px){.cs-player-controls{padding-top:10px!important}.cs-player-controls .cs-player-settings{right:12px;bottom:78px;max-width:calc(100% - 24px);width:290px}.cs-player-controls .cs-player-mobile-volume{display:flex}}
.player-overlay .player-shell{grid-template-rows:70px minmax(200px,1fr) auto;height:100%;overflow-y:auto}
.player-overlay .player-topbar{position:relative;padding:0 20px 0 450px;min-height:70px;background:#0b1117;border-bottom:1px solid #ffffff12}
.cs-player-brand{position:absolute;left:128px;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:8px;text-decoration:none;white-space:nowrap;font-family:inherit;font-size:28px;line-height:1.2}
.cs-player-brand img{width:35px;height:35px;margin-right:10px;object-fit:contain;display:block;flex-shrink:0;border-radius:0}
.cs-player-brand span{color:#2B22EE;font-weight:800;font-size:28px;letter-spacing:normal;line-height:1.2}.cs-player-brand span:nth-of-type(2){font-weight:300;margin-left:6px}
.player-overlay .player-close{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#2B22EE;color:#fff;border:0;border-radius:5px;padding:10px 16px;font:inherit;font-size:14px;line-height:1.3;white-space:nowrap}
.player-overlay .player-close:hover,.player-overlay .player-close:focus{background:#241DE0}
.player-overlay .player-close:focus-visible{outline:2px solid #7771ff;outline-offset:4px}
.player-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font-size:14px}.player-close{flex-shrink:0}
.cs-player-controls{background:#0b1117;color:#fff;padding:14px 24px max(14px,env(safe-area-inset-bottom));font-family:Inter,Arial,sans-serif;border-top:1px solid #ffffff12;box-sizing:border-box}
.cs-player-progress{display:flex;gap:20px;align-items:center;margin-bottom:10px}.cs-player-time{font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap;color:#d2d6df;min-width:102px;text-align:right}
.cs-player-controls input[type=range]{appearance:none;-webkit-appearance:none;height:6px;cursor:pointer;border:0;border-radius:8px;box-shadow:none;padding:0;margin:8px 0;background:#ffffff24;min-width:0}
.cs-player-progress input[type=range]{flex:1;width:100%;background:linear-gradient(to right,#2B22EE 0 var(--cs-progress,0%),#ffffff5c var(--cs-progress,0%) var(--cs-buffered,0%),#ffffff24 var(--cs-buffered,0%) 100%)}
.cs-player-controls input[type=range]::-webkit-slider-thumb{appearance:none;width:14px;height:14px;border-radius:50%;background:#fff;border:2px solid #2B22EE;box-shadow:0 0 0 3px #2b22ee26}.cs-player-controls input[type=range]::-moz-range-thumb{width:12px;height:12px;border-radius:50%;background:#fff;border:2px solid #2B22EE}
.cs-player-buttons,.cs-player-primary,.cs-player-secondary{display:flex;align-items:center;gap:10px}.cs-player-buttons{justify-content:space-between}.cs-player-button{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:8px;background:transparent;color:#f5f7ff;cursor:pointer;padding:8px;flex-shrink:0}.cs-player-button svg{width:23px;height:23px}.cs-player-button:hover{background:#ffffff12}.cs-player-button:first-child{background:#2B22EE}.cs-player-secondary .cs-player-button:first-child{background:transparent}.cs-player-controls :focus-visible{outline:2px solid #7771ff;outline-offset:4px}.cs-player-controls button:disabled{opacity:.4;cursor:default}
.cs-player-volume{width:90px}.cs-player-settings{border-top:1px solid #ffffff16;margin-top:10px;padding:12px 0 0;display:flex;align-items:flex-start;gap:28px;flex-wrap:wrap}.cs-player-setting{display:flex;align-items:center;gap:14px;font-size:13px}.cs-player-setting label{display:flex;align-items:center;gap:12px}.cs-player-settings select{font:inherit;color:#fff;background:#1a222d;border:1px solid #ffffff26;border-radius:7px;padding:8px;min-width:95px}.cs-player-settings p{width:100%;font-size:12px;color:#aab4c3;line-height:1.5;margin:0}.cs-player-retry{border:1px solid #ffffff26;border-radius:7px;background:#18202b;color:#fff;font:inherit;font-size:12px;padding:9px 12px;cursor:pointer}.cs-player-notice{font-size:12px;line-height:1.5;color:#b8c2d2;margin-top:5px}
/* Les messages du lecteur flottent au-dessus de la barre : ils ne changent jamais la taille de la vidéo. */
.cs-player-controls .cs-player-notice{position:absolute;left:24px;bottom:calc(100% + 8px);margin:0;padding:5px 10px;border-radius:7px;background:#0b1117e6;pointer-events:none;z-index:2}.cs-player-controls .cs-player-notice button{pointer-events:auto}.cs-player-notice:empty{display:none}.cs-player-mobile-volume{display:none}.cs-player-controls [hidden]{display:none!important}
@media(max-width:768px){.player-overlay .player-shell{grid-template-rows:60px minmax(200px,1fr) auto}.player-overlay .player-topbar{min-height:60px;padding:0 12px 0 120px;gap:10px}.cs-player-brand{left:68px}.cs-player-brand img{width:36px;height:36px;margin-right:0}.cs-player-brand span{display:none}.player-title{font-size:12px}.cs-player-controls{padding:10px 12px max(12px,env(safe-area-inset-bottom))}.cs-player-progress{gap:12px;margin-bottom:5px}.cs-player-time{min-width:83px;font-size:11px}.cs-player-buttons,.cs-player-primary,.cs-player-secondary{gap:5px}.cs-player-button{width:34px;height:34px;padding:6px}.cs-player-volume{display:none}.cs-player-mobile-volume{display:flex}.cs-player-mobile-volume input{width:100px}.cs-player-settings{gap:14px}.cs-player-setting{flex-wrap:wrap}.cs-player-settings p{font-size:11px}}

.cs-player-quality{color:#d2d6df;white-space:nowrap}.cs-player-retry{margin-left:12px}.cs-player-settings{max-height:min(480px,calc(100dvh - 150px));overflow-y:auto}
.cs-player-provider-choice,.cs-player-provider-done{font:inherit;color:#fff;border:0;border-radius:7px;background:#242d3a;padding:7px 9px;cursor:pointer;text-align:right}.cs-player-provider-choice:hover,.cs-player-provider-done:hover{background:#354154}.cs-player-provider-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;height:100%;font-size:12px}.cs-player-provider-bar p{margin:0;color:#c6cedd}.cs-player-provider-done{background:#2B22EE;flex-shrink:0}.cs-player-provider-mode .cs-player-progress,.cs-player-provider-mode .cs-player-buttons,.cs-player-provider-mode .cs-player-settings{display:none!important}.player-shell:fullscreen.cs-player-provider-mode .cs-player-interaction{display:none}
.player-stage .cs-stream-video{object-fit:contain}.cs-stream-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#d2d6df;background:#0b1117;font:14px Inter,Arial,sans-serif;padding:24px;text-align:center}.player-shell:fullscreen .player-stage video{width:100%;height:100%;object-fit:contain}
.cs-player-controls .cs-player-settings{width:330px}.cs-player-controls .cs-player-setting label{white-space:nowrap}.cs-player-controls .cs-player-setting select{max-width:205px;min-width:95px;flex-shrink:1}@media(max-width:768px){.cs-player-controls .cs-player-settings{width:310px}.cs-player-controls .cs-player-setting select{max-width:175px}}
/* Lecteur YouTube habillé par Clipsou : seule l'image de la vidéo reste visible. */
.player-stage.cs-yt-stage{position:relative;z-index:0;overflow:hidden;background:#000}
.player-shell:fullscreen .player-stage.cs-yt-stage{position:absolute}
.player-stage.cs-yt-stage .cs-player-interaction{display:block;position:absolute;inset:0;z-index:2;cursor:pointer}
.player-shell:fullscreen .player-stage.cs-yt-stage .cs-player-interaction{z-index:2}
.cs-player-cover{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:#000;cursor:pointer;overflow:hidden}
.cs-player-cover[hidden]{display:none}
.cs-player-cover.is-paused{background:transparent}
.cs-player-cover.is-paused .cs-player-cover-image{display:none}
.cs-player-cover-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:brightness(.45) saturate(1.05)}
/* Le bouton reste pile au centre (là où YouTube place le sien) et assez grand pour le recouvrir entièrement. */
.cs-player-cover-play{position:relative;width:calc(92px * var(--cs-yt-scale,1));height:calc(92px * var(--cs-yt-scale,1));border-radius:50%;border:0;background:#2B22EE;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 10px 34px #0009;transition:transform .15s,background .15s}
.cs-player-cover-play svg{width:calc(40px * var(--cs-yt-scale,1));height:calc(40px * var(--cs-yt-scale,1));margin-left:5px}
.cs-player-cover-play:hover,.cs-player-cover-play:focus-visible{background:#241DE0;transform:scale(1.06)}
.cs-player-cover-play[hidden]{display:none}
.cs-player-cover-label{position:absolute;top:calc(50% + 12px + 46px * var(--cs-yt-scale,1));left:0;right:0;text-align:center;color:#e8ebf3;font:600 14px Inter,Arial,sans-serif;text-shadow:0 1px 6px #000}
.cs-player-cover-label:empty{display:none}
.cs-player-cover.is-loading::after{content:'';position:relative;order:-1;width:44px;height:44px;border-radius:50%;border:3px solid #ffffff33;border-top-color:#fff;animation:cs-spin .8s linear infinite}
@keyframes cs-spin{to{transform:rotate(360deg)}}
.cs-player-quality-value{color:#d2d6df;white-space:nowrap;align-self:center}
.cs-stream-loading{flex-direction:column;gap:14px}.cs-stream-loading p{margin:0}.cs-stream-loading small{font-size:12px;color:#aab4c3}.cs-stream-error-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.cs-stream-error-actions .cs-player-retry{margin:0}
/* Mini-alerte d'avertissements au lancement du film (façon Netflix) */
.player-content-warning{position:absolute;top:72px;left:28px;z-index:30;display:flex;align-items:center;gap:12px;max-width:min(440px,calc(100% - 56px));padding:10px 16px 10px 12px;border-left:3px solid #2B22EE;background:#06080fcc;color:#fff;font-family:Inter,Arial,sans-serif;opacity:0;transform:translateX(-8px);transition:opacity .45s ease,transform .45s ease;pointer-events:none}
.player-content-warning.is-visible{opacity:1;transform:none}
.player-content-rating{flex:0 0 auto;display:grid;place-items:center;min-width:38px;height:38px;padding:0 6px;border:1.5px solid #fff;border-radius:6px;font-weight:800;font-size:14px}
.player-content-warning div{display:flex;flex-direction:column;gap:2px;min-width:0}
.player-content-warning strong{font-size:14px}
.player-content-warning span:last-child{font-size:13px;color:#d8dce6;line-height:1.4}
@media(max-width:768px){.player-content-warning{top:56px;left:14px;max-width:calc(100% - 28px);padding:8px 12px 8px 10px}.player-content-rating{min-width:32px;height:32px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.player-content-warning{transition:opacity .2s}}

/* Pastilles de saisons (page d'une série) */
.season-picker{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.season-pill{padding:8px 16px;border-radius:8px;border:none;background:rgba(255,255,255,.05);color:rgba(255,255,255,.7);font:500 14px Inter,Arial,sans-serif;cursor:pointer}
.season-pill:hover{background:rgba(255,255,255,.1);color:#fff}
.season-pill.is-active{background:#2B22EE;color:#fff}
.episode-card[hidden]{display:none!important}

/* Dailymotion en bêta (sans Player ID) : le lecteur Dailymotion garde ses propres commandes */
.player-overlay.cs-native-ui .cs-player-controls,.player-overlay.cs-native-ui .cs-player-interaction,.player-overlay.cs-native-ui .cs-player-cover,.player-overlay.cs-native-ui .cs-player-notice{display:none!important}
.player-overlay.cs-native-ui iframe{pointer-events:auto!important}
/* Image de la page d'un film : toujours en paysage (recadrée automatiquement si l'image est trop haute ou trop étroite) */
.fiche-media-wrap > img.landscape{display:block;width:100%;aspect-ratio:16/9;height:auto!important;max-height:none;object-fit:cover;object-position:center 30%}
.player-content-warning .player-content-ai{display:block;margin-top:2px;font-size:13px;color:#cfcbff}
.fiche-ai-note{display:inline-flex;align-items:center;gap:6px;margin:4px 0 12px;padding:5px 10px;border-radius:999px;background:#8f89ff1a;border:1px solid #8f89ff40;color:#cfcbff;font:600 12px Inter,Arial,sans-serif}
/* Mobile : la description (et la mention IA) restent visibles sous le titre. */
@media (max-width:900px){html body.fiche-page-view #fiche .fiche-right>p{display:block!important;margin:6px 0 10px;font-size:14.5px;line-height:1.6;color:#c9cfdb;text-align:left}html body.fiche-page-view #fiche .fiche-right>p.fiche-ai-note{display:inline-flex!important;align-self:flex-start;font-size:12px}}
@media (max-width:900px){html body.fiche-page-view .fiche-overlay .overlay-title{order:-1!important;margin-bottom:4px}}
/* Le nom du réalisateur a la même taille que « Réalisation : ». Pas de petit trait isolé devant les vues quand la ligne passe dessous. */.film-director-line a.community-link{font-size:inherit;font-weight:600}.rating-genres .film-insights{border-left:0!important;padding-left:0!important;margin-left:0!important}
.fiche-right>p,.fiche-right h3,.overlay-title,.discovery-card-title,.pt-card-role,.film-information dd,.review-text,[class*=review] p{overflow-wrap:anywhere}
