/* myCL2.ai.academy, on top of myCL2.ai.voices' theme (theme.css): the same colours, header,
   menu (with its baobab) and footer; here, the list of videos and the player. */

/* The right-hand column: the theme's (computers only), with the other myCL2 projects. */
/* Its card, like the ones on myCL2.ai.voices and cl2.ai: a banner (here a neural network drawn
   like a constellation) over the other myCL2 projects. */
.ac-banner { padding: 0; display: block; overflow: hidden; }
.ac-net { display: block; width: 100%; height: 100%; }
.ac-net-lines line { stroke: color-mix(in srgb, var(--primary-ink) 45%, transparent); stroke-width: 1; stroke-dasharray: 3 5; animation: ac-signal 1.8s linear infinite; animation-delay: var(--k); }
.ac-net-nodes circle { fill: var(--primary-ink); opacity: 0.55; animation: ac-fire 3s ease-in-out infinite; animation-delay: var(--k); }
@keyframes ac-signal { to { stroke-dashoffset: -16; } }
@keyframes ac-fire { 0%, 100% { opacity: 0.45; } 40% { opacity: 1; fill: var(--gold); } }
@media (prefers-reduced-motion: reduce) { .ac-net * { animation: none !important; } }
/* Under the banner: "myCL2 projects", the card's title, then the projects. */
.ac-rail-more { padding-top: 16px; }
.ac-rail-title {
  margin: 0 0 14px; font-size: 1.2rem; font-weight: 400; color: var(--primary); /* not bold; "myCL2" in it drawn like the logo */
}
.ac-rail-projs { display: grid; gap: 8px; }
.ac-rail-proj {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; line-height: 1.3;
}
.ac-rail-proj:hover { border-color: var(--accent); }
.ac-rail-proj svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--primary); }
.ac-rail-proj > span { display: grid; gap: 3px; min-width: 0; }
.ac-rail-proj .brand-inline { font-size: 1.02rem; }
.ac-rail-proj small { font-size: 0.78rem; color: var(--muted); }
/* myCL2.ai.voices is in the right-hand column on computers; on smaller screens, in the ☰ menu
   (its group, the menu's last, hidden with it). Contact us is in the footer. */
@media (min-width: 1101px) { .sidenav .ac-no-rail { display: none; } }

/* The videos' titles in Fraunces, a warm serif: on the cards, above the player and on each
   video's first screen. */
.ac-video-text b, .ac-prev b, .sc-h1 { font-family: "Fraunces", Georgia, serif; font-optical-sizing: auto; }
.ac-video-text b { font-size: 1.08rem; font-weight: 400; }
.ac-prev b { font-weight: 400; }

/* Header: the logo on the left, the search in the middle, the language on the right. */
.ac-topbar { grid-template-columns: 1fr minmax(0, 520px) 1fr; grid-template-areas: "brand search account"; }
.ac-top-right { justify-self: end; }
.ac-top-right { grid-area: account; display: flex; align-items: center; gap: 10px; }
@media (max-width: 600px) { .ac-top-right { gap: 6px; } }
.ac-langs { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); }
.ac-langs button {
  border: 0; background: transparent; padding: 5px 11px; border-radius: 999px; cursor: pointer;
  font-size: 0.8rem; font-weight: 800; color: var(--muted);
}
.ac-langs button[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); }
@media (max-width: 600px) { .ac-topbar { padding: 10px 14px; gap: 10px; } }

/* The colours of the three circles, everywhere: AI, machine learning, deep learning. */
:root { --c-ai: var(--primary); --c-ml: var(--accent); --c-dl: var(--good); }
.c-ai { --c: var(--c-ai); }
.c-ml { --c: var(--c-ml); }
.c-dl { --c: var(--c-dl); }

/* --- the list of videos ---------------------------------------------------------- */

.ac-main { max-width: 1080px; }
.ac-hero { max-width: 720px; }
/* The home page's title: in the videos' serif, "in your language" in brown, a short gold
   stroke under it; the sentence under it a touch larger. */
.ac-home-title { font-family: "Fraunces", Georgia, serif; font-optical-sizing: auto; font-weight: 400; font-size: clamp(1.4rem, 1.15rem + 0.8vw, 1.75rem); line-height: 1.2; margin-bottom: 10px; }
.ac-home-title em { font-style: normal; color: var(--accent); }
.ac-home-title::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 10px; border-radius: 2px; background: var(--gold); }
.ac-home-lede { font-size: 1.05rem; line-height: 1.55; text-wrap: pretty; }
.ac-hero:has(.ac-home-lede) { max-width: none; } /* the sentence breaks only where the page's width needs it */
.ac-track + .ac-track { margin-top: 36px; }
.ac-track h2 { font-size: 1.15rem; margin: 8px 0 12px; }
.ac-track h2 a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; }
.ac-track h2 a:hover { color: var(--primary); }
/* Each series' name over a gold line across the page, separating the series; the same
   under the name on a series' own page. */
.ac-track h2, .ac-track-title { padding-bottom: 8px; border-bottom: 2px solid color-mix(in srgb, var(--gold) 70%, transparent); }
.ac-hero:has(.ac-track-title) { max-width: none; }
.ac-track-title { margin-bottom: 10px; }
.ac-track h2 svg { width: 22px; height: 22px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ac-videos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.ac-video { display: flex; flex-direction: column; height: 100%; padding: 0; overflow: hidden; color: var(--text); text-decoration: none; }
a.ac-video:hover { border-color: var(--primary); }
a.ac-video:hover .ac-thumb-play { transform: scale(1.1); }
.ac-thumb {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9;
  /* The cream of the main card on cl2.ai (and voices' Welcome): a touch of gold in the surface. */
  background: linear-gradient(to bottom, color-mix(in srgb, var(--gold) 14%, var(--surface)), color-mix(in srgb, var(--gold) 5%, var(--surface)));
}
.ac-thumb svg { width: 100%; height: 100%; }
.ac-thumb circle { fill: color-mix(in srgb, var(--c) 16%, transparent); stroke: var(--c); stroke-width: 2; }
.ac-thumb .dot { fill: var(--c); stroke: none; }
.ac-thumb .ax { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.ac-thumb .ln { fill: none; stroke: var(--c); stroke-width: 3; stroke-linecap: round; }
.ac-thumb .bar { fill: color-mix(in srgb, var(--c) 55%, transparent); stroke: none; }
.ac-thumb .drop { fill: var(--c); stroke: var(--surface); stroke-width: 2; }
.ac-thumb .box { fill: color-mix(in srgb, var(--c) 14%, transparent); stroke: var(--c); stroke-width: 3; }
.ac-thumb .qm { fill: var(--c); }
.ac-thumb-play {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: var(--primary-ink); box-shadow: var(--shadow); transition: transform 0.15s;
}
.ac-thumb-play svg { width: 24px; height: 24px; fill: currentColor; }
.ac-dur { position: absolute; right: 8px; bottom: 8px; padding: 1px 7px; border-radius: 6px; background: rgb(0 0 0 / 0.7); color: #fff; font-size: 0.78rem; font-weight: 700; }
.ac-dur:empty { display: none; }
/* Not out yet: its series' icon, faint, and "Soon". */
.soon .ac-thumb { align-content: center; gap: 6px; }
.soon .ac-thumb > svg { width: 40px; height: 40px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.6; }
.ac-soon { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.ac-video.soon { opacity: 0.7; }
.ac-video-text { display: grid; gap: 2px; padding: 12px 14px 14px; }
.ac-video-text small { font-size: 0.75rem; font-weight: 800; color: var(--text); }
.ac-video-text b { line-height: 1.3; color: var(--accent); } /* as over the player: the title in brown */
.ac-video-text span { font-size: 0.85rem; color: var(--muted); }

/* --- the player: always the whole video on screen ---------------------------------- */

/* The watch page takes exactly the room between the header and the footer, and the
   stage is scaled (academy.js: fit) to the largest 16:9 that fits in what's left after
   the title, captions and controls: nothing to scroll, on any screen. */
.ac-watching main.ac-watch-main {
  max-width: none; padding: 10px 16px; margin: 0;
  height: calc(100dvh - var(--header-h, 79px) - var(--footer-h, 53px));
}
.ac-watching { overflow: hidden; }
.ac-player { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 8px; min-height: 0; }
.ac-player:fullscreen { padding: 12px; background: var(--bg); }
/* The emblem over the player: as big as the room left over allows, not shown when that room
   is too small, nor in full screen. */
.ac-logo {
  flex: 1 1 0; min-height: 0; overflow: hidden; container-type: size;
  display: grid; place-items: center;
  margin-bottom: -8px; /* the player's gap after it: none when it has no room */
}
.ac-emblem { height: min(86cqh, 60cqw, 230px); width: auto; overflow: visible; }
.ac-emblem .em-sun { animation: em-glow 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes em-glow { 50% { scale: 1.08; opacity: 0.85; } }
/* The tree as faint and solid as cl2.ai's grove (the sun goes behind it, not through it). */
.ac-emblem .em-tree { --shade: color-mix(in srgb, var(--text) 32%, var(--bg)); fill: var(--shade); stroke: var(--shade); }
.ac-emblem .em-cap path { fill: var(--primary); }
.ac-emblem .em-cap .em-tassel { fill: none; stroke: var(--gold); }
.ac-emblem .em-tassel-end { fill: var(--gold); }
.ac-emblem .em-book path { fill: var(--surface); stroke: var(--primary); stroke-width: 3; stroke-linejoin: round; }
.ac-emblem .em-book .em-lines { stroke: color-mix(in srgb, var(--primary) 35%, transparent); stroke-width: 2; stroke-linecap: round; }
.ac-emblem .em-sparkles path { fill: var(--gold); animation: em-twinkle 2.4s var(--d) ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes em-twinkle { 0%, 100% { opacity: 0.25; scale: 0.7; } 50% { opacity: 1; scale: 1; } }
@media (prefers-reduced-motion: reduce) { .ac-emblem * { animation: none !important; } }
@container (max-height: 46px) { .ac-emblem { display: none; } }
.ac-player:fullscreen .ac-logo { display: none; }
.ac-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
/* Back to the previous video (or the series): "<", the series and number in the text's colour,
   the title in brown. */
.ac-prev {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; padding: 4px 10px 4px 4px; border-radius: 10px;
  color: var(--text); text-decoration: none; font-size: 1.05rem; font-weight: 700;
}
.ac-prev:hover { background: var(--surface-2); }
.ac-prev span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-prev small { font-size: inherit; font-weight: 800; color: var(--text); }
.ac-prev b { color: var(--accent); }
.ac-prev svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* …and forward to the next one, on the right. Each takes at most half the line. */
.ac-head { justify-content: space-between; }
.ac-head .ac-prev { flex: 0 1 auto; max-width: calc(50% - 8px); }
.ac-next { padding: 4px 4px 4px 10px; margin-left: auto; }
/* Phones: no room for the series' name (the same on both sides); the number and title stay. */
@media (max-width: 600px) { .ac-prev { font-size: 0.95rem; } }
.ac-player:fullscreen .ac-head { display: none; }
/* The tagline at the top of every page, as on myCL2.ai.voices (out of the way on phones
   held sideways, and not in full screen, which shows the player alone). */
.ac-main > .ac-tagline { margin: 0 auto 18px; }
/* The home page: bigger. */
.ac-home > .ac-tagline { font-size: clamp(2rem, 1.4rem + 1.6vw, 2.6rem); margin-bottom: 22px; }
/* Over the player: at the top of the page, a little smaller, the player (and its video,
   sized to fit) in the room below it. */
.ac-watching main.ac-watch-main { display: flex; flex-direction: column; }
.ac-watch-main > .ac-tagline { flex: none; margin: 0 auto 6px; font-size: clamp(1.15rem, 2.4vw, 1.5rem); }
.ac-watch-main > .ac-player { flex: 1 1 0; height: auto; }
/* Short computer screens: the video's title steps aside (it's in the tab's title). */
@media (max-height: 720px) and (min-width: 701px) { .ac-head { display: none; } }

.ac-screen { flex: none; display: grid; place-items: center; }
.ac-frame { position: relative; overflow: hidden; border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--border); }
/* The ribbon along the top edge, as on myCL2.ai.voices' cards: 5px of the theme's primary blue
   over the video (whatever its size), taking none of its room. */
.ac-frame::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--primary); z-index: 3; pointer-events: none; }
/* …and the same along the bottom edge. */
.ac-frame::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--primary); z-index: 3; pointer-events: none; }
.ac-stage {
  position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; cursor: pointer;
  background:
    radial-gradient(circle at 85% 10%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 40%),
    radial-gradient(circle at 5% 100%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 45%),
    var(--surface);
  color: var(--text); font-size: 28px; line-height: 1.35; user-select: none;
}
.ac-stage.paused *, .ac-stage.paused *::before { animation-play-state: paused !important; }

.ac-bigplay {
  /* Under the title scene's title, not over it. */
  position: absolute; left: 50%; top: 76%; translate: -50% -50%; width: clamp(56px, 12%, 96px); aspect-ratio: 1; border-radius: 50%;
  border: 0; display: grid; place-items: center; cursor: pointer;
  background: var(--primary); color: var(--primary-ink); box-shadow: 0 6px 30px rgb(0 0 0 / 0.3);
}
.ac-bigplay svg { width: 44%; height: 44%; fill: currentColor; margin-left: 6%; }
.ac-bigplay:hover { scale: 1.06; }
.ac-bigplay[hidden], .ac-end[hidden] { display: none; }
.ac-end {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(3px);
}
.ac-end .btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.ac-end .btn svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* Captions: a fixed room for two lines (three on phones); a longer one gets smaller. */
.ac-caption {
  margin: 0; flex: none; text-align: center; font-weight: 600; line-height: 1.35;
  font-size: clamp(14px, 1.1vw + 6px, 20px); height: calc(2 * 1.35em + 2px + 22px); overflow: hidden;
  padding-top: 22px; /* 30px under the video, with the player's 8px gap (inside the box, so the video's sizing counts it) */
  display: flex; align-items: flex-start; justify-content: center; text-wrap: balance; /* just under the video: the same gap whatever its length */
}
@media (max-width: 700px) { .ac-caption { height: calc(3 * 1.35em + 2px + 22px); } }
.ac-player.no-cc .ac-caption { height: 0; padding-top: 0; }

.ac-controls { flex: none; display: flex; align-items: center; gap: 6px; padding-top: 22px; } /* 30px under the video with the player's 8px gap (padding, so the video's sizing counts it) */
.ac-btn {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 0; border-radius: 10px; background: transparent; color: var(--text);
}
.ac-btn:hover { background: var(--surface-2); }
.ac-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ac-toggle { background: var(--primary); color: var(--primary-ink); border-radius: 50%; }
.ac-toggle:hover { background: color-mix(in srgb, var(--primary) 88%, black); }
.ac-toggle svg, #ac-prev svg, #ac-next svg { fill: currentColor; stroke-width: 1.5; }
.ac-cc[aria-pressed="false"] { color: var(--muted); opacity: 0.6; }
.ac-progress { flex: 1; min-width: 60px; position: relative; height: 30px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.ac-track-bar { width: 100%; height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; }
.ac-track-bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.ac-ticks i { position: absolute; top: 12px; width: 2px; height: 6px; background: var(--surface); }
.ac-time { flex: none; font-size: 0.8rem; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
@media (max-width: 520px) {
  .ac-watching main.ac-watch-main { padding: 8px 10px; }
  .ac-controls { gap: 2px; }
  .ac-btn { width: 34px; height: 34px; }
  .ac-controls .ac-langs button { padding: 4px 7px; }
  .ac-time { font-size: 0.72rem; }
}
@media (max-width: 380px) { #ac-prev, #ac-next { display: none; } }
/* Phones held sideways: the header and footer step aside for the video. */
@media (max-height: 500px) and (orientation: landscape) {
  .ac-watching .topbar, .ac-watching .footer { display: none; }
  .ac-watching main.ac-watch-main { height: 100dvh; padding: 6px 10px; }
  .ac-watching .ac-head { display: none; }
  .ac-watching .ac-tagline { display: none; }
  .ac-caption { height: calc(1 * 1.35em + 2px); padding-top: 0; font-size: 14px; } /* no room to spare sideways */
}

/* "myCL2.ai.academy" (or .ai.voices) inside the videos, drawn like the logo in the header: a
   big "CL2" in drifting gold-orange, a small raised "my" against it and a small ".ai.academy"
   after it (the logo's 11 : 27 : 13), a little larger than the text around it. */
.ac-stage .brand-inline { font-style: italic; letter-spacing: 0.01em; }
.ac-stage .brand-inline .bi-cl { font-size: 1.3em; font-weight: 900; letter-spacing: -0.01em; padding-right: 0.08em; }
.ac-stage .brand-inline .bi-my { font-size: 0.53em; vertical-align: 1.05em; margin-right: -0.22em; font-weight: 700; color: var(--primary); }
.ac-stage .brand-inline .bi-voices { font-size: 0.63em; font-weight: 700; color: var(--primary); }

/* The logo in a caption: the header's, at the caption's size (its 11 : 27 : 13). */
.ac-brand { vertical-align: baseline; }
.ac-brand .brand-cl { font-size: 1.3em; }
.ac-brand .brand-my { font-size: 0.53em; vertical-align: 1.05em; }
.ac-brand .brand-voices { font-size: 0.63em; }

/* --- the stage's shared pieces (sizes in the stage's 1280×720 pixels) --------------- */

.ac-scene {
  position: absolute; inset: 0; padding: 56px 80px 48px; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transition: opacity 0.5s, visibility 0s 0.5s; z-index: 0;
}
.ac-scene.active { opacity: 1; visibility: visible; transition: opacity 0.5s; }
/* What a line talks about appears with it. */
.ac-scene [data-at] { opacity: 0; transform: translateY(16px); transition: opacity 0.6s, transform 0.6s; }
.ac-scene [data-at].on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ac-scene [data-at] { transform: none; }
  .ac-stage * { animation: none !important; }
}

.sc-kicker { margin: 0 0 6px; font-size: 24px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.sc-kicker.c-ai, .sc-kicker.c-ml, .sc-kicker.c-dl { color: var(--c); }
.sc-h1 { margin: 0; font-size: 80px; line-height: 1.1; font-weight: 900; letter-spacing: -0.02em; }
/* A video's title scene: the series in the text's colour, the title in brown (as over the
   player and on the list). */
.sc-h1 { color: var(--accent); font-weight: 400; letter-spacing: -0.01em; }
/* Computers and laptops: the first screen's title a fifth smaller (phones and tablets keep it). */
@media (min-width: 1024px) { .sc-h1 { font-size: 64px; } }
.sc-kicker:has(+ .sc-h1) { color: var(--text); }
.sc-h2 { margin: 0 0 18px; font-size: 48px; line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
.sc-p { margin: 0 0 18px; font-size: 30px; }
.sc-p.muted { color: var(--muted); }
.sc-p.dot { position: relative; padding-left: 40px; }
.sc-p.dot::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 24px; height: 24px; border-radius: 50%; background: var(--c); }
.sc-p.dot b { color: var(--c); }
.sc-row { flex: 1; display: flex; align-items: center; gap: 60px; }
.sc-col { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.chip { padding: 10px 24px; border-radius: 999px; font-size: 28px; font-weight: 800; color: var(--c); border: 3px solid var(--c); background: color-mix(in srgb, var(--c) 12%, var(--surface)); }
.op { font-size: 48px; font-weight: 800; color: var(--muted); }
.model {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 22px; border-radius: 20px;
  background: color-mix(in srgb, var(--c-ml) 14%, var(--surface)); border: 3px solid var(--c-ml); color: var(--c-ml); font-size: 26px; font-weight: 800;
}
.model svg { width: 86px; height: 86px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.wa-tiles, .tiles { display: flex; gap: 24px; justify-content: center; margin-top: auto; margin-bottom: auto; }
.tile {
  width: 200px; padding: 24px 12px 18px; border-radius: 22px; text-align: center; background: var(--surface-2); border: 2px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 24px; font-weight: 700; line-height: 1.2;
  opacity: 0; transform: translateY(24px); transition: 0.5s var(--d, 0s);
}
.tile svg { width: 76px; height: 76px; fill: none; stroke: var(--primary); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.on > .tile, .tile.on { opacity: 1; transform: none; }
.wa-tiles.small .tile { width: 260px; padding: 16px 12px 14px; flex-direction: row; justify-content: center; font-size: 22px; }
.wa-tiles.small .tile svg { width: 46px; height: 46px; }

/* The "Language and voice AI" videos' shared pieces (lv-): their title and last scenes, steps
   joined by arrows, cards, token chips, a closing note. */
.lv-title { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; }
.lv-title > [data-at] { margin-top: 18px; }
.lv-mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; }
.lv-flow { display: flex; align-items: center; justify-content: center; gap: 18px; }
.lv-flow > .lv-arrow { font-size: 44px; font-weight: 800; color: var(--muted); }
.lv-step {
  display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 170px; padding: 22px 20px 18px; border-radius: 22px; text-align: center;
  background: var(--surface-2); border: 3px solid var(--c, var(--border)); font-size: 26px; font-weight: 800; color: var(--c, var(--text));
}
.lv-step svg { width: 76px; height: 76px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lv-step small { font-size: 19px; font-weight: 600; color: var(--muted); }
.lv-step .lv-emoji { font-size: 64px; line-height: 1; }
.lv-box { padding: 18px 30px; border-radius: 18px; background: var(--surface-2); border: 2px solid var(--border); font-size: 34px; font-weight: 700; }
.lv-flow .lv-box { white-space: nowrap; font-size: 32px; }
.lv-cards { display: flex; justify-content: center; gap: 26px; }
.lv-card {
  width: 340px; padding: 30px 24px 26px; border-radius: 24px; text-align: center; background: var(--surface-2); border: 2px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 10px; animation: lv-pop 0.45s var(--d, 0s) both;
}
.lv-card i { font-style: normal; font-size: 84px; line-height: 1; }
.lv-card b { font-size: 32px; line-height: 1.2; }
.lv-card span { font-size: 22px; color: var(--muted); font-weight: 600; line-height: 1.3; }
@keyframes lv-pop { from { opacity: 0; transform: translateY(14px); } }
.lv-tok {
  display: inline-block; padding: 8px 16px; border-radius: 12px; font-size: 38px; font-weight: 800; white-space: pre;
  background: hsl(var(--h) 70% 88%); color: hsl(var(--h) 55% 28%); border: 2px solid hsl(var(--h) 55% 60%);
}
.lv-note { margin: 0; text-align: center; font-size: 30px; font-weight: 700; color: var(--muted); }
.lv-note b { color: var(--accent); }
.lv-good { color: var(--good); }
.lv-bad { color: var(--danger); }
.lv-recap { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding-left: 80px; }
.lv-recap p { margin: 0; font-size: 34px; font-weight: 700; line-height: 1.3; }
.lv-recap p::before { content: "✓ "; color: var(--good); }
.lv-next { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.lv-next > .sc-h2 { font-size: 46px; }
.lv-next em { font-style: normal; color: var(--accent); }
.lv-next-card { margin-top: 36px; padding: 28px 60px; border-radius: 24px; background: var(--surface); border: 3px solid var(--primary); box-shadow: var(--shadow); }
.lv-next-card .brand-inline { font-size: 34px; margin: 10px 0 0; }
.lv-done { margin: 0; font-size: 90px; line-height: 1; }
.lv-brand { margin: 6px 0 0; font-size: 52px; }
.lv-brand.big { font-size: 80px; margin: 0; }
.lv-chat { display: flex; flex-direction: column; gap: 14px; width: 820px; }
.lv-chat p { margin: 0; max-width: 88%; padding: 14px 24px; border-radius: 22px; font-size: 30px; font-weight: 600; line-height: 1.35; }
.lv-chat .me { align-self: flex-end; background: var(--primary); color: var(--primary-ink); border-bottom-right-radius: 4px; }
.lv-chat .ai { align-self: flex-start; display: flex; align-items: flex-start; gap: 14px; background: var(--surface-2); border: 2px solid var(--border); border-bottom-left-radius: 4px; }
.lv-chat .ai svg { flex: none; width: 40px; height: 40px; fill: none; stroke: var(--primary); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.lv-compare { display: flex; gap: 36px; }
.lv-compare > div { width: 500px; padding: 22px 28px; border-radius: 22px; display: flex; flex-direction: column; gap: 10px; }
.lv-compare .bad { background: color-mix(in srgb, var(--danger) 7%, var(--surface)); border: 3px solid color-mix(in srgb, var(--danger) 50%, var(--border)); }
.lv-compare .good { background: color-mix(in srgb, var(--good) 9%, var(--surface)); border: 3px solid var(--good); }
.lv-compare b { font-size: 28px; text-transform: uppercase; letter-spacing: 0.05em; }
.lv-compare .bad b { color: var(--danger); }
.lv-compare .good b { color: var(--good); }
.lv-compare p { margin: 0; font-size: 28px; font-weight: 600; line-height: 1.35; }
.lv-bars { display: flex; flex-direction: column; gap: 12px; width: 860px; }
.lv-bars > div { display: grid; grid-template-columns: 260px 1fr; align-items: center; gap: 18px; font-size: 28px; font-weight: 800; }
.lv-bars i { height: 30px; width: var(--w); min-width: 6px; border-radius: 6px; background: var(--primary); animation: lv-grow 0.9s var(--d) ease-out both; }
.lv-bars .good i { background: var(--good); }
.lv-bars .bad i { background: var(--danger); }
.lv-bars .accent i { background: var(--accent); }
@keyframes lv-grow { from { width: 0; } }
.lv-stat { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lv-stat b { font-size: 110px; line-height: 1; color: var(--accent); }
.lv-stat span { font-size: 30px; font-weight: 700; color: var(--muted); text-align: center; max-width: 900px; }
.lv-list { display: flex; flex-direction: column; gap: 16px; max-width: 1000px; }
.lv-list p { margin: 0; display: flex; align-items: center; gap: 20px; font-size: 32px; font-weight: 700; line-height: 1.3; }
.lv-list i { flex: none; width: 60px; text-align: center; font-style: normal; font-size: 44px; }
.lv-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 1000px; }
.lv-tags span { padding: 10px 22px; border-radius: 999px; background: var(--surface-2); border: 2px solid var(--border); font-size: 28px; font-weight: 800; animation: lv-pop 0.4s var(--d) both; }
.lv-code { margin: 0; padding: 24px 32px; border-radius: 18px; background: #1a2033; color: #e7eaf3; font: 600 28px/1.55 ui-monospace, Menlo, Consolas, monospace; text-align: left; }
.lv-code b { color: #f6c05c; font-weight: 700; }
.lv-code i { color: #8b95b3; }
.lv-code u { text-decoration: none; color: #8fd19e; }
.lv-msg { margin: 0; display: flex; align-items: center; gap: 16px; max-width: 920px; padding: 18px 28px; border-radius: 22px 22px 22px 4px; background: var(--surface-2); border: 2px solid var(--border); font-size: 32px; font-weight: 700; line-height: 1.3; }
.lv-msg i { font-style: normal; font-size: 46px; }

/* The left menu: only All videos in bold. */
.sidenav a:not([data-nav="home"]) { font-weight: 500; }

/* --- the search, in the header -------------------------------------------------- */

.ac-search { grid-area: search; position: relative; display: flex; align-items: center; gap: 4px; min-width: 0; }
.ac-s-field {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; height: 40px; padding: 0 4px 0 16px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.ac-s-field:focus-within { background: var(--surface); border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.ac-search input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; padding: 0;
  font: inherit; font-size: 0.95rem; color: var(--text);
}
.ac-search input::placeholder { color: var(--muted); }
.ac-search input::-webkit-search-cancel-button { display: none; }
.ac-s-btn {
  flex: none; width: 30px; height: 30px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: none; color: var(--muted); cursor: pointer;
}
.ac-s-btn:hover { background: var(--surface-2); color: var(--text); }
.ac-s-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ac-s-btn[hidden] { display: none; }
/* The magnifying glass, at the end of the bar. */
.ac-s-go { width: 32px; height: 32px; color: var(--primary); }
.ac-s-go svg { width: 20px; height: 20px; }
.ac-s-open, .ac-s-back { display: none; }

/* The best results, dropped down under the bar. */
.ac-s-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; margin: 0; padding: 6px; list-style: none;
  max-height: min(480px, calc(100dvh - var(--header-h, 79px) - 20px)); overflow-y: auto;
  border-radius: 16px; border: 1px solid var(--border); background: var(--surface); box-shadow: 0 12px 32px rgb(0 0 0 / 0.16);
}
.ac-s-list li[data-i] { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.ac-s-list li[aria-selected="true"] { background: var(--primary-soft); }
.ac-s-pic {
  flex: none; width: 72px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--gold) 14%, var(--surface)), color-mix(in srgb, var(--gold) 5%, var(--surface)));
}
.ac-s-pic svg { width: 100%; height: 100%; }
.ac-s-pic.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Its picture drawn as on the cards. */
.ac-s-pic circle { fill: color-mix(in srgb, var(--c) 16%, transparent); stroke: var(--c); stroke-width: 2; }
.ac-s-pic .dot { fill: var(--c); stroke: none; }
.ac-s-pic .ax { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.ac-s-pic .ln { fill: none; stroke: var(--c); stroke-width: 3; stroke-linecap: round; }
.ac-s-pic .bar { fill: color-mix(in srgb, var(--c) 55%, transparent); stroke: none; }
.ac-s-pic .drop { fill: var(--c); stroke: var(--surface); stroke-width: 2; }
.ac-s-pic .box { fill: color-mix(in srgb, var(--c) 14%, transparent); stroke: var(--c); stroke-width: 3; }
.ac-s-pic .qm { fill: var(--c); }
.ac-s-text { min-width: 0; display: grid; gap: 1px; }
.ac-s-text small { font-size: 0.72rem; font-weight: 800; color: var(--muted); }
.ac-s-soon { text-transform: uppercase; letter-spacing: 0.05em; }
.ac-s-text b { font-family: "Fraunces", Georgia, serif; font-weight: 400; font-size: 0.98rem; line-height: 1.25; color: var(--accent); }
.ac-said { font-size: 0.8rem; color: var(--muted); line-height: 1.35; }
.ac-said em { font-style: normal; font-weight: 700; color: var(--text); }
.ac-s-all { justify-content: center; padding: 10px; margin-top: 4px; border-top: 1px solid var(--border); border-radius: 0 0 10px 10px; font-size: 0.88rem; font-weight: 800; color: var(--primary); }
.ac-s-none { padding: 14px 12px; color: var(--muted); font-size: 0.9rem; }
.ac-s-list mark, .ac-main mark { background: color-mix(in srgb, var(--gold) 38%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }

/* The results page: the series found as chips, then the videos as cards. */
.ac-s-tracks { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; padding: 0; }
.ac-s-tracks a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; color: var(--text); font-weight: 700; }
.ac-s-tracks a:hover { border-color: var(--primary); }
.ac-s-tracks svg { width: 18px; height: 18px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ac-video-text .ac-said { margin-top: 4px; }

/* Narrower screens: the bar gets narrower, and below 700px it hides behind a magnifying
   glass; once opened it covers the header's row, with a back arrow to close it. */
@media (max-width: 900px) { .ac-topbar { grid-template-columns: auto minmax(0, 1fr) auto; } }
@media (max-width: 700px) {
  .ac-topbar { grid-template-columns: 1fr auto; grid-template-areas: "brand account"; }
  .ac-search { display: none; }
  .ac-s-open { display: grid; width: 34px; height: 34px; color: var(--text); }
  .ac-s-open svg { width: 21px; height: 21px; }
  .ac-searching .ac-search {
    display: flex; position: absolute; inset: 0; z-index: 20; padding: 0 10px; background: var(--surface);
  }
  .ac-searching .ac-s-back { display: grid; }
  .ac-searching .ac-s-list { left: 8px; right: 8px; top: calc(100% + 4px); }
}
/* Small phones: the magnifying glass close to the language, to leave the logo its room. */
@media (max-width: 430px) { .ac-top-right { gap: 2px; } .ac-s-open { width: 30px; } .ac-langs button { padding-inline: 9px; } }
.lv-compare p small { font-size: 22px; font-weight: 700; color: var(--muted); }
.lv-title .lv-chat { width: 560px; }
.lv-title .lv-chat p { font-size: 28px; }
.lv-mid > .lv-box { margin: 0; max-width: 1040px; text-align: center; }
.lv-cards.many .lv-card { width: 255px; }
.lv-cards.many .lv-card b { font-size: 28px; }
