/* T1 Academy · plataforma de aulas em vídeo
   Layout: menu lateral + topo com busca + lista numerada + quadros à direita. Tema escuro (padrão) e claro. */
:root, [data-tema="claro"] {
  --bg: #DEDEDE; --painel: #F7F7F7; --side: #F7F7F7; --card: #ECECEC; --card2: #F7F7F7; --hover: #E5E5E5; --campo: #ECECEC;
  --ink: #1F1F1F; --ink2: #3F3F3F; --mut: #686868; --apag: #939393; --line: #D2D2D2; --line2: #ABABAB;
  --g: #0DFF00; --gl: #0AC900; --gs: #E7F8E6; --gi: #078A00; --warn: #B07A10;
  --r: #C2483F; --rs: #F9E6E4; --bolha-c: #F7F7F7; --bolha-v: #DDF5DA; --sombra: 0 14px 30px -14px rgba(0,0,0,.25);
  --num: rgba(0,0,0,.09); --th1: #333333; --th2: #151515;
  color-scheme: light;
}
[data-tema="escuro"] {
  --bg: #000000; --painel: #0B0B0C; --side: #0B0B0C; --card: #141416; --card2: #1C1C1F; --hover: #19191C; --campo: #141416;
  --ink: #F5F5F6; --ink2: #D4D4D8; --mut: #9A9AA2; --apag: #6A6A72; --line: #26262A; --line2: #404046;
  --g: #0DFF00; --gl: #0AC900; --gs: rgba(13,255,0,.10); --gi: #52E04A; --warn: #E0A640;
  --r: #FF6B5F; --rs: rgba(255,90,80,.13); --bolha-c: #1C1C1F; --bolha-v: rgba(13,255,0,.12); --sombra: 0 16px 32px -14px rgba(0,0,0,.9);
  --num: rgba(255,255,255,.07); --th1: #26262A; --th2: #0F0F10;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { background: var(--bg); }
body { margin: 0; font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 14px; color: var(--ink); -webkit-font-smoothing: antialiased; line-height: 1.55; transition: background .25s; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3 { margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
strong { font-weight: 700; }
main:focus { outline: none; }
.ic { width: 16px; height: 16px; flex: none; }
body.fora .casca { display: none; }
body.lg-pagina { background: #FAFAFA; }
body:not(.fora) #login { display: none; }

/* ---------- casca ---------- */
.casca { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 12px; padding: 12px; min-height: 100vh; }
.side { position: sticky; top: 12px; height: calc(100vh - 24px); overflow: auto; background: var(--side); border-radius: 24px; padding: 22px 12px 16px; display: flex; flex-direction: column; scrollbar-width: none; }
.marca { display: flex; align-items: center; gap: 10px; padding: 0 10px 18px; margin-bottom: 16px; border-bottom: 1px solid var(--line); font-weight: 800; font-size: 16px; color: var(--ink); }
.marca__simbolo svg { display: block; height: 17px; width: auto; }
.side__rot { display: block; padding: 0 10px; margin-bottom: 10px; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
.side__nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side__nav hr { border: 0; margin: 10px 0; }
.nav { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--ink2); transition: color .15s, background .15s; }
.nav:hover { color: var(--ink); background: var(--card); }
.nav__ic { width: 18px; flex: none; display: grid; place-items: center; color: inherit; }
.nav__ic .ic { width: 16px; height: 16px; }
.nav__t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav__n { font-size: 11px; font-weight: 700; color: var(--mut); }
.nav__n.ok { color: var(--gi); }
.nav.on { color: var(--ink); background: var(--card); }
.tema { display: flex; align-items: center; gap: 12px; padding: 12px 10px 4px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--mut); cursor: pointer; user-select: none; }
.tema input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tema__chave { position: relative; width: 40px; height: 22px; border-radius: 99px; background: var(--line); transition: background .25s; flex: none; }
.tema__chave::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 .25s cubic-bezier(.33,1,.68,1); }
.tema input:checked + .tema__chave { background: var(--gl); }
.tema input:checked + .tema__chave::after { transform: translateX(18px); }
.tema input:focus-visible + .tema__chave { outline: 2px solid var(--gl); outline-offset: 2px; }
.side__fundo { display: none; }

.corpo { min-width: 0; position: relative; background: var(--painel); border-radius: 24px; min-height: calc(100vh - 24px); }
.topo { position: relative; z-index: 5; display: flex; align-items: center; gap: 16px; padding: 18px 28px; }
.topo__menu { display: none; width: 40px; height: 40px; border-radius: 12px; background: var(--card); place-items: center; color: var(--ink); }
.topo__menu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.busca { position: relative; flex: 0 1 440px; }
.busca input { width: 100%; height: 42px; border-radius: 12px; border: 1px solid transparent; background: var(--campo); color: var(--ink); font: inherit; font-size: 13.5px; padding: 0 42px 0 16px; outline: none; transition: border-color .15s, background .15s; }
.busca input::placeholder { color: var(--mut); }
.busca input:focus { border-color: var(--line); background: var(--painel); }
.busca input::-webkit-search-cancel-button { -webkit-appearance: none; }
.busca svg { position: absolute; right: 14px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; fill: none; stroke: var(--mut); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.eu { margin-left: auto; position: relative; }
.eu__btn { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--ink); }
.eu__btn:hover { background: var(--card); }
.eu__btn .ic { width: 14px; height: 14px; color: var(--mut); }
.eu__av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--painel); font-size: 12px; font-weight: 800; }
.eu__nome { max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eu__menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 8px; border-radius: 14px; background: var(--painel); border: 1px solid var(--line); box-shadow: var(--sombra); }
.eu__info { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.eu__info strong { display: block; font-size: 13px; }
.eu__info small { font-size: 12px; color: var(--mut); }
.eu__menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.eu__menu button:hover { background: var(--card); color: var(--ink); }

/* ---------- páginas ---------- */
.pagina { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; padding: 4px 28px 40px; align-items: start; }
.pagina--cheia { grid-template-columns: minmax(0, 1fr); }
.cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 6px 0 26px; }
.cab h1 { font-size: 30px; font-weight: 800; }
.cab p { margin-top: 6px; color: var(--mut); font-size: 13.5px; max-width: 46em; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 99px; font-size: 13px; font-weight: 700; background: var(--ink); color: var(--painel); white-space: nowrap; transition: opacity .15s; }
.btn:hover { opacity: .88; }
.btn .ic { width: 14px; height: 14px; }
.btn__sub { font-weight: 500; opacity: .75; }
.btn--ok { background: var(--gs); color: var(--gi); cursor: default; }
.btn--ok:hover { opacity: 1; }
.btn--linha { background: var(--card2); color: var(--ink); height: 34px; padding: 0 14px; font-size: 12.5px; }
.btn--linha:hover { opacity: 1; background: var(--hover); }

/* lista numerada */
.lista { display: flex; flex-direction: column; gap: 14px; }
.item { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; }
.item__n { font-size: 28px; font-weight: 700; color: var(--num); letter-spacing: -.03em; margin-right: -14px; z-index: 0; }
.item__card { position: relative; z-index: 1; border-radius: 16px; background: var(--card); transition: background .15s; }
.item__card:hover { background: var(--hover); }
.item__link { display: flex; align-items: center; gap: 18px; padding: 10px 56px 10px 10px; }
.item__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.item__t { font-size: 15px; font-weight: 700; line-height: 1.35; }
.item__meta { display: flex; gap: 18px; font-size: 12px; color: var(--mut); }
.item__meta span { display: inline-flex; align-items: center; gap: 6px; }
.item__meta .ic { width: 13px; height: 13px; }
.item__mod { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.item__mod b { display: block; font-weight: 600; color: var(--ink2); font-size: 12px; }
.item__mod small { display: block; color: var(--mut); font-size: 11.5px; }
.item__av { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--card2); color: var(--ink2); }
.item__av .ic { width: 14px; height: 14px; }
.ponto { width: 7px; height: 7px; border-radius: 50%; background: var(--mut); align-self: flex-start; margin-top: 4px; opacity: .6; }
.ponto.ok { background: var(--gl); opacity: 1; }
.ponto.prox { background: var(--warn); opacity: 1; }
.vazio { padding: 40px 24px; border-radius: 16px; background: var(--card); color: var(--mut); text-align: center; }
.vazio .ic { vertical-align: -3px; }

.coracao { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--card2); color: var(--mut); transition: background .15s, color .15s, transform .15s; }
.coracao .ic { width: 14px; height: 14px; }
.coracao:hover { color: var(--ink); transform: scale(1.06); }
.coracao.on { background: var(--ink); color: var(--painel); }
.coracao.on .ic { fill: currentColor; }
.coracao--grande { position: static; width: 42px; height: 42px; border-radius: 12px; }

/* miniatura */
.thumb { position: relative; flex: none; width: 168px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; display: grid; place-items: center; color: rgba(255,255,255,.92);
  background: radial-gradient(120% 140% at 80% 0%, var(--th1), var(--th2) 70%); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb__ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); }
.thumb__ic .ic { width: 18px; height: 18px; }
.thumb__d { position: absolute; right: 6px; bottom: 6px; font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 5px; background: rgba(0,0,0,.72); color: #fff; }
.thumb--feita::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--g); }
.thumb--p { width: 104px; border-radius: 8px; }
.thumb--p .thumb__ic { width: 28px; height: 28px; border-radius: 8px; }
.thumb--p .thumb__ic .ic { width: 13px; height: 13px; }
.thumb--p .thumb__d { font-size: 9.5px; padding: 1px 5px; right: 4px; bottom: 5px; }

/* quadros da direita */
.lado { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 20px; }
.caixa { border-radius: 16px; background: var(--card); padding: 18px; }
.caixa h3 { font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.caixa__txt { color: var(--mut); font-size: 13px; }
.prog { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.prog__anel { position: relative; width: 68px; height: 68px; flex: none; }
.prog__anel b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; font-weight: 800; }
.prog strong { display: block; font-size: 14px; }
.prog small { color: var(--mut); font-size: 12px; }
.anel { width: 100%; height: 100%; rotate: -90deg; }
.anel__bg { fill: none; stroke: var(--card2); stroke-width: 6; }
.anel__fg { fill: none; stroke: var(--gl); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset .6s; }
.medalhas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.medalha { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--mut); text-align: center; }
.medalha__c { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--card2); color: var(--mut); border: 2px solid transparent; transition: transform .15s; }
.medalha:hover .medalha__c { transform: scale(1.05); }
.medalha__c .ic { width: 18px; height: 18px; }
.medalha.on .medalha__c { background: var(--gs); color: var(--gi); border-color: var(--gl); }
.medalha.on small { color: var(--ink2); }
.medalha__c i { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--gl); color: #fff; border: 2px solid var(--card); }
.medalha__c i .ic { width: 10px; height: 10px; stroke-width: 3; }
.barras { display: flex; flex-direction: column; gap: 16px; }
.linhab { display: flex; flex-direction: column; gap: 8px; }
.linhab > span { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.linhab b { font-weight: 500; color: var(--ink2); }
.linhab small { color: var(--mut); font-size: 12px; }
.barra { display: block; height: 5px; border-radius: 99px; background: var(--card2); overflow: hidden; }
.barra i { display: block; height: 100%; border-radius: inherit; background: var(--g); }
.btn-linha { display: flex; justify-content: center; margin-top: 20px; padding: 10px; border-radius: 99px; background: var(--card2); font-size: 12.5px; font-weight: 600; color: var(--ink2); transition: background .15s, color .15s; }
.btn-linha:hover { background: var(--hover); color: var(--ink); }

/* ---------- aula (estilo YouTube) ---------- */
.video { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: auto 1fr; grid-template-areas: "topo fila" "baixo fila"; column-gap: 24px; padding: 4px 28px 40px; }
.video__topo { grid-area: topo; min-width: 0; }
.video__baixo { grid-area: baixo; min-width: 0; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player--vazio { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 24px; color: #fff; background: radial-gradient(120% 140% at 80% 0%, #2A2A2A, #0D0D0D 70%); }
.player--vazio strong { font-size: 16px; margin-top: 10px; }
.player--vazio span:last-child { font-size: 13px; opacity: .7; }
.player__ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #1F1F1F; }
.player__ic .ic { width: 20px; height: 20px; margin-left: 3px; }
.v__t { font-size: 20px; font-weight: 800; line-height: 1.3; margin: 14px 0 10px; }
.v__barra { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.canal { display: flex; align-items: center; gap: 12px; min-width: 0; }
.canal__av { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--ink); color: var(--painel); }
.canal__av svg { width: 24px; height: auto; display: block; }
.canal b { display: block; font-size: 14px; font-weight: 700; }
.canal small { display: block; font-size: 12px; color: var(--mut); }
.canal small a:hover { color: var(--ink); text-decoration: underline; }
.v__acoes { display: flex; gap: 8px; }
.pilula { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 99px; background: var(--card); font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; transition: background .15s; }
.pilula:hover { background: var(--hover); }
.pilula .ic { width: 15px; height: 15px; }
.pilula.on .ic { fill: currentColor; }
.v__acoes .btn { height: 36px; }
.desc { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--card); }
.desc b { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.desc p { color: var(--ink2); font-size: 14px; max-width: 52em; }
.video__baixo .abas { margin-top: 22px; }

.fila { grid-area: fila; align-self: start; position: sticky; top: 12px; display: flex; flex-direction: column; max-height: calc(100vh - 48px); border-radius: 16px; background: var(--card); overflow: hidden; }
.fila__cab { padding: 16px 16px 14px; border-bottom: 1px solid var(--line); }
.fila__cab b { display: block; font-size: 15px; font-weight: 800; }
.fila__cab small { display: block; font-size: 12px; color: var(--mut); margin: 2px 0 10px; }
.fila__lista { overflow: auto; padding: 4px 0 10px; scrollbar-width: thin; }
.fila__mod { display: block; padding: 12px 16px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.pl { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; transition: background .15s; }
.pl:hover { background: var(--hover); }
.pl.on { background: var(--card2); }
.pl__n { width: 22px; flex: none; font-size: 11.5px; font-weight: 700; color: var(--mut); display: grid; place-items: center; }
.pl__n .ic { width: 13px; height: 13px; }
.pl.on .pl__n { color: var(--ink); }
.pl.feita .pl__n { color: var(--gi); }
.pl__t { min-width: 0; }
.pl__t b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; font-weight: 700; line-height: 1.3; }
.pl__t small { display: block; font-size: 11.5px; color: var(--mut); margin-top: 2px; }

.abas { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--card); width: fit-content; }
.abas button { font-size: 13px; font-weight: 700; color: var(--mut); padding: 8px 16px; border-radius: 9px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: background .15s, color .15s; }
.abas button:hover { color: var(--ink); }
.abas button[aria-selected="true"] { background: var(--painel); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.abas__n { font-size: 10.5px; font-weight: 800; background: var(--g); color: #111; padding: 1px 7px; border-radius: 99px; }

.aba { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.bloco { border-radius: 16px; background: var(--card); padding: 22px 24px; }
.bloco h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.bloco > p { color: var(--ink2); max-width: 46em; }
.bloco blockquote { margin: 14px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--card2); color: var(--ink); border-left: 3px solid var(--gl); }
.chats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.chat { border-radius: 14px; overflow: hidden; background: var(--card2); display: flex; flex-direction: column; font-size: 13px; }
.chat__h { padding: 10px 14px; font-weight: 700; font-size: 12px; color: var(--ink2); }
.chat__msgs { padding: 0 14px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.chat__hora { align-self: center; font-size: 10.5px; font-weight: 600; color: var(--mut); }
.msg { max-width: 88%; padding: 7px 11px; border-radius: 10px; line-height: 1.4; color: var(--ink); }
.msg--c { align-self: flex-start; background: var(--bolha-c); }
.msg--v { align-self: flex-end; background: var(--bolha-v); }
.chat__res { display: flex; align-items: center; gap: 6px; padding: 10px 14px; font-weight: 700; font-size: 12px; color: var(--r); border-top: 1px solid var(--line); }
.chat--boa .chat__res { color: var(--gi); }
.chat__res .ic { width: 13px; height: 13px; }
.dicas { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.dicas li { display: flex; gap: 12px; font-size: 13.5px; color: var(--ink2); }
.dicas__ic { width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--card2); color: var(--ink); }
.dicas__ic .ic { width: 15px; height: 15px; }
.dicas strong { color: var(--ink); }

.q { border-radius: 16px; background: var(--card); padding: 20px 22px; }
.q h3 { display: flex; gap: 10px; font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.q__n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--card2); font-size: 11px; display: grid; place-items: center; }
.q__cli { background: var(--card2); border-radius: 12px; padding: 10px; margin-bottom: 12px; display: flex; font-size: 13.5px; }
.ops { display: flex; flex-direction: column; gap: 8px; }
.op { text-align: left; padding: 11px 14px; border-radius: 12px; border: 1px solid transparent; background: var(--card2); font-size: 13.5px; color: var(--ink); transition: border-color .15s, background .15s; }
.op:not(:disabled):hover { border-color: var(--line2); }
.op:disabled { cursor: default; }
.op--ok { border-color: var(--gl); background: var(--gs); }
.op--x { border-color: var(--r); background: var(--rs); }
.q__dica { display: none; margin-top: 12px; font-size: 13px; color: var(--mut); }
.q__dica.on { display: block; }
.montar__alvo { min-height: 50px; padding: 8px; border-radius: 12px; background: var(--card2); border: 1px dashed var(--line2); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; transition: border-color .15s, background .15s; }
.montar__alvo.ok { border: 1px solid var(--gl); background: var(--gs); }
.montar__alvo.x { border-color: var(--r); background: var(--rs); }
.montar__ph { color: var(--mut); font-size: 13px; padding: 0 6px; }
.montar__pecas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.peca { font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card2); color: var(--ink); }
button.peca:hover { border-color: var(--mut); }
.peca--in { background: var(--bolha-v); border-color: transparent; }
.pronta { margin-top: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.pronta p { background: var(--bolha-v); padding: 14px 16px; border-radius: 14px; border-top-right-radius: 4px; align-self: stretch; color: var(--ink); }
mark { background: none; color: var(--gi); font-weight: 700; }

.navaula { display: flex; justify-content: space-between; gap: 14px; margin-top: 24px; }
.navaula a { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; background: var(--card); font-size: 13.5px; font-weight: 600; max-width: 48%; transition: background .15s; }
.navaula a:hover { background: var(--hover); }
.navaula small { display: block; font-size: 11.5px; font-weight: 500; color: var(--mut); }
.navaula__p { margin-left: auto; text-align: right; }

/* ---------- mensagens ---------- */
.msgs + .msgs { margin-top: 30px; }
.msgs h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; margin-bottom: 14px; }
.msgs__grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.mcard { border-radius: 16px; background: var(--card); padding: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.mcard header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; width: 100%; }
.mcard header strong { font-size: 14px; font-weight: 600; }
.mcard header a { font-size: 11.5px; font-weight: 600; color: var(--mut); white-space: nowrap; }
.mcard header a:hover { color: var(--ink); }
.mcard p { background: var(--bolha-v); color: var(--ink); padding: 12px 14px; border-radius: 12px; border-top-right-radius: 4px; align-self: stretch; flex: 1; font-size: 13.5px; }

/* aviso */
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 12px; opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 12px; background: #151515; color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 16px 40px -12px rgba(0,0,0,.5); transition: opacity .2s, translate .25s; z-index: 60; }
.toast .ic { color: var(--g); width: 14px; height: 14px; }
.toast.on { opacity: 1; translate: -50% 0; }

/* ---------- responsivo ---------- */
@media (max-width: 1180px) {
  .pagina { grid-template-columns: minmax(0, 1fr); }
  .video { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "topo" "fila" "baixo"; }
  .fila { position: static; margin-top: 16px; max-height: none; }
  .fila__lista { max-height: 340px; }
  .lado { position: static; display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .casca { grid-template-columns: minmax(0, 1fr); padding: 8px; }
  .corpo { min-height: calc(100vh - 16px); border-radius: 20px; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; height: auto; width: 260px; z-index: 40; border-radius: 0 20px 20px 0; transform: translateX(-100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
  .side.aberto { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.4); }
  .side__fundo { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .side__fundo.aberto { opacity: 1; pointer-events: auto; }
  .topo { padding: 14px 16px; gap: 12px; }
  .topo__menu { display: grid; flex: none; }
  .pagina, .video { padding: 4px 16px 32px; }
  .eu__nome { display: none; }
}
@media (max-width: 640px) {
  .lado { grid-template-columns: 1fr; }
  .cab { flex-direction: column; align-items: stretch; }
  .cab h1 { font-size: 25px; }
  .item { grid-template-columns: minmax(0, 1fr); }
  .item__n { display: none; }
  .item__link { gap: 12px; padding: 10px 44px 10px 10px; }
  .item__info { gap: 5px; }
  .thumb { width: 92px; border-radius: 10px; }
  .thumb__ic { width: 32px; height: 32px; border-radius: 10px; }
  .thumb__ic .ic { width: 15px; height: 15px; }
  .thumb__d { display: none; }
  .item__t { font-size: 14px; }
  .item__meta { display: none; }
  .item__av { display: none; }
  .item__mod { gap: 8px; }
  .item__mod b { display: inline; font-weight: 500; color: var(--mut); font-size: 11.5px; }
  .item__mod > span:nth-child(2) { font-size: 11.5px; color: var(--mut); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .item__mod small { display: none; }
  .item__mod > span:nth-child(2)::after { content: ' · ' attr(data-min); }
  .coracao { top: 8px; right: 8px; }
  .v__t { font-size: 18px; }
  .v__acoes { width: 100%; }
  .v__acoes .btn { flex: 1; }
  .player { border-radius: 12px; }
  .abas { width: 100%; overflow-x: auto; gap: 2px; scrollbar-width: none; }
  .abas button { flex: 1; justify-content: center; padding: 9px 8px; font-size: 12px; gap: 6px; }
  .chats, .dicas { grid-template-columns: 1fr; }
  .navaula { flex-direction: column; }
  .navaula a { max-width: none; }
  .msgs__grade { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
