/* English Made Easy — design system
   Keeps the original identity (navy/mid-blue, Nunito, rounded cards),
   modernized: flat card-based navigation, real mobile/tablet/desktop breakpoints. */

:root {
  --navy: #18395b;
  --navy-deep: #102640;
  --blue: #4889c8;
  --blue-light: #eaf2fa;
  --ink: #17232e;
  --ink-muted: #5b6b7a;
  --surface: #ffffff;
  --bg: #f4f7fa;
  --line: #e1e8ef;
  --accent-red: #e2384a;
  --lock: #8a97a3;
  --radius: 16px;
  --shadow: 0 6px 20px rgba(16, 38, 64, 0.08);
  --shadow-hover: 0 12px 28px rgba(16, 38, 64, 0.16);
  --header-h: 64px;
  --max-w: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 10px 0;
}
/* Logo centered on its own row, avatar (photo) on the left + logout on the
   right on the row below. align-items must stay "stretch" (not "center")
   so .header-row actually spans the full width — otherwise it shrinks to
   fit its own content and "space-between" has no room to push the two
   apart, leaving them bunched in the middle. */
.header-grid {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-img {
  height: 72px;
  width: auto;
  display: block;
}

.btn-sair {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--navy);
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.btn-sair:hover { background: #dbe9f7; }

.avatar-wrap {
  flex: none;
  position: relative;
  display: block;
  cursor: pointer;
}
.avatar-wrap::after {
  content: "📷";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface);
}

.avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--navy);
  border: 2px solid var(--blue-light);
}

/* ── Fixed bottom bar (mobile-app style) ────────────────────── */
body.has-bottom-bar { padding-bottom: 82px; }
.bottom-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: flex;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 16px rgba(16,38,64,0.06);
}
.bottom-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  border-radius: 12px;
  color: var(--ink-muted);
}
.bottom-item .bottom-icon { font-size: 22px; line-height: 1; }
.bottom-item .bottom-label { font-size: 11px; font-weight: 700; }
.bottom-item.active, .bottom-item:hover { color: var(--navy); background: var(--blue-light); }
button.bottom-item { background: none; border: none; font-family: inherit; cursor: pointer; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 60%, var(--navy-deep) 100%);
  color: #fff;
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,0.10), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255,255,255,0.08), transparent 40%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-eyebrow {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bcd6f0;
  margin: 0 0 12px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 14px;
  text-wrap: balance;
  max-width: 16ch;
}
.hero p {
  font-size: 17px;
  color: #dbe9f7;
  max-width: 46ch;
  margin: 0 0 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-primary { background: var(--accent-red); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(226,56,74,.35); }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { background: rgba(255,255,255,0.2); }
.btn-block { width: 100%; justify-content: center; }
.btn-secondary { background: var(--blue-light); color: var(--navy); }
.btn-secondary:hover { background: #dbe9f7; }

/* ── Section / cards grid ──────────────────────────────── */
.section { padding: 48px 0; }
.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 6px;
}
.section-sub {
  color: var(--ink-muted);
  margin: 0 0 24px;
  font-size: 15px;
}

/* Lesson/item card list: full-width, stacked one under the other (not a grid) */
.card-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
}

.card {
  border-radius: 18px;
  box-shadow: 0 6px 16px rgba(16,38,64,0.14);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  position: relative;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% -10%, rgba(255,255,255,0.16), transparent 55%);
  pointer-events: none;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(16,38,64,0.2); }
/* Thumbnail + badges travel together as one flex item, so the badges
   overlap the image corner instead of eating into the text column. */
.card .thumb-wrap {
  order: 1;
  flex: none;
  position: relative;
}
.card .thumb {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  background: rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  /* Every generated badge/content image is a 1024x1024 square — matching
     the thumb's own aspect ratio means object-fit:cover shows the whole
     image with zero cropping, instead of slicing off the top/bottom of a
     square photo forced into a landscape box. */
  object-fit: cover;
}
/* order 2 = body, order 4 = arrow (::after); same width for every card,
   text truncates with "…" instead of wrapping and changing the card's
   height based on the title length. */
.card .body {
  order: 2;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.card h3 {
  font-size: 19px;
  margin: 0;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .meta {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Badges (lock/completed) float over the thumbnail corner, outside the
   flex flow — so they never push the thumbnail/text or change the card
   size, and never compete with the title for width. */
.card-badges {
  position: absolute;
  top: -6px;
  right: -6px;
  display: flex;
  gap: 4px;
  z-index: 2;
}
.card-badges:empty { display: none; }
.card .lock-badge, .card .check-badge {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  border: 2px solid var(--surface);
}
.card .lock-badge { background: #566573; color: #fff; }
.card .check-badge { background: #1c7d4f; color: #fff; font-size: 13px; font-weight: 800; }
.card::after {
  content: "›";
  order: 4;
  flex: none;
  font-size: 24px;
  font-weight: 800;
  color: rgba(255,255,255,0.85);
}
.card.locked { opacity: .75; cursor: not-allowed; }

/* ── Section/module tiles (lessons.html, module list) ────────────────
   Photo fills the whole card (object-fit:cover). The tile's aspect
   ratio (6:5) is close to the source photos' own ratio, so cover barely
   crops anything — capping the tile at phone width keeps that ratio
   true regardless of browser size. Name sits over the photo on a scrim
   tinted with the section's own dark color (not flat black), with a
   small accent bar in the section's light color for a bit of brand
   identity and emphasis. */
.tile-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 240px;
  margin: 0 auto;
}
.tile {
  position: relative;
  display: block;
  aspect-ratio: 6 / 5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(16,38,64,0.18);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tile:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(16,38,64,0.24); }
.tile-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: rgba(255,255,255,0.9);
}
.tile-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-scrim { position: absolute; inset: 0; pointer-events: none; }
/* Shows automatically once every lesson inside the module/section is
   completed. While it isn't, .tile-progress shows how far along the
   student is instead, so the tile always gives some status at a glance. */
.tile-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #1c7d4f;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 800;
  border: 2px solid var(--surface);
  z-index: 2;
}
.tile-progress {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15,23,32,0.55);
  backdrop-filter: blur(2px);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border: 2px solid var(--surface);
  z-index: 2;
}
.tile-cap {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
}
.tile-accent {
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  margin-bottom: 9px;
}
.tile-cap h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

/* ── Forms ──────────────────────────────────────────────── */
.auth-screen {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 60%, var(--navy-deep) 100%);
  padding: 32px 16px;
}
.auth-back {
  position: absolute;
  top: 20px;
  left: 20px;
  color: #dbe9f7;
  font-size: 14px;
  font-weight: 700;
}
.auth-back:hover { color: #fff; }
.form-logo {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 0 auto 24px;
}
.form-shell {
  max-width: 420px;
  width: 100%;
  margin: 48px auto;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
}
.auth-screen .form-shell { margin: 0; }
.form-shell h1 { font-size: 22px; margin: 0 0 6px; color: var(--navy); }
.form-shell .sub { color: var(--ink-muted); font-size: 14px; margin: 0 0 24px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.field input, .field select {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  font-size: 15px;
  font-family: inherit;
  background: var(--bg);
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--surface);
}
.form-msg { font-size: 13.5px; margin: 10px 0 0; min-height: 18px; }
.form-msg.err { color: var(--accent-red); }
.form-msg.ok { color: #1c7d4f; }
.form-foot { margin-top: 18px; font-size: 14px; color: var(--ink-muted); text-align: center; }

/* ── Admin table ────────────────────────────────────────── */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.admin-table th, .admin-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.admin-table th { color: var(--ink-muted); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.admin-table tr:last-child td { border-bottom: none; }
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.pill.ativo { background: #e4f6ec; color: #1c7d4f; }
.pill.inativo { background: #f6e4e4; color: #b5333f; }
.table-wrap { overflow-x: auto; }
.icon-action {
  border: none; background: none; cursor: pointer;
  color: var(--ink-muted); font-size: 15px; padding: 4px 8px;
}
.icon-action:hover { color: var(--accent-red); }

/* ── Player page ────────────────────────────────────────── */
.player-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}
.player-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.player-frame iframe, .player-frame audio {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}
.player-frame.audio {
  padding-top: 0;
  height: auto;
  background: var(--navy);
  display: flex;
  align-items: center;
  padding: 22px 20px;
}
.player-frame.audio audio {
  position: static;
  width: 100%;
  height: 46px;
  border-radius: 999px;
  background: var(--surface);
}
.player-title { font-size: 22px; font-weight: 800; color: var(--navy); margin: 20px 0 4px; }
.player-meta { color: var(--ink-muted); font-size: 14px; margin-bottom: 14px; }

.lesson-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--navy);
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
}
.lesson-check input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: #1c7d4f;
  cursor: pointer;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--navy);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 18px;
}
.back-btn:hover { background: #dbe9f7; }

.lesson-nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-light);
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
  box-shadow: var(--shadow);
  opacity: 0.9;
}
.lesson-nav-arrow:hover { background: #dbe9f7; opacity: 1; }
.lesson-nav-arrow.left { left: 10px; }
.lesson-nav-arrow.right { right: 10px; }
/* .player-wrap tops out at 900px wide, so above ~1040px viewport there's
   always 70px+ of empty margin on each side — plenty of room for these
   without ever sitting on top of the video or activity cards. Below that,
   the margin shrinks until the arrow overlaps real content (confirmed: a
   precise click on the arrow itself always works, but a near-miss on a
   narrow phone lands on the video/card underneath instead). Touch devices
   already have swipe, and keyboard users already have Arrow keys, so
   hiding the redundant on-screen button here removes the mis-tap risk
   instead of trying to carve out a content gutter for it. */
@media (max-width: 1040px) {
  .lesson-nav-arrow { display: none; }
}

.locked-state {
  max-width: 480px;
  margin: 64px auto;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 28px;
}
.locked-state .icon { font-size: 34px; color: var(--lock); margin-bottom: 12px; }
.locked-state h2 { color: var(--navy); margin: 0 0 8px; }
.locked-state p { color: var(--ink-muted); margin: 0 0 22px; }

/* ── Progress page ──────────────────────────────────────────── */
.progress-profile { text-align: center; margin: 8px 0 26px; }
.progress-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  color: var(--navy);
  border: 3px solid var(--blue-light);
  margin: 0 auto 14px;
}
.progress-nome { font-size: 22px; font-weight: 800; color: var(--navy); margin: 0; }

/* Ring: plain SVG circle, stroke-dashoffset animates the fill in as a
   percentage of the circumference — no chart library needed for one value. */
.progress-ring-card {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 0 auto 18px;
}
.progress-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.progress-ring-track { fill: none; stroke: var(--blue-light); stroke-width: 12; }
.progress-ring-fill {
  fill: none;
  stroke: var(--navy);
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset .5s ease;
}
.progress-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.progress-ring-label span:first-child { font-size: 30px; font-weight: 800; color: var(--navy); }
.progress-ring-sub { font-size: 12.5px; color: var(--ink-muted); margin-top: 2px; }

.progress-stars {
  text-align: center;
  font-size: 24px;
  letter-spacing: 3px;
  margin-bottom: 22px;
}
.progress-stars:empty { display: none; }
.progress-stars-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: normal;
  color: var(--ink-muted);
  margin-top: 4px;
}

.progress-group-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin: 18px 0 10px;
}
.progress-group-title:first-child { margin-top: 0; }
.progress-note { font-size: 12.5px; color: var(--ink-muted); margin: -6px 0 10px; }

.progress-bar { height: 10px; border-radius: 999px; background: var(--blue-light); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; transition: width .3s ease; }

.progress-section-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.progress-section-row .icon { font-size: 22px; flex: none; }
.progress-section-row .module-thumb {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
}
.progress-section-row .module-thumb img { width: 100%; height: 100%; object-fit: cover; }
.progress-section-row .module-thumb-star {
  position: absolute;
  bottom: -3px;
  right: -3px;
  font-size: 13px;
  filter: drop-shadow(0 0 2px rgba(0,0,0,.5));
}
.progress-section-row .info { flex: 1; min-width: 0; }
.progress-section-row .info h4 { margin: 0 0 6px; font-size: 14.5px; font-weight: 800; color: var(--navy); }
.progress-section-row .frac { flex: none; font-size: 13px; font-weight: 700; color: var(--ink-muted); }

.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.stat-tile {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px 8px;
  text-align: center;
}
.stat-value { display: block; font-size: 20px; font-weight: 800; color: var(--navy); }
.stat-label { display: block; font-size: 11px; font-weight: 700; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .03em; margin-top: 2px; }

/* ── Lesson activities (Video Classes) ──────────────────────── */
.activity-group { margin: 30px 0 0; }
.activity-group h2 {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 620px) { .mini-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .mini-grid { grid-template-columns: repeat(4, 1fr); } }
.mini-card {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.mini-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.mini-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--blue-light); }
.mini-card .mini-body { padding: 10px 12px; }
.mini-card h4 { margin: 0; font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.mini-card.pending { opacity: .6; cursor: default; }
.mini-pending-tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.mini-score-tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
  color: #fff;
}
.mini-score-tag.pass { background: #1c7d4f; }
.mini-score-tag.fail { background: var(--accent-red); }

/* ── Interactive flashcards (one card at a time) ─────────────────── */
.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.carousel-card {
  width: 180px;
  height: 180px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.carousel-card.wide { width: 260px; height: 110px; }
.carousel-card.grande { width: 220px; height: 280px; }
.carousel-card.texto {
  width: auto;
  height: auto;
  min-width: 220px;
  max-width: 300px;
  min-height: 140px;
}
.carousel-card.detalhado {
  width: auto;
  height: auto;
  min-width: 260px;
  max-width: 340px;
  min-height: 220px;
  padding: 22px;
}
.pv-card { width: 100%; }
.pv-label {
  margin: 10px 0 2px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--blue);
}
.pv-label:first-child { margin-top: 0; }
.pv-value {
  margin: 0;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}
.pv-example {
  margin: 4px 0 0;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  font-style: normal;
  color: var(--navy);
  background: var(--blue-light);
  border-radius: 12px;
  padding: 8px 12px;
}
.pv-label-grande {
  margin: 10px 0 6px;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--blue);
}
.pv-label-grande:first-child { margin-top: 0; }
.pv-example-negrito {
  margin: 4px 0 0;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  font-style: normal;
  color: var(--navy);
  background: var(--blue-light);
  border-radius: 12px;
  padding: 8px 12px;
}
.carousel-card img { max-width: 100%; max-height: 100%; object-fit: contain; }
.carousel-card:hover { transform: scale(1.03); box-shadow: var(--shadow-hover); }
.carousel-card:active { transform: scale(0.98); }
.carousel-card-frase {
  margin: 0;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
  white-space: pre-line;
  background: var(--blue-light);
  border-radius: 12px;
  padding: 10px 14px;
}
.pronunciation-guide {
  max-width: 340px;
  margin: 0 auto 14px;
  padding: 14px 16px;
  background: var(--blue-light);
  border-radius: 16px;
}
.pronunciation-images {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 10px;
}
.pronunciation-images img {
  height: 90px;
  width: auto;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}
.pronunciation-steps {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  line-height: 1.5;
}
.carousel-btn {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--blue-light);
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}
.carousel-btn:hover { background: #dbe9f7; }
.carousel-btn.small { width: 32px; height: 32px; font-size: 14px; }
.carousel-counter {
  text-align: center;
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
}
.carousel-nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
}
.carousel-nav-row .carousel-counter { margin: 0; }

/* ── Verb conjugation table (Regular/Irregular Verbs) ─────────────── */
.verb-search {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 0 auto 16px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
}
.verb-search:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.verb-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
.verb-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  cursor: pointer;
  font-family: inherit;
  transition: transform .12s ease, box-shadow .12s ease;
}
.verb-row:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.verb-row:active { transform: scale(0.98); }
.verb-row-main { display: flex; align-items: center; justify-content: space-between; }
.verb-row-verb { font-size: 17px; font-weight: 800; color: var(--navy); text-transform: capitalize; }
.verb-row-icon { font-size: 15px; opacity: .7; }
.verb-row-translation { font-size: 13px; color: var(--ink-muted); font-style: italic; }
.verb-row-forms {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink);
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.verb-row-forms strong { color: var(--ink-muted); font-weight: 700; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-deep);
  color: #cbd9e8;
  padding: 36px 0 28px;
  margin-top: 40px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  margin-bottom: 20px;
}
.footer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #cbd9e8;
}
.footer-link:hover { color: #fff; }
.footer-bottom {
  text-align: center;
  font-size: 12.5px;
  color: #7f93a8;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ── Podcasts ───────────────────────────────────────────── */
.container-narrow { max-width: 640px; }

.podcast-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
}
.podcast-tab {
  flex: 1;
  white-space: nowrap;
  border: none;
  background: var(--blue-light);
  color: var(--navy);
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.podcast-tab:hover { background: #dbe9f7; }
.podcast-tab.active { background: var(--navy); color: #fff; }

.podcast-list { display: flex; flex-direction: column; gap: 10px; }
.podcast-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.podcast-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.podcast-row-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--blue-light);
}
.podcast-row-body { flex: 1; min-width: 0; }
.podcast-row-body h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
}
.podcast-row-autor {
  margin: 2px 0 0;
  font-size: 12px;
  font-style: italic;
  color: var(--ink-muted);
}
.podcast-row-duracao {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.podcast-hero {
  position: relative;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.podcast-hero img { width: 100%; height: 100%; object-fit: cover; }
.podcast-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(16,38,64,.92) 0%, rgba(16,38,64,.35) 55%, transparent 100%);
}
.podcast-hero-text {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  color: #fff;
}
.podcast-hero-cat {
  display: inline-block;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(2px);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.podcast-hero-text h1 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
}
.podcast-hero-autor {
  margin: 4px 0 0;
  font-size: 13px;
  font-style: italic;
  color: rgba(255,255,255,.85);
}

.podcast-player {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.podcast-play-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.podcast-play-btn:hover { background: var(--navy-deep); }
.podcast-play-btn:active { transform: scale(0.94); }
.podcast-player-body { flex: 1; min-width: 0; }
.podcast-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--blue-light);
  cursor: pointer;
  overflow: hidden;
}
.podcast-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--blue);
  border-radius: 999px;
}
.podcast-times {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
}

.podcast-block { margin-bottom: 28px; }
.podcast-block h2 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 12px;
}

.podcast-vocab {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.podcast-vocab-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface);
}
.podcast-vocab-row:nth-child(even) { background: var(--blue-light); }
.podcast-vocab-termo { font-weight: 800; color: var(--navy); }
.podcast-vocab-trad { color: var(--ink-muted); font-style: italic; text-align: right; }

.podcast-transcript { display: flex; flex-direction: column; gap: 12px; }
.podcast-paragrafo {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}
.podcast-line {
  border-radius: 14px;
  padding: 10px 14px;
  max-width: 88%;
}
.podcast-line p { margin: 2px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.podcast-line-falante {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.podcast-line.falante-a { background: var(--blue-light); align-self: flex-start; }
.podcast-line.falante-a .podcast-line-falante { color: var(--blue); }
.podcast-line.falante-b {
  background: #e9f7f2;
  align-self: flex-end;
}
.podcast-line.falante-b .podcast-line-falante { color: #1c8a6f; }
.podcast-line.falante-c {
  background: #fdf1e4;
  align-self: flex-start;
}
.podcast-line.falante-c .podcast-line-falante { color: #b3690a; }

@media (max-width: 480px) {
  .podcast-line { max-width: 100%; }
}

/* ── Info modal ─────────────────────────────────────────── */
.info-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 38, 64, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
}
.info-modal-caixa {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 32px 24px 24px;
  max-width: 380px;
  width: 100%;
  text-align: center;
}
.info-modal-fechar {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 18px;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.info-modal-logo { width: 64px; height: 64px; border-radius: 14px; margin-bottom: 12px; }
.info-modal-caixa h2 { margin: 0 0 2px; color: var(--navy); font-size: 18px; }
.info-modal-versao { font-weight: 700; color: var(--ink-muted); font-size: 13px; margin: 0 0 16px; }
.info-modal-texto { font-size: 15px; line-height: 1.7; color: var(--ink); margin: 0; }
.info-modal-creditos { font-size: 14px; color: var(--ink-muted); margin: 12px 0 0; }
.info-modal-creditos a { color: var(--blue); font-weight: 600; }

/* ── Utility ────────────────────────────────────────────── */
.center { text-align: center; }
.hidden { display: none !important; }
.empty-state {
  text-align: center;
  color: var(--ink-muted);
  padding: 48px 20px;
  font-size: 15px;
}
