/* sheet-dark.css — 全站共用加購面板（shopSheet.js）的「快閃深色」皮，給直播影片頁／回放頁用。
   ⛔ 只改皮不改行為；<html class="dksheet"> 才生效。冰白頁（首頁／商品頁／購物車）不要載這支。
   ⛔ 面板的 .opt／.radio／.glass／.pstep／.pcb 基礎樣式住在宿主頁（live.html 檔頭有寫）—— 這裡是深色版整組重寫。 */
/* ── 共用加購面板在這一頁的皮：深色、手機從底部升起半頁（亮 09-16 13:15）──
   ⛔ 不動 shopSheet.js（首頁／商品頁／購物車還是冰白置中版），只在這頁用 CSS 蓋樣式。
   面板開關是用 inline style 的 opacity 切的 → 用屬性選擇器接手 transform，做成滑上來。 */
html.dksheet #sheet_mask { background: rgba(0,0,0,.5) !important; }
html.dksheet #sheet .sheet-solid { background: rgba(20,21,26,.9) !important; border: 1px solid rgba(255,255,255,.12) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: 0 -14px 44px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08) !important; }
html.dksheet #sheet [class*="text-ink"] { color: rgba(255,255,255,.62) !important; }
html.dksheet #sheet [class*="text-inkDeep"] { color: #fff !important; }
html.dksheet #sheet [class*="text-inkDeep/25"] { color: rgba(255,255,255,.3) !important; }
html.dksheet #sheet [class*="bg-white"] { background-color: rgba(255,255,255,.08) !important; }
html.dksheet #sheet [class*="bg-black/"] { background-color: rgba(255,255,255,.18) !important; }
html.dksheet #sheet [class*="border-black"] { border-color: rgba(255,255,255,.14) !important; }
html.dksheet #sheet [class*="bg-inkDeep"] { background: linear-gradient(180deg, #ff7a68, #f95546) !important; border-color: transparent !important; color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 22px rgba(255,90,78,.35) !important; }
html.dksheet #sheet [class*="bg-inkDeep"] [class*="text-"] { color: #fff !important; }
html.dksheet #sheet [style*="border-top"] { border-top-color: rgba(255,255,255,.1) !important; }
/* ⛔ 共用面板的 .opt／.radio／.glass／.pstep／.pcb 基礎樣式住在各宿主頁（live.html 檔頭有寫：少了就變沒邊框沒圓鈕的裸列表）——
   這頁是深色，所以整組用深色版重寫，不是只改顏色 */
html.dksheet #sheet .glass, html.dksheet #sheet .glass-soft { background: rgba(255,255,255,.07) !important; border: 1px solid rgba(255,255,255,.12) !important; box-shadow: none !important; }
html.dksheet #sheet .opt { display: flex; gap: 10px; padding: 12px 13px; border-radius: 16px; cursor: pointer; transition: border-color .15s;
  background: rgba(255,255,255,.06) !important; border: 1.5px solid rgba(255,255,255,.14) !important; }
html.dksheet #sheet .opt.on { background: rgba(255,107,94,.16) !important; border-color: #ff6b5e !important; }
html.dksheet #sheet .radio { width: 19px; height: 19px; border-radius: 999px; flex-shrink: 0; margin-top: 1px; border: 2px solid rgba(255,255,255,.35);
  display: flex; align-items: center; justify-content: center; }
html.dksheet #sheet .opt.on .radio { border-color: #ff6b5e !important; }
html.dksheet #sheet .opt.on .radio::after { content: ''; width: 9px; height: 9px; border-radius: 999px; background: #ff6b5e; }
html.dksheet #sheet .pstep { width: 26px; height: 26px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff;
  display: flex; align-items: center; justify-content: center; }
html.dksheet #sheet .pcb { width: 19px; height: 19px; border-radius: 6px; border: 2px solid rgba(255,255,255,.35); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
html.dksheet #sheet .pcb.on { background: #ff6b5e; border-color: #ff6b5e; }
html.dksheet #sheet .pcb.on::after { content: ''; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px,-1px); }
html.dksheet #sheet .text-brandPink { color: #ff6b5e !important; }
@media (max-width: 1023.98px) {
  html.dksheet #sheet { top: auto !important; bottom: 0 !important; left: 0 !important; right: 0 !important;
    transform: translateY(102%) !important; transition: transform .32s cubic-bezier(0,0,.2,1), opacity .2s !important; }
  html.dksheet #sheet[style*="opacity: 1"] { transform: translateY(0) !important; }
  html.dksheet #sheet .sheet-solid { border-radius: 26px 26px 0 0 !important; max-height: 74dvh !important; border-bottom: 0 !important;
    padding-bottom: env(safe-area-inset-bottom, 0px); }
}
/* ── 電腦版：面板停在右欄**下半**，商品清單留在上面照樣可以點（亮 09-16：「直接在右邊完整出現、不用去佔到畫面」＋「操作卡卡的」）──
   ⛔ 第一版是右欄整欄全高：合計／加入被釘在最底下離尺碼鈕很遠、中間一大片空、要換一件得先按 ✕ 再點清單。
   現在：面板從右欄底部升起、高度跟著內容走（最多 72dvh）、清單露在上面 → 點清單另一件就直接換內容；
   影片區不加紗不霧化、不吃點擊；關閉靠 ✕ 或點上面的清單以外區域。寬度＝--dk-side-w（回放頁 400px 跟右欄同寬）。 */
@media (min-width: 1024px) {
  html.dksheet #sheet { top: auto !important; bottom: 0 !important; left: auto !important; right: 0 !important;
    width: var(--dk-side-w, 400px); max-width: none !important; margin: 0 !important;
    transform: translateY(104%) !important; transition: transform .3s cubic-bezier(0,0,.2,1), opacity .2s !important; }
  html.dksheet #sheet[style*="opacity: 1"] { transform: translateY(0) !important; }
  html.dksheet #sheet .sheet-solid { max-height: 72dvh !important; border-radius: 18px 18px 0 0 !important;
    border-bottom: 0 !important; border-right: 0 !important; box-shadow: 0 -18px 50px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.1) !important; }
  html.dksheet #sheet .sheet-solid > button[aria-label="關閉"] { top: 10px; right: 12px; }
  html.dksheet #sheet .w-10.h-1 { display: none; }                 /* 手機用的拖曳橫條，電腦沒意義 */
  html.dksheet #sheet #sh_head_row { padding-top: 16px; }
  html.dksheet #sheet_mask { background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    pointer-events: none !important; }
}
