/* NOMAD Live 3.41 — Page 1 desktop collapsed-card repair.
   Scope: PC only (>=1025px). Presentation only.
   Do not alter tablet/mobile, feed, odds, detector, signal, or engine logic.
   Rollback blob before dark-card separation pass: f41878488aa799b6c1fd311e479172f3e1dba27a */

@media (min-width:1025px){
  /* Human-readable team block: shirt | name | score, same order for HOME and AWAY. */
  .match-wrap:not([open]) > .match-row .match-main .teams.team-shirts-ready.wide-team-stacked{
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    gap:8px!important;
    width:100%!important;
    min-width:0!important;
    min-height:62px!important;
    line-height:1!important;
  }

  .match-wrap:not([open]) > .match-row .match-main .teams.team-shirts-ready.wide-team-stacked .team-shirt-side{
    display:grid!important;
    grid-template-columns:28px minmax(0,1fr) 34px!important;
    align-items:center!important;
    justify-content:stretch!important;
    gap:8px!important;
    width:100%!important;
    min-width:0!important;
  }

  .match-wrap:not([open]) > .match-row .match-main .teams.team-shirts-ready.wide-team-stacked .team-shirt-home,
  .match-wrap:not([open]) > .match-row .match-main .teams.team-shirts-ready.wide-team-stacked .team-shirt-away{
    justify-content:stretch!important;
  }

  .match-wrap:not([open]) > .match-row .match-main .teams.team-shirts-ready.wide-team-stacked .team-shirt-icon{
    grid-column:1!important;
    grid-row:1!important;
    order:initial!important;
    display:block!important;
    width:25px!important;
    height:25px!important;
    min-width:25px!important;
    object-fit:contain!important;
    opacity:1!important;
    filter:brightness(1.10) saturate(1.06) drop-shadow(0 2px 2px rgba(0,0,0,.38))!important;
    pointer-events:none!important;
    user-select:none!important;
  }

  .match-wrap:not([open]) > .match-row .match-main .teams.team-shirts-ready.wide-team-stacked .team-shirt-name{
    grid-column:2!important;
    grid-row:1!important;
    order:initial!important;
    display:block!important;
    min-width:0!important;
    overflow:hidden!important;
    color:inherit!important;
    font-size:12px!important;
    font-weight:800!important;
    line-height:1.15!important;
    text-align:left!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }

  .match-wrap:not([open]) > .match-row .match-main .teams.team-shirts-ready.wide-team-stacked .wide-team-score{
    grid-column:3!important;
    grid-row:1!important;
    order:initial!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:34px!important;
    min-width:34px!important;
    color:var(--green)!important;
    font-size:16px!important;
    font-weight:900!important;
    line-height:1!important;
    text-align:center!important;
    white-space:nowrap!important;
    font-variant-numeric:tabular-nums!important;
  }

  .match-wrap:not([open]) > .match-row .match-main .teams.team-shirts-ready.wide-team-stacked .team-shirt-divider{
    display:none!important;
  }

  /* Match-to-match separation: solid darker surface plus spacing only.
     No bright border, glow, or additional gradient. */
  .match-list{
    gap:9px!important;
  }

  .match-wrap{
    background:#121512!important;
  }

  /* Reading order: STATUS | MATCH | TIME | STATS | MARKET | CHECKS. */
  .match-wrap:not([open]) > .match-row{
    grid-template-columns:58px minmax(260px,1.25fr) 76px minmax(180px,.78fr) minmax(250px,1.05fr) 58px!important;
    grid-template-rows:auto!important;
    grid-template-areas:'state match score stats market cond'!important;
    column-gap:10px!important;
    row-gap:0!important;
    align-items:stretch!important;
    padding:14px!important;
    background:#121512!important;
  }

  /* Equal-height zones. Separation now comes from spacing and subtle tone only — no vertical rules. */
  .match-wrap:not([open]) > .match-row .statebox,
  .match-wrap:not([open]) > .match-row .match-main,
  .match-wrap:not([open]) > .match-row .score,
  .match-wrap:not([open]) > .match-row .quick,
  .match-wrap:not([open]) > .match-row .market,
  .match-wrap:not([open]) > .match-row .cond{
    position:relative!important;
    align-self:stretch!important;
    min-height:62px!important;
    border-right:0!important;
    border-radius:7px!important;
  }

  /* STATUS — transparent behind the state icon. */
  .match-wrap:not([open]) > .match-row .statebox{
    grid-area:state!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:0!important;
    min-width:0!important;
    padding:0!important;
    background:transparent!important;
  }

  .match-wrap:not([open]) > .match-row .statebox::before{
    background-color:transparent!important;
  }

  .match-wrap:not([open]) > .match-row .statebox .state{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    padding:0!important;
    margin:-1px!important;
    overflow:hidden!important;
    clip:rect(0,0,0,0)!important;
    white-space:nowrap!important;
    border:0!important;
  }

  .match-wrap:not([open]) > .match-row .statebox .minute,
  .match-wrap:not([open]) > .match-row .statebox .status-meter-icon,
  .match-wrap:not([open]) > .match-row .statebox .watch-pulse{
    display:none!important;
  }

  /* MATCH — cleanest zone because team identity is the primary information. */
  .match-wrap:not([open]) > .match-row .match-main{
    grid-area:match!important;
    min-width:0!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    padding:0 10px 0 0!important;
    background:transparent!important;
  }

  .match-wrap:not([open]) > .match-row .league{
    display:block!important;
    margin:0 0 8px!important;
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }

  /* TIME — a slightly lifted gray lane. Per-team rows already carry the score. */
  .match-wrap:not([open]) > .match-row .score{
    grid-area:score!important;
    min-width:0!important;
    padding:0 8px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:rgba(255,255,255,.012)!important;
  }

  .match-wrap:not([open]) > .match-row .score .score-live-head,
  .match-wrap:not([open]) > .match-row .score .score-live-value,
  .match-wrap:not([open]) > .match-row .score .entry-score{
    display:none!important;
  }

  .match-wrap:not([open]) > .match-row .score .score-live-time{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:4px!important;
    width:100%!important;
    color:var(--green)!important;
    font-size:10px!important;
    font-weight:900!important;
    white-space:nowrap!important;
  }

  .match-wrap:not([open]) > .match-row .score .score-live-time svg{
    width:11px!important;
    height:11px!important;
  }

  /* STATS — medium gray grouping, still quieter than the market. */
  .match-wrap:not([open]) > .match-row .quick{
    grid-area:stats!important;
    min-width:0!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    align-items:center!important;
    gap:6px!important;
    padding:0 8px!important;
    background:rgba(255,255,255,.022)!important;
  }

  .match-wrap:not([open]) > .match-row .quick .q{
    background:rgba(255,255,255,.025)!important;
  }

  /* MARKET — light gray lane, enough to guide the eye toward price data. */
  .match-wrap:not([open]) > .match-row .market{
    grid-area:market!important;
    min-width:0!important;
    display:flex!important;
    align-items:center!important;
    padding:0 8px!important;
    background:rgba(255,255,255,.032)!important;
  }

  .match-wrap:not([open]) > .match-row .market .price-stack{
    width:100%!important;
  }

  /* CHECKS — darker terminal zone to close the reading line. */
  .match-wrap:not([open]) > .match-row .cond{
    grid-area:cond!important;
    justify-self:stretch!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:58px!important;
    margin:0!important;
    padding:0 6px!important;
    border:0!important;
    background:rgba(0,0,0,.035)!important;
    text-align:center!important;
  }
}
