:root {
  --cor: #22c55e;
  --fundo: #0a0a0f;
  --painel: #13131b;
  --painel2: #1a1a24;
  --borda: #26263a;
  --texto: #ededf4;
  --suave: #9b9bb3;
  --fraco: #6b6b82;
  --ok: #2fd27a;
  --erro: #ff5d6e;
  --raio: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--fundo);
  color: var(--texto);
  font: 15px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---------- botões e campos ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--borda); background: var(--painel2); color: var(--texto);
  padding: 10px 16px; border-radius: 10px; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: filter .15s, background .15s, border-color .15s; white-space: nowrap;
}
.btn:hover { filter: brightness(1.15); }
.btn:disabled { opacity: .55; cursor: default; filter: none; }
.btn.primario { background: var(--cor); border-color: var(--cor); color: #fff; }
.btn.fantasma { background: transparent; }
.btn.perigo { color: var(--erro); }
.btn.mini { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn svg { width: 18px; height: 18px; flex: none; }

label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--suave); }
input, textarea, select {
  width: 100%; background: var(--fundo); border: 1px solid var(--borda); border-radius: 10px;
  padding: 11px 13px; font-size: 15px; font-weight: 400; color: var(--texto); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 90px; }
input:focus, textarea:focus, select:focus { border-color: var(--cor); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cor) 25%, transparent); }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--cor); padding: 0; }
input[type="color"] { padding: 4px; height: 44px; width: 70px; }
label.check { display: flex; align-items: center; gap: 10px; color: var(--texto); font-weight: 500; cursor: pointer; }
small, .dica { color: var(--fraco); font-size: 13px; font-weight: 400; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--painel2); border: 1px solid var(--borda); padding: 12px 18px; border-radius: 12px;
  box-shadow: 0 10px 30px #0008; transition: .25s; z-index: 99; pointer-events: none; max-width: calc(100% - 32px);
}
.toast.mostrar { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { border-color: color-mix(in srgb, var(--ok) 50%, var(--borda)); }
.toast.erro { border-color: var(--erro); }

/* ---------- login ---------- */
.pagina-login {
  display: grid; place-items: center; padding: 24px 16px;
  background:
    radial-gradient(900px 500px at 15% -10%, color-mix(in srgb, var(--cor) 28%, transparent), transparent 60%),
    radial-gradient(700px 400px at 110% 110%, color-mix(in srgb, var(--cor) 16%, transparent), transparent 60%),
    var(--fundo);
}
.login { width: 100%; max-width: 410px; position: relative; z-index: 1; }
.pagina-login.com-banner::before {
  content: ""; position: fixed; inset: -40px; background: var(--fundo-login) center / cover; filter: blur(28px) brightness(.35) saturate(1.2); z-index: 0;
}
.login-banner { margin: -26px -26px 22px; line-height: 0; border-bottom: 1px solid var(--borda); }
.login-banner img { width: 100%; aspect-ratio: 16 / 5; object-fit: cover; }
.cartao { overflow: hidden; }
.login-marca { display: flex; justify-content: center; margin-bottom: 26px; font-size: 24px; font-weight: 800; }
.login-marca img { max-height: 64px; width: auto; }
.cartao { background: var(--painel); border: 1px solid var(--borda); border-radius: 18px; padding: 26px; box-shadow: 0 20px 60px #0007; }
.cartao form { display: grid; gap: 16px; }
.cartao .btn.primario { width: 100%; padding: 13px; margin-top: 4px; }
.abas { display: grid; grid-template-columns: 1fr 1fr; background: var(--fundo); border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.aba { border: 0; background: none; padding: 9px; border-radius: 9px; color: var(--suave); font-weight: 600; cursor: pointer; }
.aba.ativa { background: var(--painel2); color: var(--texto); }
.msg { color: var(--erro); font-size: 14px; margin: 14px 0 0; min-height: 1em; text-align: center; }
.msg:empty { display: none; }
.linha-login { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.link-esqueci { color: var(--cor); font-size: 13px; font-weight: 600; text-decoration: none; }
.link-esqueci:hover { text-decoration: underline; }
.ok-msg { color: var(--ok); font-size: 14px; margin: 14px 0 0; text-align: center; line-height: 1.5; }
.aviso-compra { background: color-mix(in srgb, var(--cor) 14%, var(--painel)); border: 1px solid color-mix(in srgb, var(--cor) 45%, var(--borda)); border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; font-size: 14px; line-height: 1.55; color: #d3d3e0; }
.aviso-compra b { color: var(--texto); }
.aviso-compra > b:first-child { display: block; margin-bottom: 4px; font-size: 15px; }
.suporte { text-align: center; color: var(--suave); font-size: 14px; margin-top: 18px; }
.suporte a { color: var(--texto); }

/* ---------- topo ---------- */
.topo { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--fundo) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--borda); }
.topo-in { max-width: 1280px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.marca { display: flex; align-items: center; font-weight: 800; font-size: 18px; text-decoration: none; min-width: 0; }
.marca img { max-height: 36px; width: auto; }
.marca span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voltar { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--suave); font-weight: 600; white-space: nowrap; }
.voltar svg { width: 18px; height: 18px; flex: none; }
.voltar:hover { color: var(--texto); }
.topo-dir { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--cor) 30%, var(--painel2)); font-weight: 700; font-size: 13px; }

/* ---------- vitrine ---------- */
.conteudo { max-width: 1280px; margin: 0 auto; padding: 28px 20px 60px; }
.ola { padding: 26px 0 30px; }
.ola h1 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; }
.ola p { color: var(--suave); margin: 8px 0 0; max-width: 640px; }
.secao-titulo { font-size: 18px; font-weight: 700; margin: 26px 0 14px; }
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column; background: var(--painel); border: 1px solid var(--borda);
  border-radius: var(--raio); overflow: hidden; text-decoration: none; transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--cor) 60%, var(--borda)); }
.capa { position: relative; aspect-ratio: 16 / 9; background: var(--painel2); overflow: hidden; }
.capa img { width: 100%; height: 100%; object-fit: cover; }
.capa-vazia {
  width: 100%; height: 100%; display: grid; place-items: center; font-size: 46px; font-weight: 800;
  background: linear-gradient(135deg, color-mix(in srgb, var(--cor) 55%, #000), color-mix(in srgb, var(--cor) 15%, #000));
}
.card-corpo { padding: 14px 16px 16px; display: grid; gap: 10px; flex: 1; align-content: space-between; }
.card h3 { font-size: 16px; font-weight: 700; }
.card-prog { display: grid; gap: 6px; }
.card-prog small { color: var(--suave); }
.barra { height: 6px; background: var(--painel2); border-radius: 99px; overflow: hidden; }
.barra span { display: block; height: 100%; background: var(--cor); border-radius: 99px; transition: width .3s; }
.card.bloqueado .capa img, .card.bloqueado .capa-vazia { filter: grayscale(.8) brightness(.5); }
.cadeado { position: absolute; inset: 0; display: grid; place-items: center; }
.cadeado svg { width: 38px; height: 38px; }
.etiqueta { display: inline-block; font-size: 13px; font-weight: 700; color: var(--cor); }
.vazio { text-align: center; color: var(--suave); background: var(--painel); border: 1px dashed var(--borda); border-radius: var(--raio); padding: 40px 20px; }
.carregando { color: var(--suave); padding: 40px 0; text-align: center; }

/* ---------- posters (cursos e módulos, capa em pé 2:3) ---------- */
.posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px 18px; }
.poster { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.poster-img {
  position: relative; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; background: var(--painel2);
  border: 1px solid var(--borda); transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.poster-img img { width: 100%; height: 100%; object-fit: cover; }
.poster-img .capa-vazia { font-size: 54px; }
a.poster:hover .poster-img {
  transform: translateY(-4px) scale(1.02);
  border-color: color-mix(in srgb, var(--cor) 70%, transparent);
  box-shadow: 0 14px 40px -12px color-mix(in srgb, var(--cor) 55%, transparent);
}
.poster-info { display: grid; gap: 6px; padding: 0 2px; }
.poster-info strong { font-size: 14px; font-weight: 700; line-height: 1.3; }
.poster-info small { color: var(--suave); font-size: 12px; }
.poster-info .poster-num { color: var(--cor); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 11px; }
.poster-info .barra { height: 4px; }
.poster.bloqueado .poster-img img, .poster.bloqueado .poster-img .capa-vazia { filter: grayscale(.85) brightness(.45); }
.poster-lock {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px;
  text-align: center; padding: 12px; color: #fff; font-size: 13px;
}
.poster-lock svg { width: 30px; height: 30px; }
.poster-lock b { background: #000a; padding: 5px 10px; border-radius: 99px; font-weight: 700; }
.poster-ok { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--ok); color: #04130b; display: grid; place-items: center; box-shadow: 0 4px 12px #0008; }
.poster-ok svg { width: 16px; height: 16px; }

/* ---------- banner do curso ---------- */
.hero { position: relative; min-height: 440px; display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--borda); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center right; }
.hero-cor { background: radial-gradient(800px 400px at 80% 0%, color-mix(in srgb, var(--cor) 35%, transparent), transparent 70%), var(--painel); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--fundo) 0%, var(--fundo) 32%, color-mix(in srgb, var(--fundo) 75%, transparent) 50%, transparent 72%),
              linear-gradient(0deg, var(--fundo) 0%, transparent 45%);
}
.hero-in { position: relative; z-index: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 60px 20px 40px; display: grid; gap: 12px; justify-items: start; }
.hero-in > * { max-width: 560px; }
.kicker { color: var(--cor); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 800; letter-spacing: -0.02em; text-shadow: 0 2px 20px #000a; }
.hero p { margin: 0; color: #d3d3e0; }
.hero-meta { color: var(--suave); font-size: 14px; font-weight: 600; }
.hero-prog { display: grid; gap: 6px; width: min(360px, 100%); }
.hero-prog small { color: var(--suave); }
.btn.grande { padding: 14px 26px; font-size: 16px; border-radius: 12px; margin-top: 6px; box-shadow: 0 10px 30px -10px var(--cor); }
.hero-prox { color: var(--suave); font-size: 13px; }
.hero-prox b { color: var(--texto); font-weight: 600; }

/* ---------- moldura: menu lateral + barra de baixo ---------- */
body.sem-rolagem { overflow: hidden; }
.shell { display: grid; grid-template-columns: 76px minmax(0, 1fr); min-height: 100vh; }
.lateral {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; gap: 22px;
  padding: 18px 10px; background: color-mix(in srgb, var(--cor) 92%, #000); z-index: 30; transition: width .2s;
  width: 76px; overflow: hidden;
}
.lateral:hover { width: 240px; align-items: stretch; box-shadow: 10px 0 40px #000a; }
.lateral-marca { display: flex; align-items: center; min-height: 40px; text-decoration: none; color: #04130b; font-weight: 800; white-space: nowrap; padding: 0 8px; }
.lateral-marca img { max-height: 34px; width: auto; }
.lateral:not(:hover) .lateral-marca span { font-size: 0; }
.lateral:not(:hover) .lateral-marca span::first-letter { font-size: 22px; }
.lateral-nav { display: grid; gap: 6px; width: 100%; }
.nav-item { display: flex; align-items: center; gap: 14px; padding: 11px 15px; border-radius: 12px; color: #04130b; text-decoration: none; font-weight: 700; white-space: nowrap; }
.nav-item svg { width: 22px; height: 22px; flex: none; }
.nav-item:hover, .nav-item.ativo { background: #0002; }
.lateral:not(:hover) .nav-item span { opacity: 0; }
.lateral-perfil { margin-top: auto; display: flex; align-items: center; gap: 10px; width: 100%; padding: 0 4px; color: #04130b; }
.lateral-perfil .avatar { background: #04130b; color: var(--cor); flex: none; }
.perfil-txt { display: grid; min-width: 0; flex: 1; }
.perfil-txt b, .perfil-txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.perfil-txt small { color: #04130bb0; font-size: 11px; }
.lateral-perfil .btn { color: #04130b; border-color: #0003; }
.lateral:not(:hover) .perfil-txt, .lateral:not(:hover) .lateral-perfil .btn { display: none; }
.principal { min-width: 0; padding-bottom: 40px; }
.barra-baixo { display: none; }
.menu-perfil { position: fixed; right: 12px; bottom: 76px; z-index: 60; background: var(--painel2); border: 1px solid var(--borda); border-radius: 14px; padding: 16px; display: grid; gap: 4px; width: min(280px, calc(100% - 24px)); box-shadow: 0 10px 40px #000c; }
.menu-perfil small { color: var(--suave); margin-bottom: 10px; overflow-wrap: anywhere; }

/* ---------- página do curso ---------- */
.banner { line-height: 0; background: #000; }
.banner img { width: 100%; height: auto; max-height: 72vh; object-fit: cover; }
.banner-texto { padding: 60px 32px 30px; background: radial-gradient(800px 300px at 80% 0%, color-mix(in srgb, var(--cor) 30%, transparent), transparent 70%); }
.banner-texto h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 800; }
.banner-texto p { color: var(--suave); max-width: 640px; }
.home { padding: 0 32px; }
.progresso-curso { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0 6px; flex-wrap: wrap; }
.progresso-curso > div { display: grid; gap: 6px; min-width: 240px; flex: 1; max-width: 520px; }
.progresso-curso small { color: var(--suave); }
.secao { margin-top: 26px; }
.secao-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.secao-cab h2 { font-size: 19px; font-weight: 800; }
.setas { display: flex; gap: 8px; }
.seta { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--borda); background: var(--painel2); color: var(--texto); display: grid; place-items: center; cursor: pointer; }
.seta:hover { border-color: var(--cor); }
.seta svg { width: 18px; height: 18px; }
.trilho { display: grid; grid-auto-flow: column; grid-auto-columns: 300px; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 10px; }
.trilho::-webkit-scrollbar { display: none; }
.trilho > * { scroll-snap-align: start; }
.trilho-posters { grid-auto-columns: clamp(170px, 17vw, 250px); }
.trilho-posters .poster { padding: 0; border: 0; background: none; cursor: pointer; text-align: left; color: inherit; font: inherit; }
.trilho-posters .poster:hover .poster-img { transform: translateY(-4px) scale(1.02); border-color: color-mix(in srgb, var(--cor) 70%, transparent); box-shadow: 0 14px 40px -12px color-mix(in srgb, var(--cor) 55%, transparent); }
.poster-barra { position: absolute; left: 10px; right: 10px; bottom: 10px; }
.poster-barra .barra { height: 4px; background: #0008; }
.card-aula { display: grid; gap: 4px; text-decoration: none; color: inherit; }
.card-aula-img { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--painel2); border: 1px solid var(--borda); }
.card-aula-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card-aula:hover .card-aula-img img { transform: scale(1.05); }
.card-play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; background: #0006; transition: opacity .2s; }
.card-play svg { width: 44px; height: 44px; color: #fff; }
.card-aula:hover .card-play { opacity: 1; }
.card-dur { position: absolute; right: 8px; bottom: 8px; background: #000c; color: #fff; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.card-feita { position: absolute; left: 8px; top: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--ok); color: #04130b; display: grid; place-items: center; }
.card-feita svg { width: 14px; height: 14px; }
.card-aula small { color: var(--suave); font-size: 12px; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-aula strong { font-size: 14px; line-height: 1.3; }

/* ---------- contador regressivo ---------- */
.contador { display: grid; justify-items: center; gap: 12px; text-align: center; }
.contador p { margin: 0; color: var(--texto); font-weight: 600; font-size: 16px; }
.contador-caixas { display: flex; gap: 8px; }
.contador-item { display: grid; justify-items: center; gap: 6px; }
.contador-item b {
  position: relative; min-width: 62px; padding: 8px 6px; border-radius: 8px; font-size: 32px; font-weight: 800; letter-spacing: 1px;
  color: color-mix(in srgb, var(--cor) 55%, #fff); background: linear-gradient(180deg, #2c2c34 50%, #24242b 50%);
  font-variant-numeric: tabular-nums; box-shadow: 0 6px 18px #0007;
}
.contador-item b::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #0009; }
.contador-item small { color: var(--suave); font-size: 12px; }
.sem-video.bloqueio { background: radial-gradient(600px 300px at 50% 0%, color-mix(in srgb, var(--cor) 10%, transparent), transparent 70%), #141418; }
.modal-topo-txt .contador { justify-items: start; text-align: left; }
.modal-topo-txt .contador p { font-size: 14px; }
.modal-topo-txt .contador-item b { min-width: 48px; font-size: 24px; }
@media (max-width: 560px) {
  .contador-item b { min-width: 52px; font-size: 26px; }
}

/* ---------- janela do módulo ---------- */
.modal-fundo { position: fixed; inset: 0; z-index: 80; background: #000b; backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: flex-start; overflow-y: auto; padding: 40px 16px; }
.modal { position: relative; width: min(760px, 100%); background: var(--painel); border: 1px solid var(--borda); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 90px #000; animation: sobe .2s ease; }
@keyframes sobe { from { transform: translateY(14px); opacity: 0; } }
.modal-fechar { position: absolute; top: 12px; right: 12px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #000a; color: #fff; cursor: pointer; font-size: 15px; }
.modal-topo { position: relative; aspect-ratio: 16 / 7; display: flex; align-items: flex-end; background: var(--painel2); }
.modal-fundo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal-topo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--painel) 4%, #0009 45%, #0003); }
.modal-topo-txt { position: relative; z-index: 2; padding: 22px 26px; display: grid; gap: 8px; justify-items: start; }
.modal-topo-txt small { color: #d3d3e0; font-weight: 600; }
.modal-topo-txt h2 { font-size: clamp(20px, 3vw, 28px); font-weight: 800; text-shadow: 0 2px 12px #000; }
.btn.branco { background: #fff; color: #000; border-color: #fff; }
.modal-corpo { padding: 6px 26px 26px; display: grid; gap: 14px; }
.modal-curso { display: grid; gap: 2px; }
.modal-curso b { font-size: 18px; }
.modal-curso small { color: var(--suave); }
.modal-select { max-width: 360px; font-weight: 600; }
.modal-aulas { display: grid; gap: 8px; }
.ma { display: grid; grid-template-columns: 22px 128px minmax(0, 1fr); gap: 14px; align-items: start; padding: 10px; border-radius: 12px; text-decoration: none; color: inherit; background: var(--fundo); border: 1px solid transparent; }
a.ma:hover { border-color: var(--cor); }
.ma.bloqueada { opacity: .55; }
.ma-status { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--fraco); display: grid; place-items: center; margin-top: 4px; }
.ma-status svg { width: 12px; height: 12px; }
.ma.feita .ma-status { background: var(--ok); border-color: var(--ok); color: #04130b; }
.ma.bloqueada .ma-status { border: 0; }
.ma.bloqueada .ma-status svg { width: 16px; height: 16px; }
.ma-img { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--painel2); display: grid; place-items: center; }
.ma-img img { width: 100%; height: 100%; object-fit: cover; }
.ma-num { color: var(--fraco); font-weight: 800; font-size: 20px; }
.ma-txt { display: grid; gap: 4px; min-width: 0; }
.ma-linha { display: flex; justify-content: space-between; gap: 10px; }
.ma-linha b { font-size: 14px; line-height: 1.35; }
.ma-linha small { color: var(--suave); white-space: nowrap; font-size: 12px; }
.ma-desc { color: var(--suave); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .lateral { display: none; }
  .principal { padding-bottom: 90px; }
  .barra-baixo {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; justify-content: space-around;
    background: color-mix(in srgb, var(--cor) 92%, #000); padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  }
  .baixo-item { display: grid; justify-items: center; gap: 3px; color: #04130b; text-decoration: none; font-size: 10px; font-weight: 700; background: none; border: 0; padding: 4px 8px; border-radius: 10px; font-family: inherit; cursor: pointer; }
  .baixo-item svg { width: 24px; height: 24px; }
  .baixo-item span { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .baixo-item.ativo { background: #0002; }
  .home { padding: 0 16px; }
  .trilho { grid-auto-columns: 78%; }
  .trilho-posters { grid-auto-columns: 44%; gap: 12px; }
  .setas { display: none; }
  .modal-fundo { padding: 0; align-items: flex-end; }
  .modal { border-radius: 18px 18px 0 0; max-height: 92vh; overflow-y: auto; }
  .modal-corpo { padding: 4px 16px 24px; }
  .modal-topo-txt { padding: 16px; }
  .ma { grid-template-columns: 20px 96px minmax(0, 1fr); gap: 10px; }
}

/* ---------- curso ---------- */
.curso-layout { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; padding: 20px; }
.player { aspect-ratio: 16 / 9; background: #000; border-radius: var(--raio); overflow: hidden; border: 1px solid var(--borda); }
.player iframe, .player video { width: 100%; height: 100%; border: 0; display: block; }
.sem-video { height: 100%; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--suave); text-align: center; padding: 20px; background: radial-gradient(600px 300px at 50% 0%, color-mix(in srgb, var(--cor) 14%, transparent), transparent 70%); }
.sem-video svg { width: 34px; height: 34px; color: var(--cor); }
.sem-video b { color: var(--texto); }
.aula-info { padding: 20px 2px; }
.aula-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.aula-cab small { display: block; margin-bottom: 4px; color: var(--suave); }
.aula-cab h1 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; }
.acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.feita { background: color-mix(in srgb, var(--ok) 18%, var(--painel2)); border-color: color-mix(in srgb, var(--ok) 50%, var(--borda)); color: var(--ok); }
.descricao { margin-top: 20px; color: #d3d3e0; line-height: 1.7; overflow-wrap: anywhere; }
.descricao a { color: var(--cor); }
.materiais { margin-top: 24px; display: grid; gap: 8px; }
.materiais h3 { font-size: 15px; margin-bottom: 4px; }
.material { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--painel); border: 1px solid var(--borda); border-radius: 10px; text-decoration: none; }
.material:hover { border-color: var(--cor); }
.material svg { width: 18px; height: 18px; color: var(--cor); flex: none; }
.material span { flex: 1; }
.material em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--cor); }
.nav-aulas { display: flex; justify-content: space-between; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--borda); }

.lista { background: var(--painel); border: 1px solid var(--borda); border-radius: var(--raio); align-self: start; position: sticky; top: 76px; max-height: calc(100vh - 96px); display: flex; flex-direction: column; overflow: hidden; }
.lista-topo { padding: 18px; border-bottom: 1px solid var(--borda); display: grid; gap: 10px; }
.lista-topo strong { font-size: 16px; }
.lista-topo small { color: var(--suave); }
.lista-corpo { overflow-y: auto; padding: 6px 0; }
.modulo summary { list-style: none; cursor: pointer; padding: 12px 18px; display: flex; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 14px; }
.modulo summary::-webkit-details-marker { display: none; }
.modulo summary small { color: var(--fraco); font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.modulo summary small svg { width: 13px; height: 13px; }
.mod-tit { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mod-tit img { width: 30px; height: 45px; object-fit: cover; border-radius: 5px; flex: none; }
.modulo.fechado summary { color: var(--fraco); }
.modulo.fechado .mod-tit img { filter: grayscale(1) brightness(.6); }
.item-aula.bloqueada { cursor: default; opacity: .55; }
.item-aula.bloqueada:hover { background: none; color: var(--suave); }
.item-aula.bloqueada .bolinha { border: 0; }
.item-aula.bloqueada .bolinha svg { opacity: 1; width: 14px; height: 14px; }
.modulo summary:hover { background: var(--painel2); }
.item-aula { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 20px; text-decoration: none; color: var(--suave); font-size: 14px; border-left: 3px solid transparent; }
.item-aula:hover { background: var(--painel2); color: var(--texto); }
.ia-tit { flex: 1; }
.ia-dur { color: var(--fraco); font-size: 12px; white-space: nowrap; }
.item-aula.ativa { background: color-mix(in srgb, var(--cor) 14%, transparent); border-left-color: var(--cor); color: var(--texto); font-weight: 600; }
.bolinha { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--fraco); flex: none; display: grid; place-items: center; }
.bolinha svg { width: 12px; height: 12px; opacity: 0; }
.item-aula.feita .bolinha { background: var(--ok); border-color: var(--ok); color: #04130b; }
.item-aula.feita .bolinha svg { opacity: 1; }

@media (max-width: 960px) {
  .curso-layout { grid-template-columns: 1fr; padding: 0 0 40px; gap: 0; }
  .player { border-radius: 0; border-left: 0; border-right: 0; }
  .aula-info { padding: 18px 16px; }
  .lista { position: static; max-height: none; margin: 0 16px; }
}
@media (max-width: 700px) {
  .hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero-bg { position: relative; aspect-ratio: 1 / 1; max-height: 70vh; }
  .hero-bg img { object-position: center; }
  .hero.sem-banner .hero-bg { position: absolute; aspect-ratio: auto; max-height: none; }
  .hero::after { background: linear-gradient(0deg, var(--fundo) 0%, transparent 28%); top: auto; height: 100%; }
  .hero-in { padding: 0 16px 28px; margin-top: -90px; }
  .hero.sem-banner .hero-in { margin-top: 0; padding-top: 40px; }
  .hero-in .btn.grande { width: 100%; }
  .posters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
}
@media (max-width: 560px) {
  .topo-in { padding: 10px 16px; }
  .conteudo { padding: 16px 16px 50px; }
  .grade { grid-template-columns: 1fr; }
  .acoes, .acoes .btn { width: 100%; }
  .nav-aulas .btn { flex: 1; }
  .esconde-mobile { display: none; }
}
