/* 全台大串聯配色：主色海洋綠 #0f8b72（業主 11/22 試過靛藍後改回），背景雲海日出（業主 11/22 指定），選單半透明深海綠。主色底上一律白字、加一點深色陰影；AI 與重點強調字金色。
   變數名沿用台北版（--orange＝主色），lib/ 跟其他版同步時比較好對 */
:root {
  --orange: #0f8b72; /* 主色：海洋綠（白字對比約 4.3:1，白字加陰影） */
  --orange-hi: #ffd54f; /* 金色：深底上的重點字 */
  --orange-deep: #0b6e5a; /* 主色按下、滑過（白字對比約 5.9:1） */
  --orange-soft: #ddf5ee;
  --accent-line: #9fe8d4; /* 選單框線與目前這則 */
  --on-accent: #fff;
  --gold: #ffd23f;
  --navy: #0f4c46; /* 選單捲軸底 */
  --night: #071f1d;
  --panel: rgba(10, 82, 76, .74); /* 半透明深海綠：看得到後面的雲海日出 */
  --card: rgba(0, 40, 38, .36); /* 選單裡分頁與清單卡片的底 */
  --panel-line: rgba(255, 255, 255, .16);
  --glass: rgba(255, 255, 255, .08);
  --text: #f3fbfc;
  --text-hi: #ecfffa;
  --muted: #dff5ef;
  --ink: #10302c;
  --red: #c8372d;
  --snap: cubic-bezier(.23, 1, .32, 1);   /* 快起慢收：進場、回饋 */
  --swap: cubic-bezier(.77, 0, .175, 1);  /* 對稱：畫面上的移動 */
  --top-h: 56px;
  --foot-h: 34px;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--text);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--night); }
/* 桌機：頂列＋版面＋頁尾剛好一個畫面高，頁尾字多換行也不會多出捲軸 */
body { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
button { font: inherit; color: inherit; }
a { color: inherit; }

/* ---------- 背景 ---------- */
.bgscene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
/* 背景：<tainan-city>（lib/tainan-city.js，台南可愛城市意象，業主 11/09） */
.bgshade {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  /* 背景是淺色：只在上下留一點點深色，頂列和頁尾的邊比較清楚 */
  background: linear-gradient(180deg, rgba(8, 40, 38,.12) 0, rgba(8, 40, 38, 0) 12%, rgba(8, 40, 38, 0) 80%, rgba(8, 40, 38,.16) 100%);
}
.top, .layout, .foot { position: relative; z-index: 1; }

/* ---------- 頂列 ---------- */
.top {
  height: var(--top-h); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 20px; background: var(--orange); color: var(--on-accent);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand b { font-size: 19px; font-weight: 900; letter-spacing: .04em; white-space: nowrap; }
.brand .en { font-family: "Arial Black", "Noto Sans TC", sans-serif; letter-spacing: .06em; }
.brand .ai { color: var(--gold); text-shadow: 0 1px 2px rgba(0, 0, 0, .6), 0 0 6px rgba(0, 0, 0, .25); } /* 主色底上的強調字：金色（同高雄） */
.brand .dot { font-size: .7em; vertical-align: .12em; margin: 0 .1em; }
.official { font-size: 14px; font-weight: 700; white-space: nowrap; text-decoration: none; }
.official .en { margin-left: 4px; }
@media (hover: hover) and (pointer: fine) { .official:hover .en { text-decoration: underline; } }
/* 右上社群連結（F-C18）：前三個是陳亭妃本人，最後一個是台灣味的 YouTube。四格同大小、用各平台自己的顏色 */
.links { flex: none; display: flex; align-items: center; gap: 6px; }
.links .official { margin-right: 6px; }
.links a:not(.official) { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; color: #fff; text-decoration: none; transition: transform .15s var(--snap); box-shadow: 0 2px 4px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .12); } /* 黑色陰影：YouTube 紅跟主色太近（同高雄 11/09） */
.links svg { display: block; width: 18px; height: 18px; fill: currentColor; }
.links .fb { background: #1877f2; }
.links .ig { background: linear-gradient(45deg, #feda75, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5); }
.links .th { background: #000; }
.links .yt { background: #f00; }
.links .yt:not([href]) { cursor: default; }
@media (hover: hover) and (pointer: fine) { .links a[href]:not(.official):hover { transform: translateY(-1px) scale(1.06); } }

/* ---------- 版面：左 30%、右 70% ---------- */
.layout {
  display: grid; grid-template-columns: 30% 70%;
  flex: 1; min-height: 0;
}

/* ---------- 左：議題選單 ---------- */
.menu { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--panel-line); background: var(--panel); text-shadow: 0 1px 2px rgba(0, 30, 28, .45); }
/* 選到的分頁拉寬、顯示全名；沒選到的縮寫（理念／政見／澄清） */
.tabs { display: flex; padding: 12px 12px 0; gap: 6px; }
.tabs button {
  flex: 1 1 0; min-width: 0; border: 0; border-radius: 10px 10px 0 0; padding: 8px 2px; background: var(--card); cursor: pointer; line-height: 1.3; word-break: keep-all;
  white-space: nowrap; overflow: hidden; /* 拉寬的動畫中全名不先擠成兩行（不然下面的清單會跳一下） */
  font-weight: 700; font-size: 15px; color: var(--muted); transition: flex-grow .25s var(--swap), background-color .2s var(--snap), color .2s var(--snap);
}
.tabs button[aria-selected="true"] { flex-grow: 2.4; background: var(--orange); color: var(--on-accent); }
.tabs button .full, .tabs button[aria-selected="true"] .short { display: none; }
.tabs button[aria-selected="true"] .full { display: inline; }
.tabs button .n { display: block; font-weight: 500; font-size: 12px; opacity: .8; } /* 則數放第二行 */
@media (min-width: 821px) and (max-width: 960px) { .tabs button { white-space: normal; } } /* 選單太窄：寧可換行也不要切字 */
.preview-note { margin: 0; padding: 8px 14px; font-size: 12px; background: rgba(160, 240, 220, .14); color: #c4f5e8; }
.list { list-style: none; margin: 0; padding: 10px 12px 16px; overflow-y: auto; flex: 1; border-top: 3px solid var(--accent-line); scrollbar-width: thin; scrollbar-color: var(--accent-line) var(--navy); }
/* Safari 還不支援 scrollbar-color */
.list::-webkit-scrollbar { width: 10px; height: 10px; }
.list::-webkit-scrollbar-track { background: var(--navy); }
.list::-webkit-scrollbar-thumb { background: var(--accent-line); border-radius: 5px; border: 2px solid var(--navy); }
.list li + li { margin-top: 8px; }
.item {
  width: 100%; display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; text-align: left;
  padding: 8px; border: 1px solid var(--panel-line); border-radius: 12px; background: var(--card); cursor: pointer;
  transition: border-color .16s var(--snap), background-color .16s var(--snap), transform .12s var(--snap);
}
.item:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .item:hover { border-color: var(--accent-line); background: rgba(255, 255, 255, .12); }
}
.item[aria-current="true"] { border-color: var(--accent-line); background: rgba(10, 110, 95, .5); }
.thumb { width: 96px; height: 72px; border-radius: 8px; object-fit: cover; background: var(--orange-soft); display: block; }
.thumb.fc { object-fit: contain; padding: 4px; } /* 去背貼紙：整張放進來 */
.item .txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.item .t { font-weight: 700; font-size: 15px; line-height: 1.35; text-wrap: balance; color: var(--text-hi); }
.item .pre-s { display: none; }
.item .s { font-size: 12.5px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .d { font-size: 11.5px; color: var(--muted); }
.item .draft { align-self: flex-start; font-size: 11px; padding: 1px 6px; border-radius: 4px; background: rgba(255, 255, 255, .14); color: var(--muted); }
.empty { padding: 24px 8px; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ---------- 右：展演區 ---------- */
/* 標題在左上、操作列在右上；下面是動畫畫面，最下面是娃娃＋拉滿寬的字幕泡泡 */
.stage {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "head ctl" "screen screen" "narr narr";
  min-width: 0; min-height: 0; padding: 14px 20px 12px; gap: 10px 16px; container: stage / inline-size;
}
.stage-head { grid-area: head; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); justify-self: start; padding: 6px 12px; border-radius: 12px; background: rgba(8, 40, 38, .66); } /* 背景亮的地方：字墊深底才看得清楚 */
.kind-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; background: var(--orange); color: var(--on-accent); text-shadow: none; }
.kind-badge:empty { display: none; }
.kind-badge.factcheck { background: var(--red); color: #fff; }
.topic-title { margin: 4px 0 0; font-size: 24px; font-weight: 900; line-height: 1.3; color: var(--text-hi); }
.topic-sub { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.topic-sub:empty { display: none; }
.source { flex: none; font-size: 13px; color: var(--orange-hi); }

.screen { grid-area: screen; position: relative; min-height: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--panel-line); }
.screen:has(.scene:not([hidden])) { background: rgba(255, 255, 255, .6); } /* 半透明：透出背景（同其他版） */
.scene { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .3s var(--snap); }
.scene.ready { opacity: 1; }
/* 還沒選議題：畫面透明，看得到背景；字放左上角，不擋背景主體 */
.welcome { position: absolute; left: 24px; top: 20px; right: 24px; font-size: 20px; line-height: 1.8; font-weight: 700; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); }
.welcome p { margin: 0; display: inline-block; padding: 4px 16px; border-radius: 14px; background: rgba(8, 40, 38, .66); } /* 背景太亮：字墊一塊深色，強調字才看得清楚 */
.welcome .hl { color: var(--orange-hi); }
.welcome .arrow::before { content: "← "; } /* 選單在左邊；手機版選單在上面，改成 ↑ */

/* ---------- 解說列：娃娃＋字幕＋控制 ---------- */
.narrator { grid-area: narr; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; }
.doll { --doll-size: 124px; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .45)); }
.bubble {
  position: relative; align-self: stretch; display: flex; align-items: center; color: var(--ink);
  background: rgba(255, 255, 255, .8); border-radius: 14px; padding: 10px 16px; min-height: 76px; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); /* 半透明：透出背景（業主 11/07） */
}
.bubble::before {
  content: ""; position: absolute; left: -8px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  background: rgba(255, 255, 255, .8); transform: rotate(45deg); border-radius: 2px;
  clip-path: polygon(0 0, 0 100%, 100% 100%); /* 只留框外那半，半透明才不會跟框疊出一塊更白的 */
}
.say { position: relative; margin: 0; font-size: 18px; line-height: 1.6; font-weight: 500; max-height: 6.4em; overflow-y: auto; }
.say.swap { animation: say-in .25s var(--snap); }
@keyframes say-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.controls { grid-area: ctl; align-self: end; display: grid; grid-template-columns: auto auto auto auto; gap: 6px; justify-items: stretch; }
.ctl {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 40px; padding: 0 12px;
  border: 1px solid var(--panel-line); border-radius: 10px; background: var(--panel); cursor: pointer; font-size: 14px; font-weight: 700;
  transition: background-color .16s var(--snap), transform .12s var(--snap), opacity .16s var(--snap);
}
.ctl:active:not(:disabled) { transform: scale(.97); }
.ctl:disabled { opacity: .4; cursor: default; }
.ctl svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ctl.play { background: var(--orange); border-color: var(--orange); color: var(--on-accent); min-width: 116px; }
.ctl.play .i-play { fill: currentColor; stroke: none; }
.ctl.play .i-pause, .ctl.play[aria-pressed="true"] .i-play { display: none; }
.ctl.play[aria-pressed="true"] .i-pause { display: block; }
.ctl.sound { padding: 0 10px; }
.ctl.sound .i-off, .ctl.sound[aria-pressed="false"] .i-on { display: none; }
.ctl.sound[aria-pressed="false"] .i-off { display: block; }
.ctl.sound[aria-pressed="false"] { opacity: .7; }
.ctl[hidden] { display: none; }
.ctl .shaft { display: none; } /* 展演區窄的時候才出現：‹ › 變成 ← → */
/* 展演區窄（約視窗 1550px 以下、含手機）：上一步／下一步只留 ← →，右上角才放得下，標題不會被擠 */
@container stage (max-width: 900px) {
  .ctl.prev span, .ctl.next span { display: none; }
  .ctl .shaft { display: inline; }
  .ctl.prev svg, .ctl.next svg { width: 22px; height: 22px; }
}
.ctl.yt { grid-column: 1 / -1; color: inherit; text-decoration: none; }
.ctl.yt svg rect { fill: #ff0033; stroke: none; }
.ctl.yt svg path { fill: #fff; stroke: none; }
@media (hover: hover) and (pointer: fine) {
  .ctl:hover:not(:disabled) { background: rgba(255, 255, 255, .16); }
  .ctl.play:hover:not(:disabled) { background: var(--orange-deep); }
}
.dots { grid-column: 1 / -1; display: flex; justify-content: center; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; flex-wrap: wrap; }
.dots button {
  width: 22px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(160, 240, 220, .35); cursor: pointer;
  transition: background-color .2s var(--snap), transform .2s var(--snap);
}
.dots button[aria-current="step"] { background: var(--orange); transform: scaleX(1.35); }
.dots button.done { background: #8fdcc6; }

.foot {
  min-height: var(--foot-h); display: flex; align-items: center; justify-content: center; gap: 4px 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted); border-top: 1px solid var(--panel-line); background: rgba(8, 40, 38, .88); padding: 0 12px;
}
.foot a { color: var(--muted); }
.foot .maker { color: var(--text); font-weight: 700; }

/* ---------- 手機：一頁式（F018）——整頁剛好一個畫面高、不捲動，選單、動畫、娃娃＋字幕、操作列都看得到 ---------- */
/* 由上到下：精簡站名列 → 分頁＋橫向議題列 → 動畫（吃掉剩下的高度）→ 娃娃＋字幕（固定 4 行高）→ 操作列＋圓點 → 兩行頁尾 */
@media (max-width: 820px) {
  body { overflow: hidden; }
  .top { --top-h: 30px; padding: 0 10px; }
  .brand b { font-size: clamp(10.5px, 3.35vw, 14px); letter-spacing: .02em; } /* 窄手機縮字，才放得下右上四個圖示（站名定了要再看 320 寬） */
  .official { display: none; }
  .links { gap: 3px; }
  .links a:not(.official) { width: 20px; height: 20px; border-radius: 5px; }
  .links svg { width: 14px; height: 14px; }
  .layout { display: flex; flex-direction: column; }
  .menu { flex: none; border-right: 0; border-bottom: 1px solid var(--panel-line); }
  .tabs { padding: 6px 8px 0; gap: 4px; }
  .tabs button { font-size: 13.5px; padding: 6px 2px; }
  .tabs button .n { display: none; }
  .list { display: flex; flex: none; gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 6px 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .list::-webkit-scrollbar { display: none; }
  .list li { flex: none; width: 152px; scroll-snap-align: start; }
  .list li + li { margin-top: 0; }
  .item { grid-template-columns: 40px 1fr; gap: 6px; height: 46px; padding: 3px 6px 3px 3px; border-radius: 10px; }
  .thumb { width: 40px; height: 38px; border-radius: 7px; }
  .thumb.fc { padding: 2px; }
  .item .t { font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .item .s, .item .d, .item .pre-l { display: none; }
  .item .pre-s { display: inline; color: var(--muted); }
  .empty { padding: 8px; font-size: 13px; }

  /* 標題、副標題議題動畫裡就有，這裡收起來；「看出處」搬到操作列最右邊 */
  .stage {
    flex: 1; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr) auto auto;
    grid-template-areas: "screen screen" "narr narr" "ctl src"; padding: 5px 8px 4px; gap: 5px 6px;
  }
  .stage-head { display: contents; }
  .stage-head > div { display: none; }
  .source {
    grid-area: src; align-self: start; display: inline-flex; align-items: center; height: 38px; padding: 0 8px; border-radius: 10px;
    border: 1px solid var(--panel-line); background: var(--panel); font-size: 12.5px; font-weight: 700; text-decoration: none; text-shadow: none; white-space: nowrap;
  }
  .source[hidden] { display: none; }
  .stage:has(.source[hidden]) .controls { grid-column: 1 / -1; }
  .screen { border-radius: 12px; }
  .welcome { left: 16px; top: 14px; right: 16px; font-size: 17px; }
  .welcome .arrow::before { content: "↑ "; }
  .narrator { gap: 8px; }
  .doll { --doll-size: 60px; }
  .bubble { height: 96px; min-height: 0; padding: 6px 10px; border-radius: 12px; }
  .bubble::before { left: -6px; width: 12px; height: 12px; margin-top: -6px; }
  .say { font-size: 15px; line-height: 1.45; max-height: 100%; } /* 太長 app.js 會縮字（最小 13px），還放不下才捲 */
  .controls { display: flex; flex-wrap: wrap; gap: 5px; align-self: start; }
  .ctl { height: 38px; padding: 0 8px; }
  .ctl.play { flex: 1; min-width: 0; white-space: nowrap; }
  .ctl.yt { padding: 0 8px; }
  .ctl.yt span { display: none; }
  .dots { flex-basis: 100%; margin: 0; gap: 5px; }
  .dots li { display: flex; }
  .dots button { width: 16px; height: 6px; }
  .foot { min-height: 0; padding: 3px 8px; gap: 0 8px; font-size: 10.5px; line-height: 1.4; text-align: center; }
  .foot > :not(.maker):not(.license):not(region-switch) { display: none; }
  .foot .license .long { display: none; }
}
@media (min-width: 821px) { .foot .license .short { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .say.swap { animation-name: say-fade; }
  @keyframes say-fade { from { opacity: 0; } to { opacity: 1; } }
}

/* 主色底上的白字：#0f8b72 白字對比約 4.3:1，加深色陰影 */
.top { text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.tabs button[aria-selected="true"], .ctl.play, .kind-badge { text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }

/* ---------- 右上 YouTube 行動呼籲（業主 11/11，六版同一段，規格見 khh/docs/規格.md F-K20） ----------
   原本的 YouTube 小圖示改成紅色膠囊，連到家鄉播放清單第一支影片：在影片頁按讚、訂閱，才會算進 PK 頁（pk.taiwanwell.com）的家鄉分數。
   電腦「▶ 按讚訂閱・幫○○加分」、手機「▶ 按讚訂閱」；外圈光暈慢慢擴散，吸引注意。 */
.links .yt.yt-cta {
  display: inline-flex; align-items: center; gap: 4px; width: auto; height: 28px; padding: 0 11px 0 8px;
  border-radius: 999px; background: #ff0033; color: #fff; font-size: 13px; font-weight: 900; line-height: 1;
  letter-spacing: .02em; white-space: nowrap; text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .45); animation: yt-cta-pulse 2.4s ease-out infinite;
}
.links .yt.yt-cta svg { width: 16px; height: 16px; flex: none; }
.yt-cta .cta-short { display: none; }
@keyframes yt-cta-pulse {
  0% { box-shadow: 0 2px 6px rgba(0, 0, 0, .45), 0 0 0 0 rgba(255, 0, 51, .7); }
  70%, 100% { box-shadow: 0 2px 6px rgba(0, 0, 0, .45), 0 0 0 9px rgba(255, 0, 51, 0); }
}
.yt-cta .cta-mini { display: none; }
@media (max-width: 820px) {
  .links .yt.yt-cta { height: 20px; padding: 0 7px 0 5px; gap: 2px; font-size: 10.5px; }
  .links .yt.yt-cta svg { width: 12px; height: 12px; }
  .yt-cta .cta-long { display: none; }
  .yt-cta .cta-short { display: inline; }
}
/* 手機頁首很擠（站名＋三個社群圖示＋這顆）：430 寬以下縮成「▶ 訂閱」，360 以下只剩紅色 ▶（完整說明在 aria-label／title）。
   台北頁首右邊只有這一顆（.roomy），寬鬆一級：430 以下仍是「按讚訂閱」，360 以下才縮成「訂閱」。 */
@media (max-width: 430px) {
  .links .yt.yt-cta:not(.roomy) { padding: 0 6px 0 4px; gap: 1px; font-size: 10px; }
  .yt-cta:not(.roomy) .cta-short { display: none; }
  .yt-cta:not(.roomy) .cta-mini { display: inline; }
}
@media (max-width: 360px) {
  .links .yt.yt-cta:not(.roomy) { width: 20px; padding: 0; justify-content: center; }
  .yt-cta:not(.roomy) .cta-mini { display: none; }
  .yt-cta.roomy .cta-short { display: none; }
  .yt-cta.roomy .cta-mini { display: inline; }
}
@media (prefers-reduced-motion: reduce) { .links .yt.yt-cta { animation: none; } }

/* ---------- 每則的「到 YouTube 按讚」行動呼籲（業主 11/11，六版同一段，規格見 khh/docs/規格.md F-K21） ----------
   原本灰色的「在 YouTube 上觀看」改成紅底按鈕，網址不變（這則的 YouTube 影片）。網站上沒辦法直接幫 YouTube 影片按讚，
   所以帶人到影片頁按：每支影片的讚 +2，算進 PK 頁（pk.taiwanwell.com）的家鄉分數。手機只剩「按讚 +2」。 */
.ctl.yt.yt-like { background: #ff0033; border-color: #ff0033; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.ctl.yt.yt-like svg rect { fill: #fff; }
.ctl.yt.yt-like svg path { fill: #ff0033; }
.ctl.yt.yt-like em { font-style: normal; color: #ffe066; }
.ctl.yt.yt-like .yt-short { display: none; }
@media (hover: hover) and (pointer: fine) { .ctl.yt.yt-like:hover { background: #d9002b; } }
@media (max-width: 820px) {
  .ctl.yt.yt-like .yt-long { display: none; }
  .ctl.yt.yt-like .yt-short { display: inline; }
}

/* ---------- 全台大串聯：12 個縣市分頁（2026-11-22 改兩排，業主：太擠就雙層） ---------- */
/* 兩排、每排 6 格；桌機每格兩行：縣市＋候選人，窄螢幕和手機只顯示縣市（候選人在舞台左上的小標） */
.layout { grid-template-columns: 32% 68%; } /* 業主 11/22：選單太擠可以調左右比例 ⇒ 左 30%→32%，雙人分頁的名字放得下 */
.tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; padding: 10px 10px 0; }
.tabs button { border-radius: 8px; padding: 6px 2px 5px; font-size: 15px; transition: background-color .2s var(--snap), color .2s var(--snap); }
.tabs button .a { display: block; }
.tabs button .nm { display: block; font-size: 10px; font-weight: 500; letter-spacing: -.5px; opacity: .85; overflow: hidden; text-overflow: ellipsis; }
.tabs button[aria-selected="true"] .nm { opacity: 1; }
.item .tag { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: var(--orange); color: #fff; }
.item .tag.clear { background: #2f6fd1; }
.item .tag.vision { background: #b8860b; }
@media (max-width: 1399px) { .tabs button .nm { display: none; } } /* 1366 筆電以下名字會被切，只顯示縣市 */
@media (max-width: 820px) {
  .tabs { gap: 3px; padding: 6px 8px 0; }
  .tabs button { padding: 5px 1px; font-size: 14px; }
}
