:root {
  color-scheme: dark;
  --canvas: #090909;
  --surface: #101010;
  --surface-strong: #151515;
  --line: #242424;
  --line-strong: #343434;
  --text: #f1f1ec;
  --muted: #74746f;
  --quiet: #4a4a46;
  --lime: #b7ef63;
  --orange: #ff9a72;
  --blue: #8ea8ff;
  --rail: 42px;
  --topbar: 50px;
  font-family: "Inter", Arial, sans-serif;
  background: var(--canvas);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    var(--canvas);
  background-size: 100% 80px;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  min-height: 100vh;
}

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  display: flex;
  width: var(--rail);
  flex-direction: column;
  align-items: center;
  border-right: 1px solid var(--line);
  background: #070707;
}

.rail__mark,
.rail__button {
  display: grid;
  width: 100%;
  height: 42px;
  place-items: center;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease;
}

.rail__mark {
  border-bottom-color: var(--line);
  color: var(--text);
  font: 600 12px/1 "IBM Plex Mono", monospace;
}

.rail__button:hover,
.rail__button:focus-visible,
.rail__button.is-active {
  background: var(--surface);
  color: var(--text);
}

.rail__button svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.rail__spacer {
  flex: 1;
}

.workspace {
  min-height: 100vh;
  margin-left: var(--rail);
  padding-bottom: 132px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  height: var(--topbar);
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 9, 0.94);
  padding: 0 16px;
  backdrop-filter: blur(14px);
}

.brand,
.topbar__meta {
  display: flex;
  align-items: center;
}

.brand {
  gap: 13px;
  font-family: "IBM Plex Mono", monospace;
}

.brand__name {
  font-size: 13px;
  color: var(--lime);
  letter-spacing: 0.04em;
}

.brand__edition {
  color: var(--quiet);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.topbar__meta {
  gap: 20px;
  color: var(--muted);
  font: 10px/1 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(183, 239, 99, 0.45);
}

.intro {
  display: grid;
  min-height: calc(70vh - var(--topbar));
  align-content: center;
  justify-items: center;
  border-bottom: 1px solid var(--line);
  padding: 72px 24px 94px;
  text-align: center;
}

.eyebrow,
.results__header,
.channel__header,
.suggestions button,
.result-card__meta {
  font-family: "IBM Plex Mono", monospace;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--lime);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

h1 {
  max-width: 920px;
  margin: 0;
  font: 500 clamp(42px, 7vw, 92px)/0.95 "IBM Plex Mono", monospace;
  letter-spacing: -0.075em;
}

.intro__copy {
  max-width: 540px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.suggestions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease;
}

.suggestions button:hover,
.suggestions button:focus-visible {
  border-color: var(--line-strong);
  color: var(--text);
}

.results {
  min-height: 520px;
}

.results__header {
  display: flex;
  height: 38px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 14px;
  color: var(--quiet);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.results__header p {
  margin: 0;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.channel {
  min-width: 0;
  min-height: 480px;
  border-right: 1px solid var(--line);
}

.channel:last-child {
  border-right: 0;
}

.channel__header {
  display: flex;
  height: 43px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 14px;
}

.channel__header h2 {
  margin: 0;
  font: 500 12px/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.04em;
}

.channel[data-channel="episodes"] h2 {
  color: var(--blue);
}

.channel[data-channel="guests"] h2 {
  color: var(--lime);
}

.channel[data-channel="moments"] h2 {
  color: var(--orange);
}

.channel__count {
  color: var(--quiet);
  font-size: 10px;
}

.result-card {
  position: relative;
  display: block;
  min-height: 174px;
  border-bottom: 1px solid var(--line);
  padding: 18px 16px 20px;
  color: inherit;
  text-decoration: none;
  transition: background 150ms ease;
}

.result-card:hover,
.result-card:focus-visible {
  outline: 0;
  background: var(--surface);
}

.result-card__meta {
  display: flex;
  justify-content: space-between;
  color: var(--quiet);
  font-size: 9px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.result-card h3 {
  margin: 22px 0 9px;
  font: 500 16px/1.3 "IBM Plex Mono", monospace;
  letter-spacing: -0.02em;
}

.result-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

mark {
  background: transparent;
  color: var(--lime);
}

.empty-state {
  display: grid;
  min-height: 210px;
  place-items: center;
  padding: 20px;
  color: var(--quiet);
  font: 10px/1.5 "IBM Plex Mono", monospace;
  text-align: center;
}

.command {
  position: fixed;
  z-index: 20;
  right: 20px;
  bottom: 18px;
  left: calc(var(--rail) + 20px);
  display: grid;
  max-width: 760px;
  height: 68px;
  margin: auto;
  grid-template-columns: auto 1fr auto 48px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #121212;
  padding: 7px 8px 7px 18px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.65);
}

.command:focus-within {
  border-color: #52524e;
}

.command__prompt {
  color: var(--lime);
  font: 500 17px/1 "IBM Plex Mono", monospace;
}

.command input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 13px/1 "IBM Plex Mono", monospace;
}

.command input::placeholder {
  color: var(--quiet);
}

.command input::-webkit-search-cancel-button {
  display: none;
}

kbd {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 3px 6px;
  color: var(--quiet);
  font: 9px/1 "IBM Plex Mono", monospace;
}

.command button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: var(--text);
  color: var(--canvas);
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.command button:hover,
.command button:focus-visible {
  background: var(--lime);
}

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

.command button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

body.high-contrast {
  --line: #353535;
  --muted: #a2a29b;
  --quiet: #73736d;
}

@media (max-width: 820px) {
  .channel-grid {
    grid-template-columns: 1fr;
  }

  .channel {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .topbar__meta span:first-child,
  .brand__edition {
    display: none;
  }

  h1 {
    letter-spacing: -0.06em;
  }
}

@media (max-width: 560px) {
  :root {
    --rail: 0px;
  }

  .rail {
    position: sticky;
    top: 0;
    z-index: 30;
    width: 100%;
    height: 42px;
    flex-direction: row;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail__mark,
  .rail__button {
    width: 42px;
    flex: 0 0 42px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .workspace {
    margin-left: 0;
  }

  .topbar {
    top: 42px;
  }

  .intro {
    min-height: 62vh;
    padding: 58px 18px 76px;
  }

  h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .intro__copy {
    font-size: 13px;
  }

  .command {
    right: 10px;
    bottom: 10px;
    left: 10px;
    height: 60px;
    grid-template-columns: auto 1fr 42px;
    padding: 6px 6px 6px 14px;
  }

  .command button {
    width: 42px;
    height: 42px;
  }

  kbd {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
