/* ══════════════════════════════════════════════════════════════════════════
   DJKR Teachings Library V2 — 数字佛法翻译图书馆
   ══════════════════════════════════════════════════════════════════════════ */

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

/* ── CSS Variables ─────────────────────────────────────────────────────── */
:root {
  --primary: #8B4513;
  --primary-hover: #6b3410;
  --accent: #C4956A;
  --bg: #FAFAF8;
  --card-bg: #FFF;
  --text: #333;
  --text-light: #555;
  --muted: #888;
  --border: #e0d8d0;
  --border-light: #ebe5dc;
  --nav-bg: #2c1a0e;
  --nav-text: #f5efe8;
  --badge-bg: #f0e8df;
  --badge-text: #5a3a20;
  --shadow: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.10);
  --radius: 8px;
  --reading-width: 720px;
  --content-width: 1000px;
}

/* ── Base ──────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Serif SC', 'Source Han Serif CN', 'SimSun', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
h1, h2, h3 { line-height: 1.3; }

/* ── Navigation ────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  box-shadow: 0 1px 6px rgba(0,0,0,0.25);
}

.nav-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--nav-text);
  letter-spacing: 0.03em;
}
.nav-logo:hover { color: #f0c080; }

.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a {
  color: var(--nav-text);
  font-size: 0.9rem;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.nav-links a:hover { opacity: 1; color: #f0c080; }
.nav-links a.active { opacity: 1; color: #f0c080; border-bottom: 2px solid #f0c080; padding-bottom: 2px; }

/* Version switch in nav */
.version-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--nav-text);
  opacity: 0.6;
  background: rgba(255,255,255,0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  cursor: pointer;
  transition: opacity 0.15s;
  border: none;
  font-family: inherit;
}
.version-switch:hover { opacity: 1; color: #f0c080; }

/* ── Container ─────────────────────────────────────────────────────────── */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
  flex: 1;
}

/* ── Hero Section ──────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.hero-search {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.hero-search input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 0.95rem;
  background: white;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hero-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 149, 106, 0.15);
}

.hero-search .search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1rem;
  pointer-events: none;
}

/* ── Stats Bar ─────────────────────────────────────────────────────────── */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0.8rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-light);
}

.stats-bar .stat {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.stats-bar .stat-num {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

/* ── Filter Bar ────────────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-bar select,
.filter-bar input[type="search"] {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  background: white;
  color: var(--text);
  font-family: inherit;
}

.filter-bar input[type="search"] { flex: 1; min-width: 180px; }
.filter-bar select { min-width: 130px; max-width: 300px; }

.btn-primary {
  padding: 0.45rem 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.88rem;
  font-family: inherit;
  transition: background 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--primary-hover); color: white; }

/* ── View Toggle ───────────────────────────────────────────────────────── */
.view-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.view-toggle {
  display: flex;
  gap: 0.3rem;
}

.view-toggle button {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--muted);
  transition: all 0.15s;
}
.view-toggle button.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.result-count {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════════════════════════════
   Teaching List (default list view)
   ══════════════════════════════════════════════════════════════════════════ */
.teaching-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.teaching-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  transition: background 0.15s;
}

.teaching-item:first-child {
  border-top: 1px solid var(--border-light);
}

.teaching-item:hover {
  background: rgba(240, 232, 223, 0.3);
}

.teaching-icon {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: var(--badge-bg);
  border-radius: 6px;
  margin-top: 0.1rem;
}

.teaching-body {
  flex: 1;
  min-width: 0;
}

.teaching-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.2rem;
  color: var(--text);
}

.teaching-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teaching-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.teaching-meta span {
  font-size: 0.78rem;
  color: var(--muted);
}

.teaching-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.1rem 0.45rem;
  background: var(--badge-bg);
  color: var(--badge-text);
  border-radius: 12px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.teaching-formats {
  display: flex;
  gap: 0.3rem;
  flex-shrink: 0;
  align-items: center;
  margin-left: auto;
  padding-left: 0.5rem;
}

.fmt-tag {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(139, 69, 19, 0.08);
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.fmt-tag:hover {
  background: var(--primary);
  color: white;
}

/* ══════════════════════════════════════════════════════════════════════════
   Teaching Grid (alternate card view — no thumbnails)
   ══════════════════════════════════════════════════════════════════════════ */
.teaching-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.teaching-grid .teaching-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1rem;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.teaching-grid .teaching-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.teaching-card .card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.teaching-card .card-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.teaching-card .card-excerpt {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.teaching-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-light);
}

.teaching-card .card-meta {
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  gap: 0.5rem;
}

.teaching-card .card-formats {
  display: flex;
  gap: 0.2rem;
}

/* Hide grid by default, show when toggled */
.teaching-grid { display: none; }
.view-grid .teaching-list { display: none; }
.view-grid .teaching-grid { display: grid; }

/* ── Pagination ────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.page-btn {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  background: white;
  color: var(--primary);
  transition: background 0.15s;
}
.page-btn:hover { background: var(--badge-bg); color: var(--primary); }
.page-btn.disabled { color: var(--muted); pointer-events: none; opacity: 0.5; }
.page-info { font-size: 0.85rem; color: var(--muted); }

/* ── Empty State ───────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}
.empty-state p { font-size: 1rem; margin-bottom: 1rem; }

/* ══════════════════════════════════════════════════════════════════════════
   Detail Page — Reading-first Layout
   ══════════════════════════════════════════════════════════════════════════ */
.back-link {
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.detail-header {
  max-width: var(--reading-width);
  margin: 0 auto 0.5rem;
}

.detail-title {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-light);
}

.detail-meta a { color: var(--primary); }

/* ── Download Bar (detail page) ────────────────────────────────────────── */
.detail-downloads {
  max-width: var(--reading-width);
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.8rem 1rem;
  background: var(--badge-bg);
  border-radius: var(--radius);
}

.detail-downloads .dl-label {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-right: 0.3rem;
}

.btn-download {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  background: var(--primary);
  color: white;
  border-radius: 4px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s;
  border: none;
  font-family: inherit;
}
.btn-download:hover { background: var(--primary-hover); color: white; }
.btn-download.disabled {
  background: var(--border-light);
  color: var(--muted);
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Tab Toggle (pill style) ───────────────────────────────────────────── */
.tab-toggle {
  max-width: var(--reading-width);
  margin: 0 auto 0;
  display: flex;
  background: var(--border-light);
  border-radius: 6px;
  padding: 3px;
  width: fit-content;
}

.tab-toggle button {
  padding: 0.4rem 1.2rem;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--muted);
  border-radius: 4px;
  transition: all 0.2s;
  font-family: inherit;
}

.tab-toggle button.active {
  background: white;
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ── Reading Area ──────────────────────────────────────────────────────── */
.reading-area {
  max-width: var(--reading-width);
  margin: 1.5rem auto;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.reading-body {
  white-space: pre-wrap;
  line-height: 1.9;
  font-size: 1.05rem;
  color: var(--text);
  padding: 1.5rem;
  background: #f8f6f2;
  border-radius: var(--radius);
  border: 1px solid #e5ddd4;
}

.reading-body.polished {
  background: #fffdf8;
  border-color: #e8ddd0;
}

/* ── Video Embed (collapsed by default) ────────────────────────────────── */
.video-embed-section {
  max-width: var(--reading-width);
  margin: 2rem auto;
}

.embed-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-light);
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s;
}
.embed-toggle:hover { background: var(--badge-bg); }

.embed-toggle .arrow {
  transition: transform 0.2s;
  font-size: 0.7rem;
}
.embed-toggle.open .arrow { transform: rotate(90deg); }

.embed-wrapper {
  display: none;
  margin-top: 0.5rem;
}
.embed-wrapper.open { display: block; }

.embed-wrapper iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: var(--radius);
}

/* ── Series Nav (in detail page) ───────────────────────────────────────── */
.series-nav {
  max-width: var(--reading-width);
  margin: 2rem auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.series-nav a {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.series-nav .series-label {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── Sidebar Metadata (detail page) ────────────────────────────────────── */
.detail-sidebar {
  max-width: var(--reading-width);
  margin: 2rem auto;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}

.detail-sidebar h3 {
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  color: var(--primary);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.35rem;
}

.meta-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 0.75rem;
  font-size: 0.82rem;
}
.meta-list dt { color: var(--muted); white-space: nowrap; }
.meta-list dd { overflow: hidden; text-overflow: ellipsis; }

/* ══════════════════════════════════════════════════════════════════════════
   Series Pages
   ══════════════════════════════════════════════════════════════════════════ */
.page-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}
.page-header h1 { font-size: 1.5rem; color: var(--primary); }
.subtitle { color: var(--muted); font-size: 0.88rem; margin-top: 0.3rem; }

.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.series-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1rem;
  transition: transform 0.15s, box-shadow 0.15s;
  color: var(--text);
}
.series-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: var(--text);
}

.series-card-body { flex: 1; }
.series-name { font-size: 0.95rem; margin-bottom: 0.3rem; }
.series-meta { font-size: 0.78rem; color: var(--muted); display: flex; gap: 0.75rem; }
.series-arrow { font-size: 1.2rem; color: var(--primary); margin-left: 0.75rem; }

/* Series detail — text-based list (no thumbnails) */
.series-toc {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2rem;
}

.series-toc-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  transition: background 0.15s;
}
.series-toc-item:first-child { border-top: 1px solid var(--border-light); }
.series-toc-item:hover { background: rgba(240, 232, 223, 0.3); }

.series-toc-index {
  font-size: 0.78rem;
  color: var(--muted);
  min-width: 1.5rem;
  text-align: right;
}

.series-toc-info { flex: 1; min-width: 0; }
.series-toc-title {
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.series-toc-meta {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  gap: 0.6rem;
}

/* Series download section */
.series-download-section {
  margin-top: 2rem;
  padding: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}
.series-download-section h2 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--primary);
}
.series-download-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

/* ── Document detail ───────────────────────────────────────────────────── */
.doc-description {
  max-width: var(--reading-width);
  margin: 0 auto 1.5rem;
  padding: 1rem 1.2rem;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  line-height: 1.8;
  font-size: 0.95rem;
}

.related-section {
  max-width: var(--reading-width);
  margin: 2rem auto;
}
.related-section h3 {
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  color: var(--primary);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.35rem;
}

/* ── Home sections ─────────────────────────────────────────────────────── */
.home-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.section-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text);
  transition: transform 0.15s, box-shadow 0.15s;
}
.section-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: var(--text);
}
.section-link .sec-icon { font-size: 1.5rem; }
.section-link .sec-info h3 { font-size: 0.9rem; margin-bottom: 0.15rem; }
.section-link .sec-info p { font-size: 0.78rem; color: var(--muted); }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--nav-bg);
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  padding: 1.2rem 0;
  margin-top: auto;
}
.site-footer .container { padding-top: 0; padding-bottom: 0; flex: none; }

.muted { color: var(--muted); }

/* ══════════════════════════════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-inner { padding: 0.6rem 1rem; }
  .nav-links { gap: 0.8rem; }

  .hero { padding: 1.5rem 0.5rem 1rem; }
  .hero-title { font-size: 1.4rem; }

  .stats-bar { gap: 1rem; flex-wrap: wrap; font-size: 0.8rem; }

  .filter-bar {
    flex-direction: column;
    gap: 0.5rem;
  }
  .filter-bar input[type="search"] { min-width: 0; width: 100%; }
  .filter-bar select { width: 100%; }

  .teaching-item { padding: 0.8rem 0.5rem; gap: 0.7rem; }
  .teaching-icon { width: 1.8rem; height: 1.8rem; font-size: 1rem; }
  .teaching-title { font-size: 0.9rem; }
  .teaching-formats { flex-direction: column; gap: 0.15rem; }
  .teaching-badge { max-width: 160px; }

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

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

  .detail-title { font-size: 1.3rem; }

  .detail-downloads { flex-wrap: wrap; padding: 0.6rem 0.8rem; }
  .detail-downloads .dl-label { width: 100%; margin-bottom: 0.2rem; }

  .reading-body { font-size: 0.95rem; line-height: 1.8; }

  .series-nav { flex-direction: column; gap: 0.5rem; text-align: center; }
  .series-nav a { font-size: 0.82rem; }

  .home-sections { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .nav-inner { padding: 0.5rem 0.8rem; }
  .nav-links { gap: 0.5rem; }
  .nav-links a { font-size: 0.82rem; }
  .nav-logo { font-size: 0.88rem; }

  .container { padding: 1rem 0.8rem; }

  .hero { padding: 1rem 0 0.8rem; }
  .hero-title { font-size: 1.2rem; }
  .hero-subtitle { font-size: 0.82rem; }

  .stats-bar { gap: 0.6rem; }
  .stats-bar .stat-num { font-size: 0.95rem; }

  .teaching-icon { display: none; }
  .teaching-title { font-size: 0.88rem; }
  .teaching-subtitle { display: none; }
  .teaching-formats { display: none; }
  .teaching-badge { max-width: 120px; }

  .detail-title { font-size: 1.1rem; }
  .detail-meta { font-size: 0.78rem; }

  .btn-download { font-size: 0.75rem; padding: 0.3rem 0.6rem; }

  .series-card { padding: 0.75rem; }
  .series-name { font-size: 0.88rem; }

  .home-sections { grid-template-columns: 1fr; }

  .pagination { gap: 0.5rem; }
  .page-btn { padding: 0.35rem 0.7rem; font-size: 0.8rem; }
}
