/* Predict2U v220 — Today's Board redesign
   Production UI replacement for the prediction-card section.
   Keeps the existing board data, engine logic, slip, proof and share actions. */

#board.p2u-board-shell{
  position:relative;
  margin:8px 0 42px;
  padding:28px;
  border:1px solid rgba(139,224,64,.10);
  border-radius:24px;
  background:
    radial-gradient(circle at 7% 0%,rgba(119,196,28,.08),transparent 24%),
    linear-gradient(180deg,rgba(8,21,33,.95),rgba(5,14,24,.97));
  box-shadow:0 22px 70px rgba(0,0,0,.26),inset 0 1px 0 rgba(255,255,255,.025);
  overflow:hidden;
}
#board.p2u-board-shell::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(120deg,rgba(255,255,255,.018),transparent 34%);
}
.p2u-board-head{
  position:relative;z-index:1;display:flex;align-items:flex-start;justify-content:space-between;
  gap:24px;margin-bottom:22px;
}
.p2u-board-heading{display:flex;align-items:center;gap:16px;min-width:280px}
.p2u-board-icon{
  width:54px;height:54px;flex:0 0 54px;border-radius:16px;display:grid;place-items:center;
  color:#07130b;background:linear-gradient(145deg,#c8ff2c,#77c41c);
  border:1px solid rgba(221,255,84,.55);box-shadow:0 14px 32px rgba(119,196,28,.18);
  font-size:21px;
}
.p2u-board-heading-copy{min-width:0}
#board .p2u-board-heading .t-h2{font-size:clamp(26px,3vw,34px);line-height:1.05;letter-spacing:-.035em}
.p2u-board-subline{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px;margin-top:8px;color:#8e9aaa;font-size:12px}
.p2u-board-subline #board-sub{margin:0;color:#a5afbd}
.p2u-board-fresh-dot{width:6px;height:6px;border-radius:99px;background:#9ce628;box-shadow:0 0 13px rgba(156,230,40,.72)}
#board-analysed{color:#7f8b9b}

.p2u-board-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap;max-width:720px}
.p2u-view-chip,.p2u-league-chip,.p2u-filter-toggle{
  min-height:42px;border:1px solid #223246;background:rgba(7,20,32,.72);color:#d6dde7;
  border-radius:14px;display:inline-flex;align-items:center;justify-content:center;gap:9px;
  padding:0 14px;font-size:12px;font-weight:750;white-space:nowrap;transition:.18s ease;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018);
}
.p2u-view-chip:hover,.p2u-league-chip:hover,.p2u-filter-toggle:hover{border-color:#3a4c61;color:#fff;transform:translateY(-1px)}
.p2u-view-chip.is-active{color:#bfff2f;border-color:rgba(171,239,43,.62);background:rgba(119,196,28,.08);box-shadow:0 0 0 1px rgba(119,196,28,.05),inset 0 0 18px rgba(119,196,28,.035)}
.p2u-chip-count{min-width:22px;height:22px;border-radius:999px;display:inline-grid;place-items:center;padding:0 6px;background:#172636;color:#e8eef5;font-size:10px;font-weight:900}
.p2u-view-chip.is-active .p2u-chip-count{background:rgba(119,196,28,.17);color:#c9ff46}
.p2u-league-chip{position:relative;padding-right:9px}
.p2u-league-chip select{
  appearance:none;-webkit-appearance:none;min-width:112px;max-width:160px;background:transparent!important;
  border:0!important;outline:0;color:#d6dde7!important;padding:0 24px 0 0!important;font-size:12px!important;font-weight:750;cursor:pointer;
}
.p2u-league-chip::after{content:"\f078";font-family:"Font Awesome 6 Free";font-weight:900;position:absolute;right:12px;font-size:9px;color:#8794a4;pointer-events:none}
.p2u-filter-toggle{width:42px;padding:0;border-radius:50%}
.p2u-filter-toggle[aria-expanded="true"]{color:#bfff2f;border-color:rgba(171,239,43,.6);background:rgba(119,196,28,.08)}

.p2u-board-search-panel{
  position:relative;z-index:2;display:none;grid-template-columns:minmax(220px,1fr) auto;gap:12px;
  align-items:center;margin:-4px 0 16px;padding:13px;border:1px solid #1b2a3a;border-radius:16px;background:rgba(4,15,25,.74);
}
.p2u-board-search-panel.is-open{display:grid}
.p2u-search-wrap{position:relative;min-width:0}
.p2u-search-wrap>i{position:absolute;left:14px;top:50%;transform:translateY(-50%);font-size:11px;color:#6f7e90}
#board #f-search{width:100%!important;min-height:42px;padding:0 14px 0 38px!important;border:1px solid #223246!important;border-radius:12px!important;background:#071421!important;color:#fff!important;font-size:12px!important}
#board #f-search::placeholder{color:#647386}
.p2u-filter-hint{color:#718093;font-size:11px;padding-right:4px}

#board .date-strip{position:relative;z-index:1;margin-bottom:14px;padding-bottom:7px}
#board .date-chip{background:rgba(8,22,35,.76);border-color:#203043;color:#9ca8b8}
#board .date-chip.on{background:linear-gradient(145deg,#b8f82a,#77c41c);border-color:#b8f82a;color:#07130b;box-shadow:0 10px 24px rgba(119,196,28,.13)}
#board #engine-pills{position:relative;z-index:1;display:flex;flex-wrap:nowrap;overflow-x:auto;gap:8px;margin-bottom:21px!important;padding-bottom:4px;scrollbar-width:none}
#board #engine-pills::-webkit-scrollbar{display:none}
#board #engine-pills .pill{padding:9px 14px;border-radius:12px;background:rgba(7,20,32,.68);border-color:#203043;color:#9eaaba;font-size:11px;font-weight:760}
#board #engine-pills .pill.on{background:rgba(119,196,28,.11);border-color:rgba(171,239,43,.5);color:#c8ff40}

#board #cards{position:relative;z-index:1;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important}
#board #cards>.p2u-standard-card{
  position:relative;display:flex;flex-direction:column;min-height:386px;padding:20px!important;border-radius:18px!important;
  background:linear-gradient(160deg,rgba(9,28,43,.96),rgba(6,19,31,.98));
  border:1px solid #26384b;box-shadow:0 14px 34px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.018);
  overflow:hidden;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
#board #cards>.p2u-standard-card::after{content:"";position:absolute;left:0;top:0;bottom:0;width:2px;background:transparent;transition:.18s ease}
@media(hover:hover){
  #board #cards>.p2u-standard-card:hover{transform:translateY(-2px);border-color:#3a526a;box-shadow:0 18px 42px rgba(0,0,0,.28)}
  #board #cards>.p2u-standard-card:hover::after{background:#a9ef27}
}
.p2u-match-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:28px}
.p2u-match-league{display:flex;align-items:center;gap:8px;min-width:0;color:#b6c0cc;font-size:10px;font-weight:800;letter-spacing:.025em;text-transform:uppercase}
.p2u-match-league .lflag{width:21px;height:14px;flex:0 0 auto}
.p2u-match-league span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.p2u-match-meta-right{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex:0 0 auto;color:#94a0af;font-size:10px}
.p2u-kickoff{font-family:Inter,system-ui,sans-serif!important;font-size:10px!important;color:#a7b1bf;white-space:nowrap}
#board .p2u-card-status{margin-left:0}
#board .tag{min-height:26px;padding:5px 9px;border-radius:999px;font-size:9px;font-weight:900;letter-spacing:.015em}

.p2u-matchup{display:grid;grid-template-columns:minmax(0,1fr) 35px minmax(0,1fr);align-items:center;gap:10px;margin:18px 0 17px;min-height:58px}
.p2u-team{display:flex;align-items:center;gap:10px;min-width:0}
.p2u-team-away{justify-content:flex-end;text-align:right}
.p2u-team-name{font-size:15px;font-weight:800;line-height:1.18;color:#f5f7fb;overflow-wrap:anywhere}
.p2u-team-crest{width:42px;height:42px;flex:0 0 42px;object-fit:contain;filter:drop-shadow(0 6px 10px rgba(0,0,0,.24))}
.p2u-vs{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#0a1b2a;border:1px solid #1e3347;color:#ccd5df;font-size:10px;font-weight:900}
#board .live-score-board{margin:0 0 12px;border-left:2px solid var(--live);font-size:23px}

.p2u-prediction-panel{display:grid;grid-template-columns:minmax(0,1fr) 96px;border:1px solid #263a4f;border-radius:13px;background:linear-gradient(180deg,rgba(10,28,43,.82),rgba(8,23,36,.82));overflow:hidden}
.p2u-prediction-main,.p2u-odds-block{padding:14px 15px}
.p2u-odds-block{border-left:1px solid #263a4f;text-align:center}
.p2u-prediction-label{display:block;color:#8090a3;font-size:9px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
.p2u-prediction-market{display:block;margin-top:5px;color:#aef02d;font-size:18px;font-weight:850;line-height:1.15;letter-spacing:-.025em}
.p2u-odds-value{display:block;margin-top:5px;color:#bfff37;font-size:20px;font-weight:900;line-height:1;font-variant-numeric:tabular-nums}

.p2u-support-wrap{margin-top:14px}
.p2u-support-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.p2u-support-label{display:flex;align-items:center;gap:7px;color:#b0bac7;font-size:11px;font-weight:650}
.p2u-support-label i{font-size:10px;color:#758396}
.p2u-support-value{color:#f0f4f8;font-size:12px;font-weight:800;font-variant-numeric:tabular-nums}
.p2u-support-value span{color:#69788b;font-weight:600}
.p2u-support-track{height:6px;border-radius:99px;background:#142536;overflow:hidden}
.p2u-support-fill{height:100%;border-radius:inherit;background:linear-gradient(90deg,#78c81b,#b8f52e);box-shadow:0 0 12px rgba(166,236,38,.18)}

#board .p2u-card-signals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:13px}
#board .p2u-signal{min-height:36px;justify-content:center;gap:6px;padding:7px 6px;border-radius:10px;background:rgba(8,22,34,.72);border-color:#203448;color:#b9c3cf;font-size:9px;font-weight:760;text-align:center;line-height:1.15}
#board .p2u-signal i{color:#aef02d;font-size:10px}
#board .p2u-signal.agree{color:#c5cfda;background:rgba(8,22,34,.72);border-color:#203448}
#board .p2u-signal.conflict{color:#ff8e98;border-color:rgba(255,92,103,.24);background:rgba(255,92,103,.055)}
#board .p2u-learning-flag{grid-column:1/-1;justify-self:start;min-height:28px!important}

#board .details{margin-top:2px}
#board .details.open{max-height:680px}
#board .details .reason{font-size:11px;color:#aab4c1;border-color:#1e3143}
#board .p2u-card-actions{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px!important;margin-top:auto!important;padding-top:14px!important;border-top:1px solid #213345!important;flex-wrap:nowrap!important}
#board .p2u-card-actions>*{
  width:100%;min-width:0!important;min-height:42px!important;margin:0!important;padding:8px 5px!important;
  border-radius:10px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
  border:1px solid #263a4e!important;background:rgba(7,20,32,.7)!important;color:#d7dee7!important;
  font-size:10px!important;font-weight:800!important;letter-spacing:0!important;text-transform:none!important;line-height:1.1!important;
  box-shadow:none!important;white-space:nowrap;
}
#board .p2u-card-actions>*:hover{border-color:#415971!important;color:#fff!important;background:#0a2032!important}
#board .p2u-card-actions .p2u-proof-button{color:#e1e7ee!important}
#board .p2u-card-actions .slip-add{color:#bfff34!important;border-color:rgba(174,240,45,.34)!important;background:rgba(119,196,28,.06)!important}
#board .p2u-card-actions .p2u-share-card-btn{color:#e1e7ee!important}
#board .p2u-card-actions i,#board .p2u-card-actions svg{flex:0 0 auto}
#board .p2u-card-actions .slip-add::before{content:"+";font-size:18px;font-weight:500;line-height:.7}
#board .p2u-card-actions .slip-add{font-size:0!important}
#board .p2u-card-actions .slip-add::after{content:"Slip";font-size:10px}

#board #show-all{position:relative;z-index:1;border-color:#27394b!important;background:#081827!important;color:#c9d2dd!important}
#board #board-rank-reason{position:relative;z-index:1}

/* Make the existing movable slip control feel lighter on this board. */
body #p2u-slip-fab{width:54px!important;height:54px!important;min-width:54px!important;min-height:54px!important;background:linear-gradient(145deg,#b9f72f,#74c117)!important;box-shadow:0 12px 32px rgba(0,0,0,.48),0 0 0 1px rgba(190,247,60,.22)!important}

@media(max-width:1099px){
  #board.p2u-board-shell{padding:22px}
  .p2u-board-head{flex-direction:column;align-items:stretch}
  .p2u-board-toolbar{justify-content:flex-start;max-width:none;flex-wrap:nowrap;overflow-x:auto;padding-bottom:3px;scrollbar-width:none}
  .p2u-board-toolbar::-webkit-scrollbar{display:none}
  #board #cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:699px){
  #board.p2u-board-shell{margin:0 -2px 28px;padding:17px 13px 20px;border-radius:20px}
  .p2u-board-heading{gap:12px;min-width:0}
  .p2u-board-icon{width:45px;height:45px;flex-basis:45px;border-radius:13px;font-size:18px}
  #board .p2u-board-heading .t-h2{font-size:26px}
  .p2u-board-subline{font-size:10px;gap:6px 8px}
  .p2u-board-toolbar{margin-left:-1px;margin-right:-1px}
  .p2u-view-chip,.p2u-league-chip,.p2u-filter-toggle{min-height:40px;border-radius:12px;padding:0 12px;font-size:10px}
  .p2u-filter-toggle{width:40px;padding:0;flex:0 0 40px}
  .p2u-league-chip select{min-width:90px;max-width:118px;font-size:10px!important}
  .p2u-board-search-panel{grid-template-columns:1fr;padding:10px}
  .p2u-filter-hint{display:none}
  #board .date-strip{margin-left:-13px;margin-right:-13px;padding-left:13px;padding-right:13px}
  #board #engine-pills{margin-left:-13px;margin-right:-13px;padding-left:13px;padding-right:13px}
  #board #cards{grid-template-columns:1fr!important;gap:13px!important}
  #board #cards>.p2u-standard-card{min-height:0;padding:16px!important;border-radius:16px!important}
  .p2u-match-meta{align-items:flex-start}
  .p2u-match-meta-right{gap:6px}
  .p2u-matchup{grid-template-columns:minmax(0,1fr) 31px minmax(0,1fr);gap:7px;margin:16px 0 14px}
  .p2u-team{flex-direction:column;align-items:flex-start;gap:6px}
  .p2u-team-away{align-items:flex-end;text-align:right}
  .p2u-team-crest{width:36px;height:36px;flex-basis:36px}
  .p2u-team-name{font-size:14px}
  .p2u-vs{width:30px;height:30px;font-size:9px}
  .p2u-prediction-panel{grid-template-columns:minmax(0,1fr) 82px}
  .p2u-prediction-main,.p2u-odds-block{padding:12px}
  .p2u-prediction-market{font-size:17px}
  .p2u-odds-value{font-size:18px}
  #board .p2u-card-signals{gap:5px}
  #board .p2u-signal{min-height:34px;padding:6px 4px;font-size:8.5px}
  #board .p2u-card-actions{gap:6px!important}
  #board .p2u-card-actions>*{min-height:40px!important;font-size:9px!important;padding:7px 3px!important;gap:5px!important}
  #board .p2u-card-actions .slip-add::after{font-size:9px}
}
@media(max-width:389px){
  .p2u-match-meta{display:grid;grid-template-columns:minmax(0,1fr) auto}
  .p2u-match-meta-right{flex-direction:column;align-items:flex-end}
  #board .p2u-card-signals{grid-template-columns:1fr 1fr}
  #board .p2u-card-signals .p2u-signal:last-child:nth-child(3){grid-column:1/-1}
  #board .p2u-card-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #board .p2u-card-actions>*{font-size:10px!important}
  #board .p2u-card-actions .slip-add::after{font-size:10px}
}

/* Predict2U v260 — desktop board rail cleanup */
@media (min-width:900px){
  #board .date-strip{
    display:flex!important;flex-wrap:wrap!important;gap:12px!important;align-items:stretch!important;
    overflow:visible!important;padding-bottom:0!important;margin-bottom:18px!important
  }
  #board .date-chip{
    min-width:106px!important;min-height:72px!important;padding:12px 14px!important;
    display:grid!important;place-items:center!important;flex:0 0 auto!important
  }
  #board #engine-pills{
    display:flex!important;flex-wrap:wrap!important;overflow:visible!important;gap:10px!important;
    align-items:center!important;margin-bottom:18px!important;padding-bottom:0!important
  }
  #board #engine-pills .pill{
    min-height:42px!important;padding:0 16px!important;display:inline-flex!important;align-items:center!important;
    justify-content:center!important;border-radius:14px!important;font-size:12px!important;font-weight:800!important;
    white-space:nowrap!important;line-height:1!important
  }
  #board #engine-pills .pill.on{box-shadow:0 10px 24px rgba(119,196,28,.14)!important}
}
@media (min-width:900px) and (max-width:1199px){
  #board .date-chip{min-width:98px!important}
  #board #engine-pills .pill{padding:0 14px!important;font-size:11px!important}
}
