/* ============================================================
   中文说唱演出日历 · 样式表（黑白极简）
   设计语言：白底黑字，黑色为主色；
   仅日历分类（类型 / 状态）用彩色区分。
   ============================================================ */

:root {
  /* 底色（白） */
  --bg: #ffffff;
  --bg-soft: #f6f6f7;
  --card: #ffffff;
  --card-2: #fafafa;
  --card-3: #f2f2f4;

  /* 文字（黑）
     注意 --text-3 用在大量辅助说明上，必须保证白底可读：
     #70707a 对白底 = 4.90:1（原 #8a8a94 只有 3.42:1，偏浅看不清） */
  --text: #111114;
  --text-2: #4b4b55;
  --text-3: #70707a;

  /* 描边 */
  --line: #e4e4e8;
  --line-2: #ededf0;

  /* 主色 = 黑 */
  --ink: #101014;
  --ink-soft: #2a2a30;
  --ink-line: rgba(16, 16, 20, 0.85);

  /* 语义色（浅色底上可读的深调）
     --ok 用 #047857（对白底 5.48:1），原 #059669 只有 3.77:1 */
  --ok: #047857;
  --warn: #b45309;
  --hot: #e11d48;
  --gray: #70707a;

  /* 类型色（日历分类专用，保持彩色） */
  --t1: #9333ea;
  --t2: #ea580c;
  --t3: #0891b2;
  --t4: #db2777;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 16, 20, 0.04), 0 12px 32px -22px rgba(16, 16, 20, 0.35);
  --shadow-lg: 0 30px 80px -40px rgba(16, 16, 20, 0.45);

  --font: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Noto Sans SC', 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.6;
}

a { color: inherit; }
button { font-family: inherit; }
::selection { background: rgba(16, 16, 20, 0.88); color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d6d6dc; border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #bcbcc4; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hide { display: none !important; }

/* ---------------------------------------------------- 顶栏 */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line-2);
}

/* 首页藏掉这条顶栏：首页的 masthead 已经有 logo + 大标题，顶栏是重复的。
   日历页保留（那里的搜索框和「订阅日历」按钮要靠它）。 */
body[data-page='home'] .topbar { display: none; }

.topbar-in {
  max-width: 1220px; margin: 0 auto;
  padding: 12px 18px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }

.brand-mark {
  width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: 11px;
  overflow: hidden;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px -6px rgba(16, 16, 20, 0.5);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }

.brand-text { min-width: 0; }
.brand-title {
  font-size: 16px; font-weight: 900; letter-spacing: -0.3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--text);
}
.brand-sub {
  font-size: 11.5px; color: var(--text-3); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.search-box { position: relative; display: flex; align-items: center; }
.search-box svg { position: absolute; left: 12px; color: var(--text-3); }
.search-box input {
  width: 240px;
  padding: 9px 14px 9px 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--text);
  font-size: 13.5px;
  outline: none;
  transition: 0.18s;
}
.search-box input::placeholder { color: var(--text-3); }
.search-box input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(16, 16, 20, 0.08);
  background: var(--card);
}

/* ---------------------------------------------------- 首页大标题 */

.masthead {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; flex-wrap: wrap;
  padding: 34px 12px 30px;
  text-align: center;
}
.masthead-text { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.masthead-sub {
  margin: 0;
  font-size: clamp(13px, 1.7vw, 16px);
  font-weight: 600;
  letter-spacing: 0.4px;
  line-height: 1.4;
  color: var(--text-3);
  max-width: 820px;
}
.masthead-sub:empty { display: none; }
.masthead-logo {
  width: 84px; height: 84px;
  border-radius: 20px;
  object-fit: cover;
  display: block;
  box-shadow: 0 18px 40px -18px rgba(16, 16, 20, 0.55);
}
.masthead-title {
  margin: 0;
  font-size: clamp(26px, 4.6vw, 44px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.22;
  color: var(--ink);
  max-width: 820px;
}

/* ---------------------------------------------------- 按钮 */

.btn {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text-2);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: 0.16s; white-space: nowrap;
  text-decoration: none;
}
.btn:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--card-2);
}
.btn-primary {
  background: var(--ink);
  border-color: var(--ink); color: #fff;
  box-shadow: 0 10px 26px -14px rgba(16, 16, 20, 0.9);
}
.btn-primary:hover { background: #000; color: #fff; border-color: #000; }
.btn-cyan { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-danger { color: var(--hot); border-color: rgba(225, 29, 72, 0.3); background: rgba(225, 29, 72, 0.05); }
.btn-danger:hover { background: rgba(225, 29, 72, 0.1); color: var(--hot); border-color: var(--hot); box-shadow: none; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--bg-soft); box-shadow: none; }
.btn-sm { padding: 5px 11px; font-size: 12.5px; }
.btn-lg { padding: 11px 22px; font-size: 14.5px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.icon-btn {
  width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card);
  cursor: pointer; color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; transition: 0.15s;
}
.icon-btn:hover { border-color: var(--ink); color: var(--ink); background: var(--card-2); }

/* ---------------------------------------------------- 布局 */

.wrap { max-width: 1220px; margin: 0 auto; padding: 0 18px 110px; position: relative; z-index: 1; }
.page { display: none; animation: pagein 0.28s ease; }
.page.on { display: block; }
@keyframes pagein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.notice {
  display: flex; align-items: flex-start; gap: 9px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text-2);
  border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 13px; font-weight: 600;
  margin-bottom: 16px;
}
.notice.warn {
  background: rgba(180, 83, 9, 0.06); border-color: rgba(180, 83, 9, 0.3); color: var(--warn);
}
.notice.ok { background: rgba(5, 150, 105, 0.06); border-color: rgba(5, 150, 105, 0.3); color: var(--ok); }
.notice.hide { display: none; }

.section-h {
  display: flex; align-items: center; gap: 10px; margin: 26px 0 12px;
}
.section-h h2 { margin: 0; font-size: 17px; font-weight: 900; letter-spacing: -0.3px; }
.section-h .sub { font-size: 12px; color: var(--text-3); font-weight: 600; }
.section-h .sp { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* ---------------------------------------------------- 首页 Hero（黑色主视觉块） */

.hero {
  position: relative;
  border-radius: 22px;
  padding: 26px 26px 24px;
  overflow: hidden;
  background: linear-gradient(160deg, #1a1a1f, #0c0c0f 70%);
  border: 1px solid var(--ink);
  color: #fff;
  box-shadow: 0 24px 60px -30px rgba(16, 16, 20, 0.8);
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 20% 0%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 20% 0%, #000, transparent 72%);
  pointer-events: none;
}
.hero-in { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }

.hero-date { display: flex; align-items: baseline; gap: 10px; }
.hero-day {
  font-size: 60px; font-weight: 900; line-height: 0.9; letter-spacing: -3px;
  color: #fff;
}
.hero-meta { display: flex; flex-direction: column; gap: 2px; }
.hero-meta .m1 { font-size: 15px; font-weight: 800; }
.hero-meta .m2 { font-size: 12.5px; color: rgba(255, 255, 255, 0.64); font-weight: 600; }

.hero-badge {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: #fff;
  color: var(--ink);
  border: 1px solid #fff;
  font-size: 13.5px; font-weight: 800;
}
.hero-badge.zero { background: transparent; border-color: rgba(255, 255, 255, 0.28); color: rgba(255, 255, 255, 0.72); }

.hero-strip {
  position: relative; z-index: 1;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
  display: flex; gap: 22px; flex-wrap: wrap;
}
.hero-strip .it { display: flex; flex-direction: column; }
.hero-strip .n { font-size: 19px; font-weight: 800; }
.hero-strip .l { font-size: 11.5px; color: rgba(255, 255, 255, 0.55); font-weight: 700; }

/* ---------------------------------------------------- 卡片 / 列表 */

.event-card {
  display: flex; gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: 0.18s;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.event-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--c, var(--ink)); opacity: 0; transition: 0.18s;
}
.event-card:hover {
  border-color: var(--ink-line);
  transform: translateY(-2px);
  box-shadow: 0 20px 44px -26px rgba(16, 16, 20, 0.5);
}
.event-card:hover::before { opacity: 1; }
.event-card.dim { opacity: 0.55; }
.event-card.dim .ec-title { text-decoration: line-through; color: var(--text-3); }

.poster {
  position: relative;
  flex: 0 0 78px; width: 78px; height: 102px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--card-3);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2);
}
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster .ph {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: #fff; text-align: center; padding: 6px;
}
.poster .ph .ph-t { font-size: 15px; font-weight: 900; letter-spacing: -0.5px; }
.poster .ph .ph-c { font-size: 9.5px; font-weight: 700; opacity: 0.9; }
.poster.lg { flex: 0 0 100%; width: 100%; height: 230px; border-radius: var(--radius); }

.ec-body { flex: 1; min-width: 0; }
.ec-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }

.tag {
  font-size: 10.5px; font-weight: 800;
  border-radius: 999px; padding: 2px 9px;
  background: var(--bg-soft); color: var(--text-2);
  white-space: nowrap; border: 1px solid var(--line);
}
/* 类型标签：彩色分类 */
.tag.type {
  background: color-mix(in srgb, var(--c) 12%, #fff);
  color: color-mix(in srgb, var(--c) 68%, #000);
  border-color: color-mix(in srgb, var(--c) 30%, #fff);
}
.tag.st-售票中 { background: rgba(5, 150, 105, 0.08); color: var(--ok); border-color: rgba(5, 150, 105, 0.28); }
.tag.st-即将开票 { background: rgba(180, 83, 9, 0.08); color: var(--warn); border-color: rgba(180, 83, 9, 0.28); }
.tag.st-已售罄 { background: rgba(225, 29, 72, 0.07); color: var(--hot); border-color: rgba(225, 29, 72, 0.26); }
.tag.st-待官宣 { background: var(--bg-soft); color: var(--text-3); }
.tag.st-延期 { background: rgba(147, 51, 234, 0.08); color: #7e22ce; }
.tag.st-取消 { background: rgba(220, 38, 38, 0.08); color: #b91c1c; }
.tag.st-已结束 { background: var(--bg-soft); color: var(--text-3); }
.tag.sample { background: rgba(180, 83, 9, 0.06); color: var(--warn); border-style: dashed; border-color: rgba(180, 83, 9, 0.35); }
.tag.featured { background: var(--ink); color: #fff; border-color: var(--ink); }

.ec-title {
  font-size: 15px; font-weight: 800; letter-spacing: -0.2px;
  margin: 0 0 6px; line-height: 1.45; color: var(--text);
}

.ec-meta {
  display: flex; flex-wrap: wrap; gap: 4px 13px;
  font-size: 12.5px; color: var(--text-2); font-weight: 600;
}
.ec-meta span { display: inline-flex; align-items: center; gap: 4px; }

.ec-lineup { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 5px; }
.ec-lineup .who {
  font-size: 11.5px; font-weight: 700;
  background: var(--bg-soft); color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: 7px; padding: 2px 8px;
  cursor: pointer; transition: 0.15s;
}
.ec-lineup .who:hover {
  background: var(--ink); color: #fff;
  border-color: var(--ink);
}

.empty {
  text-align: center; padding: 52px 20px; color: var(--text-3);
  background: var(--card-2);
  border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty .big { font-size: 34px; margin-bottom: 8px; }
.empty p { margin: 4px 0 0; font-size: 13.5px; font-weight: 600; }

/* ---------------------------------------------------- 筛选区 */

.filters {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.filter-row { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; }
.filter-row + .filter-row { border-top: 1px dashed var(--line-2); }
.filter-label {
  flex: 0 0 64px; font-size: 12.5px; font-weight: 800; color: var(--text-2);
  padding-top: 5px; display: flex; align-items: center; gap: 4px;
}
/* 标签右边是「筛选区 + 展开全部」，竖着排：
   展开按钮放在滚动区【外面】，这样每一栏都看得到它（塞在滚动条里等于没放）。 */
.filter-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.filter-more { display: flex; justify-content: flex-end; align-items: center; min-height: 26px; }
.filter-more:empty { display: none; }
.filter-more .chip { padding: 4px 12px; font-size: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; align-content: flex-start; }
.chips.scroll { max-height: 92px; overflow-y: auto; padding-right: 4px; }
/* 「展开全部」之后就不再限高：这一栏人多，塞在 92px 里等于看不见，
   要的就是整栏铺开、一眼扫完。 */
.chips.scroll.open { max-height: none; height: auto; overflow: visible; padding-right: 0; }
.chips.scroll.open .chip { padding: 6px 13px; font-size: 13px; }

.chip {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text-2);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px; font-weight: 700;
  cursor: pointer; transition: 0.15s;
  display: inline-flex; align-items: center; gap: 5px;
  line-height: 1.5;
}
.chip:hover { border-color: var(--ink); color: var(--ink); background: var(--card-2); }
.chip.on {
  background: var(--ink);
  border-color: var(--ink); color: #fff;
}
.chip.on .cnt { color: rgba(255, 255, 255, 0.72); }
.chip .cnt { font-size: 10.5px; color: var(--text-3); font-weight: 700; }
.chip.tiny { padding: 3px 9px; font-size: 11.5px; }
.chip.more { border-style: dashed; color: var(--text-2); border-color: var(--line); }
.chip.venue { gap: 6px; }
/* 类型 chip 前的彩色小圆点（分类彩色区分） */
.chip .dot {
  width: 8px; height: 8px; border-radius: 3px;
  background: var(--c, var(--ink));
  display: inline-block; flex: 0 0 8px;
}

.filter-actions {
  display: flex; gap: 8px; align-items: center;
  padding-top: 11px; margin-top: 4px; border-top: 1px solid var(--line-2);
  flex-wrap: wrap;
}
.filter-hint { font-size: 12px; color: var(--text-3); font-weight: 600; margin-left: auto; }

/* ---------------------------------------------------- 视图切换 */

.viewbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }

.seg {
  display: inline-flex; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px;
}
.seg button {
  border: 0; background: transparent; cursor: pointer;
  border-radius: 999px; padding: 6px 15px;
  font-size: 13px; font-weight: 700; color: var(--text-2);
  transition: 0.16s; white-space: nowrap;
}
.seg button.on {
  background: var(--ink);
  color: #fff;
}

.month-nav { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.month-nav .cur {
  font-size: 17px; font-weight: 900; min-width: 128px; text-align: center;
  letter-spacing: -0.5px;
  color: var(--ink);
}

/* ---------------------------------------------------- 日历（重点美工） */

.cal-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.cal-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--ink);
}

.cal-top {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line-2);
  background: var(--card-2);
}
.cal-top .t { font-size: 13px; font-weight: 800; }
.cal-legend { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.cal-legend span {
  font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px;
  color: color-mix(in srgb, var(--c, var(--ink)) 62%, #000);
}
.cal-legend span.mute { color: var(--text-3); }
.cal-legend i {
  width: 9px; height: 9px; border-radius: 3px; display: inline-block;
  background: var(--c, var(--ink));
}

.cal-head {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid var(--line-2);
  background: var(--card-2);
}
.cal-head div {
  padding: 10px 0; text-align: center;
  font-size: 12px; font-weight: 800; color: var(--text-3); letter-spacing: 0.5px;
}
.cal-head div.we { color: #c2410c; }

/* ★ 必须用 minmax(0, 1fr) 而不是 1fr：
   1fr 的下限是 auto（约等于内容的 min-content），某个格子里有一条长标题的演出时，
   那一列会被内容撑宽，于是「有演出的日期比没演出的日期宽」，
   而且表头（另一个独立的 grid）对不上格子的竖线。
   minmax(0, 1fr) 把下限钉死成 0 —— 七列永远等宽，表头与格子严丝合缝。
   grid-auto-rows: 1fr 让六行也等高，内容多的那一行不会把整张表撑得参差不齐。 */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: 1fr;
}

.cal-cell {
  min-height: 124px;
  min-width: 0;              /* 同上：允许被压缩到比内容更窄，而不是反向撑大列 */
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  padding: 7px 7px 8px;
  position: relative;
  background: var(--card);
  transition: background 0.16s;
}
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell.out { background: var(--bg-soft); }
.cal-cell.out .cal-num { color: #c2c2c9; }
.cal-cell.clickable { cursor: pointer; }
.cal-cell.clickable:hover { background: var(--card-2); }
.cal-cell.today {
  background: var(--card);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.cal-num {
  font-size: 12.5px; font-weight: 800; color: var(--text-2);
  display: flex; align-items: center; gap: 5px; margin-bottom: 5px;
}
.cal-cell.today .cal-num .d {
  background: var(--ink);
  color: #fff; width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11.5px;
}
.cal-cell.we .cal-num .d { color: #c2410c; }
.cal-cell.today.we .cal-num .d { color: #fff; }

.cal-events { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

/* 月历条目：按类型着色（分类彩色就体现在这里） */
.cal-chip {
  --c: var(--ink);
  font-size: 11px; font-weight: 700;
  border-radius: 7px; padding: 3px 7px; line-height: 1.35;
  background: color-mix(in srgb, var(--c) 10%, #fff);
  color: color-mix(in srgb, var(--c) 68%, #000);
  border-left: 3px solid var(--c);
  cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: 0.15s;
}
.cal-chip:hover {
  transform: translateX(2px);
  background: color-mix(in srgb, var(--c) 18%, #fff);
}
.cal-chip .t { color: var(--text-3); font-size: 10px; margin-right: 3px; font-weight: 700; }
.cal-chip.sample { border-left-style: dotted; }
/* 前台不再显示售票状态，所以这里也没有任何按状态变灰/划线的样式 —— 别再加回来 */

.cal-more { font-size: 10.5px; font-weight: 800; color: var(--text-2); cursor: pointer; padding: 1px 4px; }
.cal-more:hover { text-decoration: underline; }

.cal-span {
  --c: var(--ink);
  font-size: 10.5px; font-weight: 700;
  background: color-mix(in srgb, var(--c) 14%, #fff);
  color: color-mix(in srgb, var(--c) 68%, #000);
  border-left: 3px solid var(--c);
  border-radius: 7px; padding: 2px 7px; margin-bottom: 3px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  cursor: pointer;
}
.cal-dots { display: none; }

/* ---------------------------------------------------- 列表视图 */

.list-day { margin-bottom: 24px; }
.list-day-head {
  display: flex; align-items: baseline; gap: 9px; padding: 0 2px 10px;
  position: sticky; top: 66px; z-index: 5;
  background: linear-gradient(180deg, var(--bg) 70%, rgba(255, 255, 255, 0));
}
.list-day-head .d { font-size: 15.5px; font-weight: 800; }
.list-day-head .w { font-size: 12px; color: var(--text-3); font-weight: 700; }
.list-day-head .badge-today {
  font-size: 10.5px; font-weight: 800; color: #fff;
  background: var(--ink);
  border-radius: 999px; padding: 2px 9px;
}
.list-day-head .line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }

/* ---------------------------------------------------- 阵容 */

.artist-tools { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.artist-tools input[type='search'] {
  flex: 1; min-width: 190px;
  padding: 10px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card-2);
  color: var(--text); font-size: 13.5px; outline: none;
}
.artist-tools input[type='search']:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(16, 16, 20, 0.08); }

.artist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(134px, 1fr)); gap: 10px; }
.artist-card {
  background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 11px; cursor: pointer; transition: 0.18s; text-align: center;
}
.artist-card:hover {
  border-color: var(--ink); transform: translateY(-3px);
  box-shadow: 0 18px 40px -26px rgba(16, 16, 20, 0.5);
}
.artist-card.on {
  border-color: var(--ink);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.artist-av {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 9px;
  background: var(--ink);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800; overflow: hidden;
}
.artist-av img { width: 100%; height: 100%; object-fit: cover; }
.artist-nm { font-size: 13.5px; font-weight: 800; }
.artist-sub { font-size: 11px; color: var(--text-3); font-weight: 600; margin-top: 2px; }
/* 这个人在别处还叫过什么（身份归一合并出来的别名），知道有别名才不会以为漏了人 */
.artist-aka {
  font-size: 10.5px; color: var(--text-3); font-weight: 600; margin-top: 4px;
  line-height: 1.35; word-break: break-all;
}

.artist-panel {
  background: var(--card);
  border: 1px solid var(--ink);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.ap-head { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.ap-head .artist-av { margin: 0; width: 58px; height: 58px; font-size: 20px; }
.ap-name { font-size: 19px; font-weight: 900; letter-spacing: -0.4px; }
.ap-sub { font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.ap-stats { display: flex; gap: 24px; margin-left: auto; }
.ap-stat .n { font-size: 20px; font-weight: 800; }
.ap-stat .l { font-size: 11px; color: var(--text-3); font-weight: 700; }

/* ---------------------------------------------------- 首页 · 自定义模块 */

/* margin-bottom 与 .notice 的 margin-bottom 对齐：
   公告 →（16px）→ 模块 →（16px）→ 下面的黑色日期卡，三段间距一致 */
.home-blocks { display: grid; gap: 12px; margin-bottom: 16px; }
.home-blocks:empty { display: none; }
.hblock {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.hblock-t {
  font-size: 13px; font-weight: 900; letter-spacing: -0.2px;
  margin-bottom: 8px; color: var(--text);
}
.hblock-body { font-size: 13px; color: var(--text-2); font-weight: 600; line-height: 1.65; }
.hblock-note { font-size: 12px; color: var(--text-3); font-weight: 600; margin-top: 8px; }
.hblock-image img { width: 100%; border-radius: var(--radius-sm); display: block; }
.hblock-image a { display: block; }
.hblock-link .btn { display: inline-flex; }
.hblock-stats .hstat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 8px; }
.hblock-stats .hstat { text-align: center; }
.hblock-stats .hstat .n { font-size: 20px; font-weight: 900; letter-spacing: -0.5px; }
.hblock-stats .hstat .l { font-size: 11px; color: var(--text-3); font-weight: 700; margin-top: 1px; }
/* 站长自己写的 HTML 里可能有链接/加粗，交给它自己的样式 */
.hblock-html .hblock-body a { color: var(--ink); text-decoration: underline; }

/* 公告正下方的「双栏跳转」：两条链接并排，各占一半。
   外层不要卡片壳（.hblock 的边框/内边距清掉），免得套两层框。
   只填了一条链接时，auto-fit 会让它自动撑满整行。 */
.hblock-quick { background: none; border: 0; box-shadow: none; padding: 0; }
.hblock-quick .hblock-t { margin: 0 0 8px; }
.hblock-quick .hq-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.hblock-quick .hq-a {
  display: flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13.5px; font-weight: 800; letter-spacing: -0.2px;
  text-align: center; text-decoration: none;
  box-shadow: var(--shadow);
  transition: 0.18s;
}
.hblock-quick .hq-a:hover {
  background: var(--ink); border-color: var(--ink); color: #fff;
  transform: translateY(-1px);
}
.hblock-quick .hq-a:active { transform: none; }
.hblock-quick .hblock-note { margin-top: 8px; text-align: center; }

/* 多栏里的「点开展开」栏：外观和跳转栏一致，右上角加个小箭头提示能点开 */
button.hq-a { font-family: inherit; width: 100%; position: relative; cursor: pointer; }
.hq-exp { padding-right: 30px; }
.hq-exp::after {
  content: '▾';
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  font-size: 12px; opacity: 0.55; transition: 0.18s;
}
.hq-exp.on::after { transform: translateY(-50%) rotate(180deg); }
.hq-exp:hover::after { opacity: 1; }

/* 「点我获取」展开区：默认收起，点了才展开。
   二维码这类图不铺满整行（免得占满屏幕），居中限宽。 */
.hx-panel { margin-top: 12px; }
.hx-text { font-size: 13px; color: var(--text-2); font-weight: 600; line-height: 1.75; }
.hx-img { margin-top: 10px; display: flex; justify-content: center; }
.hx-img img {
  width: 100%; max-width: 260px; display: block;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
}
/* 正文里空一行 = 拆成两件事（打赏 / 合作商务）：第二段起加分隔线，一眼看出是两条 */
.hx-sec + .hx-sec-next { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-2); }

/* 展开卡片：左边一句话 + 右边按钮，点开才显示二维码 / 图文 */
#homeAfterHero { margin-top: 16px; }
.hblock-qr .qr-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hblock-qr .qr-text {
  flex: 1 1 170px; font-size: 13.5px; font-weight: 800;
  letter-spacing: -0.2px; color: var(--text); line-height: 1.55;
}
.hblock-qr .qr-btn { flex: none; }
.hblock-qr .hx-img img { max-width: 240px; }

/* ---------------------------------------------------- 关于 RapCal 页 */

/* 顶部大 logo：钻石字原图，透明背景直接浮在白底上 */
.about-hero {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; padding: 44px 12px 26px; text-align: center;
}
.about-logo {
  width: min(340px, 80vw); height: auto; display: block;
}
.about-sub {
  font-size: clamp(13px, 1.7vw, 15px);
  font-weight: 600; letter-spacing: 0.4px;
  color: var(--text-3);
}

/* 个人资料列表：一行一项，左名字右箭头；展开栏显示在该行下方 */
.about-profiles { max-width: 560px; margin: 0 auto; }
.prof-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 14px;
}
.prof-card .prof-t {
  padding: 13px 18px 0;
  font-size: 12px; font-weight: 800; letter-spacing: 0.3px;
  color: var(--text-3);
}
.prof-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; box-sizing: border-box;
  padding: 15px 18px;
  background: transparent; border: 0; cursor: pointer;
  font-family: inherit; text-align: left; text-decoration: none;
  color: var(--text); font-size: 14.5px; font-weight: 800; letter-spacing: -0.2px;
}
/* 行与行之间的分割线：不能只用「相邻兄弟」选择器 —— 两行之间隔着展开面板
   （收起时 display:none）会让线消失。直接给每一行画上边线，首行去掉。 */
.prof-card > .prof-row { border-top: 1px solid var(--line-2); }
.prof-card > .prof-row:first-child,
.prof-card > .prof-t + .prof-row { border-top: 0; }
.prof-row:hover { background: rgba(0, 0, 0, 0.035); }
.prof-row .hx-label { flex: 1; }
.prof-row .prof-go {
  flex: none; color: var(--text-3);
  font-size: 18px; font-weight: 700; line-height: 1;
  transition: transform 0.18s;
}
.prof-row:hover .prof-go { transform: translateX(2px); color: var(--ink); }
/* 没内容可展开的行：普通展示，不可点 */
.prof-row.prof-static { cursor: default; }
.prof-row.prof-static:hover { background: transparent; }
/* 展开行下面的图文，贴着卡片内边距显示 */
.prof-card .hx-panel { margin: 0; padding: 2px 18px 16px; border-top: 1px dashed var(--line-2); }
/* 详情弹窗里的展开内容（如果有）保持原有内边距 */
.prof-card .hx-panel .hx-sec-next { margin-top: 12px; padding-top: 12px; }

/* 关于页三端自适应 —— 始终单列一整张列表（手机 560 / 平板 680 / 电脑 720 居中），
   电脑端只是 logo 放大、行距更舒展 */
@media (min-width: 761px) {
  .about-hero { padding: 52px 16px 30px; gap: 16px; }
  .about-logo { width: min(440px, 62vw); }
  .about-profiles { max-width: 680px; }
  .prof-row { padding: 16px 20px; font-size: 15px; }
}
@media (min-width: 1000px) {
  .about-hero { padding: 64px 16px 34px; }
  .about-logo { width: min(560px, 38vw); }
  .about-profiles { max-width: 720px; }
  .prof-card { margin-bottom: 0; }
  .prof-card .hx-panel { padding: 4px 22px 20px; }
  .hx-img img { max-width: 280px; }
}

/* ---------------------------------------------------- 日历同步（日历页 · 月历下方独立区域） */

.sync-area { margin-top: 28px; }
.sync-area .section-h { margin-top: 0; }

.sync-card {
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.sync-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sync-head .ic {
  width: 42px; height: 42px; border-radius: 13px; flex: 0 0 42px;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.sync-head h3 { margin: 0; font-size: 16px; font-weight: 800; }
.sync-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.sync-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 15px; }
.sync-note { font-size: 12px; color: var(--text-3); font-weight: 600; margin-top: 12px; line-height: 1.7; }
/* ★ 订阅链接是很长的无空格 URL，必须强制在卡片内断行，否则手机端会把卡片撑出屏幕 */
.sync-note code {
  color: var(--text-2);
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-all;
  white-space: normal;
}

/* ★ 全局保险：任何超长内容都不允许把页面撑出横向滚动（手机端“页面不是全屏”就是这么来的）。
   先写 hidden 兜底老浏览器，再写 clip（不产生滚动容器，行为更干净） */
html, body { overflow-x: hidden; overflow-x: clip; }

/* 首页「日历图片」：默认 14 张（最近 14 场演出的海报），7 列 × 2 行 */
.gallery {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-top: 6px;
}
.gal-item {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--card-3); cursor: pointer;
  border: 1px solid var(--line); transition: 0.18s;
}
.gal-item:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: 0 18px 40px -24px rgba(16, 16, 20, 0.5); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 9px 8px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
  font-size: 11.5px; font-weight: 700; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gal-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}

/* 未来 7 天时间轴 */
.tl { position: relative; padding-left: 18px; }
.tl::before {
  content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--ink), rgba(16, 16, 20, 0.25), transparent);
  border-radius: 2px;
}
.tl-item { position: relative; padding: 0 0 14px; }
.tl-item::before {
  content: ''; position: absolute; left: -18px; top: 7px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink);
}
.tl-item .dt { font-size: 12px; font-weight: 800; color: var(--text-3); margin-bottom: 2px; }
.tl-item .ti { font-size: 14px; font-weight: 700; cursor: pointer; }
.tl-item .ti:hover { color: var(--ink); text-decoration: underline; }
.tl-item .tm { font-size: 12px; color: var(--text-3); font-weight: 600; }

/* ---------------------------------------------------- 弹窗 */

.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(16, 16, 20, 0.44);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fade 0.16s ease;
}
.modal-mask.hide { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  width: 100%; max-width: 620px;
  max-height: 88vh; overflow: auto;
  box-shadow: var(--shadow-lg);
  animation: pop 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.1);
  position: relative;
}
@keyframes pop { from { transform: translateY(16px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }

.modal-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 15px 17px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-2);
}
.modal-head h3 { margin: 0; font-size: 15.5px; font-weight: 800; flex: 1; }
.modal-body { padding: 17px; }
.modal-foot {
  padding: 14px 17px; border-top: 1px solid var(--line-2);
  display: flex; gap: 9px; justify-content: flex-end; flex-wrap: wrap;
  position: sticky; bottom: 0;
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px);
}

.kv { display: grid; grid-template-columns: 78px 1fr; gap: 9px 12px; font-size: 13.5px; }
.kv dt { color: var(--text-3); font-weight: 700; }
.kv dd { margin: 0; font-weight: 600; color: var(--text); word-break: break-word; }
.kv dd a { color: var(--text); text-decoration: underline; font-weight: 700; }

.section-t {
  font-size: 12px; font-weight: 800; color: var(--text-3);
  letter-spacing: 0.6px; margin: 18px 0 9px;
  padding-bottom: 7px; border-bottom: 1px dashed var(--line-2);
}

.daylist-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px dashed var(--line-2); cursor: pointer;
}
.daylist-item:last-child { border-bottom: 0; }
.daylist-item:hover .ec-title { color: var(--ink); text-decoration: underline; }

/* ---------------------------------------------------- 底部导航 */

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--line-2);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar-in {
  max-width: 480px; margin: 0 auto;
  display: flex; align-items: center;
}
.tab {
  flex: 1; border: 0; background: transparent; cursor: pointer;
  padding: 9px 0 10px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--text-3); font-size: 10.5px; font-weight: 800;
  transition: 0.18s; position: relative;
}
.tab svg { width: 22px; height: 22px; transition: 0.18s; }
.tab.on { color: var(--ink); }
.tab.on::after {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px; border-radius: 0 0 4px 4px;
  background: var(--ink);
}

/* ---------------------------------------------------- 页脚 / 加载 */

.foot {
  border-top: 1px solid var(--line-2);
  background: var(--bg-soft);
  padding: 22px 18px 100px;
  margin-top: 34px; position: relative; z-index: 1;
}
.foot-in { max-width: 1220px; margin: 0 auto; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.foot-in p { margin: 0; font-size: 12px; color: var(--text-3); font-weight: 600; }
.foot-in .sp { margin-left: auto; display: flex; gap: 8px; }

.loading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 66px 0; color: var(--text-3); font-weight: 700; font-size: 13px; }
.spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid rgba(16, 16, 20, 0.15); border-top-color: var(--ink);
  animation: spin 0.72s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------- toast */

.toast {
  position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%);
  z-index: 999; background: var(--ink);
  color: #fff; font-size: 13.5px; font-weight: 700;
  padding: 11px 22px; border-radius: 999px;
  box-shadow: 0 16px 40px -14px rgba(16, 16, 20, 0.8);
  max-width: 88vw; text-align: center;
}
.toast.err { background: #be123c; }

/* ---------------------------------------------------- 响应式 */

@media (max-width: 900px) {
  .topbar-in { gap: 10px; }
  .search-box { order: 3; width: 100%; }
  .search-box input { width: 100%; }
  .masthead { padding: 24px 10px 22px; gap: 14px; }
  .masthead-logo { width: 64px; height: 64px; border-radius: 16px; }
}

@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 12px 100px; }
  .hero { padding: 20px 18px; border-radius: 18px; }
  .hero-day { font-size: 48px; letter-spacing: -2px; }
  .hero-badge { margin-left: 0; }
  .hero-strip { gap: 18px; }
  .masthead-title { letter-spacing: -0.5px; }

  /* 顶栏标题变长后，窄屏让它换行显示而不是截断 */
  .brand { align-items: flex-start; }
  .brand-title { white-space: normal; font-size: 13px; line-height: 1.28; }
  .brand-sub { display: none; }
  .topbar-right .btn { padding: 7px 11px; font-size: 12px; }

  .filter-label { flex: 0 0 100%; padding-top: 0; }
  .filter-row { flex-direction: column; gap: 6px; }
  /* 手机端：chips 高度按内容自适应，最多 3 整行（3×31 + 行距 2×6 = 105），超出滚动。
     不能写死 height —— 场馆/类型只有两行，写死会留一大块空白（用户实测吐槽过）。
     ★ flex:none 必须保留：.chips 基础规则里的 flex:1 会让 flex-basis:0 干扰高度。
     ★ align-content:flex-start 必须保留（.chips 基础规则里），
       否则换行 flex 默认 stretch 会把 chips 拉成大圆球。 */
  .chips.scroll:not(.open) { flex: none; max-height: 105px; }
  /* 没有「展开全部」按钮的栏（场馆/类型）不占按钮槽位，避免底下空一块 */
  .filter-more:empty { display: none; }
  .filter-more { min-height: 30px; }
  .filter-more .chip { padding: 6px 14px; font-size: 12.5px; }

  .cal-head div { font-size: 11px; padding: 8px 0; }
  .cal-cell { min-height: 76px; padding: 5px 4px; }
  .cal-events, .cal-span { display: none; }
  .cal-dots { display: flex; gap: 3px; flex-wrap: wrap; }
  .cal-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); display: block; }
  .cal-dots .n { font-size: 10px; font-weight: 800; color: var(--text-3); }
  .cal-num { font-size: 11.5px; margin-bottom: 3px; }
  .cal-legend { display: none; }

  .event-card { padding: 11px; gap: 11px; }
  .poster { flex: 0 0 66px; width: 66px; height: 88px; }
  .ec-title { font-size: 14px; }
  .ec-meta { font-size: 12px; gap: 3px 10px; }

  .modal-mask { padding: 0; align-items: flex-end; }
  .modal { max-width: none; max-height: 92vh; border-radius: 22px 22px 0 0; }

  .month-nav { margin-left: 0; width: 100%; justify-content: space-between; }
  .kv { grid-template-columns: 68px 1fr; }
  .ap-stats { margin-left: 0; gap: 16px; }
  /* 手机上一行放 7 张海报只剩 40 多像素，看不清；改成一行 4 张（14 张 → 4 行）。
     宽屏才是「7 列 × 2 行」那个效果。 */
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
  .toast { bottom: 84px; }
}

/* ---------------------------------------------------- 打印 */

@media print {
  body::before, .topbar, .tabbar, .filters, .viewbar, .foot { display: none !important; }
  body { background: #fff; color: #000; }
  .wrap { max-width: none; padding: 0; }
  .cal-card, .event-card { box-shadow: none; border: 1px solid #bbb; background: #fff; color: #000; }
  .ec-title, .cal-num { color: #000; }
  .event-card { break-inside: avoid; }
  .list-day { break-inside: avoid; }
}
