/* ==========================================================================
   Talenta Pros video player, v2 (21 Nov 2026)
   Captions button, speed + settings menu, resume pill, Up next, hold for 2x,
   bigger controls on phones. Builds on the player styles in live.css.
   ========================================================================== */

/* Captions button: green underline when on */
.tp-pc-cc{position:relative}
.tp-pc-cc[hidden]{display:none!important}
.tp-pc-cc.on::after{content:"";position:absolute;left:11px;right:11px;bottom:6px;height:3px;border-radius:3px;background:var(--pc-g,#12B886)}

/* Speed + settings menu */
.tp-player .tp-pc-menu{min-width:240px;padding:8px}
.tp-player .tp-pc-menu:not([hidden]){display:block!important;width:auto;max-width:none;border-radius:14px;gap:0}
.tp-player .tp-pc-menu .tp-pc-mh{display:block!important}
.tp-player .tp-pc-menu .tp-pc-tog{width:100%;border-radius:8px;font-weight:600;padding:11px 10px}
.tp-player .tp-pc-menu .tp-pc-tog[aria-checked="true"]{background:none!important}
.tp-player .tp-pc-menu .tp-pc-tog:hover{background:#E8F8F1!important}
.tp-player .tp-pc-speeds button{width:auto!important;border-radius:9px!important}
.tp-pc-speeds{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;padding:0 4px 6px}
.tp-player .tp-pc-speeds button{justify-content:center;padding:9px 0;border:1.5px solid #E3E8EF;border-radius:9px;font:800 13px Manrope,system-ui,sans-serif}
.tp-player .tp-pc-speeds button::before{display:none}
.tp-player .tp-pc-speeds button[aria-checked="true"]{background:#12B886;border-color:#12B886;color:#fff}
.tp-player .tp-pc-menu .tp-pc-tog{justify-content:space-between}
.tp-player .tp-pc-menu .tp-pc-tog[hidden]{display:none}
.tp-player .tp-pc-menu .tp-pc-tog::before{display:none}
.tp-pc-tog i{position:relative;flex:none;width:38px;height:22px;border-radius:99px;background:#CBD3DE;transition:background .15s}
.tp-pc-tog i::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .15s}
.tp-pc-tog[aria-checked="true"] i{background:#12B886}
.tp-pc-tog[aria-checked="true"] i::after{transform:translateX(16px)}
.tp-player .tp-pc-menu .tp-pc-tog[aria-checked="true"]{color:#172033;font-weight:700}
.tp-pc-keys{margin:6px 4px 2px;padding:8px 8px 4px;border-top:1px solid #EEF1F5;font:600 11.5px/1.5 Manrope,system-ui,sans-serif;color:#6B7689}
@media (hover:none){.tp-pc-keys{display:none}}

/* Hold for 2x */
.tp-pc-2x{position:absolute;top:14px;left:50%;z-index:6;transform:translate(-50%,-6px);padding:6px 14px;border-radius:999px;background:rgba(10,16,30,.72);color:#fff;font:800 14px Manrope,system-ui,sans-serif;letter-spacing:.02em;opacity:0;pointer-events:none;transition:opacity .15s,transform .15s}
.tp-player.is-2x .tp-pc-2x{opacity:1;transform:translate(-50%,0)}

/* Resume pill */
.tp-pc-resume{position:absolute;left:12px;top:12px;z-index:6;display:flex;align-items:center;gap:10px;padding:6px 6px 6px 14px;border-radius:999px;background:rgba(10,16,30,.82);color:#fff;font:600 13.5px Manrope,system-ui,sans-serif;box-shadow:0 8px 20px -10px rgba(0,0,0,.6);transition:opacity .35s}
.tp-pc-resume b{font-weight:800}
.tp-pc-resume button{border:0;border-radius:999px;padding:7px 13px;background:#12B886;color:#fff;font:800 13px Manrope,system-ui,sans-serif;cursor:pointer}
.tp-pc-resume button:hover{background:#0E9F73}
.tp-pc-resume.out{opacity:0}

/* Up next */
.tp-upnext{position:absolute;inset:0;z-index:7;display:grid;place-items:center;padding:16px;background:rgba(10,16,30,.78);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);animation:tpUpIn .25s ease-out}
@keyframes tpUpIn{from{opacity:0}}
.tp-up-card{width:min(420px,100%);color:#fff;text-align:center;font-family:Manrope,system-ui,sans-serif}
.tp-up-card small{display:block;font:800 12px Manrope,system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#7EE0BF}
.tp-up-card b{display:block;margin:6px 0 16px;font:800 clamp(16px,2.6vw,22px)/1.3 Manrope,system-ui,sans-serif}
.tp-up-row{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.tp-up-row button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px;border:1.5px solid rgba(255,255,255,.45);border-radius:12px;background:transparent;color:#fff;font:800 14.5px Manrope,system-ui,sans-serif;cursor:pointer}
.tp-up-row button:hover{background:rgba(255,255,255,.1)}
.tp-up-row .tp-up-go{border-color:#12B886;background:#12B886}
.tp-up-row .tp-up-go:hover{background:#0E9F73}
.tp-up-ring{width:24px;height:24px;transform:rotate(-90deg)}
.tp-up-ring circle{fill:none;stroke:#fff;stroke-width:4;stroke-dasharray:94.25;stroke-dashoffset:0}
.tp-up-sub{margin-top:10px}
.tp-up-sub button{border-color:transparent;font-weight:700;color:#D6DCE8;min-height:38px;padding:0 12px}
.tp-up-sub svg{width:18px;height:18px}
@container (max-width:420px){.tp-up-card b{margin-bottom:10px}.tp-up-row button{min-height:40px;padding:0 14px;font-size:13.5px}}

/* Interview videos on the same player: no watermark, keep their portrait shape */
.tp-vwrap.tp-vbasic .tp-wm{display:none}
.tp-vwrap.tp-vbasic{border-radius:inherit}
.tp-vwrap.tp-vbasic .tp-local-video{width:100%;height:auto;display:block}

/* ---------- Phones: bigger, easier controls ---------- */
@media (hover:none) and (pointer:coarse){
  .tp-player .tp-pc{padding:34px 10px calc(10px + env(safe-area-inset-bottom,0px))}
  .tp-player .tp-pc-btn{min-width:46px;height:46px}
  .tp-player .tp-pc-btn svg{width:26px;height:26px}
  .tp-player .tp-pc-txt{min-width:54px;font-size:15px}
  .tp-player .tp-pc-time{font-size:14px}
  .tp-player .tp-pc-seek{padding:10px 4px 10px}
  .tp-player .tp-pc-range{height:8px}
  .tp-player .tp-pc-range::-webkit-slider-thumb{width:22px;height:22px}
  .tp-player .tp-pc-big{width:84px;height:84px;margin:-42px 0 0 -42px}
  .tp-player .tp-pc-big svg{width:38px;height:38px}
  .tp-player .tp-pc-vol .tp-pc-volr{display:none}
  .tp-player .tp-pc-speed{position:static}
  .tp-player .tp-pc-menu{position:absolute;left:8px;right:8px;top:auto;bottom:8px;max-height:min(70vh,calc(56.25vw - 24px));overflow-y:auto;min-width:0;z-index:8;padding:10px;border-radius:16px}
  .tp-player.is-fs .tp-pc-menu{max-height:70vh;left:auto;width:min(360px,calc(100% - 16px))}
  .tp-player .tp-pc-menu button{padding:13px 10px;font-size:15px}
  .tp-player .tp-pc-speeds button{padding:12px 0}
}
/* Small players (phone width, not full screen): hide the less-used buttons so the rest stay big */
@container (max-width:430px){
  .tp-player [data-pc="back"],.tp-player [data-pc="fwd"]{display:none}
  .tp-player:not(.is-fs) .tp-pc-time{font-size:12.5px;margin-left:2px}
}

/* ---------- Portal comfort (21 Nov 2026) ---------- */
/* Ask Zena steps aside while scrolling down, comes back on scroll up / at the end */
.zn-fab{transition:transform .25s ease,opacity .25s ease}
.zn-fab.zn-away{transform:translateY(140%);opacity:0;pointer-events:none}
/* Room at the end of every page so the last buttons never sit under Ask Zena */
body.tp-app:not(.sb-lock){padding-bottom:96px}
@media (max-width:760px){body.tp-app:not(.sb-lock){padding-bottom:calc(var(--tp-mnav,64px) + 84px + env(safe-area-inset-bottom,0px))!important}}
/* Language note can be closed */
.tp-langbar-x{flex:none;width:28px;height:28px;margin-left:2px;border:0;border-radius:50%;background:#EEF4F1;color:#3D4A5C;font:700 18px/1 Manrope,system-ui,sans-serif;cursor:pointer}
.tp-langbar-x:hover{background:#DDEFE6}

/* Instructor Videos: on phones the photo becomes a clear instructor card (photo + name + role) */
.tp-iv-who{display:none}
@media (max-width:760px){
  body.tp-app .tp-iv-hero .tp-iv-photo{order:-1;display:flex!important;align-items:center;gap:16px;width:auto!important;aspect-ratio:auto!important;border-radius:18px!important;overflow:visible!important;box-shadow:none!important;padding:12px 14px;background:#fff;border:1px solid #DCEFE7}
  body.tp-app .tp-iv-hero .tp-iv-photo picture{flex:none;width:88px;height:88px;border-radius:50%;overflow:hidden;box-shadow:0 0 0 3px #fff,0 0 0 5px #12B886,0 10px 22px -10px rgba(11,31,58,.45)}
  body.tp-app .tp-iv-hero .tp-iv-photo img{width:100%;height:100%;object-fit:cover;object-position:50% 18%}
  .tp-iv-who{display:flex;flex-direction:column;gap:3px;min-width:0;font-family:Manrope,system-ui,sans-serif}
  .tp-iv-who b{font-size:17px;font-weight:800;color:#172033;line-height:1.2}
  .tp-iv-who span{font-size:13px;font-weight:600;color:#596579;line-height:1.35}
  .tp-iv-who span:first-of-type{color:#0A7D5B;font-weight:800;font-size:12px;letter-spacing:.06em;text-transform:uppercase}
}

/* Full screen on a phone held upright, where the browser can't rotate the screen: turn the
   player itself sideways so the lesson fills the screen (landscape). */
.tp-vwrap.is-fs.is-rot{position:fixed!important;inset:auto!important;top:0!important;left:0!important;width:100vh!important;height:100vw!important;width:100dvh!important;height:100dvw!important;max-width:none!important;transform-origin:top left;transform:translateX(100vw) rotate(90deg);padding:0!important;z-index:2147483000}
.tp-vwrap.is-fs.is-rot .tp-local-video{width:100%!important;height:100%!important}
/* Watermarks are placed in px on the picture by the player script */
.tp-wm2{opacity:.85}
/* Exit full screen button: top corner, always shown in full screen */
.tp-fs-x{display:none}
.tp-vwrap.is-fs .tp-fs-x{position:absolute;top:calc(12px + env(safe-area-inset-top,0px));left:12px;z-index:9;display:inline-flex;align-items:center;gap:6px;height:44px;padding:0 16px 0 12px;border:0;border-radius:999px;background:rgba(10,16,30,.72);color:#fff;font:800 15px Manrope,system-ui,sans-serif;cursor:pointer;box-shadow:0 6px 18px -8px rgba(0,0,0,.6)}
.tp-vwrap.is-fs .tp-fs-x:hover{background:rgba(10,16,30,.9)}
.tp-vwrap.is-fs .tp-pc-resume{top:calc(64px + env(safe-area-inset-top,0px))}
/* The control bar's see-through top area must not swallow taps on the video / big play button */
.tp-player .tp-pc{pointer-events:none!important}
.tp-player.show-ui .tp-pc > *,.tp-player.is-paused .tp-pc > *,.tp-player:focus-within .tp-pc > *,.tp-player.menu-open .tp-pc > *{pointer-events:auto}

/* Rotate button in full screen on phones (top-right), next to Exit (top-left) */
.tp-fs-rotb{display:none}
@media (pointer:coarse){
  .tp-vwrap.is-fs .tp-fs-rotb{position:absolute;top:calc(12px + env(safe-area-inset-top,0px));right:12px;z-index:9;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:rgba(10,16,30,.72);color:#fff;cursor:pointer;box-shadow:0 6px 18px -8px rgba(0,0,0,.6)}
}
/* Seek bar: the player handles finger drags (works upright, sideways and turned) */
.tp-player .tp-pc-seek{touch-action:none}
.tp-player.is-seeking .tp-pc-range::-webkit-slider-thumb{transform:scale(1.25)}
@media (pointer:coarse){.tp-player .tp-pc-seek{padding:14px 4px 12px}.tp-player .tp-pc-range{pointer-events:none}}

/* Lesson section buttons (Overview, Key concepts…): stick exactly under the top bar, no gap */
body.tp-app .lg-nav{top:calc(var(--tp-appbar-h,64px) - 1px)!important;box-shadow:0 8px 14px -12px rgba(23,32,51,.35)}
@media (max-width:760px){
  /* One row you can swipe, full width, solid white, so nothing shows through while scrolling */
  body.tp-app .lg-nav{flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:8px 16px!important;gap:6px;-webkit-mask-image:linear-gradient(90deg,#000 90%,transparent);mask-image:linear-gradient(90deg,#000 90%,transparent)}
  body.tp-app .lg-nav::-webkit-scrollbar{display:none}
  body.tp-app .lg-nav a{flex:none;white-space:nowrap;padding:7px 13px;font-size:13px}
  body.tp-app .lg-h{scroll-margin-top:calc(var(--tp-appbar-h,56px) + 60px)}
}

/* ---------- Phone alignment fixes (iPhone screenshots, 21 Nov) ---------- */
/* Controls fit on one line on every phone: no button cut off at the right edge */
@container (max-width:430px){
  .tp-player [data-pc="mute"],.tp-player .tp-pc-vol{display:none!important}
  .tp-player .tp-pc-row{gap:2px}
  .tp-player .tp-pc-btn{min-width:42px!important;height:44px!important;padding:0 4px}
  .tp-player .tp-pc-txt{min-width:46px!important}
  .tp-player .tp-pc-time{font-size:13px!important;margin-left:2px}
}
/* Lesson footer on phones: one tidy row (← | Mark complete | Next →), no tall empty band */
@media (max-width:760px){
  body.tp-app.tp-classroom .p-foot{flex-wrap:nowrap!important;align-items:center;gap:8px!important;padding:10px 76px 10px 16px!important;margin-top:20px!important;background:rgba(255,255,255,.97)!important}
  body.tp-app .p-foot #p-prev{flex:none;width:46px;min-width:46px;height:46px;padding:0!important;font-size:0!important;display:grid;place-items:center;border-radius:12px}
  body.tp-app .p-foot #p-prev::before{content:"←";font-size:20px;font-weight:800}
  body.tp-app .p-foot > div{flex:1;display:flex!important;gap:8px!important;flex-wrap:nowrap!important}
  body.tp-app .p-foot > div .btn{flex:1;min-height:46px;padding:0 10px!important;white-space:nowrap;border-radius:12px!important}
  body.tp-app .p-foot > div #p-next{flex:0 0 auto}
}
/* Lesson pages: the footer already leaves room for Ask Zena, so no extra empty band below it */
@media (max-width:760px){body.tp-app.tp-classroom:not(.sb-lock){padding-bottom:calc(var(--tp-mnav,64px) + 8px + env(safe-area-inset-bottom,0px))!important}}
@media (min-width:761px){body.tp-app.tp-classroom:not(.sb-lock){padding-bottom:24px}}
@media (max-width:760px){body.tp-app .p-foot #p-prev[style*="hidden"]{display:none!important}}

/* ==========================================================================
   Full audit fixes (21 Nov 2026, evening)
   ========================================================================== */
/* Phone lesson page: the video comes first. Course outline is reached from "All modules",
   lesson to lesson with ← / Next; tools and details follow the video. */
@media (max-width:760px){
  body.tp-app.tp-classroom .p-side{max-height:none!important;padding:0!important;background:#fff!important}
  body.tp-app.tp-classroom .p-side .p-list{display:none!important}
  body.tp-app.tp-classroom .p-side .p-back{padding:10px 16px 4px!important}
  body.tp-app.tp-classroom .p-side .p-prog{margin:0!important;padding:6px 16px 10px!important;background:none!important;color:#172033!important;border-radius:0!important}
  body.tp-app.tp-classroom .p-side .p-prog-t{font-size:12.5px!important;color:#596579!important}
  body.tp-app.tp-classroom .p-side .p-prog-t b{color:#172033!important}
  body.tp-app.tp-classroom .p-side .p-prog-bar{height:5px!important;background:#E6ECEA!important}
  body.tp-app.tp-classroom .p-main{display:flex!important;flex-direction:column}
  body.tp-app.tp-classroom .p-main > *{order:10}
  body.tp-app.tp-classroom .p-main > .p-crumb{order:1}
  body.tp-app.tp-classroom .p-main > h3{order:2}
  body.tp-app.tp-classroom .p-main > .video{order:3}
  body.tp-app.tp-classroom .p-main > .simple-box{order:4}
  body.tp-app.tp-classroom .p-main > .meta-chips{order:5}
  body.tp-app.tp-classroom .p-main > .outcome{order:6}
  body.tp-app.tp-classroom .p-main > .p-foot{order:30}
  body.tp-app.tp-classroom .p-main > .video{margin-top:4px}
  /* Language picker never wider than the screen */
  body.tp-app .meta-chips{max-width:100%}
  body.tp-app .meta-chips .chip-lang{max-width:100%;min-width:0}
  body.tp-app .meta-chips .chip-lang select{max-width:calc(100vw - 80px);min-width:0;text-overflow:ellipsis}
  /* My plan: long feature names wrap normally, the plan badge drops below */
  .tp-myplan-list li{display:grid!important;grid-template-columns:22px minmax(0,1fr);column-gap:10px;row-gap:4px;align-items:start}
  .tp-myplan-list li > i{grid-column:1;margin-top:1px}
  .tp-myplan-list li > span{grid-column:2;justify-self:start;margin:0}
  /* Practice Books: Zena on the right, clear of the reports */
  body.sb-lock .zn-fab{left:auto!important;right:12px!important;bottom:12px!important;padding:3px!important}
  body.sb-lock .zn-fab img{width:42px!important;height:42px!important}
}
/* Tablet: lesson tabs wrap instead of running off the edge */
@media (max-width:1100px){body.tp-app .ptabs{display:flex!important;flex-wrap:wrap!important;max-width:100%!important}}
/* Bigger tap targets */
.p-body input[type="checkbox"],.lg input[type="checkbox"],[id^="st-"][type="checkbox"]{width:22px;height:22px;flex:none}
.tp-modal .tp-x{min-width:40px;min-height:40px;display:grid;place-items:center}
.sb .cz-x{min-width:36px;min-height:36px}

/* ==========================================================================
   Class notes as study points (21 Nov 2026)
   ========================================================================== */
.lg .lg-k{font:800 11.5px Manrope,system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#0A7D5B}
/* In 30 seconds */
.lg-card.lg-sum{background:linear-gradient(135deg,#ECFBF4,#F7FDFA);border:1px solid #CDEFE0}
.lg-sum-l{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:10px}
.lg-sum-l li{position:relative;padding-left:28px;font-size:15px;line-height:1.55;color:#1C2A3A}
.lg-sum-l li::before{content:"";position:absolute;left:4px;top:7px;width:12px;height:12px;border-radius:4px;background:#12B886;box-shadow:0 0 0 4px #D3F3E5}
.lg-sum-l li b{color:#0B3D2E}
/* Key idea + points */
.lg .lg-lead{margin:0 0 8px;padding:10px 12px;border-left:4px solid #12B886;background:#F1FBF6;border-radius:0 10px 10px 0;font-weight:600;color:#14303A;line-height:1.55}
.lg .lg-pts,.rd-guide section ul{list-style:none;margin:0;padding:0!important;display:grid;gap:8px}
.lg .lg-pts li,.rd-guide section li{position:relative;padding-left:22px;line-height:1.6}
.lg .lg-pts li::before,.rd-guide section li::before{content:"";position:absolute;left:4px;top:.62em;width:7px;height:7px;border-radius:50%;background:#12B886}
.lg-card .lg-pts li{font-size:15px}
/* Point-to-point flow */
.lg-flow{background:#fff;border:1px solid #DCEFE7;border-radius:16px;padding:16px 18px;margin:0 0 12px}
.lg-flow ol{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column;align-items:stretch}
.lg-flow .lg-node{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1.5px solid #CFE3F4;border-radius:12px;background:#F7FAFE}
.lg-flow .lg-node i{flex:none;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#12B886;color:#fff;font:800 14px Manrope,system-ui,sans-serif;font-style:normal}
.lg-flow .lg-node b{display:block;font:800 15.5px Manrope,system-ui,sans-serif;color:#172033}
.lg-flow .lg-node small{display:block;font:500 13px/1.4 Manrope,system-ui,sans-serif;color:#596579;margin-top:2px}
.lg-flow .lg-via{position:relative;display:flex;align-items:center;min-height:40px;padding-left:28px}
.lg-flow .lg-via::before{content:"";position:absolute;left:28px;top:0;bottom:0;border-left:2.5px solid #12B886}
.lg-flow .lg-via::after{content:"";position:absolute;left:23px;bottom:-1px;border:6px solid transparent;border-top:8px solid #12B886;border-bottom:0}
.lg-flow .lg-via span{margin-left:16px;font:700 12.5px Manrope,system-ui,sans-serif;color:#0A7D5B;background:#ECFBF4;border-radius:99px;padding:3px 10px}
.lg-flow .lg-via span:empty{display:none}
.lg-side{margin-top:14px;padding-top:12px;border-top:1px dashed #DCE3EA}
.lg-side ul{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px}
.lg-side li{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:14px}
.lg-side li b{padding:3px 10px;border-radius:8px;background:#F3F6FA;border:1px solid #E1E7EF;font-weight:700;color:#172033}
.lg-side li span{color:#0A7D5B;font-weight:700}
.lg-side li span::after{content:" →"}
@media (min-width:900px){
  .lg-flow ol{flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px 0}
  .lg-flow .lg-node{flex:0 1 200px}
  .lg-flow .lg-via{min-height:0;padding:0 6px;flex-direction:column;justify-content:center}
  .lg-flow .lg-via::before{position:static;width:34px;border-left:0;border-top:2.5px solid #12B886}
  .lg-flow .lg-via::after{left:auto;right:2px;bottom:auto;top:50%;margin-top:-6px;border:6px solid transparent;border-left:8px solid #12B886;border-right:0}
  .lg-flow .lg-via{position:relative}
  .lg-flow .lg-via span{margin:4px 0 0;font-size:11.5px}
}
.lg-pic{margin:0 0 12px;border:1px solid #E1E7EF;border-radius:14px;background:#fff;padding:2px 14px}
.lg-pic summary{cursor:pointer;padding:12px 0;font:700 14.5px Manrope,system-ui,sans-serif;color:#0A7D5B;list-style:none}
.lg-pic summary::before{content:"🖼 "}
/* Module study guide recap */
.rd-guide section.rd-sum{background:linear-gradient(135deg,#ECFBF4,#F7FDFA);border:1px solid #CDEFE0}
.rd-guide section.rd-sum h4 span{background:#12B886;color:#fff}

/* Play stays in the page; Full screen (upright) and Horizontal are separate buttons on phones */
.tp-pc-horiz{display:none!important}
@media (pointer:coarse){.tp-player .tp-pc-horiz{display:grid!important}}
@container (max-width:430px){.tp-player:not(.is-fs) [data-pc="next"]{display:none!important}}
