/* Shadowing player (teachin.app/shadowing) — estilos do runtime. A moldura da página
   (tipografia, .top, .chip, .cta, footer) vem inline do gerador, como nas páginas SEO. */
.sh-howto{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0 22px}
.sh-howto div{background:#FAF7FE;border:1px solid #EDE4FA;border-radius:14px;padding:12px 14px;font-size:14px;color:#444}
.sh-howto b{display:block;color:#6B2EA8;font-size:13px;text-transform:uppercase;letter-spacing:.04em;margin-bottom:4px}
@media (max-width:640px){.sh-howto{grid-template-columns:1fr}}

.sh-notice{background:#FFF7ED;border:1px solid #FED7AA;color:#9A3412;border-radius:12px;padding:10px 14px;font-size:14px;margin:0 0 16px}
.sh-notice[hidden]{display:none}

.sh-bar{position:sticky;top:0;z-index:5;background:rgba(255,255,255,.96);backdrop-filter:blur(6px);border:1px solid #EDE4FA;border-radius:14px;padding:10px 12px;margin:0 0 16px;display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
.sh-bar .prog{font-weight:700;color:#6B2EA8;font-size:14px}
.sh-bar .track{flex:1 1 120px;height:6px;background:#F3E8FF;border-radius:999px;overflow:hidden;min-width:80px}
.sh-bar .track i{display:block;height:100%;width:0;background:linear-gradient(90deg,#9D4EDD,#6B2EA8);transition:width .3s}
.sh-seg{display:inline-flex;border:1px solid #E9D5FF;border-radius:999px;overflow:hidden}
.sh-seg button{border:0;background:#fff;color:#6B2EA8;font-weight:700;font-size:13px;padding:6px 12px;cursor:pointer}
.sh-seg button[aria-pressed="true"]{background:#6B2EA8;color:#fff}
.sh-b{border:1px solid #E9D5FF;background:#fff;color:#6B2EA8;font-weight:700;font-size:13px;border-radius:999px;padding:6px 14px;cursor:pointer;line-height:1.2}
.sh-b:hover{background:#F3E8FF}
.sh-b:disabled{opacity:.45;cursor:not-allowed}
.sh-b[aria-pressed="true"]{background:#6B2EA8;color:#fff;border-color:#6B2EA8}
.sh-b.rec{border-color:#FCA5A5;color:#B91C1C}
.sh-b.rec:hover{background:#FEF2F2}
.sh-b.rec.on{background:#DC2626;color:#fff;border-color:#DC2626;animation:sh-pulse 1s infinite}
@keyframes sh-pulse{0%,100%{box-shadow:0 0 0 0 rgba(220,38,38,.35)}50%{box-shadow:0 0 0 8px rgba(220,38,38,0)}}

.sh-video{position:sticky;top:64px;z-index:4;margin:0 0 16px}
.sh-video .yt{position:relative;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#000}
.sh-video .yt iframe,.sh-video .yt>div{position:absolute;inset:0;width:100%;height:100%;border:0}
.sh-video .credit{font-size:12px;color:#777;margin-top:6px}
@media (max-width:640px){.sh-video{top:58px}.sh-video .yt{border-radius:0;margin:0 -16px}}

ol.sh-lines{list-style:none;padding:0;margin:0}
.sh-line{border:1px solid #EDE4FA;border-radius:16px;padding:14px 16px;margin:10px 0;background:#fff;transition:border-color .2s,box-shadow .2s}
.sh-line.active{border-color:#9D4EDD;box-shadow:0 6px 24px rgba(107,46,168,.10)}
.sh-line.is-done{background:#FCFAFF}
.sh-line .head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-bottom:6px;font-size:13px}
.sh-line .n{color:#aaa;font-weight:700}
.sh-line .spk{color:#6B2EA8;font-weight:800;text-transform:uppercase;letter-spacing:.03em;font-size:12px}
.sh-line .done{margin-left:auto;display:inline-flex;align-items:center;gap:6px;color:#666;cursor:pointer}
.sh-line .done input{accent-color:#6B2EA8;width:16px;height:16px}
.sh-line .text{font-size:19px;line-height:1.5;margin:4px 0 10px;color:#1A1A2E}
.sh-line .text .w{border-radius:6px;padding:0 2px;transition:background .2s}
.sh-line .text .w.ok{background:#DCFCE7;color:#166534}
.sh-line .text .w.near{background:#FEF3C7;color:#92400E}
.sh-line .text .w.miss{background:#FEE2E2;color:#991B1B;text-decoration:underline dotted}
.sh-line.hide-text .text .w{background:#EEE;color:transparent;border-radius:6px;user-select:none}
.sh-line.hide-text .text .w.ok,.sh-line.hide-text .text .w.near,.sh-line.hide-text .text .w.miss{color:transparent}
.sh-line .ctrls{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.sh-line .score{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:4px 12px;font-weight:800;font-size:13px}
.sh-line .score.hi{background:#DCFCE7;color:#166534}
.sh-line .score.mid{background:#FEF3C7;color:#92400E}
.sh-line .score.lo{background:#FEE2E2;color:#991B1B}
.sh-line .score.na{background:#F4F4F5;color:#52525b;font-weight:600}
.sh-line .heard{font-size:14px;color:#555;margin:8px 0 0;min-height:0}
.sh-line .heard b{color:#6B2EA8;font-weight:700}
.sh-line .heard.interim{color:#999;font-style:italic}
.sh-line .meter{height:6px;background:#F3E8FF;border-radius:999px;overflow:hidden;margin:10px 0 0}
.sh-line .meter i{display:block;height:100%;width:0;background:#DC2626;transition:width .08s}
.sh-line .take{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px;font-size:13px;color:#666}
.sh-line .take audio{height:34px;max-width:100%}
[hidden]{display:none!important}

.sh-vocab{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 22px}
.sh-vocab .vc{background:#FAFAFA;border:1px solid #eee;border-radius:999px;padding:5px 14px;font-size:14px;cursor:pointer;user-select:none;transition:background .15s,border-color .15s}
.sh-vocab .vc:hover{border-color:#C9B8E8}
.sh-vocab .vc.known{background:#DCFCE7;border-color:#86EFAC;color:#166534}
.sh-vocab .vc.known b{color:#166534}
.sh-vocab b{color:#6B2EA8}
.sh-hint{font-size:14px;color:#666;margin:-4px 0 10px}
.sh-context{background:#FAF7FE;border-left:4px solid #9D4EDD;border-radius:0 12px 12px 0;padding:12px 16px;font-size:15px;color:#333;margin:0 0 18px}
.sh-context b{color:#6B2EA8}
.sh-script{margin:18px 0 6px;border:1px solid #EDE4FA;border-radius:14px;padding:6px 16px;background:#fff}
.sh-script summary{cursor:pointer;font-weight:700;color:#6B2EA8;padding:8px 0}
.sh-script div{padding:4px 0 10px;font-size:15px;line-height:1.6}
.sh-script p{margin:6px 0}.sh-script p b{color:#1A1A2E}
.sh-quiz{margin:10px 0 0}
.sh-quiz ol.qs{list-style:none;padding:0;margin:0}
.sh-quiz li{border:1px solid #EDE4FA;border-radius:14px;padding:12px 16px;margin:10px 0;background:#fff}
.sh-quiz li.ok{border-color:#86EFAC;background:#F0FDF4}
.sh-quiz li.bad{border-color:#FCA5A5;background:#FEF2F2}
.sh-quiz .q{font-weight:600;margin:0 0 8px;font-size:16px}
.sh-quiz .opts{display:grid;gap:6px}
.sh-quiz .opts label{display:flex;gap:8px;align-items:flex-start;font-size:15px;cursor:pointer;padding:6px 10px;border-radius:10px;border:1px solid transparent}
.sh-quiz .opts label:hover{background:#FAF7FE}
.sh-quiz .opts label.is-answer{border-color:#86EFAC;background:#DCFCE7}
.sh-quiz .opts input{accent-color:#6B2EA8;margin-top:3px}
.sh-quiz .opts b{color:#6B2EA8;margin-right:2px}
.sh-quiz-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0 4px}
.sh-score-txt{font-weight:800;color:#6B2EA8;margin-left:6px}
ul.sh-disc{padding-left:22px;margin:6px 0 0}ul.sh-disc li{margin:8px 0;font-size:16px}
.sh-privacy{font-size:12px;color:#888;margin:18px 0 0}

.sh-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px;margin:12px 0 26px}
.sh-card{display:block;border:1px solid #EDE4FA;border-radius:16px;padding:16px;text-decoration:none;color:#1A1A2E;background:#fff;transition:border-color .2s,transform .2s}
.sh-card:hover{border-color:#9D4EDD;transform:translateY(-2px)}
.sh-card h3{font-size:17px;margin:8px 0 6px;line-height:1.3}
.sh-card p{font-size:14px;color:#666;margin:0}
.sh-card .meta{display:flex;flex-wrap:wrap;gap:6px;font-size:12px;color:#6B2EA8;font-weight:700}
.sh-card .meta span{background:#F3E8FF;border-radius:999px;padding:3px 10px}
.sh-card .meta span.kind{background:#F4F4F5;color:#52525b}
