:root {
  color-scheme: dark;
  --bg: #080d1c;
  --bg-soft: #0e1530;
  --card-strong: rgba(255, 255, 255, 0.075);
  --card-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022));
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #e9eefb;
  --muted: #96a2c2;
  --accent: #6ee7ff;
  --accent-2: #a78bfa;
  --gradient-3: #f0abfc;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #fb7185;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  --toolbar-bg: rgba(8, 13, 28, 0.86);
  --placeholder: #6f7da1;
  --description: #c8d3eb;
  --chip-bg: rgba(255, 255, 255, 0.05);
  --link-bg: rgba(255, 255, 255, 0.05);
  --link-hover-text: #06101f;
  --card-hover-border: rgba(110, 231, 255, 0.34);
  --focus-border: rgba(110, 231, 255, 0.65);
  --focus-shadow: 0 0 0 4px rgba(110, 231, 255, 0.12);
  --status-active-text: #bbf7d0;
  --status-active-bg: rgba(34, 197, 94, 0.14);
  --status-active-border: rgba(34, 197, 94, 0.34);
  --status-slow-text: #fde68a;
  --status-slow-bg: rgba(245, 158, 11, 0.14);
  --status-slow-border: rgba(245, 158, 11, 0.34);
  --status-archived-text: #cbd5e1;
  --status-archived-bg: rgba(148, 163, 184, 0.14);
  --status-archived-border: rgba(148, 163, 184, 0.34);
  --glow-1: rgba(110, 231, 255, 0.16);
  --glow-2: rgba(167, 139, 250, 0.14);
  --glow-3: rgba(52, 211, 153, 0.10);
  --bar: rgba(255, 255, 255, 0.10);
  --bar-fill: linear-gradient(90deg, var(--accent), var(--accent-2));
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7fb;
  --bg-soft: #ffffff;
  --card-strong: rgba(255, 255, 255, 0.98);
  --card-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82));
  --border: rgba(15, 23, 42, 0.13);
  --border-strong: rgba(15, 23, 42, 0.22);
  --text: #0f172a;
  --muted: #52607a;
  --accent: #0369a1;
  --accent-2: #7c3aed;
  --gradient-3: #c026d3;
  --green: #047857;
  --amber: #b45309;
  --red: #be123c;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --toolbar-bg: rgba(244, 247, 251, 0.90);
  --placeholder: #7b879c;
  --description: #334155;
  --chip-bg: rgba(15, 23, 42, 0.05);
  --link-bg: rgba(15, 23, 42, 0.05);
  --link-hover-text: #ffffff;
  --card-hover-border: rgba(3, 105, 161, 0.35);
  --focus-border: rgba(3, 105, 161, 0.55);
  --focus-shadow: 0 0 0 4px rgba(3, 105, 161, 0.12);
  --status-active-text: #166534;
  --status-active-bg: rgba(34, 197, 94, 0.12);
  --status-active-border: rgba(34, 197, 94, 0.30);
  --status-slow-text: #92400e;
  --status-slow-bg: rgba(245, 158, 11, 0.12);
  --status-slow-border: rgba(245, 158, 11, 0.30);
  --status-archived-text: #475569;
  --status-archived-bg: rgba(100, 116, 139, 0.10);
  --status-archived-border: rgba(100, 116, 139, 0.25);
  --glow-1: rgba(14, 165, 233, 0.10);
  --glow-2: rgba(124, 58, 237, 0.08);
  --glow-3: rgba(16, 185, 129, 0.07);
  --bar: rgba(15, 23, 42, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 8% -10%, var(--glow-1), transparent 60%),
    radial-gradient(820px 520px at 92% 0%, var(--glow-2), transparent 62%),
    radial-gradient(720px 420px at 50% 110%, var(--glow-3), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
button, input, select { font: inherit; }
code {
  padding: 2px 6px;
  background: var(--chip-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.88em;
}
.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;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  color: #06101f;
  background: var(--accent);
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  transition: top 0.16s ease;
}
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }

.site-header {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid var(--border);
  background: var(--toolbar-bg);
  backdrop-filter: blur(16px);
}
.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #06101f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.brand-text span { color: var(--accent); }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 10px;
  color: var(--muted);
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}
.nav-link:hover { color: var(--text); background: var(--chip-bg); }
.nav-external { color: var(--accent); }
.theme-toggle {
  height: 36px;
  margin-left: 4px;
  padding: 0 12px;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}
.theme-toggle:hover { background: var(--card-strong); }

.hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 56px 24px 28px;
}
.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
h1 {
  margin: 0.45rem 0 0.9rem;
  max-width: 960px;
  font-size: clamp(2.1rem, 5.4vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}
.gradient {
  background: linear-gradient(92deg, var(--accent), var(--accent-2) 55%, var(--gradient-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}
.stats-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  max-width: 980px;
  margin-top: 28px;
}
.stat {
  padding: 14px 16px;
  background: var(--card-gradient);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.stat strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.stat span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--toolbar-bg);
  backdrop-filter: blur(16px);
}
.toolbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 24px;
}
.search { flex: 1 1 280px; }
.filters-toggle { display: none; }
.filters-panel { display: contents; }
input[type="search"],
select,
button {
  height: 42px;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 11px;
  outline: none;
  font-size: 0.88rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
input[type="search"] { width: 100%; padding: 0 14px; }
input[type="search"]::placeholder { color: var(--placeholder); }
select {
  max-width: 210px;
  padding: 0 32px 0 11px;
  cursor: pointer;
}
button {
  padding: 0 14px;
  cursor: pointer;
  font-weight: 750;
  white-space: nowrap;
}
button:hover { background: var(--card-strong); }
#favorites-toggle.is-active {
  color: #06101f;
  background: var(--accent);
  border-color: var(--accent);
}
input[type="search"]:focus,
select:focus,
button:focus-visible {
  border-color: var(--focus-border);
  box-shadow: var(--focus-shadow);
}
.topic-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 12px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.topic-label {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.topic-chip {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 10px;
  color: var(--muted);
  background: var(--chip-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}
.topic-chip span {
  margin-left: 3px;
  color: var(--placeholder);
  font-size: 0.64rem;
}
.topic-chip:hover { color: var(--text); border-color: var(--border-strong); }
.topic-chip.is-active {
  color: #06101f;
  background: var(--accent);
  border-color: var(--accent);
}
.topic-chip.is-active span { color: rgba(6, 16, 31, 0.65); }

.results {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 24px 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 18px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px 48px;
}
.card {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 15px;
  overflow: hidden;
  padding: 18px;
  background: var(--card-gradient);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0.75;
}
.card[data-status="slow"]::before { background: linear-gradient(90deg, #f59e0b, var(--amber)); }
.card[data-status="archived"]::before { background: linear-gradient(90deg, #64748b, #94a3b8); }
.card:hover {
  transform: translateY(-3px);
  border-color: var(--card-hover-border);
  box-shadow: var(--shadow);
}
.card-cover { align-self: start; }
.cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--chip-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-placeholder {
  display: grid;
  place-items: center;
  color: var(--accent);
  background:
    radial-gradient(circle at 30% 20%, rgba(110, 231, 255, 0.25), transparent 55%),
    linear-gradient(135deg, rgba(167, 139, 250, 0.18), rgba(110, 231, 255, 0.08));
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.card-body { min-width: 0; }
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.card-heading { min-width: 0; }
.card-title {
  margin: 0 0 7px;
  font-size: 1.12rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.external-mark {
  display: inline-block;
  margin-left: 3px;
  color: var(--muted);
  font-size: 0.78em;
  text-decoration: none;
}
.external-mark:hover { color: var(--accent); }
.badge {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-soft {
  color: var(--muted);
  background: var(--chip-bg);
  border-color: var(--border);
}
.status-active {
  color: var(--status-active-text);
  background: var(--status-active-bg);
  border-color: var(--status-active-border);
}
.status-slow {
  color: var(--status-slow-text);
  background: var(--status-slow-bg);
  border-color: var(--status-slow-border);
}
.status-archived {
  color: var(--status-archived-text);
  background: var(--status-archived-bg);
  border-color: var(--status-archived-border);
}
.chips, .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips { margin: 9px 0 0; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  color: var(--muted);
  background: var(--chip-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 650;
  text-decoration: none;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip-category { color: var(--accent); }
.chip-more { cursor: help; }
.description {
  display: -webkit-box;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--description);
  font-size: 0.86rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.muted { color: var(--muted); }
.meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 13px 0 0;
}
.meta div { min-width: 0; }
.meta dt {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.meta dd {
  margin: 1px 0 0;
  overflow: hidden;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.meta-large { grid-template-columns: 1fr; gap: 12px; }
.meta-large dd { white-space: normal; }
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  color: var(--text);
  background: var(--link-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
  text-decoration: none;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.link:hover {
  color: var(--link-hover-text);
  background: var(--accent);
  border-color: var(--accent);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
}
.link-site .dot { background: var(--accent); }
.link-rss .dot { background: #fb923c; }
.link-apple .dot { background: #c084fc; }
.link-spotify .dot { background: var(--green); }
.link-youtube .dot { background: var(--red); }
.link-deezer .dot { background: #a855f7; }
.link-pocketcasts .dot { background: #f43f5e; }
.link-podcastaddict .dot { background: #22c55e; }
.link-amazon .dot { background: #38bdf8; }
.link-castbox .dot { background: #f59e0b; }
.link-linkedin .dot { background: #60a5fa; }
.link:hover .dot { background: var(--link-hover-text); }
.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  color: #06101f;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { filter: brightness(1.08); }
.button-small { height: 32px; padding: 0 10px; font-size: 0.74rem; }
.button-secondary {
  color: var(--text);
  background: var(--link-bg);
  border-color: var(--border);
}
.button-secondary:hover { background: var(--card-strong); filter: none; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--muted);
  background: var(--link-bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 800;
}
.icon-btn:hover { color: var(--text); background: var(--card-strong); }
.play-btn { color: var(--accent); }
.favorite-btn .heart { line-height: 1; }
.favorite-btn.is-fav {
  color: #fb7185;
  background: rgba(251, 113, 133, 0.12);
  border-color: rgba(251, 113, 133, 0.36);
}
.favorite-btn.is-fav .heart { color: #fb7185; }
.tags {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.tag { color: var(--muted); font-size: 0.68rem; }
.tag::before { content: "#"; color: var(--accent); font-weight: 800; }
.tag.more { cursor: help; }
.empty {
  max-width: 1400px;
  margin: 0 auto;
  padding: 64px 24px;
  color: var(--muted);
  text-align: center;
}
.empty .button { margin-left: 8px; }

.player-bar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.player-info { min-width: 0; flex: 1 1 auto; }
.player-label {
  display: block;
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.player-title {
  display: block;
  overflow: hidden;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-bar audio { width: min(420px, 46vw); height: 34px; }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 22px 24px 32px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}
.footer a { color: var(--accent); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

.detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 48px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.8rem;
}
.breadcrumb a { color: var(--accent); text-decoration: none; }
.detail-hero {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 24px;
  background: var(--card-gradient);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cover-lg { border-radius: 20px; }
.detail-intro h1 { margin-top: 8px; font-size: clamp(1.9rem, 4vw, 3.2rem); }
.detail-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.detail-hosts {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.detail-actions .favorite-btn {
  width: auto;
  height: 38px;
  padding: 0 14px;
  gap: 7px;
  font-size: 0.8rem;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.8fr);
  gap: 18px;
  margin-top: 18px;
}
.panel {
  padding: 22px;
  background: var(--card-gradient);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.panel h2 {
  margin: 0 0 12px;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.panel > h2:not(:first-child) {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.player-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: var(--chip-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.player-card .player-title {
  color: var(--text);
  font-size: 0.9rem;
  white-space: normal;
}
.player-card audio { width: 100%; }
.video-card {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.video-card iframe { width: 100%; height: 100%; border: 0; }
.episode-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.episode {
  padding: 12px;
  background: var(--chip-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.episode-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.episode-date {
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.episode h3 {
  margin: 3px 0 0;
  font-size: 0.9rem;
  line-height: 1.35;
}
.episode h3 a { text-decoration: none; }
.episode h3 a:hover { color: var(--accent); }
.episode-duration {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}
.episode-audio { width: 100%; height: 32px; margin-top: 8px; }
.related { margin-top: 18px; }
.related h2 { margin: 0 0 12px; font-size: 1.1rem; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.mini-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--card-gradient);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
}
.mini-card:hover { border-color: var(--card-hover-border); }
.mini-cover { width: 48px; flex: 0 0 auto; border-radius: 9px; }
.mini-body { min-width: 0; }
.mini-body strong {
  display: block;
  overflow: hidden;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-body small { color: var(--muted); font-size: 0.68rem; }

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 42px 24px 56px;
}
.page-header { margin-bottom: 26px; }
.page-header h1 { margin-bottom: 0.6rem; }
.prose .panel { margin-bottom: 16px; }
.prose h2 { margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--description); }
.prose a { color: var(--accent); }
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.topic-card {
  display: flex;
  flex-direction: column;
  min-height: 170px;
  padding: 18px;
  background: var(--card-gradient);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.topic-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-hover-border);
  box-shadow: var(--shadow);
}
.topic-count {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.topic-card h2 { margin: 8px 0 6px; font-size: 1.2rem; }
.topic-card p { margin: 0; color: var(--muted); font-size: 0.8rem; }
.topic-arrow { margin-top: auto; padding-top: 14px; color: var(--accent); font-size: 0.78rem; font-weight: 800; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.stat-card {
  padding: 18px;
  background: var(--card-gradient);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat-card strong {
  display: block;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}
.stat-card span { color: var(--muted); font-size: 0.76rem; font-weight: 700; }
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.panel-wide { grid-column: 1 / -1; }
.bar-row {
  display: grid;
  grid-template-columns: minmax(90px, 0.9fr) minmax(80px, 1.4fr) 42px;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.bar-label {
  overflow: hidden;
  color: var(--description);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar-track {
  height: 8px;
  overflow: hidden;
  background: var(--bar);
  border-radius: 999px;
}
.bar-fill {
  display: block;
  height: 100%;
  background: var(--bar-fill);
  border-radius: 999px;
}
.bar-count {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
  text-align: right;
}
.notice {
  padding: 12px 14px;
  color: var(--description);
  background: var(--chip-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.84rem;
}
.table-panel { margin-top: 18px; }
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
th, td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
th {
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
td a { color: var(--accent); text-decoration: none; }
.health-badge {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  white-space: nowrap;
}
.health-ok {
  color: var(--status-active-text);
  background: var(--status-active-bg);
  border-color: var(--status-active-border);
}
.health-warning {
  color: var(--status-slow-text);
  background: var(--status-slow-bg);
  border-color: var(--status-slow-border);
}
.health-error {
  color: #fecdd3;
  background: rgba(244, 63, 94, 0.14);
  border-color: rgba(244, 63, 94, 0.34);
}
.health-missing, .health-unchecked, .health-unknown {
  color: var(--status-archived-text);
  background: var(--status-archived-bg);
  border-color: var(--status-archived-border);
}
.not-found { text-align: center; }
.not-found .button { margin-top: 18px; }

@media (max-width: 980px) {
  .stats-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-hero { grid-template-columns: 160px minmax(0, 1fr); gap: 18px; }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-header-inner {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px 12px;
  }
  .brand { flex: 0 0 auto; gap: 8px; font-size: 0.95rem; }
  .brand-mark { width: 30px; height: 30px; border-radius: 8px; font-size: 0.66rem; }
  .nav-links {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-link { flex: 0 0 auto; padding: 6px 7px; font-size: 0.74rem; }
  .theme-toggle { flex: 0 0 auto; height: 32px; margin-left: 2px; padding: 0 9px; font-size: 0.74rem; }
  .hero { padding: 22px 16px 12px; }
  .eyebrow { font-size: 0.62rem; }
  h1 { margin: 0.28rem 0 0.55rem; font-size: clamp(1.65rem, 8.5vw, 2.4rem); }
  .lead { font-size: 0.85rem; line-height: 1.45; }
  .stats-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 16px; }
  .stat { padding: 9px 10px; border-radius: 11px; }
  .stat strong { font-size: 1.12rem; }
  .stat span { font-size: 0.63rem; }
  .toolbar-inner { padding: 8px 12px; gap: 8px; }
  input[type="search"], select, button { height: 38px; }
  .search { flex: 1 1 auto; }
  .filters-toggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; padding: 0 12px; }
  .filters-panel { display: none; flex: 1 1 100%; flex-wrap: wrap; gap: 8px; }
  .toolbar.is-filters-open .filters-panel { display: flex; }
  .filters-panel select { flex: 1 1 calc(50% - 4px); max-width: none; }
  .filters-panel button { flex: 1 1 auto; }
  .toolbar:not(.is-filters-open) .topic-bar { display: none; }
  .topic-bar { padding: 0 12px 10px; }
  .results { padding: 14px 16px 0; }
  .grid { grid-template-columns: 1fr; padding: 14px 16px 36px; }
  .card { grid-template-columns: 72px minmax(0, 1fr); padding: 15px; }
  .player-bar { right: 10px; bottom: 10px; left: 10px; flex-wrap: wrap; }
  .player-bar audio { width: 100%; }
  .detail { padding: 18px 16px 36px; }
  .detail-hero { grid-template-columns: 1fr; }
  .detail-hero .cover { max-width: 190px; }
  .page { padding: 30px 16px 40px; }
  .charts-grid { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: minmax(80px, 1fr) minmax(70px, 1.2fr) 34px; }
  .footer { padding: 20px 16px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
