/* Stats2Pitch v1.7.3 — chosen odd only + responsive tabbed board */
:root{--s2p-tab-bg:#07131d;--s2p-tab-line:#193245;--s2p-tab-green:#7ee600}

.s2p-board-tabs{position:sticky;top:0;z-index:35;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:14px 0 10px;padding:8px;background:rgba(2,9,14,.96);border:1px solid #162a39;border-radius:12px;backdrop-filter:blur(14px)}
.s2p-board-tab{min-height:46px;border:1px solid var(--s2p-tab-line);border-radius:9px;background:var(--s2p-tab-bg);color:#c8d4dd;display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 12px;font:inherit;font-weight:800;cursor:pointer;white-space:nowrap}
.s2p-board-tab b{min-width:24px;height:22px;padding:0 6px;border-radius:999px;display:grid;place-items:center;background:#102230;color:#91a5b4;font-size:12px}
.s2p-board-tab.is-active{border-color:#6fcf00;background:linear-gradient(180deg,#102111,#09170d);color:#fff;box-shadow:0 0 0 1px rgba(126,230,0,.12) inset}
.s2p-board-tab.is-active b{background:#72d800;color:#061006}
[data-s2p-tab-panel]{display:none!important}[data-s2p-tab-panel].s2p-tab-visible{display:block!important}
.section-title[data-s2p-tab-panel]{margin-top:6px!important}
.detail-price span{letter-spacing:.03em}.detail-price strong{color:var(--s2p-green,#7ee600)}
.s2p-controls-v173 select,.s2p-controls-v173 input,.s2p-controls-v173 button{min-height:46px!important;font-size:14px!important}
.s2p-controls-v173 label{font-size:12px!important;gap:6px!important}.s2p-topbar-v173{min-height:58px}

@media(max-width:1024px){
  .s2p-shell-v173{padding:10px!important}
  .s2p-controls-v173 .control-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  .s2p-controls-v173 .refresh{grid-column:1/-1!important;width:100%!important}
  .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .pred-table,.pred-table tbody{display:block!important;width:100%!important}.pred-table thead{display:none!important}
  .pred-table tbody{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .pred-table tr{display:grid!important;grid-template-columns:1fr 1fr!important;grid-template-areas:'league time' 'match match' 'prediction odds' 'confidence details'!important;border:1px solid #1d3445!important;border-radius:12px!important;background:linear-gradient(145deg,#07131f,#050d15)!important;padding:10px!important;overflow:hidden!important;min-width:0!important}
  .pred-table td{display:block!important;border:0!important;padding:6px 7px!important;min-width:0!important;width:auto!important;font-size:13px!important;overflow-wrap:anywhere}
  .pred-table td::before{display:block!important;color:#748897!important;font-size:9px!important;text-transform:uppercase!important;letter-spacing:.09em!important;margin-bottom:4px!important}
  .pred-table td[data-label='Time']{grid-area:time;text-align:right}.pred-table td[data-label='Time']::before{content:'Kickoff'}
  .pred-table td[data-label='League']{grid-area:league}.pred-table td[data-label='League']::before{content:'Competition'}
  .pred-table td[data-label='Match']{grid-area:match;border-top:1px solid #152a38!important;border-bottom:1px solid #152a38!important;padding-top:10px!important;padding-bottom:10px!important}.pred-table td[data-label='Match']::before{content:'Match'}
  .pred-table td[data-label='Prediction']{grid-area:prediction}.pred-table td[data-label='Prediction']::before{content:'Prediction'}
  .pred-table td[data-label='Odds']{grid-area:odds;text-align:right}.pred-table td[data-label='Odds']::before{content:'Odd'}
  .pred-table td[data-label='Confidence']{grid-area:confidence}.pred-table td[data-label='Confidence']::before{content:'Confidence'}
  .pred-table td[data-label='Details']{grid-area:details;display:flex!important;align-items:flex-end;justify-content:flex-end}.pred-table td[data-label='Details']::before{display:none!important}
  .details-cell .details-btn{width:100%!important;max-width:none!important;min-height:44px!important}
}

@media(max-width:720px){
  .s2p-shell-v173{padding:7px!important;padding-bottom:calc(18px + env(safe-area-inset-bottom))!important}
  .s2p-topbar-v173{position:relative!important;display:grid!important;grid-template-columns:1fr auto!important;gap:8px!important;padding:8px 4px 10px!important}
  .s2p-topbar-v173 .topbar-brand{min-width:0!important;width:auto!important}.s2p-topbar-v173 .page-title{font-size:17px!important;white-space:nowrap}
  .s2p-topbar-v173 .top-actions-inline{grid-column:1/-1;width:100%!important;display:flex!important;justify-content:space-between!important;border-top:1px solid #142432;padding-top:7px!important}
  .s2p-topbar-v173 .top-actions-inline>span{max-width:70vw!important;font-size:11px!important}
  .s2p-controls-v173 .control-grid{grid-template-columns:1fr 1fr!important;gap:8px!important}
  .s2p-controls-v173 label:nth-child(3),.s2p-controls-v173 label:nth-child(4){grid-column:1/-1}
  .s2p-board-tabs{top:0;margin:10px -1px 8px;padding:5px;gap:5px;border-radius:10px;overflow-x:auto;grid-template-columns:repeat(4,minmax(112px,1fr));scrollbar-width:none}.s2p-board-tabs::-webkit-scrollbar{display:none}
  .s2p-board-tab{min-height:44px;padding:7px 9px;font-size:12px}
  .summary-grid{gap:7px!important}.summary-card{min-height:72px!important;padding:10px!important}.summary-card strong{font-size:21px!important}.summary-card span{font-size:11px!important}
  .section-title{font-size:18px!important;margin:8px 2px!important}
  .pred-table tbody{grid-template-columns:1fr!important}
  .priority-v17-row{border-radius:9px!important;margin-bottom:6px!important}
  .detail-modal-v17{max-height:92dvh!important}.detail-body{padding-bottom:calc(20px + env(safe-area-inset-bottom))!important}
}

@media(max-width:430px){
  .s2p-shell-v173{padding:5px!important}
  .s2p-topbar-v173 .brand-inline .wordmark{max-width:112px!important}.s2p-topbar-v173 .title-divider{display:none!important}.s2p-topbar-v173 .page-title{font-size:15px!important}
  .s2p-controls-v173 .control-grid{grid-template-columns:1fr!important}.s2p-controls-v173 label,.s2p-controls-v173 label:nth-child(3),.s2p-controls-v173 label:nth-child(4){grid-column:auto!important}
  .s2p-controls-v173 select,.s2p-controls-v173 input,.s2p-controls-v173 button{min-height:48px!important;font-size:14px!important}
  .s2p-board-tabs{grid-template-columns:repeat(4,minmax(104px,1fr));margin-left:0;margin-right:0}
  .summary-grid{grid-template-columns:1fr 1fr!important}.summary-card{padding:8px!important}.summary-icon{width:36px!important;height:36px!important;font-size:18px!important}.summary-card strong{font-size:18px!important}
  .pred-table tr{grid-template-columns:1fr 1fr!important;grid-template-areas:'league league' 'match match' 'time odds' 'prediction prediction' 'confidence details'!important;padding:8px!important}
  .pred-table td[data-label='Time']{text-align:left}.pred-table td[data-label='Odds']{text-align:right}
  .competition-cell{justify-content:flex-start!important}.competition-cell>div:last-child{text-align:left!important}.country-flag{width:23px!important;height:16px!important}.league-logo{width:21px!important;height:21px!important}
  .match-team span{font-size:13px!important}.match-team img{width:24px!important;height:24px!important}.prediction{font-size:14px!important}
  .confidence{font-size:12px!important}.stars{font-size:13px!important}.details-btn{font-size:12px!important;padding:8px!important}
  .priority-v17-row{grid-template-columns:1fr auto!important;grid-template-areas:'league odd' 'match match'!important}.priority-compact-star{display:none!important}.priority-compact-match strong{white-space:normal!important;font-size:13px!important}
}

@media(max-width:360px){
  .s2p-shell-v173{padding:4px!important}.s2p-topbar-v173 .page-title{font-size:14px!important}.s2p-topbar-v173 .top-actions-inline>span{max-width:58vw!important}
  .summary-grid{grid-template-columns:1fr!important}.summary-card{min-height:60px!important}
  .s2p-board-tabs{grid-template-columns:repeat(4,minmax(96px,1fr));padding:4px;gap:4px}.s2p-board-tab{font-size:11px;min-height:42px}.s2p-board-tab b{min-width:20px;height:20px;font-size:10px}
  .pred-table tr{grid-template-columns:1fr!important;grid-template-areas:'league' 'match' 'time' 'prediction' 'odds' 'confidence' 'details'!important}
  .pred-table td[data-label='Odds']{text-align:left}.pred-table td[data-label='Details']{justify-content:stretch!important}.details-cell .details-btn{min-height:46px!important}
  .priority-v17-row{grid-template-columns:1fr!important;grid-template-areas:'league' 'match' 'odd'!important}.priority-compact-odd{justify-self:start!important}
}

@media(prefers-reduced-motion:reduce){.s2p-board-tabs{scroll-behavior:auto}.s2p-board-tab{transition:none!important}}
