:root { --bg:#070908; --surface:#0e110f; --surface-2:#151917; --surface-3:#1d211f; --text:#f7f3e8; --muted:#9da29e; --line:rgba(255,255,255,.09); --accent:#f5b942; --accent-rgb:245,185,66; --accent-ink:#171107; --theme-secondary-rgb:117,70,17; --gold:var(--accent); --green:#4df08c; --shadow:0 24px 70px rgba(0,0,0,.4); }
html[data-theme="louvores"] { --accent:#efa72c; --accent-rgb:239,167,44; --accent-ink:#171005; --theme-secondary-rgb:15,65,91; }
html[data-theme="ritmos"] { --accent:#19c7e8; --accent-rgb:25,199,232; --accent-ink:#031518; --theme-secondary-rgb:16,75,106; }
html[data-theme="folk"] { --accent:#80d948; --accent-rgb:128,217,72; --accent-ink:#071407; --theme-secondary-rgb:44,103,32; }
html[data-theme="pop-rock"] { --accent:#a755e2; --accent-rgb:167,85,226; --accent-ink:#fff; --theme-secondary-rgb:73,21,112; }
html[data-theme="desafio"] { --accent:#94d73e; --accent-rgb:148,215,62; --accent-ink:#0b1505; --theme-secondary-rgb:102,35,145; }
html[data-theme="mentoria"] { --accent:#dfa63d; --accent-rgb:223,166,61; --accent-ink:#181005; --theme-secondary-rgb:112,69,20; }
html[data-theme="harmonia"] { --accent:#55aef0; --accent-rgb:85,174,240; --accent-ink:#04121d; --theme-secondary-rgb:26,70,119; }
* { box-sizing:border-box; }
html { width:100%;max-width:100%;overflow-x:clip;scroll-behavior:smooth; }
body { width:100%;max-width:100%;margin:0;overflow-x:clip;color:var(--text);background:radial-gradient(circle at 48% -15%,rgba(var(--accent-rgb),.13),transparent 34%),radial-gradient(circle at 92% 12%,rgba(var(--theme-secondary-rgb),.09),transparent 28%),var(--bg);font-family:"DM Sans",sans-serif;-webkit-font-smoothing:antialiased;transition:background .3s ease; }
button,select { font:inherit; color:inherit; }
button,a { -webkit-tap-highlight-color:transparent; }
a { color:inherit; text-decoration:none; }
h1,h2,h3 { font-family:Manrope,sans-serif; }
.lesson-header { height:72px; position:sticky; inset:0 0 auto; z-index:30; display:flex; align-items:center; gap:18px; padding:0 26px; border-bottom:1px solid var(--line); background:rgba(7,9,8,.93); backdrop-filter:blur(18px); }
.back-link { width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;color:var(--muted); }
.lesson-brand { display:flex;align-items:center;gap:10px;padding-right:20px;border-right:1px solid var(--line); }
.lesson-brand>span { width:37px;height:37px;display:grid;place-items:center;border-radius:11px;color:var(--accent-ink);background:var(--gold);font:800 12px Manrope;box-shadow:0 8px 22px rgba(var(--accent-rgb),.17); }
.lesson-brand strong { display:flex;flex-direction:column;font:800 13px Manrope; }
.lesson-brand small { margin-top:2px;color:var(--gold);font-size:7px;letter-spacing:.12em;text-transform:uppercase; }
.course-identity { display:flex;align-items:center;gap:10px;min-width:0; }
.course-identity img { width:39px;height:39px;object-fit:cover;border-radius:6px; }
.course-identity>span { min-width:0;display:flex;flex-direction:column; }
.course-identity small { color:var(--gold);font-size:7px;letter-spacing:.12em; }
.course-identity strong { max-width:250px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px; }
.header-progress { width:190px;margin-left:auto; }
.header-progress>span { display:flex;justify-content:space-between;font-size:9px; }
.header-progress small { color:var(--muted); }
.header-progress strong { color:var(--gold); }
.header-progress>div { height:3px;margin-top:6px;border-radius:9px;background:rgba(255,255,255,.1);overflow:hidden; }
.header-progress i { display:block;height:100%;background:var(--gold); }
.header-profile { width:37px;height:37px;padding:0;border:1px solid var(--line);border-radius:50%;background:none;overflow:hidden; }
.header-profile img { width:100%;height:100%;object-fit:cover;object-position:center 22%; }
.lesson-page { width:min(1120px,calc(100% - 40px));max-width:100%;min-width:0;margin:0 auto;padding:27px 0 70px; }
.breadcrumbs { display:flex;align-items:center;gap:9px;margin-bottom:20px;color:#747a76;font-size:10px; }
.breadcrumbs a:hover { color:var(--gold); }
.player-card { max-width:100%;min-width:0;border:1px solid rgba(var(--accent-rgb),.16);border-radius:17px;background:var(--surface);box-shadow:var(--shadow),0 0 70px rgba(var(--accent-rgb),.035);overflow:hidden; }
.video-stage { width:100%;max-width:100%;min-width:0;position:relative;isolation:isolate;aspect-ratio:16/8.4;overflow:hidden;background:#111; }
.video-stage>img { width:100%;height:100%;object-fit:cover;object-position:center 23%;filter:saturate(.8) contrast(1.05); }
#youtube-player{width:100%;height:100%;position:absolute;inset:0;z-index:8;border:0;background:#000}.video-stage.has-video .video-shade,.video-stage.has-video .video-brand,.video-stage.has-video .video-copy,.video-stage.has-video .big-play,.video-stage.has-video .video-controls,.video-stage.has-video>img{display:none}
.video-shade { position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.9),rgba(var(--theme-secondary-rgb),.12) 60%,rgba(0,0,0,.45)),linear-gradient(0deg,rgba(0,0,0,.92),transparent 42%); }
.video-brand { position:absolute;right:25px;top:22px;display:flex;align-items:center;gap:8px;padding:7px 9px;border:1px solid rgba(255,255,255,.18);border-radius:8px;background:rgba(0,0,0,.48);backdrop-filter:blur(8px);font-size:9px;font-weight:800; }
.video-brand img { width:34px;height:34px;object-fit:cover;border-radius:4px; }
.video-copy { position:absolute;left:38px;bottom:57px;width:min(520px,61%); }
.video-copy small,.eyebrow { color:var(--gold);font-size:8px;font-weight:800;letter-spacing:.16em; }
.video-copy h1 { margin:8px 0 8px;font-size:clamp(25px,3.2vw,44px);line-height:1.08;letter-spacing:-.04em; }
.video-copy p { margin:0;color:#d2d2cc;font-size:12px;line-height:1.55; }
.big-play { position:absolute;left:73%;top:44%;width:70px;height:70px;padding:0 0 0 5px;border:1px solid rgba(255,255,255,.35);border-radius:50%;color:var(--accent-ink);background:var(--gold);box-shadow:0 12px 35px rgba(0,0,0,.35),0 0 35px rgba(var(--accent-rgb),.15);cursor:pointer;transition:.2s; }
.big-play:hover { transform:scale(1.05); }
.big-play span { font-size:20px; }
.video-controls { height:28px;position:absolute;inset:auto 20px 9px;display:flex;align-items:center;gap:12px;font-size:10px; }
.video-controls>div { height:3px;flex:1;border-radius:10px;background:rgba(255,255,255,.22);overflow:hidden; }
.video-controls i { display:block;width:34%;height:100%;background:var(--gold); }
.video-controls small { color:#d5d5ce; }
.lesson-toolbar { min-height:102px;padding:22px 27px;display:flex;align-items:center;gap:20px; }
.lesson-toolbar>div:first-child { min-width:0; }
.now-playing { color:var(--green);font-size:8px;font-weight:800;letter-spacing:.13em; }
.lesson-toolbar h2 { margin:5px 0 4px;font-size:18px; }
.lesson-toolbar p { margin:0;color:var(--muted);font-size:10px; }
.lesson-toolbar p i { margin:0 7px; }
.toolbar-actions { margin-left:auto;display:flex;gap:9px; }
.complete-button,.icon-button { height:42px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);cursor:pointer; }
.complete-button { padding:0 14px;display:flex;align-items:center;gap:9px;font-size:10px; }
.complete-button span { width:20px;height:20px;display:grid;place-items:center;border:1px solid #5b625d;border-radius:50%;color:#818782; }
.complete-button.done { border-color:rgba(77,240,140,.3);color:#d8ffe5;background:rgba(77,240,140,.08); }
.complete-button.done span { border-color:var(--green);color:#08160d;background:var(--green); }
.icon-button { width:42px;font-size:19px; }
.study-layout { max-width:100%;min-width:0;margin-top:27px;display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:22px;align-items:start; }
.curriculum-panel,.material-panel { border:1px solid var(--line);border-radius:15px;background:var(--surface); }
.curriculum-panel { padding:25px;min-width:0; }
.curriculum-heading { display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:22px; }
.curriculum-heading h2 { margin:5px 0 3px;font-size:21px; }
.curriculum-heading p { margin:0;color:var(--muted);font-size:9px; }
.collapse-all { padding:0;border:0;color:var(--muted);background:none;font-size:9px;cursor:pointer; }
.module-tabs { display:grid;grid-template-columns:repeat(7,minmax(94px,1fr));gap:7px;margin-bottom:17px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#3c403d transparent; }
.module-tab { min-height:83px;padding:11px;text-align:left;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);cursor:pointer; }
.module-tab:hover { border-color:rgba(var(--accent-rgb),.3); }
.module-tab.active { border-color:var(--gold);background:rgba(var(--accent-rgb),.08); }
.module-tab span { display:grid;place-items:center;width:23px;height:23px;margin-bottom:8px;border-radius:50%;color:var(--muted);background:#252a27;font-size:8px;font-weight:800; }
.module-tab.active span { color:var(--accent-ink);background:var(--gold); }
.module-tab strong { display:block;font-size:8px;line-height:1.35; }
.module-tab small { display:block;margin-top:5px;color:var(--muted);font-size:7px; }
.mobile-module-select { display:none; }
.selected-module { border:1px solid var(--line);border-radius:11px;overflow:hidden; }
.selected-module__heading { min-height:100px;padding:17px;display:flex;align-items:center;gap:13px;background:linear-gradient(100deg,rgba(var(--accent-rgb),.1),transparent); }
.module-number { width:41px;height:41px;flex:0 0 auto;display:grid;place-items:center;border-radius:50%;color:var(--accent-ink);background:var(--gold);font-size:10px;font-weight:800;box-shadow:0 7px 20px rgba(var(--accent-rgb),.12); }
.selected-module__heading>div { min-width:0; }
.selected-module__heading small { color:var(--gold);font-size:7px;letter-spacing:.13em; }
.selected-module__heading h3 { margin:3px 0;font-size:15px; }
.selected-module__heading p { margin:0;color:var(--muted);font-size:9px; }
.module-completion { margin-left:auto;color:var(--muted);font-size:8px;white-space:nowrap; }
.lesson-list { padding:0 12px 12px; }
.lesson-row { width:100%;min-height:72px;padding:10px 9px;display:grid;grid-template-columns:28px 72px minmax(0,1fr) auto;align-items:center;gap:11px;border:0;border-top:1px solid var(--line);text-align:left;background:transparent;cursor:pointer; }
.lesson-row:hover,.lesson-row.active { background:rgba(255,255,255,.025); }
.lesson-row.active { border-left:2px solid var(--gold); }
.lesson-status { width:22px;height:22px;display:grid;place-items:center;border:1px solid #464c48;border-radius:50%;color:#6d736f;font-size:8px; }
.lesson-row.completed .lesson-status { border-color:var(--green);color:#07140b;background:var(--green); }
.lesson-thumb { width:72px;height:45px;object-fit:cover;border-radius:5px;filter:saturate(.7); }
.lesson-row>span:nth-of-type(2) { min-width:0;display:flex;flex-direction:column; }
.lesson-row strong { overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px; }
.lesson-row small { margin-top:4px;color:var(--muted);font-size:8px; }
.lesson-duration { color:#777d78;font-size:8px; }
.material-panel { padding:24px;position:sticky;top:95px; }
.material-icon { width:43px;height:43px;margin-bottom:16px;display:grid;place-items:center;border-radius:11px;color:var(--accent-ink);background:var(--gold);font-size:18px; }
.material-panel h2 { margin:7px 0 7px;font-size:18px; }
.material-panel>p { margin:0 0 17px;color:var(--muted);font-size:10px;line-height:1.55; }
.file-row { padding:11px;display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2); }
.file-row>span { padding:5px;border-radius:4px;color:#fff;background:#b23b35;font-size:7px;font-weight:800; }
.file-row div { display:flex;flex-direction:column;font-size:9px; }
.file-row small { margin-top:3px;color:var(--muted);font-size:7px; }
.material-panel>button { width:100%;height:40px;margin-top:10px;border:1px solid var(--gold);border-radius:8px;color:var(--accent-ink);background:var(--gold);font-size:9px;font-weight:800;cursor:pointer; }
.material-panel>button span { margin-left:7px; }
.teacher-note { margin-top:20px;padding-top:16px;display:flex;align-items:center;gap:10px;border-top:1px solid var(--line); }
.teacher-note img { width:39px;height:39px;object-fit:cover;object-position:center 22%;border-radius:50%; }
.teacher-note p { margin:0;display:flex;flex-direction:column;font-size:9px; }
.teacher-note span { margin-top:3px;color:var(--muted);font-size:8px;line-height:1.4; }
.lesson-navigation { width:100%;max-width:100%;min-width:0;margin-top:16px;display:grid;grid-template-columns:1fr 1fr;gap:12px; }
.lesson-navigation button { min-height:65px;padding:12px 17px;display:grid;grid-template-columns:auto 1fr;gap:2px 12px;align-items:center;border:1px solid var(--line);border-radius:11px;text-align:left;background:var(--surface);cursor:pointer; }
.lesson-navigation button:last-child { grid-template-columns:1fr auto;text-align:right; }
.lesson-navigation button:disabled { opacity:.38;cursor:not-allowed; }
.lesson-navigation span { grid-row:1/3;color:var(--gold); }
.lesson-navigation small { color:var(--gold);font-size:7px;letter-spacing:.1em; }
.lesson-navigation strong { font-size:9px; }
.lesson-toast { position:fixed;left:50%;bottom:25px;z-index:50;padding:11px 16px;border:1px solid rgba(77,240,140,.25);border-radius:8px;color:#d7ffe4;background:#122018;font-size:10px;box-shadow:var(--shadow);opacity:0;transform:translate(-50%,70px);transition:.25s; }
.lesson-toast.show { opacity:1;transform:translate(-50%,0); }

@media(max-width:900px){
  .lesson-header { padding:0 16px; }
  .lesson-brand strong,.course-identity { display:none; }
  .lesson-brand { padding-right:13px; }
  .study-layout { grid-template-columns:1fr; }
  .material-panel { position:static; }
  .big-play { left:75%; }
}
@media(max-width:620px){
  .lesson-header { height:62px;gap:9px; }
  .lesson-brand { border:0;padding:0; }
  .lesson-brand>span { width:34px;height:34px; }
  .header-progress { width:auto;flex:1;margin-left:4px; }
  .header-progress>span small { display:none; }
  .header-profile { width:34px;height:34px; }
  .lesson-header { width:100%;max-width:100%; }
  .lesson-page { width:100%;max-width:100%;padding:0 0 90px; }
  .breadcrumbs { display:none; }
  .player-card { border-inline:0;border-radius:0;box-shadow:none; }
  .video-stage { aspect-ratio:4/5;min-height:510px; }
  .video-stage>img { object-position:center 20%; }
  .video-shade { background:linear-gradient(0deg,rgba(0,0,0,.95),transparent 65%),linear-gradient(90deg,rgba(0,0,0,.35),transparent); }
  .video-brand { right:14px;top:14px;max-width:calc(100% - 28px);overflow:hidden;white-space:nowrap; }
  .video-copy { left:20px;right:20px;bottom:75px;width:auto; }
  .video-copy h1 { font-size:29px; }
  .video-copy p { font-size:11px; }
  .big-play { left:50%;top:39%;width:62px;height:62px;transform:translate(-50%,-50%); }
  .big-play:hover { transform:translate(-50%,-50%) scale(1.04); }
  .video-controls { inset:auto 14px 10px; }
  .lesson-toolbar { padding:18px 16px;align-items:flex-start;flex-direction:column; }
  .lesson-toolbar h2 { font-size:16px; }
  .toolbar-actions { width:100%;margin:0; }
  .complete-button { flex:1;justify-content:center; }
  .study-layout { width:auto;max-width:calc(100% - 32px);min-width:0;margin:16px; }
  .curriculum-panel,.material-panel,.selected-module { width:100%;max-width:100%;min-width:0; }
  .curriculum-panel { padding:17px 14px; }
  .curriculum-heading { align-items:start; }
  .collapse-all { display:none; }
  .mobile-module-select { display:flex;flex-direction:column;gap:6px;margin-bottom:14px;color:var(--muted);font-size:8px; }
  .mobile-module-select select { width:100%;height:43px;padding:0 12px;border:1px solid var(--line);border-radius:8px;outline:0;background:var(--surface-2); }
  .module-tabs { display:none; }
  .selected-module__heading { align-items:flex-start; }
  .selected-module__heading p { line-height:1.4; }
  .module-completion { display:none; }
  .lesson-list { padding-inline:7px; }
  .lesson-row { grid-template-columns:25px 62px minmax(0,1fr);gap:8px; }
  .lesson-thumb { width:62px;height:40px; }
  .lesson-duration { display:none; }
  .lesson-row strong { font-size:9px; }
  .lesson-row>span:nth-of-type(2) { overflow:hidden; }
  .material-panel { padding:20px; }
  .lesson-navigation { width:auto;max-width:calc(100% - 32px);margin:14px 16px 0;grid-template-columns:1fr 1fr;gap:9px; }
  .lesson-navigation button { min-width:0;min-height:74px;padding:11px;grid-template-columns:1fr;gap:5px;align-content:center; }
  .lesson-navigation button:last-child { grid-template-columns:1fr;text-align:right; }
  .lesson-navigation span { display:none; }
  .lesson-navigation strong { overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8px; }
}
@media(max-width:370px){
  .back-link { width:32px;height:32px; }
  .lesson-brand { display:none; }
  .video-copy h1 { font-size:26px; }
  .study-layout { margin-inline:12px; }
  .lesson-navigation { max-width:calc(100% - 24px);margin-inline:12px; }
}
