/* 2026 Meet Taipei 互動地圖(新版)。單一淺色主題:地圖 SVG 是白底設計,頁首用地圖裡的深藍。 */
:root {
  --navy: #1f286f;
  --navy-2: #2c3787;
  --magenta: #e3007f;
  --spot: #ffd400;
  --ink: #1b2033;
  --ink-2: #4a5068;
  --mute: #737a92;
  --line: #e2e5ee;
  --soft: #f1f3f8;
  --card: #ffffff;
  --bg: #f6f7fb;
  --c-key: #e3007f;
  --c-highlight: #c9a94d;
  --c-global: #187fc3;
  --c-theme: #284b7f;
  --font: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", sans-serif;
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --sheet-h: 52%;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); display: flex; flex-direction: column; overflow: hidden; -webkit-text-size-adjust: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: var(--magenta); }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- 頁首 ---------- */
/* 11/17 簡報 P2:左邊橫式標準字、右邊 Meet × FUNTEK 與中／EN(標語與日期圖拿掉;手機的 Meet × FUNTEK 在地圖下方,見 .sig) */
.top { background: var(--navy); color: #fff; display: flex; align-items: center; gap: 16px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) 14px max(20px, env(safe-area-inset-left, 0px)); }
.brand { display: flex; min-width: 0; }
.brand picture { display: block; min-width: 0; }
.brand .logo { height: 32px; width: auto; max-width: 100%; object-fit: contain; object-position: left; display: block; }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 18px; flex: none; }
.top .cobrand { height: 28px; width: auto; display: block; }
.lang { display: flex; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; overflow: hidden; font-size: 13px; line-height: 1; }
/* EN 垂直置中(11/17 簡報 P3):字框裁到大寫字高與基線，中英文都置中;不支援 text-box 的瀏覽器用等高的行框 */
.lang a, .lang span { display: inline-block; padding: 6px 11px; color: #fff; text-decoration: none; }
@supports (text-box: trim-both cap alphabetic) { .lang a, .lang span { text-box: trim-both cap alphabetic; padding: 8px 11px; } }
.lang .on { background: #fff; color: var(--navy); font-weight: 700; }
@media (max-width: 1000px) { .brand .logo { height: 26px; } .top .cobrand { height: 22px; } }
/* 手機地圖下方的落款(地圖座標，跟著地圖縮放移動;桌機在頁首) */
.world img.sig { position: absolute; left: 529px; top: 1325px; width: 640px; height: auto; display: none; pointer-events: none; user-select: none; -webkit-user-drag: none; }

/* ---------- 工具列 ---------- */
.bar { background: var(--card); border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 8px; min-width: 0; position: relative; z-index: 20; }
.tabs { display: flex; gap: 22px; font-size: 15px; }
.tabs button { padding: 4px 0 5px; color: var(--mute); border-bottom: 2px solid transparent; }
.tabs button[aria-selected="true"] { color: var(--ink); font-weight: 700; border-color: var(--magenta); }
.search { position: relative; }
.search .box { display: flex; align-items: center; gap: 8px; background: var(--soft); border-radius: 999px; padding: 0 12px; border: 1px solid transparent; }
.search .box:focus-within { background: #fff; border-color: var(--magenta); }
.search svg { flex: none; color: var(--mute); }
.search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 15px; padding: 9px 0; color: var(--ink); outline: none; }
.search input::placeholder { color: var(--mute); }
.search .clear { color: var(--mute); font-size: 18px; line-height: 1; padding: 4px; }
.sug { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border-radius: 12px; box-shadow: 0 12px 32px rgba(20,25,60,.2); overflow: hidden; z-index: 40; max-height: 60vh; overflow-y: auto; }
.sug button { display: flex; align-items: baseline; gap: 10px; width: 100%; text-align: left; padding: 9px 14px; border-bottom: 1px solid #f0f1f6; font-size: 14px; }
.sug button.on, .sug button:hover { background: #fff0f7; }
.sug .k { flex: none; font-size: 11.5px; color: #fff; background: var(--mute); border-radius: 5px; padding: 1px 6px; }
.sug .k.company { background: var(--navy); } .sug .k.zone { background: var(--magenta); } .sug .k.session { background: #0f8a6a; } .sug .k.place { background: #8a6d1f; } .sug .k.food { background: #c2541b; }
.sug .l { flex: 1; min-width: 0; }
.sug .s { color: var(--mute); font-size: 12.5px; margin-left: auto; text-align: right; flex: none; max-width: 45%; }
.sug mark { background: none; color: var(--magenta); font-weight: 700; }
.sug .none { padding: 12px 14px; color: var(--mute); font-size: 14px; }
.frow { display: flex; align-items: center; gap: 8px; min-width: 0; }
.frow .lab { flex: none; font-size: 13px; color: var(--mute); min-width: 64px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; padding: 1px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 5px; border: 1px solid #c9ccd8; border-radius: 999px; padding: 5px 11px; font-size: 13.5px; background: #fff; white-space: nowrap; }
.chip i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); display: inline-block; }
.chip .dd { font-size: 9px; opacity: .65; }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.menu { position: fixed; z-index: 60; background: #fff; border-radius: 12px; box-shadow: 0 14px 36px rgba(20,25,60,.24); padding: 6px 0; min-width: 260px; max-width: calc(100vw - 24px); max-height: 58vh; overflow-y: auto; font-size: 14px; }
.menu button { display: flex; gap: 10px; align-items: baseline; width: 100%; text-align: left; padding: 8px 14px; }
.menu button:hover { background: var(--soft); }
.menu b { flex: none; min-width: 52px; color: var(--navy); font-variant-numeric: tabular-nums; }
.menu .n { flex: 1; min-width: 0; }
.menu em { flex: none; font-style: normal; color: var(--mute); font-size: 12px; }
.menu .nodata { color: #9aa0b4; } .menu .nodata b { color: #9aa0b4; }

/* ---------- 主畫面 ---------- */
.main { flex: 1; min-height: 0; display: flex; position: relative; }
.frame { flex: 1; position: relative; overflow: hidden; background: #fff; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.frame.dragging { cursor: grabbing; }
.frame.hot { cursor: pointer; }
.world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.world.moving { will-change: transform; }
.world img.base { display: block; user-select: none; -webkit-user-drag: none; pointer-events: none; }
/* 選取的變暗層、亮框、滑鼠移過的框(app.js drawHL,跟著鏡頭重畫) */
.frame canvas.hl { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.frame canvas.hl.fade { animation: fadein .28s ease-out; }
@keyframes fadein { from { opacity: 0; } }
.zoom { position: absolute; right: max(12px, env(safe-area-inset-right, 0px)); bottom: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 5; }
.zoom button { width: 36px; height: 36px; border-radius: 9px; background: #fff; box-shadow: 0 2px 10px rgba(20,25,60,.18); color: var(--navy); font-size: 19px; display: flex; align-items: center; justify-content: center; }
.zoom button.home { font-size: 12px; }
.hint { position: absolute; left: 12px; bottom: 12px; z-index: 5; background: rgba(31,40,111,.9); color: #fff; font-size: 12.5px; padding: 6px 11px; border-radius: 8px; transition: opacity .4s; pointer-events: none; }
.hint.hide { opacity: 0; }

/* ---------- 資訊面板 ---------- */
.panel { width: 400px; flex: none; background: var(--card); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.ph { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); position: relative; }
.ph .badge { display: inline-block; font-weight: 700; font-size: 13px; color: #fff; background: var(--c, var(--navy)); border-radius: 6px; padding: 2px 8px; font-variant-numeric: tabular-nums; }
.ph h2 { margin: 8px 40px 2px 0; font-size: 19px; line-height: 1.35; text-wrap: balance; }
.ph .meta { margin: 0; color: var(--mute); font-size: 13px; }
.ph .x { position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; border-radius: 50%; color: var(--mute); font-size: 20px; display: flex; align-items: center; justify-content: center; }
.ph .x:hover { background: var(--soft); }
.grab { display: none; }
.pb { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 12px 24px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.note { margin: 8px 6px 4px; padding: 9px 12px; border-radius: 10px; background: #fff6d6; color: #6b5200; font-size: 13px; line-height: 1.55; }
.note button { color: var(--magenta); text-decoration: underline; font-weight: 600; }
.empty { margin: 14px 6px; color: var(--mute); font-size: 14px; line-height: 1.6; }
.sec { margin: 14px 6px 6px; font-size: 12px; color: var(--mute); letter-spacing: .04em; }
.co { border-bottom: 1px solid #f0f1f6; }
.co > button { display: flex; gap: 10px; width: 100%; text-align: left; padding: 10px 6px; font-size: 14.5px; align-items: baseline; }
.co > button b { flex: none; min-width: 64px; color: var(--navy); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.co > button span { flex: 1; min-width: 0; }
.co > button::after { content: "＋"; color: var(--mute); font-size: 13px; flex: none; }
.co.open > button::after { content: "－"; }
.co.hl { background: #fff0f7; border-radius: 10px; }
.co .more { padding: 0 8px 12px 80px; font-size: 13.5px; color: var(--ink-2); line-height: 1.65; }
.co .more .en { color: var(--mute); font-size: 12.5px; margin-bottom: 4px; }
.co .more p { margin: 6px 0; white-space: pre-line; }
.co .more .prod { font-weight: 600; color: var(--ink); }
.co .more a { font-weight: 600; text-decoration: none; word-break: break-all; }
.zlist { display: flex; flex-direction: column; }
.zrow { display: flex; gap: 10px; align-items: baseline; padding: 8px 6px; text-align: left; border-bottom: 1px solid #f0f1f6; font-size: 14px; width: 100%; }
.zrow b { flex: none; min-width: 58px; font-size: 13px; color: var(--c, var(--navy)); font-variant-numeric: tabular-nums; }
.zrow span { flex: 1; min-width: 0; }
.zrow em { flex: none; font-style: normal; color: var(--mute); font-size: 12px; }
.zrow:hover { background: var(--soft); }
.days { display: flex; gap: 6px; margin: 10px 6px 4px; }
.days button { border: 1px solid #c9ccd8; border-radius: 999px; padding: 4px 12px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.days button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.ev { border-bottom: 1px solid #f0f1f6; padding: 10px 6px; }
.ev.hl { background: #fff0f7; border-radius: 10px; }
.ev .t { font-size: 13px; color: var(--magenta); font-weight: 700; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ev .ot { color: var(--mute); font-size: 12.5px; margin-top: 2px; line-height: 1.5; }
/* 節目的標記:審核制 / 邀請制、語言圓標(節目總表的樣式) */
.tg { font-size: 11px; font-weight: 700; padding: 1px 6px; line-height: 1.4; border-radius: 3px; }
.tg.appr { background: #fff000; color: #231815; } .tg.inv { background: var(--magenta); color: #fff; }
.lbs { margin-left: auto; display: inline-flex; gap: 4px; }
.lb { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-size: 10px; font-weight: 800; color: #fff; background: #231815; }
.lb.jp { background: #c30d23; }
.ev .ti { font-weight: 600; font-size: 15px; margin-top: 2px; line-height: 1.45; }
.ev .su { color: var(--ink-2); font-size: 13.5px; margin-top: 2px; }
.ev .sp { color: var(--mute); font-size: 12.5px; margin-top: 4px; line-height: 1.55; }
.ev .tag, .pb-ev .tag { display: inline-block; font-size: 11.5px; border: 1px solid var(--mute); color: var(--mute); border-radius: 5px; padding: 0 6px; vertical-align: 1px; font-weight: 400; }
.ev details, .pb-ev details { margin-top: 6px; font-size: 13px; }
.ev summary, .pb-ev summary { color: var(--navy); cursor: pointer; font-weight: 600; }
.ev table, .pb-ev table { border-collapse: collapse; margin-top: 6px; width: 100%; }
.ev td, .pb-ev td { padding: 4px 6px 4px 0; vertical-align: top; border-top: 1px solid #f0f1f6; color: var(--ink-2); }
.ev td:first-child, .pb-ev td:first-child { white-space: nowrap; color: var(--mute); font-variant-numeric: tabular-nums; }
.ev .link, .pb-ev .link { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; text-decoration: none; }
.svc { margin: 12px 6px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }

/* ---------- 節目總表 ---------- */
/* 主辦單位的節目表圖檔(#sched)不再顯示:桌機是下面的全舞台總覽(.dsched),手機是每舞台一頁(.slist) */
.sched { display: none !important; }
body.view-sched .frame, body.view-sched .panel, body.view-sched .frow, body.view-sched .fbtns { display: none !important; }
/* 手機版才有的元件:搜尋的「取消」、兩個篩選按鈕、網頁版節目總表;桌機總覽才有的:日期與圖例列 */
.qcancel, .fbtns, .slist, .dctl, .dsched { display: none; }

/* ---------- 桌機的節目總表：全舞台總覽(app.js renderDesk) ---------- */
@media (min-width: 761px) {
  body.view-sched .bar { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 8px; align-items: center; }
  body.view-sched .tabs { grid-column: 1 / -1; grid-row: 1; }
  /* 搜尋框平常只有放大鏡(40px 圓鈕),點了或有輸入時展開 */
  body.view-sched .search { grid-column: 1; grid-row: 2; width: 40px; transition: width .2s var(--spring); }
  body.view-sched .search:focus-within, body.view-sched .search.has-q { width: 280px; }
  body.view-sched .search .box { padding: 0 11px; cursor: pointer; }
  body.view-sched .search:focus-within .box, body.view-sched .search.has-q .box { cursor: text; }
  body.view-sched .search input { padding: 8px 0; }
  body.view-sched .search:not(:focus-within):not(.has-q) input { width: 0; flex: 0 0 0; }
  body.view-sched .search .sug { right: auto; width: 400px; }
  body.view-sched .dctl { display: flex; grid-column: 2; grid-row: 2; align-items: center; gap: 14px; min-width: 0; }
  body.view-sched .dsched { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; position: relative; background: #fff; }
}
.ov-days { display: flex; gap: 6px; flex: none; }
.ov-days button { border: 1px solid #c9ccd8; border-radius: 999px; padding: 5px 14px; font-size: 14px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.ov-days button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.ov-days button i { font-style: normal; font-size: 11.5px; font-weight: 700; background: var(--magenta); color: #fff; border-radius: 999px; padding: 0 6px; line-height: 1.5; }
.ov-days button.zero { opacity: .45; }
.ov-legend { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); flex: none; }
.ov-legend em { font-style: normal; margin-right: 6px; }
.ov-legend .lb, .ov-ev .lb, .od-when .lb { width: 20px; height: 20px; font-size: 9.5px; }
.ov-legend .tg, .ov-ev .tg { font-size: 10.5px; padding: 0 5px; line-height: 1.6; white-space: nowrap; }
.ov-scroll { flex: 1; min-height: 0; overflow: auto; padding: 10px 16px 8px; position: relative; overscroll-behavior: contain; }
.ov-a { display: grid; grid-template-columns: 52px repeat(var(--n), minmax(128px, 1fr)); column-gap: 6px; position: relative; }   /* 欄寬同「全部」,切換時舞台欄不移動 */
.ov-corner { position: sticky; top: 0; left: 0; z-index: 5; background: #fff; }
/* 「全部」:三天 × 上午／下午，欄同單日 */
.ov-all { display: grid; grid-template-columns: 52px repeat(var(--n), minmax(128px, 1fr)); column-gap: 6px; position: relative; }
.oa-lab { grid-column: 1; position: sticky; left: 0; z-index: 2; background: #fff; font-size: 11.5px; color: var(--mute); padding-top: 6px; line-height: 1.3; }
.oa-lab b { display: block; font-size: 14px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; margin-bottom: 2px; }
.oa-lab.am, .oa-cell.am { border-top: 2px solid var(--navy); margin-top: 4px; }
.oa-cell { display: flex; flex-direction: column; gap: 4px; padding: 3px 0; min-width: 0; }
.oa-cell.pm { border-top: 1px dashed #d5d8e3; }
.ov-all .ov-ev { position: relative; left: auto; right: auto; top: auto; height: auto; padding: 4px 5px 5px 6px; gap: 1px; }
.ov-all .ov-ev .ti { -webkit-line-clamp: 2; }
.ov-all .ov-ev.full { flex: 1; }
.ov-all .ov-ev .t { font-size: 11px; gap: 3px; } .ov-all .ov-ev .tg, .ov-all .ov-ev .ad { font-size: 10px; padding: 0 3px; }
.ov-all .ov-ev .ad { font-size: 10.5px; font-weight: 700; color: #fff; background: var(--acc); border-radius: 3px; padding: 0 5px; line-height: 1.6; }
.ov-days button.all { font-weight: 700; }
.ov-h { position: sticky; top: 0; z-index: 3; background: var(--sc); color: var(--fg); border-radius: 10px 10px 0 0; padding: 6px 9px; min-width: 0; transition: box-shadow .3s; }   /* 「全部」與單日共用同一種標頭(11/17) */
.ov-h.flash { box-shadow: 0 0 0 3px var(--spot); }
.ov-h .n b { display: block; font-size: 15px; font-weight: 800; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-h .n span { display: block; font-size: 11.5px; opacity: .85; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-h .m { display: flex; flex-wrap: wrap; gap: 3px 6px; align-items: center; margin-top: 4px; }
.ov-chip { font-size: 10.5px; border: 1px solid currentColor; border-radius: 999px; padding: 0 6px; line-height: 1.55; white-space: nowrap; opacity: .92; }
.ov-map { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.ov-h .ov-map { margin-left: auto; color: var(--fg); text-decoration: underline; text-underline-offset: 2px; }
.ov-gut { grid-row: 2; grid-column: 1; position: sticky; left: 0; z-index: 2; background: #fff; height: calc(var(--pph) * var(--hrs) + 16px); }
.ov-gut span { position: absolute; right: 8px; top: calc(8px + var(--i) * var(--pph)); transform: translateY(-50%); font-size: 11.5px; color: var(--mute); font-variant-numeric: tabular-nums; }
.ov-col { grid-row: 2; position: relative; height: calc(var(--pph) * var(--hrs) + 16px); background: #fbfbfd; border-radius: 0 0 8px 8px;
  background-image: linear-gradient(#e4e6ee 1px, transparent 1px), linear-gradient(#f0f1f6 1px, transparent 1px);
  background-size: 100% var(--pph), 100% calc(var(--pph) / 2); background-position: 0 8px, 0 8px; background-repeat: repeat-y; }
.ov-ev { position: absolute; left: 3px; right: 3px; top: calc(8px + var(--s) * var(--pph) + 1px); height: calc(var(--d) * var(--pph) - 3px); border-radius: 8px; background: var(--tint); border: 1px solid var(--edge);
  padding: 6px 8px; overflow: hidden; display: flex; flex-direction: column; gap: 2px; cursor: pointer; transition: opacity .2s, box-shadow .2s; }
.ov-ev:hover { box-shadow: 0 4px 14px rgba(20,25,60,.16); z-index: 1; }
.ov-ev .t { font-size: 12px; font-weight: 700; color: var(--acc); display: flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; flex-wrap: wrap; row-gap: 2px; }
/* 時間列放不下標籤(邀請制、審核制、EN/JP)時換到下一行，不再被格子右緣切掉 */
.ov-ev.nw .t { flex-wrap: nowrap; font-size: 11px; gap: 3px; } .ov-ev.nw .tg { font-size: 10px; padding: 0 3px; } .ov-ev.nw .lbs { gap: 2px; } .ov-ev.nw2 .t1, .ov-ev.nw2 .cont { display: none; }
.ov-ev.short > .tg { font-size: 10px; padding: 0 3px; }
.ov-ev .ti { font-size: 13px; font-weight: 600; line-height: 1.38; color: var(--ink); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--lc, 6); overflow: hidden; }
.ov-ev.short { flex-direction: row; align-items: center; gap: 4px; padding: 0 5px 0 6px; }
.ov-ev.short .ti { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.ov-ev.short > .tg, .ov-ev.short > .lbs { flex: none; margin-left: 0; }
.ov-ev.clip { border-bottom: 1px dashed var(--acc); border-radius: 8px 8px 0 0; }
.ov-ev .cont { font-size: 12px; font-weight: 800; }
.ov-ev.dim { opacity: .22; }
.ov-ev.hit { box-shadow: 0 0 0 2px var(--magenta); }
.ov-ev.sel { box-shadow: 0 0 0 3px var(--navy); z-index: 2; }
.ov-now { grid-column: 2 / -1; grid-row: 2; position: relative; pointer-events: none; z-index: 3; }
.ov-now i { position: absolute; left: -6px; right: 0; top: calc(8px + var(--s) * var(--pph)); height: 2px; background: var(--magenta); }
.ov-now i::before { content: ""; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--magenta); }
.ov-now b { position: absolute; left: -60px; width: 52px; text-align: center; top: calc(8px + var(--s) * var(--pph) - 9px); font-size: 11px; font-weight: 700; color: #fff; background: var(--magenta); border-radius: 4px; line-height: 18px; font-variant-numeric: tabular-nums; }
.ov-det { position: absolute; top: 0; right: 0; bottom: 0; width: 400px; max-width: 100%; background: #fff; border-left: 1px solid var(--line); box-shadow: -10px 0 28px rgba(20,25,60,.14); z-index: 30; display: flex; flex-direction: column; }
.od-h { display: flex; align-items: center; gap: 8px; padding: 14px 16px 12px; border-bottom: 1px solid var(--line); }
.od-pl { font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 2px 10px; background: var(--sc); color: var(--fg); }
.od-x { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; font-size: 20px; color: var(--mute); display: flex; align-items: center; justify-content: center; }
.od-x:hover { background: var(--soft); }
.od-b { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 18px 20px; overscroll-behavior: contain; }
.od-when { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; font-weight: 700; color: var(--acc); font-variant-numeric: tabular-nums; }
.od-b h3 { font-size: 19px; line-height: 1.4; margin: 6px 0 2px; text-wrap: balance; }
.od-su { font-size: 15px; font-weight: 600; line-height: 1.45; margin: 0 0 4px; }
.od-ot { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; margin: 6px 0 0; }
.od-sec { font-size: 12px; color: var(--mute); font-weight: 700; margin-top: 16px; letter-spacing: .04em; }
.od-sp { font-size: 13px; color: var(--ink-2); line-height: 1.6; margin: 4px 0 0; }
.od-b table { border-collapse: collapse; width: 100%; margin-top: 6px; font-size: 13px; }
.od-b td { padding: 5px 6px 5px 0; vertical-align: top; border-top: 1px solid #f0f1f6; color: var(--ink-2); }
.od-b td:first-child { white-space: nowrap; color: var(--mute); font-variant-numeric: tabular-nums; }
.od-b td span { color: var(--mute); }
.od-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.od-acts a, .od-acts .ov-map { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 700; text-decoration: none; }
.od-acts a { background: var(--magenta); color: #fff; }
.od-acts .ov-map { border: 1px solid var(--navy); color: var(--navy); }

/* ---------- 手機 ---------- */
@media (max-width: 760px) {
  .top { padding-top: calc(11px + env(safe-area-inset-top, 0px)); padding-bottom: 11px; padding-left: max(14px, env(safe-area-inset-left, 0px)); padding-right: max(14px, env(safe-area-inset-right, 0px)); }
  .brand .logo { height: 20px; }
  .top .cobrand { display: none; }
  .world img.sig { display: block; }
  .bar { gap: 6px; padding-top: 6px; padding-bottom: 7px; }
  .tabs { font-size: 14.5px; }
  .search input { font-size: 16px; padding: 8px 0; }
  .frow .lab { min-width: 0; font-size: 12.5px; }
  .chip { font-size: 13px; padding: 4px 10px; }
  .panel { position: absolute; left: 0; right: 0; bottom: 0; width: auto; height: var(--sheet-h); border-left: 0; border-radius: 16px 16px 0 0; box-shadow: 0 -8px 28px rgba(20,25,60,.18); z-index: 15; transform: translateY(0); transition: transform .36s var(--spring); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .panel.closed { transform: translateY(105%); }
  .grab { display: block; width: 40px; height: 4px; border-radius: 2px; background: #d3d6e0; margin: 8px auto 0; }
  .ph { padding: 8px 16px 10px; }
  .ph h2 { font-size: 17.5px; margin-top: 6px; }
  .co .more { padding-left: 8px; }
  .zoom { display: none; }
  .hint { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }

  /* 工具列:分頁和搜尋同一列，下面兩個篩選按鈕(不再左右滑動) */
  .bar { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 14px; row-gap: 7px; }
  .tabs { grid-column: 1; }
  .tabs button { white-space: nowrap; }
  .search { grid-column: 2; display: flex; align-items: center; gap: 12px; min-width: 0; }
  .search .box { flex: 1; min-width: 0; height: 34px; }
  .search input { padding: 6px 0; }
  .search .qcancel { color: var(--magenta); font-size: 15px; flex: none; }
  .bar.searching .tabs { display: none; }
  .bar.searching .search { grid-column: 1 / -1; }
  .bar.searching .qcancel { display: block; }
  .frow { display: none; }
  .fbtns { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .fb { position: relative; min-width: 0; }
  .fbtn { display: flex; align-items: center; gap: 6px; width: 100%; height: 34px; border: 1px solid #c9ccd8; border-radius: 999px; padding: 0 12px; font-size: 14px; background: #fff; text-align: left; }
  .fbtn .fl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fbtn .car { font-size: 10px; opacity: .6; transition: transform .2s; }
  .fb.open .fbtn { border-color: var(--navy); }
  .fb.open .car { transform: rotate(180deg); }
  .fb.on .fbtn { background: var(--navy); border-color: var(--navy); color: #fff; padding-right: 40px; }
  .fb.on .car { display: none; }
  .fx { position: absolute; right: 4px; top: 3px; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: 15px; display: flex; align-items: center; justify-content: center; }
  .fx::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: rgba(255,255,255,.22); }

  /* 篩選的下拉選單:蓋在地圖上方，下方面板先收下去 */
  .mmenu { position: absolute; left: 10px; right: 10px; top: 6px; max-height: calc(100% - 16px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: #fff; border-radius: 12px; box-shadow: 0 14px 36px rgba(20,25,60,.26); z-index: 30; padding: 4px 0; }
  .mm-cat { display: flex; align-items: stretch; border-bottom: 1px solid #f0f1f6; }
  .mm-row { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 11px 14px; font-size: 15px; text-align: left; }
  .mm-row i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
  .mm-row b { font-weight: 600; flex: 1; min-width: 0; }
  .mm-row em, .mm-zone em { font-style: normal; font-size: 12.5px; color: var(--mute); flex: none; }
  .mm-row.on, .mm-zone.on, .mm-svc.on { background: #eef0f9; }
  .mmenu .ck { color: var(--magenta); font-weight: 700; flex: none; }
  .mm-exp { width: 48px; flex: none; display: flex; align-items: center; justify-content: center; color: var(--mute); border-left: 1px solid #f0f1f6; font-size: 12px; }
  .mm-zones { background: #f8f9fc; border-bottom: 1px solid #f0f1f6; }
  .mm-zone { display: flex; gap: 10px; align-items: baseline; width: 100%; padding: 9px 14px 9px 34px; font-size: 14px; text-align: left; }
  .mm-zone b { flex: none; min-width: 52px; color: var(--navy); font-weight: 600; font-variant-numeric: tabular-nums; }
  .mm-zone span { flex: 1; min-width: 0; }
  .mm-zone.nodata b, .mm-zone.nodata span { color: #9aa0b4; }
  .mm-svc { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; font-size: 15px; border-bottom: 1px solid #f0f1f6; text-align: left; }
  .mm-svc span:first-child { flex: 1; }
  .mm-clear { display: block; width: 100%; padding: 11px 14px; color: var(--magenta); font-size: 14px; text-align: center; }

  /* 下方面板：可上拉展開;選單開著時先收下去 */
  .panel { transition: transform .36s var(--spring), height .32s var(--spring); }
  .panel.under { transform: translateY(105%); }
  .panel.expanded { height: 92%; }
  .panel.dragging { transition: transform .36s var(--spring); }
  /* 沒有說明文字的服務點、沒有帶新創的專館：面板只有標題列那麼高 */
  .panel.compact, .panel.compact.expanded { height: auto; }
  .panel.compact .pb { display: none; }
  .ph { touch-action: none; user-select: none; -webkit-user-select: none; }
  .pull-hint { position: absolute; left: 50%; top: -34px; transform: translateX(-50%); background: rgba(31,40,111,.92); color: #fff; font-size: 12px; border-radius: 999px; padding: 4px 11px; white-space: nowrap; pointer-events: none; transition: opacity .4s; }
  .pull-hint.hide { opacity: 0; }

  /* 節目總表：每個舞台一頁(舞台色標題 + 白底內容) */
  body.view-sched .sched { display: none !important; }
  body.view-sched .slist { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; background: #fff; }
  .s-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px 4px; padding: 4px 8px 3px; border-bottom: 1px solid var(--line); flex: none; }
  .s-tab { position: relative; padding: 8px 2px 10px; font-size: 13.5px; text-align: center; color: var(--ink-2); white-space: nowrap; border-radius: 8px; overflow: hidden; text-overflow: ellipsis; }
  .s-tab::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 4px; height: 3px; border-radius: 2px; background: var(--sc); }
  .s-tab.on { color: var(--ink); font-weight: 700; }
  .s-tab.on::after { left: 8%; right: 8%; height: 4px; }
  .s-scroll { position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .pb-head { padding-bottom: 10px; border-bottom: 5px solid var(--sc); }
  .pb-head .wm { text-align: right; padding: 14px 16px 0; font-weight: 800; font-size: 46px; letter-spacing: -1.5px; line-height: .9; }
  .pb-head .sub { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 4px 16px 0; }
  .pb-head .sub b { font-size: 18px; }
  .pb-head .sub span { font-size: 13px; color: var(--mute); }
  .pb-notes { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 6px 16px 0; }
  .pb-notes span { font-size: 12px; border-radius: 999px; padding: 1px 9px; border: 1px solid #c9ccd8; color: var(--ink-2); }
  .pb-notes span.inv { border-color: var(--magenta); color: var(--magenta); }
  .pb-notes .tomap { margin-left: auto; font-size: 13px; color: var(--magenta); font-weight: 600; padding: 2px 0; }
  .pb-day { position: sticky; top: 0; z-index: 2; background: #fff; display: flex; align-items: baseline; gap: 8px; padding: 10px 16px 6px; border-bottom: 1px solid #eef0f5; }
  .pb-day b { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
  .pb-day span { font-size: 13px; color: var(--mute); }
  .pb-ev { padding: 11px 16px; border-bottom: 1px solid #f0f1f6; }
  .pb-ev.hl { background: #fff0f7; }
  .pb-ev .t { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .pb-ev .ti { font-weight: 600; font-size: 15.5px; line-height: 1.45; margin-top: 2px; white-space: pre-line; }
  .pb-ev .ot { font-size: 13px; color: var(--ink-2); line-height: 1.45; margin-top: 3px; white-space: pre-line; }
  .pb-ev .sp { color: var(--mute); font-size: 12.5px; margin-top: 4px; line-height: 1.55; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
