/* ============================================================
   HKTV - 節目表頁（节目预告表）
   设计系统：--red #a6192e / --red2 #c5283d / --gold #bd9a58
   ============================================================ */

/* ---------- Hero ---------- */
.sch-hero {
  background: linear-gradient(110deg, #761124, var(--red) 58%, #c23242);
  border-radius: 15px;
  padding: 28px 34px;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 150px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 13px 30px rgba(128, 21, 41, .20);
}
.sch-hero:after {
  content: "";
  position: absolute;
  width: 280px; height: 280px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  right: 12%; top: -160px;
  box-shadow: 0 0 0 24px rgba(255, 255, 255, .05), 0 0 0 50px rgba(255, 255, 255, .03);
}
.sch-hero-copy { position: relative; z-index: 1; }
.sch-hero h1 { font-size: 27px; margin: 10px 0 7px; }
.sch-hero p { font-size: 12px; color: #ffe8e9; margin: 0; line-height: 1.75; }
.sch-hero-side { position: relative; z-index: 1; font-size: 10px; color: rgba(255, 255, 255, .85); text-align: right; line-height: 1.8; }
.sch-hero-side b { display: block; color: #fff; font-size: 19px; }

/* ---------- 控制条 ---------- */
.sch-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 19px 0 13px; }
.sch-channel-select { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sch-select-label { font-size: 11px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.sch-channel-picker { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 3px; }
.sch-channel-btn {
  flex: 0 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 7px;
  padding: 9px 13px; font-size: 11px; font-weight: 750; white-space: nowrap; cursor: pointer; color: #5e6269;
}
.sch-channel-btn.active, .sch-channel-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.sch-today {
  flex: 0 0 auto; border: 1px solid var(--line); background: #fff; color: var(--red);
  font-size: 11px; font-weight: 800; padding: 9px 13px; border-radius: 7px; white-space: nowrap; cursor: pointer;
}
.sch-today:hover { border-color: var(--red); }

/* ---------- 日期条 ---------- */
.sch-datebar { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 15px; padding-bottom: 3px; }
.sch-date-btn {
  flex: 0 0 auto; min-width: 92px; text-align: center; background: #fff; border: 1px solid var(--line);
  border-radius: 9px; padding: 10px 9px; color: #62666e; font-size: 11px; cursor: pointer;
}
.sch-date-btn b { display: block; color: var(--ink); font-size: 12.5px; margin-top: 5px; }
.sch-date-btn.active { border-color: var(--red); background: #fff8f8; color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.sch-date-btn.active b { color: var(--red); }

/* ---------- 布局 ---------- */
.sch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.sch-main { min-width: 0; }
.sch-epg { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sch-epg-head { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 10px; }
.sch-epg-title { display: flex; align-items: center; gap: 11px; min-width: 0; }
.sch-logo {
  width: 41px; height: 41px; border-radius: 10px; background: #fbf0f1; display: grid; place-items: center;
  color: var(--red); font-size: 11px; font-weight: 900; flex-shrink: 0;
}
.sch-epg-title h2 { font-size: 14.5px; margin: 0; }
.sch-epg-title small { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; }
.sch-status { font-size: 9px; color: #218452; background: #eaf6ef; border-radius: 12px; padding: 5px 9px; font-weight: 800; white-space: nowrap; }

/* ---------- 节目行 ---------- */
.sch-program {
  display: grid; grid-template-columns: 65px 18px minmax(0, 1fr) 100px; gap: 11px;
  padding: 14px 17px; border-bottom: 1px solid #f0f0f0; position: relative; align-items: start;
}
.sch-program:last-child { border-bottom: 0; }
.sch-program.current { background: #fffafa; }
.sch-ptime { font-size: 11.5px; font-weight: 850; color: #747982; padding-top: 2px; }
.sch-program.current .sch-ptime { color: var(--red); }
.sch-timeline { position: relative; height: 100%; min-height: 40px; display: flex; justify-content: center; }
.sch-timeline:before { content: ""; position: absolute; top: 0; bottom: -16px; width: 1px; background: #e4e4e6; }
.sch-program:last-child .sch-timeline:before { bottom: 10px; }
.sch-timeline i {
  position: relative; z-index: 1; width: 9px; height: 9px; border-radius: 50%; background: #ccc;
  border: 2px solid #fff; box-shadow: 0 0 0 1px #ccc; margin-top: 3px;
}
.sch-program.current .sch-timeline i { background: var(--red); box-shadow: 0 0 0 3px #f5dce0; width: 10px; height: 10px; }
.sch-pname { font-size: 12.5px; font-weight: 800; line-height: 1.5; }
.sch-pdesc { font-size: 10.5px; line-height: 1.65; color: var(--muted); margin-top: 4px; }
.sch-progress { height: 4px; background: #eee; border-radius: 5px; margin-top: 9px; max-width: 420px; overflow: hidden; }
.sch-progress i { display: block; height: 100%; background: var(--red); border-radius: 5px; }
.sch-live-label { color: #218452; font-size: 9px; font-weight: 800; background: #eaf6ef; border-radius: 12px; padding: 5px 9px; text-align: center; white-space: nowrap; }
.sch-remind {
  justify-self: end; background: #fff; border: 1px solid var(--line); border-radius: 6px; color: #737780;
  font-size: 10px; padding: 6px 9px; cursor: pointer; white-space: nowrap;
}
.sch-remind:hover { color: var(--red); border-color: #d9a3aa; }
.sch-empty { padding: 34px 18px; text-align: center; color: var(--muted); font-size: 12px; }

/* ---------- 侧栏 ---------- */
.sch-side { display: flex; flex-direction: column; gap: 13px; }
.sch-sidecard { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 16px; }
.sch-sidehead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.sch-sidehead h3 { font-size: 13.5px; margin: 0; }
.sch-sidehead a { font-size: 10px; color: var(--red); font-weight: 750; }
.sch-featured { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid #f0f0f0; }
.sch-featured:first-of-type { border-top: 0; }
.sch-poster {
  width: 73px; height: 51px; flex: none; border-radius: 6px; position: relative; overflow: hidden;
  background: linear-gradient(140deg, #24374b, #8c3440 55%, #dda16d);
}
.sch-poster:after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18, 23, 33, .6), transparent); }
.sch-poster.alt { background: linear-gradient(140deg, #4b6670, #d1aa73 55%, #932d3c); }
.sch-poster span { position: absolute; z-index: 1; left: 7px; bottom: 6px; color: #fff; font-size: 8px; font-weight: 800; }
.sch-featured b { font-size: 10.5px; line-height: 1.5; display: block; }
.sch-featured small { font-size: 9.5px; color: var(--muted); display: block; margin-top: 5px; }
.sch-side-empty { font-size: 11px; color: var(--muted); padding: 12px 0 4px; }

.sch-download { background: linear-gradient(145deg, #791326, #b72137); border-radius: 11px; padding: 16px; color: #fff; position: relative; overflow: hidden; }
.sch-download h3 { font-size: 13.5px; margin: 0 0 6px; position: relative; z-index: 1; }
.sch-download p { font-size: 10px; line-height: 1.65; color: #ffe6e8; margin: 0 0 12px; position: relative; z-index: 1; }
.sch-download a { position: relative; z-index: 1; display: block; background: #fff; color: var(--red); font-size: 10px; font-weight: 850; text-align: center; border-radius: 6px; padding: 10px; }
.sch-notice { font-size: 9.5px; line-height: 1.7; color: #8a8e95; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }

/* ---------- 响应式 ---------- */
@media (max-width: 850px) {
  .sch-layout { grid-template-columns: minmax(0, 1fr) 240px; }
  .sch-program { grid-template-columns: 58px 16px minmax(0, 1fr) 83px; gap: 8px; }
}
@media (max-width: 650px) {
  .sch-hero { min-height: 140px; padding: 21px 18px; border-radius: 14px; }
  .sch-hero h1 { font-size: 23px; }
  .sch-hero p { font-size: 10.5px; max-width: 260px; }
  .sch-hero-side { display: none; }
  .sch-controls { align-items: flex-start; flex-direction: column; margin: 14px 0 11px; }
  .sch-channel-select { display: block; width: 100%; }
  .sch-select-label { display: block; margin-bottom: 7px; }
  .sch-channel-picker { padding-bottom: 2px; }
  .sch-channel-btn { padding: 8px 11px; font-size: 10px; }
  .sch-today { align-self: flex-end; padding: 7px 10px; font-size: 10px; margin-top: -2px; }
  .sch-datebar { gap: 6px; margin-bottom: 11px; }
  .sch-date-btn { min-width: 76px; padding: 9px 6px; font-size: 10px; }
  .sch-date-btn b { font-size: 11.5px; }
  .sch-layout { display: flex; flex-direction: column; }
  .sch-main, .sch-side { width: 100%; }
  .sch-epg-head { padding: 13px; }
  .sch-logo { width: 37px; height: 37px; }
  .sch-epg-title h2 { font-size: 13px; }
  .sch-program { grid-template-columns: 49px 14px minmax(0, 1fr); gap: 7px; padding: 12px 10px; }
  .sch-ptime { font-size: 10.5px; }
  .sch-pname { font-size: 11.5px; }
  .sch-pdesc { font-size: 9.5px; }
  .sch-remind { grid-column: 3; justify-self: start; margin-top: 2px; }
  .sch-live-label { grid-column: 3; justify-self: start; }
  .sch-progress { margin-top: 7px; }
  .sch-side { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 1px; }
  .sch-sidecard { padding: 14px; }
}
