/* accuracy-simple-list.css — 準度頁「最近結算／最近回測」簡化列表
 * 對齊站上 :root（predict-site/static/style.css），不發明新主色。
 * Drop-in：掛在既有 style.css 之後即可。
 * 嵌法 A：只替換「最近結算」與回測「最近回測場次」列表區，不動 KPI／banner／待結算。
 * 2026-10-26 chip 開工：雙列 chip（聯賽橫滑＋信心）；刪「全部」。
 *
 * 工程要掛的 class（前綴 acc-simple-）：
 *   .acc-simple-block          列表區塊根（真實或回測）
 *   .acc-simple-head           標題列
 *   .acc-simple-title          主標題（最近結算／最近回測）
 *   .acc-simple-sub            副標
 *   .acc-simple-hint           chip 上方小字
 *   .acc-simple-filters        聯賽列；內用全站 .filters button/.on
 *   .acc-simple-filters--conf  信心列（上距 ~8px）
 *   .acc-simple-list           <ul>；data-sport + data-confidence
 *   .acc-simple-row            <a> 整列可點 → /game/…
 *   .acc-simple-result.is-hit / .is-miss
 *   .acc-simple-main / .acc-simple-match / .acc-simple-date / .acc-simple-teams / .acc-simple-meta
 *   .acc-simple-pick / .acc-simple-score / .acc-simple-time
 *   .acc-simple-note / .acc-simple-empty / .acc-simple-more
 *   .acc-simple-bt / __summary / __body
 *   .sr-only
 */

/* —— 無障礙文字 —— */
.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

/* —— 區塊頭 —— */
.acc-simple-block{margin:0 0 18px}
.acc-simple-head{margin:0 0 10px}
.acc-simple-title{
  margin:0;
  font-size:16px;
  font-weight:800;
  color:var(--text,#eaf1ff);
  line-height:1.35;
}
.acc-simple-sub{
  margin:4px 0 0;
  font-size:12px;
  font-weight:600;
  color:var(--muted,#93a6c9);
  line-height:1.4;
}
.acc-simple-hint{
  margin:0 0 8px;
  font-size:12px;
  font-weight:600;
  color:var(--muted,#93a6c9);
  line-height:1.45;
}

/* —— Filter：沿用全站 .filters button / .on；此層只加間距與橫滑 —— */
.acc-simple-filters{
  margin:0 0 0;
}
/* 聯賽列與信心列間距 ~8px；信心列再留底距給列表 */
.acc-simple-filters + .acc-simple-filters--conf{
  margin-top:8px;
}
.acc-simple-filters--conf{
  margin-bottom:10px;
}
/* 僅一列時（兜底）仍留底距 */
.acc-simple-filters:not(.acc-simple-filters--conf):last-of-type,
.acc-simple-block > .acc-simple-filters:last-of-type{
  margin-bottom:10px;
}
.acc-simple-filters--conf + .acc-simple-list,
.acc-simple-filters--conf + .acc-simple-empty{
  /* 列表緊接信心列 */
}
.acc-simple-filters .filters{
  display:flex;
  flex-wrap:nowrap;
  gap:6px;
  overflow-x:auto;
  padding-bottom:4px;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
}
/* 若頁面未載入全站 .filters 規則，以下為備援（與 style.css 一致） */
.acc-simple-filters .filters button{
  background:var(--card,#12264b);
  color:var(--text,#eaf1ff);
  border:1px solid var(--line,#21407a);
  border-radius:999px;
  padding:6px 14px;
  font:inherit;
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
  cursor:pointer;
  flex:0 0 auto;
}
.acc-simple-filters .filters button.on{
  background:var(--green,#22d36f);
  color:var(--bg,#0a1730);
  border-color:var(--green,#22d36f);
}

/* —— 列表 —— */
.acc-simple-list{
  list-style:none;
  margin:0;
  padding:0;
  border:1px solid var(--line,#21407a);
  border-radius:12px;
  overflow:hidden;
  background:var(--card,#12264b);
}
.acc-simple-list > li{
  margin:0;
  padding:0;
}
/* 隱藏列不佔分隔線，最後一列可見列也不畫底線 */
.acc-simple-list > li:not([hidden]) ~ li:not([hidden]){
  border-top:1px solid var(--line,#21407a);
}
/* 篩選隱藏（工程可用 JS 或 CSS；此為可選 CSS 路徑） */
.acc-simple-list[data-filter-mode="css"] > li > .acc-simple-row{
  /* 預設顯示；不符時由 JS 加 hidden 或自行寫 attribute 選擇器 */
}

/* 整列 <a> */
.acc-simple-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
  min-height:52px;
  padding:10px 12px;
  color:inherit;
  text-decoration:none;
  -webkit-tap-highlight-color:transparent;
}
.acc-simple-row:active{
  background:rgba(34,211,111,.06);
}
@media (hover:hover){
  .acc-simple-row:hover{
    background:rgba(34,211,111,.05);
  }
}

/* 結果欄：左固定 ~36–40px */
.acc-simple-result{
  flex:0 0 38px;
  width:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  align-self:center;
  min-height:28px;
  border-radius:8px;
  font-size:18px;
  font-weight:800;
  line-height:1;
  font-variant-numeric:tabular-nums;
}
.acc-simple-result.is-hit{
  color:var(--green,#22d36f);
  background:#143a28; /* 同 .badge.hit */
}
.acc-simple-result.is-miss{
  color:var(--bad,#ff5d6c);
  background:#3a1820; /* 同 .badge.miss */
}
.acc-simple-result::before{
  content:"×";
}
.acc-simple-result.is-hit::before{content:"✓"}
.acc-simple-result.is-miss::before{content:"×"}

/* 右側雙行 */
.acc-simple-main{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
  padding-top:1px;
}
.acc-simple-match{
  margin:0;
  display:flex;
  align-items:baseline;
  gap:4px;
  min-width:0;
  font-size:14px;
  font-weight:700;
  color:var(--text,#eaf1ff);
  line-height:1.35;
  white-space:nowrap;
  overflow:hidden;
}
/* 開賽日（台灣時間 M/D）。不縮、不換行，對陣過長只截隊名。 */
.acc-simple-date{
  flex:0 0 auto;
  color:var(--muted,#93a6c9);
  font-size:11px;
  font-weight:600;
  line-height:1.2;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.acc-simple-teams{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.acc-simple-match .at,
.acc-simple-league{
  color:var(--muted,#93a6c9);
  font-weight:600;
}
.acc-simple-meta{
  margin:0;
  font-size:12.5px;
  font-weight:600;
  color:var(--muted,#93a6c9);
  line-height:1.35;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.acc-simple-pick{color:var(--text,#eaf1ff);font-weight:700}
.acc-simple-score{
  font-variant-numeric:tabular-nums;
  color:var(--muted,#93a6c9);
}
.acc-simple-time{
  display:none;
  font-variant-numeric:tabular-nums;
  color:var(--muted,#93a6c9);
  font-weight:600;
  font-size:11.5px;
}
.acc-simple-time.is-show{display:inline}

/* 下註 */
.acc-simple-note{
  margin:10px 0 0;
  font-size:11.5px;
  color:var(--muted,#93a6c9);
  line-height:1.45;
}

/* 顯示更多／收合：次要按鈕。撐滿、44px、14/600、深藍邊框配深藍字，不用綠色。 */
.acc-simple-more{
  display:flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  width:100%;
  height:44px;
  margin:10px 0 0;
  padding:0 14px;
  background:#eef3fb;
  color:#173060;
  border:1px solid #21407a;
  border-radius:999px;
  font:inherit;
  font-size:14px;
  font-weight:600;
  line-height:1.2;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.acc-simple-more:hover,
.acc-simple-more:focus{
  background:#eef3fb;
  color:#173060;
  border-color:#21407a;
}
.acc-simple-more:focus-visible{
  outline:2px solid #21407a;
  outline-offset:2px;
}

/* 空態 */
.acc-simple-empty{
  margin:0;
  padding:18px 14px;
  text-align:center;
  font-size:13px;
  font-weight:600;
  color:var(--muted,#93a6c9);
  border:1px dashed var(--line,#21407a);
  border-radius:12px;
  background:rgba(18,38,75,.5);
}

/* —— 回測摺疊（預設關閉：不帶 open） —— */
.acc-simple-bt{
  margin:8px 0 0;
  border:1px dashed var(--line,#21407a);
  border-radius:12px;
  background:rgba(18,38,75,.35);
  padding:0;
}
.acc-simple-bt__summary{
  cursor:pointer;
  list-style:none;
  padding:12px 14px;
  user-select:none;
  color:var(--muted,#93a6c9);
}
.acc-simple-bt__summary::-webkit-details-marker{display:none}
.acc-simple-bt__summary::before{
  content:"▸ ";
  color:var(--green,#22d36f);
  font-size:11px;
}
.acc-simple-bt[open] > .acc-simple-bt__summary::before{content:"▾ "}
.acc-simple-bt__summary .acc-simple-title{
  display:inline;
  font-size:15px;
  color:var(--muted,#93a6c9);
}
.acc-simple-bt__summary .acc-simple-sub{
  display:block;
  margin-top:4px;
}
.acc-simple-bt__body{
  padding:0 10px 12px;
}
.acc-simple-bt .acc-simple-list{
  opacity:.92;
}
.acc-simple-bt .acc-simple-hint{
  margin-top:2px;
}

/* —— 桌機 ≥768：單行四欄＋時間；chip 仍上下兩列 —— */
@media (min-width:768px){
  .acc-simple-row{
    align-items:center;
    min-height:44px;
    padding:8px 14px;
    gap:12px;
  }
  .acc-simple-main{
    flex-direction:row;
    align-items:center;
    gap:16px;
    flex-wrap:nowrap;
  }
  .acc-simple-match{
    flex:1 1 42%;
    min-width:10em;
  }
  .acc-simple-meta{
    flex:1 1 40%;
    display:flex;
    align-items:center;
    gap:10px;
    white-space:nowrap;
  }
  .acc-simple-time{
    display:inline;
    margin-left:auto;
    flex:0 0 auto;
    font-size:12.5px;
    min-width:3.2em;
    text-align:right;
  }
}

/* —— 已選單一聯賽：藏列上聯賽短名（永遠單一，無 all） —— */
.acc-simple-list[data-sport] .acc-simple-league{
  display:none;
}
