:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #eef4ff;
  --text: #17191f;
  --muted: #626a76;
  --line: #dce2ea;
  --blue: #1e4fd8;
  --blue-soft: #dfeaff;
  --red: #db2432;
  --amber: #a76408;
  --green: #13785f;
  --green-soft: #e6f7ef;
  --green-line: #a8dbc6;
  --shadow: 0 12px 30px rgba(28, 36, 52, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.top-nav-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  width: min(1120px, calc(100vw - 32px));
  min-height: 58px;
  margin: 0 auto;
}

.nav-week-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.nav-button,
.week-select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.nav-button {
  padding: 0 13px;
  cursor: pointer;
}

.nav-button.is-primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.nav-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.week-select {
  width: min(330px, 42vw);
  padding: 0 10px;
}

.app-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  gap: 16px;
  align-items: center;
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 34px 0 30px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #101820;
  font-size: 27px;
}

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

h1 {
  font-size: 34px;
  line-height: 1.15;
}

.app-header p,
.section-title p,
.meta,
.summary,
.why-listen,
.duration,
.claim-status {
  color: var(--muted);
}

.shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.controls,
.report-summary,
.filter-panel,
.podcast-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.controls {
  padding: 20px 22px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 16px;
}

.section-title h2 {
  font-size: 20px;
}

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

button {
  font: inherit;
}

.week-button,
.tab {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.week-button {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
}

.week-button.is-active,
.tab.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.report-summary {
  margin-top: 22px;
  padding: 24px;
  background: var(--surface-soft);
  border-color: #a9c6ff;
}

.summary-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.summary-header h2 {
  font-size: 21px;
}

.status-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 10px;
  background: #fff;
  color: var(--amber);
  font-size: 13px;
  font-weight: 700;
}

.summary-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  font-weight: 800;
}

.summary-stats span:nth-child(2) {
  color: var(--red);
}

.summary-stats span:nth-child(3) {
  color: var(--blue);
}

.content-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
  margin: 24px 0;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 18px;
  padding: 18px;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.filter-header h2 {
  font-size: 20px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.filter-group {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 14px;
}

.filter-group h3 {
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--muted);
}

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

.filter-chip {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 11px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.filter-chip.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.results-panel {
  min-width: 0;
}

.active-filter-line {
  min-height: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  background: #eceef2;
  border-radius: 8px;
}

.tab {
  min-height: 38px;
  border-radius: 6px;
  font-weight: 800;
}

.podcast-list {
  display: grid;
  gap: 16px;
}

.podcast-card {
  padding: 24px;
  box-shadow: var(--shadow);
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.podcast-card h3 {
  max-width: 780px;
  font-size: 20px;
  line-height: 1.35;
}

.meta {
  margin-top: 8px;
  font-weight: 650;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.topic-tag {
  border: 1px solid #cbd7eb;
  border-radius: 999px;
  padding: 3px 9px;
  background: #f7faff;
  color: #40536e;
  font-size: 12px;
  font-weight: 800;
}

.tier-badge {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.tier-badge.medium {
  background: var(--blue);
}

.tier-badge.low {
  background: var(--green);
}

.summary {
  margin-bottom: 18px;
}

.episode-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafcff;
  padding: 12px 14px;
  margin: 16px 0;
}

.episode-summary summary {
  cursor: pointer;
  font-weight: 850;
}

.summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(160px, 1fr);
  gap: 18px;
  margin-top: 12px;
}

.summary-grid h4 {
  margin-bottom: 6px;
  font-size: 14px;
}

.detail-block {
  margin-top: 14px;
}

.detail-block h4 {
  margin-bottom: 6px;
  font-size: 15px;
}

.key-points {
  margin: 0;
  padding-left: 20px;
  color: #444c58;
}

.key-points li {
  margin-top: 8px;
}

.key-points .highlight-point {
  margin-left: -20px;
  padding: 8px 10px 8px 28px;
  border: 1px solid var(--green-line);
  border-radius: 8px;
  background: var(--green-soft);
  color: #0f604d;
  font-weight: 800;
  list-style-position: inside;
}

.card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  font-size: 14px;
}

.card-footer a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.claim-status {
  border-radius: 999px;
  background: #eef1f5;
  padding: 3px 9px;
}

.empty-state {
  padding: 28px;
  border: 1px dashed #b8c0cc;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 680px) {
  .header-inner,
  .top-nav-inner,
  .shell {
    width: min(100vw - 24px, 1120px);
  }

  .top-nav-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 0;
  }

  .nav-week-controls {
    display: grid;
    grid-template-columns: 1fr 1.45fr 1fr;
  }

  .week-select {
    width: 100%;
  }

  .header-inner {
    align-items: start;
    padding: 26px 0 24px;
  }

  h1 {
    font-size: 29px;
  }

  .section-title,
  .summary-header,
  .card-topline {
    display: block;
  }

  .status-pill,
  .tier-badge {
    display: inline-block;
    margin-top: 10px;
  }

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

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

  .filter-panel {
    position: static;
  }

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

  .podcast-card,
  .report-summary,
  .controls,
  .filter-panel {
    padding: 18px;
  }
}
