@charset "UTF-8";
/*
 * MyVideo 活動頁共用 reset — 2026-10-30 版
 * 取代 reset_20220801.css（舊檔不覆蓋，舊頁繼續引用舊檔）
 * 所有 selector 包在 :where() 裡，specificity 為 0：頁面自己的樣式一定蓋得過 reset
 *
 * 最低支援：Chrome 88、Safari 14（iOS 14）、Firefox 78
 *   更舊的瀏覽器看不懂 :where()，會丟掉整條規則 → reset 完全不生效。要支援更舊的裝置就不要用這版
 *
 * 寫法規範
 * - 這版沿用「全部歸零」路線，讓舊頁搬過來版面不變；跟目前主流的極簡 reset（只修常見問題、不整批歸零）不同
 * - 清單一律去圓點。Safari 去掉圓點後 VoiceOver 不再把它當清單報讀，
 *   所以有語意的清單（方案列表、步驟、條列說明）請在 HTML 加 role="list"：<ul class="..." role="list">
 * - 標題、內文想要比較好看的斷行，加 .text-balance / .text-pretty（見檔尾，要用才加）
 *
 * ── 與 reset_20220801.css 的差異 ──
 * 來源：reset_20220801.css（1,594 bytes，2026-10-30 從正式站取得）
 *
 * 改了什麼
 * - 所有 selector 包進 :where()（Safari 14、Chrome 88 以上支援）
 *   例外：[hidden] 刻意不包，並加 !important
 * - 刪掉已淘汰的標籤：applet、acronym、big、center、strike、tt
 * - 刪掉 article, aside… { display: block }（舊 IE 用）
 * - 刪掉 a img { border: none }（img 已在歸零清單裡）
 * - 刪掉 q:before 重複的 content: ""，只留 content: none
 * - 歸零清單補上 main
 * - 新增 *, ::before, ::after { box-sizing: border-box }
 * - 新增 html { -webkit-text-size-adjust: 100% }（iPhone 轉橫向時字不會被放大）
 * - button, input, textarea, select 原本只指定 font-family，改成 font: inherit; color: inherit
 * - button 另外加上 background: none; border: 0; padding: 0; cursor: pointer
 * - 新增 [hidden] { display: none !important }
 *
 * 從主流極簡 reset 融合進來的（只收舊頁版面不會變的）
 * 參考：Josh Comeau〈A Modern CSS Reset〉（2026-06 版）、Andy Bell〈A (more) Modern CSS Reset〉（2023-09）
 * - p, h1–h6 { overflow-wrap: break-word }：長網址、長英文不撐破版面（Josh）
 * - html { interpolate-size: allow-keywords }，只在沒開「減少動態效果」時：height: auto 可以做轉場（Josh）
 * - opt-in class：.text-balance（text-wrap: balance）、.text-pretty（text-wrap: pretty）（Josh、Andy）
 *   會改變斷行，所以不設成預設，新頁要用時自己加
 *
 * 刻意維持原樣（舊頁搬過來時版面不跑掉）
 * - html { line-height: 1 }
 * - ol, ul { text-align: justify }
 * - body 和表單元件的字型堆疊
 * - a { text-decoration: none; color: inherit }
 *
 * 評估過但不採用
 * - img, video, svg { max-width: 100%; height: auto }（Josh 版還有 display: block）：MyVideo 樣板 footer 的
 *   OTT 徽章（ft_ott.svg）是 sprite 圖，比容器寬、靠 overflow: hidden 裁切，加了會被壓小；display: block 也會讓 inline 圖換行
 * - body { line-height: 1.5 }、只歸零 margin 不歸零 padding（Josh、Andy）：舊頁都以 line-height 1、全部歸零為前提，改了會跑版
 * - ul[role="list"] 才去圓點（Andy）：舊頁的清單都沒有 role，改了圓點會跑出來；改成上面的寫法規範
 * - -webkit-font-smoothing: antialiased（Josh）：Mac 上字會變細，跟設計稿比對有落差
 * - text-size-adjust: none（Andy）：部分瀏覽器會擋掉使用者自己放大字，這版用 100%
 *
 * 從舊版換過來要注意
 * - 加了 :where() 後 reset 權重比舊版低；頁面規則若是靠 reset 的權重才生效，要檢查
 * - button 的邊框和背景被清掉了，原本依賴瀏覽器預設按鈕外觀的地方要自己補樣式
 *
 * 驗證：2026-10-30 用 MyVideoTV 的 index.html 分別套舊版和新版（含上面融合的規則），
 * headless Chrome 1440px、375px 截圖逐像素比對（動畫關閉；同一版截兩次也一致），兩個寬度都沒有差異。
 * .text-balance / .text-pretty 是 opt-in，本頁沒用到，沒有在比對範圍內
 */

/* Box model */
:where(*, *::before, *::after) {
	box-sizing: border-box;
}

/* 歸零 */
:where(html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strong, sub, sup, var, b, u, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, main, menu, nav, output, ruby, section, summary, time, mark, audio, video) {
	margin: 0;
	padding: 0;
	border: 0;
	font: inherit;
	font-size: 100%;
	vertical-align: baseline;
}

:where(html) {
	line-height: 1;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

/* height: auto 可以做轉場；使用者設「減少動態效果」就不開 */
@media (prefers-reduced-motion: no-preference) {
	:where(html) {
		interpolate-size: allow-keywords;
	}
}

:where(body) {
	font-family: 'Noto Sans TC', 'SF Pro TC', 'SF Pro Display', 'SF Pro Icons', 'PingFang TC', 'Microsoft JhengHei',
		'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
}

/* 長網址、長英文字不撐破版面（一般文字的斷行不變） */
:where(p, h1, h2, h3, h4, h5, h6) {
	overflow-wrap: break-word;
}

/* 表單元件：沿用頁面的字型與顏色，不帶瀏覽器預設外觀 */
:where(button, input, textarea, select) {
	font: inherit;
	color: inherit;
}

:where(button) {
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

/* 清單 */
:where(ol, ul) {
	list-style: none;
	text-align: justify;
}

/* 表格 */
:where(table) {
	border-collapse: collapse;
	border-spacing: 0;
}

:where(caption, th, td) {
	text-align: left;
	font-weight: normal;
	vertical-align: middle;
}

/* 引言 */
:where(q, blockquote) {
	quotes: none;
}

:where(q, blockquote)::before,
:where(q, blockquote)::after {
	content: none;
}

/* 連結 */
:where(a) {
	text-decoration: none;
	color: inherit;
}

/* 不加 img { max-width: 100% }：MyVideo 樣板 footer 的 OTT 徽章是 sprite 圖（比容器寬、靠 overflow 裁切），加了會被縮小 */

/* hidden 屬性不被 display 規則蓋掉 */
[hidden] {
	display: none !important;
}

/* ── opt-in：要用才加的 class（會改變斷行，所以不設成預設） ── */

/* 標題：每行字數平均，避免最後一行只剩一兩個字 */
.text-balance {
	text-wrap: balance;
}

/* 內文：避免段落最後一行只剩一個字 */
.text-pretty {
	text-wrap: pretty;
}
