:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --panel: #131720;
  --panel-2: #1a2030;
  --text: #f5f7fb;
  --muted: #aeb7c7;
  --line: #2a3242;
  --accent: #8b7cff;
  --accent-2: #b8afff;
  --good: #5dd39e;
  --bad: #ff7b86;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #171b28 0, var(--bg) 45%);
  color: var(--text);
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .58; }
.shell { width: min(1040px, calc(100% - 32px)); margin: 0 auto; padding: 56px 0 80px; }
.hero { margin-bottom: 28px; display: flex; justify-content: space-between; align-items: flex-start; gap: 22px; }
.hero h1 { max-width: 760px; font-size: clamp(2.3rem, 7vw, 5rem); line-height: .96; letter-spacing: -.055em; margin: 8px 0 18px; }
.hero p { max-width: 720px; color: var(--muted); font-size: 1.08rem; line-height: 1.65; }
.hero-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 180px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; color: var(--accent-2); font-weight: 700; }
.card { border: 1px solid var(--line); background: rgba(19,23,32,.94); border-radius: 22px; box-shadow: 0 20px 70px rgba(0,0,0,.26); }

.content-switch {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 16px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15,19,27,.92);
  box-shadow: 0 12px 36px rgba(0,0,0,.2);
}
.content-switch-option {
  min-width: 118px;
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.content-switch-option:hover { color: var(--text); }
.content-switch-option.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(139,124,255,.22);
}
.content-switch-option:focus-visible {
  outline: 3px solid rgba(139,124,255,.26);
  outline-offset: 2px;
}
.movie-browser {
  display: grid;
  gap: 18px;
  margin: 18px 0 4px;
}
.movie-feature {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 5vw, 38px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 24%, rgba(139,124,255,.42), transparent 34%),
    linear-gradient(135deg, #0b0d12 0%, #171b28 48%, #271f4d 100%);
}
.movie-feature::after {
  content: "";
  position: absolute;
  inset: auto -6% -46% 42%;
  height: 180px;
  border-radius: 50%;
  background: rgba(184,175,255,.08);
  filter: blur(10px);
  pointer-events: none;
}
.movie-feature > * { position: relative; z-index: 1; }
.movie-feature h2 {
  max-width: 650px;
  margin: 8px 0 12px;
  font-size: clamp(1.7rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: -.035em;
}
.movie-feature p {
  max-width: 720px;
  margin: 0;
  color: #c4cada;
  line-height: 1.62;
}
.movie-notice {
  display: inline-block;
  margin-top: 14px;
  color: #919bad;
  font-size: .8rem;
  line-height: 1.45;
}
.movie-shelf-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}
.movie-shelf-heading h3 {
  margin: 5px 0 0;
  font-size: 1.15rem;
}
.movie-shelf-copy {
  color: var(--muted);
  font-size: .8rem;
  text-align: right;
}
.movie-library {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 230px);
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
}
.movie-library-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
  min-width: min(520px, calc(100vw - 74px));
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: #0f131b;
}
.movie-library-empty span { color: var(--muted); font-size: .84rem; line-height: 1.45; }
.movie-tile {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  background: #0f131b;
  color: var(--text);
  text-align: left;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.movie-tile:hover {
  transform: translateY(-2px);
  border-color: #4b5570;
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
}
.movie-tile-art {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  width: 100%;
  background:
    radial-gradient(circle at 70% 25%, rgba(184,175,255,.32), transparent 35%),
    linear-gradient(135deg, #20283a, #100f1d);
  font-size: 1.6rem;
}
.movie-tile-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 0 12px 13px;
}
.movie-tile-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.movie-tile-copy span { color: var(--muted); font-size: .78rem; }
.setup, .saved-card { padding: 24px; }
.saved-card { margin-top: 20px; }
label { display: grid; gap: 8px; color: var(--muted); font-size: .92rem; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); background: #0f131b; color: var(--text); border-radius: 12px; padding: 12px 14px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139,124,255,.12); }
.source-hint { color: var(--muted); font-size: .82rem; line-height: 1.5; margin: 8px 0 0; }
.transcript-option { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; background: #0f131b; }
.transcript-option summary { padding: 13px 14px; cursor: pointer; color: var(--text); font-weight: 700; }
.transcript-option[open] summary { border-bottom: 1px solid var(--line); }
.transcript-option label { padding: 14px 14px 0; }
.transcript-option .source-hint { padding: 0 14px 14px; margin-top: 8px; }
.transcript-option textarea { min-height: 150px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 16px 0; }
.primary, .secondary, .ghost { border-radius: 12px; padding: 12px 16px; font-weight: 700; }
.primary { border: 0; background: var(--accent); color: white; }
.primary:hover { filter: brightness(1.08); }
.secondary { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); text-decoration: none; }
.secondary:hover { border-color: #48536a; }
.ghost { background: transparent; color: var(--muted); border: 1px solid transparent; }
.ghost:hover { color: var(--text); border-color: var(--line); }
.coffee-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 14px;
  background: #ffdd00;
  color: #111;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(255, 221, 0, .18);
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.coffee-link:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 14px 34px rgba(255, 221, 0, .25); }
.coffee-link:focus-visible { outline: 3px solid rgba(255, 221, 0, .35); outline-offset: 3px; }
.coffee-top { width: 100%; }
.coffee-break { display: flex; justify-content: center; padding: 22px 0 2px; }
.coffee-break .coffee-link { min-width: min(320px, 100%); }
.site-footer { display: flex; justify-content: center; padding-top: 34px; }
.coffee-bottom { min-width: min(320px, 100%); }
.legal, .media-note { color: #7f899b; font-size: .8rem; line-height: 1.5; }
.legal { margin: 12px 0 0; }
.status { margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }
.workspace { display: grid; gap: 20px; margin-top: 22px; }
.video-card, .lesson-card { padding: 20px; }
.video-meta, .lesson-topline, .listen-box, .section-heading, .saved-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.video-meta { align-items: flex-start; }
.video-meta h2, .section-heading h2 { margin: 4px 0 12px; font-size: 1.2rem; }
.lesson-actions { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: flex-end; gap: 8px; }
.lesson-actions > a { display: inline-flex; align-items: center; justify-content: center; }
.speed-control { min-width: 112px; }
video, audio { width: 100%; border-radius: 16px; background: #000; display: block; }
video { max-height: 560px; }
audio { margin-top: 8px; }
.lesson-topline { color: var(--muted); font-size: .9rem; }
.progress-track { height: 7px; background: #0f131b; border-radius: 999px; margin: 12px 0 20px; overflow: hidden; }
#progress-bar { height: 100%; width: 0; background: var(--accent); transition: width .25s ease; }
.listen-box { flex-wrap: wrap; margin-bottom: 18px; }
#listen-count { color: var(--muted); font-size: .88rem; }
.locked { padding: 20px; border-radius: 14px; background: #0f131b; color: var(--muted); text-align: center; border: 1px dashed var(--line); }
.question { font-size: 1.1rem; line-height: 1.8; margin: 12px 0 18px; }
.inline-blank { display: inline-block; width: 120px; min-width: 80px; margin: 0 5px; padding: 6px 8px; vertical-align: baseline; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.choice { text-align: left; }
.choice.selected { border-color: var(--accent); background: rgba(139,124,255,.12); }
textarea { min-height: 110px; resize: vertical; margin-top: 10px; }
.feedback, .transcript { margin-top: 18px; padding: 14px 16px; border-radius: 12px; line-height: 1.55; }
.feedback.good { background: rgba(93,211,158,.1); border: 1px solid rgba(93,211,158,.35); color: #c8f5e2; }
.feedback.bad { background: rgba(255,123,134,.1); border: 1px solid rgba(255,123,134,.35); color: #ffd5d9; }
.transcript { background: #0f131b; border: 1px solid var(--line); font-size: 1.05rem; }
#next { margin-top: 14px; }
.saved-list { display: grid; gap: 10px; }
.saved-item { padding: 14px; border: 1px solid var(--line); background: #0f131b; border-radius: 14px; }
.saved-item > div:first-child { display: grid; gap: 4px; min-width: 0; }
.saved-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saved-item span { color: var(--muted); font-size: .82rem; }
.saved-actions { display: flex; gap: 6px; }
.connection-pill { border: 1px solid rgba(93,211,158,.4); color: #c8f5e2; border-radius: 999px; padding: 6px 10px; font-size: .78rem; }
.connection-pill.offline { border-color: rgba(255,183,77,.45); color: #ffddb0; }
.hidden { display: none !important; }

@media (max-width: 720px) {
  .shell { width: min(100% - 20px, 1040px); padding-top: 30px; }
  .hero, .video-meta, .lesson-topline, .saved-item { align-items: stretch; flex-direction: column; }
  .hero-actions { width: 100%; min-width: 0; }
  .content-switch { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .content-switch-option { min-width: 0; }
  .movie-shelf-heading { align-items: flex-start; flex-direction: column; }
  .movie-shelf-copy { text-align: left; }
  .movie-library { grid-auto-columns: minmax(175px, 78vw); }
  .grid-3 { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 3rem; }
  .lesson-actions, .saved-actions { justify-content: stretch; }
  .lesson-actions > button, .lesson-actions > a, .saved-actions > button { flex: 1; }
  .speed-control { width: 100%; }
  .coffee-break .coffee-link, .coffee-bottom { width: 100%; min-width: 0; }
}


/* Prebuilt practice catalogue.
   Interaction model adapted for FreeTuve after reviewing the MIT-licensed
   Fakeflix project; this implementation is native vanilla JS/CSS. */
.practice-catalog-card { margin: 20px 0; padding: 24px; overflow: hidden; }
.practice-catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}
.practice-catalog-header h2 { margin: 4px 0 8px; font-size: 1.5rem; }
.practice-catalog-header p { margin: 0; max-width: 720px; color: var(--muted); line-height: 1.55; }
.practice-count {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #0f131b;
  border-radius: 999px;
  color: var(--muted);
  padding: 7px 11px;
  font-size: .8rem;
}
.practice-filters {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(130px, .8fr) auto;
  gap: 12px;
  align-items: end;
  margin: 20px 0 16px;
}
.practice-clear { min-height: 45px; }
.practice-catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.practice-card {
  min-width: 0;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  padding: 16px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(139,124,255,.16), transparent 38%),
    linear-gradient(155deg, #151b27, #0f131b 70%);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.practice-card:hover {
  transform: translateY(-2px);
  border-color: #536079;
  box-shadow: 0 15px 34px rgba(0,0,0,.2);
}
.practice-card:focus-visible { outline: 3px solid rgba(139,124,255,.32); outline-offset: 2px; }
.practice-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .78rem; }
.practice-level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(139,124,255,.16);
  border: 1px solid rgba(139,124,255,.35);
  color: #ded9ff;
  letter-spacing: .04em;
}
.practice-card-title { font-size: 1.08rem; line-height: 1.25; }
.practice-card-description { color: #b2bbca; line-height: 1.45; font-size: .88rem; }
.practice-card-meta { color: var(--muted); font-size: .78rem; line-height: 1.4; }
.practice-card-action { margin-top: auto; color: #d8d3ff; font-size: .85rem; font-weight: 800; }
.practice-empty {
  margin: 8px 0 0;
  padding: 18px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 14px;
}
.practice-note { margin: 14px 0 0; color: #7f899b; font-size: .78rem; line-height: 1.5; }

@media (max-width: 860px) {
  .practice-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .practice-catalog-card { padding: 18px; }
  .practice-catalog-header { flex-direction: column; }
  .practice-filters { grid-template-columns: 1fr 1fr; }
  .practice-clear { grid-column: 1 / -1; }
  .practice-catalog { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 82vw); grid-template-columns: none; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x proximity; }
  .practice-card { scroll-snap-align: start; }
}


.movie-suggestions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 360px);
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
}
.movie-suggestion-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  min-height: 172px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0f131b;
}
.movie-suggestion-art {
  display: grid;
  place-items: center;
  min-height: 100%;
  background:
    radial-gradient(circle at 75% 20%, rgba(184,175,255,.34), transparent 32%),
    linear-gradient(160deg, #252d42, #13101f 74%);
  font-size: 2.2rem;
  font-weight: 900;
  color: #eeeaff;
}
.movie-suggestion-body {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
}
.movie-suggestion-top {
  display: grid;
  gap: 4px;
}
.movie-suggestion-top strong {
  font-size: 1rem;
  line-height: 1.25;
}
.movie-suggestion-top span,
.movie-license-link {
  color: var(--muted);
  font-size: .76rem;
}
.movie-suggestion-body p {
  margin: 0;
  color: #b7c0ce;
  font-size: .82rem;
  line-height: 1.45;
}
.movie-suggestion-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}
.movie-use-button {
  padding: 9px 12px;
  font-size: .8rem;
}
.movie-license-link {
  text-decoration: none;
}
.movie-license-link:hover { color: var(--text); text-decoration: underline; }
.movie-catalog-note {
  margin: -6px 0 2px;
  color: #7f899b;
  font-size: .78rem;
  line-height: 1.5;
}
@media (max-width: 600px) {
  .movie-suggestions { grid-auto-columns: minmax(265px, 82vw); }
  .movie-suggestion-card { grid-template-columns: 76px 1fr; }
}


/* --------------------------------------------------------------------------
   FreeTuve visual system polish — 2026-09
   Direction: focused media-learning product, neutral dark surfaces, restrained blue accents.
   The rules below intentionally flatten unnecessary card nesting, strengthen
   hierarchy, and keep interaction states consistent across the PWA.
   -------------------------------------------------------------------------- */

:root {
  --bg: #0b0d12;
  --bg-elevated: #10141b;
  --panel: #151a22;
  --panel-2: #1a202a;
  --panel-3: #202734;
  --text: #f4f6f8;
  --muted: #98a2b3;
  --muted-strong: #c4cad3;
  --line: #27303d;
  --line-strong: #3a4657;
  --accent: #6ea8ff;
  --accent-strong: #4f8ff7;
  --accent-2: #c9dcff;
  --accent-ink: #07111f;
  --good: #6ea8ff;
  --bad: #ff8e98;
  --warning: #f6c36b;
  --focus: #a9c9ff;
  --shadow-sm: 0 10px 26px rgba(0, 0, 0, .18);
  --shadow-md: 0 24px 70px rgba(0, 0, 0, .28);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 18% -8%, rgba(110, 168, 255, .08), transparent 32rem),
    radial-gradient(circle at 92% 10%, rgba(143, 107, 255, .045), transparent 26rem),
    linear-gradient(180deg, #0f131a 0%, var(--bg) 42%, #090b10 100%);
  font-family: "Avenir Next", "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(110, 168, 255, .26);
  color: var(--text);
}

.shell {
  width: min(1120px, calc(100% - 40px));
  padding: 52px 0 84px;
}

.hero {
  position: relative;
  margin-bottom: 30px;
  padding: 14px 0 22px;
  align-items: flex-end;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(180px, 28vw);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(99, 230, 189, 0));
}

.hero > div:first-child {
  max-width: 820px;
}

.hero h1 {
  max-width: 820px;
  margin: 10px 0 18px;
  font-size: clamp(2.65rem, 7vw, 5.25rem);
  line-height: .94;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.hero p {
  max-width: 66ch;
  margin: 0;
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  line-height: 1.68;
}

.hero-actions {
  min-width: 190px;
  gap: 9px;
}

.eyebrow {
  color: var(--accent);
  font-size: .72rem;
  letter-spacing: .18em;
}

.card {
  border-color: var(--line);
  border-radius: var(--radius-lg);
  background: rgba(13, 28, 25, .94);
  box-shadow: var(--shadow-sm);
}

.content-switch {
  margin-bottom: 18px;
  padding: 4px;
  border-color: var(--line);
  border-radius: 13px;
  background: rgba(8, 20, 17, .9);
  box-shadow: none;
}

.content-switch-option {
  border-radius: 9px;
  color: var(--muted);
  transition: background-color .16s ease, color .16s ease, transform .16s ease;
}

.content-switch-option:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .035);
}

.content-switch-option.active {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 22px rgba(79, 143, 247, .16);
}

.content-switch-option:focus-visible,
.primary:focus-visible,
.secondary:focus-visible,
.ghost:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.practice-card:focus-visible,
.movie-tile:focus-visible,
.movie-license-link:focus-visible {
  outline: 3px solid rgba(169, 201, 255, .42);
  outline-offset: 3px;
}

.setup,
.saved-card {
  padding: clamp(20px, 3vw, 28px);
}

input,
select,
textarea {
  min-height: 46px;
  border-color: var(--line);
  border-radius: var(--radius-sm);
  background: #0f131a;
  color: var(--text);
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--line-strong);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-strong);
  background: #111722;
  box-shadow: 0 0 0 3px rgba(110, 168, 255, .10);
}

.primary,
.secondary,
.ghost {
  min-height: 44px;
  border-radius: 11px;
  transition:
    transform .16s ease,
    border-color .16s ease,
    background-color .16s ease,
    color .16s ease,
    box-shadow .16s ease;
}

.primary {
  border: 1px solid rgba(255, 255, 255, .05);
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 26px rgba(79, 143, 247, .16);
}

.primary:hover {
  filter: none;
  transform: translateY(-1px);
  background: #82b5ff;
  box-shadow: 0 14px 30px rgba(79, 143, 247, .23);
}

.secondary {
  border-color: var(--line);
  background: var(--panel-2);
  color: var(--text);
}

.secondary:hover {
  border-color: var(--line-strong);
  background: var(--panel-3);
}

.ghost {
  color: var(--muted);
}

.ghost:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, .025);
  color: var(--text);
}

button:active,
.primary:active,
.secondary:active,
.ghost:active,
.movie-tile:active,
.practice-card:active {
  transform: translateY(0);
}

.coffee-link {
  min-height: 44px;
  border-radius: 11px;
  box-shadow: none;
}

.coffee-top {
  border: 1px solid rgba(255, 221, 0, .22);
  background: rgba(255, 221, 0, .07);
  color: #ffe96a;
}

.coffee-top:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 221, 0, .36);
  background: rgba(255, 221, 0, .11);
  box-shadow: none;
}

.coffee-bottom {
  box-shadow: 0 12px 30px rgba(255, 221, 0, .12);
}

.source-hint,
.legal,
.media-note,
.practice-note,
.movie-catalog-note {
  color: #7f8a9c;
}

.transcript-option {
  border-color: var(--line);
  border-radius: 13px;
  background: #0f131a;
}

.transcript-option summary {
  transition: background-color .16s ease;
}

.transcript-option summary:hover {
  background: rgba(255, 255, 255, .025);
}

/* Avoid a "card inside card inside card" look: the catalogue is a section,
   while each practice remains the interactive surface. */
.practice-catalog-card {
  margin: 24px 0 28px;
  padding: 18px 0 8px;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.practice-catalog-header {
  align-items: end;
}

.practice-catalog-header h2 {
  margin-top: 6px;
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -.025em;
}

.practice-catalog-header p {
  max-width: 62ch;
  color: var(--muted);
}

.practice-count {
  border-color: var(--line);
  background: var(--bg-elevated);
  color: var(--muted-strong);
}

.practice-filters {
  margin: 22px 0 16px;
}

.practice-card {
  min-height: 220px;
  padding: 18px;
  border-color: var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(110, 168, 255, .045), transparent 52%),
    #0b1916;
  box-shadow: none;
}

.practice-card:hover {
  transform: translateY(-3px);
  border-color: #44566f;
  box-shadow: 0 18px 34px rgba(0, 0, 0, .18);
}

.practice-level-badge {
  border-color: rgba(110, 168, 255, .26);
  background: rgba(110, 168, 255, .08);
  color: var(--accent-2);
}

.practice-card-description {
  color: #b8c0cc;
}

.practice-card-action {
  color: var(--accent);
}

.movie-feature {
  border-color: rgba(99, 230, 189, .12);
  background:
    radial-gradient(circle at 88% 20%, rgba(110, 168, 255, .16), transparent 34%),
    radial-gradient(circle at 65% 130%, rgba(84, 128, 255, .10), transparent 42%),
    linear-gradient(135deg, #0d1117 0%, #141a24 48%, #1b2431 100%);
}

.movie-feature h2 {
  letter-spacing: -.04em;
  text-wrap: balance;
}

.movie-feature p {
  color: #bdd0c9;
}

.movie-notice {
  color: #94a0b2;
}

.movie-tile,
.movie-suggestion-card,
.movie-library-empty {
  border-color: var(--line);
  background: #0f131a;
}

.movie-tile:hover {
  border-color: #44566f;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .20);
}

.movie-tile-art,
.movie-suggestion-art {
  background:
    radial-gradient(circle at 72% 22%, rgba(110, 168, 255, .18), transparent 34%),
    linear-gradient(155deg, #1c2a3b, #10141b 72%);
  color: var(--accent-2);
}

.movie-suggestion-body p {
  color: #b1bac7;
}

.movie-license-link:hover {
  color: var(--accent-2);
}

.status {
  border-color: var(--line);
  border-radius: var(--radius-sm);
  background: #0f131a;
}

.video-card,
.lesson-card {
  padding: clamp(18px, 2.5vw, 24px);
}

video,
audio {
  border-radius: 14px;
  background: #030807;
}

.progress-track {
  height: 8px;
  background: #0b0f15;
}

#progress-bar {
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
}

.locked,
.transcript,
.saved-item {
  border-color: var(--line);
  background: #0f131a;
}

.choice.selected {
  border-color: var(--accent-strong);
  background: rgba(110, 168, 255, .07);
}

.feedback.good {
  border-color: rgba(110, 168, 255, .30);
  background: rgba(110, 168, 255, .07);
  color: #dce9ff;
}

.feedback.bad {
  border-color: rgba(255, 142, 152, .32);
  background: rgba(255, 142, 152, .08);
  color: #ffd8dc;
}

.connection-pill {
  border-color: rgba(110, 168, 255, .32);
  color: #d7e6ff;
  background: rgba(99, 230, 189, .05);
}

.site-footer {
  padding-top: 42px;
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 20px, 1120px);
    padding-top: 24px;
  }

  .hero {
    padding-top: 6px;
    align-items: stretch;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
    line-height: .96;
  }

  .hero-actions {
    margin-top: 4px;
  }

  .practice-catalog-card {
    padding: 14px 0 4px;
  }

  .practice-catalog-header {
    align-items: flex-start;
  }

  .practice-card {
    min-height: 214px;
  }
}

@media (max-width: 480px) {
  .shell {
    width: min(100% - 16px, 1120px);
  }

  .hero h1 {
    font-size: clamp(2.45rem, 12.6vw, 3.35rem);
  }

  .setup,
  .saved-card,
  .video-card,
  .lesson-card {
    padding: 17px;
    border-radius: 17px;
  }

  .practice-filters {
    grid-template-columns: 1fr;
  }

  .practice-clear {
    grid-column: 1;
  }

  .content-switch-option {
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }

  .primary:hover,
  .coffee-link:hover,
  .practice-card:hover,
  .movie-tile:hover {
    transform: none;
  }
}


/* === FreeTuve hierarchy redesign v2 === */
:root {
  --ft-bg: #08111c;
  --ft-bg-deep: #060b12;
  --ft-surface: #0d1825;
  --ft-surface-2: #101e2d;
  --ft-line: #22364b;
  --ft-line-strong: #31506f;
  --ft-text: #f6f8fb;
  --ft-muted: #98a9bb;
  --ft-accent: #4ea1ff;
  --ft-accent-strong: #2f8fff;
  --ft-accent-soft: #a9d1ff;
  --ft-danger: #ff8e98;
}

html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(circle at 16% -10%, rgba(78,161,255,.13), transparent 34rem),
    linear-gradient(180deg, #08111c 0%, #070d15 48%, #060b12 100%);
  color: var(--ft-text);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: 100% 44px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(136,177,218,.12);
  background: rgba(6,12,20,.84);
  backdrop-filter: blur(18px);
}
.topbar-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ft-text);
  text-decoration: none;
  font-weight: 850;
  font-size: 1.12rem;
  letter-spacing: -.02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--ft-accent);
  color: #06111e;
  font-size: .8rem;
  box-shadow: 0 10px 24px rgba(78,161,255,.2);
}
.main-nav {
  display: flex;
  justify-content: center;
  align-items: stretch;
  min-height: 68px;
  gap: 28px;
}
.main-nav a {
  position: relative;
  display: grid;
  place-items: center;
  color: var(--ft-muted);
  text-decoration: none;
  font-size: .87rem;
  font-weight: 700;
}
.main-nav a:hover,
.main-nav a.active { color: var(--ft-text); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--ft-accent);
}
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.nav-action, .support-link {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 750;
}
.nav-action { border: 1px solid var(--ft-line); background: var(--ft-surface); color: var(--ft-text); }
.support-link { color: var(--ft-text); border: 1px solid var(--ft-line); background: transparent; }
.support-link:hover { border-color: var(--ft-line-strong); background: rgba(255,255,255,.025); }

.shell {
  width: min(1180px, calc(100% - 32px));
  padding: 58px 0 72px;
}

.hero-v2 {
  display: grid;
  grid-template-columns: minmax(0,.86fr) minmax(440px,1.14fr);
  grid-template-areas:
    "copy demo"
    "actions demo"
    "benefits benefits";
  column-gap: clamp(34px, 5vw, 70px);
  row-gap: 22px;
  align-items: start;
  margin: 0 0 54px;
}
.hero-copy-block { grid-area: copy; padding-top: 18px; }
.hero-copy-block .eyebrow,
.section-v2 .eyebrow,
.setup-v2 .eyebrow {
  color: var(--ft-accent);
  letter-spacing: .14em;
}
.hero-v2 h1 {
  max-width: 610px;
  margin: 10px 0 18px;
  font-size: clamp(2.8rem, 5.7vw, 5rem);
  line-height: .95;
  letter-spacing: -.055em;
}
.hero-v2 #hero-copy {
  max-width: 570px;
  margin: 0;
  color: #b3c0cd;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.65;
}
.hero-actions {
  grid-area: actions;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.hero-primary,
.hero-secondary {
  min-height: 52px;
  padding: 0 20px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-decoration: none;
  font-weight: 800;
}
.hero-primary {
  background: var(--ft-accent);
  color: #06111e;
  border: 1px solid #69afff;
  box-shadow: 0 14px 34px rgba(78,161,255,.15);
}
.hero-secondary {
  background: transparent;
  color: var(--ft-text);
  border: 1px solid var(--ft-line-strong);
}
.hero-primary:hover { background: #65adff; transform: translateY(-1px); }
.hero-secondary:hover { background: rgba(255,255,255,.025); }

.hero-demo {
  grid-area: demo;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--ft-line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16,30,45,.92), rgba(8,17,28,.92));
  box-shadow: 0 26px 70px rgba(0,0,0,.28);
}
.hero-demo-topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 3px 10px;
  color: var(--ft-muted);
  font-size: .75rem;
  font-weight: 700;
}
.hero-demo-topline span:first-child { color: var(--ft-accent-soft); }
.hero-demo-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #03070b;
}
.hero-demo-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.hero-demo-caption {
  margin: 10px 4px 1px;
  color: #8193a5;
  font-size: .76rem;
  line-height: 1.45;
}

.hero-benefits {
  grid-area: benefits;
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 26px;
  padding-top: 2px;
  color: #95a7b8;
  font-size: .82rem;
}
.hero-benefits span::before {
  content: "•";
  margin-right: 9px;
  color: var(--ft-accent);
}

.setup-v2 {
  margin-bottom: 54px;
  padding: clamp(22px, 3vw, 32px);
  border-color: var(--ft-line);
  background: linear-gradient(145deg, rgba(16,30,45,.94), rgba(10,20,31,.96));
  box-shadow: 0 24px 66px rgba(0,0,0,.22);
}
.setup-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 22px;
}
.setup-heading h2,
.section-v2 h2 {
  margin: 5px 0 6px;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -.035em;
}
.setup-heading p,
.section-v2 .practice-catalog-header p,
.section-heading-v2 p {
  margin: 0;
  color: var(--ft-muted);
  line-height: 1.55;
}
.setup-v2 .content-switch {
  margin: 0;
  background: rgba(4,10,17,.62);
  border-color: var(--ft-line);
  box-shadow: none;
}
.setup-v2 .content-switch-option.active {
  background: var(--ft-accent);
  color: #06111e;
  box-shadow: none;
}
.setup-v2 input,
.setup-v2 select,
.setup-v2 textarea,
.practice-filters select {
  background: rgba(4,10,17,.58);
  border-color: var(--ft-line);
}
.setup-v2 input:focus,
.setup-v2 select:focus,
.setup-v2 textarea:focus,
.practice-filters select:focus {
  border-color: var(--ft-accent);
  box-shadow: 0 0 0 3px rgba(78,161,255,.12);
}
.setup-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 3px;
  background: var(--ft-accent);
  color: #06111e;
  font-weight: 850;
}
.setup-submit:hover { background: #65adff; }

.section-v2 {
  margin: 0 0 54px;
}
.practice-catalog-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.practice-catalog-header {
  align-items: end;
  margin-bottom: 18px;
}
.practice-count {
  border: 1px solid var(--ft-line);
  background: rgba(12,24,37,.82);
  color: #a9b7c5;
}
.practice-filters {
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid rgba(49,80,111,.55);
  border-radius: 14px;
  background: rgba(8,17,28,.48);
}
.practice-catalog {
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.practice-card {
  position: relative;
  overflow: hidden;
  min-height: 245px;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--ft-line);
  background:
    linear-gradient(180deg, rgba(78,161,255,.055), transparent 30%),
    rgba(12,24,37,.82);
  box-shadow: none;
}
.practice-card::before {
  content: "";
  display: block;
  height: 54px;
  margin: -4px 0 20px;
  border-radius: 10px;
  opacity: .8;
  background:
    linear-gradient(90deg,
      transparent 0 5%,
      rgba(78,161,255,.30) 5% 7%,
      transparent 7% 13%,
      rgba(78,161,255,.65) 13% 16%,
      transparent 16% 21%,
      rgba(78,161,255,.24) 21% 23%,
      transparent 23% 30%,
      rgba(78,161,255,.50) 30% 33%,
      transparent 33% 41%,
      rgba(78,161,255,.22) 41% 43%,
      transparent 43% 49%,
      rgba(78,161,255,.72) 49% 53%,
      transparent 53% 60%,
      rgba(78,161,255,.32) 60% 62%,
      transparent 62% 70%,
      rgba(78,161,255,.56) 70% 73%,
      transparent 73% 82%,
      rgba(78,161,255,.26) 82% 85%,
      transparent 85%);
}
.practice-card:hover {
  transform: translateY(-3px);
  border-color: var(--ft-line-strong);
  box-shadow: 0 18px 44px rgba(0,0,0,.18);
}
.practice-level-badge {
  background: rgba(78,161,255,.12);
  border-color: rgba(78,161,255,.3);
  color: var(--ft-accent-soft);
}
.practice-card-title { font-size: 1.08rem; }
.practice-card-description { color: #a8b6c4; }
.practice-card-meta { color: #788c9f; }
.practice-card-action { color: var(--ft-accent); }

.movie-discovery { padding-top: 2px; }
.section-heading-v2 { margin-bottom: 18px; }
.movie-home-catalog {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
}
.movie-home-card {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--ft-line);
  border-radius: 16px;
  background: rgba(12,24,37,.82);
  color: var(--ft-text);
  text-align: left;
  transition: transform .16s ease, border-color .16s ease;
}
.movie-home-card:hover {
  transform: translateY(-3px);
  border-color: var(--ft-line-strong);
}
.movie-home-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 8.5;
  padding: 18px;
  background:
    radial-gradient(circle at 74% 25%, rgba(78,161,255,.22), transparent 34%),
    linear-gradient(135deg, #14263a, #08111c 62%, #0b1f31);
}
.movie-home-play {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: rgba(3,8,14,.62);
  color: white;
}
.movie-home-art-title {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .84rem;
  font-weight: 750;
}
.movie-home-body {
  display: grid;
  gap: 7px;
  padding: 15px;
}
.movie-home-body > strong { font-size: 1rem; }
.movie-home-body > span { color: var(--ft-muted); font-size: .78rem; line-height: 1.45; }
.movie-home-body > span:last-child { color: #adbac7; }

.status {
  display: grid;
  gap: 11px;
  border-color: var(--ft-line);
  background: rgba(5,12,20,.56);
}
.status-error {
  border-color: rgba(255,142,152,.42) !important;
  background: rgba(91,25,34,.12);
}
.status-message { color: #c8d2dc; }
.status-error .status-message { color: #ffd7da; }
.error-support {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,142,152,.16);
  color: #9fadb9;
  font-size: .78rem;
}
.error-support a {
  flex: 0 0 auto;
  color: var(--ft-accent-soft);
  text-decoration: none;
  font-weight: 800;
}
.error-support a:hover { text-decoration: underline; }

.saved-card {
  border-color: var(--ft-line);
  background: rgba(12,24,37,.86);
}
.site-footer {
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  color: #798b9d;
  font-size: .82rem;
  border-top: 1px solid rgba(49,80,111,.45);
  margin-top: 52px;
  padding: 24px 0 0;
}
.footer-support { color: var(--ft-accent-soft); text-decoration: none; font-weight: 750; }

@media (max-width: 860px) {
  .topbar-inner { min-height: 60px; gap: 12px; }
  .main-nav { display: none; }
  .topbar-inner { grid-template-columns: 1fr auto; }
  .topbar-actions .support-link { display: none; }
  .shell { padding-top: 34px; }

  .hero-v2 {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "demo"
      "actions"
      "benefits";
    gap: 18px;
    margin-bottom: 42px;
  }
  .hero-copy-block { padding-top: 0; }
  .hero-v2 h1 { font-size: clamp(2.45rem, 11vw, 4rem); max-width: 12ch; }
  .hero-demo { padding: 8px; border-radius: 15px; }
  .hero-demo-caption { display: none; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 9px; }
  .hero-primary, .hero-secondary { width: 100%; }
  .hero-benefits { grid-template-columns: repeat(3,1fr); gap: 8px; text-align: center; font-size: .7rem; }
  .hero-benefits span::before { display: block; margin: 0 0 4px; }

  .setup-heading { align-items: stretch; flex-direction: column; }
  .setup-v2 .content-switch { align-self: flex-start; }
  .practice-catalog { grid-template-columns: 1fr 1fr; }
  .movie-home-catalog { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .topbar-inner, .shell { width: min(100% - 24px, 1180px); }
  .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
  .brand { font-size: 1rem; }
  .shell { padding-bottom: 48px; }

  .hero-v2 h1 {
    margin-top: 8px;
    font-size: clamp(2.2rem, 12.5vw, 3.35rem);
    line-height: .98;
  }
  .hero-v2 #hero-copy { font-size: .95rem; line-height: 1.55; }
  .hero-demo-topline { font-size: .68rem; }
  .hero-benefits { color: #8293a3; }
  .setup-v2 { margin-inline: -2px; padding: 18px; border-radius: 17px; }
  .setup-heading h2, .section-v2 h2 { font-size: 1.55rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .practice-filters { grid-template-columns: 1fr 1fr; }
  .practice-clear { grid-column: 1 / -1; }
  .practice-catalog { grid-template-columns: 1fr; }
  .practice-card { min-height: 225px; }
  .movie-home-catalog {
    grid-template-columns: 82% 82%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 2px 1px 10px;
  }
  .movie-home-card { scroll-snap-align: start; }
  .error-support { align-items: flex-start; flex-direction: column; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-primary,
  .practice-card,
  .movie-home-card { transition: none; }
}


/* === Lesson covers ===
   Real user lessons reuse the source thumbnail when available.
   Prebuilt practices use a branded audio cover so no unrelated photo is implied. */
.lesson-cover {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--ft-line, #22364b);
  border-radius: 14px;
  background:
    radial-gradient(circle at 76% 18%, rgba(78,161,255,.2), transparent 34%),
    linear-gradient(145deg, #102235 0%, #0a1725 58%, #07101a 100%);
  color: var(--ft-text, #f6f8fb);
  isolation: isolate;
}
.lesson-cover-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #07101a;
}
.lesson-cover.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4,9,15,.08) 20%, rgba(4,9,15,.78) 100%);
}
.lesson-cover-fallback {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
}
.lesson-cover.has-image .lesson-cover-waveform { display: none; }
.lesson-cover-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.lesson-cover-kind {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #c8d5e3;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.lesson-cover-badge {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid rgba(201,220,255,.3);
  border-radius: 999px;
  background: rgba(5,13,22,.62);
  color: #dbeaff;
  font-size: .65rem;
  font-weight: 850;
}
.lesson-cover-title {
  align-self: flex-start;
  max-width: 92%;
  overflow: hidden;
  color: white;
  font-size: clamp(.95rem, 2vw, 1.16rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.lesson-cover-waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 27px;
  opacity: .82;
}
.lesson-cover-waveform i {
  display: block;
  width: 3px;
  height: var(--cover-bar-height);
  min-height: 5px;
  border-radius: 999px;
  background: #6ea8ff;
}
.lesson-cover--practice {
  aspect-ratio: 16 / 8.4;
  border: 0;
  border-bottom: 1px solid rgba(49,80,111,.6);
  border-radius: 15px 15px 0 0;
}
.lesson-cover--practice .lesson-cover-title { max-width: 82%; font-size: 1.05rem; }
.lesson-cover--practice .lesson-cover-kind { color: #a9d1ff; }

.practice-card {
  padding: 0 0 18px;
  gap: 10px;
  background: rgba(12,24,37,.82);
}
.practice-card::before { display: none !important; }
.practice-card > .practice-card-top,
.practice-card > .practice-card-title,
.practice-card > .practice-card-description,
.practice-card > .practice-card-meta,
.practice-card > .practice-card-action {
  margin-inline: 18px;
}
.practice-card > .practice-card-top { margin-top: 6px; }
.practice-card > .practice-card-action { margin-top: auto; }

.saved-list { gap: 12px; }
.saved-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-color: var(--ft-line, #22364b);
  background: rgba(12,24,37,.82);
}
.saved-item > .lesson-cover {
  width: 150px;
  border-radius: 10px;
}
.saved-item-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.saved-item-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.saved-item-copy span { color: var(--ft-muted, #98a9bb); font-size: .82rem; }

.movie-tile .movie-tile-cover {
  aspect-ratio: 16 / 9;
  border: 0;
  border-bottom: 1px solid var(--ft-line, #22364b);
  border-radius: 0;
}
.movie-tile .movie-tile-cover .lesson-cover-fallback { padding: 12px; }

@media (max-width: 720px) {
  .saved-item {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 10px;
  }
  .saved-item > .lesson-cover { width: 100%; }
  .saved-actions { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .practice-card { min-height: 292px; }
  .lesson-cover--practice { aspect-ratio: 16 / 9; }
}
