:root {
  --bg: #0b0c0f;
  --card: #12141a;
  --text: #e8e8ea;
  --muted: #a4a7b0;
  --link: #9bd1ff;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.35;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 1050px;
  padding: 18px;
  margin: 0 auto;
}

.page-fullbleed main.wrap {
  max-width: none;
  padding: 12px;
  margin: 0;
  width: 100%;
}

.page-graph .graph-layout {
  margin-top: 0;
}

@media (min-width: 950px) {
  .page-graph .graph-layout {
    gap: 0;
  }

  .page-graph .graph-controls {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }

  .page-graph .graph-stage {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 12, 15, 0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: transform 160ms ease, opacity 160ms ease;
  will-change: transform;
}

.ap-scrolled .site-header {
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
}

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

.brand-link {
  font-weight: 700;
  font-size: 18px;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.search-button:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

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

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.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;
}

.player[data-player] {
  position: sticky;
  top: calc(var(--header-offset, 70px) - 1px);
  z-index: 9;
  width: min(900px, calc(100% - 36px));
  margin: 0 auto 0 auto;
  border-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  padding-top: 10px;
  padding-bottom: 10px;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.now-title {
  font-weight: 600;
}

.episode-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) fit-content(190px);
  gap: 8px 12px;
  align-items: start;
}

.episode-row .row-main {
  min-width: 0;
  display: block;
}

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

.row-head img,
.row-head .cover-fallback {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.row-head img {
  object-fit: cover;
}

.row-head .cover-fallback {
  border-radius: 12px;
}

.row-art {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  flex: 0 0 auto;
  line-height: 0;
}

.row-art img {
  width: 100%;
  height: 100%;
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.row-text {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.episode-row .row-main a {
  font-weight: 650;
}

.episode-row .row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  max-width: 190px;
}

.panel#home-history .episode-row,
.panel#home-queue .episode-row {
  grid-template-columns: minmax(0, 1fr) 104px;
}

.panel#home-history .episode-row .row-actions,
.panel#home-queue .episode-row .row-actions {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  max-width: 104px;
}

.panel#home-history .episode-row .row-actions > *,
.panel#home-queue .episode-row .row-actions > * {
  width: 100%;
}

.panel#home-history .episode-row .row-actions .btn-sm,
.panel#home-queue .episode-row .row-actions .btn-sm {
  padding: 6px 10px;
}

.panel#home-history .episode-row details.menu > summary.btn.btn-sm,
.panel#home-queue .episode-row details.menu > summary.btn.btn-sm {
  justify-content: center;
}

.panel#home-latest .episode-row {
  grid-template-columns: minmax(0, 1fr) 104px;
}

.panel#home-latest .episode-row .row-actions {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  max-width: 104px;
}

.panel#home-latest .episode-row .row-actions > * {
  width: 100%;
}

.panel#home-latest .episode-row .row-actions .btn-sm {
  padding: 6px 10px;
}

.panel#home-latest .episode-row details.menu > summary.btn.btn-sm {
  justify-content: center;
}

.episode-row .row-actions .btn-sm {
  padding: 6px 9px;
}

.episode-row .row-actions .btn-primary.btn-sm {
  padding: 6px 10px;
}

.episode-row details.menu > summary.btn.btn-sm {
  min-width: 34px;
  padding-left: 8px;
  padding-right: 8px;
}

.episode-row .queue-btn::before {
  margin-right: 5px;
}

.episode-row.is-done {
  display: none;
}

.episode-row.is-played .row-main a {
  opacity: 0.78;
}

.episode-row.is-played .mini-progress-bar {
  background: rgba(164, 167, 176, 0.45);
}

.episode-row.is-queued {
  --queued-glow: rgba(155, 209, 255, 0.18);
}

.episode-row.is-queued .row-main a {
  text-decoration: none;
}

.episode-row.is-queued .row-main a:hover {
  text-decoration: underline;
}

details.menu {
  position: relative;
}

details.menu > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.menu .btn {
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

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

.menu > summary.btn:focus-visible {
  outline: 2px solid rgba(155, 209, 255, 0.65);
  outline-offset: 2px;
}

.menu[open] > summary.btn {
  border-color: rgba(155, 209, 255, 0.45);
  background: rgba(155, 209, 255, 0.08);
}

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 25;
  min-width: 220px;
  padding: 10px;
  display: grid;
  gap: 8px;
  max-width: min(320px, 88vw);
  transform-origin: top right;
  opacity: 0;
  transform: translateY(-4px) scale(0.98);
  pointer-events: none;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.35));
}

.menu[open] .menu-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.menu-panel .btn {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.menu-sep {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

@media (max-width: 750px) {
  .menu-panel {
    left: 0;
    right: auto;
    transform-origin: top left;
  }
}

.mini-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  overflow: hidden;
}

.mini-progress-bar {
  height: 100%;
  width: 0%;
  background: rgba(155, 209, 255, 0.55);
}

.mini-progress-text {
  font-size: 12px;
}

.player[data-player] audio {
  display: none;
}

.player-top {
  display: grid;
  grid-template-columns: auto auto auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.player-top .btn,
.player-top .btn-primary {
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.player-top .btn {
  background: rgba(255, 255, 255, 0.04);
}

.player-top .btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.player-top .btn-primary {
  min-width: 92px;
}

.btn-primary {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(155, 209, 255, 0.45);
  background: rgba(155, 209, 255, 0.18);
  color: var(--text);
  cursor: pointer;
}

.btn-primary:hover {
  border-color: rgba(155, 209, 255, 0.7);
}

.btn-sm {
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}

.queue-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.queue-btn::before {
  content: "＋";
  width: 1.1em;
  text-align: center;
  font-weight: 800;
  margin-right: 6px;
  opacity: 0.9;
}

.queue-btn.queued::before {
  content: "−";
}

.queue-btn.queued {
  border-color: rgba(155, 209, 255, 0.35);
  background: rgba(155, 209, 255, 0.12);
}

.home-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 14px;
  align-items: start;
  margin-top: 14px;
}

.home-viewbar {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
}

.home-viewbar .btn {
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-viewbar .btn[data-active="1"] {
  border-color: rgba(155, 209, 255, 0.6);
  background: rgba(155, 209, 255, 0.14);
}

.view-badge {
  font-size: 12px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.home-views {
  margin-top: 14px;
}

.home-view[hidden] {
  display: none;
}

.home-intro {
  margin-top: 12px;
}

.browse-controls {
  margin-top: 12px;
  margin-bottom: 6px;
  display: flex;
  justify-content: flex-end;
}

.latest-toggle {
  font-size: 13px;
  color: var(--text);
}

.home-side {
  display: grid;
  gap: 14px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.panel-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.rss-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.feed-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  align-items: start;
}

.feed-card:hover {
  border-color: rgba(155, 209, 255, 0.22);
}

.feed-cover {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.feed-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cover-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
  letter-spacing: 0.06em;
  color: rgba(232, 232, 234, 0.92);
  background: hsl(var(--cover-hue, 210) 42% 24%);
}

.feed-body h2 {
  margin: 0 0 6px 0;
  font-size: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-body {
  min-width: 0;
}

.feed-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -2px 0 8px 0;
}

.feed-stat {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  line-height: 1.2;
}

.feed-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-note {
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-warning {
  margin-top: 8px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 200, 0, 0.22);
  border-radius: 12px;
  background: rgba(255, 200, 0, 0.06);
}

.feed-warning-panel {
  border: 1px solid rgba(255, 200, 0, 0.22);
  background: rgba(255, 200, 0, 0.06);
}

.feed-profile {
  margin: 12px 0;
}

.subscribe-panel {
  margin: 12px 0;
}

.speaker-top-panels {
  display: grid;
  gap: 12px;
  margin: 12px 0;
}

.speaker-top-panels > * {
  min-width: 0;
}

@media (min-width: 900px) {
  .speaker-top-panels {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: start;
  }
}

.speaker-top-panels .speaker-controls,
.speaker-top-panels .subscribe-panel {
  margin: 0;
}

.speaker-hero-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  gap: 16px !important;
}

.speaker-hero-text {
  flex: 1 1 0 !important;
  min-width: 0 !important;
}

.speaker-hero-text h1 {
  margin: 0 0 10px 0;
}

.speaker-hero-media img {
  max-height: 200px;
}

.speaker-image-frame {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.speaker-image-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.speaker-grid .speaker-card-image img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.toast-root {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(360px, calc(100vw - 28px));
  pointer-events: none;
}

.toast {
  pointer-events: none;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(20, 22, 30, 0.92);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-show {
  opacity: 1;
  transform: translateY(0);
}

.subscribe-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.subscribe-row .btn {
  white-space: nowrap;
}

.rss-input {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.subscribe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.feed-profile .scores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 8px 0 0 0;
}

.feed-profile .score {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.feed-profile .score .k {
  font-weight: 650;
}

.feed-profile .score .v {
  font-variant-numeric: tabular-nums;
}

.feed-profile .md {
  margin-top: 10px;
}

.feed-profile .md p {
  margin: 10px 0;
}

.feed-profile .md ul {
  margin: 10px 0 10px 20px;
}

.nav-loading {
  opacity: 0.75;
  transition: opacity 120ms ease;
}

.player-meta .now-title {
  font-weight: 650;
}

.player-scrub {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

#scrub {
  width: 100%;
}

.player-audio {
  margin-top: 0;
}

.player-audio[open] {
  margin-top: 8px;
}

.audio-controls {
  margin-top: 10px;
  display: grid;
  gap: 12px;
}

#audio-note {
  padding: 8px 10px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.eq-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

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

.toggle-pill {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  user-select: none;
}

.toggle-pill:hover {
  border-color: rgba(155, 209, 255, 0.35);
  background: rgba(155, 209, 255, 0.06);
}

.toggle-pill input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.toggle-pill-ui {
  width: 34px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  position: relative;
  flex: 0 0 auto;
  transition:
    background 150ms ease,
    border-color 150ms ease;
}

.toggle-pill-ui::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  position: absolute;
  top: 50%;
  left: 2px;
  transform: translateY(-50%);
  transition:
    transform 150ms ease,
    background 150ms ease;
}

.toggle-pill input[type="checkbox"]:checked + .toggle-pill-ui {
  background: rgba(155, 209, 255, 0.22);
  border-color: rgba(155, 209, 255, 0.6);
}

.toggle-pill input[type="checkbox"]:checked + .toggle-pill-ui::after {
  transform: translate(16px, -50%);
  background: rgba(255, 255, 255, 0.9);
}

.toggle-pill input[type="checkbox"]:focus-visible + .toggle-pill-ui {
  outline: 2px solid rgba(155, 209, 255, 0.7);
  outline-offset: 2px;
}

.graph-layout {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

@media (min-width: 950px) {
  .graph-layout {
    grid-template-columns: 360px minmax(0, 1fr);
    align-items: start;
  }
}

.graph-controls .field {
  display: grid;
  gap: 6px;
  margin: 10px 0;
}

.graph-controls input[type="search"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.graph-control-row {
  display: flex;
  align-items: end;
  gap: 12px;
}

.graph-controls input[type="range"] {
  width: 100%;
}

.graph-toggles {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.graph-stats {
  margin-top: 10px;
  font-size: 12px;
}

.graph-stage {
  position: relative;
  overflow: hidden;
  padding: 0;
  height: min(72vh, 760px);
  min-height: 420px;
}

.graph-vis {
  width: 100%;
  height: 100%;
}

.graph-hint {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-size: 12px;
  pointer-events: none;
  background: rgba(18, 20, 26, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 10px;
  border-radius: 999px;
}

.slider input[type="range"] {
  width: 100%;
}

.dev-status {
  margin-top: 18px;
}

.dev-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dev-status-title {
  font-weight: 650;
}

.dev-status-pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
}

.dev-status-pill.dev-error {
  border-color: rgba(255, 120, 120, 0.5);
  color: rgba(255, 180, 180, 0.95);
}

.dev-status-log {
  margin-top: 8px;
  font-size: 12px;
  white-space: pre-wrap;
}

.time {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

.speed-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.speed-settings {
  min-width: 34px;
  padding-left: 8px;
  padding-right: 8px;
  font-variant-numeric: tabular-nums;
}

.speed-readout {
  min-width: 44px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  user-select: none;
}

.episodes {
  list-style: none;
  padding: 0;
  margin: 14px 0 0 0;
}

.episode {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 10px;
}

@supports (content-visibility: auto) {
  /* Reduce work for long episode lists on slower devices. */
  .feed-card {
    content-visibility: auto;
    contain-intrinsic-size: 1px 92px;
  }

  .episode {
    /* Don't apply paint containment to the whole episode row, otherwise
       overflow menus (⋯) get clipped and become unusable. */
    content-visibility: visible;
    contain-intrinsic-size: auto;
  }

  .episode .meta {
    content-visibility: auto;
    contain-intrinsic-size: 1px 220px;
  }
}

.ep-actions {
  display: grid;
  gap: 8px;
  align-content: start;
}

.ep-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.ep-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.episode.active {
  border-color: rgba(155, 209, 255, 0.45);
  background: rgba(155, 209, 255, 0.06);
}

.title {
  font-weight: 650;
}

.sub {
  font-size: 13px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
}

.tag-muted {
  opacity: 0.85;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
}

.ext {
  margin-left: 8px;
}

.desc-snippet {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(232, 232, 234, 0.9);
}

.desc-full {
  margin-top: 8px;
  font-size: 13px;
  white-space: pre-wrap;
}

.desc-toggle {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--link);
  cursor: pointer;
  font: inherit;
}

.desc-toggle:hover {
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 28px;
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 30;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal.open {
  display: flex;
}

.modal-card {
  width: min(900px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px;
  max-height: 85vh;
  overflow: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.offline-card input[type="number"] {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

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

.modal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.modal-filters label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

#search-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

#search-status {
  flex: 0 0 auto;
}

#search-results {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 6px;
}

.search-open main.wrap {
  display: none;
}

.search-open #search-panel[hidden] {
  display: block;
}

.search-open #search-panel {
  display: block;
}

.speaker-groups {
  display: grid;
  gap: 12px;
}

.speakers-top {
  display: grid;
  gap: 12px;
  margin: 10px 0 6px 0;
  align-items: start;
}

@media (min-width: 900px) {
  .speakers-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.speakers-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.speaker-filter-input {
  flex: 1 1 260px;
  min-width: 220px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

#speakers-filter-status {
  flex: 0 0 auto;
}

.speaker-controls {
  margin: 12px 0;
}

.speaker-controls-subtle {
  background: rgba(255, 255, 255, 0.015);
}

.speaker-controls-subtle .panel-head h2 {
  font-size: 14px;
}

.speaker-grid {
  margin-top: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.speaker-profile {
  margin-top: 10px;
}

.speaker-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 12px;
}

.speaker-card-link {
  cursor: pointer;
}

.speaker-card-static {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.012);
}

.speaker-card-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.speaker-card-main {
  min-width: 0;
  flex: 1 1 auto;
}

.speaker-card-image {
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  border-radius: 12px;
}

.speaker-card-link:hover {
  border-color: rgba(155, 209, 255, 0.22);
}

.speaker-card-name {
  font-weight: 750;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.speaker-card-stats {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.speaker-stats-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.speaker-stats-kind {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 750;
  color: var(--muted);
}

.speaker-stats-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
}

.speaker-metric {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
}

.speaker-metric-num {
  font-weight: 850;
  font-size: 14px;
  line-height: 1;
  color: var(--text);
}

.speaker-metric-unit {
  color: var(--muted);
}

.speaker-stats-row[data-primary="1"] {
  border-color: rgba(155, 209, 255, 0.24);
  background: rgba(155, 209, 255, 0.06);
}

.speaker-group > summary {
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-weight: 650;
}

.speaker-group > summary::-webkit-details-marker {
  display: none;
}

.speaker-group-meta {
  margin: 6px 0 10px 0;
}

.search-page .search-row {
  display: flex;
}

.search-page #search-input {
  width: 100%;
}

.search-results {
  max-height: min(70vh, 720px);
  overflow: auto;
  padding-right: 6px;
}

.btn {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.offline-cached {
  border-color: rgba(155, 209, 255, 0.45);
  background: rgba(155, 209, 255, 0.08);
}

.offline-busy {
  opacity: 0.75;
}

@media (max-width: 750px) {
  .feed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .speaker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .speaker-page-image {
    width: 100%;
    max-width: 100%;
  }

  .home-layout {
    grid-template-columns: 1fr;
  }

  .episode-row {
    grid-template-columns: 1fr;
  }

  .player-top {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .player-meta {
    grid-column: 1 / -1;
  }
  .speed-ctrl {
    grid-column: 1 / -1;
    justify-content: center;
  }
  .eq-row {
    grid-template-columns: 1fr 1fr;
  }

  .episode {
    grid-template-columns: 1fr;
  }

  .ep-actions {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

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

  .speaker-grid {
    grid-template-columns: 1fr;
  }

  .speaker-card-image {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }

  .speaker-page-image {
    width: 100%;
    max-width: 100%;
  }
}
