/* ===== 耳朵有数 · 样式 ===== */
:root {
  --bg: #f4f6fb;
  --panel: #ffffff;
  --panel-soft: #fafbfe;
  --ink: #171b26;
  --ink-2: #545c6e;
  --ink-3: #8b93a5;
  --line: #e7eaf1;
  --line-2: #f0f2f7;
  --brand: #5b5bd6;
  --brand-2: #7b7bef;
  --brand-soft: #eeeefc;
  --shadow: 0 1px 2px rgba(23,27,38,.04), 0 8px 24px -12px rgba(23,27,38,.10);
  --shadow-sm: 0 1px 2px rgba(23,27,38,.05);
  --radius: 14px;

  --p-maoer: #e8505b;
  --p-manbo: #4a7bf7;
  --p-fanjiao: #e91e8c;
  --p-ximalaya: #f0a63a;
  --p-tuu: #9b59b6;
  --p-netease: #16a085;
  --p-others: #78909c;
  --c-radio: #6c5ce7;
  --c-audio: #12b8a6;
  --c-comic: #e8913a;
  --ok: #12b886;
  --warn: #f59f00;
  --free: #f0a63a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

b, strong { font-weight: 600; }

/* ---------- 顶栏 ---------- */
.topbar {
  background: linear-gradient(120deg, #4a4ac4 0%, #6a5ae0 55%, #8a6bd8 100%);
  color: #fff;
}
.topbar-inner {
  max-width: 1440px; margin: 0 auto; padding: 18px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
}
/* 品牌区不允许被右侧芯片挤压（挤压会导致中文按字竖排），空间不足时整块换行 */
.brand { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.brand-text { min-width: 0; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.30);
  display: grid; place-items: center;
  font-size: 21px; font-weight: 700; letter-spacing: 1px;
  backdrop-filter: blur(6px);
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; }
.brand-text h1 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: .5px; white-space: nowrap; }
.brand-text p { margin: 2px 0 0; font-size: 12.5px; color: rgba(255,255,255,.78); }
.topbar-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font-size: 12.5px; padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.92); white-space: nowrap;
}
.chip b { font-weight: 600; }

/* ---------- 标签页 ---------- */
.tabs {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.tabs-inner {
  max-width: 1440px; margin: 0 auto; padding: 0 28px;
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
}
.tabs-inner::-webkit-scrollbar { display: none; }
.tab {
  appearance: none; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 14px; color: var(--ink-2);
  padding: 13px 15px; border-bottom: 2px solid transparent;
  white-space: nowrap; transition: color .15s, border-color .15s;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

/* ---------- 筛选栏 ---------- */
.filterbar { background: var(--panel); border-bottom: 1px solid var(--line); }
.filterbar-inner {
  max-width: 1440px; margin: 0 auto; padding: 12px 28px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-label { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.opts { display: flex; gap: 6px; flex-wrap: wrap; }
.opt {
  appearance: none; cursor: pointer; font: inherit; font-size: 12.5px;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel-soft); color: var(--ink-2);
  transition: all .15s;
}
.opt:hover { border-color: var(--brand-2); color: var(--brand); }
.opt.is-on {
  background: var(--brand-soft); border-color: var(--brand-2);
  color: var(--brand); font-weight: 600;
}
.opt .dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  margin-right: 6px; vertical-align: 1px;
}
.sel, .input {
  font: inherit; font-size: 12.5px; color: var(--ink);
  padding: 5px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel-soft);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.sel:focus, .input:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft); }
.filter-actions { margin-left: auto; }
.btn {
  appearance: none; cursor: pointer; font: inherit; font-size: 12.5px;
  padding: 6px 14px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink-2); transition: all .15s;
}
.btn:hover { border-color: var(--brand-2); color: var(--brand); background: var(--brand-soft); }
.filter-count { font-size: 12.5px; color: var(--ink-3); }
.filter-count b { color: var(--brand); font-size: 14px; }

/* ---------- 布局 ---------- */
.wrap { max-width: 1440px; margin: 0 auto; padding: 24px 28px 56px; }
.view { display: none; }
.view.is-active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.grid { display: grid; gap: 16px; margin-bottom: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3-2 { grid-template-columns: 3fr 2fr; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 20px; margin-bottom: 16px;
}
.grid .card { margin-bottom: 0; }
.card-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.card-head h3 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .2px; }
.hint { font-size: 11.5px; color: var(--ink-3); }

/* ---------- KPI ---------- */
.kpis {
  display: grid; gap: 14px; margin-bottom: 16px;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
}
.kpi {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px; position: relative; overflow: hidden;
}
.kpi::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--brand-2); opacity: .85;
}
.kpi.k-maoer::after { background: var(--p-maoer); }
.kpi.k-manbo::after { background: var(--p-manbo); }
.kpi.k-tuu::after { background: var(--p-tuu); }
.kpi.k-ok::after { background: var(--ok); }
.kpi.k-warn::after { background: var(--warn); }
.kpi-label { font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; }
.kpi-value { font-size: 25px; font-weight: 700; letter-spacing: -.4px; line-height: 1.15; }
.kpi-value .unit { font-size: 13px; font-weight: 500; color: var(--ink-2); margin-left: 3px; }
.kpi-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 5px; }

/* ---------- 图表 ---------- */
.chart-box { position: relative; height: 268px; }
.chart-box.chart-tall { height: 380px; }
.chart-box canvas { max-width: 100%; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
.table-scroll { max-height: 520px; overflow-y: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th, table.tbl td {
  padding: 9px 12px; text-align: left; white-space: nowrap;
  border-bottom: 1px solid var(--line-2);
}
table.tbl thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--panel-soft); color: var(--ink-2);
  font-weight: 600; font-size: 12.5px; border-bottom: 1px solid var(--line);
}
table.tbl tbody tr:hover { background: #f8f9fd; }
table.tbl td.num, table.tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.tbl tbody tr.total-row { background: var(--brand-soft); font-weight: 600; }
table.tbl tbody tr.total-row td { border-bottom-color: var(--line); }

/* ===== 剧名列固定：左右划动时「剧集 / 剧名」列停在左侧 ===== */
table.tbl .sticky-col {
  position: sticky; left: 0;
  background: var(--panel);
  box-shadow: inset -1px 0 0 var(--line);
}
/* 表头要压住普通表头（2）与粘住的单元格（1） */
table.tbl thead th.sticky-col { z-index: 3; background: var(--panel-soft); }
table.tbl tbody td.sticky-col { z-index: 1; }
/* 底色跟着行状态走，否则固定列会露出白块 */
table.tbl tbody tr:hover > td.sticky-col { background: #f8f9fd; }
table.tbl tbody tr.total-row > td.sticky-col { background: var(--brand-soft); }
/* 固定列里的长标题必须截断，否则会占满整屏 */
table.tbl .sticky-col .sticky-t {
  display: block; max-width: 240px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
@media (max-width: 640px) {
  table.tbl .sticky-col .cell-title .t { max-width: 116px; }
  table.tbl .sticky-col .sticky-t { max-width: 116px; }
}
.cell-title { display: flex; align-items: center; gap: 9px; }
.cell-title img {
  width: 30px; height: 40px; object-fit: cover; border-radius: 4px;
  background: var(--line-2); flex: none;
}
.cell-title .t { font-weight: 500; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 无封面 / 加载失败时的占位块 */
.cover-fallback {
  width: 30px; height: 40px; flex: none; border-radius: 4px;
  background: linear-gradient(135deg, var(--line-2), #eef0f6);
  position: relative; display: inline-block;
}
.cover-fallback::after {
  content: "♪"; position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
  color: #b8bfd0; font-size: 15px; line-height: 1;
}
.cell-title a { color: inherit; text-decoration: none; }
.cell-title a:hover { color: var(--brand); text-decoration: underline; }

/* ===== 分季合并：徽标 + 展开的各季数据 ===== */
.seasons-badge {
  border: 1px solid var(--brand);
  color: var(--brand); background: var(--brand-soft, #f2f0ff);
  font-size: 11px; line-height: 1.4; padding: 1px 7px;
  border-radius: 999px; cursor: pointer; margin-left: 6px; white-space: nowrap;
}
.seasons-badge:hover { background: var(--brand); color: #fff; }
.seasons-badge.open { background: var(--brand); color: #fff; }
tr.season-row > td {
  background: #f7f8fc; padding: 10px 14px 12px !important;
  border-bottom: 1px solid var(--line);
}
.seasons-h { font-size: 12px; color: #545c6e; font-weight: 600; margin-bottom: 6px; }
.seasons-box { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* 自适应宽度：不要拉伸填满主表（主表在移动端很宽，100% 会把数字列推到屏外） */
.seasons-table { width: auto; min-width: 480px; border-collapse: collapse; font-size: 12.5px; }
.seasons-table th {
  text-align: left; font-weight: 500; color: #8a8f9c; font-size: 11.5px;
  padding: 3px 10px; border-bottom: 1px solid var(--line);
}
.seasons-table td { padding: 5px 10px; border-bottom: 1px dashed var(--line); color: #3c4353; }
.seasons-table th.num, .seasons-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.seasons-table a { color: var(--brand); text-decoration: none; }
.seasons-table a:hover { text-decoration: underline; }
.seasons-table tr:last-child td { border-bottom: none; }

.pill {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 11.5px; line-height: 1.5; white-space: nowrap;
}
.pill.p-maoer { background: #fdecee; color: #c93a45; }
.pill.p-manbo { background: #eaf1ff; color: #2f5fd0; }
.pill.p-tuu { background: #fdf3e2; color: #b57715; }
.pill.c-radio { background: #efedfd; color: #5748c9; }
.pill.c-audio { background: #e4f7f4; color: #0d8d80; }
.pill.pay { background: #e8f8f1; color: #0f9b6c; }
.pill.free { background: #f1f2f6; color: #6f778a; }
.pill.member { background: #fff4e3; color: #b5790d; }
.pill.tag { background: #f2f3f8; color: #5b6377; margin-right: 4px; }

.bar-mini { display: inline-block; height: 6px; border-radius: 3px; background: var(--brand-2); vertical-align: middle; }

.empty { padding: 40px; text-align: center; color: var(--ink-3); font-size: 13px; }

/* ---------- 洞察 ---------- */
.insights { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); }
.insight {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 10px;
  background: var(--panel-soft); border: 1px solid var(--line-2);
}
.insight .i-dot {
  width: 22px; height: 22px; border-radius: 7px; flex: none;
  display: grid; place-items: center; font-size: 12px;
  background: var(--brand-soft); color: var(--brand); font-weight: 700;
}
.insight p { margin: 0; font-size: 13px; color: var(--ink-2); }
.insight p b { color: var(--ink); }

/* ---------- 排行榜 ---------- */
.rank-list { display: flex; flex-direction: column; }
.rank-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 4px; border-bottom: 1px solid var(--line-2);
}
.rank-item:last-child { border-bottom: 0; }
.rank-no {
  width: 22px; height: 22px; flex: none; border-radius: 7px;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 700;
  background: var(--line-2); color: var(--ink-3);
}
.rank-item:nth-child(1) .rank-no { background: #fdecee; color: #cf3340; }
.rank-item:nth-child(2) .rank-no { background: #fdf3e2; color: #b57715; }
.rank-item:nth-child(3) .rank-no { background: #eaf1ff; color: #2f5fd0; }
.rank-main { flex: 1; min-width: 0; }
.rank-main .r-title {
  font-size: 13px; font-weight: 500; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.rank-main .r-title a { color: inherit; text-decoration: none; }
.rank-main .r-title a:hover { color: var(--brand); }
.rank-main .r-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.rank-val { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rank-val small { font-weight: 500; font-size: 11.5px; color: var(--ink-3); margin-left: 2px; }

/* ---------- 明细分页 ---------- */
.detail-tools { display: flex; gap: 8px; align-items: center; }
.detail-tools .input { width: 260px; }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.active-filters:empty { display: none; }
.af {
  font-size: 11.5px; padding: 3px 9px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); border: 1px solid #dcdcf9;
}
.pager { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.pager button {
  appearance: none; cursor: pointer; font: inherit; font-size: 12.5px;
  min-width: 32px; padding: 5px 9px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink-2);
}
.pager button:hover:not(:disabled) { border-color: var(--brand-2); color: var(--brand); }
.pager button.is-on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pager button:disabled { opacity: .4; cursor: not-allowed; }
.pager .pinfo { font-size: 12.5px; color: var(--ink-3); margin: 0 6px; }

/* ---------- 说明 ---------- */
.prose h3 { font-size: 15px; margin: 20px 0 8px; }
.prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 10px; color: var(--ink-2); font-size: 13.5px; }
.prose ul { margin: 0 0 12px; padding-left: 20px; color: var(--ink-2); font-size: 13.5px; }
.prose li { margin-bottom: 5px; }
.prose code {
  background: var(--panel-soft); border: 1px solid var(--line-2);
  padding: 1px 5px; border-radius: 5px; font-size: 12.5px;
}
.note {
  background: #fffaf0; border: 1px solid #f6e3bd; border-radius: 10px;
  padding: 12px 14px; font-size: 13px; color: #7a5a12;
}
.note b { color: #5e4409; }

/* ---------- 口径说明条 ---------- */
.notice {
  background: var(--brand-soft); border: 1px solid #ddddf8; border-left: 3px solid var(--brand-2);
  border-radius: 10px; padding: 13px 16px; font-size: 13px;
  color: var(--ink-2); line-height: 1.75; margin-bottom: 16px;
}
.notice b { color: var(--ink); }
.notice ul { margin: 8px 0 0; padding-left: 20px; }
.notice li { margin-bottom: 4px; }
.notice code {
  background: rgba(91,91,214,.08); border: 1px solid #ddddf8;
  padding: 1px 5px; border-radius: 5px; font-size: 12.5px;
}
.notice .n-title { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }

/* 交叉跳转按钮（口径说明里的「去看免费剧库」等） */
.link-btn {
  display: inline-block; margin-left: 2px; padding: 2px 10px;
  font-size: 12.5px; font-family: inherit; font-weight: 600;
  color: var(--brand); background: #fff; border: 1px solid #d5d5f5;
  border-radius: 999px; cursor: pointer; transition: .15s;
}
.link-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
a.link-btn { text-decoration: none; }

/* 总览：两个数据范围的小对照 */
.scope-grid {
  display: grid; gap: 10px; margin: 10px 0 2px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.scope-cell {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px;
}
.scope-cell .sc-h { font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.scope-cell .sc-v { font-size: 19px; font-weight: 700; letter-spacing: -.3px; color: var(--brand); }
.scope-cell .sc-v .unit { font-size: 12px; font-weight: 500; color: var(--ink-3); margin-left: 2px; }
.scope-cell .sc-d { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.55; }

/* ---------- 页脚 ---------- */
.foot { border-top: 1px solid var(--line); background: var(--panel); }
.foot p { margin: 0; padding: 18px 0; font-size: 12.5px; color: var(--ink-3); text-align: center; }
.foot-row { display: flex; align-items: center; justify-content: center; gap: 34px; flex-wrap: wrap; }
.foot-row p { padding: 14px 0; }
.foot-col { display: flex; flex-direction: column; }
.foot-col p { padding: 14px 0 0; }
.foot-col .beian { padding: 4px 0 14px; font-size: 12px; }
.beian a { color: var(--ink-3); text-decoration: none; border-bottom: 1px dotted currentColor; }
.beian a:hover { color: var(--ink-1); }
.mp-qr { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.mp-qr img { width: 96px; height: 88px; object-fit: contain; border-radius: 10px; background: #fff; }
.mp-qr span { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; text-align: left; white-space: nowrap; }
@media (max-width: 640px) {
  .foot-row { flex-direction: column; gap: 0; }
  .foot-row p { padding-bottom: 4px; }
  .mp-qr span { white-space: normal; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .grid-3-2, .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topbar-inner, .tabs-inner, .filterbar-inner, .wrap { padding-left: 16px; padding-right: 16px; }
  .brand-text h1 { font-size: 17px; }
  .kpi-value { font-size: 21px; }
  .detail-tools { width: 100%; }
  .detail-tools .input { width: 100%; flex: 1; }
  .filter-actions { margin-left: 0; }
}

/* ===== 剧集标记（网页版） ===== */
.mark-btns { display: inline-flex; gap: 4px; }
.mbtn { border: 1px solid #d5d9e4; background: #fff; color: #8a8f9c; font-size: 12px; padding: 2px 8px; border-radius: 10px; cursor: pointer; }
.mbtn.on { background: #5b5bd6; border-color: #5b5bd6; color: #fff; }
.mbtn.on-wish { background: #e8913a; border-color: #e8913a; color: #fff; }
.mbtn:hover { border-color: #5b5bd6; }
#loginBtn { font-size: 13px; }

/* 登录弹层：内联 display:flex 会覆盖 hidden 属性，必须用 !important 保证可关闭 */
#loginModal[hidden] { display: none !important; }

/* ===== 标记剧目按钮 & 标记模式 ===== */
.mark-cta { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; white-space: nowrap; }
.mark-cta:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.mark-cta.is-on { background: var(--brand-2); border-color: var(--brand-2); }
.tbl.mark-mode .mark-btns { flex-wrap: wrap; gap: 6px; }
.tbl.mark-mode .mbtn { font-size: 13px; padding: 6px 14px; border-radius: 14px; }
.af-hint { font-size: 13px; }

/* ===== 批量标记栏 & 复选框列 ===== */
.batch-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-top: 1px dashed #e3e6ef; margin-top: 4px; }
.batch-bar .batch-label { font-size: 13px; font-weight: 600; color: #3c4257; }
.batch-bar .opt { padding: 4px 14px; }
.batch-bar .hint { margin-left: auto; }
.tbl-detail .chk { width: 36px; text-align: center; }
.tbl-detail .chk input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; vertical-align: middle; }

/* ===== 可点击的团队 / 主役名 ===== */
.team-link, .cv-link { color: var(--brand); cursor: pointer; border-bottom: 1px dashed var(--brand); }
.team-link:hover, .cv-link:hover { color: var(--brand-2); border-bottom-style: solid; }

/* ===== 主役多选筛选 ===== */
.filter-cv { flex-wrap: wrap; }
.cv-box { position: relative; }
.cv-box .input { width: 160px; }
.cv-suggest { position: absolute; top: calc(100% + 4px); left: 0; z-index: 60; background: #fff; border: 1px solid #e3e6ef; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); min-width: 200px; max-height: 280px; overflow: auto; }
.cv-sug { padding: 7px 12px; cursor: pointer; display: flex; justify-content: space-between; gap: 14px; font-size: 13px; }
.cv-sug:hover { background: var(--brand-soft); }
.cv-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.cv-chip { background: var(--brand); color: #fff; border-radius: 12px; padding: 3px 10px; font-size: 12px; cursor: pointer; white-space: nowrap; }
.cv-chip:hover { background: var(--brand-2); }

/* ===== 移动端 / 平板适配 ===== */
@media (max-width: 720px) {
  /* 顶栏：品牌一行，信息芯片换行铺开 */
  .topbar-inner { flex-wrap: wrap; gap: 10px; padding-top: 14px; padding-bottom: 14px; }
  .brand { width: 100%; }
  .topbar-meta { width: 100%; gap: 6px; }
  .chip { font-size: 11.5px; padding: 4px 10px; }
  #supportChip img { width: 28px; height: 28px; }

  /* 布局与卡片 */
  .wrap { padding-top: 14px; padding-bottom: 40px; }
  .card { padding: 14px; border-radius: 12px; }
  .kpis { gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis .kpi { min-width: 0; }
  .insights { grid-template-columns: 1fr; }
  .chart-box { height: 220px; }
  .chart-box.chart-tall { height: 300px; }

  /* 筛选栏 */
  .filterbar-inner { gap: 10px; }
  .cv-box .input { width: 130px; }
  .cv-suggest { max-width: calc(100vw - 48px); }

  /* 明细工具与批量栏 */
  .detail-tools { flex-wrap: wrap; }
  .detail-tools .input { min-width: 0; }
  .batch-bar .hint { margin-left: 0; width: 100%; order: 9; }

  /* 表格：缩小字号内边距，横向滑动更省力 */
  .table-wrap { -webkit-overflow-scrolling: touch; }
  table.tbl { font-size: 12px; }
  table.tbl th, table.tbl td { padding: 7px 8px; }
  .cell-title img { width: 24px; height: 32px; }
  .cell-title .t { max-width: 150px; }

  /* 触屏点击目标加大 */
  .opt, .btn { padding: 7px 13px; }
  .mbtn { padding: 5px 11px; font-size: 12.5px; }
  .tbl-detail .chk input[type="checkbox"] { width: 18px; height: 18px; }

  /* 登录弹层 */
  #loginModal > div { padding: 18px; }
}

/* 平板：图表和卡片稍紧凑 */
@media (max-width: 1080px) and (min-width: 721px) {
  .chart-box { height: 240px; }
  .chart-box.chart-tall { height: 340px; }
  .topbar-inner { padding-left: 20px; padding-right: 20px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
}

/* 触屏设备：所有小按钮放大点击区 */
@media (hover: none) and (pointer: coarse) {
  .opt { padding: 7px 13px; }
  .pager button { min-width: 40px; padding: 8px 11px; }
  .team-link, .cv-link { padding: 2px 0; }
}

/* ===== 每日更新 ===== */
.daily-note { margin: -2px 0 10px; font-size: 12.5px; color: #6b7280; line-height: 1.6; }
.daily-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 4px 0 12px; }
.daily-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #3c4257; cursor: pointer; }
.daily-check input { width: 16px; height: 16px; }
.day-block { border-top: 1px dashed #e3e6ef; padding: 12px 0 4px; }
.day-block:first-child { border-top: 0; }
.day-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.day-date { font-size: 14px; font-weight: 600; color: #2b2f3a; }
.day-list { display: flex; flex-direction: column; gap: 8px; }
.day-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 10px; background: #fbfbfe; }
.day-item img { width: 34px; height: 44px; object-fit: cover; border-radius: 4px; flex: none; }
.day-main { flex: 1; min-width: 0; }
.day-title { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-title a { color: inherit; text-decoration: none; }
.day-title a:hover { color: var(--brand); text-decoration: underline; }
.day-sub { font-size: 12px; color: #6b7280; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-ep { text-align: right; min-width: 120px; }
.day-epname { font-size: 13px; margin-top: 3px; }
.day-time { font-size: 12px; color: #8a8f9c; margin-top: 2px; }
.day-mark { flex: none; }
.pill.k-正片 { background: #e8f5ee; color: #0f6e56; }
.pill.k-预告 { background: #fdf1e3; color: #854f0b; }
.pill.k-番外 { background: #eef0fb; color: #534ab7; }
.pill.k-其他 { background: #f1efe8; color: #5f5e5a; }
.pill.k-待更新 { background: #f1efe8; color: #888780; }
.tbl-daily .cell-title img { width: 26px; height: 34px; }
@media (max-width: 720px) {
  .day-item { flex-wrap: wrap; }
  .day-main { flex: 1 1 100%; order: 2; }
  .day-ep { text-align: left; min-width: 0; order: 3; }
  .day-mark { order: 4; width: 100%; }
  .day-item img { width: 30px; height: 40px; }
  .daily-tools .sel { flex: 1 1 auto; }
}
