:root {
  --bg: #f4f6f8;
  --ink: #1a1a1a;
  --muted: #6b7280;
  --line: #e6e8eb;
  --card: #fff;
  --accent: #7eb8dc;
  --accent-deep: #1f5f86;
  --bar: #2a2a2a;
  --header: #fff;
  --shadow: 0 8px 24px rgba(21, 49, 79, 0.06);
  --radius: 14px;
  --page: 40rem;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Montserrat, ui-sans-serif, system-ui, sans-serif;
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.6;
}

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

.topbar {
  height: 6px;
  background: var(--bar);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--header);
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 1.1rem;
}

.burger {
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  display: grid;
  gap: 5px;
  place-content: center;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--bar);
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mark {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.search-toggle {
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-content: center;
}
.search-toggle:hover { background: var(--line); }
.search-toggle svg { width: 1.05rem; height: 1.05rem; }

.search-input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 0.92rem;
  background: var(--card);
  color: var(--ink);
  width: 14rem;
  max-width: 50vw;
  outline: none;
}
.search-input:focus { border-color: var(--accent); }

@media (max-width: 540px) {
  .search-input { width: 10rem; }
}

.menu {
  display: none;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.menu-open .menu { display: block; }

.menu nav {
  display: flex;
  flex-direction: column;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0.4rem 1.1rem 0.8rem;
}

.menu a {
  text-decoration: none;
  font-weight: 500;
  padding: 0.85rem 0.2rem;
  border-top: 1px solid var(--line);
}

.menu a:first-child { border-top: 0; }
.menu a:hover { color: var(--accent-deep); }

.page {
  max-width: var(--page);
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

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

.tl {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tl a {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  padding: 0.9rem 1.1rem;
  color: inherit;
}

.tl-row:not(.has-img) { display: block; }

.tl-thumb {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--line);
  box-shadow: 0 2px 6px rgba(21, 49, 79, 0.08);
}

.tl-text {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
}

.tl a:hover { border-color: var(--accent); }
.tl a:hover .tl-title { color: var(--accent-deep); }

.tl time {
  display: block;
  color: var(--accent-deep);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 0.3rem;
}

.tl-title {
  display: block;
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.35;
}

.tl-sum {
  display: block;
  margin-top: 0.4rem;
  color: #3f3f46;
  font-size: 0.92rem;
}

.ep-head { padding: 1.2rem 1.15rem 0.2rem; }
.back { margin: 0 0 0.8rem; font-size: 0.82rem; }
.back a { color: var(--muted); text-decoration: none; }
.back a:hover { color: var(--accent-deep); }

.kicker {
  margin: 0 0 0.45rem;
  color: var(--accent-deep);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.ep-head h1 {
  margin: 0 0 0.55rem;
  font-weight: 500;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.25;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.6rem;
}

.ep-art {
  display: block;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0 0 1.6rem;
  box-shadow: var(--shadow);
  background: var(--line);
}

.player {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.9rem;
}

.player audio { display: none; }

.player-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.play {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent-deep);
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  cursor: pointer;
}

.play svg { width: 0.95rem; height: 0.95rem; }
.play .icon-play { margin-left: 2px; }
.play .icon-pause { display: none; }
.play.is-playing .icon-play { display: none; }
.play.is-playing .icon-pause { display: block; }

.player-copy { display: flex; flex-direction: column; gap: 0.1rem; }
.player-title { font-weight: 500; font-size: 0.92rem; }
.player-note { color: var(--muted); font-size: 0.78rem; }

.player-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.player-actions :is(button, a) {
  appearance: none;
  border: 1px solid #d5e4ef;
  background: #f7fafc;
  color: var(--accent-deep);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.player-actions :is(button, a):hover { background: #eef6fb; }

.ep-body {
  margin-top: 0.75rem;
  padding: 0.4rem 1.15rem 1.2rem;
}

.ep-body :is(h2) {
  margin: 1.5rem 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
}

.ep-body :is(p, ul) { margin: 0.65rem 0; }
.ep-body a { color: var(--accent-deep); }
.ep-body strong { font-weight: 500; }

.site-footer {
  color: var(--muted);
  font-size: 0.78rem;
  padding: 0.4rem 1.1rem 2rem;
  max-width: var(--page);
  margin: 0 auto;
}

.search-page { padding-bottom: 1rem; }

.search-form {
  display: flex;
  gap: 0.5rem;
  margin: 0.8rem 0 0;
}
.search-form input {
  flex: 1 1 auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font: inherit;
  font-size: 1rem;
  background: var(--card);
  color: var(--ink);
  outline: none;
}
.search-form input:focus { border-color: var(--accent); }
.search-form button {
  appearance: none;
  border: 1px solid var(--accent-deep);
  background: var(--accent-deep);
  color: #fff;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}
.search-form button:hover { filter: brightness(1.08); }

.search-meta { color: var(--muted); font-size: 0.88rem; margin: 1rem 0 0.5rem; }

.search-results { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.4rem; }

.search-hit {
  padding: 1rem 1.1rem;
}
.search-hit h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.3;
}
.search-hit h2 a { color: inherit; text-decoration: none; }
.search-hit h2 a:hover { color: var(--accent-deep); }
.hit-meta { color: var(--accent-deep); font-size: 0.75rem; margin: 0.25rem 0 0.5rem; }
.hit-body p { margin: 0; color: #3f3f46; font-size: 0.94rem; line-height: 1.5; }

mark { background: #fff3a3; color: inherit; padding: 0 1px; border-radius: 2px; }

.empty { color: var(--muted); font-size: 0.95rem; margin: 1rem 0; }
