/* ============================================================
   HKTV V2 - 前台设计系统（浅色红调）
   合并自：首頁預覽 v2 / 香港生活資訊 / 電視頻道介面 三份設計稿
   ============================================================ */

:root {
  --red: #a6192e; --red2: #c5283d; --ink: #22252a; --muted: #747982;
  --line: #e9e9e9; --paper: #f7f7f8; --white: #fff; --gold: #bd9a58;
  --hktv-header-height: 81px;
}
html { scroll-padding-top: calc(var(--hktv-header-height) + 16px); }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }

/* ---------------- 顶部红条 ---------------- */
.topline { position: fixed; top: 0; left: 0; right: 0; z-index: 10051; height: 4px; background: linear-gradient(90deg, #7b1022, var(--red2), #e8bd71); }

/* ---------------- 头部导航 ---------------- */
.header { background: #fff; border-bottom: 1px solid #eee; position: fixed; top: 4px; left: 0; right: 0; z-index: 10050; isolation: isolate; }
.site-header-spacer { height: var(--hktv-header-height); flex: none; }
.head-inner { max-width: 1200px; margin: auto; height: 76px; display: flex; align-items: center; gap: 30px; padding: 0 24px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 184px; }
.brand-mark {
  width: 42px; height: 42px; background: var(--red); border-radius: 12px;
  display: grid; place-items: center; color: #fff; font-size: calc(20px * var(--site-font-scale, 1)); font-weight: 900;
  box-shadow: 0 5px 14px rgba(166, 25, 46, .19);
}
.brand-name { font-size: calc(20px * var(--site-font-scale, 1)); font-weight: 850; letter-spacing: .04em; color: var(--ink); }
.brand-name small { display: block; font-weight: 500; color: #888; font-size: calc(9px * var(--site-font-scale, 1)); letter-spacing: .18em; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 24px; font-size: calc(13px * var(--site-font-scale, 1)); font-weight: 650; flex: 1; min-width: 0; }
.nav a { height: 76px; display: flex; align-items: center; position: relative; white-space: nowrap; color: #555; }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--red); font-weight: 750; }
.nav a.active:after { content: ""; height: 3px; position: absolute; bottom: 0; left: 0; right: 0; background: var(--red); border-radius: 3px 3px 0 0; }

/* 手機固定導航：漢堡選單 */
.menu-btn {
  display: none; width: 39px; height: 39px; flex: none; place-items: center;
  border: 1px solid var(--line); background: #fff; border-radius: 9px;
  font-size: calc(18px * var(--site-font-scale, 1)); color: var(--red); cursor: pointer; padding: 0; line-height: 1;
}
.menu-btn:hover { background: var(--soft, #fbf0f2); }
.mobile-menu {
  display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 10052;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 26px rgba(30, 20, 22, .08); padding: 7px 15px 13px;
  max-height: calc(100vh - 64px); overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu-nav { display: grid; gap: 1px; }
.mobile-menu-nav a {
  display: block; padding: 13px 12px; font-size: calc(15px * var(--site-font-scale, 1)); font-weight: 650; color: #44474d;
  border-bottom: 1px solid #f3f3f4;
}
.mobile-menu-nav a:last-child { border-bottom: 0; }
.mobile-menu-nav a.active { color: var(--red); font-weight: 800; }
.mobile-menu-nav a:hover { background: #faf7f8; }
.head-actions { display: flex; align-items: center; gap: 12px; }
.fav-btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
  font-size: calc(12.5px * var(--site-font-scale, 1)); color: var(--ink); background: #fff; white-space: nowrap;
}
.fav-btn i { color: var(--gold); }
.fav-btn:hover { border-color: #d8a0a8; color: var(--red); }
.fav-btn b { color: var(--gold); }

/* ---------------- Hero ---------------- */
.hero-wrap { background: #fff; padding: 26px 24px 24px; }
.hero {
  max-width: 1152px; margin: auto; min-height: 356px; border-radius: 18px; overflow: hidden;
  position: relative;
  background: radial-gradient(ellipse at 78% 45%, rgba(216, 72, 80, .38), transparent 35%),
              linear-gradient(112deg, #701020 0%, #a6192e 48%, #c53343 100%);
  color: #fff; display: flex; align-items: center; padding: 46px 54px;
  box-shadow: 0 15px 38px rgba(130, 23, 42, .15);
}
.hero:before, .hero:after { content: ""; position: absolute; border: 1px solid rgba(255, 255, 255, .1); border-radius: 50%; width: 460px; height: 460px; right: 10%; top: -220px; pointer-events: none; }
.hero:after { width: 570px; height: 570px; right: -3%; top: -280px; }
.hero-copy { position: relative; z-index: 2; max-width: 570px; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; border: 1px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .12); padding: 7px 12px; border-radius: 30px; font-size: calc(11px * var(--site-font-scale, 1)); letter-spacing: .11em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #ffcb72; box-shadow: 0 0 0 4px rgba(255, 203, 114, .3); }
.hero h1 { font-size: calc(42px * var(--site-font-scale, 1)); line-height: 1.22; margin: 19px 0 12px; letter-spacing: .01em; font-weight: 850; }
.hero p { color: #ffe5e7; font-size: calc(15px * var(--site-font-scale, 1)); line-height: 1.9; margin: 0; max-width: 490px; }
.hero-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.btn-primary, .btn-ghost { border-radius: 7px; padding: 12px 18px; font-size: calc(13px * var(--site-font-scale, 1)); font-weight: 750; display: inline-flex; gap: 9px; align-items: center; text-decoration: none; cursor: pointer; }
.btn-primary { background: #fff; color: var(--red); border: 1px solid transparent; }
.btn-primary:hover { filter: brightness(.97); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .76); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.download-note { font-size: calc(11px * var(--site-font-scale, 1)); color: rgba(255, 255, 255, .74); margin-top: 13px; }

/* 手机 + 电视设备示意 */
.device-stage { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); width: 400px; height: 300px; z-index: 1; }
.tv-device { position: absolute; width: 300px; height: 195px; right: 2px; top: 16px; background: #1b1d21; border: 8px solid #292c32; border-radius: 12px; box-shadow: 0 23px 45px rgba(66, 11, 23, .38); transform: rotate(2deg); }
.tv-screen { height: 100%; background: #171a20; padding: 11px; position: relative; overflow: hidden; }
.tv-scene { height: 100%; border-radius: 5px; background: radial-gradient(ellipse at 75% 35%, #d77c4a, #821c31 34%, #14233a 75%); display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; color: #fff; }
.tv-scene span { position: absolute; top: 12px; left: 13px; font-size: calc(11px * var(--site-font-scale, 1)); font-weight: 900; letter-spacing: .08em; }
.tv-scene b { font-size: calc(13px * var(--site-font-scale, 1)); }
.tv-channel-row { position: absolute; bottom: 10px; right: 12px; display: flex; gap: 4px; }
.tv-channel-row i { width: 16px; height: 10px; border-radius: 2px; background: rgba(255, 255, 255, .48); }
.tv-stand { position: absolute; width: 76px; height: 19px; background: linear-gradient(#34373d, #1e2024); bottom: -26px; left: calc(50% - 38px); clip-path: polygon(25% 0, 75% 0, 100% 100%, 0 100%); }
.phone-device { position: absolute; width: 132px; height: 252px; left: 14px; bottom: 6px; background: #16181c; border: 6px solid #2d3036; border-radius: 23px; box-shadow: 0 20px 35px rgba(66, 11, 23, .44); transform: rotate(-7deg); padding: 5px; }
.phone-screen { height: 100%; border-radius: 16px; background: #fff; overflow: hidden; position: relative; padding: 8px; color: #292b30; }
.phone-top { display: flex; justify-content: space-between; font-size: calc(7px * var(--site-font-scale, 1)); font-weight: 800; }
.phone-brand { font-size: calc(12px * var(--site-font-scale, 1)); font-weight: 900; color: var(--red); margin: 8px 1px; }
.phone-brand small { font-size: calc(6px * var(--site-font-scale, 1)); background: var(--red); color: #fff; padding: 2px 4px; border-radius: 4px; }
.phone-poster { height: 111px; border-radius: 8px; background: linear-gradient(140deg, #172035, #96243a 58%, #d7a256); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 9px; }
.phone-poster span { font-size: calc(8px * var(--site-font-scale, 1)); }
.phone-poster b { font-size: calc(12px * var(--site-font-scale, 1)); margin-top: 3px; }
.phone-lines { padding: 10px 2px; }
.phone-lines i { display: block; height: 5px; border-radius: 5px; background: #ececee; margin: 6px 0; }
.phone-lines i:first-child { width: 85%; }
.phone-lines i:nth-child(2) { width: 62%; }
.phone-nav { position: absolute; bottom: 5px; left: 12px; right: 12px; display: flex; justify-content: space-between; color: var(--red); font-size: calc(12px * var(--site-font-scale, 1)); }
.device-caption { position: absolute; right: 5px; bottom: -3px; color: rgba(255, 255, 255, .73); font-size: calc(10px * var(--site-font-scale, 1)); letter-spacing: .12em; }

/* ---------------- 主体容器 ---------------- */
.wrap { max-width: 1200px; margin: auto; padding: 26px 24px 55px; }
.container { max-width: 1152px; margin: auto; padding: 0 24px; }

/* 快捷入口 */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-top: 21px; }
.quick a { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 17px; display: flex; align-items: center; gap: 13px; transition: .2s; color: var(--ink); }
.quick a:hover { border-color: #d8a0a8; transform: translateY(-2px); box-shadow: 0 7px 20px rgba(166, 25, 46, .05); }
.quick-icon { width: 42px; height: 42px; display: grid; place-items: center; background: #fbf0f1; border-radius: 10px; color: var(--red); font-size: calc(20px * var(--site-font-scale, 1)); flex-shrink: 0; }
.quick b { font-size: calc(13px * var(--site-font-scale, 1)); display: block; }
.quick small { font-size: calc(11px * var(--site-font-scale, 1)); color: var(--muted); display: block; margin-top: 4px; }

/* 栏目 */
.section { padding-top: 34px; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 15px; gap: 12px; }
.section-title { font-size: calc(20px * var(--site-font-scale, 1)); letter-spacing: .01em; margin: 0; font-weight: 800; }
.section-sub { font-size: calc(12px * var(--site-font-scale, 1)); color: var(--muted); margin: 6px 0 0; }
.more { font-size: calc(12px * var(--site-font-scale, 1)); font-weight: 700; color: var(--red); white-space: nowrap; }

/* 频道卡片 */
.channels { display: grid; grid-template-columns: repeat(6, 1fr); gap: 13px; }
.channel { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 14px; min-height: 121px; position: relative; transition: .2s; display: block; color: var(--ink); }
.channel:hover { border-color: #d5a1a8; box-shadow: 0 8px 24px rgba(48, 16, 21, .07); transform: translateY(-2px); }
.channel-logo { width: 44px; height: 44px; border-radius: 10px; background: #f9f0f1; color: var(--red); display: grid; place-items: center; font-size: calc(13px * var(--site-font-scale, 1)); font-weight: 900; letter-spacing: -.05em; margin-bottom: 10px; overflow: hidden; }
.channel-logo img { width: 100%; height: 100%; object-fit: cover; }
.channel strong { display: block; font-size: calc(13px * var(--site-font-scale, 1)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel small { display: block; font-size: calc(10px * var(--site-font-scale, 1)); color: var(--muted); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.onair { position: absolute; right: 11px; top: 12px; font-size: calc(9px * var(--site-font-scale, 1)); color: #21845b; background: #eaf6ef; border-radius: 12px; padding: 4px 7px; font-weight: 700; }

/* 节目表 */
.program-panel { background: #fff; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.program-row { display: grid; grid-template-columns: 74px 112px 1fr 110px; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid #f0f0f0; }
.program-row:last-child { border-bottom: 0; }
.time { font-size: calc(13px * var(--site-font-scale, 1)); font-weight: 800; color: var(--red); }
.program-tag { font-size: calc(10px * var(--site-font-scale, 1)); color: #777; background: #f3f3f4; border-radius: 4px; padding: 5px 8px; width: max-content; }
.program-name { font-size: calc(13px * var(--site-font-scale, 1)); font-weight: 700; }
.program-desc { font-size: calc(11px * var(--site-font-scale, 1)); color: var(--muted); margin-top: 4px; }
.progress { height: 4px; background: #eee; border-radius: 4px; margin-top: 8px; max-width: 410px; }
.progress i { height: 100%; display: block; width: 63%; background: var(--red); border-radius: 4px; }
.program-state { text-align: right; font-size: calc(10px * var(--site-font-scale, 1)); color: #888; }
.program-state em { font-style: normal; color: #21845b; font-weight: 700; }

/* 下载选项 */
.download-options { grid-template-columns: repeat(2, 1fr); }
.download-options a { position: relative; }
.option-arrow { margin-left: auto; color: var(--red); font-size: calc(21px * var(--site-font-scale, 1)); font-weight: 800; }

/* ---------------- 分类频道列表页 ---------------- */
.crumb { font-size: calc(11px * var(--site-font-scale, 1)); color: #858990; margin: 1px 0 17px; }
.crumb a:hover { color: var(--red); }
.crumb b { color: var(--red); font-weight: 700; }
.breadcrumb { font-size: calc(11px * var(--site-font-scale, 1)); color: #858990; margin-bottom: 14px; }
.breadcrumb b { color: var(--red); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.cat-row {
  background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 13px 15px;
  display: flex; align-items: center; gap: 12px; transition: .2s; position: relative;
}
.cat-row:hover { border-color: #d5a1a8; box-shadow: 0 8px 24px rgba(166, 25, 46, .06); transform: translateY(-2px); }
.cat-row .ch-logo { width: 40px; height: 40px; border-radius: 9px; background: #faf1f2; color: var(--red); display: grid; place-items: center; font-size: calc(11px * var(--site-font-scale, 1)); font-weight: 900; flex-shrink: 0; overflow: hidden; }
.cat-row .ch-logo img { width: 100%; height: 100%; object-fit: cover; }
.cat-row .ch-body { min-width: 0; flex: 1; }
.cat-row .ch-body b { display: block; font-size: calc(12.5px * var(--site-font-scale, 1)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-row .ch-body small { display: block; font-size: calc(9.5px * var(--site-font-scale, 1)); color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-row .ch-go { color: var(--muted); font-size: calc(15px * var(--site-font-scale, 1)); flex-shrink: 0; }
.cat-row:hover .ch-go { color: var(--red); }
.cat-row .row-fav { background: transparent; border: 0; color: #c9c9c9; font-size: calc(15px * var(--site-font-scale, 1)); cursor: pointer; padding: 6px 4px; flex-shrink: 0; }
.cat-row .row-fav.fav-on { color: var(--gold); }

/* ---------------- 频道播放页 ---------------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 21px; align-items: start; }
.maincol { min-width: 0; }
.player-shell { background: #17191e; border-radius: 14px; overflow: hidden; box-shadow: 0 12px 32px rgba(30, 30, 36, .14); position: relative; }
.player { aspect-ratio: 16/9; position: relative; overflow: hidden; background: #0c0d10; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.player-loading { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; color: #fff; font-size: calc(12px * var(--site-font-scale, 1)); background: rgba(12, 13, 16, .55); z-index: 3; }
.player-loading .spin { width: 26px; height: 26px; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; border-radius: 50%; animation: hktvspin .8s linear infinite; }
@keyframes hktvspin { to { transform: rotate(360deg); } }
.live-label { position: absolute; left: 18px; top: 17px; background: #d51e37; color: #fff; font-size: calc(10px * var(--site-font-scale, 1)); font-weight: 800; letter-spacing: .09em; padding: 6px 9px; border-radius: 4px; z-index: 4; }
.quality { position: absolute; right: 16px; top: 17px; background: rgba(21, 23, 28, .66); border: 1px solid rgba(255, 255, 255, .25); color: #fff; padding: 6px 8px; border-radius: 4px; font-size: calc(10px * var(--site-font-scale, 1)); z-index: 4; }
.player-bottom { position: absolute; z-index: 4; bottom: 0; left: 0; right: 0; padding: 15px 18px; display: flex; justify-content: space-between; align-items: end; color: #fff; pointer-events: none; }
.onscreen-title { font-size: calc(18px * var(--site-font-scale, 1)); font-weight: 800; text-shadow: 0 2px 8px #000; }
.onscreen-sub { font-size: calc(11px * var(--site-font-scale, 1)); color: rgba(255, 255, 255, .78); margin-top: 5px; }
.player-controls { display: flex; gap: 14px; font-size: calc(17px * var(--site-font-scale, 1)); align-items: center; pointer-events: auto; }
.player-controls span { cursor: pointer; }

.channel-info { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-top: 15px; padding: 18px 20px; display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; }
.channel-id { display: flex; align-items: center; gap: 13px; min-width: 0; }
.ch-logo-lg { width: 48px; height: 48px; background: #fbf0f1; color: var(--red); border-radius: 12px; display: grid; place-items: center; font-weight: 900; font-size: calc(13px * var(--site-font-scale, 1)); flex-shrink: 0; overflow: hidden; }
.ch-logo-lg img { width: 100%; height: 100%; object-fit: cover; }
.channel-info h1 { font-size: calc(19px * var(--site-font-scale, 1)); margin: 0 0 5px; }
.channel-meta { font-size: calc(11px * var(--site-font-scale, 1)); color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.action { border: 1px solid var(--line); border-radius: 7px; padding: 10px 13px; font-size: calc(11px * var(--site-font-scale, 1)); font-weight: 700; background: #fff; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; color: var(--ink); }
.action:hover { border-color: #d8a0a8; }
.action.red { color: #fff; background: var(--red); border-color: var(--red); }
.action.red:hover { background: #8e1527; }
.action.on { color: var(--gold); border-color: #e6cfa4; }
.action.on i { color: var(--gold); }

/* 播放页热门频道：用户可手动横向滑动，不自动滚动 */
.play-hot-section { margin: 14px 0 18px; padding: 12px 13px 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.play-hot-head { margin: 0 0 10px; }
.play-hot-head a { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); }
.play-hot-head h2 { margin: 0; font-size: calc(14px * var(--site-font-scale,1)); font-weight: 800; }
.play-hot-head a span { color: var(--red); font-size: 20px; line-height: 1; }
.play-hot-track { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 1px 0 8px; scrollbar-width: thin; scrollbar-color: #aaa #eee; }
.play-hot-card-wrap { position: relative; flex: 0 0 146px; scroll-snap-align: start; }
.play-hot-card { min-height: 52px; display: flex; align-items: center; justify-content: center; padding: 8px 28px 8px 10px; border: 1px solid #eadfe1; border-radius: 8px; background: #fff; color: var(--red); font-size: calc(12px * var(--site-font-scale,1)); text-align: center; }
.play-hot-card:hover { border-color: #d4a3aa; background: #fdf8f9; }
.play-hot-card span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.play-hot-fav { position: absolute; top: 50%; right: 7px; transform: translateY(-50%); padding: 5px; border: 0; background: transparent; color: #bd9a58; font-size: 14px; cursor: pointer; }
.play-hot-fav.on { color: #bd9a58; }
.play-hot-scrollbar { height: 4px; border-radius: 9px; background: #eee; overflow: hidden; }
.play-hot-scrollbar span { display: block; width: 24%; height: 100%; border-radius: inherit; background: #999; }

/* 线路切换 */
.line-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; width: 100%; }
.line-chips button {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 6px 13px; font-size: calc(11px * var(--site-font-scale, 1)); font-weight: 700; cursor: pointer;
}
.line-chips button.on { background: var(--red); color: #fff; border-color: var(--red); }

/* 节目表（频道页） */
.schedule-card, .side-card { background: #fff; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.schedule-head { padding: 16px 18px 13px; display: flex; justify-content: space-between; align-items: center; }
.schedule-head h2, .side-card h2 { font-size: calc(15px * var(--site-font-scale, 1)); margin: 0; font-weight: 800; }
.date { font-size: calc(10px * var(--site-font-scale, 1)); color: #858990; }
.schedule-row { display: grid; grid-template-columns: 55px 1fr 66px; gap: 10px; padding: 14px 17px; border-top: 1px solid #f0f0f1; align-items: center; }
.schedule-row.current { background: #fff9f9; }
.schedule-row .time { font-size: calc(12px * var(--site-font-scale, 1)); }
.show-name { font-size: calc(12px * var(--site-font-scale, 1)); font-weight: 750; }
.show-desc { font-size: calc(10px * var(--site-font-scale, 1)); color: var(--muted); margin-top: 4px; }
.now { font-size: calc(9px * var(--site-font-scale, 1)); color: #18804f; background: #e9f6ee; border-radius: 12px; padding: 5px 7px; text-align: center; font-weight: 800; }
.upcoming { text-align: right; font-size: calc(9px * var(--site-font-scale, 1)); color: #9a9da3; }

/* 侧栏 */
.sidecol { display: flex; flex-direction: column; gap: 14px; }
.side-card { padding: 17px; }
.side-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }
.all { font-size: calc(10px * var(--site-font-scale, 1)); color: var(--red); font-weight: 700; }
.side-channel { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-top: 1px solid #f1f1f1; color: var(--ink); }
.side-channel:first-of-type { border-top: 0; }
.mini-logo { width: 39px; height: 39px; background: #faf1f2; color: var(--red); border-radius: 9px; display: grid; place-items: center; font-size: calc(10px * var(--site-font-scale, 1)); font-weight: 900; flex-shrink: 0; overflow: hidden; }
.mini-logo img { width: 100%; height: 100%; object-fit: cover; }
.side-channel b { display: block; font-size: calc(11px * var(--site-font-scale, 1)); }
.side-channel small { display: block; font-size: calc(9px * var(--site-font-scale, 1)); color: var(--muted); margin-top: 4px; }
.watching { margin-left: auto; font-size: calc(9px * var(--site-font-scale, 1)); color: #228452; font-weight: 800; }
.download-card { background: linear-gradient(145deg, #791326, #b72137); color: #fff; border-radius: 2px; padding: 17px; position: relative; overflow: hidden; }
.download-card:after { content: ""; position: absolute; width: 130px; height: 130px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; right: -35px; top: -53px; box-shadow: 0 0 0 17px rgba(255, 255, 255, .04), 0 0 0 34px rgba(255, 255, 255, .03); }
.download-card h3 { font-size: calc(15px * var(--site-font-scale, 1)); margin: 0 0 7px; position: relative; z-index: 1; }
.download-card p { font-size: calc(10px * var(--site-font-scale, 1)); line-height: 1.7; color: #ffe7e9; margin: 0 0 14px; position: relative; z-index: 1; }
.download-links { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; position: relative; z-index: 1; }
.download-links a { background: #fff; color: var(--red); border-radius: 6px; padding: 9px 7px; text-align: center; font-size: calc(10px * var(--site-font-scale, 1)); font-weight: 800; }
.tip { font-size: calc(10px * var(--site-font-scale, 1)); line-height: 1.7; color: #747982; }
.schedule-card { margin-top: 15px; }

/* ---------------- 香港生活資訊頁 ---------------- */
.info-hero .hero { min-height: 176px; padding: 29px 34px; justify-content: space-between; }
.info-hero .hero h1 { font-size: calc(28px * var(--site-font-scale, 1)); margin: 9px 0 7px; }
.info-hero .hero p { font-size: calc(12px * var(--site-font-scale, 1)); }
.hero-stamp { position: relative; z-index: 1; text-align: right; color: rgba(255, 255, 255, .79); font-size: calc(10px * var(--site-font-scale, 1)); line-height: 1.9; letter-spacing: .05em; }
.tabs { display: flex; gap: 8px; overflow: auto; margin: 18px 0 17px; padding-bottom: 3px; }
.tab { flex: 0 0 auto; border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 9px 15px; font-size: calc(11px * var(--site-font-scale, 1)); font-weight: 750; color: #5b5f66; cursor: pointer; }
.tab.active, .tab:hover { background: var(--red); color: #fff; border-color: var(--red); }
.page { display: none; padding: 0; }
.page.active { display: block; padding: 0; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 295px; gap: 18px; align-items: start; }
.main { min-width: 0; }
.card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 18px; margin-bottom: 14px; cursor: default; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 15px; }
.card-head > div { flex: 1; min-width: 0; }
.card-head h2 { font-size: calc(16px * var(--site-font-scale, 1)); margin: 0; }
.sub { font-size: calc(10px * var(--site-font-scale, 1)); color: var(--muted); margin-top: 5px; line-height: 1.7; }
.source { font-size: calc(9px * var(--site-font-scale, 1)); color: #1d8053; background: #eaf6ef; border-radius: 12px; padding: 5px 8px; white-space: nowrap; font-weight: 750; }
.weather-now { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 10px; background: linear-gradient(120deg, #fff8f2, #fff); border: 1px solid #f1e7df; border-radius: 10px; padding: 17px; }
.weather-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sun { font-size: calc(34px * var(--site-font-scale, 1)); flex-shrink: 0; filter: drop-shadow(0 4px 5px rgba(225, 162, 71, .25)); }
.temp { font-size: calc(32px * var(--site-font-scale, 1)); font-weight: 800; letter-spacing: -.04em; white-space: nowrap; }
.temp small { font-size: calc(14px * var(--site-font-scale, 1)); font-weight: 600; }
.weather-text { font-size: calc(12px * var(--site-font-scale, 1)); font-weight: 750; white-space: nowrap; }
.weather-place { font-size: calc(10px * var(--site-font-scale, 1)); color: var(--muted); margin-top: 5px; white-space: nowrap; }
.weather-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.fact { border-left: 2px solid #e9c9a1; padding-left: 9px; min-width: 0; }
.fact small { display: block; font-size: calc(9px * var(--site-font-scale, 1)); color: var(--muted); white-space: nowrap; }
.fact b { font-size: calc(12px * var(--site-font-scale, 1)); display: block; margin-top: 4px; white-space: nowrap; }
.forecast { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12px; border-top: 1px solid #f0f0f0; padding-top: 12px; }
.day { text-align: center; border-right: 1px solid #f0f0f0; }
.day:last-child { border: 0; }
.day small { font-size: calc(9px * var(--site-font-scale, 1)); color: var(--muted); }
.day b { display: block; font-size: calc(11px * var(--site-font-scale, 1)); margin: 7px 0; }
.day i { font-style: normal; font-size: calc(18px * var(--site-font-scale, 1)); }
.day span { display: block; font-size: calc(9px * var(--site-font-scale, 1)); color: #858990; margin-top: 5px; }
.mini-note { font-size: calc(9px * var(--site-font-scale, 1)); color: #999; margin-top: 12px; line-height: 1.6; }
.bus-top { display: flex; gap: 10px; margin-bottom: 14px; }
.input { flex: 1; border: 1px solid var(--line); border-radius: 7px; padding: 11px 12px; font-size: calc(11px * var(--site-font-scale, 1)); color: #666; background: #fff; }
.redbtn { background: var(--red); color: #fff; border: 0; border-radius: 7px; padding: 0 15px; font-size: calc(11px * var(--site-font-scale, 1)); font-weight: 750; cursor: pointer; }
.redbtn:hover { background: #8e1527; }
.stop-label { font-size: calc(10px * var(--site-font-scale, 1)); color: var(--muted); margin-bottom: 8px; }
.bus-row { display: grid; grid-template-columns: 51px 1fr auto; align-items: center; gap: 11px; border-top: 1px solid #f0f0f0; padding: 12px 0; }
.route { font-size: calc(14px * var(--site-font-scale, 1)); font-weight: 850; color: var(--red); }
.bus-dest b { display: block; font-size: calc(11px * var(--site-font-scale, 1)); }
.bus-dest small { display: block; color: var(--muted); font-size: calc(9px * var(--site-font-scale, 1)); margin-top: 4px; }
.eta { font-size: calc(11px * var(--site-font-scale, 1)); font-weight: 800; color: #218452; background: #eaf6ef; padding: 7px 9px; border-radius: 6px; }
.exchange-table { width: 100%; border-collapse: collapse; }
.exchange-table th { text-align: left; color: #878b91; font-size: calc(9px * var(--site-font-scale, 1)); font-weight: 650; padding: 9px 8px; border-bottom: 1px solid var(--line); }
.exchange-table td { padding: 12px 8px; border-bottom: 1px solid #f2f2f2; font-size: calc(11px * var(--site-font-scale, 1)); }
.exchange-table tr:last-child td { border: 0; }
.currency { font-weight: 800; }
.curr-code { font-size: calc(9px * var(--site-font-scale, 1)); color: var(--muted); margin-left: 5px; }
.rate { font-weight: 800; }
.change { color: #20814e; font-size: calc(10px * var(--site-font-scale, 1)); }
.sidebar { display: flex; flex-direction: column; gap: 13px; }
.sidecard { background: #fff; border: 1px solid var(--line); border-radius: 1px; padding: 16px; }
.sidehead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; }
.sidehead h3 { font-size: calc(13px * var(--site-font-scale, 1)); margin: 0; }
.sidehead a { font-size: calc(9px * var(--site-font-scale, 1)); color: var(--red); font-weight: 700; }
.brief { padding: 10px 0; border-top: 1px solid #f0f0f0; }
.brief:first-of-type { border-top: 0; }
.brief .tag { font-size: calc(8px * var(--site-font-scale, 1)); color: var(--red); background: #fbf0f1; border-radius: 3px; padding: 4px 6px; font-weight: 800; }
.brief b { display: block; font-size: calc(10px * var(--site-font-scale, 1)); line-height: 1.6; margin-top: 7px; }
.brief small { display: block; font-size: calc(9px * var(--site-font-scale, 1)); color: var(--muted); margin-top: 5px; }
.disclaimer { background: #f8f8f8; border-radius: 7px; padding: 10px; font-size: calc(9px * var(--site-font-scale, 1)); line-height: 1.7; color: #7d8188; margin-top: 12px; }
.source-link { color: var(--red); font-weight: 700; }
.data-card { background: #fff; border: 1px solid var(--line); border-radius: 0px; padding: 14px; margin-bottom: 10px; display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.data-card b { display: block; font-size: calc(11px * var(--site-font-scale, 1)); }
.data-card small { display: block; font-size: calc(9px * var(--site-font-scale, 1)); color: var(--muted); margin-top: 5px; line-height: 1.6; }
.data-pill { font-size: calc(9px * var(--site-font-scale, 1)); color: #218452; background: #eaf6ef; padding: 5px 8px; border-radius: 12px; white-space: nowrap; }
.section-title-lg { font-size: calc(17px * var(--site-font-scale, 1)); margin: 0 0 5px; font-weight: 800; }
.section-sub-lg { font-size: calc(10px * var(--site-font-scale, 1)); color: var(--muted); margin: 0 0 13px; }

/* ---------------- 下载 / 帮助 / 关于 页面 ---------------- */
.step-card { background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 20px; margin-bottom: 14px; }
.step-card h2 { font-size: calc(16px * var(--site-font-scale, 1)); margin: 0 0 13px; display: flex; align-items: center; gap: 9px; }
.step-card h2 .step-no { width: 24px; height: 24px; background: var(--red); color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: calc(12px * var(--site-font-scale, 1)); flex-shrink: 0; }
.step-list { list-style: none; margin: 0; padding: 0; }
.step-list li { display: flex; gap: 11px; padding: 10px 0; border-top: 1px solid #f2f2f2; font-size: calc(12px * var(--site-font-scale, 1)); line-height: 1.7; }
.step-list li:first-child { border-top: 0; }
.step-list li i { color: var(--red); font-style: normal; font-weight: 900; flex-shrink: 0; }
.help-card { background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 18px 20px; margin-bottom: 13px; }
.help-card h3 { font-size: calc(14px * var(--site-font-scale, 1)); margin: 0 0 9px; display: flex; gap: 9px; align-items: center; }
.help-card h3 i { font-style: normal; color: var(--red); }
.help-card p { font-size: calc(12px * var(--site-font-scale, 1)); color: #555; line-height: 1.8; margin: 0; }
.about-card { background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 22px; margin-bottom: 14px; }
.about-card h2 { font-size: calc(16px * var(--site-font-scale, 1)); margin: 0 0 11px; }
.about-card p { font-size: calc(12.5px * var(--site-font-scale, 1)); line-height: 2; color: #4d5157; margin: 0 0 9px; }
.contact-row { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-top: 1px solid #f0f0f0; font-size: calc(12.5px * var(--site-font-scale, 1)); }
.contact-row:first-of-type { border-top: 0; }
.contact-row i { color: var(--red); font-style: normal; font-weight: 900; }

/* ---------------- 页脚 ---------------- */
.footer { margin-top: 46px; background: #24262b; color: #d7d7d9; padding: 25px 24px; }
.footer-inner { max-width: 1200px; margin: auto; display: flex; align-items: center; justify-content: space-between; font-size: calc(11px * var(--site-font-scale, 1)); flex-wrap: wrap; gap: 14px; }
.footer b { color: #fff; letter-spacing: .08em; }
.footer-links { display: flex; gap: 20px; color: #aaa; }
.footer-links a:hover { color: #fff; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1160px) {
  .head-inner { gap: 16px; padding: 0 16px; }
  .nav { gap: 15px; font-size: calc(12.5px * var(--site-font-scale, 1)); }
}
@media (max-width: 900px) {
  .head-inner { gap: 16px; }
  .nav { gap: 13px; font-size: calc(12px * var(--site-font-scale, 1)); }
  .hero { padding: 38px; min-height: 330px; }
  .hero h1 { font-size: calc(32px * var(--site-font-scale, 1)); }
  .device-stage { right: -24px; transform: translate(16%, -50%) scale(.78); opacity: .72; }
  .channels { grid-template-columns: repeat(3, 1fr); }
  .quick { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: minmax(0, 1fr) 250px; }
  .weather-now { grid-template-columns: 1fr; }
  .weather-facts { grid-template-columns: repeat(4, 1fr); }
  .layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 14px; }
  .channel-info { align-items: flex-start; }
}
@media (max-width: 650px) {
  .head-inner { height: 61px; padding: 0 15px; justify-content: space-between; gap: 10px; }
  .brand { min-width: 0; }
  .brand-mark { width: 36px; height: 36px; border-radius: 10px; font-size: calc(17px * var(--site-font-scale, 1)); }
  .brand-name { font-size: calc(17px * var(--site-font-scale, 1)); }
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .mobile-menu { display: block; }
  .fav-btn { padding: 6px 10px; font-size: calc(11px * var(--site-font-scale, 1)); }
  .hero-wrap { padding: 15px 14px 17px; }
  .hero { min-height: 340px; padding: 28px 23px; align-items: flex-start; border-radius: 14px; }
  .hero h1 { font-size: calc(31px * var(--site-font-scale, 1)); margin-top: 17px; }
  .hero p { font-size: calc(13px * var(--site-font-scale, 1)); max-width: 330px; }
  .device-stage { right: -116px; top: 73%; transform: translateY(-50%) scale(.72); opacity: .42; }
  .wrap { padding: 18px 13px 35px; }
  .container { padding: 0 14px; }
  .quick { gap: 9px; margin-top: 13px; }
  .quick a { padding: 12px 10px; gap: 9px; }
  .quick-icon { width: 36px; height: 36px; font-size: calc(17px * var(--site-font-scale, 1)); }
  .quick b { font-size: calc(12px * var(--site-font-scale, 1)); }
  .quick small { font-size: calc(10px * var(--site-font-scale, 1)); }
  .section { padding-top: 27px; }
  .section-title { font-size: calc(18px * var(--site-font-scale, 1)); }
  .channels { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .channel { min-height: 112px; padding: 12px; }
  .channel-logo { width: 39px; height: 39px; margin-bottom: 8px; }
  .program-row { grid-template-columns: 53px 1fr 55px; gap: 9px; padding: 13px 12px; }
  .program-tag { display: none; }
  .program-name { font-size: calc(12px * var(--site-font-scale, 1)); }
  .program-desc { font-size: calc(10px * var(--site-font-scale, 1)); }
  .program-state { font-size: calc(9px * var(--site-font-scale, 1)); }
  .download-options { grid-template-columns: 1fr; }
  .grid { display: flex; flex-direction: column; }
  .main, .sidebar { width: 100%; }
  .card { padding: 14px; margin-bottom: 11px; }
  .weather-now { padding: 12px; }
  .weather-facts { grid-template-columns: 1fr 1fr; }
  .forecast { grid-template-columns: repeat(4, 1fr); }
  .layout { display: flex; flex-direction: column; gap: 13px; }
  .maincol { width: 100%; }
  .player-shell { border-radius: 10px; }
  .player { aspect-ratio: 16/10; }
  .live-label { left: 10px; top: 10px; font-size: calc(9px * var(--site-font-scale, 1)); }
  .quality { right: 9px; top: 10px; }
  .player-bottom { padding: 10px 11px; }
  .onscreen-title { font-size: calc(14px * var(--site-font-scale, 1)); }
  .onscreen-sub { font-size: calc(9px * var(--site-font-scale, 1)); }
  .player-controls { gap: 11px; font-size: calc(15px * var(--site-font-scale, 1)); }
  .channel-info { padding: 13px; border-radius: 10px; margin-top: 10px; display: block; }
  .channel-id { gap: 10px; }
  .ch-logo-lg { width: 42px; height: 42px; }
  .channel-info h1 { font-size: calc(16px * var(--site-font-scale, 1)); }
  .channel-meta { font-size: calc(10px * var(--site-font-scale, 1)); }
  .actions { margin-top: 13px; }
  .action { flex: 1; padding: 10px 7px; font-size: calc(10px * var(--site-font-scale, 1)); justify-content: center; }
  .schedule-row { grid-template-columns: 46px 1fr 54px; padding: 12px 13px; gap: 7px; }
  .sidecol { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .side-card { padding: 13px; margin: 0; grid-column: 1/-1; }
  .download-card { padding: 14px; grid-column: 1/-1; }
  .footer { padding: 22px 16px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-links { gap: 14px; }
  .info-hero .hero { padding: 23px 19px; min-height: 155px; }
  .info-hero .hero h1 { font-size: calc(24px * var(--site-font-scale, 1)); }
  .info-hero .hero p { font-size: calc(10px * var(--site-font-scale, 1)); max-width: 290px; }
  .hero-stamp { display: none; }
  .tabs { margin: 14px 0; gap: 6px; }
  .tab { padding: 8px 12px; font-size: calc(10px * var(--site-font-scale, 1)); }
}

/* ============================================================
   品牌改版 + 全站字号调大（2026-10-05）
   HKTV → HKTV.MY：去掉红方块 TV 标志，.MY 用品牌红突出，视觉更轻盈
   ============================================================ */
.brand-name .brand-dot {
  color: var(--red); font-weight: 900; letter-spacing: 0; margin-left: 1px;
}

/* 桌面 / 平板：正文与标题整体调大 1~2px */
@media (min-width: 651px) {
  .brand-name { font-size: calc(21px * var(--site-font-scale, 1)); }
  .brand-name small { font-size: calc(10px * var(--site-font-scale, 1)); }
  .nav { font-size: calc(14px * var(--site-font-scale, 1)); }
  .fav-btn { font-size: calc(13.5px * var(--site-font-scale, 1)); }
  .eyebrow { font-size: calc(12px * var(--site-font-scale, 1)); }
  .hero h1 { font-size: calc(44px * var(--site-font-scale, 1)); }
  .hero p { font-size: calc(16px * var(--site-font-scale, 1)); }
  .btn-primary, .btn-ghost { font-size: calc(14px * var(--site-font-scale, 1)); }
  .download-note { font-size: calc(12px * var(--site-font-scale, 1)); }
  .quick b { font-size: calc(14px * var(--site-font-scale, 1)); }
  .quick small { font-size: calc(12px * var(--site-font-scale, 1)); }
  .section-title { font-size: calc(22px * var(--site-font-scale, 1)); }
  .section-sub { font-size: calc(13px * var(--site-font-scale, 1)); }
  .more { font-size: calc(13px * var(--site-font-scale, 1)); }
  .channel-logo { font-size: calc(14px * var(--site-font-scale, 1)); }
  .channel strong { font-size: calc(14px * var(--site-font-scale, 1)); }
  .channel small { font-size: calc(11px * var(--site-font-scale, 1)); }
  .onair { font-size: calc(10px * var(--site-font-scale, 1)); }
  .time { font-size: calc(14px * var(--site-font-scale, 1)); }
  .program-tag { font-size: calc(11px * var(--site-font-scale, 1)); }
  .program-name { font-size: calc(14px * var(--site-font-scale, 1)); }
  .program-desc { font-size: calc(12px * var(--site-font-scale, 1)); }
  .program-state { font-size: calc(11px * var(--site-font-scale, 1)); }
  .crumb, .breadcrumb { font-size: calc(12px * var(--site-font-scale, 1)); }
  .cat-row .ch-body b { font-size: calc(13.5px * var(--site-font-scale, 1)); }
  .cat-row .ch-body small { font-size: calc(10.5px * var(--site-font-scale, 1)); }
  .onscreen-title { font-size: calc(20px * var(--site-font-scale, 1)); }
  .onscreen-sub { font-size: calc(12px * var(--site-font-scale, 1)); }
  .channel-info h1 { font-size: calc(21px * var(--site-font-scale, 1)); }
  .channel-meta { font-size: calc(12px * var(--site-font-scale, 1)); }
  .action { font-size: calc(12px * var(--site-font-scale, 1)); }
  .schedule-head h2, .side-card h2 { font-size: calc(17px * var(--site-font-scale, 1)); }
  .date { font-size: calc(11px * var(--site-font-scale, 1)); }
  .schedule-row .time { font-size: calc(13px * var(--site-font-scale, 1)); }
  .show-name { font-size: calc(13px * var(--site-font-scale, 1)); }
  .show-desc { font-size: calc(11px * var(--site-font-scale, 1)); }
  .now { font-size: calc(10px * var(--site-font-scale, 1)); }
  .upcoming { font-size: calc(10px * var(--site-font-scale, 1)); }
  .all { font-size: calc(11px * var(--site-font-scale, 1)); }
  .mini-logo { font-size: calc(11px * var(--site-font-scale, 1)); }
  .side-channel b { font-size: calc(12px * var(--site-font-scale, 1)); }
  .side-channel small { font-size: calc(10px * var(--site-font-scale, 1)); }
  .watching { font-size: calc(10px * var(--site-font-scale, 1)); }
  .download-card h3 { font-size: calc(17px * var(--site-font-scale, 1)); }
  .download-card p { font-size: calc(11px * var(--site-font-scale, 1)); }
  .download-links a { font-size: calc(11px * var(--site-font-scale, 1)); }
  .tip { font-size: calc(11px * var(--site-font-scale, 1)); }
  .info-hero .hero h1 { font-size: calc(30px * var(--site-font-scale, 1)); }
  .info-hero .hero p { font-size: calc(13px * var(--site-font-scale, 1)); }
  .hero-stamp { font-size: calc(11px * var(--site-font-scale, 1)); }
  .tab { font-size: calc(12px * var(--site-font-scale, 1)); }
  .card-head h2 { font-size: calc(18px * var(--site-font-scale, 1)); }
  .sub { font-size: calc(11px * var(--site-font-scale, 1)); }
  .source { font-size: calc(10px * var(--site-font-scale, 1)); }
  .sun { font-size: calc(38px * var(--site-font-scale, 1)); }
  .temp { font-size: calc(35px * var(--site-font-scale, 1)); }
  .temp small { font-size: calc(15px * var(--site-font-scale, 1)); }
  .weather-text { font-size: calc(13px * var(--site-font-scale, 1)); }
  .weather-place { font-size: calc(11px * var(--site-font-scale, 1)); }
  .fact small { font-size: calc(10px * var(--site-font-scale, 1)); }
  .fact b { font-size: calc(13px * var(--site-font-scale, 1)); }
  .day small { font-size: calc(10px * var(--site-font-scale, 1)); }
  .day b { font-size: calc(12px * var(--site-font-scale, 1)); }
  .day span { font-size: calc(10px * var(--site-font-scale, 1)); }
  .mini-note { font-size: calc(10px * var(--site-font-scale, 1)); }
  .input { font-size: calc(12px * var(--site-font-scale, 1)); }
  .redbtn { font-size: calc(12px * var(--site-font-scale, 1)); }
  .stop-label { font-size: calc(11px * var(--site-font-scale, 1)); }
  .bus-dest b { font-size: calc(12px * var(--site-font-scale, 1)); }
  .bus-dest small { font-size: calc(10px * var(--site-font-scale, 1)); }
  .eta { font-size: calc(12px * var(--site-font-scale, 1)); }
  .exchange-table th { font-size: calc(10px * var(--site-font-scale, 1)); }
  .exchange-table td { font-size: calc(12px * var(--site-font-scale, 1)); }
  .curr-code { font-size: calc(10px * var(--site-font-scale, 1)); }
  .change { font-size: calc(11px * var(--site-font-scale, 1)); }
  .sidehead h3 { font-size: calc(14px * var(--site-font-scale, 1)); }
  .sidehead a { font-size: calc(10px * var(--site-font-scale, 1)); }
  .brief b { font-size: calc(11px * var(--site-font-scale, 1)); }
  .brief small { font-size: calc(10px * var(--site-font-scale, 1)); }
  .disclaimer { font-size: calc(10px * var(--site-font-scale, 1)); }
  .data-card b { font-size: calc(12px * var(--site-font-scale, 1)); }
  .data-card small { font-size: calc(10px * var(--site-font-scale, 1)); }
  .data-pill { font-size: calc(10px * var(--site-font-scale, 1)); }
  .section-title-lg { font-size: calc(19px * var(--site-font-scale, 1)); }
  .section-sub-lg { font-size: calc(11px * var(--site-font-scale, 1)); }
  .step-card h2 { font-size: calc(18px * var(--site-font-scale, 1)); }
  .step-card h2 .step-no { font-size: calc(13px * var(--site-font-scale, 1)); }
  .step-list li { font-size: calc(13.5px * var(--site-font-scale, 1)); }
  .help-card h3 { font-size: calc(16px * var(--site-font-scale, 1)); }
  .help-card p { font-size: calc(13px * var(--site-font-scale, 1)); }
  .about-card h2 { font-size: calc(18px * var(--site-font-scale, 1)); }
  .about-card p { font-size: calc(13.5px * var(--site-font-scale, 1)); }
  .contact-row { font-size: calc(13.5px * var(--site-font-scale, 1)); }
  .footer-inner { font-size: calc(12px * var(--site-font-scale, 1)); }
}

/* 移动端：原有字号基础上微调大 0.5~1px */
@media (max-width: 650px) {
  .brand-name { font-size: calc(18px * var(--site-font-scale, 1)); }
  .brand-name small { font-size: calc(9px * var(--site-font-scale, 1)); }
  .nav { font-size: calc(13px * var(--site-font-scale, 1)); }
  .fav-btn { font-size: calc(12.5px * var(--site-font-scale, 1)); }
  .eyebrow { font-size: calc(11px * var(--site-font-scale, 1)); }
  .quick b { font-size: calc(13px * var(--site-font-scale, 1)); }
  .quick small { font-size: calc(11px * var(--site-font-scale, 1)); }
  .section-title { font-size: calc(20px * var(--site-font-scale, 1)); }
  .section-sub { font-size: calc(12px * var(--site-font-scale, 1)); }
  .channel strong { font-size: calc(13.5px * var(--site-font-scale, 1)); }
  .channel small { font-size: calc(10.5px * var(--site-font-scale, 1)); }
  .program-name { font-size: calc(13.5px * var(--site-font-scale, 1)); }
  .program-desc { font-size: calc(11.5px * var(--site-font-scale, 1)); }
  .channel-info h1 { font-size: calc(18px * var(--site-font-scale, 1)); }
  .channel-meta { font-size: calc(11px * var(--site-font-scale, 1)); }
  .action { font-size: calc(11px * var(--site-font-scale, 1)); }
  .show-name { font-size: calc(12.5px * var(--site-font-scale, 1)); }
  .show-desc { font-size: calc(10.5px * var(--site-font-scale, 1)); }
  .schedule-row .time { font-size: calc(12.5px * var(--site-font-scale, 1)); }
  .side-channel b { font-size: calc(11.5px * var(--site-font-scale, 1)); }
  .side-channel small { font-size: calc(9.5px * var(--site-font-scale, 1)); }
  .download-card h3 { font-size: calc(16px * var(--site-font-scale, 1)); }
  .download-card p { font-size: calc(10.5px * var(--site-font-scale, 1)); }
  .info-hero .hero h1 { font-size: calc(26px * var(--site-font-scale, 1)); }
  .info-hero .hero p { font-size: calc(11px * var(--site-font-scale, 1)); }
  .tab { font-size: calc(11px * var(--site-font-scale, 1)); }
  .card-head h2 { font-size: calc(17px * var(--site-font-scale, 1)); }
  .sub { font-size: calc(10.5px * var(--site-font-scale, 1)); }
  .temp { font-size: calc(33px * var(--site-font-scale, 1)); }
  .weather-text { font-size: calc(12.5px * var(--site-font-scale, 1)); }
  .weather-place { font-size: calc(10.5px * var(--site-font-scale, 1)); }
  .fact b { font-size: calc(12.5px * var(--site-font-scale, 1)); }
  .day b { font-size: calc(11.5px * var(--site-font-scale, 1)); }
  .input { font-size: calc(12px * var(--site-font-scale, 1)); }
  .redbtn { font-size: calc(11.5px * var(--site-font-scale, 1)); }
  .eta { font-size: calc(11.5px * var(--site-font-scale, 1)); }
  .exchange-table td { font-size: calc(11.5px * var(--site-font-scale, 1)); }
  .step-list li { font-size: calc(12.5px * var(--site-font-scale, 1)); }
  .help-card h3 { font-size: calc(15px * var(--site-font-scale, 1)); }
  .help-card p { font-size: calc(12.5px * var(--site-font-scale, 1)); }
  .about-card p { font-size: calc(13px * var(--site-font-scale, 1)); }
  .contact-row { font-size: calc(13px * var(--site-font-scale, 1)); }
  .footer-inner { font-size: calc(11.5px * var(--site-font-scale, 1)); }
}

/* ============================================================
   巴士 ETA 實時查詢組件（2026-10-05 接入真實數據）
   ============================================================ */
.bus-input { flex: 1; min-width: 0; }
.bus-input input {
  width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 7px;
  padding: 11px 12px; font-size: calc(14px * var(--site-font-scale, 1)); color: var(--ink); background: #fff;
}
.bus-input input:focus { outline: none; border-color: #d9a4aa; box-shadow: 0 0 0 3px rgba(166, 25, 46, .07); }
.bus-list { margin-top: 6px; }
.bus-hint { font-size: calc(12px * var(--site-font-scale, 1)); color: var(--muted); padding: 10px 2px; line-height: 1.7; }
.bus-group-title {
  font-size: calc(12px * var(--site-font-scale, 1)); font-weight: 800; color: #555; margin: 12px 0 6px;
  padding-bottom: 6px; border-bottom: 1px solid #f0f0f0;
}
.bus-stop {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  border: 1px solid var(--line); border-bottom: 0; background: #fff;
  padding: 10px 12px; cursor: pointer; font-size: calc(13px * var(--site-font-scale, 1)); color: var(--ink); transition: background .15s;
}
.bus-stop:first-of-type { border-radius: 8px 8px 0 0; }
.bus-stop:last-of-type { border-bottom: 1px solid var(--line); border-radius: 0 0 8px 8px; }
.bus-stop:hover { background: #fdf3f4; }
.bus-stop .bs-seq { font-size: calc(10px * var(--site-font-scale, 1)); color: var(--muted); width: 20px; flex: none; text-align: right; }
.bus-stop .bs-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bus-stop .bs-co {
  font-size: calc(9px * var(--site-font-scale, 1)); font-weight: 800; color: var(--red); background: #fbf0f1;
  border-radius: 10px; padding: 3px 7px; flex: none;
}
.bus-back {
  margin-top: 12px; border: 1px solid var(--line); background: #fff; border-radius: 7px;
  padding: 8px 13px; font-size: calc(12px * var(--site-font-scale, 1)); color: var(--red); cursor: pointer;
}
.bus-back:hover { background: #fdf3f4; }
/* ============================================================
   HKTV.MY - 2026-10-05 二輪改版：全站字號放大（覆蓋層）
   追加於文件末尾，優先級最高；移動端另行收緊
   ============================================================ */
body { font-size: calc(17px * var(--site-font-scale, 1)); }
.brand-name { font-size: calc(23px * var(--site-font-scale, 1)); }
.brand-name small { font-size: calc(10px * var(--site-font-scale, 1)); }
.nav { font-size: calc(15px * var(--site-font-scale, 1)); gap: 26px; }
.fav-btn { font-size: calc(14px * var(--site-font-scale, 1)); }
.hero h1 { font-size: calc(46px * var(--site-font-scale, 1)); }
.hero p { font-size: calc(17px * var(--site-font-scale, 1)); }
.eyebrow { font-size: calc(13px * var(--site-font-scale, 1)); }
.btn-primary, .btn-ghost { font-size: calc(15px * var(--site-font-scale, 1)); }
.section-title { font-size: calc(23px * var(--site-font-scale, 1)); }
.section-sub { font-size: calc(14px * var(--site-font-scale, 1)); }
.more { font-size: calc(14px * var(--site-font-scale, 1)); }
.quick-icon { width: 46px; height: 46px; font-size: calc(22px * var(--site-font-scale, 1)); }
.quick b { font-size: calc(15px * var(--site-font-scale, 1)); }
.quick small { font-size: calc(13px * var(--site-font-scale, 1)); }
.channel-logo { width: 46px; height: 46px; font-size: calc(15px * var(--site-font-scale, 1)); }
.channel strong { font-size: calc(15px * var(--site-font-scale, 1)); }
.channel small { font-size: calc(12px * var(--site-font-scale, 1)); }
.onair { font-size: calc(10.5px * var(--site-font-scale, 1)); }
.time { font-size: calc(15px * var(--site-font-scale, 1)); }
.program-tag { font-size: calc(12px * var(--site-font-scale, 1)); }
.program-name { font-size: calc(15px * var(--site-font-scale, 1)); }
.program-desc { font-size: calc(13px * var(--site-font-scale, 1)); }
.program-state { font-size: calc(12px * var(--site-font-scale, 1)); }
.crumb, .breadcrumb { font-size: calc(13px * var(--site-font-scale, 1)); }
.cat-row .ch-logo { width: 44px; height: 44px; font-size: calc(13px * var(--site-font-scale, 1)); }
.cat-row .ch-body b { font-size: calc(14.5px * var(--site-font-scale, 1)); }
.cat-row .ch-body small { font-size: calc(11.5px * var(--site-font-scale, 1)); }
.cat-row .ch-go { font-size: calc(17px * var(--site-font-scale, 1)); }
.cat-row .row-fav { font-size: calc(17px * var(--site-font-scale, 1)); }
.ch-logo-lg { width: 50px; height: 50px; font-size: calc(15px * var(--site-font-scale, 1)); }
.player-loading { font-size: calc(14px * var(--site-font-scale, 1)); }
.live-label { font-size: calc(12px * var(--site-font-scale, 1)); }
.quality { font-size: calc(12px * var(--site-font-scale, 1)); }
.onscreen-title { font-size: calc(21px * var(--site-font-scale, 1)); }
.onscreen-sub { font-size: calc(13px * var(--site-font-scale, 1)); }
.player-controls { font-size: calc(19px * var(--site-font-scale, 1)); }
.option-arrow { font-size: calc(24px * var(--site-font-scale, 1)); }
.tab { font-size: calc(13px * var(--site-font-scale, 1)); padding: 10px 16px; }
.info-hero .hero h1 { font-size: calc(31px * var(--site-font-scale, 1)); }
.info-hero .hero p { font-size: calc(14px * var(--site-font-scale, 1)); }
.download-note { font-size: calc(13px * var(--site-font-scale, 1)); }
.footer-inner { font-size: calc(13px * var(--site-font-scale, 1)); }
.footer-links { font-size: calc(12px * var(--site-font-scale, 1)); }

/* 移動端收緊 */
@media (max-width: 650px) {
  .brand-name { font-size: calc(20px * var(--site-font-scale, 1)); }
  .brand-name small { font-size: calc(9px * var(--site-font-scale, 1)); }
  .nav { font-size: calc(13px * var(--site-font-scale, 1)); gap: 14px; }
  .fav-btn { font-size: calc(12px * var(--site-font-scale, 1)); }
  .section-title { font-size: calc(20px * var(--site-font-scale, 1)); }
  .section-sub { font-size: calc(12.5px * var(--site-font-scale, 1)); }
  .more { font-size: calc(13px * var(--site-font-scale, 1)); }
  .quick b { font-size: calc(13.5px * var(--site-font-scale, 1)); }
  .quick small { font-size: calc(12px * var(--site-font-scale, 1)); }
  .channel strong { font-size: calc(14px * var(--site-font-scale, 1)); }
  .channel small { font-size: calc(11px * var(--site-font-scale, 1)); }
  .time { font-size: calc(14px * var(--site-font-scale, 1)); }
  .program-name { font-size: calc(14px * var(--site-font-scale, 1)); }
  .program-desc { font-size: calc(12px * var(--site-font-scale, 1)); }
  .tab { font-size: calc(11.5px * var(--site-font-scale, 1)); padding: 9px 13px; }
  .info-hero .hero h1 { font-size: calc(27px * var(--site-font-scale, 1)); }
  .info-hero .hero p { font-size: calc(12px * var(--site-font-scale, 1)); }
  .footer-inner { font-size: calc(12px * var(--site-font-scale, 1)); }
}

/* ============================================================
   HKTV.MY - 手機漢堡菜單與固定導航
   ============================================================ */
@media (max-width: 950px) {
  :root { --hktv-header-height: 67px; }
  .head-inner {
    height: 62px; min-height: 62px; padding: 0 15px;
    flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 10px;
  }
  .brand { min-width: 0; }
  .head-actions { margin-left: auto; gap: 9px; flex: none; }
  .nav { display: none !important; }
  .menu-btn { display: inline-grid; }
  .mobile-menu { display: block; max-height: calc(100dvh - var(--hktv-header-height)); }
  .mobile-menu[hidden] { display: none; }
  .header { z-index: 10050; }
}
@media (max-width: 480px) {
  .fav-btn span { display: inline; }
  .fav-btn { width: auto; height: 38px; padding: 0 9px; gap: 5px; font-size: calc(11px * var(--site-font-scale, 1)); border-radius: 999px; }
  .brand-name { font-size: calc(18px * var(--site-font-scale, 1)); }
  .brand-name small { font-size: calc(7.5px * var(--site-font-scale, 1)); }
  .head-inner { padding: 0 12px; }
}
