.hspt{--violet:#7964bd;--peach:#ffd09b;font-family:'League Spartan',sans-serif;color:#fff;background:linear-gradient(135deg,#6654ad,#a17ebc);box-sizing:border-box}.hspt *{box-sizing:border-box}.hspt[hidden]{display:none!important}.hspt-entry{margin:22px 20px;padding:25px;border-radius:26px;box-shadow:0 12px 30px #6d55a51a}.hspt h2,.hspt h3{font-family:inherit;color:var(--peach);line-height:1.15;margin:12px 0}.hspt h2{font-size:30px}.hspt h3{font-size:24px}.hspt p{font-family:inherit;color:inherit;line-height:1.5;margin:12px 0;font-size:17px}.hspt small{font-size:13px;line-height:1.4}.hspt button,.hspt select{font:600 17px/1.3 'League Spartan',sans-serif;cursor:pointer;min-height:46px;border-radius:24px;border:1px solid #ffffff66;padding:12px 18px;background:#ffffff15;color:white}.hspt button:focus-visible,.hspt select:focus-visible{outline:3px solid #ffcb92;outline-offset:3px}.hspt .hspt-primary{background:white;color:#6950a5;border:0;width:100%;margin-top:14px}.hspt select{background:white;color:#49365e;width:100%;margin-top:8px}.hspt label{display:block}.hspt-shell{position:fixed;inset:0 0 var(--hspt-bottom,0px);z-index:95;overflow:auto;overscroll-behavior:contain;padding:max(22px,env(safe-area-inset-top)) 20px 32px;background:radial-gradient(circle at 95% 0,#ffffff13,transparent 35%),linear-gradient(145deg,#6353ab,#a883ba)}.hspt-inner{max-width:720px;margin:auto}.hspt-bar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:24px}.hspt-kicker{font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:700}.hspt-options{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:24px 0}.hspt-checks{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}.hspt-checks label{display:flex;align-items:center;gap:8px;background:#ffffff15;padding:10px 12px;border-radius:18px;font-size:15px}.hspt input{accent-color:#f4bf88;width:19px;height:19px}.hspt-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.hspt .hspt-ex{padding:0;overflow:hidden;border-radius:18px;text-align:left;background:#ffffff12;min-width:0}.hspt-ex img{display:block;width:100%;aspect-ratio:1;object-fit:cover;background:#6956a5}.hspt-ex span{display:block;padding:10px;font-size:14px;font-weight:400;line-height:1.3}.hspt-ex small{display:block;opacity:.8;font-size:11px;margin-bottom:5px}.hspt-video{display:block;width:min(100%,380px);height:205px;object-fit:contain;background:#382653;border:0;border-radius:20px;margin:0 auto 22px}.hspt-cue{font-size:22px!important;line-height:1.45!important;font-weight:400}.hspt-time{text-align:center;font-size:70px;font-weight:700;line-height:1;color:var(--peach);font-variant-numeric:tabular-nums;margin:18px 0 5px}.hspt-time small{display:block;color:white;font-size:14px;margin-top:8px}.hspt-progress{height:6px;background:#ffffff25;border-radius:6px;overflow:hidden;margin:18px 0}.hspt-progress div{height:100%;background:linear-gradient(90deg,#d7b6e7,#ffd09b);transition:width .15s linear}.hspt-controls{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.hspt-controls button{flex:1}.hspt-detail{position:fixed;inset:0;z-index:110;background:#30204199;display:flex;align-items:center;justify-content:center;padding:20px}.hspt-detail article{max-width:560px;max-height:85vh;overflow:auto;background:linear-gradient(145deg,#6553aa,#9b7fbb);border-radius:25px;padding:24px;width:100%}.hspt-note{padding:16px;background:#ffffff12;border-radius:18px}.hspt [role=status]{line-height:1.4}.hspt-error{background:#fff2dd;color:#68451d;padding:16px;border-radius:16px}.hspt .hspt-next{font-size:15px;background:#ffffff15;border-radius:18px;padding:14px}.hspt-finish{text-align:center;padding:35px 0}.hspt-finish strong{font-size:65px;color:var(--peach)}@media(max-width:420px){.hspt-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hspt-options{gap:10px}.hspt h2{font-size:28px}.hspt-cue{font-size:20px!important}.hspt-video{height:175px}}@media(prefers-reduced-motion:no-preference){.hspt-ex{animation:hspt-appear .3s both}@keyframes hspt-appear{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}}
/* Même langage visuel que le lecteur des routines : vidéo, chrono et commandes. */
.hspt h2{font-weight:800;color:#ffc88f;background:linear-gradient(100deg,#ffe0a8,#f5aa78);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.hspt-routine-links{margin:18px 0;padding:16px;border:1px solid #ffffff44;border-radius:22px}.hspt-routine-links p{font-size:14px;margin-bottom:0}.hspt-playing .hspt-bar{margin-bottom:14px}.hspt-playing .hspt-video{height:190px;max-width:380px;margin-bottom:14px}.hspt-playing .hspt-time{border:6px solid #ffffff40;outline:2px solid #f6bd8d;border-radius:50%;width:122px;height:122px;margin:16px auto;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:48px;box-shadow:0 0 24px #f8c68e28}.hspt-playing .hspt-time small{font-size:11px}.hspt-playing h2{text-align:center;font-size:25px}.hspt-playing .hspt-cue{font-size:20px!important}.hspt-playing .hspt-controls{position:sticky;bottom:0;background:#7963b6;padding:10px;border-radius:24px;z-index:2;box-shadow:0 -5px 22px #5b459a44}.hspt-playing .hspt-controls button:first-child{background:white;color:#6950a5}.hspt-playing summary{cursor:pointer;padding:10px 0}.hspt [data-sport-music]{width:100%;margin-bottom:12px}
/* Lecteur immersif, commun aux séances sport et aux routines. */
.hspt-shell.hspt-playing{padding-left:0;padding-right:0;background:#faf8ff;color:#43375d}.hspt-playing .hspt-inner{max-width:720px}.hspt-playing .hspt-bar,.hspt-player-top,.hspt-playing details,.hspt-playing .hspt-cue{padding:0 18px}.hspt-playing .hspt-bar button{color:#6950a5;background:#eee7fa}.hspt-player-top{display:flex;align-items:center;justify-content:space-between;color:#6950a5}.hspt-player-top [data-sport-music]{width:44px;height:44px;min-height:44px;padding:10px;border:0;border-radius:50%;background:#eee7fa;color:#6950a5;margin:0}.hspt-stage{position:relative;background:#34264a;overflow:hidden}.hspt-playing .hspt-video{width:100%;max-width:none;height: min(65dvh,750px);object-fit:contain;margin:0;border-radius:0}.hspt-overlay{position:absolute;inset:0;pointer-events:none;display:flex;align-items:flex-end;justify-content:flex-end;padding:18px}.hspt-playing .hspt-time{margin:0;background:#443062a8;color:white;flex-shrink:0}.hspt-rest .hspt-video{filter:blur(9px);opacity:.55}.hspt-rest .hspt-overlay{flex-direction:column;align-items:center;justify-content:center;text-align:center;background:#30204355;color:white;gap:14px;padding:24px}.hspt-rest .hspt-overlay p{max-width:520px;font-size:18px;margin:0}.hspt-rest h2{margin:0}.hspt-upnext{font-size:12px;text-transform:uppercase;letter-spacing:1px}.hspt-playing .hspt-controls{margin:16px}.hspt-playing .hspt-progress{margin:12px 18px;background:#eae3f7}.rpi-rest-scene{position:relative;height:100%;width:100%;overflow:hidden}.rpi-rest-scene video,.rpi-rest-scene iframe{width:100%;height:100%;object-fit:contain;filter:blur(9px);opacity:.55}.rpi-rest-scene .rpi-rest{position:absolute;inset:0;background:#30204388;padding:20px;color:white}.rpi-rest-scene .rpi-rest h2{color:#ffd09b}.rp-music-control{display:none!important}
.hspt-playing .hspt-controls{position:static}.hspt-rest .hspt-overlay{overflow:auto}.hspt-rest .hspt-overlay h2{font-size:24px}.hspt-rest .hspt-overlay p{font-size:16px;line-height:1.4}@media(max-width:600px){.hspt-playing .hspt-video{height:70dvh}.hspt-playing .hspt-bar{margin-bottom:10px}.hspt-rest .hspt-time{width:110px;height:110px;font-size:44px}}
/* Lecteur bord à bord — commandes intégrées à la vidéo. */
.hspt-shell.hspt-playing{inset:0;z-index:650;padding:0;overflow:hidden;background:#222}.hspt-playing .hspt-inner{max-width:none;height:100%}.hspt-playing .hspt-bar{display:none}.hspt-playing .hspt-stage{height:100dvh;width:100%}.hspt-playing .hspt-video{height:100%;width:100%;object-fit:cover;max-width:none}.hspt-white-fade{position:absolute;inset:45% 0 0;pointer-events:none;background:linear-gradient(transparent,#ffffff30 35%,#fffffff5)}.hspt-live-top{position:absolute;top:calc(env(safe-area-inset-top) + 18px);left:14px;right:14px;display:grid;grid-template-columns:36px 1fr 36px;gap:12px;align-items:start;z-index:4}.hspt-live-top h2{font-size:clamp(20px,4.8vw,30px);margin:0;text-align:center;filter:none;line-height:1.15}.hspt-live-top [data-sport-music],.hspt-live-top [data-leave]{width:36px;height:36px;min-height:36px;padding:8px;margin:0;background:#6650aabf;border:0;border-radius:50%;color:white}.hspt-live-top [data-leave]{font-size:24px;padding:0}.hspt-playing .hspt-progress{position:absolute;top:calc(env(safe-area-inset-top) + 92px);left:18px;right:18px;margin:0;height:4px;z-index:3;background:#ffffff55}.hspt-playing .hspt-overlay{padding:0 20px calc(env(safe-area-inset-bottom) + 180px);pointer-events:none}.hspt-playing .hspt-time{height:100px;width:100px;font-size:40px;background:#57417aaa}.hspt-live-footer{position:absolute;bottom:calc(env(safe-area-inset-bottom) + 14px);left:20px;right:20px;z-index:4;color:#49365e}.hspt-live-footer>small{font-weight:700}.hspt-live-footer p{font-size:15px;line-height:1.3;max-width:680px;margin:6px auto 14px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.hspt-arrows{display:flex;justify-content:space-between;align-items:center}.hspt-arrows button{background:#7760b9d9;color:white;border:0;border-radius:50%;height:54px;width:54px;padding:0;font-size:40px}.hspt-arrows [data-pause]{height:42px;width:42px;font-size:20px}.hspt-arrows button:disabled{opacity:.3}.hspt-rest .hspt-overlay{padding:100px 24px 120px;gap:12px;background:#34264955}.hspt-rest .hspt-white-fade{opacity:.5}.hspt-rest .hspt-live-footer p{display:none}.hspt-rest .hspt-video{object-fit:cover}.hspt-focus{grid-column:1/-1}.hspt-entry-image{width:100%;max-height:230px;object-fit:cover;border-radius:20px;margin:16px 0 4px}.hspt-history{margin-top:30px;border-top:1px solid #ffffff55;padding-top:20px}.hspt-history article{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid #ffffff30}.hspt-history small{display:block;margin-top:6px}.hspt-history b{white-space:nowrap;font-variant-numeric:tabular-nums}
/* Les routines utilisent elles aussi toute la hauteur disponible. */
.routine-player.open:not(.rp-intro-mode){bottom:0!important;z-index:650}.routine-player:not(.rp-intro-mode) .rp-topband{position:absolute;inset:0 0 auto;background:transparent;padding:calc(env(safe-area-inset-top) + 15px) 16px 0;pointer-events:none;z-index:10}.routine-player:not(.rp-intro-mode) .rp-topband-row{margin:0}.routine-player:not(.rp-intro-mode) .rp-counter,.routine-player:not(.rp-intro-mode) .rp-duree-badge{display:none!important}.routine-player:not(.rp-intro-mode) .rp-mute-btn{position:absolute;left:16px;top:calc(env(safe-area-inset-top) + 15px);pointer-events:auto;background:#7760b9c9;width:34px;height:34px}.routine-player:not(.rp-intro-mode) .rp-mute-btn svg{stroke:white}.routine-player:not(.rp-intro-mode) .rp-progress{margin-top:82px}.routine-player:not(.rp-intro-mode) .rp-video-area{height:100%;flex:1}.routine-player:not(.rp-intro-mode) .rp-video-area:after{content:'';position:absolute;inset:55% 0 0;background:linear-gradient(transparent,#fffffff0);pointer-events:none;z-index:3}.routine-player:not(.rp-intro-mode) .rp-title{top:calc(env(safe-area-inset-top) + 20px);left:60px;right:60px;z-index:5;text-align:center}.routine-player:not(.rp-intro-mode) .rp-home{left:auto;right:12px;top:calc(env(safe-area-inset-top) + 14px);width:34px;height:34px}.routine-player:not(.rp-intro-mode) .rp-bottomband{position:absolute;bottom:0;left:0;right:0;background:transparent;padding:12px 20px calc(env(safe-area-inset-bottom) + 18px);z-index:10}.routine-player:not(.rp-intro-mode) .rp-bb-side{display:none}.routine-player:not(.rp-intro-mode) .rp-nav-col{width:100%;justify-content:space-between}.routine-player .rpi-hud{bottom:100px;z-index:8}.routine-player .rpi-rest-scene video{object-fit:cover}.routine-player.rp-full .rp-topband{display:block}

/* Vidéo intégrale et récupération lisible — 11 novembre. */
.hspt-playing .hspt-stage{background:#fff}
.hspt-playing .hspt-video{position:absolute;top:94px;left:0;width:100%;height:calc(100% - 158px);object-fit:contain;object-position:center;filter:none;opacity:1}
.hspt-white-fade{inset:auto 0 0;height:85px;background:linear-gradient(transparent,#fff 80%)}
.hspt-live-top h2{font-size:clamp(18px,4.4vw,26px);text-shadow:none;filter:none}
.hspt-live-footer>small{display:none}
.hspt-live-footer{bottom:calc(env(safe-area-inset-bottom) + 10px)}
.hspt-playing .hspt-overlay{padding:0 18px 86px}
.hspt-playing .hspt-time{width:58px;height:58px;font-size:25px;border-width:3px;outline-width:1px;box-shadow:none}
.hspt-playing .hspt-time small{font-size:7px}
.hspt-playing .hspt-progress{top:88px;background:#eee8f7}
.hspt-rest .hspt-overlay{inset:80px 0 74px;padding:12px 22px;justify-content:flex-start;gap:12px;background:#faf8ff;color:#49365e;pointer-events:auto;overflow-y:auto}
.hspt-rest .hspt-overlay .hspt-video{position:static;width:100%;height:30dvh;min-height:130px;object-fit:contain;filter:none;opacity:1;border-radius:16px;background:white;flex-shrink:0}
.hspt-rest .hspt-overlay h2{font-size:21px;background:none;-webkit-text-fill-color:#6b53a6;color:#6b53a6}
.hspt-rest .hspt-overlay p{font-size:15px;line-height:1.5}
.hspt-rest .hspt-time{min-height:58px}
.hspt-rest .hspt-white-fade{opacity:1}
.routine-player:not(.rp-intro-mode) .rp-video-area:after{inset:auto 0 0;height:85px;background:linear-gradient(transparent,#fff)}
.routine-player .rp-video-area video{object-fit:contain!important}
.routine-player .rpi-hud{transform:scale(.65);transform-origin:bottom right;bottom:86px}
.routine-player .rpi-rest-scene{display:flex;flex-direction:column;align-items:center;padding:95px 20px 90px;background:#faf8ff;overflow-y:auto;box-sizing:border-box}
.routine-player .rpi-rest-scene video,.routine-player .rpi-rest-scene iframe{width:100%;height:30dvh;object-fit:contain;filter:none;opacity:1;flex-shrink:0}
.routine-player .rpi-rest-scene .rpi-rest{position:static;background:transparent;color:#49365e;padding:12px;text-align:center}

/* Fond blanc et raccords doux, sans teinter le mouvement. */
.hspt-shell.hspt-playing,.hspt-playing .hspt-video{background:#fff}
.hspt-playing .hspt-stage:not(.hspt-rest):before{content:'';position:absolute;top:94px;left:0;right:0;height:28px;background:linear-gradient(#fff,transparent);z-index:2;pointer-events:none}
.hspt-white-fade{height:100px;background:linear-gradient(transparent 0%,#ffffffb8 55%,#fff 100%)}
.hspt-playing .hspt-time{gap:1px;padding:5px 0 3px;line-height:1;align-items:center;justify-content:center}
.hspt-playing .hspt-time [data-seconds]{display:block;line-height:1;transform:translateY(2px)}
.hspt-playing .hspt-time small{margin:0;line-height:1.15;transform:translateY(-1px);text-align:center;width:100%}
.routine-player:not(.rp-intro-mode),.routine-player:not(.rp-intro-mode) .rp-video-area,.routine-player:not(.rp-intro-mode) .rp-clip video{background:#fff!important}
.routine-player .rpi-time{gap:2px}
.routine-player .rpi-time>span{transform:translateY(3px)}
.routine-player .rpi-time small{margin-top:0;transform:translateY(-2px);text-align:center}

/* Titre posé sur le haut de la vidéo, sous les commandes. */
.hspt-live-top h2{margin-top:124px}
.routine-player:not(.rp-intro-mode) .rp-title{top:calc(env(safe-area-inset-top) + 128px)}

/* Cartes et lecteur sport — cadrage clair des mouvements. */
.hspt-ex img{
  object-fit:contain;
  object-position:center center;
  background:#fff;
  filter:brightness(1.08) saturate(.92);
}
.hspt-live-top h2{
  color:#60479c;
  background:none;
  -webkit-text-fill-color:#60479c;
  text-shadow:0 1px 0 #fff,0 2px 12px #ffffffcc;
}
.hspt-rest .hspt-live-top h2{
  color:#60479c;
  -webkit-text-fill-color:#60479c;
}
