.custom-video-player { position: relative; overflow: hidden; border-radius: 18px; background: #020708; }
.intro-screen .custom-video-player { position: absolute; inset: 0; border-radius: 0; }
.custom-video-player > video { display: block; width: 100%; }
.intro-screen .custom-video-player > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.video-controls {
  position: absolute;
  z-index: 5;
  right: 12px;
  bottom: 10px;
  left: 12px;
  display: grid;
  grid-template-columns: 28px 28px minmax(50px, 1fr) auto auto;
  align-items: center;
  gap: 3px;
  min-height: 28px;
  padding: 2px 7px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: rgba(5,20,26,.74);
  box-shadow: 0 8px 25px rgba(0,0,0,.24);
  backdrop-filter: blur(9px);
  transition: opacity .2s;
}
.video-controls.without-next { grid-template-columns: 28px minmax(50px, 1fr) auto auto; }
.video-control-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: white;
  background: transparent;
  font-size: 12px;
}
.video-control-btn:hover, .video-control-btn:focus-visible { color: var(--gold); background: rgba(255,255,255,.1); outline: none; }
.video-control-btn[hidden] { display: none; }
.video-control-btn:disabled { opacity: .32; cursor: default; }
.video-progress {
  --value: 0%;
  width: 100%;
  height: 16px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.video-progress::-webkit-slider-runnable-track { height: 2px; border-radius: 99px; background: linear-gradient(90deg, var(--gold) var(--value), rgba(255,255,255,.3) var(--value)); }
.video-progress::-webkit-slider-thumb { width: 8px; height: 8px; margin-top: -3px; appearance: none; border: 0; border-radius: 50%; background: white; box-shadow: 0 1px 5px rgba(0,0,0,.4); }
.video-progress::-moz-range-track { height: 2px; border-radius: 99px; background: rgba(255,255,255,.3); }
.video-progress::-moz-range-progress { height: 2px; border-radius: 99px; background: var(--gold); }
.video-progress::-moz-range-thumb { width: 8px; height: 8px; border: 0; border-radius: 50%; background: white; }
.video-volume-control { display: flex; align-items: center; gap: 2px; }
.video-volume { width: 70px; height: 16px; margin: 0; padding: 0; accent-color: var(--gold); cursor: pointer; }
.video-speed-label { display: flex; align-items: center; gap: 5px; margin: 0 0 0 4px; color: rgba(255,255,255,.82); font-size: 10px; font-weight: 700; }
.video-speed { height: 24px; padding: 0 5px; border: 1px solid rgba(255,255,255,.22); border-radius: 7px; color: white; background: #17343e; font: inherit; cursor: pointer; }
.video-speed:focus-visible { border-color: var(--gold); outline: 2px solid var(--gold); outline-offset: 1px; }

.video-choice-modal {
  width: min(620px, calc(100% - 30px));
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 28px;
  padding: 38px;
  color: white;
  background: linear-gradient(145deg, rgba(16,56,66,.97), rgba(8,31,39,.98));
  box-shadow: 0 28px 90px rgba(0,0,0,.48);
}
.video-choice-modal::backdrop { background: rgba(4,19,24,.7); backdrop-filter: blur(8px); }
.video-choice-modal h2 { margin-bottom: 25px; font-size: clamp(32px, 5vw, 46px); text-wrap: balance; }
.choice-compass { float: right; color: var(--gold); font-size: 32px; animation: choice-pulse 2s ease-in-out infinite; }
.story-choices { display: grid; gap: 12px; }
.story-choice {
  width: 100%;
  min-height: 88px;
  display: grid;
  grid-template-columns: 48px 1fr 24px;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 17px;
  padding: 14px 17px;
  color: white;
  background: rgba(255,255,255,.08);
  text-align: left;
  transition: transform .2s, border-color .2s, background .2s;
}
.story-choice:hover, .story-choice:focus-visible {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: rgba(255,255,255,.14);
  outline: none;
}
.story-choice-primary { color: #3f2d0b; background: var(--gold); border-color: var(--gold); }
.story-choice-primary:hover, .story-choice-primary:focus-visible { background: #ffc957; }
.story-choice-icon { display: grid; place-items: center; width: 44px; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.2); font-size: 20px; }
.story-choice strong, .story-choice small { display: block; }
.story-choice strong { font-size: 16px; }
.story-choice small { margin-top: 4px; opacity: .72; }
.story-choice-arrow { justify-self: end; font-size: 22px; }
.act3-status { min-height: 20px; margin: 14px 4px 0; color: #ffe09a; font-size: 13px; line-height: 1.4; }

.passage-transition {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  color: white;
  background: #061c23;
  pointer-events: none;
  transition: opacity .3s, visibility .3s;
}
.passage-transition.active { visibility: visible; opacity: 1; }
.passage-light {
  position: absolute;
  width: 22vmin;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff5c5;
  box-shadow: 0 0 50px #ffd86e, 0 0 150px 50px rgba(255,210,93,.58);
  transform: scale(.08);
}
.passage-transition.active .passage-light { animation: enter-light 1.35s cubic-bezier(.65,0,.25,1) forwards; }
.passage-transition p { position: relative; margin-top: 160px; font-family: Fraunces, serif; font-size: clamp(22px, 4vw, 38px); letter-spacing: .02em; opacity: 0; }
.passage-transition.active p { animation: passage-copy .9s .1s ease forwards; }

@keyframes choice-pulse { 50% { transform: rotate(15deg) scale(1.12); } }
@keyframes enter-light { 55% { transform: scale(.18); } 100% { transform: scale(13); } }
@keyframes passage-copy { 30%, 70% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-8px); } }

.film-library-modal {
  width: min(940px, calc(100% - 30px));
  max-height: calc(100% - 30px);
  overflow: auto;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 28px;
  padding: clamp(26px, 4vw, 46px);
  color: white;
  background: radial-gradient(circle at 80% 0, rgba(31,120,125,.36), transparent 38%), linear-gradient(145deg, #123e4a, #071e27 72%);
  box-shadow: 0 28px 90px rgba(0,0,0,.52);
}
.film-library-modal::backdrop { background: rgba(3,17,22,.72); backdrop-filter: blur(8px); }
.act5-modal { width: min(1080px, calc(100% - 32px)); }
.act5-modal .custom-video-player { margin: 18px 0; }
.verb-lesson-modal { width: min(960px, calc(100% - 32px)); }
.verb-lesson-modal video { display:block; width:100%; max-height:62vh; margin:18px 0; border-radius:18px; background:#02090c; }
.verb-lesson-coming-soon { display:grid; place-items:center; gap:8px; min-height:min(52vh,460px); margin:18px 0; border:1px dashed rgba(255,255,255,.3); border-radius:18px; color:rgba(255,255,255,.72); background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.025)); text-align:center; }
.verb-lesson-coming-soon span { display:grid; place-items:center; width:64px; height:64px; padding-left:4px; border-radius:50%; color:#3e2c09; background:var(--gold); font-size:24px; }
.verb-lesson-coming-soon strong { color:white; font-family:"Fraunces",serif; font-size:clamp(28px,4vw,42px); }
.verb-lesson-coming-soon small { font-size:14px; }
.verb-lesson-actions { display:flex; align-items:center; justify-content:center; gap:12px; }
.verb-lesson-actions .primary-btn, .verb-lesson-actions .secondary-portal-btn { width:auto; margin:0; }
.act5-modal video { width: 100%; max-height: 62vh; background: #02090c; }
.radical-video-modal { width: min(1000px, calc(100% - 32px)); }
.radical-video-modal video { display: block; width: 100%; max-height: 65vh; border-radius: 18px; background: #02090c; }
.radical-continue { width: auto; margin: 18px 0 0 auto; }
.act5-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.act5-choices .story-choice { width: auto; min-height: 52px; color: #fff; }
.act5-three-choices .primary-btn { flex: 1 1 220px; }
.film-library-modal h2 { max-width: 700px; font-size: clamp(34px, 5vw, 52px); }
.film-close-btn { z-index: 2; color: white; background: rgba(255,255,255,.12); }
.film-library-intro { margin: 10px 0 18px; color: rgba(255,255,255,.68); }
.film-picker-label { display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%; margin: 0 0 22px auto; color: var(--gold); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.film-picker-label select { min-width: min(430px, 62vw); max-width: 100%; padding: 11px 38px 11px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; color: white; background: #123d49; font: 600 13px "DM Sans", sans-serif; text-transform: none; letter-spacing: normal; cursor: pointer; }
.film-picker-label select:focus-visible { outline: 3px solid rgba(243,182,63,.38); outline-offset: 2px; border-color: var(--gold); }
.film-player-picker { margin-top: -52px; margin-bottom: 24px; }
.film-carousel { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; align-items: center; gap: 18px; }
.carousel-arrow { width: 46px; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: white; background: rgba(255,255,255,.08); font-size: 20px; }
.carousel-arrow:disabled { opacity: .28; cursor: default; }
.film-card { overflow: hidden; display: grid; grid-template-columns: minmax(260px, 1.25fr) minmax(230px, .75fr); height: clamp(310px, 43vh, 420px); border: 1px solid rgba(255,255,255,.18); border-radius: 22px; background: rgba(255,255,255,.08); box-shadow: 0 20px 55px rgba(0,0,0,.24); }
.film-cover { position: relative; min-height: 0; overflow: hidden; background: #061920; }
.film-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 65%, rgba(7,30,39,.4)); pointer-events: none; }
.film-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-play { position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%; width: 72px; aspect-ratio: 1; padding-left: 5px; border: 0; border-radius: 50%; color: #49350c; background: var(--gold); box-shadow: 0 0 0 12px rgba(255,255,255,.15), 0 12px 35px rgba(0,0,0,.3); font-size: 24px; transition: transform .2s, filter .2s; }
.cover-play:hover { transform: scale(1.08); filter: brightness(1.06); }
.film-card-copy { align-self: center; padding: 30px; }
.film-card-copy > p { margin: 0 0 10px; color: var(--gold); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.film-card-copy h3 { margin: 0; font-family: Fraunces, serif; font-size: clamp(25px, 3vw, 34px); line-height: 1.12; }
.watch-film-btn { width: 100%; margin-top: 26px; padding: 14px 16px; border: 0; border-radius: 13px; color: #49350c; background: var(--gold); font-weight: 700; }
.watch-film-btn span { float: right; }
.carousel-dots { display: flex; justify-content: center; gap: 7px; margin-top: 18px; }
.carousel-dots span { width: 7px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.3); }
.carousel-dots span.active { width: 22px; background: var(--gold); }
.back-to-films { margin-bottom: 20px; border: 0; color: white; background: transparent; font-weight: 700; }
.film-player-heading { padding-right: 40px; margin-bottom: 22px; }
.film-player-heading h2 { font-size: clamp(28px, 4vw, 44px); }
.film-player-view .custom-video-player { box-shadow: 0 18px 55px rgba(0,0,0,.35); }
.film-player-view video { display: block; width: 100%; max-height: 62vh; background: #020708; }

/* Scène des concerts */
.concert-modal { width: min(900px, calc(100% - 28px)); max-height: calc(100% - 28px); overflow: auto; border: 1px solid rgba(255,255,255,.2); border-radius: 28px; padding: clamp(26px,4vw,44px); color: white; background: radial-gradient(circle at 82% 5%,rgba(243,182,63,.22),transparent 30%),linear-gradient(145deg,#173f50,#081c25 76%); box-shadow: 0 30px 100px rgba(0,0,0,.55); }
.concert-modal::backdrop { background: rgba(3,15,20,.76); backdrop-filter: blur(8px); }
.concert-modal h2 { font-size: clamp(32px,5vw,52px); }.concert-close { z-index: 3; color: white; background: rgba(255,255,255,.12); }.concert-intro,.concert-end-modal>p { color: rgba(255,255,255,.72); }
.concert-choices { display: grid; grid-template-columns: repeat(2,1fr); gap: 11px; margin-top: 25px; }
.concert-choices button { display: grid; grid-template-columns: 42px 1fr; column-gap: 12px; align-items: center; padding: 15px; border: 1px solid rgba(255,255,255,.18); border-radius: 15px; color: white; background: rgba(255,255,255,.08); text-align: left; }
.concert-choices button:not(:disabled):hover { border-color: var(--gold); background: rgba(243,182,63,.13); }.concert-choices button:disabled { opacity: .42; cursor: default; }.concert-choices button>span { grid-row: 1/3; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #47330c; background: var(--gold); font-size: 20px; }.concert-choices small { color: rgba(255,255,255,.62); }
.concert-player-modal { width: min(1100px,calc(100% - 28px)); }.concert-player-modal video { display: block; width: 100%; max-height: 70vh; margin-top: 20px; border-radius: 18px; background: #020708; }
.concert-end-modal { width: min(720px,calc(100% - 28px)); text-align: center; }.concert-end-icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; color: #47330c; background: var(--gold); font-size: 30px; }.concert-end-actions { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 26px; }.concert-end-actions button { padding: 18px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 15px; color: white; background: rgba(255,255,255,.08); }.concert-end-actions button:hover { border-color: var(--gold); }.concert-end-actions span,.concert-end-actions strong,.concert-end-actions small { display: block; }.concert-end-actions span { margin-bottom: 8px; color: var(--gold); font-size: 24px; }.concert-end-actions small { margin-top: 5px; color: rgba(255,255,255,.58); }
@media(max-width:650px){.concert-choices,.concert-end-actions{grid-template-columns:1fr}.concert-end-actions button{text-align:left}.concert-end-actions span{display:inline;margin-right:8px}}

.rainbow-modal {
  width: min(850px, calc(100% - 30px));
  max-height: calc(100% - 30px);
  overflow: auto;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 28px;
  padding: clamp(26px, 4vw, 44px);
  color: #173743;
  background: linear-gradient(135deg, rgba(255,255,255,.97), rgba(255,250,229,.97));
  box-shadow: 0 28px 90px rgba(0,0,0,.45);
}
.rainbow-modal::backdrop { background: rgba(3,17,22,.72); backdrop-filter: blur(8px); }
.rainbow-heading { text-align: center; }
.rainbow-heading h2 { font-size: clamp(32px, 5vw, 48px); }
.rainbow-heading > p:last-child { margin: 10px auto 22px; max-width: 620px; color: #52717a; }
.rainbow-question { padding: 20px; border: 1px solid #d9e2df; border-radius: 18px; text-align: center; background: white; }
.rainbow-question span { display: block; color: #698087; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.rainbow-question strong { display: block; margin: 6px 0 10px; font-family: Fraunces, serif; font-size: 28px; }
.rainbow-question p { margin: 0; font-size: 20px; }
.pronoun-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-top: 18px; }
.pronoun-choice { display: grid; grid-template-columns: 22px 1fr; align-items: center; column-gap: 9px; padding: 13px; border: 2px solid transparent; border-radius: 14px; color: #173743; text-align: left; background: white; box-shadow: 0 5px 16px rgba(18,61,75,.09); }
.pronoun-choice:hover:not(:disabled) { border-color: var(--pronoun-color); transform: translateY(-2px); }
.pronoun-choice:disabled { cursor: default; opacity: .48; }
.pronoun-choice.correct { border-color: var(--pronoun-color); opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--pronoun-color) 22%, transparent); }
.pronoun-choice.incorrect { border-color: #b53b32; opacity: .7; }
.pronoun-choice .color-swatch { grid-row: span 2; width: 20px; height: 20px; border-radius: 50%; background: var(--pronoun-color); box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.pronoun-choice strong { font-size: 14px; }
.pronoun-choice small { color: #698087; font-size: 11px; }
.rainbow-feedback { min-height: 24px; margin: 16px 0 0; text-align: center; font-weight: 700; }
.rainbow-feedback.success { color: #167344; }
.rainbow-feedback.error { color: #a33a32; }
.rainbow-next { display: block; margin: 16px auto 0; }
.rainbow-next[hidden] { display: none; }
