/* Fonts, served from this site: Manrope (variable) and JetBrains Mono. */
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/static/fonts/manrope-cyrillic-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/static/fonts/manrope-latin-ext-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/static/fonts/manrope-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 500; src: url(/static/fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 600; src: url(/static/fonts/jetbrains-mono-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* Night Shift: the app's ink and amber, as a dark site. */
:root {
  --bg: #0e121b;
  --surface: #161b27;
  --surface-2: #1c2231;
  --line: #262d3d;
  --line-2: #343c50;
  --fg: #f4efe6;
  --fg-2: #c9c6c0;
  --muted: #8e96a8;
  --amber: #f0a23b;
  --amber-2: #d27a1e;
  --amber-soft: rgba(240, 162, 59, 0.1);
  --amber-ink: #1a1204;
  --cream: #f4efe6;
  --ink: #1a1d26;
  --navy: #1e2b7a;
  --danger: #ff8370;
  --ok: #7fd6a3;
  --radius: 14px;
  --nav-h: 64px;
  --bar-h: 0px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans", "Noto Sans CJK SC", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: var(--bar-h);
}

body.has-player {
  --bar-h: 76px;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

img {
  max-width: 100%;
  display: block;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

.narrow {
  max-width: 760px;
}

main {
  flex: 1;
}

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

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Header */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--nav-h);
  background: rgba(14, 18, 27, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.logo img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-right: auto;
}

.nav-links a,
.nav-item {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"],
.nav-item:hover {
  color: var(--fg);
  background: var(--surface);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--fg-2);
  flex: none;
}

.icon-btn:hover {
  background: var(--surface);
  color: var(--fg);
}

.icon-btn[aria-pressed="true"] {
  color: var(--amber);
  background: var(--amber-soft);
}

.icon-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.menu {
  position: relative;
}

.menu-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.6);
  display: grid;
  z-index: 40;
}

.menu-pop a,
.menu-pop button {
  text-align: left;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.menu-pop a:hover,
.menu-pop button:hover {
  background: var(--line);
}

.menu-pop hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 6px 0;
  width: 100%;
}

.menu-label {
  font-size: 12px;
  color: var(--muted);
  padding: 8px 12px 4px;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.only-mobile {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.2;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-p {
  background: var(--amber);
  color: var(--amber-ink);
}

.btn-p:hover {
  background: #f7b257;
}

.btn-s {
  border-color: var(--line-2);
  color: var(--fg);
}

.btn-s:hover {
  border-color: var(--muted);
  background: var(--surface);
}

.btn-light {
  background: var(--cream);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 9px;
}

/* As wide and tall as Google's button above it. */
.btn-apple {
  width: 100%;
  max-width: 320px;
  min-height: 40px;
  border-radius: 999px;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 13.5px;
  border-radius: 8px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.btn-danger {
  border-color: rgba(255, 131, 112, 0.4);
  color: var(--danger);
}

.link {
  color: var(--amber);
  font-weight: 600;
}

.link:hover {
  text-decoration: underline;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg-2);
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--muted);
  color: var(--fg);
}

.chip[aria-pressed="true"],
.chip[aria-current="page"],
.chip.on {
  background: var(--amber-soft);
  border-color: rgba(240, 162, 59, 0.5);
  color: var(--amber);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  font: 600 11px var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-soft);
  padding: 2px 7px;
  border-radius: 5px;
  white-space: nowrap;
}

.hero {
  position: relative;
  padding: clamp(40px, 6vw, 88px) 0 clamp(64px, 8vw, 110px);
  overflow: hidden;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.hero-grid > * {
  min-width: 0;
}

.copy {
  display: grid;
  gap: 22px;
  align-content: start;
}

.hero h1 {
  font-size: clamp(42px, 5.8vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  display: block;
}

.lead {
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 500;
  max-width: 52ch;
}

.ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Store cards in the hero: a scannable code beside the store name; the whole card links. */
.get-app {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

.stores {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px 10px 10px;
  min-width: 228px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  color: var(--fg);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.store:hover {
  border-color: var(--amber);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.store-qr {
  flex: none;
  padding: 5px;
  background: #fff;
  border-radius: 10px;
}

.store-qr img {
  display: block;
  width: 76px;
  height: 76px;
}

.store-txt {
  display: grid;
  gap: 2px;
  flex: 1;
}

.store-txt b {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.store-go {
  display: flex;
  color: var(--muted);
  transition: color 0.15s ease, transform 0.15s ease;
}

.store:hover .store-go {
  color: var(--amber);
  transform: translateX(3px);
}

.store-hint {
  font-size: 13px;
  color: var(--muted);
}

/* No codes where nobody can scan them: phones, tablets and narrow windows. */
@media (max-width: 980px), (pointer: coarse) {
  .store {
    min-width: 0;
    padding: 12px 16px;
  }
  .store-qr,
  .store-hint {
    display: none;
  }
}

.note {
  font-size: 13px;
  color: var(--muted);
  max-width: 56ch;
}

/* Page heads */
.page-head {
  padding: clamp(28px, 4vw, 56px) 0 8px;
  display: grid;
  gap: 14px;
}

.page-head h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.section {
  padding: clamp(28px, 4vw, 52px) 0;
  display: grid;
  gap: 22px;
}

.section-t {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.section h2,
.section-t h2 {
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 800;
}

.section-t a {
  color: var(--amber);
  font-size: 14px;
  font-weight: 600;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13.5px;
  color: var(--muted);
}

.crumbs a:hover {
  color: var(--fg);
}

.crumbs span[aria-hidden] {
  opacity: 0.5;
}

/* Line marker of the episode page's transcript */
.tl.on::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 2px;
  background: var(--amber);
}

.pp {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--amber);
  color: var(--amber-ink);
  flex: none;
}

.pp:hover {
  background: #f7b257;
}

.pp-lg {
  width: 56px;
  height: 56px;
}

.select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.select select {
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 13.5px;
  color: var(--fg);
  max-width: 100%;
}

/* The homepage's player, drawn as the app's player screen: its dark "ink and amber" colours
   (app/lib/theme.dart), app bar, language toggles, lines and controls, at about 0.85 scale. */
.phone {
  --ph-surface: #11141c;
  --ph-on: #f1ebdd;
  --ph-muted: #9a978c;
  --ph-container: #1b202c;
  --ph-active: rgba(42, 47, 61, 0.5);
  --ph-amber: #f2a950;
  --ph-on-amber: #2a1a03;
  --ph-amber-box: #4a3412;
  --ph-on-amber-box: #fbe0b8;
  --ph-outline: #555b6b;
  --ph-track: #2a3040;
  color: var(--ph-on);
  background: var(--ph-surface);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, "Segoe UI", system-ui, sans-serif;
  border: 10px solid #0b0d12;
  border-radius: 46px;
  box-shadow: 0 0 0 1.5px #3a3f4c, 0 40px 80px -30px rgba(20, 24, 70, 0.75);
  width: 100%;
  max-width: 340px;
  justify-self: center;
  aspect-ratio: 340 / 700;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.phone button {
  font: inherit;
  color: inherit;
}

.sbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 6px 4px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  flex: none;
}

.sbar-time {
  justify-self: center;
}

.sbar-island {
  width: 104px;
  height: 30px;
  border-radius: 20px;
  background: #000;
}

.sbar-icons {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* App bar: artwork and episode title. */
.ph-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  flex: none;
}

.ph-bar img {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  flex: none;
}

.ph-bar b {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Original / translation toggles: a segmented button of two halves. */
.ph-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 10px 6px;
  border: 1px solid var(--ph-outline);
  border-radius: 999px;
  overflow: hidden;
  flex: none;
}

.ph-toggle button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  height: 32px;
  padding: 0 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ph-muted);
}

.ph-toggle button + button {
  border-left: 1px solid var(--ph-outline);
}

.ph-toggle button span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ph-toggle button svg {
  flex: none;
}

.ph-toggle .on {
  background: var(--ph-amber-box);
  color: var(--ph-on-amber-box);
}

/* The transcript */
.ph-lines {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 2px 0 8px;
}

.ph-lines::-webkit-scrollbar {
  display: none;
}

.ph-line {
  display: block;
  position: relative;
  width: calc(100% - 20px);
  margin: 3px 10px;
  padding: 8px 34px 8px 10px;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
}

.ph-line:hover {
  background: rgba(255, 255, 255, 0.03);
}

.ph-line.on {
  background: var(--ph-active);
}

.ph-line .o {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(241, 235, 221, 0.7);
}

.ph-line.on .o {
  color: var(--ph-on);
}

/* The word being spoken */
.ph-line .o .w {
  background: var(--ph-amber);
  color: var(--ph-on-amber);
  border-radius: 2px;
}

.ph-line .t {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ph-muted);
}

.ph-line .o + .t {
  margin-top: 3px;
}

.ph-info {
  position: absolute;
  top: 9px;
  right: 9px;
  color: var(--ph-on);
  opacity: 0.85;
}

/* Both toggles off: the artwork takes the screen, as in the app. */
.ph-cover {
  flex: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  padding: 0 28px;
  text-align: center;
}

.ph-cover img {
  width: 200px;
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: 24px;
}

.ph-cover b {
  font-size: 15px;
  font-weight: 600;
}

/* Seek bar and the five buttons */
.ph-controls {
  background: var(--ph-container);
  padding: 8px 14px 18px;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.25);
  flex: none;
}

.ph-seek {
  position: relative;
  height: 20px;
  cursor: pointer;
}

.ph-seek::before,
.ph-seek b {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 8.5px;
  height: 3px;
  border-radius: 2px;
  background: var(--ph-track);
}

.ph-seek b {
  right: auto;
  background: var(--ph-amber);
}

.ph-seek b::after {
  content: "";
  position: absolute;
  right: -9px;
  top: -7.5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ph-amber);
}

.ph-times {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--ph-muted);
  margin-top: 2px;
}

.ph-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  justify-items: center;
  align-items: center;
  margin-top: 6px;
}

.ph-buttons button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ph-on);
}

.ph-buttons button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.ph-buttons .ph-speed {
  width: auto;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ph-muted);
}

.ph-buttons .ph-speed.on,
.ph-buttons .ph-loop.on {
  color: var(--ph-amber);
}

.ph-buttons .ph-play,
.ph-buttons .ph-play:hover {
  width: 52px;
  height: 52px;
  background: var(--ph-amber);
  color: var(--ph-on-amber);
}

/* Block-level, so the icon sits in the middle rather than on a text baseline. */
.ph-buttons .ph-play span,
.ph-buttons .ph-play svg {
  display: block;
}

/* Podcast grid */
.shows {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 22px 18px;
}

/* A row of podcasts that scrolls sideways */
.shelf {
  /* A grid item: without it the row would widen the page instead of scrolling. */
  min-width: 0;
}

.shelf + .shelf {
  margin-top: 8px;
}

.shelf-t {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  margin-bottom: 8px;
}

.shelf h3 {
  font-size: 19px;
  font-weight: 700;
}

.shelf h3 a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.shelf h3 svg {
  color: var(--amber);
}

.shelf-nav {
  display: flex;
  gap: 4px;
}

@media (hover: none) {
  .shelf-nav {
    display: none;
  }
}

.shelf-row {
  /* To the edges of the page, so covers are cut off there and not at the text's margin. */
  --edge: clamp(16px, 4vw, 40px);
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline: calc(-1 * var(--edge));
  /* Room above for a cover to rise when hovered. */
  padding: 4px var(--edge);
  scroll-padding-inline: var(--edge);
  scroll-snap-type: x proximity;
}

.shelf-row::-webkit-scrollbar {
  display: none;
}

.shelf-row .show {
  flex: 0 0 160px;
  scroll-snap-align: start;
}

.show {
  display: grid;
  /* An auto column would grow to the cover's 300px intrinsic width. */
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  min-width: 0;
  align-content: start;
}

.cover {
  aspect-ratio: 1;
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  object-fit: cover;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.show:hover .cover {
  transform: translateY(-2px);
  border-color: var(--line-2);
}

.show b {
  font-size: 14.5px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.show small {
  color: var(--muted);
  font-size: 12.5px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.show small.note {
  color: var(--fg-2);
  margin-top: 4px;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.section-note {
  color: var(--fg-2);
  margin: -6px 0 18px;
  max-width: 75ch;
}

/* Feature cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.card h3 {
  font-size: 17px;
  font-weight: 700;
}

.card p {
  color: var(--muted);
  font-size: 14.5px;
}

.card .num {
  font: 600 12px var(--mono);
  color: var(--amber);
}

/* The home page's introduction cards */
.card.intro {
  gap: 10px;
}

.intro-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--amber-soft);
  color: var(--amber);
  margin-bottom: 4px;
}

.langs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.lang {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  gap: 2px;
}

.lang:hover {
  border-color: rgba(240, 162, 59, 0.5);
}

.lang b {
  font-size: 17px;
}

.lang small {
  color: var(--muted);
  font-size: 13px;
}

/* FAQ */
.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 18px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--amber);
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  color: var(--fg-2);
  padding-bottom: 18px;
  max-width: 75ch;
}

.prose {
  display: grid;
  gap: 14px;
  color: var(--fg-2);
  max-width: 72ch;
}

.prose ol,
.prose ul {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
}

.prose h2 {
  font-size: 21px;
  color: var(--fg);
  margin-top: 14px;
}

.prose a {
  color: var(--amber);
}

.prose b {
  color: var(--fg);
}

/* Comparisons with other apps (/compare) */
.compare-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.compare-list .card h2 {
  font-size: 18px;
}

.compare-list .card:hover {
  border-color: rgba(240, 162, 59, 0.5);
}

.compare-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.compare-table th,
.compare-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.compare-table tbody tr:last-child > * {
  border-bottom: 0;
}

.compare-table thead th {
  background: var(--surface-2);
  color: var(--fg);
  font-weight: 700;
}

.compare-table tbody th {
  color: var(--fg);
  font-weight: 600;
}

.compare-table td {
  color: var(--fg-2);
}

.mark {
  font-weight: 700;
  font-size: 17px;
}

.mark.yes {
  color: var(--ok);
}

.mark.no {
  color: var(--muted);
}

.compare-cta {
  margin-top: 8px;
}

.compare-cta p {
  color: var(--fg-2);
}

/* Buttons inside guides and comparisons (the "cta" template) */
.cta {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 18px 20px;
  background: var(--amber-soft);
  border: 1px solid rgba(240, 162, 59, 0.35);
  border-radius: var(--radius);
}

.cta p {
  color: var(--fg-2);
  max-width: 68ch;
}

.cta-big {
  padding: 24px;
}

.cta-big h2 {
  font-size: 21px;
}

/* On a phone: its own store first and as the main button, the web button after it, the other store gone. */
.is-ios .cta .cta-android,
.is-android .cta .cta-ios {
  display: none;
}

.is-ios .cta .cta-ios,
.is-android .cta .cta-android {
  order: -1;
  background: var(--amber);
  border-color: var(--amber);
  color: var(--amber-ink);
}

.is-ios .cta .cta-web,
.is-android .cta .cta-web {
  background: transparent;
  border-color: var(--line-2);
  color: var(--fg);
}

/* Guides (/guides): a list's podcasts */
.picks {
  gap: 18px;
}

.pick {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(16px, 3vw, 28px);
  align-items: start;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pick-cover .cover {
  width: clamp(80px, 14vw, 140px);
}

.pick-body {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.pick-body h2 {
  font-size: 21px;
}

.pick-num {
  color: var(--amber);
}

.pick-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  color: var(--fg-2);
  font-size: 14.5px;
}

.pick-meta b {
  color: var(--fg);
}

/* Podcast and episode pages */
.phead {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(18px, 3vw, 32px);
  padding: clamp(24px, 4vw, 44px) 0 8px;
  align-items: start;
}

.phead .cover {
  width: clamp(110px, 18vw, 200px);
}

.phead-info {
  display: grid;
  gap: 12px;
  min-width: 0;
  align-content: start;
}

.phead h1 {
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 800;
}

.phead .desc {
  color: var(--fg-2);
  font-size: 15px;
  max-width: 78ch;
  white-space: pre-line;
}

.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--muted);
  font-size: 13.5px;
  align-items: center;
}

.eps {
  display: grid;
  border-top: 1px solid var(--line);
}

.ep {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.ep:hover {
  background: rgba(255, 255, 255, 0.02);
}

.ep h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.ep p {
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  grid-column: 1;
}

.ep .meta {
  grid-column: 1;
}

.ep-go {
  grid-row: 1 / span 3;
  grid-column: 2;
  color: var(--amber);
}

.egrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  padding: 20px 0 48px;
}

.side {
  display: grid;
  gap: 20px;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}

.side .card h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.side .desc {
  color: var(--fg-2);
  font-size: 14px;
  white-space: pre-line;
  max-height: 320px;
  overflow: auto;
}

.side-list {
  display: grid;
  gap: 2px;
}

.side-list a {
  font-size: 14px;
  padding: 8px 0;
  color: var(--fg-2);
  border-bottom: 1px solid var(--line);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.side-list a:hover {
  color: var(--amber);
}

/* Transcript */
.tpanel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  min-width: 0;
}

.tbar {
  position: sticky;
  top: var(--nav-h);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: rgba(22, 27, 39, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  border-radius: 18px 18px 0 0;
}

.tbar h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  margin-right: auto;
}

.tbar .sep {
  width: 1px;
  height: 22px;
  background: var(--line);
  margin: 0 4px;
}

.tlines {
  padding: 8px 0 16px;
}

.tl {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 34px;
  gap: 2px 8px;
  padding: 10px 12px 10px 14px;
  align-items: start;
}

.tl:hover {
  background: rgba(255, 255, 255, 0.02);
}

.tl.on {
  background: var(--amber-soft);
}

/* A line the audio being played doesn't have (another version's ad). */
.tl.gone {
  opacity: 0.45;
}

.tl-time {
  font: 500 12px var(--mono);
  color: var(--muted);
  padding: 4px 0;
  text-align: left;
  grid-row: 1 / span 2;
}

.tl-time:hover {
  color: var(--amber);
}

.tl .o {
  font-size: 17px;
  line-height: 1.55;
  color: #b5bac6;
  cursor: pointer;
  grid-column: 2;
}

.tl.on .o,
.tl:hover .o {
  color: var(--fg);
}

.tl .t {
  font-size: 14.5px;
  color: var(--muted);
  grid-column: 2;
  cursor: pointer;
}

.tl-x {
  grid-column: 3;
  grid-row: 1 / span 2;
  opacity: 0;
  width: 30px;
  height: 30px;
}

.tl:hover .tl-x,
.tl.on .tl-x,
.tl-x:focus-visible {
  opacity: 1;
}

.w-now {
  color: #ffd08a;
  background: rgba(240, 162, 59, 0.22);
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(240, 162, 59, 0.22);
}

.w-sel {
  background: rgba(240, 162, 59, 0.3);
  border-radius: 4px;
}

.tstate {
  padding: clamp(28px, 6vw, 56px) 24px;
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.tstate h3 {
  font-size: 19px;
}

.tstate p {
  color: var(--muted);
  max-width: 52ch;
}

.tnotice {
  margin: 10px 14px 0;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  color: var(--fg-2);
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.progress {
  width: min(320px, 100%);
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}

.progress b {
  display: block;
  height: 100%;
  background: var(--amber);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.pop {
  position: absolute;
  right: 12px;
  top: calc(100% + 6px);
  z-index: 20;
  width: 290px;
  max-width: calc(100vw - 32px);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 10px;
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.6);
  font-size: 13.5px;
}

.pop-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Sheets: word and sentence explanations */
.sheet-back {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(5, 7, 12, 0.45);
}

.sheet {
  position: fixed;
  z-index: 51;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: var(--cream);
  color: var(--ink);
  box-shadow: -20px 0 50px -20px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  animation: sheet-in 0.18s ease;
}

@keyframes sheet-in {
  from {
    transform: translateX(24px);
    opacity: 0;
  }
}

.sheet-h {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 18px 18px 12px;
}

.sheet-h h2 {
  font-size: 26px;
  font-weight: 800;
  margin-right: auto;
  overflow-wrap: anywhere;
}

.sheet-h.small h2 {
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.sheet .icon-btn {
  color: #5b6070;
}

.sheet .icon-btn:hover {
  background: rgba(26, 29, 38, 0.08);
  color: var(--ink);
}

.sheet .icon-btn[aria-pressed="true"] {
  color: #b86a10;
  background: rgba(240, 162, 59, 0.2);
}

.sheet-b {
  padding: 0 18px 24px;
  overflow-y: auto;
  display: grid;
  gap: 16px;
  align-content: start;
  flex: 1;
}

.sheet .pos {
  font: 600 11.5px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a6316;
}

.sheet h3 {
  font: 600 11.5px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a7f8c;
  margin-bottom: 6px;
}

.sheet .big {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.sheet .ctx {
  background: rgba(26, 29, 38, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14.5px;
  color: #3b404d;
}

.sheet .ex {
  display: grid;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(26, 29, 38, 0.1);
}

.sheet .ex i {
  color: #5b6070;
  font-size: 14px;
}

.sheet .ex:last-child {
  border-bottom: 0;
}

.sheet .defs {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 4px;
  font-size: 14.5px;
}

.sheet a {
  color: #9a6316;
  font-weight: 600;
}

.sheet .point {
  background: #fff;
  border: 1px solid rgba(26, 29, 38, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}

.sheet .point-h {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  justify-content: space-between;
}

.sheet .point b {
  font-size: 16px;
}

.sheet .point p {
  font-size: 14.5px;
  color: #3b404d;
}

.sheet .chunks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sheet .chunk {
  background: #fff;
  border: 1px solid rgba(26, 29, 38, 0.1);
  border-radius: 10px;
  padding: 6px 10px;
  display: grid;
  gap: 1px;
}

.sheet .chunk small {
  font-size: 11.5px;
  color: #9a6316;
  font-weight: 600;
}

.sheet .btn-p {
  background: var(--ink);
  color: var(--cream);
}

.spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(142, 150, 168, 0.35);
  border-top-color: var(--amber);
  animation: spin 0.8s linear infinite;
  flex: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Player bar */
.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(22, 27, 39, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-2);
}

.bar .wrap {
  height: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr) auto;
  gap: 18px;
  align-items: center;
}

.bar-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.bar-info img,
.bar-art {
  width: 46px;
  height: 46px;
  border-radius: 9px;
  background: var(--surface-2);
  flex: none;
  object-fit: cover;
}

.bar-info div {
  min-width: 0;
}

.bar-info b,
.bar-info small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-info b {
  font-size: 14px;
}

.bar-info small {
  font-size: 12.5px;
  color: var(--muted);
}

.bar-ctl {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bar-seek {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 12px var(--mono);
  color: var(--muted);
}

.bar-end {
  display: flex;
  align-items: center;
  gap: 4px;
}

.speed {
  font: 600 12.5px var(--mono);
  min-width: 46px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  color: var(--fg-2);
}

.speed:hover {
  border-color: var(--muted);
}

input[type="range"].seek {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  width: 100%;
  height: 16px;
  background: none;
  cursor: pointer;
  --p: 0%;
}

.seek::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--amber) var(--p), var(--line-2) var(--p));
}

.seek::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: var(--line-2);
}

.seek::-moz-range-progress {
  height: 4px;
  border-radius: 2px;
  background: var(--amber);
}

.seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--fg);
  margin-top: -4px;
}

.seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--fg);
}

/* Forms, panels */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(18px, 3vw, 28px);
  display: grid;
  gap: 16px;
}

.panel h2 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

.input {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
  width: 100%;
  outline: 0;
}

.input:focus {
  border-color: var(--amber);
}

.code-input {
  font: 600 24px var(--mono);
  letter-spacing: 0.4em;
  text-align: center;
}

.or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.or::before,
.or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.err {
  color: var(--danger);
  font-size: 14px;
}

.okmsg {
  color: var(--ok);
  font-size: 14.5px;
  font-weight: 600;
}

.auth {
  max-width: 440px;
  margin: clamp(28px, 6vw, 72px) auto;
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.kv > span:first-child {
  color: var(--muted);
  font-size: 14.5px;
}

.stack {
  display: grid;
  gap: 18px;
}

.search-big {
  display: flex;
  gap: 10px;
}

/* Pricing: a centred head and the monthly/yearly switch over two cards whose names, prices, buttons and lists line up. */
.pricing {
  max-width: 900px;
}

.pricing .page-head {
  justify-items: center;
  text-align: center;
  padding: clamp(48px, 8vw, 104px) 0 clamp(12px, 2vw, 24px);
  gap: 20px;
}

.pricing .lead {
  text-wrap: balance;
}

.pricing-msg,
.plans-note {
  text-align: center;
  max-width: none;
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(24px, 3vw, 34px);
  /* Both cards lay their parts on the same rows, so they line up whatever the text's length. */
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  row-gap: 0;
}

.plan.pro {
  border-color: rgba(240, 162, 59, 0.45);
  box-shadow: 0 0 36px -6px rgba(240, 162, 59, 0.22);
}

.plan-top {
  grid-row: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}

.plan-art {
  margin-left: -6px;
}

.plan-art .fill {
  fill: rgba(244, 239, 230, 0.22);
}

.plan.pro .plan-art {
  color: var(--amber);
}

.plan.pro .plan-art .fill {
  fill: rgba(240, 162, 59, 0.35);
}

.plan-badge {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(240, 162, 59, 0.4);
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.plan-head {
  grid-row: 2;
  display: grid;
  align-content: start;
  gap: 8px;
}

.plan h2 {
  font-size: clamp(27px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.plan-seg {
  justify-self: center;
  background: var(--surface);
  border-color: var(--line);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 10px;
}

.plan-seg button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14.5px;
}

.plan-seg small {
  color: var(--amber);
  font-size: 12.5px;
  font-weight: 700;
}

.plan-head p {
  color: var(--fg-2);
  font-size: 17px;
  line-height: 1.4;
}

.price {
  grid-row: 3;
  display: grid;
  align-content: start;
  gap: 6px;
  margin-top: 26px;
}

.price > div {
  display: grid;
  gap: 6px;
}

.price b {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.price span {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.plan-cta {
  grid-row: 4;
  margin-top: 28px;
}

.plan-cta .btn {
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 16px;
}

.plan-list {
  grid-row: 5;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.plan h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
  margin-bottom: 16px;
}

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
  font-size: 15.5px;
}

.ticks li {
  padding-left: 32px;
  position: relative;
  color: var(--fg-2);
  line-height: 1.5;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 12px;
  height: 6px;
  border-left: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(-45deg);
}

.seg {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 3px;
}

.seg button {
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}

.seg button[aria-pressed="true"] {
  background: var(--surface-2);
  color: var(--fg);
}

/* Saved words, review, history */
.favs {
  display: grid;
  gap: 10px;
}

.fav {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
}

.fav b {
  font-size: 17px;
}

.fav p {
  color: var(--fg-2);
  font-size: 14.5px;
  grid-column: 1;
}

.fav .ctx {
  color: var(--muted);
  font-size: 13.5px;
  font-style: italic;
}

.fav-side {
  grid-column: 2;
  grid-row: 1 / span 4;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.rcard {
  background: var(--cream);
  color: var(--ink);
  border-radius: 20px;
  padding: clamp(24px, 5vw, 44px);
  display: grid;
  gap: 16px;
  text-align: center;
  min-height: 300px;
  align-content: center;
  justify-items: center;
}

.rcard h2 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.rcard .ctx {
  color: #5b6070;
  font-style: italic;
  max-width: 50ch;
}

.rcard .ans {
  font-size: 18px;
  font-weight: 600;
  max-width: 50ch;
}

.rcard .exp {
  font-size: 14.5px;
  color: #3b404d;
  max-width: 56ch;
  white-space: pre-line;
}

.rates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.rate {
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 12px 8px;
  display: grid;
  gap: 2px;
  font-weight: 700;
}

.rate small {
  font: 500 12px var(--mono);
  color: var(--muted);
}

.rate:hover {
  background: var(--surface);
}

.rate.r0 {
  color: var(--danger);
}
.rate.r1 {
  color: var(--amber);
}
.rate.r2 {
  color: var(--ok);
}

.hist {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 4px 14px;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}

.hist img,
.hist .bar-art {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  grid-row: 1 / span 2;
}

.hist b {
  font-size: 15px;
  line-height: 1.35;
}

.hist small {
  color: var(--muted);
  font-size: 13px;
  grid-column: 2;
}

.empty {
  padding: 48px 16px;
  text-align: center;
  color: var(--muted);
  display: grid;
  gap: 16px;
  justify-items: center;
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding: 36px 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.foot h2 {
  font: 600 12px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 10px;
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.foot a:hover {
  color: var(--fg);
}

.foot-note {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .langs {
    grid-template-columns: repeat(3, 1fr);
  }
  .egrid {
    grid-template-columns: 1fr;
  }
  .side {
    position: static;
  }
}

@media (max-width: 720px) {
  .nav-links,
  .hide-mobile {
    display: none;
  }
  .only-mobile {
    display: revert;
  }
  .cards,
  .plans {
    grid-template-columns: 1fr;
  }
  .langs {
    grid-template-columns: repeat(2, 1fr);
  }
  .shows {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 18px 14px;
  }
  .shelf-row {
    gap: 12px;
  }
  .shelf-row .show {
    flex-basis: 140px;
  }
  .page-head {
    padding-bottom: 64px;
  }
  .pricing .page-head {
    padding-bottom: 8px;
  }
  .plans {
    row-gap: 18px;
  }
  .plan-seg button {
    padding: 9px 12px;
  }
  .plan {
    display: block;
  }
  .page-head::before {
    background-size: 100% 20px, 42% 44px, auto, auto, auto;
  }
  .tl {
    grid-template-columns: minmax(0, 1fr) 30px;
    padding: 10px 10px 10px 16px;
  }
  .tl-time {
    grid-row: auto;
    grid-column: 1 / -1;
    padding: 0;
  }
  .tl .o,
  .tl .t {
    grid-column: 1;
  }
  .tl-x {
    grid-column: 2;
    grid-row: 2 / span 2;
    opacity: 1;
  }
  .tl .o {
    font-size: 16.5px;
  }
  .bar .wrap {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 10px;
    height: 76px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .bar-seek {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .bar-end .hide-mobile,
  .bar-ctl .hide-mobile {
    display: none;
  }
  .bar-end {
    display: none;
  }
  .bar-info img,
  .bar-art {
    width: 34px;
    height: 34px;
  }
  .sheet {
    top: auto;
    left: 0;
    width: 100%;
    max-height: 78vh;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, 0.6);
  }
  @keyframes sheet-in {
    from {
      transform: translateY(24px);
      opacity: 0;
    }
  }
  .phead {
    grid-template-columns: 96px 1fr;
  }
  .phead .cover {
    width: 96px;
  }
  .phead .wide {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Alpine: hidden until it has started. */
[x-cloak] {
  display: none !important;
}

/* The transcript's original or translation, hidden by the visitor. */
.tlines.no-o .o,
.tlines.no-t .t {
  display: none;
}
