/* ============================================================
   weekly-schedule/styles.css — 追剧周历页专用样式
   作用域：本页独有类名 ws-*，与 page.css / index.html 互不干扰
   ============================================================ */

.ws-root {
  --paper: #ffffff;
  --paper-soft: #f8f6f7;
  --ink: #15151b;
  --ink-2: #52525f;
  --ink-3: #8c8c9a;
  --line: #e7e3e6;
  --brand: #ec2a6a;
  --brand-deep: #c11b52;
  --brand-wash: #fceef3;
  --us: #1a73e8;
  --kr: #e0245e;
  --jp: #009688;
  --th: #f57c00;
  --shell: 1180px;
  --gutter: 24px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
}

.ws-root * { box-sizing: border-box; }
.ws-root a { color: inherit; text-decoration: none; }
.ws-root button { font-family: inherit; }

.ws-shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- 顶栏 ---------- */
.ws-topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.ws-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.ws-topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ws-topbar__brand span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
}
.ws-topbar__link {
  font-size: 14px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
}
.ws-topbar__link:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- 页头 ---------- */
.ws-head { padding: 56px 0 28px; }
.ws-head__eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  font-weight: 400;
  margin-bottom: 20px;
}
.ws-head h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.ws-head h1 em { color: var(--brand); font-style: normal; }
.ws-head__lede {
  margin: 0;
  max-width: 680px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-2);
}

/* ---------- 工具条 ---------- */
.ws-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--line);
}
.ws-toolbar__label { font-size: 13px; color: var(--ink-3); margin-right: 4px; }
.ws-chip {
  font-size: 13px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s;
}
.ws-chip:hover { border-color: var(--brand); color: var(--brand); }
.ws-chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.ws-day { scroll-margin-top: 76px; }
.ws-list h2.ws-day__name { margin: 0; font-size: inherit; font-weight: inherit; }

.ws-toolbar--genre {
  padding-top: 14px;
  border-bottom: none;
  gap: 8px;
}
.ws-toolbar--genre .ws-chip {
  font-size: 12px;
  padding: 5px 12px;
}
.ws-toolbar__meta {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-3);
}

/* ---------- 每天一行 ---------- */
.ws-list { padding: 32px 0 48px; display: grid; gap: 34px; }

.ws-day { min-width: 0; }
.ws-day__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.ws-day__name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ws-day.is-today .ws-day__name { color: var(--brand); }
.ws-day__count { font-size: 12px; color: var(--ink-3); }
.ws-day__badge {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 2px;
}

.ws-day__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 16px 14px;
}

/* ---------- 剧集卡片 ---------- */
.ws-item { min-width: 0; }
.ws-item__poster {
  display: block;
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-soft);
  border: 1px solid var(--line);
}
.ws-item__plink {
  display: block;
  width: 100%;
  height: 100%;
}
.ws-item__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s;
}
.ws-item:hover .ws-item__poster img { transform: scale(1.04); }
.ws-item__region {
  position: absolute;
  top: 7px;
  left: 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 6px;
  color: #fff;
  line-height: 1.4;
}
.ws-region--us { background: var(--us); }
.ws-region--kr { background: var(--kr); }
.ws-region--jp { background: var(--jp); }
.ws-region--th { background: var(--th); }

.ws-item__score {
  position: absolute;
  top: 7px;
  right: 7px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(21, 21, 27, 0.82);
  border-radius: 6px;
  padding: 2px 7px;
  line-height: 1.5;
}
.ws-item__score::before {
  content: "★ ";
  color: #ffc857;
}
.ws-item__avail {
  position: absolute;
  right: 7px;
  bottom: 7px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border-radius: 5px;
  padding: 2px 7px;
  line-height: 1.5;
  z-index: 2;
}
.ws-item__avail.is-off { background: rgba(21, 21, 27, 0.7); }

/* 简介浮层：hover 海报时从底部滑出 */
.ws-item__desc {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 10px 10px;
  background: linear-gradient(to top, rgba(21,21,27,0.96) 62%, rgba(21,21,27,0));
  color: #fff;
  font-size: 11px;
  line-height: 1.6;
  max-height: 78%;
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s, transform 0.18s;
}
.ws-item:hover .ws-item__desc,
.ws-item.is-open .ws-item__desc {
  opacity: 1;
  transform: translateY(0);
}

.ws-item__name {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
  /* 只留一行: 英文原名太长就在行尾省略, 卡片底部才对得齐 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 标题 hover 只变色, 不加下划线 */
a.ws-item__name:hover { color: var(--brand); text-decoration: none; }
/* 没有豆瓣条目的剧只显示文字, 不给可点击的假链接 */
span.ws-item__name { cursor: default; }
.ws-item__meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  min-width: 0;
}
.ws-item__genres {
  display: inline-flex;
  flex-shrink: 0;
  gap: 3px;
}
.ws-item__genre {
  font-size: 10px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 4px;
  line-height: 1.6;
  white-space: nowrap;
}
.ws-item__ep {
  font-size: 10px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-wash);
  border-radius: 4px;
  padding: 0 5px;
  line-height: 1.6;
  white-space: nowrap;
  flex-shrink: 0;
}
.ws-empty { font-size: 13px; color: var(--ink-3); padding: 10px 0; }

/* ---------- 页脚（与片单页 page.css 保持一致） ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-3);
}
.footer a:hover { color: var(--brand); }

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  .ws-day__grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px 10px; }
  .ws-item__name { font-size: 12px; }
}
@media (max-width: 480px) {
  .ws-day__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
}
