/*
Theme Name: 馬波通 MaBoTung
Theme URI: https://mabotung.com/
Author: 馬波通編輯部
Author URI: https://mabotung.com/
Description: 香港足球、NBA、電子遊戲及賽馬資訊主題。內置足球及 NBA 賽事數據（API-Sports／football-data.org／balldontlie），即時比分自動更新、香港時間、廣東話繁體中文 SEO、結構化資料、手機底部導覽。
Version: 2.0.2
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mabotung
Tags: news, sports, blog, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ==================================================================
   1. 設計變數
   ================================================================== */
:root {
	--navy: #0b1f3a;
	--navy-2: #132c52;
	--navy-3: #1c3b69;
	--green: #1e7f4f;
	--green-2: #166640;
	--green-soft: #e7f4ed;
	--gold: #e8b931;
	--gold-2: #d4a419;
	--gold-soft: #fdf6df;
	--red: #e5483b;
	--red-soft: #fdecea;
	--orange: #f26b1d;
	--orange-soft: #fff0e6;
	--purple: #6c4bd8;
	--purple-soft: #f0ecfd;
	--blue: #2563eb;
	--ink: #14213d;
	--text: #2b3445;
	--muted: #667085;
	--line: #e4e8ef;
	--line-2: #eef1f5;
	--bg: #f4f6fa;
	--card: #fff;
	--radius: 14px;
	--radius-sm: 9px;
	--shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
	--shadow-lg: 0 10px 30px rgba(11, 31, 58, .12);
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang HK", "Noto Sans HK", "Microsoft JhengHei", "Heiti TC", sans-serif;
	--num: "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--header-h: 64px;
	--wrap: 1200px;
}

/* ==================================================================
   2. 基本
   ================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.7;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
body.mbt-webfont { --font: "Noto Sans HK", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang HK", "Microsoft JhengHei", sans-serif; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-2); }
h1, h2, h3, h4, h5, h6 { color: var(--ink); line-height: 1.35; margin: 0 0 .6em; font-weight: 800; letter-spacing: .01em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.ico { display: inline-block; flex: none; vertical-align: -.15em; }
.flip { transform: rotate(180deg); }
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 10px 16px; background: var(--gold); color: var(--navy); font-weight: 700; border-radius: 8px; }
.strong { font-weight: 700; color: var(--ink); }
.muted { color: var(--muted); }
.site-main { padding-bottom: 48px; min-height: 50vh; }

/* ==================================================================
   3. 按鈕、標籤、Chip
   ================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 20px; border-radius: 999px; border: 2px solid transparent;
	font-weight: 700; font-size: .98rem; line-height: 1.2; white-space: nowrap;
	transition: transform .15s, background .15s, box-shadow .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 6px 16px rgba(232, 185, 49, .35); }
.btn-gold:hover { background: #f1c84b; color: var(--navy); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-2); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; background: rgba(255, 255, 255, .06); }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .12); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { color: var(--green); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }

.tag {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 2px 9px; border-radius: 6px; font-size: .76rem; font-weight: 700; line-height: 1.6;
	background: var(--green-soft); color: var(--green); white-space: nowrap;
}
.tag-light { background: rgba(255, 255, 255, .14); color: #fff; }
a.tag-light:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.tag-outline { background: transparent; color: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
a.tag-outline:hover { color: #fff; }
.tag-epl { background: #efe7fb; color: #4b1d8f; }
.tag-ucl { background: #e6edfb; color: #13307a; }
.tag-uel { background: #fff1e0; color: #a45200; }
.tag-laliga { background: #fde8e7; color: #b4231a; }
.tag-seriea { background: #e3f1fb; color: #0b5c8f; }
.tag-bundesliga { background: #fde9e9; color: #c4121d; }
.tag-ligue1 { background: #eef3d9; color: #4f6408; }
.tag-championship { background: #e8eef7; color: #22406e; }
.tag-hkpl { background: #fff0d6; color: #9a5a00; }
.tag-nba { background: var(--orange-soft); color: #c1500e; }

.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.chip {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600;
	background: #fff; color: var(--text); border: 1px solid var(--line);
	transition: all .15s; line-height: 1.4;
}
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.chip-count { font-size: .75rem; opacity: .7; font-weight: 500; }
.chip-label { font-size: .88rem; color: var(--muted); font-weight: 600; }
.chip-row > .ico { color: var(--muted); }
.on-dark .chip { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #e8edf5; }
.on-dark .chip:hover { border-color: var(--gold); color: var(--gold); }
.on-dark .chip.is-active { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* ==================================================================
   4. 頁首
   ================================================================== */
.notice-bar { background: var(--gold); color: var(--navy); font-size: .85rem; font-weight: 600; }
.notice-bar .container { display: flex; align-items: center; gap: 8px; padding-top: 6px; padding-bottom: 6px; }
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--navy); color: #fff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
}
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; border-radius: 10px; border: 0;
	background: transparent; color: inherit; flex: none;
}
.icon-btn:hover { background: rgba(255, 255, 255, .1); }
.nav-toggle { display: none; margin-left: -8px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; flex: none; }
.brand:hover { color: #fff; }
.brand-logo { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 1.2rem; font-weight: 900; letter-spacing: .04em; }
.brand-tag { font-size: .72rem; color: #9fb2cc; margin-top: 3px; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main-nav { flex: 1; min-width: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav > ul > li > a {
	display: flex; align-items: center; gap: 4px; height: var(--header-h);
	padding: 0 13px; color: #dbe4f0; font-weight: 600; font-size: .98rem; white-space: nowrap;
	border-bottom: 3px solid transparent; padding-top: 3px;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li:focus-within > a { color: #fff; }
.main-nav > ul > li.current-menu-item > a,
.main-nav > ul > li.current-menu-ancestor > a,
.main-nav > ul > li.current-menu-parent > a { color: #fff; border-bottom-color: var(--gold); }
.main-nav .menu-item-has-children > a::after {
	content: ""; width: 6px; height: 6px; margin-left: 4px; margin-top: -3px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .7;
}
.main-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 190px; z-index: 20;
	list-style: none; margin: 0; padding: 8px; background: #fff; border-radius: 12px;
	box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .15s;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); font-size: .94rem; font-weight: 500; white-space: nowrap; }
.main-nav .sub-menu a:hover { background: var(--green-soft); color: var(--green); }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }
.live-pill {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 7px 14px; border-radius: 999px; font-size: .88rem; font-weight: 700;
	background: rgba(229, 72, 59, .14); color: #ffb4ad; border: 1px solid rgba(229, 72, 59, .45);
}
.live-pill:hover { background: var(--red); color: #fff; }
.live-dot {
	display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none;
	box-shadow: 0 0 0 0 rgba(229, 72, 59, .6); animation: mbt-pulse 1.6s infinite;
}
@keyframes mbt-pulse { 0% { box-shadow: 0 0 0 0 rgba(229, 72, 59, .55); } 70% { box-shadow: 0 0 0 7px rgba(229, 72, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 59, 0); } }
.search-panel { background: var(--navy-2); border-top: 1px solid rgba(255, 255, 255, .08); padding: 14px 0; }

.search-form { position: relative; display: flex; align-items: center; gap: 8px; max-width: 640px; }
.search-form .search-ico { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search-form input[type="search"] {
	flex: 1; min-width: 0; height: 46px; padding: 0 14px 0 42px; border-radius: 999px;
	border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 1rem;
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(30, 127, 79, .15); }
.search-panel .search-form { margin: 0 auto; }
.search-panel .search-form input[type="search"] { border-color: transparent; }

/* 手機側邊選單 */
.drawer { position: fixed; inset: 0; z-index: 300; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(6, 15, 30, .55); opacity: 0; transition: opacity .2s; }
.drawer-panel {
	position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 340px);
	background: #fff; display: flex; flex-direction: column; overflow-y: auto;
	transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow-lg);
}
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; background: var(--navy); color: #fff; }
.drawer-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 16px; border-bottom: 1px solid var(--line); }
.drawer-quick a {
	display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px;
	border-radius: 12px; background: var(--bg); color: var(--ink); font-size: .84rem; font-weight: 600; text-align: center;
}
.drawer-quick a .ico { color: var(--green); }
.drawer-quick a:hover { background: var(--green-soft); }
.drawer-nav { padding: 8px 8px 16px; flex: 1; }
.drawer-nav ul { list-style: none; margin: 0; padding: 0; }
.drawer-nav li { position: relative; }
.drawer-nav a { display: block; padding: 12px 14px; color: var(--ink); font-weight: 600; border-radius: 10px; }
.drawer-nav a:hover, .drawer-nav .current-menu-item > a { background: var(--green-soft); color: var(--green); }
.drawer-nav .sub-menu { padding-left: 12px; display: none; }
.drawer-nav li.is-open > .sub-menu { display: block; }
.drawer-nav .sub-menu a { font-weight: 500; font-size: .95rem; padding: 9px 14px; color: var(--text); }
.drawer-nav .sub-toggle {
	position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; border-radius: 8px;
	background: transparent; color: var(--muted); display: flex; align-items: center; justify-content: center;
}
.drawer-nav li.is-open > .sub-toggle .ico { transform: rotate(180deg); }
.drawer-foot { padding: 14px 20px 24px; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); }
body.drawer-open { overflow: hidden; }

/* ==================================================================
   5. 首頁 Hero
   ================================================================== */
.hero {
	position: relative; color: #fff; overflow: hidden;
	background:
		radial-gradient(900px 420px at 85% -10%, rgba(30, 127, 79, .45), transparent 60%),
		radial-gradient(700px 380px at -5% 110%, rgba(232, 185, 49, .16), transparent 60%),
		linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
}
.hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06;
	background-image: linear-gradient(rgba(255, 255, 255, .8) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .8) 1px, transparent 1px);
	background-size: 44px 44px;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-top: 52px; padding-bottom: 60px; }
.hero h1 { color: #fff; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.9rem); line-height: 1.25; margin-bottom: 16px; }
.hero-kicker {
	display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
	padding: 5px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
	font-size: .86rem; font-weight: 600; color: #e8edf5;
}
.hero-lead { color: #c9d5e5; font-size: 1.06rem; max-width: 560px; }
.hero-points { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #b8c7db; font-size: .9rem; }
.hero-points li { display: flex; align-items: center; gap: 6px; }
.hero-points .ico { color: var(--gold); }
.hero-panel {
	background: #fff; color: var(--text); border-radius: 18px; padding: 18px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .3); min-width: 0;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.panel-title { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 0; }
.panel-title .ico { color: var(--green); }
.panel-title small { color: var(--muted); font-weight: 500; font-size: .85rem; }
.panel-more { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; padding: 10px; border-radius: 10px; background: var(--bg); font-weight: 700; font-size: .92rem; }
.panel-more:hover { background: var(--green-soft); }
.hero-panel .match-list { max-height: 420px; overflow-y: auto; }

.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg); border-radius: 999px; }
.tab {
	display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 0; border-radius: 999px;
	background: transparent; color: var(--muted); font-weight: 700; font-size: .9rem;
}
.tab:hover { color: var(--ink); }
.tab.is-active { background: #fff; color: var(--green); box-shadow: var(--shadow); }
.tabs-lg { margin-bottom: 18px; }
.tabs-lg .tab { padding: 10px 24px; font-size: 1rem; }
#tab-nba.is-active, #tab-hero-nba.is-active { color: var(--orange); }

.info-card {
	display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px;
	border: 1px solid var(--line); margin-bottom: 10px; color: var(--text); transition: all .15s;
}
.info-card:hover { border-color: var(--green); box-shadow: var(--shadow); color: var(--text); }
.info-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.info-icon.is-football { background: var(--green-soft); color: var(--green); }
.info-icon.is-racing { background: var(--gold-soft); color: #9a6e00; }
.info-body { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.4; }
.info-body .label { font-size: .78rem; color: var(--muted); font-weight: 600; }
.info-body .title { font-weight: 800; color: var(--ink); }
.info-body .meta { font-size: .85rem; color: var(--muted); }
.info-arrow { color: var(--muted); }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 6px; }
.quick {
	display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px; text-align: center;
	border-radius: 12px; background: var(--bg); color: var(--ink); transition: all .15s;
}
.quick strong { font-size: .95rem; }
.quick span { font-size: .75rem; color: var(--muted); }
.quick:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.quick .ico, .quick.is-football .ico { color: var(--green); }
.quick.is-nba .ico { color: var(--orange); }
.quick.is-games .ico { color: var(--purple); }
.quick.is-racing .ico { color: #b58500; }
.quick-grid.light .quick { background: #fff; border: 1px solid var(--line); }

/* ==================================================================
   6. 欄目、版塊
   ================================================================== */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -28px; position: relative; z-index: 2; }
.pillar {
	display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--radius);
	background: #fff; color: var(--text); box-shadow: var(--shadow-lg); border-top: 4px solid var(--green); transition: transform .15s;
}
.pillar:hover { transform: translateY(-3px); color: var(--text); }
.pillar strong { font-size: 1.12rem; color: var(--ink); }
.pillar span { font-size: .88rem; color: var(--muted); line-height: 1.55; flex: 1; }
.pillar em { font-style: normal; font-weight: 700; font-size: .88rem; display: flex; align-items: center; gap: 4px; color: var(--green); margin-top: 4px; }
.pillar-ico { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--green-soft); color: var(--green); margin-bottom: 6px; }
.pillar.is-nba { border-top-color: var(--orange); }
.pillar.is-nba .pillar-ico { background: var(--orange-soft); color: var(--orange); }
.pillar.is-nba em { color: var(--orange); }
.pillar.is-games { border-top-color: var(--purple); }
.pillar.is-games .pillar-ico { background: var(--purple-soft); color: var(--purple); }
.pillar.is-games em { color: var(--purple); }
.pillar.is-racing { border-top-color: var(--gold); }
.pillar.is-racing .pillar-ico { background: var(--gold-soft); color: #a77a00; }
.pillar.is-racing em { color: #a77a00; }

.section { margin-top: 40px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); }
h3.section-title { font-size: 1.1rem; }
.section-ico { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--green); color: #fff; flex: none; }
h3.section-title .section-ico { width: 30px; height: 30px; }
.section-more { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.section-games { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); padding: 36px 0 8px; border-top: 1px solid var(--line); }
.section-games .section-ico { background: var(--purple); }
.section-games .chip-row { margin-top: 20px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-lg { gap: 24px; }

.card-box, .box {
	background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 20px; min-width: 0;
}
.box { padding: 28px; margin-bottom: 20px; }
.box-title { display: flex; align-items: center; gap: 8px; font-size: 1.08rem; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.box-title .ico { color: var(--green); }

/* ==================================================================
   7. 比分、賽程
   ================================================================== */
.mbt-block { position: relative; transition: opacity .2s; }
.mbt-block.is-loading { opacity: .5; pointer-events: none; }
.match-list { display: flex; flex-direction: column; }
.match-day {
	display: flex; align-items: center; gap: 6px; padding: 8px 10px; margin: 6px 0 2px;
	background: var(--bg); border-radius: 8px; font-size: .84rem; font-weight: 700; color: var(--ink);
}
.match-day:first-child { margin-top: 0; }
.match-day .ico { color: var(--green); }
.day-rel { color: var(--green); margin-left: 4px; }
.match-row {
	display: grid; grid-template-columns: 58px 74px minmax(0, 1fr) 70px minmax(0, 1fr) 84px;
	align-items: center; gap: 8px; padding: 10px 6px; border-bottom: 1px solid var(--line-2); font-size: .94rem;
}
.match-row:last-child { border-bottom: 0; }
.match-row:hover { background: #fafbfd; }
.match-row.is-live { background: linear-gradient(90deg, rgba(229, 72, 59, .06), transparent 60%); }
.m-time { font-family: var(--num); font-weight: 700; font-size: .88rem; color: var(--ink); }
.m-league { min-width: 0; overflow: hidden; }
.m-league .tag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.m-team { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; color: var(--ink); }
.m-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-home { justify-content: flex-end; text-align: right; }
.m-team.win { font-weight: 800; }
.m-team.win span { color: var(--green-2); }
.match-row.is-finished .m-team:not(.win) span { color: var(--text); font-weight: 500; }
.m-score { display: flex; align-items: center; justify-content: center; gap: 4px; font-family: var(--num); font-size: 1.05rem; }
.m-score b {
	min-width: 26px; text-align: center; padding: 2px 4px; border-radius: 6px; background: var(--navy); color: #fff; font-weight: 800;
}
.is-live .m-score b { background: var(--red); }
.m-score i { font-style: normal; color: var(--muted); }
.vs { font-size: .75rem; font-weight: 800; color: var(--muted); letter-spacing: .08em; padding: 3px 8px; background: var(--bg); border-radius: 6px; }
.m-extra { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; flex-wrap: wrap; }
.m-link { display: inline-flex; align-items: center; gap: 2px; padding: 3px 10px; border-radius: 999px; background: var(--green-soft); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.m-link:hover { background: var(--green); color: #fff; }
.m-round { font-size: .75rem; color: var(--muted); text-align: right; line-height: 1.3; }
.m-id { font-size: .68rem; padding: 1px 5px; border-radius: 4px; background: #fff7d6; color: #7a5a00; border: 1px dashed #e5c94f; user-select: all; }
.m-status { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.m-status.warn { color: #b45309; }
.live-badge {
	display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px;
	background: var(--red); color: #fff; font-size: .76rem; font-weight: 800; font-family: var(--num);
}
.live-badge .live-dot { width: 6px; height: 6px; background: #fff; animation: none; opacity: .9; }
.team-logo { width: 24px; height: 24px; object-fit: contain; flex: none; }
.team-badge {
	width: 24px; height: 24px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center;
	background: var(--line-2); color: var(--muted); font-size: .6rem; font-weight: 800; font-family: var(--num); letter-spacing: -.02em;
}

/* 窄容器（兩欄、側欄）：收窄欄位，隱藏輪次 */
.card-box, .tab-panel, .side-box { container-type: inline-size; }
@container (max-width: 640px) {
	.match-row { grid-template-columns: 46px 50px minmax(0, 1fr) 62px minmax(0, 1fr) auto; gap: 6px; }
	.match-row .m-round { display: none; }
	.m-team { gap: 6px; }
}

/* 精簡版（首頁右側、側欄） */
.compact .match-row { grid-template-columns: 48px minmax(0, 1fr) 58px minmax(0, 1fr); gap: 6px; padding: 9px 2px; font-size: .9rem; }
.compact .m-league, .compact .m-extra { display: none; }
.compact .team-logo, .compact .team-badge { width: 20px; height: 20px; }
.compact .m-score b { min-width: 22px; font-size: .92rem; }
.side-box.compact .match-row { grid-template-columns: 42px minmax(0, 1fr) 50px minmax(0, 1fr); }
.side-box.compact .team-logo, .side-box.compact .team-badge { display: none; }

.score-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.score-toolbar .chip-row { margin: 0; }
.day-chips .chip { padding: 7px 16px; }
.day-chips .chip b { font-weight: 800; }
.day-chips .chip small { font-family: var(--num); font-size: .78rem; opacity: .75; }
.league-select select, .filter-bar select {
	height: 38px; padding: 0 34px 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
	appearance: none; -webkit-appearance: none; font-size: .9rem; font-weight: 600;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center;
}
.hk-clock { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: .88rem; color: var(--muted); }
.hk-clock b { font-family: var(--num); color: var(--ink); }

/* NBA */
.nba-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.nba-card {
	background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow);
	border-top: 3px solid var(--orange);
}
.nba-card.is-live { border-top-color: var(--red); box-shadow: 0 0 0 1px rgba(229, 72, 59, .25), var(--shadow); }
.nba-card.is-finished { border-top-color: var(--navy-3); }
.nba-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px; min-height: 24px; }
.nba-team { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.nba-team + .nba-team { border-top: 1px dashed var(--line); }
.nba-team .team-logo, .nba-team .team-badge { width: 28px; height: 28px; }
.nba-name { flex: 1; min-width: 0; font-weight: 700; color: var(--ink); display: flex; align-items: baseline; gap: 6px; }
.nba-name small { font-size: .72rem; color: var(--muted); font-weight: 500; }
.nba-pts { font-family: var(--num); font-size: 1.35rem; font-weight: 800; color: var(--ink); min-width: 44px; text-align: right; }
.nba-team.win .nba-pts { color: var(--orange); }
.is-finished .nba-team:not(.win) .nba-pts { color: #98a2b3; }
.nba-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-2); font-size: .78rem; color: var(--muted); }
.nba-foot span { display: inline-flex; align-items: center; gap: 3px; }
.nba-foot .m-link { margin-left: auto; }
.compact .nba-grid { grid-template-columns: 1fr; gap: 8px; }
.compact .nba-card { box-shadow: none; padding: 8px 12px; }
.compact .nba-foot { display: none; }
.compact .nba-pts { font-size: 1.1rem; }

/* 表格、積分榜 */
.table-box { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.card-box .table-box { box-shadow: none; }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
.data-table th {
	background: var(--navy); color: #fff; font-weight: 700; font-size: .84rem; text-align: center;
	padding: 11px 10px; white-space: nowrap;
}
.data-table td { padding: 10px; border-bottom: 1px solid var(--line-2); text-align: center; vertical-align: middle; }
.data-table tbody tr:nth-child(even) { background: #fafbfd; }
.data-table tbody tr:hover { background: var(--green-soft); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td:first-child, .data-table th:first-child { text-align: left; }
.data-table.sortable th button {
	display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: inherit; font-weight: 700; padding: 0;
}
.data-table.sortable th button .ico { opacity: .55; }
.data-table.sortable th[aria-sort] button .ico { opacity: 1; color: var(--gold); }
.standings { min-width: 560px; }
.standings .col-rank { width: 44px; text-align: center; font-weight: 800; font-family: var(--num); position: relative; }
.standings .col-team { text-align: left; }
.standings .col-pts { font-weight: 800; color: var(--ink); font-family: var(--num); }
.team-cell { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.team-cell .team-logo, .team-cell .team-badge { width: 20px; height: 20px; }
.standings tr[class*="zone-"] .col-rank { box-shadow: inset 4px 0 0 var(--zone, transparent); }
.zone-ucl { --zone: #1d4ed8; }
.zone-uel { --zone: #f59e0b; }
.zone-uecl { --zone: #10b981; }
.zone-rel { --zone: var(--red); }
.zone-pro { --zone: var(--green); }
.form-row { display: inline-flex; gap: 3px; }
.form { width: 20px; height: 20px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; font-size: .66rem; font-weight: 800; color: #fff; }
.form-w { background: var(--green); }
.form-d { background: #98a2b3; }
.form-l { background: var(--red); }
.table-group { font-size: 1rem; margin: 18px 0 10px; display: flex; align-items: center; gap: 8px; }
.table-group:first-child { margin-top: 0; }
.legend { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: middle; margin-right: 4px; }
.legend-ucl { background: #1d4ed8; }
.legend-uel { background: #f59e0b; }
.nba-standings .data-table { min-width: 420px; }

.empty-note { padding: 18px; text-align: center; color: var(--muted); font-size: .92rem; background: var(--bg); border-radius: 10px; margin: 0; }
.admin-hint {
	margin: 12px 0; padding: 12px 14px; border-radius: 10px; font-size: .86rem; line-height: 1.6;
	background: #fff8e1; border: 1px dashed #e5c94f; color: #6b5300;
}
.admin-hint::before { content: "管理員提示（訪客睇唔到）"; display: block; font-weight: 800; font-size: .76rem; margin-bottom: 2px; color: #a07800; }
.small-note { font-size: .82rem; color: var(--muted); margin: 10px 0 0; }

/* ==================================================================
   8. 卡片（文章、遊戲）
   ================================================================== */
.card {
	display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden;
	border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; color: var(--text); min-width: 0;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--text); }
.card-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--navy-2); overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-thumb img { transform: scale(1.04); }
.thumb-ph {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .85);
	background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
}
.thumb-ph.is-football { background: linear-gradient(135deg, #0f5132 0%, var(--green) 100%); }
.thumb-ph.is-nba { background: linear-gradient(135deg, #7c2d12 0%, var(--orange) 100%); }
.thumb-ph.is-games, .game-card .thumb-ph { background: linear-gradient(135deg, #3b1f8f 0%, var(--purple) 100%); }
.thumb-ph.is-racing { background: linear-gradient(135deg, #7a5a00 0%, var(--gold-2) 100%); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.card-kicker { font-size: .76rem; font-weight: 800; color: var(--green); letter-spacing: .02em; }
.card-kicker.is-nba { color: var(--orange); }
.card-kicker.is-games, .game-card .card-kicker { color: var(--purple); }
.card-kicker.is-racing { color: #a77a00; }
.card-title { font-size: 1.04rem; line-height: 1.45; margin: 0; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--green); }
.card-excerpt { font-size: .88rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; font-size: .8rem; color: var(--muted); margin-top: auto; padding-top: 4px; }
.card-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.rtp-badge {
	position: absolute; right: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px;
	background: rgba(11, 31, 58, .88); color: var(--gold); font-size: .78rem; font-weight: 800; font-family: var(--num); backdrop-filter: blur(4px);
}
.game-card .card-title { font-size: 1rem; }
.vol-wrap { gap: 6px !important; }
.vol-meter { display: inline-flex; gap: 2px; vertical-align: middle; margin-left: 4px; }
.vol-meter i { width: 6px; height: 12px; border-radius: 2px; background: var(--line); }
.vol-meter i.on { background: var(--gold-2); }

/* ==================================================================
   9. 內頁 Hero、麵包屑
   ================================================================== */
.page-hero {
	color: #fff; padding: 22px 0 34px;
	background: radial-gradient(700px 300px at 90% 0, rgba(30, 127, 79, .4), transparent 60%), linear-gradient(160deg, var(--navy), var(--navy-2));
}
.hero-nba { background: radial-gradient(700px 300px at 90% 0, rgba(242, 107, 29, .35), transparent 60%), linear-gradient(160deg, var(--navy), var(--navy-2)); }
.hero-games { background: radial-gradient(700px 300px at 90% 0, rgba(108, 75, 216, .45), transparent 60%), linear-gradient(160deg, #120f33, var(--navy-2)); }
.hero-racing { background: radial-gradient(700px 300px at 90% 0, rgba(232, 185, 49, .3), transparent 60%), linear-gradient(160deg, var(--navy), var(--navy-2)); }
.hero-scores { background: radial-gradient(700px 300px at 90% 0, rgba(229, 72, 59, .28), transparent 60%), linear-gradient(160deg, var(--navy), var(--navy-2)); }
.page-hero h1 { color: #fff; margin: 0 0 8px; }
.h1-sub { display: block; font-size: .5em; font-weight: 600; color: #b8c7db; margin-top: 6px; letter-spacing: .03em; }
.page-hero-row { display: flex; align-items: flex-start; gap: 16px; }
.page-hero-ico {
	width: 56px; height: 56px; border-radius: 14px; flex: none; display: flex; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, .1); color: var(--gold); border: 1px solid rgba(255, 255, 255, .14);
}
.hero-nba .page-hero-ico { color: #ffb07a; }
.hero-games .page-hero-ico { color: #c9b8ff; }
.hero-scores .page-hero-ico { color: #ffb4ad; }
.page-hero-desc, .page-hero-desc p { color: #c9d5e5; max-width: 760px; margin: 0; font-size: 1rem; }
.page-hero-desc p + p { margin-top: .6em; }
.page-hero-desc a { color: var(--gold); }
.breadcrumb { font-size: .82rem; color: #9fb2cc; margin-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; }
.breadcrumb a { color: #c9d5e5; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { margin: 0 6px; opacity: .5; }
.breadcrumb [aria-current] { color: #fff; }
.hero-article .tag { margin-bottom: 12px; }
.hero-article h1 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.2rem); }
.entry-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; color: #b8c7db; font-size: .86rem; }
.entry-meta span { display: inline-flex; align-items: center; gap: 5px; }
.entry-meta a { color: #fff; }
.age-strip {
	display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 16px; text-align: center;
	background: #1a1440; color: #d8d1f5; font-size: .8rem; font-weight: 600;
}
.age-strip .ico { color: var(--gold); }

/* ==================================================================
   10. 文章版面
   ================================================================== */
.content-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; margin-top: 28px; align-items: start; }
.content-main { min-width: 0; }
.content-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--header-h) + 16px); }
.article-box { padding: 32px; }
.article-cover { margin: -32px -32px 26px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.article-cover img { width: 100%; }

/* 內文：用 :where() 降低權重，Elementor 等編輯器的樣式可以直接覆蓋 */
:where(.entry-content) { font-size: 1.04rem; line-height: 1.9; color: var(--text); word-wrap: break-word; }
:where(.entry-content) > *:first-child { margin-top: 0; }
:where(.entry-content) h2 {
	font-size: 1.4rem; margin: 1.8em 0 .7em; padding: 0 0 0 14px; border-left: 5px solid var(--green); line-height: 1.4;
}
:where(.entry-content) h3 { font-size: 1.18rem; margin: 1.6em 0 .6em; color: var(--navy); }
:where(.entry-content) h4 { font-size: 1.04rem; margin: 1.4em 0 .5em; color: var(--green-2); }
:where(.entry-content) p, :where(.entry-content) ul, :where(.entry-content) ol { margin: 0 0 1.2em; }
:where(.entry-content) ul, :where(.entry-content) ol { padding-left: 1.4em; }
:where(.entry-content) li { margin-bottom: .4em; }
:where(.entry-content) li::marker { color: var(--green); }
:where(.entry-content) a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:where(.entry-content) blockquote {
	margin: 1.5em 0; padding: 16px 20px; background: var(--green-soft); border-left: 4px solid var(--green); border-radius: 0 10px 10px 0; color: var(--ink);
}
:where(.entry-content) blockquote p:last-child { margin: 0; }
:where(.entry-content) img { border-radius: 10px; }
:where(.entry-content) figure { margin: 1.5em 0; }
:where(.entry-content) figcaption { font-size: .84rem; color: var(--muted); text-align: center; margin-top: 6px; }
:where(.entry-content) hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
:where(.entry-content) code { background: var(--bg); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
:where(.entry-content) table { width: 100%; border-collapse: collapse; font-size: .94rem; margin: 0; }
:where(.entry-content) th { background: var(--navy); color: #fff; padding: 10px 12px; text-align: left; font-weight: 700; white-space: nowrap; }
:where(.entry-content) td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
:where(.entry-content) tr:nth-child(even) td { background: #fafbfd; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5em 0; border: 1px solid var(--line); border-radius: 10px; }
.table-scroll table { min-width: 480px; }
.entry-content .alignwide, .entry-content .alignfull { margin-left: 0; margin-right: 0; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.4em; }
.entry-content::after { content: ""; display: table; clear: both; }
.wp-block-button__link { border-radius: 999px; }
.page-links { margin-top: 20px; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.page-links a, .page-links > span:not(:first-child) { padding: 4px 12px; border-radius: 8px; border: 1px solid var(--line); }
.tags-row { margin-top: 26px; }
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.share-label { font-weight: 700; font-size: .9rem; color: var(--ink); }
.share-btn { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; border: 0; font-size: .85rem; font-weight: 700; color: #fff; }
.share-btn:hover { color: #fff; opacity: .9; }
.share-btn.wa { background: #25d366; }
.share-btn.fb { background: #1877f2; }
.share-btn.tg { background: #229ed9; }
.share-btn.copy { background: var(--navy); }
.share-btn.copy.is-done { background: var(--green); }
.author-box { display: flex; gap: 16px; align-items: flex-start; padding: 20px 24px; }
.author-box img { border-radius: 50%; flex: none; }
.author-name { font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.author-box p { margin: 0; font-size: .9rem; color: var(--muted); }
.disclaimer { display: flex; gap: 8px; align-items: flex-start; font-size: .82rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.disclaimer .ico { margin-top: 3px; color: var(--muted); }
.related { margin-top: 32px; }
.updated-line { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); margin: 26px 0 0; padding-top: 16px; border-top: 1px solid var(--line-2); }

/* 評論 */
.comments-area { margin-top: 24px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.comment-form .submit { background: var(--green); color: #fff; border: 0; padding: 10px 22px; border-radius: 999px; font-weight: 700; }

/* 側欄 */
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.side-title { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin: 0 0 12px; }
.side-title .ico { color: var(--green); }
.side-more { display: flex; align-items: center; justify-content: flex-end; gap: 2px; margin-top: 10px; font-size: .86rem; font-weight: 700; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li + li { border-top: 1px solid var(--line-2); }
.side-list a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; color: var(--ink); font-size: .92rem; }
.side-list a:hover { color: var(--green); }
.side-list b { font-family: var(--num); color: var(--purple); font-size: .85rem; white-space: nowrap; }
.side-cta {
	display: flex; align-items: center; gap: 14px; color: #fff; border: 0;
	background: linear-gradient(135deg, #2a1a6e, var(--purple));
}
.side-cta:hover { color: #fff; filter: brightness(1.08); }
.side-cta .ico { color: var(--gold); }
.side-cta strong { display: block; font-size: 1rem; }
.side-cta small { color: #d8d1f5; }
.rg-box p { font-size: .88rem; color: var(--muted); margin: 0; }
.rg-box .side-title .ico { color: var(--red); }
.toc-box ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc-box li { counter-increment: toc; }
.toc-box li a { display: flex; gap: 8px; padding: 6px 8px; border-radius: 8px; color: var(--text); font-size: .9rem; line-height: 1.5; }
.toc-box li a::before { content: counter(toc); flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: .72rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.toc-box li a:hover, .toc-box li a.is-active { background: var(--bg); color: var(--green); }

/* 小型文章列 */
.post-rows { display: flex; flex-direction: column; }
.post-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); color: var(--text); }
.post-row:last-child { border-bottom: 0; }
.post-row:hover .pr-title { color: var(--green); }
.pr-thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; }
.pr-ph { display: flex; align-items: center; justify-content: center; background: var(--green-soft); color: var(--green); }
.pr-body { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.pr-title { font-weight: 700; color: var(--ink); font-size: .93rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pr-meta { font-size: .76rem; color: var(--muted); }

/* ==================================================================
   11. 遊戲頁
   ================================================================== */
.hero-game { padding-bottom: 40px; }
.game-top { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 36px; align-items: center; }
.game-cover { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: #241a5c; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); position: relative; }
.game-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-ph { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; color: #d8d1f5; font-weight: 800; text-align: center; padding: 20px; background: linear-gradient(135deg, #2a1a6e, var(--purple)); }
.game-info { min-width: 0; }
.game-kicker { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.spec {
	display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
	padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
}
.spec-ico { grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(232, 185, 49, .15); color: var(--gold); }
.spec .k { font-size: .76rem; color: #b8c7db; }
.spec .v { font-weight: 800; color: #fff; font-family: var(--num); display: flex; align-items: center; flex-wrap: wrap; gap: 4px; line-height: 1.4; }
.spec .vol-meter i { background: rgba(255, 255, 255, .2); }
.spec .vol-meter i.on { background: var(--gold); }
.demo-wrap { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #1a1440, #3b1f8f); }
.demo-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo-start {
	position: absolute; inset: 0; width: 100%; border: 0; background: transparent; color: #fff;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.demo-start .ico { width: 72px; height: 72px; padding: 16px; border-radius: 50%; background: var(--gold); color: var(--navy); transition: transform .2s; }
.demo-start:hover .ico { transform: scale(1.08); }
.demo-start strong { font-size: 1.1rem; }
.demo-start small { color: #c9b8ff; }
.proscons { margin-bottom: 20px; }
.proscons .box { margin: 0; padding: 22px; }
.proscons ul { list-style: none; margin: 0; padding: 0; }
.proscons li { position: relative; padding: 6px 0 6px 22px; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.proscons li:last-child { border-bottom: 0; }
.proscons li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 9px; height: 9px; border-radius: 50%; }
.pros { border-top: 4px solid var(--green) !important; }
.pros li::before { background: var(--green); }
.cons { border-top: 4px solid #f59e0b !important; }
.cons .box-title .ico { color: #d97706; }
.cons li::before { background: #f59e0b; }

.filter-bar {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; padding: 12px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.filter-search { position: relative; flex: 1 1 220px; display: flex; align-items: center; }
.filter-search .ico { position: absolute; left: 12px; color: var(--muted); }
.filter-search input { width: 100%; height: 38px; padding: 0 12px 0 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); }
.filter-search input:focus { outline: none; border-color: var(--purple); background: #fff; }
.filter-count { font-size: .85rem; color: var(--muted); margin-left: auto; }
.rg-banner { display: flex; gap: 16px; align-items: flex-start; padding: 20px 24px; border-radius: var(--radius); background: var(--red-soft); border: 1px solid #f8c9c4; }
.rg-banner > .ico { color: var(--red); flex: none; }
.rg-banner strong { display: block; color: var(--ink); margin-bottom: 4px; }
.rg-banner p { margin: 0; font-size: .9rem; }

/* ==================================================================
   12. 其他版塊
   ================================================================== */
.race-banner {
	display: flex; align-items: center; gap: 20px; padding: 22px 26px; border-radius: var(--radius); color: #fff;
	background: linear-gradient(120deg, #6b4e00, var(--gold-2));
}
.race-banner:hover { color: #fff; filter: brightness(1.05); }
.race-ico { width: 60px; height: 60px; border-radius: 16px; background: rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center; flex: none; }
.race-body { flex: 1; display: flex; flex-direction: column; line-height: 1.45; }
.race-body .label { font-size: .8rem; opacity: .85; font-weight: 600; }
.race-body strong { font-size: 1.2rem; }

.tools { gap: 16px; }
.tool {
	display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
	padding: 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--text); box-shadow: var(--shadow); transition: all .15s;
}
.tool:hover { border-color: var(--green); transform: translateY(-2px); color: var(--text); }
.tool-ico { grid-row: 1 / 3; width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--green-soft); color: var(--green); }
.tool strong { color: var(--ink); font-size: .98rem; line-height: 1.35; }
.tool > span:last-child { font-size: .8rem; color: var(--muted); line-height: 1.45; }

.tool-box .tool-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tool-form label { display: flex; flex-direction: column; gap: 6px; font-size: .86rem; font-weight: 700; color: var(--ink); }
.tool-form input, .tool-form select { height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 1rem; font-weight: 500; width: 100%; }
.tool-form input:focus, .tool-form select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(30, 127, 79, .15); }
.tool-result {
	margin-top: 18px; padding: 18px 20px; border-radius: 12px; font-size: 1.15rem; font-weight: 800; color: var(--navy);
	background: linear-gradient(90deg, var(--gold-soft), #fff); border: 1px solid #f1dc94; font-family: var(--num);
}

.faq-box details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq-box summary {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; cursor: pointer;
	font-weight: 700; color: var(--ink); list-style: none;
}
.faq-box summary::-webkit-details-marker { display: none; }
.faq-box summary .ico { color: var(--green); transition: transform .2s; flex: none; }
.faq-box details[open] summary .ico { transform: rotate(180deg); }
.faq-box details[open] summary { border-bottom: 1px solid var(--line-2); }
.faq-box details p { margin: 0; padding: 14px 20px 18px; color: var(--text); }

.empty-state { text-align: center; padding: 48px 20px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty-state > .ico { color: #c0c8d4; margin: 0 auto 10px; display: block; }
.empty-state .search-form { margin: 16px auto 0; }

.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; gap: 4px; min-width: 42px; height: 42px; padding: 0 14px; justify-content: center;
	border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 700;
}
.pagination .page-numbers.current { background: var(--green); border-color: var(--green); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--green); color: var(--green); }
.pagination .dots { border: 0; background: none; }

/* ==================================================================
   13. 頁尾
   ================================================================== */
.site-footer { background: var(--navy); color: #b8c7db; margin-top: 56px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-top: 44px; padding-bottom: 36px; }
.footer-about .brand { margin-bottom: 14px; }
.footer-about .brand-logo { width: 36px; height: 36px; }
.footer-about p { color: #9fb2cc; font-size: .88rem; }
.footer-help { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); font-size: .84rem; }
.footer-help .ico { color: var(--gold); margin-top: 2px; }
.footer-help strong { display: block; color: #fff; }
.footer-help a { color: var(--gold); font-weight: 700; }
.footer-title { color: #fff; font-size: 1rem; margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #b8c7db; }
.footer-col a:hover { color: var(--gold); }
.copyright { border-top: 1px solid rgba(255, 255, 255, .08); padding: 16px 0; font-size: .8rem; color: #8396b0; }
.copyright .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; }

/* 手機底部導覽 */
.mobile-tabbar {
	display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
	background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(11, 31, 58, .08);
	padding-bottom: env(safe-area-inset-bottom);
}
.mobile-tabbar a {
	flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	height: 58px; color: var(--muted); font-size: .7rem; font-weight: 700;
}
.mobile-tabbar a.active { color: var(--green); }
.mobile-tabbar a.active .ico { stroke-width: 2.2; }

/* ==================================================================
   14. Elementor 相容
   ================================================================== */
.elementor-page .site-main > .container.narrow { max-width: var(--wrap); }
.elementor-page .site-main .box:has(.elementor) { padding: 0; background: none; border: 0; box-shadow: none; }
.elementor-page .updated-line { display: none; }
.elementor-template-full-width .site-main { padding-bottom: 0; }
.elementor .entry-content, .elementor-widget-container { line-height: inherit; }

/* ==================================================================
   15. 響應式
   ================================================================== */
@media (max-width: 1100px) {
	.main-nav > ul > li > a { padding: 0 9px; font-size: .94rem; }
	.brand-tag { display: none; }
	.game-top { grid-template-columns: 300px minmax(0, 1fr); gap: 26px; }
}
@media (max-width: 1024px) {
	.nav-toggle { display: inline-flex; }
	.main-nav { display: none; }
	.header-inner { gap: 10px; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-about { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
	:root { --header-h: 58px; }
	body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
	.mobile-tabbar { display: flex; }
	.hero-inner { grid-template-columns: 1fr; gap: 26px; padding-top: 32px; padding-bottom: 48px; }
	.pillars { grid-template-columns: repeat(2, 1fr); }
	.grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.content-wrap { grid-template-columns: 1fr; }
	.content-side { position: static; }
	.game-top { grid-template-columns: 1fr; }
	.game-cover { max-width: 460px; aspect-ratio: 16 / 9; }
	.spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.compact .match-row .m-extra { display: none; }
	.tool-box .tool-form { grid-template-columns: 1fr 1fr; }
	.tool-box .tool-form label:last-child { grid-column: 1 / -1; }
}
@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
@media (max-width: 640px) {
	body { font-size: 15px; }
	.container { padding-left: 14px; padding-right: 14px; }
	.live-pill { padding: 6px 10px; font-size: .8rem; }
	.brand-logo { width: 34px; height: 34px; }
	.brand-name { font-size: 1.08rem; }
	.hero h1 { font-size: 1.75rem; }
	.hero-lead { font-size: .98rem; }
	.hero-panel { padding: 14px; border-radius: 14px; }
	.btn-row .btn { flex: 1; }
	.pillars { gap: 10px; margin-top: -24px; }
	.pillar { padding: 14px; }
	.pillar > span:not(.pillar-ico) { display: none; }
	.pillar-ico { width: 40px; height: 40px; }
	.grid-2, .grid-3 { grid-template-columns: 1fr; }
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.tools.grid-4 { grid-template-columns: 1fr; }
	.section { margin-top: 30px; }
	.card-box { padding: 14px 10px; }
	.box, .article-box { padding: 20px 16px; }
	.article-cover { margin: -20px -16px 20px; }
	.quick-grid { grid-template-columns: repeat(2, 1fr); }
	.game-card .card-body { padding: 10px 12px 12px; }
	.game-card .card-title { font-size: .92rem; }
	.card-meta { font-size: .74rem; }
	.page-hero { padding: 16px 0 26px; }
	.page-hero-ico { width: 44px; height: 44px; border-radius: 12px; }
	.page-hero-ico .ico { width: 22px; height: 22px; }
	.page-hero-desc, .page-hero-desc p { font-size: .92rem; }
	.spec-grid { gap: 8px; }
	.spec { padding: 10px; column-gap: 8px; }
	.spec-ico { width: 30px; height: 30px; }

	/* 比分列：時間｜主隊｜比分｜客隊，聯賽同連結放第二行 */
	.match-row {
		grid-template-columns: 40px minmax(0, 1fr) 52px minmax(0, 1fr);
		grid-template-areas: "time home score away" "time meta meta meta";
		row-gap: 3px; column-gap: 5px; padding: 10px 0; font-size: .86rem;
	}
	.m-time { grid-area: time; font-size: .8rem; }
	.m-home { grid-area: home; }
	.m-score { grid-area: score; }
	.m-away { grid-area: away; }
	.m-league { grid-area: meta; justify-self: start; }
	.match-row .m-extra { grid-area: meta; grid-column: auto; justify-self: end; }
	.m-league:empty { display: none; }
	.m-team { gap: 6px; }
	.m-team { gap: 5px; }
	.m-team .team-logo, .m-team .team-badge { width: 16px; height: 16px; font-size: .5rem; }
	.match-row .m-round { display: inline; }
	.m-score b { min-width: 22px; font-size: .92rem; }
	.live-badge { font-size: .7rem; padding: 2px 5px; }
	.compact .match-row { grid-template-areas: "time home score away"; grid-template-columns: 42px minmax(0, 1fr) 52px minmax(0, 1fr); }

	.score-toolbar { gap: 8px; }
	.hk-clock { margin-left: 0; width: 100%; }
	.day-chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 2px; }
	.day-chips .chip { flex: none; }
	.league-select, .league-select select { width: 100%; }
	.tabs-lg { display: flex; }
	.tabs-lg .tab { flex: 1; justify-content: center; padding: 10px; }
	.nba-grid { grid-template-columns: 1fr; }
	.filter-bar select { flex: 1; }
	.filter-bar .filter-search { flex: 1 1 100%; }
	.filter-bar label:not(.filter-search) { flex: 1 1 0; min-width: 0; }
	.filter-bar label select { width: 100%; }
	.filter-count { width: 100%; margin: 0; }
	.tool-box .tool-form { grid-template-columns: 1fr; }
	.tool-result { font-size: 1rem; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 32px; }
	.copyright .container { flex-direction: column; }
	.race-banner { flex-wrap: wrap; padding: 18px; }
	.race-banner .btn { width: 100%; }
	.author-box { padding: 16px; }
	.rg-banner { padding: 16px; }
	.entry-meta { gap: 4px 12px; font-size: .8rem; }
	:where(.entry-content) { font-size: 1rem; }
	:where(.entry-content) h2 { font-size: 1.22rem; }
}
@media (max-width: 380px) {
	.live-pill { display: none; }
	.grid-4 { grid-template-columns: 1fr 1fr; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
	.site-header, .site-footer, .mobile-tabbar, .content-side, .share-bar, .notice-bar, .drawer { display: none !important; }
	body { background: #fff; padding: 0; }
	.page-hero { background: none; color: #000; }
	.page-hero h1 { color: #000; }
}
