/* =============================================
   JMCOMIC官方导航 · Claymorphism Dark Theme
   Inter + 薄荷绿 #b4fde1 · 冰蓝 #add8e6 · 墨底 #172620
   ============================================= */

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

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --mint:   #b4fde1;
  --ice:    #add8e6;
  --dark:   #172620;
  --dark2:  #1e332a;
  --dark3:  #243d31;
  --mint-dim: #7ee8c0;
  --ice-dim:  #7ab8cc;
  --text-primary: #e8faf3;
  --text-secondary: #9dd4b8;
  --text-muted: #5a8a72;
  --border-mint: #b4fde1;
  --border-ice:  #add8e6;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --sidebar-w: 260px;
  --shadow-clay: 4px 4px 10px rgba(0,0,0,0.45), inset -2px -2px 8px rgba(0,0,0,0.25);
  --shadow-clay-sm: 3px 3px 8px rgba(0,0,0,0.4), inset -1px -1px 5px rgba(0,0,0,0.2);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --transition-soft: 200ms cubic-bezier(0.34, 1.56);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background-color: var(--dark);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--mint); text-decoration: none; transition: color 180ms ease; }
a:hover { color: var(--ice); }
a:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }

img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }

.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;
}

/* ---- Layout Shell ---- */
.site-layout {
  display: flex;
  min-height: 100vh;
}

.page-body {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---- Sidebar ---- */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--dark2);
  border-right: 3px solid var(--dark3);
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 100;
  overflow-y: auto;
  box-shadow: 4px 0 20px rgba(0,0,0,0.5);
}

.sidebar__brand {
  padding: 24px 20px 16px;
  border-bottom: 2px solid var(--dark3);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  border: 3px solid var(--mint);
  box-shadow: var(--shadow-clay-sm);
  background: linear-gradient(135deg, var(--dark3), var(--dark2));
  transition: transform var(--transition-soft), box-shadow 200ms ease;
}
.brand-logo:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 5px 5px 12px rgba(0,0,0,0.5), inset -2px -2px 6px rgba(0,0,0,0.3);
}
.brand-logo--text span {
  font-size: 15px; font-weight: 700;
  color: var(--mint); letter-spacing: 0.02em;
}
.brand-logo__img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; }

.sidebar__search {
  padding: 16px 16px 12px;
  border-bottom: 2px solid var(--dark3);
}

.search-form {
  display: flex;
  gap: 6px;
  align-items: center;
}

.search-input {
  flex: 1;
  height: 36px;
  background: var(--dark3);
  border: 2px solid var(--dark3);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 13px;
  padding: 0 10px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
  box-shadow: inset 1px 1px 4px rgba(0,0,0,0.3);
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: inset 1px 1px 4px rgba(0,0,0,0.3), 0 0 0 2px rgba(180,253,225,0.15);
}

.search-btn {
  width: 36px; height: 36px;
  background: var(--dark3);
  border: 2px solid var(--mint-dim);
  border-radius: var(--radius-sm);
  color: var(--mint);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 180ms ease, transform var(--transition-soft);
  box-shadow: var(--shadow-clay-sm);
  padding: 0;
  min-width: 40px; min-height: 40px;
}
.search-btn:hover {
  background: var(--mint);
  color: var(--dark);
  transform: scale(1.08);
}

/* Sidebar Nav */
.sidebar nav { padding: 12px 0; flex: 1; }

.sidebar nav ul { display: flex; flex-direction: column; gap: 2px; padding: 0 10px; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  transition: background 180ms ease, color 180ms ease, transform var(--transition-soft);
  border: 2px solid transparent;
  min-height: 42px;
}
.nav-link:hover {
  background: var(--dark3);
  color: var(--mint);
  border-color: rgba(180,253,225,0.2);
  transform: translateX(3px);
}
.nav-link--active {
  background: linear-gradient(135deg, rgba(180,253,225,0.12), rgba(173,216,230,0.08));
  color: var(--mint);
  border-color: rgba(180,253,225,0.35);
  box-shadow: var(--shadow-clay-sm);
}
.nav-icon {
  font-size: 12px;
  color: var(--mint-dim);
  flex-shrink: 0;
  opacity: 0.7;
}
.nav-text { line-height: 1.3; }

/* ---- Content Wrap (with aside) ---- */
.content-wrap {
  display: flex;
  flex: 1;
  gap: 24px;
  padding: 32px 28px;
  align-items: flex-start;
}

.content-wrap--article {
  padding-top: 28px;
}

.main-content {
  flex: 1;
  min-width: 0;
}

.content-aside {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 24px;
}

/* ---- Clay Cards ---- */
.clay-card {
  background: linear-gradient(145deg, var(--dark2), var(--dark3));
  border: 3px solid rgba(180,253,225,0.25);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-clay);
  padding: 24px;
  transition: transform var(--transition-soft), box-shadow 200ms ease;
}
.clay-card:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 14px rgba(0,0,0,0.5), inset -2px -2px 8px rgba(0,0,0,0.28);
}

.clay-card-sm {
  background: linear-gradient(145deg, var(--dark2), var(--dark3));
  border: 3px solid rgba(173,216,230,0.2);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-clay-sm);
  padding: 18px 20px;
  transition: transform var(--transition-soft), box-shadow 200ms ease;
}
.clay-card-sm:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 10px rgba(0,0,0,0.48), inset -1px -1px 5px rgba(0,0,0,0.22);
}

/* ---- Buttons ---- */
.btn-clay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  background: linear-gradient(135deg, var(--mint), var(--mint-dim));
  color: var(--dark);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 3px solid var(--mint-dim);
  box-shadow: var(--shadow-clay-sm);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-soft), box-shadow 200ms ease, background 180ms ease;
  min-height: 44px;
  letter-spacing: 0.02em;
}
.btn-clay:hover {
  transform: translateY(-2px) scale(1.03);
  background: linear-gradient(135deg, var(--ice), var(--ice-dim));
  color: var(--dark);
  box-shadow: 5px 5px 12px rgba(0,0,0,0.45), inset -1px -1px 5px rgba(0,0,0,0.2);
}
.btn-clay:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 2px 2px 6px rgba(0,0,0,0.4), inset -1px -1px 4px rgba(0,0,0,0.2);
}
.btn-clay--sm {
  padding: 8px 16px;
  font-size: 13px;
  min-height: 40px;
}
.btn-clay--hero {
  padding: 14px 32px;
  font-size: 16px;
  min-height: 50px;
}

/* ---- Section Titles ---- */
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--mint);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title span {
  position: relative;
}
.section-title::before {
  content: '';
  display: block;
  width: 4px; height: 22px;
  background: linear-gradient(180deg, var(--mint), var(--ice));
  border-radius: 4px;
  flex-shrink: 0;
}

/* ---- Hero (Home) ---- */
.hero--home {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(160deg, var(--dark3) 0%, var(--dark) 60%, #0d1e16 100%);
  overflow: hidden;
}
.hero--home::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 40%, rgba(180,253,225,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(173,216,230,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(23,38,32,0.92) 0%, rgba(23,38,32,0.4) 50%, transparent 100%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 60px 48px 72px;
  text-align: right;
  max-width: 720px;
  margin-left: auto;
}
.hero__h1 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero__desc {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
  font-weight: 400;
}

/* ---- Main Content (home) ---- */
.main-content { flex: 1; }

.home-article { padding: 0; }

.content-section { padding: 36px 28px; }
.page-content-section { padding-top: 40px; }

/* ---- Channels Grid ---- */
.channels-section { padding: 0 28px 36px; }
.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.channel-card {
  display: flex;
  flex-direction: column;
}
.channel-card__body { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.channel-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--mint);
}
.channel-card__title span { display: inline; }
.channel-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}
.channel-card__count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---- Recent Grid ---- */
.recent-section { padding: 0 28px 48px; }
.recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.recent-card { display: flex; }
.recent-card__inner { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.recent-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}
.recent-card__title span { display: inline; }
.recent-card__desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; flex: 1; }
.recent-card__date { font-size: 12px; color: var(--text-muted); }
.recent-card__link { font-size: 13px; font-weight: 600; color: var(--mint); align-self: flex-start; }
.recent-card__link:hover { color: var(--ice); }

/* ---- Channel Hero ---- */
.channel-hero {
  padding: 48px 28px 32px;
  background: linear-gradient(135deg, var(--dark2) 0%, var(--dark3) 100%);
  border-bottom: 3px solid var(--dark3);
  position: relative;
  overflow: hidden;
}
.channel-hero::after {
  content: '';
  position: absolute; right: -20px; top: -20px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(180,253,225,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.channel-hero__eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--mint-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.channel-hero__h1 {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.channel-hero__desc {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
}

/* ---- Children Section (channel) ---- */
.children-section { padding: 28px 0 0; }
.children-section .section-title { margin-bottom: 16px; }
.child-card { display: flex; }
.child-card__inner { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.child-card__title { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.child-card__title span { display: inline; }
.child-card__desc { font-size: 13px; color: var(--text-secondary); line-height: 1.55; flex: 1; }
.child-card__date { font-size: 12px; color: var(--text-muted); }

/* article children as direct children of section (contract) */
.children-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* Make children-section > article work directly (no wrap div) */
.children-section > article {
  background: linear-gradient(145deg, var(--dark2), var(--dark3));
  border: 3px solid rgba(173,216,230,0.2);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-clay-sm);
  padding: 18px 20px;
  transition: transform var(--transition-soft), box-shadow 200ms ease;
}
.children-section > article:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 10px rgba(0,0,0,0.48), inset -1px -1px 5px rgba(0,0,0,0.22);
}

/* ---- Aside ---- */
.aside-block { }
.aside-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ice);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.aside-title span { display: inline; }
.aside-title::before {
  content: '';
  display: inline-block;
  width: 3px; height: 13px;
  background: var(--ice);
  border-radius: 3px;
  flex-shrink: 0;
}
.aside-list { display: flex; flex-direction: column; gap: 6px; }
.aside-link {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
  border: 1px solid transparent;
  line-height: 1.4;
  min-height: 36px;
  display: flex; align-items: center;
}
.aside-link:hover {
  background: rgba(180,253,225,0.08);
  color: var(--mint);
  border-color: rgba(180,253,225,0.15);
  transform: translateX(3px);
}
.aside-link--parent { color: var(--ice); font-weight: 500; }

/* ---- Article Layout ---- */
.article-main { }
.article-header-section {
  padding: 32px 0 24px;
  border-bottom: 2px solid var(--dark3);
  margin-bottom: 28px;
}
.article-breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.article-breadcrumb a { color: var(--text-muted); }
.article-breadcrumb a:hover { color: var(--mint); }
.breadcrumb-sep { color: var(--text-muted); }
.article-h1 {
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}
.article-meta__date { color: var(--text-muted); }
.article-meta__sep { opacity: 0.5; }
.article-meta__mod { color: var(--text-muted); }
.article-hero { margin-top: 20px; border-radius: var(--radius-md); overflow: hidden; }
.article-hero__img { width: 100%; height: auto; border-radius: var(--radius-md); }
.article-body-section { }
.article-footer-section { padding: 24px 0 0; border-top: 2px solid var(--dark3); margin-top: 32px; }
.back-to-channel { }

/* ---- Prose ---- */
.prose {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
  max-width: 720px;
}
.prose h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--mint);
  margin: 32px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.prose h2 span { display: inline; }
.prose h2::before {
  content: '';
  display: inline-block;
  width: 4px; height: 20px;
  background: linear-gradient(180deg, var(--mint), var(--ice));
  border-radius: 3px;
  flex-shrink: 0;
}
.prose h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ice);
  margin: 24px 0 10px;
}
.prose h3 span { display: inline; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol {
  padding-left: 22px;
  margin-bottom: 16px;
  list-style: disc;
}
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 6px; line-height: 1.7; }
.prose a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--ice); }
.prose strong { font-weight: 600; color: var(--text-primary); }
.prose blockquote {
  border-left: 4px solid var(--mint-dim);
  padding: 12px 20px;
  margin: 20px 0;
  background: rgba(180,253,225,0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
  font-style: italic;
}
.prose code {
  background: var(--dark3);
  border: 1px solid rgba(180,253,225,0.15);
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 0.9em;
  color: var(--mint);
}
.prose pre {
  background: var(--dark3);
  border: 2px solid rgba(180,253,225,0.12);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  overflow-x: auto;
  margin-bottom: 20px;
}
.prose pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 14px;
}
.prose th {
  background: var(--dark3);
  color: var(--mint);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid rgba(180,253,225,0.2);
}
.prose td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--dark3);
  color: var(--text-secondary);
}
.prose tr:hover td { background: rgba(180,253,225,0.03); }

.article-prose { max-width: 100%; }

/* ---- About ---- */
.about-hero {
  padding: 52px 28px 36px;
  background: linear-gradient(135deg, var(--dark3) 0%, var(--dark2) 100%);
  border-bottom: 3px solid var(--dark3);
}
.about-hero__eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--ice-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.about-hero__h1 {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.about-intro-section { padding-bottom: 0; }
.about-brand-block {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.about-logo { height: 48px; width: auto; }
.about-logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--mint);
  letter-spacing: -0.02em;
}
.about-tagline { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }
.about-content-section { }
.about-links-section { padding: 0 28px 40px; }
.about-channels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.about-channel-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-primary);
  text-decoration: none;
  gap: 8px;
}
.about-channel-link:hover { color: var(--mint); }
.about-channel-name { font-size: 14px; font-weight: 500; line-height: 1.4; }
.about-channel-arrow { font-size: 14px; color: var(--mint-dim); flex-shrink: 0; }

/* ---- Privacy ---- */
.privacy-banner {
  padding: 52px 28px 36px;
  background: linear-gradient(135deg, #1a2d23 0%, var(--dark2) 100%);
  border-bottom: 3px solid var(--dark3);
}
.privacy-banner__eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.privacy-banner__h1 {
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.privacy-date { font-size: 13px; color: var(--text-muted); }
.privacy-content-section { }
.privacy-prose { max-width: 100%; }
.privacy-nav-section { padding: 0 0 40px; }
.privacy-nav-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Footer ---- */
.site-footer {
  margin-top: auto;
  background: var(--dark2);
  border-top: 3px solid var(--dark3);
  padding: 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 28px;
  flex-wrap: wrap;
}
.footer-brand a {
  font-size: 14px;
  font-weight: 700;
  color: var(--mint);
  letter-spacing: 0.02em;
}
.footer-brand a:hover { color: var(--ice); }
.site-footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer nav a {
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 4px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: color 150ms ease;
}
.site-footer nav a:hover { color: var(--mint); }
.footer-copy {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
}

/* ---- Stagger animation ---- */
@media (prefers-reduced-motion: no-preference) {
  .channels-grid .clay-card,
  .recent-grid .clay-card-sm,
  .children-section > article {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 400ms ease forwards;
  }
  .channels-grid .clay-card:nth-child(1) { animation-delay: 60ms; }
  .channels-grid .clay-card:nth-child(2) { animation-delay: 120ms; }
  .channels-grid .clay-card:nth-child(3) { animation-delay: 180ms; }
  .channels-grid .clay-card:nth-child(4) { animation-delay: 240ms; }
  .channels-grid .clay-card:nth-child(n+5) { animation-delay: 280ms; }

  .recent-grid .clay-card-sm:nth-child(1) { animation-delay: 80ms; }
  .recent-grid .clay-card-sm:nth-child(2) { animation-delay: 140ms; }
  .recent-grid .clay-card-sm:nth-child(3) { animation-delay: 200ms; }
  .recent-grid .clay-card-sm:nth-child(n+4) { animation-delay: 260ms; }

  .children-section > article:nth-child(1) { animation-delay: 50ms; }
  .children-section > article:nth-child(2) { animation-delay: 110ms; }
  .children-section > article:nth-child(3) { animation-delay: 170ms; }
  .children-section > article:nth-child(n+4) { animation-delay: 220ms; }

  @keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  :root { --sidebar-w: 220px; }
  .content-wrap { gap: 18px; padding: 24px 20px; }
  .content-aside { width: 200px; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }

  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 3px solid var(--dark3);
    align-items: center;
    padding: 10px 16px;
    gap: 0;
    overflow: visible;
  }
  .sidebar__brand { padding: 0; border-bottom: none; margin-right: 12px; }
  .sidebar__search { padding: 0; border-bottom: none; flex: 1; min-width: 120px; }
  .sidebar nav {
    width: 100%;
    padding: 8px 0 0;
    overflow-x: auto;
  }
  .sidebar nav ul {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .sidebar nav ul::-webkit-scrollbar { display: none; }
  .nav-link {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 12.5px;
    min-height: 40px;
    border-radius: var(--radius-sm);
  }
  .nav-icon { display: none; }

  .page-body { margin-left: 0; }

  .content-wrap {
    flex-direction: column;
    padding: 20px 16px;
  }
  .content-aside {
    width: 100%;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  .content-aside .aside-block { flex: 1; min-width: 200px; }

  .hero--home { min-height: 100svh; }
  .hero__content {
    padding: 40px 20px 60px;
    text-align: right;
  }

  .channels-section,
  .recent-section,
  .about-links-section,
  .privacy-nav-section { padding-left: 16px; padding-right: 16px; }

  .content-section { padding: 24px 16px; }
  .channel-hero { padding: 32px 16px 24px; }
  .about-hero { padding: 36px 16px 24px; }
  .privacy-banner { padding: 36px 16px 24px; }

  .footer-inner { padding: 14px 16px; gap: 12px; }
  .footer-copy { margin-left: 0; width: 100%; }

  .channels-grid { grid-template-columns: 1fr; }
  .recent-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

@media (max-width: 480px) {
  .content-section { padding: 20px 14px; }
  .article-breadcrumb { font-size: 12px; }
  .site-footer nav { gap: 10px; }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--dark3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--mint-dim); }
