/*
 * 首頁駕駛座電台（#cockpit）— 批 2（2026-11-14）
 * 來源：preview/首頁.html 定稿（使用者 11-12～13 裁定），由 _x/extract_home_from_preview.py 抽出，值不改。
 * 圖檔相對本檔：../cis/layers/jp/（CIS 素材包原檔複製進主題）。不經 webpack（url() 才不會被改寫）。
 * 只在首頁載入（page-home render.php enqueue）。
 */

/* 駕駛座電台原型（10-26 平塗插畫版，scoped：#cockpit）
   場景＝AI 生成的公路循環影片＋車內殼／後照鏡／方向盤；操作＝AI 生成後拆開的收音機、開關面板、節目表紙卡；
   最上層疊一層 1px 顆粒＋暗角，讓影片和各組件質感一致 */
#cockpit {
  --ck-amber: #f4ad45;
  --ck-amber-dim: rgba(244, 173, 69, .28);
  --ck-ink: #14476b;
  position: relative;
  background: #0b1721;
  color: #dfe6ea;
  font-family: "Noto Sans TC", "PingFang TC", system-ui, sans-serif;
  overflow: hidden;
  isolation: isolate;
}
#cockpit * { box-sizing: border-box; }
#cockpit [hidden] { display: none !important; }
#cockpit button { font: inherit; color: inherit; cursor: pointer; }
#cockpit .ck-key, #cockpit .ck-switch, #cockpit .jp-card { color: var(--ck-ink); }
#cockpit button:focus-visible, #cockpit [role="slider"]:focus-visible, #cockpit a:focus-visible {
  outline: 2px solid var(--ck-amber); outline-offset: 3px;
}

/* 舞台：和 AI 車內圖同比例，所有組件用比例定位 */
.jp-stage { position: relative; width: min(100%, calc((100vh - 120px) * 1.7684)); margin: 0 auto; aspect-ratio: 2688 / 1520; }
.jp-scene { position: absolute; inset: 0; overflow: hidden; background: #8fb7d4; }
.jp-inner { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 2688 / 1520; container-type: inline-size; }
.jp-inner > * { position: absolute; display: block; }
/* 影片還沒載入或載入失敗時，先看到同一格的靜態插畫；公路圖和車內圖同一個透視，所以從頂端對齊 */
.jp-road { left: 0; top: 0; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
/* 公路與後照鏡：影片蓋在同一格的靜態圖上，影片還沒載入時先看到靜態圖 */
.jp-road > *, .jp-mirror-view > img, .jp-mirror-view > video { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.jp-glare { inset: 0; pointer-events: none;
  background: linear-gradient(112deg, rgba(255,255,255,0) 42%, rgba(255,255,255,.05) 48%, rgba(255,255,255,0) 54%); }
/* 顆粒＋暗角：蓋在整個舞台最上面（含收音機），不吃滑鼠 */
.jp-grain { position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: url(../cis/layers/jp/grain.png) 0 0 / 256px 256px repeat, radial-gradient(120% 110% at 50% 45%, transparent 58%, rgba(6, 20, 40, .22)); }
/* 高解析螢幕上顆粒縮成 1 個實體像素，才會像參考圖那樣細 */
@media (min-resolution: 1.5dppx) { .jp-grain { background-size: 128px 128px, auto; } }
.jp-shell { inset: 0; width: 100%; height: 100%; pointer-events: none; }
.jp-wheel, .jp-mirror, .jp-radio-ghost { height: auto; pointer-events: none; }
.jp-radio-ghost { display: none; }
.jp-wheel { transform-origin: 50% 50%; animation: jp-steer 7s ease-in-out infinite alternate; filter: drop-shadow(0 .4cqw .5cqw rgba(5, 12, 30, .3)); }
@keyframes jp-steer { from { transform: rotate(-1.4deg); } to { transform: rotate(1.4deg); } }
.jp-mirror { filter: drop-shadow(0 .3cqw .4cqw rgba(5, 12, 20, .3)); }
/* 後照鏡裡往後退的路：鏡面形狀用遮罩裁，疊一層微暗＋斜光讓它像鏡子 */
.jp-mirror-view { overflow: hidden; -webkit-mask: url(../cis/layers/jp/mirror_mask.png) 0 0 / 100% 100% no-repeat; mask: url(../cis/layers/jp/mirror_mask.png) 0 0 / 100% 100% no-repeat; }
.jp-mirror-view > video, .jp-mirror-view > img { filter: saturate(.9) brightness(.92); }
.jp-mirror-view::after { content: ""; position: absolute; inset: 0; background: linear-gradient(118deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.16) 42%, rgba(255,255,255,0) 52%); }
.ck-scene-off .ck-video { display: none; }

/* 後照鏡下的消波塊吊飾：A 原圖畫的那顆，以繩子頂端為軸擺動 */
.ck-charm { height: auto; pointer-events: none; --amp: 2.2deg; --dur: 3.4s; transform-origin: var(--pivot, 50%) 0;
  animation: ck-sway var(--dur) ease-in-out infinite alternate; }
#cockpit.win-down .ck-charm { --amp: 8deg; --dur: 1.4s; }
@keyframes ck-sway { from { transform: rotate(calc(var(--amp) * -1)); } to { transform: rotate(var(--amp)); } }

/* 收音機（AI 底板＋拆開的按鍵＋旋鈕，文字與刻度用 HTML 疊上去） */
.jp-radio { position: absolute; z-index: 2; aspect-ratio: 1600 / 583; container-type: inline-size; filter: drop-shadow(0 .6cqw .8cqw rgba(4, 12, 30, .35)); }
.jp-radio-base { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.ck-display { position: absolute; color: var(--ck-amber); font-family: "Share Tech Mono", "Noto Sans TC", ui-monospace, monospace;
  padding: .5cqw 1.6cqw; display: flex; flex-direction: column; justify-content: center; gap: .5cqw; overflow: hidden; }
.ck-display::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.ck-display .glow { text-shadow: 0 0 .5cqw rgba(244,173,69,.6), 0 0 1px rgba(244,173,69,.9); }
.ck-row1 { display: flex; align-items: center; gap: 1.2cqw; white-space: nowrap; }
.ck-band { font-size: 1.8cqw; letter-spacing: .12em; opacity: .75; }
.ck-station { font-size: 3.3cqw; line-height: 1; letter-spacing: .04em; }
.ck-station .zh { font-family: "Noto Sans TC", sans-serif; font-weight: 700; margin-right: .18em; }
/* 右上資訊：整組往上提，貼齊顯示窗上緣 */
.ck-meta { margin-left: auto; align-self: flex-start; display: flex; align-items: center; gap: 1.2cqw; margin-top: -.4cqw; }
.ck-status { font-size: 2.1cqw; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.ck-time { font-size: 2.4cqw; letter-spacing: .04em; }
.ck-sig { display: flex; gap: .35cqw; align-items: flex-end; height: 2.2cqw; }
.ck-sig i { width: .5cqw; background: var(--ck-amber-dim); display: block; }
.ck-sig i.on { background: var(--ck-amber); box-shadow: 0 0 .5cqw rgba(244,173,69,.6); }
.ck-sig i:nth-child(1){height:25%}.ck-sig i:nth-child(2){height:50%}.ck-sig i:nth-child(3){height:75%}.ck-sig i:nth-child(4){height:100%}
.ck-rds { height: 3.6cqw; overflow: hidden; white-space: nowrap; font-family: "Noto Sans TC", sans-serif; font-size: 2.5cqw; line-height: 3.6cqw; letter-spacing: .04em; flex: none; }
.ck-rds span { display: inline-block; animation: ck-marquee 34s linear infinite; }
.ck-rds.static span { animation: none; }
@keyframes ck-marquee { to { transform: translateX(-50%); } }

/* 刻度條：每一集是一個電台 */
.ck-scale { position: absolute; overflow: hidden; }
.ck-scale.dim { filter: brightness(.8); }
.ck-ticks { position: absolute; inset: 0; }
.ck-ticks .t { position: absolute; bottom: 0; width: 1px; background: rgba(40, 52, 60, .7); height: 28%; }
.ck-ticks .t.major { height: 46%; width: 2px; background: #2b3a45; }
.ck-ticks .lab { position: absolute; top: 4%; transform: translateX(-50%); font-family: "Share Tech Mono", monospace; font-size: 1.55cqw; line-height: 1; color: #2b3a45; }
.ck-needle { position: absolute; top: 6%; bottom: 6%; width: .35cqw; background: #c8432f; box-shadow: 0 0 .5cqw rgba(200,67,47,.5); left: 50%; transition: left .9s cubic-bezier(.3,.7,.2,1); }

/* 按鍵：鍵帽是從 AI 收音機切下來的圖，按下去會往下沉 */
.ck-key { position: absolute; border: 0; padding: 0; background: var(--img) center / 100% 100% no-repeat; color: var(--ck-ink);
  display: grid; place-items: center; filter: drop-shadow(0 .35cqw 0 rgba(3, 8, 12, .55));
  transition: transform .08s, filter .08s; -webkit-tap-highlight-color: transparent; }
.ck-key:hover { filter: drop-shadow(0 .35cqw 0 rgba(3, 8, 12, .55)) brightness(1.04); }
.ck-key:active, .ck-key[aria-pressed="true"] { transform: translateY(.3cqw); filter: drop-shadow(0 .08cqw 0 rgba(3, 8, 12, .55)) brightness(.93); }
.ck-key svg { width: 2.2cqw; height: 2.2cqw; opacity: .85; }
.ck-play svg { width: 3.2cqw; height: 3.2cqw; opacity: .9; }
.ck-play.on { filter: drop-shadow(0 0 1cqw rgba(244,173,69,.75)) drop-shadow(0 .1cqw 0 rgba(3, 8, 12, .55)); }
.ck-presets { display: contents; }
.ck-preset .c { font-weight: 900; font-size: 3.1cqw; line-height: 1; text-shadow: 0 .1cqw 0 rgba(255, 248, 230, .55); margin-top: .4cqw; }
.ck-preset .led { position: absolute; top: 12%; right: 10%; width: .9cqw; height: .9cqw; border-radius: 50%; background: #7c7364; box-shadow: inset 0 1px 1px rgba(0,0,0,.35); }
.ck-preset[aria-pressed="true"] .led { background: var(--ck-amber); box-shadow: 0 0 .6cqw var(--ck-amber); }
/* 旋鈕：圖不轉（光影才不會跟著轉），只轉指示點 */
.ck-knob { position: absolute; border-radius: 50%; background: url(../cis/layers/jp/knob.webp) center / 100% 100% no-repeat; touch-action: none; cursor: ns-resize; }
.ck-knob::after { content: ""; position: absolute; inset: 0; border-radius: 50%; transform: rotate(var(--rot, 0deg));
  background: radial-gradient(circle at 50% 22%, var(--ck-amber) 0 4.5%, transparent 5.5%); filter: drop-shadow(0 0 .4cqw rgba(244,173,69,.8)); }

/* 開關面板：車窗、海風 */
.jp-switch { position: absolute; z-index: 2; container-type: inline-size; filter: drop-shadow(0 .8cqw 1.2cqw rgba(4, 10, 16, .4)); }
.jp-switch > img { display: block; width: 100%; height: auto; pointer-events: none; }
.ck-switch { position: absolute; border: 0; padding: 0; background: var(--img) center / 100% 100% no-repeat; color: var(--ck-ink);
  filter: drop-shadow(0 1.6cqw 0 rgba(3, 8, 12, .55)); transition: transform .08s, filter .08s; }
.ck-switch[aria-pressed="true"] { transform: translateY(1.2cqw); filter: drop-shadow(0 .4cqw 0 rgba(3, 8, 12, .55)) brightness(.94); }
.jp-switch .lamp { position: absolute; width: 4.2cqw; height: 4.2cqw; margin: -2.1cqw 0 0 -2.1cqw; border-radius: 50%; background: transparent; transition: background .25s, box-shadow .25s; pointer-events: none; }
.ck-switch[aria-pressed="true"] + .lamp { background: radial-gradient(circle at 40% 35%, #ffe2a8, var(--ck-amber) 55%, #b86e14); box-shadow: 0 0 2.4cqw rgba(244,173,69,.85); }

/* 節目表紙卡 */
.jp-card { position: absolute; z-index: 2; border: 0; padding: 0; background: none; transition: transform .2s; filter: drop-shadow(0 .5vw .7vw rgba(4, 10, 16, .35)); }
.jp-card img { display: block; width: 100%; height: auto; }
.jp-card:hover { transform: translateY(-3px) rotate(-1deg); }

/* 節目表（攤在擋風玻璃前的紙本節目單） */
.ck-guide { position: absolute; z-index: 6; right: 4%; top: 6%; width: min(420px, 46%); max-height: 84%;
  background: #f4efe3; color: #1d2a33; box-shadow: 0 18px 40px rgba(0,0,0,.4); display: flex; flex-direction: column; }
.ck-guide header { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 8px; border-bottom: 2px solid #1d2a33; }
.ck-guide header b { font-size: 15px; letter-spacing: .08em; }
.ck-guide header button { background: none; border: 0; font-size: 20px; line-height: 1; padding: 4px 8px; color: #1d2a33; }
.ck-tabs { display: flex; gap: 0; padding: 8px 14px 0; flex-wrap: wrap; }
.ck-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 6px 10px; font-size: 14px; color: #556570; }
.ck-tabs button[aria-selected="true"] { color: #14476b; border-bottom-color: #14476b; font-weight: 700; }
.ck-list { list-style: none; margin: 0; padding: 4px 6px 10px; overflow: auto; }
.ck-list button { width: 100%; text-align: left; background: none; border: 0; padding: 9px 8px; display: grid; grid-template-columns: 56px 1fr auto; gap: 8px; align-items: baseline; border-bottom: 1px dashed #c9c1ae; color: #1d2a33; }
.ck-list button:hover, .ck-list button[aria-current="true"] { background: #ebe3d0; }
.ck-list .ep { font-family: "Share Tech Mono", monospace; color: #14476b; font-size: 13px; }
.ck-list .tt { font-size: 14px; line-height: 1.45; min-width: 0; }
.ck-list .dt { font-family: "Share Tech Mono", monospace; font-size: 11px; color: #6c7a83; }
.ck-note { font-size: 11px; color: #6c7a83; padding: 0 14px 12px; line-height: 1.6; }

.ck-toast { position: absolute; left: 50%; top: 8%; transform: translateX(-50%); background: rgba(10,17,23,.86); color: #f3e9d2; font-size: 13px; padding: 8px 14px; z-index: 7; pointer-events: none; opacity: 0; transition: opacity .3s; max-width: 90%; text-align: center; line-height: 1.5; }
.ck-toast.show { opacity: 1; }

/* 舞台下方說明列 */
.jp-caption { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; justify-content: center; text-align: center; padding: 12px clamp(14px, 3vw, 40px) 16px; font-size: 13px; color: #9fb4c2; }
/* 11-13 使用者：收音機說明列置中；桌機一行以「・」相隔，手機上下兩行 */
.jp-caption > a::before { content: "・"; margin-right: 14px; color: #9fb4c2; display: inline-block; text-decoration: none; }
@media (max-width: 520px) { .jp-caption { flex-direction: column; align-items: center; gap: 6px; } .jp-caption > a::before { content: none; } }
.jp-caption b { color: var(--ck-amber); font-weight: 500; font-family: "Share Tech Mono", ui-monospace, monospace; letter-spacing: .05em; }
.jp-legend { font-size: 12px; color: #7f95a4; }
.ck-link { font-size: 12px; color: #9fb4c2; text-decoration: none; border-bottom: 1px solid #3a4e5c; padding-bottom: 2px; }
.ck-link:hover { color: #fff; }

/* 手機：場景裁成 4:3，收音機、開關、紙卡拉到下面放大 */
@media (max-width: 820px) {
  .jp-stage { width: 100%; aspect-ratio: auto; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; padding-bottom: 6px; }
  .jp-scene { position: relative; inset: auto; flex: 0 0 100%; aspect-ratio: 4 / 3; }
  .jp-inner { width: 140%; left: -17%; top: auto; bottom: 0; }   /* 底部對齊：手機上看得到儀表板與中控的收音機 */
  .jp-radio-ghost { display: block; }
  .jp-radio { position: relative; left: auto !important; top: auto !important; flex: 0 0 auto; width: calc(100% - 20px) !important; }
  .jp-switch { position: relative; left: auto !important; top: auto !important; width: 40% !important; }
  .jp-card { position: relative; left: auto !important; top: auto !important; width: 36% !important; }
  .ck-guide { top: 3%; right: 3%; width: 94%; max-height: 94%; }
  .jp-legend { display: none; }
  /* 手機上把按鍵的可點範圍往外撐，鍵帽圖不變 */
  .ck-key::before, .ck-switch::before { content: ""; position: absolute; inset: -8px -3px; }
} @media (min-width: 821px) { /* 11-13 使用者裁定：平板橫向與桌機（收音機縮小時，如 1024 寬上一集鍵只有 13px 高）也把可點範圍撐到至少 28×28（WCAG 2.2 AA 24px 以上）；只在按鍵小於 28px 的方向往外撐，鍵帽圖與收音機比例不變 */ #cockpit .ck-key::before, #cockpit .ck-switch::before { content: ""; position: absolute; top: min(0px, calc(50% - 14px)); bottom: min(0px, calc(50% - 14px)); left: min(0px, calc(50% - 14px)); right: min(0px, calc(50% - 14px)); } }
@media (prefers-reduced-motion: reduce) {
  .ck-rds span { animation: none; }
  .ck-needle { transition: none; }
  .ck-charm, .jp-wheel { animation: none; }
}

/* 變體 E：駕駛座顯示窗頻道列加跳動長條（只在播放中跳動，掛 .ck-play.on）。
   預覽同段的「#hero .intro{grid-template-columns:1fr}」前面夾了 "<style>" 字串、在預覽中無效，定稿畫面不含它，故不搬。 */
.ck-eq { display: inline-flex; align-items: flex-end; gap: .3cqw; height: 2.4cqw; width: 3cqw; flex: none; }
.ck-eq i { background: var(--ck-amber); flex: 1; height: 40%; animation: eq 1.1s ease-in-out infinite; animation-play-state: paused; }
.ck-eq i:nth-child(2) { animation-delay: .18s; } .ck-eq i:nth-child(3) { animation-delay: .36s; } .ck-eq i:nth-child(4) { animation-delay: .1s; }
.jp-radio:has(.ck-play.on) .ck-eq i { animation-play-state: running; }
@keyframes eq { 0%, 100% { height: 28%; } 50% { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .ck-eq i { animation: none; height: 60%; } }

/* ---- E 第二輪：讓人知道收音機可以操作 ---- */
/* 3 跳動長條：預覽此條前面夾了 "<style>" 字串、在預覽中無效（未播放時 .ck-eq 本來就隱藏），不搬 */
/* 2 顯示窗第一列提示：未播放顯示提示、隱藏集數；播放後回到原樣 */
.ck-hint { font-size: 2.6cqw; letter-spacing: .08em; color: var(--ck-amber); }
.jp-radio:has(.ck-play.on) .ck-hint { display: none; }
.jp-radio:not(:has(.ck-play.on)) .ck-station, .jp-radio:not(:has(.ck-play.on)) .ck-eq { display: none; }
/* 1 播放鍵呼吸發光（未播放時） */
/* 11-12 使用者：改成整台收音機發亮（未播放時），播放鍵不再單獨發光 */
/* 11-12 使用者：不要一直發亮，限定次數：進入畫面 1 秒後 整台收音機亮 2 下 → 播放鍵亮 3 下 → 停 */
.jp-radio.cue-radio { animation: ck-radio-glow 2.6s ease-in-out 2; }
@keyframes ck-radio-glow { 0%,100% { filter: drop-shadow(0 0 0 rgba(244,173,69,0)); } 50% { filter: drop-shadow(0 0 12px rgba(244,173,69,.85)) drop-shadow(0 0 30px rgba(244,173,69,.45)); } }
/* 播放鍵光暈：獨立光圈（radial-gradient，不用 border-radius），濾色疊在鍵上，避免被面板蓋住 */
.ck-play { position: relative; }
.ck-play::after { content: ''; position: absolute; inset: -75%; pointer-events: none; z-index: 2; mix-blend-mode: screen; opacity: 0;
  background: radial-gradient(circle closest-side, rgba(255,200,110,.95) 0%, rgba(244,173,69,.7) 38%, rgba(244,173,69,.25) 68%, rgba(244,173,69,0) 100%); }
.ck-play.cue-play::after { animation: ck-play-glow 2.4s ease-in-out infinite; }
@keyframes ck-play-glow { 0%,100% { opacity: 0; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes ck-play-tick { 0%,100% { opacity: 1; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .jp-radio.cue-radio, .ck-play.cue-play { animation: none !important; } }
@keyframes ck-breathe {
  0%, 100% { filter: drop-shadow(0 0 .2cqw rgba(244,173,69,.2)) drop-shadow(0 .35cqw 0 rgba(3,8,12,.55)); }
  50% { filter: drop-shadow(0 0 1.6cqw rgba(244,173,69,.95)) drop-shadow(0 .35cqw 0 rgba(3,8,12,.55)); }
}
/* 4 可操作元件：手型游標＋hover／focus 琥珀外框（直角；旋鈕為圓形跟著輪廓） */
#cockpit .ck-key, #cockpit .ck-switch, #cockpit .ck-knob, #cockpit .jp-card { cursor: pointer; }
#cockpit .ck-key:hover, #cockpit .ck-switch:hover, #cockpit .ck-knob:hover, #cockpit .jp-card:hover,
#cockpit .ck-key:focus-visible, #cockpit .ck-switch:focus-visible, #cockpit .ck-knob:focus-visible, #cockpit .jp-card:focus-visible {
  outline: max(2px, .3cqw) solid var(--ck-amber); outline-offset: max(2px, .3cqw);
}
/* 6 減少動態：停呼吸、停跳動，外框保留 */
@media (prefers-reduced-motion: reduce) { .ck-play:not(.on) { animation: none; } .jp-radio:hover .ck-eq i { animation: none; } }

/* 11-12 使用者：點擊消波塊吊飾會跳動（彩蛋） */
#cockpit .ck-charm{pointer-events:auto;cursor:pointer}
#cockpit .ck-charm:focus-visible{outline:2px solid var(--amber,#f0a73a);outline-offset:3px}
#cockpit .ck-charm.boing{animation:ck-boing 2.2s cubic-bezier(.3,.6,.4,1) 1}
#cockpit .ck-charm.nudge{animation:ck-nudge 1.4s cubic-bezier(.3,.6,.4,1) 1}
@keyframes ck-nudge{0%{transform:rotate(0)}14%{transform:rotate(-15deg)}36%{transform:rotate(11deg)}58%{transform:rotate(-6deg)}78%{transform:rotate(3deg)}100%{transform:rotate(0)}}
@keyframes ck-boing{0%{transform:rotate(0) translateY(0)}7%{transform:rotate(-45deg) translateY(-7%)}20%{transform:rotate(36deg) translateY(3%)}34%{transform:rotate(-24deg) translateY(-3%)}49%{transform:rotate(15deg) translateY(1%)}64%{transform:rotate(-7deg)}80%{transform:rotate(3deg)}92%{transform:rotate(-1deg)}100%{transform:rotate(0)}}
@media (prefers-reduced-motion: reduce){#cockpit .ck-charm.boing,#cockpit .ck-charm.nudge{animation:none}}

/* 11-12 使用者：駕駛座內換專屬游標——消波塊造型（CIS favicon-micro 版標誌）。平常琥珀＋深色描邊；可點元件上變白＋琥珀描邊並轉 -18° */
#cockpit{cursor:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%22-77.6%20-77.1%201154.8%201035.3%22%3E%3Cdefs%3E%3Cfilter%20id%3D%22o%22%20x%3D%22-20%25%22%20y%3D%22-20%25%22%20width%3D%22140%25%22%20height%3D%22140%25%22%3E%3CfeMorphology%20in%3D%22SourceAlpha%22%20operator%3D%22dilate%22%20radius%3D%2255%22%20result%3D%22d%22/%3E%3CfeFlood%20flood-color%3D%22%230a1117%22/%3E%3CfeComposite%20in2%3D%22d%22%20operator%3D%22in%22%20result%3D%22e%22/%3E%3CfeMerge%3E%3CfeMergeNode%20in%3D%22e%22/%3E%3CfeMergeNode%20in%3D%22SourceGraphic%22/%3E%3C/feMerge%3E%3C/filter%3E%3C/defs%3E%3Cg%20filter%3D%22url%28%23o%29%22%20transform%3D%22rotate%280%20500%20440%29%22%3E%3Cg%20transform%3D%22translate%280.00%2C0.00%29%20scale%281.00000%29%22%20fill%3D%22%23f0a73a%22%3E%3Cg%20transform%3D%22scale%280.303767%29%20translate%28-171%2C-163%29%20translate%280%2C3280%29%20scale%280.1%2C-0.1%29%22%3E%3Cpath%20d%3D%22M17750%2031084%20c-1861%20-78%20-3108%20-438%20-3552%20-1024%20-109%20-144%20-150%20-253%0A-208%20-555%20-12%20-60%20-88%20-441%20-170%20-845%20-82%20-404%20-608%20-3002%20-1170%20-5773%20-561%0A-2771%20-1027%20-5056%20-1034%20-5078%20-17%20-49%20-55%20-104%20-99%20-146%20-26%20-24%20-8203%20-6792%0A-8457%20-7000%20-371%20-302%20-563%20-695%20-625%20-1278%20-25%20-233%20-33%20-251%20-173%20-380%20-183%0A-170%20-328%20-415%20-402%20-680%20-83%20-295%20-92%20-719%20-24%20-1114%20235%20-1370%201317%20-3077%0A2599%20-4100%20494%20-394%201030%20-683%201476%20-796%20506%20-129%20960%20-68%201319%20175%20112%2076%0A116%2078%20198%2090%2059%209%2091%208%20184%20-7%2083%20-13%20171%20-17%20333%20-18%20357%200%20377%205%201180%20325%0A330%20132%20978%20389%201440%20573%20462%20184%201662%20661%202666%201061%201111%20442%201849%20730%201883%0A736%2061%2010%20161%20-2%20205%20-24%2044%20-23%20247%20-105%20411%20-166%20612%20-228%201219%20-368%201875%0A-431%20182%20-17%20758%20-23%20970%20-10%20794%2050%201599%20245%202366%20572%20136%2058%20205%2072%20286%2059%0A53%20-9%201163%20-448%205378%20-2127%201296%20-517%201225%20-489%201360%20-523%20218%20-55%20521%20-65%0A770%20-25%20163%2026%20234%2011%20366%20-79%20587%20-398%201386%20-313%202279%20243%201579%20982%203019%0A3147%203161%204751%2015%20178%206%20498%20-19%20645%20-62%20358%20-215%20657%20-444%20870%20-140%20129%20-148%0A147%20-173%20380%20-57%20534%20-219%20901%20-526%201187%20-57%2054%20-1987%201656%20-4289%203559%20-2302%0A1904%20-4210%203484%20-4241%203510%20-64%2055%20-105%20110%20-125%20168%20-7%2022%20-473%202307%20-1034%0A5078%20-562%202771%20-1088%205369%20-1170%205773%20-82%20404%20-158%20785%20-170%20845%20-69%20359%20-119%0A470%20-300%20659%20-468%20487%20-1554%20804%20-3095%20901%20-233%2015%20-1010%2027%20-1205%2019z%20m-3645%0A-13385%20c1034%20-353%202286%20-986%203425%20-1733%20365%20-239%20433%20-268%20640%20-268%20195%200%20277%0A31%20542%20205%201174%20771%202317%201361%203398%201752%20247%2089%20313%20106%20431%20106%20202%200%20352%0A-62%20495%20-205%20143%20-143%20214%20-314%20215%20-517%200%20-205%20-61%20-352%20-210%20-499%20-116%20-115%0A-151%20-135%20-406%20-225%20-992%20-351%20-2066%20-909%20-3245%20-1687%20-312%20-206%20-421%20-332%0A-477%20-553%20-17%20-67%20-18%20-240%20-18%20-3580%200%20-3340%20-1%20-3513%20-18%20-3580%20-66%20-257%0A-271%20-462%20-522%20-521%20-91%20-21%20-259%20-21%20-350%200%20-249%2058%20-456%20263%20-521%20516%20-15%0A60%20-17%20286%20-25%202780%20-13%204371%20-13%204314%20-33%204390%20-33%20127%20-90%20224%20-189%20327%20-79%0A82%20-122%20114%20-341%20257%20-1226%20799%20-2243%201322%20-3246%201671%20-194%2067%20-240%2094%20-351%0A205%20-149%20147%20-210%20294%20-210%20499%201%20325%20221%20622%20521%20701%20149%2040%20293%2027%20495%20-41z%22/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E") 16 16,crosshair}
#cockpit .ck-key,#cockpit .ck-preset,#cockpit .ck-play,#cockpit .ck-knob,#cockpit .ck-switch,#cockpit .jp-card,#cockpit .ck-charm,#cockpit button,#cockpit a{cursor:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%22-77.6%20-77.1%201154.8%201035.3%22%3E%3Cdefs%3E%3Cfilter%20id%3D%22o%22%20x%3D%22-20%25%22%20y%3D%22-20%25%22%20width%3D%22140%25%22%20height%3D%22140%25%22%3E%3CfeMorphology%20in%3D%22SourceAlpha%22%20operator%3D%22dilate%22%20radius%3D%2255%22%20result%3D%22d%22/%3E%3CfeFlood%20flood-color%3D%22%23f0a73a%22/%3E%3CfeComposite%20in2%3D%22d%22%20operator%3D%22in%22%20result%3D%22e%22/%3E%3CfeMerge%3E%3CfeMergeNode%20in%3D%22e%22/%3E%3CfeMergeNode%20in%3D%22SourceGraphic%22/%3E%3C/feMerge%3E%3C/filter%3E%3C/defs%3E%3Cg%20filter%3D%22url%28%23o%29%22%20transform%3D%22rotate%28-18%20500%20440%29%22%3E%3Cg%20transform%3D%22translate%280.00%2C0.00%29%20scale%281.00000%29%22%20fill%3D%22%23ffffff%22%3E%3Cg%20transform%3D%22scale%280.303767%29%20translate%28-171%2C-163%29%20translate%280%2C3280%29%20scale%280.1%2C-0.1%29%22%3E%3Cpath%20d%3D%22M17750%2031084%20c-1861%20-78%20-3108%20-438%20-3552%20-1024%20-109%20-144%20-150%20-253%0A-208%20-555%20-12%20-60%20-88%20-441%20-170%20-845%20-82%20-404%20-608%20-3002%20-1170%20-5773%20-561%0A-2771%20-1027%20-5056%20-1034%20-5078%20-17%20-49%20-55%20-104%20-99%20-146%20-26%20-24%20-8203%20-6792%0A-8457%20-7000%20-371%20-302%20-563%20-695%20-625%20-1278%20-25%20-233%20-33%20-251%20-173%20-380%20-183%0A-170%20-328%20-415%20-402%20-680%20-83%20-295%20-92%20-719%20-24%20-1114%20235%20-1370%201317%20-3077%0A2599%20-4100%20494%20-394%201030%20-683%201476%20-796%20506%20-129%20960%20-68%201319%20175%20112%2076%0A116%2078%20198%2090%2059%209%2091%208%20184%20-7%2083%20-13%20171%20-17%20333%20-18%20357%200%20377%205%201180%20325%0A330%20132%20978%20389%201440%20573%20462%20184%201662%20661%202666%201061%201111%20442%201849%20730%201883%0A736%2061%2010%20161%20-2%20205%20-24%2044%20-23%20247%20-105%20411%20-166%20612%20-228%201219%20-368%201875%0A-431%20182%20-17%20758%20-23%20970%20-10%20794%2050%201599%20245%202366%20572%20136%2058%20205%2072%20286%2059%0A53%20-9%201163%20-448%205378%20-2127%201296%20-517%201225%20-489%201360%20-523%20218%20-55%20521%20-65%0A770%20-25%20163%2026%20234%2011%20366%20-79%20587%20-398%201386%20-313%202279%20243%201579%20982%203019%0A3147%203161%204751%2015%20178%206%20498%20-19%20645%20-62%20358%20-215%20657%20-444%20870%20-140%20129%20-148%0A147%20-173%20380%20-57%20534%20-219%20901%20-526%201187%20-57%2054%20-1987%201656%20-4289%203559%20-2302%0A1904%20-4210%203484%20-4241%203510%20-64%2055%20-105%20110%20-125%20168%20-7%2022%20-473%202307%20-1034%0A5078%20-562%202771%20-1088%205369%20-1170%205773%20-82%20404%20-158%20785%20-170%20845%20-69%20359%20-119%0A470%20-300%20659%20-468%20487%20-1554%20804%20-3095%20901%20-233%2015%20-1010%2027%20-1205%2019z%20m-3645%0A-13385%20c1034%20-353%202286%20-986%203425%20-1733%20365%20-239%20433%20-268%20640%20-268%20195%200%20277%0A31%20542%20205%201174%20771%202317%201361%203398%201752%20247%2089%20313%20106%20431%20106%20202%200%20352%0A-62%20495%20-205%20143%20-143%20214%20-314%20215%20-517%200%20-205%20-61%20-352%20-210%20-499%20-116%20-115%0A-151%20-135%20-406%20-225%20-992%20-351%20-2066%20-909%20-3245%20-1687%20-312%20-206%20-421%20-332%0A-477%20-553%20-17%20-67%20-18%20-240%20-18%20-3580%200%20-3340%20-1%20-3513%20-18%20-3580%20-66%20-257%0A-271%20-462%20-522%20-521%20-91%20-21%20-259%20-21%20-350%200%20-249%2058%20-456%20263%20-521%20516%20-15%0A60%20-17%20286%20-25%202780%20-13%204371%20-13%204314%20-33%204390%20-33%20127%20-90%20224%20-189%20327%20-79%0A82%20-122%20114%20-341%20257%20-1226%20799%20-2243%201322%20-3246%201671%20-194%2067%20-240%2094%20-351%0A205%20-149%20147%20-210%20294%20-210%20499%201%20325%20221%20622%20521%20701%20149%2040%20293%2027%20495%20-41z%22/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E") 16 16,pointer !important}

/* 播放中一律不閃（保險） */ #cockpit .ck-play.on.cue-play::after, #cockpit .jp-radio:has(.ck-play.on).cue-radio{animation:none!important;opacity:0}

/* 11-13 使用者裁定併入正式首頁：毛絨娃娃選 A（doll-v1.webp 鈕扣眼），播放＋車窗最大約 8°。來源：建置-首頁-F-娃娃.py（WebP 版） */
/* 11-13 變體 F v3：毛絨娃娃改用 Codex 生成的手繪插畫（示範圖/娃娃/doll-v*.webp，去背）。純裝飾 aria-hidden；平常靜止，滑過／點一下歪一下再回彈，播放中跟著節奏左右晃，車窗開著時像被風吹一樣晃；減少動態時全停。陰影用 CSS 畫 */
@property --pa { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --pw { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --pf { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --pk { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
#cockpit .ck-doll { position: absolute; z-index: 1; left: 71.6%; bottom: 20.7%; width: 7.2%; aspect-ratio: 480 / 411; pointer-events: auto; -webkit-tap-highlight-color: transparent; }
#cockpit .ck-doll::before { content: ""; position: absolute; left: 6%; right: 6%; bottom: -1.5%; height: 9%; background: radial-gradient(closest-side,rgba(2,8,16,.6), rgba(2,8,16,.32) 55%, rgba(2,8,16,0)); filter: blur(1.5px); pointer-events: none; }
#cockpit .ck-doll .pl-wind, #cockpit .ck-doll .pl-flutter { position: relative; display: block; width: 100%; height: 100%; }
#cockpit .ck-doll .pl-body { --t: calc(var(--pa) + var(--pw) + var(--pf) + var(--pk)); position: relative; display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; transform-origin: 50% 98%; transform: translateY(calc(-35% * max(sin(var(--t)), -1 * sin(var(--t))))) rotate(var(--t)); filter: saturate(.96) drop-shadow(0 1px 1px rgba(2,8,16,.25)); user-select: none; -webkit-user-drag: none; }
/* 播放中：跟著節奏左右晃 */
#cockpit:has(.ck-play.on) .ck-doll .pl-body { animation: pl-sway 1.8s ease-in-out infinite alternate; }
@keyframes pl-sway { from { --pa: -4.5deg; } to { --pa: 4.5deg; } }
/* 車窗開：風從駕駛座側吹進來，往右偏、一陣一陣（7.3s 陣風＋1.27s 細抖，週期互質所以不會規律重複） */
#cockpit.win-down .ck-doll .pl-wind { animation: pl-gust 7.3s ease-in-out infinite; }
#cockpit.win-down .ck-doll .pl-flutter { animation: pl-flutter 1.27s ease-in-out infinite alternate; }
@keyframes pl-gust { 0%{--pw:.3deg} 12%{--pw:2.2deg} 21%{--pw:1.1deg} 34%{--pw:2.8deg} 47%{--pw:.5deg} 58%{--pw:1.6deg} 71%{--pw:2.6deg} 86%{--pw:.9deg} 100%{--pw:.3deg} }
@keyframes pl-flutter { 0%{--pf:-.8deg} 40%{--pf:.3deg} 100%{--pf:.8deg} }
/* 播放＋車窗：以風吹為主，節奏晃動縮小（合計峰值 2.8+.8+4.4＝8°，上限約 ±8°（使用者 11-13 改）） */
#cockpit.win-down:has(.ck-play.on) .ck-doll .pl-body { animation: pl-sway-sm 1.8s ease-in-out infinite alternate; }
@keyframes pl-sway-sm { from { --pa: -4.4deg; } to { --pa: 4.4deg; } }
/* 滑過／點一下：像被碰到，歪一下再明顯回彈（掛在 .ck-doll 上，和播放、風吹疊加） */
#cockpit .ck-doll.poke { animation: pl-poke 1.1s cubic-bezier(.3,.6,.4,1) 1; }
@keyframes pl-poke { 0%{--pk:0deg} 18%{--pk:-14deg} 45%{--pk:6deg} 68%{--pk:-2.5deg} 86%{--pk:1deg} 100%{--pk:0deg} }
@media (max-width: 820px) {
  /* 手機（使用者 11-13：要和桌機同一個車架位置）：坐在上方插畫的儀表板上，對應桌機節目表立牌旁。
     手機插畫 .jp-inner＝場景寬 140%、左移 17%、底對齊 4:3 場景（高 0.7917W、頂 -0.0417W）；桌機娃娃在插畫座標 x 71.6%～78.8%、底 79.3%。
     換算到 .jp-stage（寬 W）：底＝0.586W；放大到 17%W（320 寬、扣捲軸後高約 44px）並維持同一個中心 x 88.3%。
     margin-top 的百分比以容器「寬」計算，所以各寬度都穩定在同一點，不受下方收音機高度影響；絕對定位不佔收音機下方那排的位置 */
  #cockpit .ck-doll { position: absolute; left: 79.8%; top: 0; bottom: auto; width: 17%; margin-top: 44%; }
}
@media (prefers-reduced-motion: reduce) {
  #cockpit .ck-doll,#cockpit .ck-doll .pl-body, #cockpit .ck-doll .pl-wind, #cockpit .ck-doll .pl-flutter { animation: none !important; transition: none !important; }
  #cockpit .ck-doll .pl-body { transform: none !important; }
}
