@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── 变量 ── */
:root {
  --c-primary: #eb879c;
  --c-primary-light: #ffb6c1;
  --c-dark: #26171a;
  --c-dark-80: rgba(38,23,26,0.8);
  --c-bg: #1a0f12;
  --c-bg-card: #231318;
  --c-bg-card2: #2a1720;
  --c-text: #f0e0e4;
  --c-text-muted: #c4a0aa;
  --c-border: rgba(235,135,156,0.2);
  --c-accent-line: #eb879c;
  --r-card: 28px;
  --r-btn: 12px;
  --shadow-soft: 0 2px 8px rgba(38,23,26,0.5), 0 8px 24px rgba(235,135,156,0.12);
  --shadow-hover: 0 4px 16px rgba(38,23,26,0.6), 0 12px 32px rgba(235,135,156,0.22);
  --transition: 220ms cubic-bezier(0.4,0,0.2,1);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 1100px;
  --aside-w: 220px;
}

/* ── 重置 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--c-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-primary-light); }
a:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; border-radius: 8px; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
input { font-family: var(--font); }

/* ── 全站导航遮罩侧边栏 ── */
.site-nav-aside {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(26,15,18,0.98);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(-100%);
  transition: transform 280ms cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
.site-nav-aside.is-open {
  transform: translateX(0);
}
.site-nav-aside nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}
.site-nav-aside nav ul li a {
  display: block;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--c-text);
  padding: 0.75rem 2rem;
  border-radius: var(--r-btn);
  transition: background var(--transition), color var(--transition);
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-nav-aside nav ul li a:hover {
  background: rgba(235,135,156,0.15);
  color: var(--c-primary);
}
.nav-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-size: 1.5rem;
  color: var(--c-text-muted);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background var(--transition), color var(--transition);
}
.nav-close:hover { background: rgba(235,135,156,0.15); color: var(--c-primary); }
.nav-overlay {
  position: fixed; inset: 0;
  z-index: 199;
  display: none;
}
.nav-overlay.is-open { display: block; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26,15,18,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark { border-radius: 8px; }
.brand-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.header-search {
  display: flex;
  align-items: center;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: 24px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.header-search:focus-within {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(235,135,156,0.15);
}
.header-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--c-text);
  font-size: 0.875rem;
  padding: 0.45rem 0.8rem;
  width: 160px;
  min-height: 40px;
}
.header-search input::placeholder { color: var(--c-text-muted); }
.header-search button {
  padding: 0.45rem 0.8rem;
  color: var(--c-text-muted);
  font-size: 0.9rem;
  min-height: 40px;
  min-width: 40px;
  display: flex; align-items: center; justify-content: center;
  transition: color var(--transition);
}
.header-search button:hover { color: var(--c-primary); }
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.6rem;
  min-width: 44px; min-height: 44px;
  justify-content: center;
  align-items: center;
  border-radius: var(--r-btn);
  transition: background var(--transition);
}
.hamburger:hover { background: rgba(235,135,156,0.1); }
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--c-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ── Hero (首页) ── */
.hero {
  position: relative;
  min-height: 70vh;
  background: linear-gradient(135deg, var(--c-dark) 0%, #3a1a22 50%, #1a0f12 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 4rem 1.5rem 8rem;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%; left: -20%;
  width: 70%; height: 140%;
  background: radial-gradient(ellipse, rgba(235,135,156,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto 0 0;
  padding-left: calc((100vw - var(--max-w)) / 2);
  padding-left: max(1.5rem, calc((100vw - var(--max-w)) / 2));
}
.hero-title {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-arc {
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%;
  height: 80px;
  background: var(--c-bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

/* ── 按钮 ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.6rem;
  background: linear-gradient(135deg, var(--c-primary) 0%, #d4607a 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--r-btn);
  min-height: 44px;
  box-shadow: 0 2px 8px rgba(235,135,156,0.35);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(235,135,156,0.45);
  filter: brightness(1.08);
  color: #fff;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.6rem;
  background: rgba(235,135,156,0.12);
  color: var(--c-primary);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--r-btn);
  border: 1px solid var(--c-border);
  min-height: 44px;
  transition: background var(--transition), border-color var(--transition);
  text-decoration: none;
}
.btn-secondary:hover {
  background: rgba(235,135,156,0.2);
  border-color: var(--c-primary);
  color: var(--c-primary);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--c-border);
  color: var(--c-primary);
  font-size: 0.85rem;
  border-radius: var(--r-btn);
  min-height: 40px;
  transition: background var(--transition), border-color var(--transition);
  text-decoration: none;
}
.btn-outline:hover {
  background: rgba(235,135,156,0.1);
  border-color: var(--c-primary);
}

/* ── main & wrap ── */
main { padding: 3rem 0; }
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

/* ── 卡片通用 ── */
.feat-card,
.child-card,
.channel-card,
.related-card,
.about-link-card,
.notice-card {
  background: var(--c-bg-card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feat-card::after,
.child-card::after,
.channel-card::after,
.related-card::after,
.about-link-card::after,
.notice-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-light));
  border-radius: 0 0 var(--r-card) var(--r-card);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.feat-card:hover,
.child-card:hover,
.channel-card:hover,
.related-card:hover,
.about-link-card:hover,
.notice-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.feat-card:hover::after,
.child-card:hover::after,
.channel-card:hover::after,
.related-card:hover::after,
.about-link-card:hover::after,
.notice-card:hover::after {
  transform: scaleX(1);
}

.card-thumb img { width: 100%; height: 180px; object-fit: cover; border-radius: 0; }
.card-body { padding: 1.25rem 1.5rem 1.5rem; }
.card-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.35rem; }
.card-title a { color: var(--c-text); }
.card-title a:hover { color: var(--c-primary); }
.card-date { font-size: 0.78rem; color: var(--c-text-muted); margin-bottom: 0.5rem; display: block; }
.card-desc { font-size: 0.875rem; color: var(--c-text-muted); margin-bottom: 0.85rem; line-height: 1.6; }
.card-link {
  font-size: 0.82rem;
  color: var(--c-primary);
  font-weight: 500;
  text-decoration: none;
}
.card-link:hover { color: var(--c-primary-light); }

/* ── 首页：频道卡片 ── */
.channels-section { display: flex; flex-direction: column; gap: 1rem; }
.channels-section > h2,
.featured-section > h2,
.child-list > h2,
.related-section > h2,
.about-links-section > h2,
.privacy-notice > h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 0.25rem;
}
.channel-card { padding: 0; }
.channel-card-inner { padding: 1.5rem 1.75rem 1.75rem; }
.channel-card-inner h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.4rem; }
.channel-card-inner h3 a { color: var(--c-text); }
.channel-card-inner h3 a:hover { color: var(--c-primary); }
.channel-card-inner p { font-size: 0.875rem; color: var(--c-text-muted); margin-bottom: 1rem; }

/* ── 首页精选网格 ── */
.featured-section { display: flex; flex-direction: column; gap: 1rem; }
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* ── div > article 卡片列表 (契约) ── */
.channels-section,
.featured-section,
.child-list,
.related-section,
.about-links-section,
.privacy-notice {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── 正文内容 ── */
.content-section { display: flex; flex-direction: column; }
.home-content.prose { padding: 0; }

/* ── 面包屑 ── */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--c-text-muted);
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb span { color: var(--c-text-muted); }

/* ── 双栏布局 (channel/article/about/privacy) ── */
.channel-layout,
.article-layout,
.about-layout,
.privacy-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: var(--aside-w) 1fr;
  gap: 2.5rem;
  align-items: start;
}
.channel-layout main,
.article-layout main,
.about-layout main,
.privacy-layout main { min-width: 0; }
.channel-layout main .wrap,
.article-layout main .wrap,
.about-layout main .wrap,
.privacy-layout main .wrap {
  padding: 0;
  max-width: none;
}

/* ── 侧边 aside ── */
.content-aside {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.content-aside nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.content-aside nav ul li a {
  display: block;
  font-size: 0.85rem;
  color: var(--c-text-muted);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  min-height: 40px;
  display: flex; align-items: center;
}
.content-aside nav ul li a:hover {
  background: rgba(235,135,156,0.08);
  color: var(--c-primary);
  border-left-color: var(--c-primary);
}
.aside-related,
.aside-info,
.aside-back {
  background: var(--c-bg-card);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  border: 1px solid var(--c-border);
}
.aside-related h4,
.aside-info h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.aside-related ul li a,
.aside-info ul li a {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  display: block;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(235,135,156,0.07);
  transition: color var(--transition);
}
.aside-related ul li:last-child a,
.aside-info ul li:last-child a { border-bottom: none; }
.aside-related ul li a:hover,
.aside-info ul li a:hover { color: var(--c-primary); }
.aside-info p { font-size: 0.82rem; color: var(--c-text-muted); line-height: 1.6; }

/* ── 文章区 ── */
.article-section,
.channel-intro,
.about-section,
.privacy-section {
  display: flex; flex-direction: column; gap: 1rem;
}
.article-body h1,
.channel-content h1,
.about-content h1,
.privacy-content h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--c-text);
}
.article-meta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.page-date {
  font-size: 0.8rem;
  color: var(--c-text-muted);
  display: inline-block;
  margin-bottom: 0.75rem;
}
.article-hero { margin: 1.25rem 0; border-radius: var(--r-card); overflow: hidden; }
.article-hero-img { width: 100%; max-height: 360px; object-fit: cover; border-radius: var(--r-card); }

/* ── 富文本 prose ── */
.prose {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-text);
}
.prose h2 { font-size: 1.3rem; font-weight: 700; margin: 2rem 0 0.5rem; color: var(--c-primary-light); }
.prose h3 { font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 0.4rem; color: var(--c-text); }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin: 0 0 1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--c-primary); text-decoration: underline; text-decoration-color: rgba(235,135,156,0.4); }
.prose a:hover { text-decoration-color: var(--c-primary); }
.prose blockquote {
  border-left: 3px solid var(--c-primary);
  padding: 0.75rem 1.25rem;
  margin: 1.25rem 0;
  background: rgba(235,135,156,0.06);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--c-text-muted);
}
.prose code {
  background: rgba(235,135,156,0.1);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}
.prose pre {
  background: var(--c-bg-card);
  border-radius: 12px;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.25rem 0;
}
.prose img { border-radius: 16px; margin: 1rem 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.9rem; }
.prose th, .prose td { padding: 0.6rem 0.8rem; border: 1px solid var(--c-border); }
.prose th { background: rgba(235,135,156,0.1); font-weight: 600; }

/* ── subtitle (契约: h2 + p.subtitle) ── */
.subtitle {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* ── 相关卡片（article 内页） ── */
.related-section {
  border-top: 1px solid var(--c-border);
  padding-top: 2rem;
}
.related-card { padding: 1.25rem 1.5rem 1.5rem; }
.related-card h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.3rem; }
.related-card h4 a { color: var(--c-text); }
.related-card h4 a:hover { color: var(--c-primary); }
.related-card p { font-size: 0.85rem; color: var(--c-text-muted); margin-top: 0.4rem; }

/* ── about 链接卡片 ── */
.about-links-section { padding-top: 1rem; }
.about-link-card { padding: 1.25rem 1.5rem 1.5rem; }
.about-link-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.35rem; }
.about-link-card h3 a { color: var(--c-text); }
.about-link-card h3 a:hover { color: var(--c-primary); }
.about-link-card p { font-size: 0.875rem; color: var(--c-text-muted); }

/* ── privacy 通知卡片 ── */
.notice-card { padding: 1.25rem 1.5rem 1.5rem; }
.notice-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--c-primary-light); }
.notice-card p { font-size: 0.875rem; color: var(--c-text-muted); }

/* ── 页脚 ── */
.site-footer {
  background: var(--c-dark);
  border-top: 1px solid rgba(235,135,156,0.15);
  margin-top: 4rem;
}
.footer-top {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
}
.footer-brand .brand { margin-bottom: 0.75rem; }
.footer-desc { font-size: 0.875rem; color: var(--c-text-muted); line-height: 1.7; margin-bottom: 1rem; }
.footer-brand address { font-style: normal; }
.footer-brand address p { font-size: 0.82rem; color: var(--c-text-muted); }
.footer-links-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.footer-links-col ul { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links-col ul li a {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}
.footer-links-col ul li a:hover { color: var(--c-primary); }
.footer-form {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(235,135,156,0.1);
}
.footer-form h4 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; color: var(--c-text); }
.subscribe-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.subscribe-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 0.65rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--c-border);
  border-radius: var(--r-btn);
  color: var(--c-text);
  font-size: 0.9rem;
  min-height: 44px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.subscribe-form input[type="email"]:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(235,135,156,0.12);
}
.subscribe-form input::placeholder { color: var(--c-text-muted); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(235,135,156,0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}
.copyright { font-size: 0.8rem; color: var(--c-text-muted); }
.footer-bottom nav { display: flex; gap: 1rem; }
.footer-bottom nav a {
  font-size: 0.8rem;
  color: var(--c-text-muted);
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}
.footer-bottom nav a:hover { color: var(--c-primary); }

/* ── channel 子页列表 ── */
.child-list {
  border-top: 1px solid var(--c-border);
  padding-top: 2rem;
}

/* ── prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .site-nav-aside { transition: none; }
}

/* ── 响应式断点 ── */
@media (max-width: 900px) {
  .channel-layout,
  .article-layout,
  .about-layout,
  .privacy-layout {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem;
  }
  .content-aside {
    position: static;
    order: -1;
  }
  .content-aside nav { display: none; }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .hero { min-height: 60vh; padding: 3rem 1rem 6rem; }
  .hero-content { padding-left: 0; }
  .hero-title { font-size: 1.7rem; }
  .hero-cta { flex-direction: column; }
  .header-search input { width: 100px; }
  .header-inner { padding: 0 1rem; }
  .wrap { padding: 0 1rem; }
  .feat-grid { grid-template-columns: 1fr; }
  .footer-top { padding: 2rem 1rem 1.5rem; }
  .footer-form { padding: 1.5rem 1rem; }
  .footer-bottom { padding: 1rem; }
  .channel-layout,
  .article-layout,
  .about-layout,
  .privacy-layout { padding: 1.25rem 1rem; }
  main { padding: 2rem 0; }
}

@media (min-width: 641px) {
  .channels-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .channels-section > h2,
  .channels-section > p.subtitle { grid-column: 1 / -1; }
  .featured-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .featured-section > h2,
  .featured-section > p.subtitle { grid-column: 1 / -1; }
  .child-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .child-list > h2,
  .child-list > p.subtitle { grid-column: 1 / -1; }
  .related-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .related-section > h2,
  .related-section > p.subtitle { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .channels-section {
    grid-template-columns: repeat(4, 1fr);
  }
  .featured-section {
    grid-template-columns: repeat(3, 1fr);
  }
  .child-list,
  .related-section {
    grid-template-columns: repeat(3, 1fr);
  }
}
