/* Aprovação OAB: azul-marinho profundo com acento dourado. */
:root {
  --bg: #0b1220;
  --bg2: #111b30;
  --surface: #18243d;
  --surface2: #213150;
  --line: #2c3d5f;
  --text: #eef2fb;
  --muted: #9fb0cf;
  --accent: #d9a441;
  --accent-ink: #241800;
  --danger: #ff7b7b;
  --ok: #4fd1a1;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  --pad: clamp(16px, 4vw, 56px);
  --radius: 10px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
[hidden] { display: none !important; }
main { min-height: 100vh; outline: none; }

/* ---------- Barra superior ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; align-items: center; gap: 24px; padding: 14px var(--pad); background: linear-gradient(to bottom, rgba(11,18,32,.92), rgba(11,18,32,0)); transition: background .25s; }
.nav.solid { background: rgba(11,18,32,.96); box-shadow: 0 1px 0 var(--line); }
.logo { font-family: var(--serif); font-weight: 700; font-size: 25px; white-space: nowrap; letter-spacing: -.02em; display: inline-flex; align-items: baseline; }
.logo::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: 3px; }
.nav-links { display: flex; gap: 20px; white-space: nowrap; }
.nav-links .nav-more { display: none; }
@media (min-width: 1400px) { .nav-links .nav-more { display: inline; } }
@media (max-width: 1100px) { .logo { font-size: 21px; } .nav-links { gap: 16px; } .nav-links a { font-size: 14px; } .search input, .search input:focus { width: 130px; } }
.tabbar, .more-sheet { display: none; }
.nav-links a { color: var(--muted); font-size: 15px; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--text); }
.nav-links a.on { color: var(--text); border-color: var(--accent); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.search input { width: 220px; background: rgba(24,36,61,.85); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 14px; transition: width .2s, border-color .2s; }
.search input::placeholder { color: var(--muted); }
.search input:focus { width: 300px; border-color: var(--accent); outline: none; }
.menu-wrap { position: relative; }
.avatar-btn { border: 0; background: none; padding: 0; border-radius: 8px; }
.menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 6px; font-size: 14px; }
.menu a:hover, .menu button:hover { background: var(--surface2); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.menu .who { padding: 8px 12px; color: var(--muted); font-size: 13px; }

/* ---------- Avatares ---------- */
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; font-family: var(--serif); font-weight: 700; font-size: 17px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); flex: none; }
.avatar.lg { width: clamp(96px, 14vw, 150px); height: clamp(96px, 14vw, 150px); border-radius: 18px; font-size: clamp(40px, 6vw, 64px); }
.av-0 { background: linear-gradient(135deg, #f2b134, #d9531e); }
.av-1 { background: linear-gradient(135deg, #7c5cff, #3b1d8f); }
.av-2 { background: linear-gradient(135deg, #2fd4a4, #0e7a68); }
.av-3 { background: linear-gradient(135deg, #ff6fa5, #a3174f); }
.av-4 { background: linear-gradient(135deg, #4aa8ff, #1b4f9c); }
.av-5 { background: linear-gradient(135deg, #b0e04a, #4f8a12); }
.av-6 { background: linear-gradient(135deg, #ff9d5c, #a63f0a); }
.av-7 { background: linear-gradient(135deg, #c9b6ff, #6a4bb8); }

/* ---------- Botões e formulários ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 15px; transition: background .15s, transform .1s; }
.btn:hover { background: var(--surface2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #e8b95a; }
.btn.ghost { background: rgba(24,36,61,.55); backdrop-filter: blur(6px); }
.btn.danger { color: var(--danger); border-color: rgba(255,122,122,.45); background: transparent; }
.btn.danger:hover { background: rgba(255,122,122,.1); }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(24,36,61,.6); }
.icon-btn:hover { background: var(--surface2); }
.icon-btn.on { border-color: var(--accent); color: var(--accent); }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic.fill { fill: currentColor; stroke: none; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > span { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 11px 14px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field textarea { min-height: 96px; resize: vertical; }
.field small { color: var(--muted); font-size: 13px; }
.check { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.err { color: var(--danger); font-size: 14px; min-height: 20px; margin: 0 0 10px; }
.note { color: var(--muted); font-size: 14px; }

/* ---------- Autenticação ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: radial-gradient(900px 500px at 15% 0%, rgba(52,96,196,.35), transparent 60%), radial-gradient(800px 500px at 90% 100%, rgba(217,164,65,.18), transparent 60%), var(--bg); }
.auth-card { width: min(440px, 100%); background: rgba(17,27,48,.92); border: 1px solid var(--line); border-radius: 16px; padding: 36px 32px; }
.auth-card.wide { width: min(760px, 100%); }
.auth-card .logo { font-size: 34px; margin-bottom: 18px; }
.auth-card h1 { font-family: var(--serif); font-size: 28px; margin-bottom: 6px; }
.auth-card > p { color: var(--muted); margin: 0 0 22px; }
.auth-card .btn.primary { width: 100%; padding: 13px; }
.auth-foot { margin-top: 18px; color: var(--muted); font-size: 14px; text-align: center; }
.auth-foot a { color: var(--accent); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.plan { position: relative; display: block; border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--bg2); cursor: pointer; }
.plan input { position: absolute; opacity: 0; }
.plan:has(input:checked) { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 1px var(--accent) inset; }
.plan:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.plan b { display: block; font-family: var(--serif); font-size: 20px; }
.plan .price { font-size: 22px; font-weight: 700; margin: 6px 0 2px; }
.plan .price small { font-weight: 400; color: var(--muted); font-size: 13px; }
.plan ul { list-style: none; margin: 8px 0 0; padding: 0; color: var(--muted); font-size: 14px; }
.plan .current { position: absolute; top: 10px; right: 10px; font-size: 12px; color: var(--accent-ink); background: var(--accent); padding: 2px 8px; border-radius: 999px; font-weight: 700; }

/* ---------- Perfis ---------- */
.profiles { min-height: 100vh; display: grid; align-content: center; justify-items: center; gap: 36px; padding: 48px 16px; background: radial-gradient(900px 500px at 50% 0%, rgba(52,96,196,.3), transparent 60%), var(--bg); text-align: center; }
.profiles h1 { font-family: var(--serif); font-size: clamp(30px, 5vw, 48px); }
.profile-grid { display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 36px); justify-content: center; }
.profile-tile { display: grid; gap: 12px; justify-items: center; background: none; border: 0; color: var(--muted); font-size: 17px; padding: 6px; border-radius: 14px; position: relative; }
.profile-tile:hover { color: var(--text); }
.profile-tile:hover .avatar { box-shadow: 0 0 0 3px var(--text); }
.profile-tile .tag { position: absolute; top: 2px; right: 2px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.profile-tile .edit { position: absolute; inset: 6px 6px auto 6px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 18px; background: rgba(11,18,32,.62); color: var(--text); }
.profile-tile.add .avatar { background: transparent; border: 2px dashed var(--line); color: var(--muted); }
.avatar-pick { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.avatar-pick label { cursor: pointer; border-radius: 10px; padding: 3px; border: 2px solid transparent; }
.avatar-pick input { position: absolute; opacity: 0; }
.avatar-pick label:has(input:checked) { border-color: var(--accent); }
.avatar-pick label:has(input:focus-visible) { outline: 2px solid var(--accent); }

/* ---------- Destaque ---------- */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; padding: 120px var(--pad) 64px; background-size: cover; background-position: center; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--bg) 4%, rgba(11,18,32,.2) 55%, rgba(11,18,32,.55)), linear-gradient(to right, rgba(11,18,32,.95), rgba(11,18,32,.55) 50%, rgba(11,18,32,0) 85%); }
.hero-body { max-width: 640px; }
.hero h1 { font-family: var(--serif); font-size: clamp(38px, 6.5vw, 84px); letter-spacing: -.02em; margin: 10px 0 14px; text-wrap: balance; }
.hero p { color: #e3d9f5; font-size: clamp(15px, 1.6vw, 18px); max-width: 56ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--muted); font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; align-items: center; }
.age { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 4px; font-weight: 700; font-size: 13px; color: #fff; background: #3b8f5b; }
.age-10 { background: #2f7fc4; } .age-12 { background: #c49a20; color: #1c1400; } .age-14 { background: #d9731e; } .age-16 { background: #cf3f3f; } .age-18 { background: #151515; border: 1px solid #555; }

/* ---------- Linhas e cartões ---------- */
.rows { margin-top: -56px; position: relative; padding-bottom: 80px; }
.row { margin: 0 0 30px; }
.row h2 { font-family: var(--serif); font-size: 22px; padding: 0 var(--pad); margin-bottom: 12px; }
.row-wrap { position: relative; }
.row-scroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding: 6px var(--pad) 12px; scrollbar-width: none; scroll-padding: 0 var(--pad); }
.row-scroll::-webkit-scrollbar { display: none; }
.row-arrow { position: absolute; top: 6px; bottom: 12px; width: var(--pad); min-width: 40px; border: 0; z-index: 3; font-size: 32px; color: var(--text); opacity: 0; transition: opacity .2s; }
.row-arrow.left { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.row-arrow.right { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.row-wrap:hover .row-arrow, .row-arrow:focus-visible { opacity: 1; }
.card { position: relative; flex: none; width: clamp(130px, 14vw, 200px); scroll-snap-align: start; border-radius: var(--radius); transition: transform .18s; }
.card:hover, .card:focus-visible { transform: scale(1.05); z-index: 2; }
.card .poster { aspect-ratio: 2 / 3; border-radius: var(--radius); background-size: cover; background-position: center; display: flex; align-items: flex-end; padding: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.card.continue { width: clamp(220px, 24vw, 340px); }
.card.continue .poster { aspect-ratio: 16 / 9; }
.poster-name { font-family: var(--serif); font-weight: 700; font-size: 17px; line-height: 1.15; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.card .bar { position: absolute; left: 10px; right: 10px; bottom: 8px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.25); }
.card .bar i { display: block; height: 100%; border-radius: 2px; background: var(--accent); }
.card .cap { margin-top: 8px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.card.top { width: clamp(170px, 19vw, 260px); display: flex; align-items: flex-end; }
.card.top .rank { font-family: var(--serif); font-weight: 700; font-size: clamp(80px, 9vw, 130px); line-height: .8; color: transparent; -webkit-text-stroke: 2px var(--accent); margin-right: -14px; position: relative; z-index: 1; }
.card.top .poster { width: 62%; flex: none; }
.rowless { padding: 120px var(--pad) 60px; }
.empty { text-align: center; color: var(--muted); padding: 80px 20px; }
.empty h2 { font-family: var(--serif); color: var(--text); margin-bottom: 8px; }
.page { padding: 100px var(--pad) 80px; }
.page > h1 { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); margin-bottom: 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(130px, 14vw, 190px), 1fr)); gap: 20px 14px; }
.grid .card { width: auto; }

/* ---------- Página do título ---------- */
.detail-hero { position: relative; padding: 130px var(--pad) 40px; background-size: cover; background-position: center; isolation: isolate; min-height: 56vh; display: flex; align-items: flex-end; }
.detail-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--bg), rgba(11,18,32,.55) 70%), linear-gradient(to right, rgba(11,18,32,.95), rgba(11,18,32,.6) 55%, transparent 90%); }
.detail-hero h1 { font-family: var(--serif); font-size: clamp(34px, 5.5vw, 68px); letter-spacing: -.02em; margin: 10px 0; text-wrap: balance; }
.detail-body { padding: 0 var(--pad) 80px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: start; }
.detail-body p { max-width: 68ch; }
.facts { color: var(--muted); font-size: 14px; display: grid; gap: 10px; }
.facts b { color: var(--text); font-weight: 600; }
.season-bar { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 8px; }
.season-bar h2 { font-family: var(--serif); font-size: 22px; }
.season-bar select { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.episodes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ep { display: grid; grid-template-columns: 36px 1fr auto; gap: 16px; align-items: center; padding: 16px 12px; border-bottom: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.ep:hover { background: var(--bg2); }
.ep .n { font-family: var(--serif); font-size: 24px; color: var(--muted); text-align: center; }
.ep .t { font-weight: 600; }
.ep .s { color: var(--muted); font-size: 14px; margin-top: 2px; max-width: 70ch; }
.ep .d { color: var(--muted); font-size: 14px; }
.ep .pbar { height: 3px; border-radius: 2px; background: var(--line); margin-top: 8px; max-width: 260px; }
.ep .pbar i { display: block; height: 100%; background: var(--accent); border-radius: 2px; }
.ep.done .n::after { content: "✓"; display: block; font-size: 12px; color: var(--ok); font-family: var(--sans); }
.similar { margin-top: 36px; }
.similar h2 { font-family: var(--serif); font-size: 22px; margin-bottom: 12px; }

/* ---------- Conta ---------- */
.panel { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-bottom: 24px; }
.panel h2 { font-family: var(--serif); font-size: 22px; margin-bottom: 14px; }
.banner { border: 1px solid var(--accent); background: rgba(217,164,65,.1); border-radius: 12px; padding: 16px 20px; margin-bottom: 24px; }
.banner b { color: var(--accent); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
.table-wrap { overflow-x: auto; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface2); }
.pill.ok { background: rgba(90,210,160,.16); color: var(--ok); }
.pill.off { background: rgba(255,122,122,.14); color: var(--danger); }

/* ---------- Admin ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 16px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--text); border-color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.stat b { display: block; font-family: var(--serif); font-size: 32px; }
.stat span { color: var(--muted); font-size: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.bars { display: grid; gap: 12px; }
.bars .b { display: grid; grid-template-columns: 110px 1fr 40px; gap: 10px; align-items: center; font-size: 14px; }
.bars .track { height: 10px; border-radius: 5px; background: var(--surface); overflow: hidden; }
.bars .track i { display: block; height: 100%; background: var(--accent); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; }
.upload { display: flex; gap: 8px; align-items: center; }
.upload input[type=text] { flex: 1; }
.progress { height: 6px; border-radius: 3px; background: var(--surface); overflow: hidden; margin-top: 6px; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .15s; }

/* ---------- Janelas e avisos ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 80; background: rgba(5,9,18,.72); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.modal.wide { width: min(760px, 100%); }
.modal h2 { font-family: var(--serif); font-size: 24px; margin-bottom: 16px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: var(--surface2); border: 1px solid var(--line); padding: 12px 20px; border-radius: 10px; z-index: 120; transition: opacity .2s, transform .2s; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { border-color: var(--danger); }
.skel { height: 60vh; margin: 100px var(--pad) 0; border-radius: 16px; background: linear-gradient(100deg, var(--bg2) 30%, var(--surface) 50%, var(--bg2) 70%); background-size: 300% 100%; animation: sh 1.4s infinite linear; }
@keyframes sh { to { background-position: -150% 0; } }

/* ---------- Player ---------- */
.player { position: fixed; inset: 0; background: #000; z-index: 60; display: grid; place-items: center; user-select: none; }
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.pl-top, .pl-bar { position: absolute; left: 0; right: 0; padding: 16px clamp(14px, 3vw, 36px); transition: opacity .25s; }
.pl-top { top: 0; display: flex; align-items: center; gap: 14px; background: linear-gradient(to bottom, rgba(0,0,0,.75), transparent); }
.pl-name { font-family: var(--serif); font-size: clamp(16px, 2vw, 22px); }
.pl-bar { bottom: 0; background: linear-gradient(to top, rgba(0,0,0,.85), transparent); padding-top: 40px; }
.pl-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pl-row .grow { flex: 1; }
.pl-btn { display: inline-grid; place-items: center; min-width: 40px; height: 40px; border: 0; background: none; border-radius: 8px; padding: 0 8px; gap: 4px; }
.pl-btn:hover { background: rgba(255,255,255,.14); }
.pl-btn.next { display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; }
#tm { font-variant-numeric: tabular-nums; font-size: 14px; color: #ddd; margin-left: 8px; }
.pl-center { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.pl-center button { pointer-events: auto; width: 84px; height: 84px; border-radius: 50%; border: 0; background: rgba(11,18,32,.7); backdrop-filter: blur(6px); display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.pl-center .ic { width: 36px; height: 36px; }
.player.paused .pl-center button { opacity: 1; }
.player.wait .pl-center::after { content: ""; position: absolute; width: 56px; height: 56px; border-radius: 50%; border: 4px solid rgba(255,255,255,.25); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.player.idle { cursor: none; }
.player.idle .pl-top, .player.idle .pl-bar { opacity: 0; pointer-events: none; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; background: none; margin: 0; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 5px; border-radius: 3px; background: linear-gradient(to right, var(--accent) var(--fill, 0%), rgba(255,255,255,.3) var(--fill, 0%)); }
input[type=range]::-moz-range-track { height: 5px; border-radius: 3px; background: rgba(255,255,255,.3); }
input[type=range]::-moz-range-progress { height: 5px; border-radius: 3px; background: var(--accent); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: var(--accent); margin-top: -5px; border: 0; }
input[type=range]::-moz-range-thumb { width: 15px; height: 15px; border-radius: 50%; background: var(--accent); border: 0; }
#vol { width: 90px; }
.pl-end, .pl-msg { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; background: rgba(5,9,18,.86); padding: 24px; }
.pl-end h2, .pl-msg h2 { font-family: var(--serif); font-size: 28px; }
.pl-msg p { max-width: 46ch; color: var(--muted); margin: 0; }

@media (max-width: 860px) {
  .detail-body { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .nav { gap: 14px; }
  .nav-links a { font-size: 14px; }
  .search input, .search input:focus { width: 130px; }
  .hero { min-height: 74vh; padding-bottom: 48px; }
}
@media (max-width: 560px) {
  .nav-links { display: none; }
  .grid2 { grid-template-columns: 1fr; }
  #vol { display: none; }
  .auth-card { padding: 28px 20px; }
  .ep { grid-template-columns: 28px 1fr; }
  .ep .d { display: none; }
}
@media (hover: none) { .row-arrow { display: none; } .card:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ===== Aprovação OAB: aulas, questões, desempenho ===== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sub { font-family: var(--serif); font-size: 22px; margin: 28px 0 10px; }
.poster-text { display: grid; gap: 4px; width: 100%; }
.poster-text small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.facts-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.module { margin-bottom: 8px; }
.ep.lesson { grid-template-columns: 40px 1fr auto; }
.ep.lesson[aria-disabled] { opacity: .5; cursor: default; }
.tick { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); background: transparent; color: transparent; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.tick .ic { width: 16px; height: 16px; }
.tick:hover { border-color: var(--ok); }
.tick.on { background: var(--ok); border-color: var(--ok); color: #05261b; }
.ep.done .t { color: var(--muted); }
.lesson-end { display: flex; align-items: center; gap: 10px; }
.course-progress { margin: 6px 0 4px; display: grid; gap: 6px; }
.pbar.big { height: 8px; border-radius: 4px; background: var(--surface); overflow: hidden; max-width: 420px; }
.pbar.big i { display: block; height: 100%; background: var(--accent); transition: width .3s; }

.track { height: 10px; border-radius: 5px; background: var(--surface); overflow: hidden; }
.track i { display: block; height: 100%; background: var(--accent); }
.track.good i { background: var(--ok); }
.track.mid i { background: var(--accent); }
.track.low i { background: var(--danger); }

.quiz { max-width: 860px; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.quiz-tools { display: flex; align-items: center; gap: 12px; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 18px; padding: 4px 12px; border-radius: 8px; background: var(--surface); }
.timer.warn { color: var(--danger); }
.qnav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.qnav button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg2); font-size: 13px; font-weight: 600; }
.qnav button.ans { background: var(--surface2); }
.qnav button.ok { background: rgba(79,209,161,.2); border-color: var(--ok); }
.qnav button.no { background: rgba(255,123,123,.18); border-color: var(--danger); }
.qnav button.cur { outline: 2px solid var(--accent); outline-offset: 1px; }
.qcard { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: clamp(18px, 3vw, 30px); margin-bottom: 18px; }
.qmeta { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 10px; }
.qtext { font-size: 17px; line-height: 1.6; margin: 0 0 20px; white-space: pre-wrap; }
.opts { display: grid; gap: 10px; }
.opt { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: start; text-align: left; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); line-height: 1.5; }
.opt:hover:not([disabled]):not(.static) { border-color: var(--accent); }
.opt .let { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface2); font-weight: 700; font-size: 14px; }
.opt.picked { border-color: var(--accent); background: rgba(217,164,65,.12); }
.opt.picked .let { background: var(--accent); color: var(--accent-ink); }
.opt.right { border-color: var(--ok); background: rgba(79,209,161,.13); }
.opt.right .let { background: var(--ok); color: #05261b; }
.opt.wrong { border-color: var(--danger); background: rgba(255,123,123,.12); }
.opt.wrong .let { background: var(--danger); color: #330909; }
.opt[disabled] { cursor: default; }
.opt .you { font-style: normal; font-size: 12px; color: var(--muted); }
.feedback { margin-top: 18px; padding: 14px 16px; border-radius: 10px; border-left: 4px solid var(--line); background: var(--surface); line-height: 1.55; }
.feedback.ok { border-color: var(--ok); }
.feedback.no { border-color: var(--danger); }
.feedback p { margin: 8px 0 0; color: var(--muted); }
.qfoot { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.verdict { padding: 12px 16px; border-radius: 10px; margin: 0 0 20px; background: var(--surface); }
.verdict.ok { border-left: 4px solid var(--ok); }
.verdict.no { border-left: 4px solid var(--danger); }
.qcard.review.ok { border-left: 4px solid var(--ok); }
.qcard.review.no { border-left: 4px solid var(--danger); }
.qcard.review.blank { border-left: 4px solid var(--muted); }

.pl-course { font-size: 12px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.pl-top .grow { flex: 1; }
.pl-rate { background: rgba(24,36,61,.7); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; color: var(--text); }
.qcell { max-width: 460px; }
.optfield { border: 0; padding: 0; margin: 0 0 16px; }
.optrow { display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: center; margin-top: 8px; }
.optradio { display: flex; align-items: center; gap: 8px; }
.optradio input { width: 18px; height: 18px; accent-color: var(--accent); }
.quiz-setup { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .quiz-setup { grid-template-columns: 1fr; } }

/* ---------- Questões: leitura confortável ---------- */
.quiz { --qfs: 19px; --qtext: #f4f7ff; --qmuted: #c3cfe6; --qcard: #121c33; --qopt: #1a2744; --qopt-hover: #22335a; --qline: #36496f; max-width: 960px; margin-inline: auto; }
.quiz.fs0 { --qfs: 17px; }
.quiz.fs2 { --qfs: 22px; }
.quiz.fs3 { --qfs: 25px; }
.quiz.paper { --qtext: #1b2233; --qmuted: #4a5568; --qcard: #fbf7ee; --qopt: #fffdf8; --qopt-hover: #f1e9d6; --qline: #d6cbb1; }
.quiz-top { position: sticky; top: 56px; z-index: 5; margin: 0 -8px 0; padding: 10px 8px; background: rgba(11,18,32,.94); backdrop-filter: blur(6px); }
.qtitle { display: grid; gap: 2px; }
.qtitle b { font-size: 18px; }
.qcount { color: var(--muted); font-size: 14px; }
.readtools { display: flex; gap: 6px; }
.qprogress { height: 6px; border-radius: 99px; background: var(--surface); overflow: hidden; margin: 0 0 14px; }
.qprogress i { display: block; height: 100%; background: var(--accent); transition: width .25s; }
.qnav button { width: 40px; height: 40px; font-size: 15px; }
.quiz .qcard { background: var(--qcard); color: var(--qtext); border-color: var(--qline); border-radius: 16px; padding: clamp(20px, 4vw, 40px); box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.quiz .qmeta { color: var(--accent); font-size: 13px; }
.quiz.paper .qmeta { color: #8a5a00; }
.quiz .qtext { font-size: var(--qfs); line-height: 1.75; margin: 0 0 26px; color: var(--qtext); max-width: 72ch; white-space: pre-line; }
.quiz .opts { gap: 12px; }
.quiz .opt { grid-template-columns: 40px 1fr auto; gap: 16px; padding: 16px 18px; border-radius: 12px; border: 2px solid var(--qline); background: var(--qopt); color: var(--qtext); font-size: calc(var(--qfs) - 1px); line-height: 1.65; }
.quiz .opt:hover:not([disabled]):not(.static) { background: var(--qopt-hover); border-color: var(--accent); }
.quiz .opt .let { width: 36px; height: 36px; font-size: 16px; background: var(--qline); color: var(--qtext); }
.quiz.paper .opt.picked { background: #fdf0cf; }
.quiz.paper .opt.right { background: #def5e8; border-color: #1f9d6b; }
.quiz.paper .opt.wrong { background: #fde4e4; border-color: #d64545; }
.quiz .opt.right .let { color: #05261b; }
.quiz .opt.wrong .let { color: #330909; }
.quiz .feedback { margin-top: 24px; padding: 18px 20px 20px; border-radius: 12px; border-left: 6px solid var(--qline); background: var(--qopt); color: var(--qtext); }
.quiz .feedback.ok { border-color: var(--ok); }
.quiz .feedback.no { border-color: var(--danger); }
.quiz .fb-head { margin: 0 0 12px; font-size: calc(var(--qfs) - 1px); color: var(--qtext); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.quiz .fb-badge { font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; background: var(--danger); color: #330909; }
.quiz .feedback.ok .fb-badge { background: var(--ok); color: #05261b; }
.quiz .feedback h3 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--qmuted); margin: 4px 0 8px; }
.quiz .fb-text { font-size: calc(var(--qfs) - 1px); line-height: 1.75; color: var(--qtext); max-width: 72ch; white-space: pre-line; }
.quiz .feedback .note { color: var(--qmuted); margin: 12px 0 0; font-size: 14px; }
.quiz .feedback p { color: inherit; }
.quiz .qfoot { margin: 28px 0 0; }
.quiz .qfoot .btn { min-height: 46px; padding-inline: 24px; font-size: 16px; }
.quiz .qcard.review { margin-bottom: 22px; }
@media (max-width: 640px) {
  .quiz-top { top: 52px; }
  .quiz .opt { grid-template-columns: 34px 1fr; padding: 14px; gap: 12px; }
  .quiz .opt .you { grid-column: 2; }
  .readtools .btn:last-child { display: none; }
}

.quiz.paper .qfoot .btn:not(.primary) { background: #ece3cc; border-color: #cfc3a6; color: #1b2233; }
.quiz .qfoot .btn:disabled { opacity: .45; cursor: not-allowed; }
.quiz.paper .feedback { background: #fffdf8; }

/* Telas largas (PC): questão à esquerda, painel com navegação e ferramentas à direita */
.qlayout { display: block; }
@media (min-width: 1100px) {
  .quiz { max-width: 1400px; }
  .qlayout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
  .qside { grid-column: 2; grid-row: 1; position: sticky; top: 84px; background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
  .qmain { grid-column: 1; grid-row: 1; margin-bottom: 0; }
  .qside .quiz-top { position: static; display: grid; gap: 14px; margin: 0 0 12px; padding: 0; background: none; backdrop-filter: none; }
  .qside .quiz-tools { display: flex; flex-wrap: wrap; gap: 8px; }
  .qside .quiz-tools .timer { order: -1; width: 100%; text-align: center; font-size: 24px; }
  .qside .readtools { width: 100%; }
  .qside .readtools .btn { flex: 1; }
  .qside .qnav { gap: 8px; margin: 0; max-height: 46vh; overflow-y: auto; }
}
@media (min-width: 1700px) {
  .quiz { --qfs: 20px; }
  .quiz.fs0 { --qfs: 18px; }
  .quiz.fs2 { --qfs: 23px; }
  .quiz.fs3 { --qfs: 26px; }
  .quiz .qtext, .quiz .fb-text { max-width: 80ch; }
}
@media (min-width: 1100px) {
  .qside .quiz-tools [data-finish] { width: 100%; min-height: 42px; }
  .qside .readtools .btn { min-height: 42px; white-space: nowrap; padding-inline: 8px; }
  .qside .qprogress { margin: 4px 0 14px; }
}
.quiz .opt.right .let { background: var(--ok); color: #05261b; }
.quiz .opt.wrong .let { background: var(--danger); color: #330909; }
.quiz .opt.picked .let { background: var(--accent); color: var(--accent-ink); }

/* ---------- Caderno de erros ---------- */
.errbook .quiz-top { position: static; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 8px; padding: 0; background: none; backdrop-filter: none; }
.errbook h1 { font-family: var(--serif); }
.err-redo { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 18px 0; }
.err-redo h2 { font-size: 20px; margin-bottom: 4px; }
.err-redo-ctl { display: flex; align-items: flex-end; gap: 12px; }
.err-redo .err { width: 100%; margin: 0; }
.err-filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 8px 0 18px; }
.err-filters .field { margin: 0; }
.err-filters .grow { flex: 1; min-width: 220px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { background: var(--bg2); border: 0; padding: 10px 16px; font-weight: 600; }
.seg button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.qcard.err { margin-bottom: 16px; }
.qcard.err.is-done { border-left: 5px solid var(--ok); }
.qcard.err.is-open { border-left: 5px solid var(--danger); }
.err-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.err-meta .qmeta { margin: 0; }
.err-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.tag.no { background: rgba(255,123,123,.2); color: var(--danger); }
.tag.ok { background: rgba(79,209,161,.2); color: var(--ok); }
.quiz.paper .tag.no { color: #b32d2d; }
.quiz.paper .tag.ok { color: #137a52; }
.qtext.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 14px; }
.err-note { display: block; margin-top: 18px; }
.err-note textarea { width: 100%; background: var(--qopt); color: var(--qtext); border: 2px solid var(--qline); border-radius: 10px; padding: 12px; font-size: calc(var(--qfs) - 2px); line-height: 1.6; }
.err-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.errbook .stats { margin-top: 16px; }
@media (max-width: 640px) { .nav-links { gap: 12px; } }

/* Plano de estudos e mapa */
.print-only { display: none; }
.planpage .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 16px 0; }
.pl-days { display: grid; gap: 18px; margin-top: 18px; }
.pl-day { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--bg2); break-inside: avoid; }
.pl-day h2 { margin: 0 0 12px; font-size: 1.1em; }
.pl-day h2 span { background: var(--accent); color: var(--accent-ink); border-radius: 8px; padding: 2px 10px; margin-right: 6px; }
.pl-task { border-top: 1px solid var(--line); padding: 12px 0; }
.pl-task:first-of-type { border-top: 0; }
.pl-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; }
.pl-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0; }
.pl-links a { text-decoration: underline; }
.pl-q { margin: 6px 0 8px 18px; padding: 0; }
.pl-q li { margin: 4px 0; }
.pl-q small { opacity: .7; display: block; }
.pl-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sched { margin: 18px 0; }
.sched .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.sched .actions h2 { margin: 0; }
.sched-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.map-d { border: 1px solid var(--line); border-radius: 10px; margin: 10px 0; background: var(--bg2); }
.map-d summary { cursor: pointer; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.map-t { width: 100%; border-collapse: collapse; }
.map-t th, .map-t td { text-align: left; padding: 8px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.map-t tr.has-err td:first-child { color: var(--bad, #ff6b6b); font-weight: 600; }
.linkbtn { background: none; border: 0; text-decoration: underline; cursor: pointer; color: inherit; padding: 0 0 0 8px; }
@media print {
  .errbook.print-sched > *:not(.sched) { display: none !important; }
  nav, #nav, .nav, .no-print, .quiz-top, .qside, .toast, footer { display: none !important; }
  .print-only { display: block !important; }
  html, body, .page, .quiz, .quiz.paper { background: #fff !important; color: #000 !important; }
  .page { max-width: none !important; padding: 0 !important; margin: 0 !important; }
  .qcard, .pl-day, .map-d, .panel, .stat { background: #fff !important; color: #000 !important; border: 1px solid #999 !important; box-shadow: none !important; break-inside: avoid; }
  .map-d > *:not(summary) { display: block; }
  .opt { color: #000 !important; background: #fff !important; border: 1px solid #bbb !important; }
  .opt.right { border: 2px solid #000 !important; font-weight: 700; }
  a { color: #000 !important; text-decoration: none !important; }
  .track { border: 1px solid #666; background: #fff !important; } .track i { background: #444 !important; }
}

/* Mapa mental */
.lesson-page h1 { margin: 6px 0 12px; }
.crumbs { margin: 0; opacity: .8; }
.mm-head { display: flex; gap: 8px; align-items: center; margin-top: 18px; }
.mm-head h2 { margin: 0; }
.lg { display: inline-block; padding: 1px 9px; border-radius: 99px; font-size: .85em; }
.mm-scroll { overflow: auto; padding: 14px 4px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); margin-top: 10px; }
.mm { display: inline-block; min-width: 100%; }
.mm-item { display: flex; align-items: center; }
.mm-kids { margin-left: 30px; position: relative; display: flex; flex-direction: column; }
.mm-kids::before { content: ''; position: absolute; left: -30px; top: 50%; width: 30px; border-top: 2px solid var(--line); }
.mm-kid { position: relative; padding: 5px 0 5px 30px; }
.mm-kid::before { content: ''; position: absolute; left: 0; top: 50%; width: 30px; border-top: 2px solid var(--line); }
.mm-kid::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; border-left: 2px solid var(--line); }
.mm-kid:first-child::after { top: 50%; } .mm-kid:last-child::after { bottom: 50%; }
.mm-kid:only-child::after { display: none; }
.mm-item.closed > .mm-kids { display: none; }
.mm-box { display: block; text-align: left; max-width: 380px; min-width: 120px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: inherit; font: inherit; line-height: 1.35; position: relative; }
.mm-box.has { cursor: pointer; padding-right: 26px; }
.mm-caret { position: absolute; right: 9px; top: 50%; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(-45deg); transition: transform .15s; }
.mm-box[aria-expanded="true"] .mm-caret { transform: translateY(-70%) rotate(45deg); }
.mm-box.l0 { font-size: 1.1em; font-weight: 700; max-width: 300px; background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.mm-box.l1 { font-weight: 700; }
.mm-box.l3, .mm-box.k-ref { font-size: .88em; opacity: .85; }
.k-regra, .lg.k-regra { border-color: #4f8cff !important; } .lg.k-regra { background: #4f8cff33; }
.k-quadro { border-color: #3fb68b !important; } .lg.k-quadro { background: #3fb68b33; }
.k-peg { border-color: #f5a524 !important; } .lg.k-peg { background: #f5a52433; }
.k-mud { border-color: #c77dff !important; } .lg.k-mud { background: #c77dff33; }
.k-caiu { border-color: #ff6b6b !important; } .lg.k-caiu { background: #ff6b6b33; }
.k-dec, .k-pas { border-color: #29c4d6 !important; }
.mm-box.l1.k-regra { background: #4f8cff22; } .mm-box.l1.k-quadro { background: #3fb68b22; } .mm-box.l1.k-peg { background: #f5a52422; } .mm-box.l1.k-mud { background: #c77dff22; } .mm-box.l1.k-caiu { background: #ff6b6b22; }
@media print { .mm-scroll { overflow: visible; border: 0; background: #fff !important; } .mm-box { background: #fff !important; color: #000 !important; border: 1.5px solid #333 !important; } .mm-box.l0 { background: #ddd !important; } .mm-kids::before, .mm-kid::before { border-color: #333; } .mm-kid::after { border-color: #333; } .mm-caret { display: none; } .mm { zoom: .75; } }

/* Trilha de 90 dias */
.j-cta { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin: 18px clamp(14px, 4vw, 48px) 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(120deg, var(--bg2), color-mix(in srgb, var(--accent) 18%, var(--bg2))); color: inherit; text-decoration: none; }
.j-cta-t { display: grid; gap: 2px; } .j-cta-t small { opacity: .75; }
.jpage .eyebrow { margin: 0; letter-spacing: .08em; text-transform: uppercase; font-size: .8em; opacity: .75; }
.j-hero { margin: 8px 0 20px; } .j-hero h1 { margin: 4px 0 10px; font-size: clamp(1.7em, 4vw, 2.4em); } .j-hero .lead { max-width: 66ch; font-size: 1.08em; }
.btn.big { padding: 14px 24px; font-size: 1.05em; }
.j-phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 18px 0; }
.j-phases .panel h3 { margin: 0 0 2px; }
.j-top { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: flex-end; justify-content: space-between; }
.j-top h1 { margin: 2px 0; }
.j-total { min-width: 220px; display: grid; gap: 4px; }
.j-stats { margin: 16px 0; }
.stat small { font-size: .5em; opacity: .7; margin-left: 2px; }
.gauge { position: relative; height: 10px; border-radius: 99px; background: var(--line); margin-top: 8px; }
.gauge i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.gauge i.ok { background: #3fb68b; }
.gauge em { position: absolute; top: -4px; bottom: -4px; width: 3px; background: #fff; border-radius: 2px; opacity: .85; }
.j-day { border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); padding: 16px 18px; margin: 16px 0; }
.j-day h2 { margin: 0 0 4px; font-size: 1.15em; }
.j-day h2 span { background: var(--accent); color: var(--accent-ink); border-radius: 8px; padding: 2px 10px; margin-right: 6px; }
.jt { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.jt:first-of-type { border-top: 0; }
.jt-check { flex: none; width: 30px; height: 30px; border-radius: 8px; border: 2px solid var(--line); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 1em; font-weight: 700; }
.jt-check:hover:not(:disabled) { border-color: var(--accent); }
.jt.done .jt-check { background: #3fb68b; border-color: #3fb68b; }
.jt.done .jt-head b { text-decoration: line-through; opacity: .65; }
.jt-main { flex: 1; min-width: 0; }
.jt-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.jt-sub { margin: 4px 0; } .jt-rev { margin: 6px 0 4px 18px; padding: 0; } .jt-rev li { margin: 3px 0; }
.j-cal { margin: 22px 0; }
.cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px; max-width: 760px; }
.cal .cell { height: 38px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg2); color: inherit; cursor: pointer; font: inherit; font-size: .85em; }
.cal .cell.done { background: #3fb68b44; border-color: #3fb68b; }
.cal .cell.partial { background: #e6a23c44; border-color: #e6a23c; }
.cal .cell.missed { background: #ff6b6b33; border-color: #ff6b6b; }
.cal .cell.today { outline: 2px solid var(--accent); font-weight: 700; }
.cal .cell.mock { font-weight: 700; }
.cal .cell.sel { box-shadow: 0 0 0 2px #fff inset; }
.cal-legend .lg { margin-right: 8px; }
.lg.done { background: #3fb68b44; } .lg.partial { background: #e6a23c44; } .lg.missed { background: #ff6b6b33; } .lg.today { outline: 2px solid var(--accent); }
.j-res { margin: 22px 0; }

/* ---------- Navegação no celular e tablet: barra de abas fixa embaixo ---------- */
.sub { display: block; font-size: 11px; font-weight: 400; opacity: .7; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav { gap: 12px; }
  .nav-end { gap: 10px; }
  .search input, .search input:focus { width: 150px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: rgba(11,18,32,.98); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { display: grid; justify-items: center; gap: 3px; padding: 6px 2px; color: var(--muted); font-size: 11px; background: none; border: 0; border-radius: 8px; }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a.on, .tabbar button[aria-expanded="true"] { color: var(--accent); }
  .more-sheet { position: fixed; left: 8px; right: 8px; bottom: 74px; z-index: 46; display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; box-shadow: 0 -10px 40px rgba(0,0,0,.5); }
  .more-sheet[hidden] { display: none; }
  .more-sheet a, .more-sheet button { padding: 14px 12px; text-align: left; background: none; border: 0; border-radius: 6px; font-size: 16px; color: var(--text); }
  .more-sheet a:hover, .more-sheet button:hover { background: var(--surface2); }
  main { padding-bottom: 76px; }
}
@media (max-width: 560px) { .logo { font-size: 20px; } .search input, .search input:focus { width: 120px; } }
@media (max-width: 380px) { .logo { font-size: 18px; } .search input, .search input:focus { width: 96px; } }
/* nos players e telas sem barra principal, a barra de abas também some */
body.no-nav .tabbar { display: none; }

.seg-links a { background: var(--bg2); padding: 10px 16px; font-weight: 600; color: var(--text); white-space: nowrap; }
.seg-links a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.seg-links { max-width: 100%; overflow-x: auto; margin-bottom: 16px; }
.j-first { margin-top: 84px; }
.j-first + .hero { min-height: min(70vh, 620px); padding-top: 48px; }
.mentoria { display: grid; gap: 10px; align-content: start; }
.mentoria ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; list-style: disc; }
.mentoria .btn, .mentoria .pill { justify-self: start; margin-top: 6px; }
.mentoria.owned { border-color: var(--accent); }
.lead-sm { color: var(--muted); max-width: 60ch; }

/* ---- Diagnóstico gratuito e cadeados ---- */
.free-hero{padding:32px 0 8px}.free-hero h1{margin:4px 0 12px}.free-hero .lead{max-width:60ch;font-size:1.1rem}
.free-hero .actions{margin:20px 0 8px;display:flex;gap:12px;flex-wrap:wrap}.eyebrow{text-transform:uppercase;letter-spacing:.08em;font-size:.8rem;color:var(--gold,#d4a84b);margin:0}
.free-h{margin:32px 0 12px}
.lock-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.lock-card{display:flex;flex-direction:column;gap:6px;padding:16px;border:1px dashed rgba(255,255,255,.25);border-radius:12px;color:inherit;text-decoration:none;opacity:.85}
.lock-card:hover{opacity:1;border-color:var(--gold,#d4a84b)}.lock-ic{font-size:1.3rem}
.free-cta{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin:24px 0 8px;padding:18px;border-radius:12px;background:rgba(212,168,75,.12);border:1px solid rgba(212,168,75,.4)}
.free-cta div{display:flex;flex-direction:column;gap:2px}
.lock-banner{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:20px 0;padding:16px;border-radius:12px;background:rgba(212,168,75,.12);border:1px solid rgba(212,168,75,.4)}
.lock-banner p{margin:4px 0 0}.lock-banner div{flex:1;min-width:200px}
.ticks{list-style:none;padding:0;margin:0 0 12px}.ticks li{padding:6px 0 6px 26px;position:relative}.ticks li:before{content:"✓";position:absolute;left:0;color:var(--gold,#d4a84b)}
.nav-sub{background:var(--gold,#d4a84b);color:#111!important;border-radius:6px;padding:6px 12px;font-weight:600}
