/* TSA Academy player: professional dark look. Styling only, layered on the premium theme; loaded on the lesson player page. */
.player-pro .player-top{background:linear-gradient(90deg,rgba(2,12,22,.96),rgba(7,28,48,.96));border-bottom:1px solid rgba(57,239,193,.22)}
.player-pro .player-top .wrap{height:64px}
.player-pro .ptitle{font-family:var(--display);font-size:15px;font-weight:700;letter-spacing:.1px}
.player-pro .pbar{height:4px;background:#17324E}
.player-pro .pbar i{background:linear-gradient(90deg,#39EFC1,#167BDC);box-shadow:0 0 10px rgba(57,239,193,.55)}
.player-pro .pring{--p:0;flex:none;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#39EFC1 calc(var(--p)*1%),#17324E 0);transition:background .3s}
.player-pro .pring b{width:32px;height:32px;border-radius:50%;background:#071426;display:grid;place-items:center;font-size:10px;font-weight:700;color:#F5F7FA}
.player-pro .player-layout{background:radial-gradient(700px 360px at 20% -40px,rgba(57,239,193,.08),transparent 70%)}
.player-pro .stage{border-radius:18px;border:1px solid rgba(57,239,193,.3);background:radial-gradient(circle at 30% 20%,#0f3a4a,#020C16 72%);box-shadow:0 0 0 4px #071426,0 22px 50px rgba(0,0,0,.55)}
.player-pro .player-layout>div:first-child>.stage{width:calc(100% - 32px);margin:18px auto 0}
@media(min-width:1024px){.player-pro .player-layout>div:first-child>.stage{width:calc(100% - 48px);margin-top:22px}}
.player-pro .facade img{opacity:.7}
.player-pro .facade .play{width:78px;height:78px;border-radius:50%;background:linear-gradient(135deg,#39EFC1,#12b886);color:#04231B;box-shadow:0 0 44px rgba(57,239,193,.45);transition:transform .15s}
.player-pro .facade:hover .play{transform:scale(1.07)}
.player-pro .watermark{background:rgba(0,0,0,.45);border:1px solid rgba(255,255,255,.12);border-radius:99px;padding:3px 10px;color:rgba(255,255,255,.55)}
.player-pro .lesson-head .eyebrow{color:#39EFC1;letter-spacing:.12em;font-weight:700;font-size:11px;text-transform:uppercase}
.player-pro .lesson-head h1{font-family:var(--display);font-size:24px;line-height:1.25}
.player-pro #complete{background:linear-gradient(135deg,#39EFC1,#12b886);color:#04231B;border:0;border-radius:12px;font-weight:700;box-shadow:0 6px 22px rgba(57,239,193,.28)}
.player-pro #complete[data-done="1"]{background:#0D2238;color:#F5F7FA;border:1px solid var(--line);box-shadow:none}
.player-pro #complete:disabled{opacity:.5;box-shadow:none}
.player-pro .tabs{display:inline-flex;width:auto;border:1px solid var(--line);background:#071426;border-radius:12px}
.player-pro .tabs button{flex:none;padding:0 18px;border-radius:9px}
.player-pro .tabs button[aria-selected=true]{background:#0f3b36;color:#39EFC1}
.player-pro .file-row{background:#0B2037;border:1px solid var(--line);border-radius:14px}
.player-pro .ficon{background:rgba(255,122,143,.14);color:#FF9DAD}
.player-pro .qa-item{border-radius:14px}
.player-pro .player-side{background:#061321;border-left:1px solid var(--line-2)}
.player-pro .player-side>div:first-child{border-bottom:1px solid var(--line-2)!important}
.player-pro .cur-group{border-bottom:1px solid var(--line-2)}
.player-pro .cur-group h3{background:transparent;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:700}
.player-pro .cur-item{background:transparent;border-top:0;border-radius:12px;margin:2px 10px;width:calc(100% - 20px);color:#CFE0EC}
.player-pro .cur-item:hover{background:#0B2037}
.player-pro .cur-item[aria-current=true]{background:#0f3b36;border:1px solid rgba(57,239,193,.4);box-shadow:0 0 24px rgba(57,239,193,.12);color:#fff}
.player-pro .dotc{background:transparent;border-color:#35617f}
.player-pro .dotc.done{background:#39EFC1;border-color:#39EFC1;color:#04231B}
.player-pro .cur-item[aria-current=true] .dotc:not(.done){border-color:#39EFC1;box-shadow:0 0 0 4px rgba(57,239,193,.2)}
.player-pro .exam-card{border-radius:16px}
@media(max-width:1023px){.player-pro .player-side{border-left:0;border-top:1px solid var(--line-2)}.player-pro .lesson-head h1{font-size:20px}.player-pro .tabs{display:flex;width:100%}.player-pro .tabs button{flex:1;padding:0 6px}}
@media(prefers-reduced-motion:reduce){.player-pro *{transition:none!important}}

/* ---- Layout: outline left, player right, four sections full width, chart, footer ---- */
.player-pro .player-layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"main" "band" "side" "chart";min-height:0}
.player-pro .player-main{grid-area:main;min-width:0}
.player-pro .player-side{grid-area:side}
.player-pro .lesson-band{grid-area:band}
.player-pro .chart-band{grid-area:chart}
@media(min-width:1024px){
  .player-pro .player-layout{grid-template-columns:330px minmax(0,1fr);grid-template-areas:"side main" "band band" "chart chart";align-items:start;min-height:0}
  /* not sticky: the outline stays inside the player row (scrolls by itself) so it never covers the cards below */
  .player-pro .player-side{position:relative;align-self:stretch;height:0;min-height:100%;max-height:none;overflow-y:auto;border-left:0;border-right:1px solid var(--line-2)}
}
.player-pro .band-wrap{padding:22px 16px 6px;max-width:1500px;margin:0 auto}
@media(min-width:1024px){.player-pro .band-wrap{padding:24px 26px 8px}}
.player-pro .lesson-band{border-top:1px solid var(--line-2);background:linear-gradient(180deg,#04101c,#020C16)}
.player-pro .band-title{margin-bottom:12px;font-size:16px}
.player-pro .four{display:grid;grid-template-columns:1fr;gap:14px}
@media(min-width:700px){.player-pro .four{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1200px){.player-pro .four{grid-template-columns:repeat(4,minmax(0,1fr))}}
.player-pro .lcard{background:#0B2037;border:1px solid var(--line);border-radius:16px;padding:16px 18px;display:flex;flex-direction:column;gap:10px;min-width:0}
.player-pro .lcard h2{margin:0;font-size:15px;display:flex;gap:10px;align-items:center;font-family:var(--display)}
.player-pro .lic{width:28px;height:28px;flex:none;border-radius:9px;display:grid;place-items:center;background:rgba(57,239,193,.14);color:#39EFC1;font-size:14px}
.player-pro .ticks,.player-pro .steps{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.player-pro .ticks li{display:flex;gap:10px;color:#DCE9F7;font-size:14px}
.player-pro .ticks li:before{content:"\2713";color:#39EFC1;font-weight:700}
.player-pro .steps{counter-reset:s}
.player-pro .steps li{counter-increment:s;display:flex;gap:10px;color:#DCE9F7;font-size:14px}
.player-pro .steps li:before{content:counter(s);width:22px;height:22px;flex:none;border-radius:50%;background:#167BDC;color:#fff;display:grid;place-items:center;font-size:11px;font-weight:700}
.player-pro #sec-practice{background:linear-gradient(135deg,#0B2037,#0d3a3a)}
.player-pro #sec-practice .btn{background:linear-gradient(135deg,#39EFC1,#12b886);color:#04231B;border:0;font-weight:700;text-align:center}
.player-pro .qa-grid{display:grid;grid-template-columns:1fr;gap:18px;margin-top:22px}
@media(min-width:900px){.player-pro .qa-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)}}
.player-pro .band-h{margin:0;font-size:15px;font-family:var(--display)}
.player-pro .chart-band .band-wrap{padding-top:10px;padding-bottom:26px}
.player-pro .chart-band .card{margin-top:0}
.player-pro #complete:disabled{opacity:.45;cursor:not-allowed}
.player-pro .lcard .file-row{padding:10px}

/* rating + Q&A: two equal cards, same height, input and button on one line */
.player-pro .qa-grid{grid-template-columns:1fr;align-items:stretch}
@media(min-width:900px){.player-pro .qa-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.player-pro .qa-grid .lcard{height:100%}
.player-pro .one-line{display:flex;gap:10px;align-items:stretch}
.player-pro .one-line .textarea{flex:1;min-width:0;min-height:56px;resize:vertical}
.player-pro .one-line .btn{flex:none;align-self:stretch;white-space:nowrap}
@media(max-width:520px){.player-pro .one-line{flex-direction:column}.player-pro .one-line .btn{align-self:flex-start}}

/* player: exactly 16:9 (like YouTube), no empty strip above/below; its own button gives full screen */
.player-pro .stage{max-height:none;aspect-ratio:16/9}
.player-pro .stage iframe{width:100%;height:100%;display:block}
.player-pro .player-main>.stage{flex:none}
/* module picker above the outline */
.player-pro .mod-pick{padding:10px 12px;border-bottom:1px solid var(--line-2)}
.player-pro .mod-pick .select{width:100%;min-height:40px;border-radius:10px}
.player-pro .cur-group[hidden]{display:none}
@media(max-width:1023px){.player-pro .player-side{position:relative;max-height:75vh;overflow-y:auto}}
.player-pro .player-side{top:auto}

/* rating + Q&A, tidy: same card, same height, rating title and stars on one line, field and button on one line */
.player-pro #sec-rating .rate-box{flex:1;display:flex}
.player-pro .rate-form{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto 1fr;gap:10px 12px;align-items:center}
.player-pro .rate-title{font-size:13px;color:var(--muted)}
.player-pro .rate-stars{display:flex;gap:2px;justify-content:flex-end}
.player-pro .rate-stars label{font-size:24px;line-height:1}
.player-pro .rate-form .textarea{height:100%;min-height:84px;resize:none}
.player-pro .rate-form .btn{align-self:end}
.player-pro .qa-list{flex:1;display:flex;flex-direction:column;gap:8px;max-height:260px;overflow-y:auto;min-height:84px}
.player-pro .qa-list #qa-empty{flex:1;margin:0;display:grid;place-items:center;text-align:center;border:1px dashed var(--line);border-radius:12px;padding:12px}
@media(max-width:520px){.player-pro .rate-form{grid-template-columns:minmax(0,1fr)}.player-pro .rate-stars{justify-content:flex-start}.player-pro .rate-form .btn{justify-self:start}}
.player-pro .rate-form{grid-template-rows:auto auto;align-content:start}
.player-pro .rate-form .textarea{height:92px;min-height:92px}
.player-pro .qa-list{max-height:150px}
/* fixed-height question list: cards keep the same size with 0 or 50 questions, the list scrolls inside */
.player-pro .qa-list{flex:none;height:120px;max-height:120px;min-height:0;overflow-y:auto}
.player-pro .qa-list #qa-empty{height:100%}
.player-pro .rate-form .textarea{height:136px;min-height:136px}

/* ---- free preview in the same layout ---- */
.player-pro .player-main>.pv>.stage{border-radius:18px;border:1px solid rgba(57,239,193,.3);background:radial-gradient(circle at 30% 20%,#0f3a4a,#020C16 72%);box-shadow:0 0 0 4px #071426,0 22px 50px rgba(0,0,0,.55);max-height:none;aspect-ratio:16/9;width:calc(100% - 32px);margin:18px auto 0}
@media(min-width:1024px){.player-pro .player-main>.pv>.stage{width:calc(100% - 48px);margin-top:22px}}
.player-pro .player-main>.pv>.stage.pv-over{aspect-ratio:16/9;min-height:0}
.player-pro .pv-enroll{padding:9px 16px;white-space:nowrap}.player-pro .pv-enroll .short{display:none}
.player-pro .pv-sub{color:#7898B7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.player-pro .cur-item.locked{opacity:.62}.player-pro .cur-item.locked .dotc{border-color:transparent;color:#7898B7}
.player-pro .cur-item .pv-badge{margin-left:auto}
.player-pro .lock-box{border:1px dashed var(--line);border-radius:12px;padding:12px;display:flex;gap:10px;align-items:center;color:var(--muted);font-size:13px;flex-wrap:wrap}
.player-pro .lock-box>span{flex:1;min-width:140px}.player-pro .lock-box .btn{flex:none}
.player-pro #sec-rating .lock-box,.player-pro #sec-qa .lock-box{margin-top:2px}
@media(max-width:700px){
  .player-pro .pv-enroll .long{display:none}.player-pro .pv-enroll .short{display:inline}.player-pro .player-top .wrap{padding-left:12px;padding-right:12px;gap:8px}.player-pro .pv-sub{display:none}
  .player-pro .player-main>.pv>.stage.pv-over{aspect-ratio:auto;min-height:340px}
}
.player-pro .pv-enroll,.player-pro #enroll-link,.player-pro .pv-go{background:linear-gradient(135deg,#39EFC1,#12b886);color:#04231B;border:0;font-weight:700;box-shadow:0 6px 22px rgba(57,239,193,.28)}
.player-pro .pv-enroll:hover,.player-pro #enroll-link:hover{color:#04231B;filter:brightness(1.06)}
/* PLAYER FULL WIDTH (owner requirement 2026-11-13): the video area covers the whole width of its column, no gap left or right,
   on the lesson page and on the free preview. Height never passes the screen (wide monitors: the player letterboxes inside). */
.player-pro .player-layout>div:first-child>.stage,.player-pro .player-main>.pv>.stage{width:100%;margin:0;border-radius:0;border-width:0 0 1px;box-shadow:none}
@media(min-width:1024px){.player-pro .player-layout>div:first-child>.stage,.player-pro .player-main>.pv>.stage{width:100%;margin-top:0;max-height:calc(100vh - 150px)}}
