:root {
  --bg: #0c0e14;
  --bg-2: #12151d;
  --surface: #181c26;
  --surface-2: #222734;
  --line: rgba(255, 255, 255, .09);
  --text: #f5f6f8;
  --muted: #a4aabb;
  --faint: #6f7689;
  --red: #ef4b4f;
  --red-deep: #c9353a;
  --blue: #3d6ff2;
  --yellow: #ffc83d;
  --green: #35c982;
  --radius: 10px;
  --gutter: clamp(16px, 4vw, 56px);
  --display: 'Fredoka', 'DM Sans', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
main { min-height: 100vh; outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  padding: 14px var(--gutter);
  background: linear-gradient(180deg, rgba(8, 9, 13, .85), rgba(8, 9, 13, 0));
  transition: background .3s ease;
}
.topbar.scrolled { background: rgba(10, 12, 17, .96); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--red); display: grid; place-items: center; }
.brand-mark svg { width: 24px; height: 24px; }
.brand-mark path { fill: #fff; }
.brand-mark circle { fill: var(--yellow); }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word strong { font-family: var(--display); font-size: 19px; font-weight: 700; }
.brand-word small { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.topnav { display: flex; gap: 22px; }
.topnav a { color: #d6d9e1; font-size: 15px; font-weight: 500; transition: color .2s; }
.topnav a:hover { color: #fff; }
.topnav a.active { color: #fff; font-weight: 700; }
.topbar-progress { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ring {
  --p: 0; width: 38px; height: 38px; border-radius: 50%;
  background: conic-gradient(var(--green) calc(var(--p) * 1%), rgba(255,255,255,.14) 0);
  display: grid; place-items: center;
}
.ring b { width: 30px; height: 30px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.ring-copy { display: flex; flex-direction: column; line-height: 1.15; }
.ring-copy strong { font-size: 13px; }
.ring-copy small { font-size: 11px; color: var(--muted); }
body.player-mode .topbar, body.player-mode .mobile-nav { display: none; }

/* ---------- Botoes ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 8px; border: 0;
  font-size: 16px; font-weight: 700; white-space: nowrap;
  transition: transform .15s ease, background .2s ease, opacity .2s;
}
.btn svg { font-size: 22px; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-play { background: #fff; color: #0c0e14; }
.btn-play:hover { background: #e3e5ea; }
.btn-ghost { background: rgba(109, 115, 133, .45); color: #fff; backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(109, 115, 133, .65); }
.btn-link { background: transparent; color: var(--muted); padding: 0 8px; }
.btn-link:hover { color: #fff; }
.btn.speaking, .icon-btn.speaking { box-shadow: 0 0 0 4px rgba(239, 75, 79, .45); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid rgba(255,255,255,.5); background: rgba(20, 22, 30, .6); font-size: 18px;
  transition: border-color .2s, background .2s, transform .15s;
}
.icon-btn:hover { border-color: #fff; }
.icon-btn:active { transform: scale(.94); }
.icon-btn.solid { background: #fff; color: #0c0e14; border-color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(12,14,20,.92) 16%, rgba(12,14,20,.35) 42%, rgba(12,14,20,0) 62%),
    linear-gradient(90deg, rgba(12,14,20,.55) 0%, rgba(12,14,20,0) 45%);
}
.hero-content { position: relative; z-index: 1; padding: 0 var(--gutter) clamp(40px, 7vh, 80px); max-width: 720px; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #dfe2ea; font-weight: 600; }
.hero-tag b { color: var(--red); font-weight: 800; }
.hero-desc { font-size: clamp(16px, 1.5vw, 19px); color: #e7e9ef; margin: 12px 0 14px; text-wrap: pretty; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; color: #cfd3dc; margin-bottom: 22px; }
.hero-meta .hl { color: var(--green); font-weight: 700; }
.hero-meta .pill { border: 1px solid rgba(255,255,255,.45); padding: 0 7px; border-radius: 4px; font-size: 12px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Fileiras ---------- */
.rows { position: relative; z-index: 2; padding-bottom: 40px; }
.rows-tight { margin-top: 12px; }
.row { margin: 0 0 clamp(28px, 4vw, 44px); }
.row-head { display: flex; align-items: baseline; gap: 12px; padding: 0 var(--gutter); margin-bottom: 12px; }
.row-head h2 { font-size: clamp(19px, 2vw, 24px); }
.row-head span { color: var(--faint); font-size: 14px; }
.row-wrap { position: relative; }
.row-track {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px var(--gutter) 14px; scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.row-track::-webkit-scrollbar { display: none; }
.row-track > * { scroll-snap-align: start; flex: none; }
.row-arrow {
  position: absolute; top: 6px; bottom: 14px; z-index: 3; width: calc(var(--gutter) - 4px); min-width: 40px;
  border: 0; background: rgba(8, 9, 13, .6); display: grid; place-items: center; font-size: 28px;
  opacity: 0; transition: opacity .2s, background .2s;
}
.row-arrow.left { left: 0; transform: scaleX(-1); }
.row-arrow.right { right: 0; }
.row-wrap:hover .row-arrow { opacity: 1; }
.row-arrow:hover { background: rgba(8, 9, 13, .85); }
@media (hover: none) { .row-arrow { display: none; } }

/* Posters com numero (estilo top 10) */
.poster-card { display: flex; align-items: flex-end; width: clamp(200px, 22vw, 290px); }
.rank {
  font-family: var(--display); font-weight: 700; font-size: clamp(120px, 12vw, 170px); line-height: .78;
  color: var(--bg); -webkit-text-stroke: 3px #596075; margin-right: -18px; letter-spacing: -.06em; flex: 1; text-align: right;
  position: relative; z-index: 0;
}
.poster {
  position: relative; z-index: 1; flex: 0 0 72%; aspect-ratio: 4 / 5.4; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); box-shadow: 0 10px 30px rgba(0,0,0,.45);
  transition: transform .25s ease, box-shadow .25s ease;
}
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,9,13,.92) 0%, rgba(8,9,13,.1) 45%, transparent 60%); }
.poster-copy { position: absolute; left: 12px; right: 12px; bottom: 14px; display: flex; flex-direction: column; }
.poster-copy small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); font-weight: 700; }
.poster-copy strong { font-family: var(--display); font-size: 20px; font-weight: 600; line-height: 1.1; }
.poster-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.25); }
.poster-bar i, .wide-bar i, .title-progress i { display: block; height: 100%; background: var(--red); }
.poster-badge { position: absolute; top: 10px; right: 10px; background: var(--green); color: #06170e; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 4px; letter-spacing: .04em; text-transform: uppercase; }
.poster-card:hover .poster, .poster-card:focus-visible .poster { transform: scale(1.04); box-shadow: 0 16px 40px rgba(0,0,0,.6); }

/* Cartao largo (continuar) */
.wide-card { display: block; width: clamp(260px, 26vw, 360px); border-radius: var(--radius); overflow: hidden; background: var(--surface); transition: transform .25s ease; }
.wide-card:hover { transform: translateY(-3px); }
.wide-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.wide-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.wide-play {
  position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-size: 22px; background: rgba(12,14,20,.6); border: 2px solid #fff;
  transition: background .2s;
}
.wide-card:hover .wide-play { background: var(--red); border-color: var(--red); }
.wide-bar { display: block; height: 4px; background: rgba(255,255,255,.18); }
.wide-copy { display: flex; flex-direction: column; padding: 12px 14px 14px; }
.wide-copy strong { font-size: 16px; }
.wide-copy small { color: var(--muted); font-size: 13px; }

/* Cartao de frase */
.phrase-card {
  width: clamp(240px, 22vw, 300px); padding: 18px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.phrase-tag { font-size: 11px; letter-spacing: .16em; color: var(--yellow); font-weight: 700; }
.phrase-en { font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.15; margin: 10px 0 6px; }
.phrase-pt { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.phrase-actions { margin-top: auto; display: flex; align-items: center; gap: 8px; }
.phrase-link { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 600; }
.phrase-link:hover { color: #fff; }

/* Cartao de jogo */
.game-card {
  position: relative; width: clamp(220px, 20vw, 270px); min-height: 190px; padding: 18px; border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 6px; overflow: hidden; transition: transform .25s ease;
}
.game-card:hover { transform: translateY(-3px); }
.game-card strong { font-family: var(--display); font-size: 21px; font-weight: 600; }
.game-card small { color: rgba(255,255,255,.82); font-size: 13px; line-height: 1.4; }
.game-time { margin-top: auto; font-size: 12px; font-weight: 700; opacity: .8; }
.game-emoji { font-size: 34px; line-height: 1; }
.tone-blue { background: linear-gradient(145deg, #2f5fe0, #1c2f73); }
.tone-red { background: linear-gradient(145deg, #e0474b, #74202a); }
.tone-yellow { background: linear-gradient(145deg, #d99a14, #6e4a07); }
.tone-green { background: linear-gradient(145deg, #23a86a, #0f4f33); }

/* Promo do tradutor */
.promo {
  margin: 0 var(--gutter) clamp(32px, 4vw, 48px); padding: clamp(22px, 3.5vw, 40px);
  border-radius: 16px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(239,75,79,.35), transparent 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(61,111,242,.35), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
}
.kicker { font-size: 12px; letter-spacing: .16em; color: var(--yellow); font-weight: 800; }
.promo h2 { font-size: clamp(24px, 3vw, 36px); margin: 8px 0 10px; }
.promo p { color: #d4d8e1; margin: 0 0 20px; max-width: 46ch; }
.promo-demo {
  background: rgba(8,9,13,.55); border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.demo-pt { color: var(--muted); font-size: 15px; }
.demo-arrow { color: var(--faint); }
.demo-en { font-family: var(--display); font-size: 24px; font-weight: 600; }
.demo-btns { display: flex; gap: 8px; margin-top: 8px; }
.demo-btns i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.5); font-size: 16px; }
.demo-btns i:first-child { background: #fff; color: var(--bg); border-color: #fff; }

/* ---------- Pagina do modulo ---------- */
.title-hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; }
.title-media { position: absolute; inset: 0; overflow: hidden; }
.title-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.title-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(12,14,20,.85) 22%, rgba(12,14,20,.2) 60%, rgba(12,14,20,.35) 100%),
    linear-gradient(90deg, rgba(12,14,20,.8) 0%, rgba(12,14,20,0) 60%);
}
.back-btn {
  position: absolute; top: 76px; left: var(--gutter); z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-size: 22px; background: rgba(12,14,20,.55); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(6px); transition: background .2s;
}
.back-btn:hover { background: rgba(12,14,20,.85); }
.title-content { position: relative; z-index: 1; padding: 0 var(--gutter) 36px; max-width: 760px; }
.title-content h1 { font-size: clamp(40px, 6vw, 72px); margin: 6px 0 12px; }
.title-progress { height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); margin-top: 22px; max-width: 360px; overflow: hidden; }

.episodes { padding: 8px var(--gutter) 36px; max-width: 1100px; }
.episodes-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.episodes-head h2 { font-size: 26px; }
.episodes-head span { color: var(--muted); font-size: 14px; }
.episode-list { list-style: none; margin: 0; padding: 0; }
.episode {
  display: grid; grid-template-columns: 40px 180px 1fr; gap: 20px; align-items: center;
  padding: 18px 16px; border-bottom: 1px solid var(--line); border-radius: 8px; transition: background .2s;
}
.episode:hover { background: var(--surface); }
.ep-num { font-family: var(--display); font-size: 26px; color: var(--muted); text-align: center; }
.ep-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }
.ep-play {
  position: absolute; inset: 0; margin: auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-size: 18px; background: rgba(12,14,20,.6); border: 2px solid #fff; opacity: 0; transition: opacity .2s;
}
.episode:hover .ep-play, .episode.done .ep-play { opacity: 1; }
.episode.done .ep-play { background: var(--green); border-color: var(--green); color: #06170e; }
.ep-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ep-title { display: flex; justify-content: space-between; gap: 12px; }
.ep-title strong { font-size: 16px; }
.ep-title small { color: var(--muted); font-size: 14px; flex: none; }
.ep-en { font-family: var(--display); font-size: 19px; font-weight: 500; color: #fff; }
.ep-pt { color: var(--muted); font-size: 14px; }

/* ---------- Player da aula ---------- */
.player {
  position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  padding: 20px var(--gutter) max(24px, env(safe-area-inset-bottom)); overflow: hidden;
}
.player-bg { position: absolute; inset: 0; z-index: 0; }
.player-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(22px) brightness(.35) saturate(1.1); transform: scale(1.15); }
.player-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 70% at 50% 45%, rgba(12,14,20,.2), rgba(12,14,20,.85)); }
.player > *:not(.player-bg) { position: relative; z-index: 1; }
.player-top { display: flex; align-items: center; gap: 14px; }
.player-top .back-btn { position: static; }
.player-title { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.player-title small { color: var(--muted); font-size: 13px; }
.player-title strong { font-size: 16px; }
.segments { display: flex; gap: 6px; margin: 18px 0 0; }
.segments span { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.2); }
.segments span.done { background: var(--green); }
.segments span.current { background: #fff; }
.player-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 0; }
.stage-kicker { font-size: 12px; letter-spacing: .2em; color: var(--yellow); font-weight: 800; }
.stage-en { font-family: var(--display); font-weight: 600; font-size: clamp(38px, 7vw, 84px); line-height: 1.05; margin: 16px 0 12px; max-width: 16ch; text-wrap: balance; }
.stage-pt { font-size: clamp(17px, 2vw, 22px); color: #cdd1db; margin: 0 0 26px; }
.stage-tip {
  display: flex; flex-direction: column; gap: 2px; max-width: 480px; margin: 0; padding: 12px 18px;
  background: rgba(255,255,255,.07); border: 1px solid var(--line); border-radius: 12px; font-size: 15px; color: #e3e6ed;
}
.stage-tip b { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.player-controls { display: flex; justify-content: center; align-items: center; gap: clamp(8px, 3vw, 28px); }
.ctrl {
  display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 64px;
  background: none; border: 0; padding: 8px; font-size: 26px; color: #e9ebf0; border-radius: 12px; transition: color .2s, background .2s;
}
.ctrl span { font-size: 12px; font-weight: 600; color: var(--muted); }
.ctrl:hover { background: rgba(255,255,255,.08); }
.ctrl.on { color: var(--green); }
.ctrl.on span { color: var(--green); }
.ctrl.speaking { color: var(--red); }
.ctrl-main {
  width: 84px; height: 84px; min-width: 0; border-radius: 50%; justify-content: center; font-size: 34px;
  background: #fff; color: var(--bg); box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.ctrl-main:hover { background: #e6e8ee; }
.ctrl-main.speaking { background: var(--red); color: #fff; box-shadow: 0 0 0 8px rgba(239,75,79,.3); }
.player-hint { text-align: center; color: var(--faint); font-size: 12px; margin: 14px 0 0; }
@media (hover: none) { .player-hint { display: none; } }

.player-end .end-card { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 620px; margin: 0 auto; padding: 32px 0; }
.end-card h1 { font-size: clamp(28px, 4vw, 44px); margin: 12px 0; }
.end-card p { color: #d0d4dd; margin: 0 0 24px; }
.up-next { margin-bottom: 24px; }
.up-next small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .12em; }
.up-next .wide-card { width: 100%; max-width: 420px; }

/* ---------- Paginas internas ---------- */
.page { padding: 104px var(--gutter) 60px; max-width: 980px; margin: 0 auto; }
.page-head h1 { font-size: clamp(32px, 5vw, 52px); margin: 8px 0 10px; }
.page-head p { color: #cdd1db; font-size: 17px; margin: 0 0 24px; max-width: 58ch; }
.page.empty { text-align: center; padding-top: 30vh; }
.page.empty p { color: var(--muted); }

/* Jogos */
.game-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) 20px; padding: 0 var(--gutter); }
.game-tab {
  flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 15px; transition: background .2s;
}
.game-tab:hover { background: var(--surface-2); }
.game-tab.active { background: #fff; color: var(--bg); }
.game-stage { border-radius: 18px; padding: clamp(22px, 4vw, 40px); display: flex; flex-direction: column; align-items: flex-start; }
.game-topline { width: 100%; display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .14em; font-weight: 800; opacity: .85; }
.game-emoji.big { font-size: 56px; margin: 18px 0 6px; }
.game-rule { color: rgba(255,255,255,.85); margin: 0 0 18px; }
.game-prompt { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 5vw, 54px); line-height: 1.05; margin: 0 0 8px; }
.game-translation { color: rgba(255,255,255,.8); font-size: 18px; margin: 0 0 26px; }
.game-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.game-stage .btn-ghost { background: rgba(0,0,0,.25); }
.game-stage .btn-ghost:hover { background: rgba(0,0,0,.4); }

/* Tradutor */
.translate-form {
  display: flex; gap: 10px; align-items: stretch; padding: 10px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); transition: border-color .2s;
}
.translate-form:focus-within { border-color: rgba(255,255,255,.4); }
.translate-form textarea {
  flex: 1; resize: none; border: 0; outline: none; background: transparent; color: var(--text);
  font: 500 20px/1.35 var(--body); padding: 10px 8px; min-height: 52px;
}
.translate-form textarea::placeholder { color: var(--faint); }
.translate-form .btn { align-self: flex-end; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: #d3d7e0; font-size: 14px; transition: background .2s, color .2s; }
.chip:hover { background: var(--surface-2); color: #fff; }
.model-status { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--faint); margin: 10px 0 18px; }
.model-status.loading { color: #d6d9e1; }
.model-status.ready { color: var(--green); }
.model-status.error { color: #ff8e91; }
.model-status .bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; max-width: 420px; }
.model-status .bar i { display: block; height: 100%; background: var(--red); transition: width .3s; }
.model-status small { color: var(--faint); }
.result-card {
  padding: clamp(20px, 3vw, 30px); border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
}
.result-card.teacher { border-left-color: var(--green); }
.result-card.error { border-left-color: var(--red); color: #ffc2c3; }
.result-badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9fb7ff; }
.result-card.teacher .result-badge { color: var(--green); }
.result-en { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 4.5vw, 46px); line-height: 1.08; margin: 10px 0 6px; }
.result-pt { color: var(--muted); margin: 0 0 20px; font-size: 16px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.result-note { color: var(--faint); font-size: 13px; margin: 14px 0 0; }
.skeleton span { display: block; height: 22px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), #2c3243, var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.skeleton span:first-child { height: 40px; width: 70%; margin-bottom: 12px; }
.skeleton span:last-child { width: 40%; }
@keyframes shimmer { to { background-position: -200% 0; } }
#similar h2, .history h2 { font-size: 18px; margin: 30px 0 12px; color: #dfe2ea; }
.similar-list, .history-list { display: flex; flex-direction: column; gap: 8px; list-style: none; margin: 0; padding: 0; }
.similar-item, .history-list li {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line);
}
.similar-item span, .history-list li span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.similar-item strong, .history-list strong { font-size: 16px; }
.similar-item small, .history-list small { color: var(--muted); font-size: 13px; }
.similar-item a { color: var(--muted); font-size: 13px; font-weight: 600; }
.similar-item a:hover { color: #fff; }

/* ---------- Rodape, toast e nav mobile ---------- */
.footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px var(--gutter) 40px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
.footer p { margin: 0; }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #fff; color: var(--bg); padding: 12px 18px; border-radius: 10px; font-weight: 600; font-size: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.4); transition: opacity .25s, transform .25s; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.mobile-nav { display: none; }

@media (max-width: 760px) {
  .topnav { display: none; }
  .ring-copy { display: none; }
  .topbar { padding-top: max(12px, env(safe-area-inset-top)); }
  .mobile-nav {
    position: fixed; inset: auto 0 0 0; z-index: 50; display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 8px 8px max(8px, env(safe-area-inset-bottom)); background: rgba(10,12,17,.97); border-top: 1px solid var(--line);
  }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--faint); padding: 4px; }
  .mobile-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-nav a.active { color: #fff; }
  main { padding-bottom: 72px; }
  body.player-mode main { padding-bottom: 0; }
  .toast { bottom: 90px; }

  .hero { min-height: auto; flex-direction: column; align-items: stretch; }
  .hero-media { position: relative; aspect-ratio: 16 / 10; }
  .hero-media::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(12,14,20,0) 40%); }
  .hero-content { padding-top: 4px; }
  .hero-actions .btn { flex: 1; padding: 0 14px; }

  .title-hero { min-height: auto; flex-direction: column; align-items: stretch; }
  .title-media { position: relative; aspect-ratio: 4 / 3; }
  .title-media::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(12,14,20,0) 45%), linear-gradient(180deg, rgba(12,14,20,.5), transparent 30%); }
  .back-btn { top: max(66px, calc(env(safe-area-inset-top) + 56px)); }
  .title-content { padding-top: 0; }
  .title-content .btn { width: 100%; }

  .episode { grid-template-columns: 120px 1fr; gap: 14px; padding: 14px 0; }
  .ep-num { display: none; }
  .ep-en { font-size: 17px; }
  .ep-title small { display: none; }

  .promo { grid-template-columns: 1fr; }
  .promo .btn { width: 100%; }
  .rank { font-size: 110px; -webkit-text-stroke-width: 2px; margin-right: -14px; }
  .poster-card { width: 190px; }
  .poster-copy strong { font-size: 18px; }

  .page { padding-top: 84px; }
  .translate-form { flex-direction: column; }
  .translate-form .btn { width: 100%; }
  .game-actions .btn { flex: 1 1 auto; }

  .stage-en { font-size: clamp(34px, 10vw, 48px); }
  .ctrl { min-width: 52px; font-size: 22px; padding: 6px 2px; }
  .ctrl-main { width: 72px; height: 72px; font-size: 30px; }
  .footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.emoji-icon { font-size: .95em; line-height: 1; font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; }
.ep-thumb img, .wide-media img { object-position: center 22%; }
.ctrl .emoji-icon { font-size: 1em; color: inherit; }
