/* FM27 V10.64: portal matchday layout and live-score board (additive to V10.62/63). */
body.fm27-midnight .fm27-portal-grid-primary{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
body.fm27-midnight .fm27-portal-grid-secondary{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
body.fm27-midnight .fm27-portal-grid-bottom{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
body.fm27-midnight .fm27-portal-fixture-card{padding:1.15rem 1.25rem;background:linear-gradient(135deg,#182641,#151b33);}
body.fm27-midnight .fm27-portal-fixture-teams{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:.8rem;margin:1.2rem 0 1rem;}
body.fm27-midnight .fm27-portal-fixture-team{display:flex;flex-direction:column;align-items:center;gap:.6rem;min-width:0;color:#f0f2ff;text-align:center;text-decoration:none;}
body.fm27-midnight .fm27-portal-fixture-team:hover{color:#cabaff;}
body.fm27-midnight .fm27-portal-fixture-team strong{font-size:clamp(.82rem,1vw,1rem);line-height:1.3;overflow-wrap:anywhere;}
body.fm27-midnight .fm27-portal-fixture-logo{width:64px;height:64px;display:grid;place-items:center;padding:8px;background:#111a31;border-radius:15px;border:1px solid #495574;}
body.fm27-midnight .fm27-portal-fixture-logo img{max-width:100%;max-height:100%;object-fit:contain;}
body.fm27-midnight .fm27-portal-fixture-logo>.bi{font-size:2rem;color:#ad98ed;}
body.fm27-midnight .fm27-portal-fixture-middle{display:flex;flex-direction:column;gap:.25rem;text-align:center;}
body.fm27-midnight .fm27-portal-fixture-middle>span{font-size:1.1rem;font-weight:800;color:#c7b1ff;}
body.fm27-midnight .fm27-portal-fixture-middle>small{font-size:.65rem;color:#92a2c0;}
body.fm27-midnight .fm27-portal-venue{display:flex;align-items:center;gap:.45rem;justify-content:center;color:#b6c2da;font-size:.8rem;margin-bottom:1rem;}
body.fm27-midnight .fm27-portal-match-buttons{justify-content:center;}
body.fm27-midnight .fm27-portal-live-list{display:flex;flex-direction:column;gap:.4rem;max-height:440px;overflow-y:auto;}
body.fm27-midnight .fm27-portal-live-row{display:grid;grid-template-columns:48px minmax(0,1fr) 68px 8px;gap:.6rem;align-items:center;padding:.65rem .7rem;background:#152038;border:1px solid #3c4a67;border-radius:10px;text-decoration:none;color:#eaf0ff;}
body.fm27-midnight .fm27-portal-live-row:hover{background:#202a47;border-color:#8565d6;color:#fff;}
body.fm27-midnight .fm27-portal-live-indicator{display:flex;align-items:center;gap:.25rem;color:#ff96aa;font-weight:800;letter-spacing:.04em;font-size:.65rem;}
body.fm27-midnight .fm27-portal-live-dot{width:6px;height:6px;border-radius:50%;background:#ff6687;}
body.fm27-midnight .fm27-portal-live-clubs{min-width:0;display:grid;gap:.22rem;}
body.fm27-midnight .fm27-portal-live-club{display:flex;align-items:center;gap:.38rem;min-width:0;font-size:.78rem;line-height:1.2;}
body.fm27-midnight .fm27-portal-live-club>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
body.fm27-midnight .fm27-portal-live-club img{width:17px;height:17px;object-fit:contain;flex-shrink:0;}
body.fm27-midnight .fm27-portal-live-score{display:flex;flex-direction:column;align-items:center;gap:.18rem;}
body.fm27-midnight .fm27-portal-live-score strong{font-size:1.07rem;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap;}
body.fm27-midnight .fm27-portal-live-score small{font-size:.68rem;color:#b5c1d8;}
body.fm27-midnight .fm27-portal-live-chevron{font-size:.7rem;color:#8f9fbf;}
body.fm27-midnight .fm27-portal-live-footnote{font-size:.72rem;line-height:1.45;color:#9aaaca;margin:.75rem 0 0;}
body.fm27-midnight .fm27-portal-empty-live{min-height:205px;}
@media(max-width:850px){body.fm27-midnight .fm27-portal-grid-primary,body.fm27-midnight .fm27-portal-grid-secondary,body.fm27-midnight .fm27-portal-grid-bottom{grid-template-columns:1fr;}}
@media(max-width:480px){body.fm27-midnight .fm27-portal-fixture-logo{width:48px;height:48px;}body.fm27-midnight .fm27-portal-fixture-teams{gap:.4rem;}body.fm27-midnight .fm27-portal-live-row{grid-template-columns:38px minmax(0,1fr) 55px 7px;gap:.35rem;padding:.6rem .45rem;}body.fm27-midnight .fm27-portal-live-club{font-size:.72rem;}}
@media(prefers-reduced-motion:reduce){body.fm27-midnight .fm27-portal-live-dot{animation:none!important;}}
