/* Category-only styles. The supplied home and about templates are unchanged. */
.catalog-page { --page: #faf7f0; --ink: #37322b; --muted: #776d61; --line: #e9dfd0; --accent: #b68137; --accent-soft: #f5ead6; --focus: #83591f; }
.catalog-page .page-header { background: #faf7f0; }
.catalog-page .brand { color: #986828; }
.catalog-page .container { width: min(1320px, calc(100% - 64px)); }
.catalog-page .breadcrumb { font-size: 14px; }
.catalog-hero { padding: 32px; border-radius: 18px; background: #f6eddd; }
.catalog-hero h1 { font-size: clamp(25px, 2.6vw, 36px); margin-bottom: 16px; letter-spacing: -.02em; }
.catalog-hero > p { color: var(--muted); margin-bottom: 25px; }
.catalog-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.catalog-overview > div { padding: 19px 12px; background: #fffdfa; border: 1px solid var(--line); border-radius: 12px; text-align: center; }
.catalog-overview strong { display: block; color: #986828; font-size: 19px; margin-bottom: 4px; }
.catalog-overview span { font-size: 14px; color: var(--muted); }
.catalog-page .section { padding-top: 42px; }
.catalog-page .section-head { margin-bottom: 22px; }
.catalog-page .section-head h2 { font-size: 25px; }
.catalog-result { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.catalog-filters button { border: 1px solid var(--line); border-radius: 999px; min-height: 44px; padding: 8px 24px; white-space: nowrap; background: #fff; color: #776d61; transition: background-color .15s, color .15s; }
.catalog-filters button:hover { background: #eee1ca; color: #62451f; }
.catalog-filters button[aria-pressed="true"] { background: #9b6a2a; border-color: #9b6a2a; color: #fff; font-weight: 600; }
.catalog-grid { gap: 22px; }
.catalog-illustration { position: relative; aspect-ratio: 1; background: #eee5d6; border-bottom: 1px solid var(--line); overflow: hidden; }
.catalog-illustration img { display: block; width: 100%; height: 100%; object-fit: contain; }
.catalog-page .drama-card { border-radius: 15px; box-shadow: 0 3px 12px #60431d05; }
.catalog-page .card-cover { aspect-ratio: 16 / 10; background: #eee5d6; }
.catalog-page .card-eps { left: auto; right: 10px; bottom: 10px; background: #433b30dc; }
.catalog-page .card-body { padding: 18px; }
.catalog-page .card-body h3 { font-size: 19px; margin-bottom: 10px; overflow-wrap: anywhere; }
.catalog-page .card-desc { line-height: 1.85; margin-bottom: 16px; }
.catalog-page .tag { background: #f5ead6; color: #795928; padding: 4px 9px; font-size: 12px; }
.catalog-text-cover { aspect-ratio: 16 / 10; padding: 25px; display: flex; flex-direction: column; justify-content: space-between; background: #eee4d3; border-bottom: 1px solid var(--line); }
.catalog-text-cover span { font-size: 11px; letter-spacing: .14em; color: #806c51; }
.catalog-text-cover strong { font-size: clamp(21px, 2vw, 29px); line-height: 1.45; letter-spacing: .02em; max-width: 9em; color: #5e4930; }
.catalog-page [data-category="tianchong"] .catalog-text-cover { background: #f1e7e4; }
.catalog-page [data-category="tianchong"] .catalog-text-cover strong { color: #765958; }
.catalog-page [data-category="gudai"] .catalog-text-cover { background: #e9ecdf; }
.catalog-page [data-category="gudai"] .catalog-text-cover strong { color: #526147; }
.catalog-note { font-size: 13px; color: var(--muted); margin: 0 0 22px; }
.catalog-page .site-footer { background: #302d27; }
@media (max-width: 1100px) { .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .catalog-page .container { width: calc(100% - 32px); }
  .catalog-hero { padding: 24px 20px; }
  .catalog-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .catalog-overview > div { padding: 14px 8px; }
  .catalog-overview strong { font-size: 17px; }
  .catalog-overview span { font-size: 12px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .catalog-page .card-body { padding: 15px; }
  .catalog-page .card-body h3 { font-size: 17px; }
  .catalog-page .card-desc { font-size: 13px; }
  .catalog-text-cover { padding: 17px; }
  .catalog-text-cover strong { font-size: 22px; }
  .catalog-filters { gap: 8px; }
  .catalog-filters button { flex: 1 1 0; min-width: 0; padding-inline: 6px; font-size: 14px; }
  .catalog-page .section-head { gap: 10px; flex-wrap: wrap; }
  .catalog-page .section-head h2 { font-size: 23px; }
}
@media (max-width: 380px) {
  .catalog-page .container { width: calc(100% - 24px); }
  .catalog-grid { gap: 10px; }
  .catalog-page .card-body { padding: 12px; }
  .catalog-text-cover { padding: 14px; }
  .catalog-text-cover strong { font-size: 19px; }
  .catalog-page .card-eps { font-size: 10px; padding: 2px 6px; }
}
@media (prefers-reduced-motion: reduce) { .catalog-filters button { transition: none; } }
