/* ==========================================================
   星剧 · 制作倒计时 / 逾期统计（首页）
   挂在 styles / theme-film / rhythm 之后
   ========================================================== */

/* ---------- 倒计时胶囊（卡片封面 / 列表单元格共用） ---------- */
.dl-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 11.5px;
  line-height: 20px;
  letter-spacing: .2px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.dl-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .9;
  flex: none;
}
.dl-pill--late { background: rgba(160, 59, 50, .93); color: #fff6f4; }
.dl-pill--today { background: rgba(184, 135, 58, .95); color: #fffaf1; }
.dl-pill--soon { background: rgba(201, 169, 110, .96); color: #3d3223; }
.dl-pill--ok { background: rgba(43, 38, 32, .52); color: #f8f2e7; }
.dl-pill--done { background: #eaeee3; color: #5f8b4c; }
.dl-pill--none { background: #f1ece2; color: var(--text-3); }

/* 盖在封面上（左下角，避开左上角集数、右下角更多按钮） */
.dcard__cover > .dl-pill {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  backdrop-filter: blur(4px);
}

/* 逾期项目：封面留一圈暗红，远看就能挑出来 */
.dcard.is-late .dcard__cover { border-color: rgba(160, 59, 50, .38); }
.dcard.is-late:hover .dcard__cover {
  border-color: var(--danger);
  box-shadow: 0 6px 18px -6px rgba(160, 59, 50, .35);
}
.dtable tbody tr.is-late td:first-child { box-shadow: inset 3px 0 0 var(--danger); }

/* ---------- 逾期明细弹窗 ---------- */
.modal--overdue { width: 580px; max-width: calc(100vw - 40px); }
.modal--overdue .modal__body { padding: 14px 20px 6px; }

.od-sub {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-2);
  letter-spacing: .2px;
}
.od-sub b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.od-sub__muted { color: var(--text-3); }

.od-stats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.od-stats:empty { display: none; }
.od-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f7f3ea;
  font-size: 12.5px;
  color: var(--text-2);
}
.od-stat i { width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--danger)); }
.od-stat b { color: var(--danger); font-weight: 600; font-variant-numeric: tabular-nums; }

.od-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 46vh;
  overflow-y: auto;
  margin: 0 -6px;
  padding: 0 6px 4px;
}
.od-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: 9px;
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .12s;
}
.od-row:hover { background: #f7f3ea; }
.od-row__av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12.5px;
  flex: none;
}
.od-row__main { flex: 1; min-width: 0; }
.od-row__name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  min-width: 0;
}
.od-row__t {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.od-row__id {
  font-size: 11.5px;
  color: var(--text-3);
  font-weight: 400;
  flex: none;
}
.od-row__meta {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.od-row__days {
  flex: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--danger);
  font-variant-numeric: tabular-nums;
}
.od-row__go { width: 14px; height: 14px; color: #c7bda9; flex: none; }
.od-row:hover .od-row__go { color: var(--text-2); }
.od-empty { padding: 30px 0; text-align: center; font-size: 13.5px; color: var(--text-3); }

.od-foot__tip {
  margin: 0 auto 0 0;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
}
.modal--overdue .modal__foot { align-items: center; }

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  .modal--overdue .modal__foot { flex-wrap: wrap; gap: 8px; }
  .od-foot__tip { width: 100%; }
}
