/* 华人电视节目表：浅色、节目单可读性优先 */
:root {
  --bg: #f4f6fa; --card: #fff; --text: #172033; --text-2: #4a5568; --text-3: #8592a6; --line: #e3e8f0;
  --brand: #1f6feb; --brand-2: #0b57d0; --live: #e5372b; --on: #fff7d6; --shadow: 0 1px 2px rgba(16,24,40,.06);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f141c; --card: #171e29; --text: #e8edf5; --text-2: #b4bfcf; --text-3: #7d8aa0; --line: #263142; --on: #3a3212; --shadow: none; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: var(--brand); text-decoration: none; }
.wrap { max-width: 900px; margin: 0 auto; padding: 0 16px; }

.top { position: sticky; top: 0; z-index: 20; background: var(--card); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.brand { font-size: 18px; font-weight: 800; color: var(--text); }
.top-cta { background: var(--live); color: #fff; border-radius: 16px; padding: 4px 14px; font-size: 14px; font-weight: 600; }
.nav { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; height: 40px; align-items: center; font-size: 14px; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--text-2); white-space: nowrap; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a.on { color: var(--brand); border-color: var(--brand); font-weight: 600; }

main { padding-bottom: 32px; }
h1 { font-size: 22px; margin: 18px 0 6px; }
h2 { font-size: 17px; margin: 22px 0 10px; }
.lead { color: var(--text-2); font-size: 14px; margin: 0 0 14px; }
.crumbs { font-size: 13px; color: var(--text-3); margin-top: 14px; }
.crumbs i { font-style: normal; margin: 0 6px; }
.sh { display: flex; justify-content: space-between; align-items: baseline; }
.sh a { font-size: 13px; }

.cta { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--live); border-radius: 12px; padding: 14px; margin: 12px 0 18px; box-shadow: var(--shadow); }
.cta-now { margin: 0 0 6px; font-size: 13px; color: var(--live); font-weight: 600; }
.cta-now:empty { display: none; }
.cta-t { margin: 0; font-size: 16px; }
.cta-s { margin: 2px 0 12px; font-size: 13px; color: var(--text-3); }
.btn { display: inline-block; border-radius: 20px; padding: 8px 16px; font-size: 14px; font-weight: 600; margin: 0 8px 8px 0; }
.btn-main { background: var(--live); color: #fff; }
.btn-line { box-shadow: inset 0 0 0 1px var(--line); color: var(--text); }
.btn-link { font-size: 13px; color: var(--text-3); text-decoration: underline; }
.btn[hidden], .btn-link[hidden] { display: none; }

.days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 4px 0; position: sticky; top: 92px; background: var(--bg); padding: 8px 0; z-index: 5; }
.days::-webkit-scrollbar { display: none; }
.days a { white-space: nowrap; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 3px 12px; font-size: 13px; color: var(--text-2); }
.sched, .chlist, .matches, .airs, .tonight { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.sched li, .chlist li, .matches li, .airs li, .tonight li { display: flex; gap: 12px; align-items: baseline; padding: 9px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.sched li:last-child, .chlist li:last-child, .matches li:last-child, .airs li:last-child, .tonight li:last-child { border-bottom: 0; }
.sched time, .matches time, .airs time { flex: 0 0 auto; font-variant-numeric: tabular-nums; color: var(--text-2); font-weight: 600; min-width: 46px; }
.sched li.past { color: var(--text-3); }
.sched li.on { background: var(--on); }
.sched li.on::after { content: "正在播出"; margin-left: auto; font-size: 12px; color: var(--live); font-weight: 700; }
.lt { font-size: 12px; color: var(--text-3); font-weight: 400; margin-left: 4px; }
.chlist li a, .tonight li a { font-weight: 600; min-width: 120px; }
.chlist small, .matches small { color: var(--text-3); font-size: 12px; }
.np { color: var(--text-2); font-size: 13px; margin-left: auto; }
.matches li a { font-weight: 600; }
.matches small { flex-basis: 100%; padding-left: 58px; }
.live { color: #fff; background: var(--live); border-radius: 4px; font-size: 11px; padding: 0 5px; font-weight: 600; }
.tonight span { color: var(--text-2); font-size: 13px; flex: 1; min-width: 200px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 12px; font-size: 14px; color: var(--text); }
.chips small { color: var(--text-3); margin-left: 4px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.tile { background: var(--card); border-radius: 12px; padding: 14px; box-shadow: var(--shadow); color: var(--text); }
.tile b { display: block; font-size: 16px; }
.tile small { color: var(--text-3); }
.faq details { background: var(--card); border-radius: 10px; padding: 10px 14px; margin-top: 8px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; color: var(--text-2); font-size: 14px; }
.tzbar { background: #fff3cd; color: #6b4f00; font-size: 13px; padding: 6px 16px; text-align: center; }
.foot { border-top: 1px solid var(--line); padding: 16px 0 28px; font-size: 12px; color: var(--text-3); text-align: center; }
.foot p { margin: 4px 0; }
.nowbar { margin: 0 0 8px; font-size: 14px; color: var(--live); font-weight: 600; }
.nowbar:empty { display: none; }
.nav a.lang { margin-left: auto; color: var(--text-3); }
