﻿:root {
  --bg: #f4efe8;
  --panel: #fffaf3;
  --panel-strong: #f1e3d4;
  --ink: #161311;
  --muted: #6d6258;
  --line: rgba(22, 19, 17, 0.1);
  --accent: #bc613c;
  --accent-soft: rgba(188, 97, 60, 0.12);
  --chip: rgba(255, 250, 243, 0.96);
  --shadow: 0 18px 40px rgba(66, 38, 19, 0.08);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top left, rgba(188, 97, 60, 0.12), transparent 32%), linear-gradient(180deg, #f7f1e9 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: "Georgia", "Noto Serif SC", "Source Han Serif SC", serif;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
.shell { min-height: 100vh; padding: 16px 14px 32px; }
.hero, .detail-header, .story-stack, .subnav, .channel-stage, .summary-bar { width: min(1120px, 100%); margin: 0 auto; }
.hero {
  padding: 8px 0 12px;
}
.hero__title-row {
  display: flex;
  align-items: end;
  gap: 12px;
}
.top-tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 0 2px;
  overflow-x: auto;
  background: linear-gradient(180deg, rgba(244, 239, 232, 0.98) 0%, rgba(244, 239, 232, 0.86) 100%);
  backdrop-filter: blur(10px);
  scrollbar-width: none;
}
.top-tabs::-webkit-scrollbar { display: none; }
.top-tabs__item {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  appearance: none;
  border: 1px solid rgba(22, 19, 17, 0.06);
  border-radius: 999px;
  background: var(--chip);
  color: var(--muted);
  text-decoration: none;
  font-family: "Segoe UI", "PingFang SC", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 18px rgba(66, 38, 19, 0.04);
  transition: transform .18s ease, border-color .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
}
.top-tabs__item:hover {
  transform: translateY(-1px);
  border-color: rgba(188, 97, 60, 0.35);
  color: var(--ink);
}
.top-tabs__item.is-active {
  color: #fffaf3;
  border-color: var(--accent);
  background: linear-gradient(135deg, #cb734e 0%, #aa4f2e 100%);
  box-shadow: 0 10px 24px rgba(170, 79, 46, 0.25);
}
.hero__meta, .eyebrow { display: inline-block; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.hero h1, .detail-header h2, .channel-stage__head h2 { margin: 10px 0 14px; line-height: 0.98; letter-spacing: -0.03em; }
.hero h1 { font-size: clamp(28px, 11vw, 56px); max-width: 9ch; margin: 2px 0; }
.hero p, .detail-header p, .story-card p, .empty-state, .lead-story__body p, .channel-stage__head p {
  color: var(--muted);
  font-family: "Segoe UI", "PingFang SC", sans-serif;
  line-height: 1.72;
}
.summary-bar, .story-card__meta, .subnav, .channel-stage__meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-family: "Segoe UI", "PingFang SC", sans-serif;
  color: var(--muted);
}
.summary-bar {
  padding: 14px 0 4px;
  font-size: 13px;
}
.summary-bar__item {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.78);
  border: 1px solid rgba(22, 19, 17, 0.06);
}
.summary-bar__item--active {
  color: var(--accent);
  border-color: rgba(188, 97, 60, 0.18);
  background: rgba(188, 97, 60, 0.08);
}
.channel-stage {
  padding: 12px 0 10px;
}
.channel-stage__head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  padding-bottom: 12px;
}
.channel-stage__head h2 {
  margin: 4px 0 0;
  font-size: clamp(24px, 8vw, 42px);
}
.lead-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 0;
  border: 1px solid rgba(22, 19, 17, 0.05);
  border-radius: 24px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.lead-story .thumb {
  aspect-ratio: 16 / 11;
  background: var(--panel-strong);
  border-radius: 0;
}
.lead-story__body {
  display: grid;
  align-content: start;
  padding: 0 16px 16px;
}
.lead-story__body h2 {
  margin: 8px 0 8px;
  font-size: clamp(24px, 7.4vw, 38px);
  line-height: 1.12;
}
.lead-story__body p {
  margin: 0 0 14px;
  font-size: 15px;
}
.story-stack { display: grid; gap: 12px; padding-top: 14px; }
.story-stack--ranked { counter-reset: digest-rank 1; }
.story-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  align-items: start;
}
.story-card__rank {
  display: grid;
  place-items: center;
  width: 42px;
  min-height: 42px;
  font-family: "Segoe UI", "PingFang SC", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}
.story-card .thumb {
  grid-column: 2;
}
.story-card__body {
  grid-column: 2;
}
.thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--accent-soft);
  border-radius: 18px;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb__badge,
.thumb__play {
  position: absolute;
  z-index: 1;
}
.thumb__badge {
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  background: rgba(20, 18, 15, 0.68);
  color: #fff8f1;
  font-family: "Segoe UI", "PingFang SC", sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.thumb__play {
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(20, 18, 15, 0.76);
  color: #fff8f1;
  font-size: 16px;
}
.story-card__meta { font-size: 13px; }
.story-card h3 { margin: 8px 0 8px; font-size: clamp(18px, 5vw, 24px); line-height: 1.2; }
.story-card h3 a, .link, .story__source, .lead-story__body h2 a { text-decoration: none; }
.story-card h3 a:hover, .link:hover, .story__source:hover, .lead-story__body h2 a:hover { color: var(--accent); }
.story-card p { margin: 0 0 10px; }
.story-card strong, .lead-story__body strong { color: var(--ink); font-weight: 700; background: linear-gradient(transparent 65%, rgba(188, 97, 60, .18) 0); }
.media-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(188, 97, 60, 0.12);
  color: var(--accent);
}
.detail-page { padding-top: 12px; }
.subnav { padding: 24px 0 0; }
.detail-header { padding: 18px 0 26px; border-bottom: 1px solid var(--line); }
.detail-header h2 { font-size: clamp(34px, 5vw, 64px); max-width: 9ch; }
.empty-state { padding: 20px 0; }

@media (min-width: 981px) {
  .shell { padding: 28px 24px 40px; }
  .hero { padding-top: 10px; }
  .hero__title-row { justify-content: flex-start; }
  .summary-bar { justify-content: flex-start; }
  .lead-story {
    grid-template-columns: minmax(360px, 1.08fr) minmax(0, 1fr);
    gap: 26px;
  }
  .lead-story__body {
    padding: 20px 22px 22px 0;
  }
  .story-card {
    grid-template-columns: 56px 180px 1fr;
    gap: 18px;
    padding-top: 16px;
  }
  .story-card__rank {
    width: 56px;
    min-height: 56px;
    font-size: 28px;
  }
  .story-card .thumb,
  .story-card__body {
    grid-column: auto;
  }
  .channel-stage__head {
    align-items: end;
    padding-bottom: 18px;
  }
  .channel-stage__head h2 {
    font-size: clamp(34px, 5vw, 64px);
  }
}
