/* ============================================
   CATEGORY PAGE SHARED CSS
   All 5 category pages use this ONE file.
   Per-show colors set via :root { --accent; --accent2; } in <style> before this link.
   ============================================ */

/* RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #fafaf8;
  --bg2: #f2f0ec;
  --bg3: #e8e5de;
  --text: #1a1814;
  --text2: #6b6560;
  --text3: #9a9590;
  --border: #ddd8d0;
  --card: #ffffff;
  /* --accent and --accent2 must be set per-page */
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: white;
  padding: 60px 24px 80px;
  text-align: center;
}

.hero-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.hero-back:hover { color: white; }

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: 8px;
  line-height: 1.2;
}

.hero-sub {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 24px;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  opacity: 0.85;
}
.hero-meta span { display: flex; align-items: center; gap: 6px; }

/* === SECTION === */
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.section-label-zh {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text3);
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.section-title-zh {
  font-size: 1rem;
  color: var(--text3);
  margin-bottom: 32px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 700px;
}

/* === SHOW CARD (same as home page) === */
.show-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.show-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.show-card-link {
  text-decoration: none;
  display: block;
  cursor: pointer;
}
.show-cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.show-card-body { padding: 20px; }
.show-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.show-day-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text3);
  background: var(--bg2);
  padding: 4px 10px;
  border-radius: 999px;
}
.show-lang-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent2);
  background: #f3f0ff;
  padding: 3px 8px;
  border-radius: 999px;
}
.show-card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 4px;
  line-height: 1.3;
}
.show-card h3 .zh {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text2);
  margin-top: 2px;
}
.show-card p {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 8px;
}
.show-card p .zh {
  display: block;
  font-size: 0.78rem;
  color: var(--text3);
  margin-top: 2px;
}
.show-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.show-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(215,88,149,0.1);
  padding: 3px 10px;
  border-radius: 999px;
}
.show-cat-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent2);
  background: #f3f0ff;
  padding: 3px 10px;
  border-radius: 999px;
}

/* === EPISODE LIST (compact cards) === */
.episodes-section { margin-bottom: 48px; }
.episodes-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.episodes-title {
  font-size: 1.5rem;
  font-weight: 800;
}
.ep-count {
  background: var(--accent);
  color: white;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.ep-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ep-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.ep-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.ep-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.ep-info { flex: 1; min-width: 0; }

.ep-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.ep-cat-tag {
  background: var(--accent);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
}
.ep-lang-tag {
  background: var(--bg2);
  color: var(--text2);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
}

.ep-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.ep-title-zh {
  font-size: 0.8rem;
  color: var(--text2);
}

.ep-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.7rem;
  color: var(--text3);
}
.ep-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text3);
}

.ep-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.ep-item:hover .ep-arrow { transform: scale(1.1); }

/* === CTA CARD (simple) === */
.cta-card {
  background: linear-gradient(135deg, var(--accent2) 0%, var(--accent) 100%);
  border-radius: 16px;
  padding: 32px 28px;
  color: white;
  text-align: center;
  margin-bottom: 32px;
}
.cta-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.cta-card h3 .zh {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.9;
  margin-top: 4px;
}
.cta-card p {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 20px;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--accent2);
  padding: 10px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* === BACK TO HOME === */
.back-cta {
  text-align: center;
  padding: 32px 24px 64px;
}
.back-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg2);
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: background 0.2s;
}
.back-cta a:hover { background: var(--bg3); }

/* === RESPONSIVE === */
@media (max-width: 600px) {
  .hero { padding: 40px 20px 60px; }
  .hero-meta { gap: 12px; }
  .section { padding: 32px 16px; }
  .section-title { font-size: 1.25rem; }
  .ep-item {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }
  .ep-thumb { width: 100%; height: 120px; }
  .ep-arrow {
    width: 100%;
    height: 40px;
    border-radius: 8px;
  }
  .ep-tags { justify-content: center; }
  .ep-meta { justify-content: center; }
  .cta-card { padding: 24px 20px; }
}
