.matchday-page {
    max-width: 980px;
    margin: auto;
    min-width: 0;
}
.matchday-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:20px; margin:24px 0; }
.matchday-card { display:block; text-decoration:none; color:inherit; padding:24px; border:1px solid #dbe2ed; border-radius:12px; background:#fff; box-shadow:0 4px 16px #16233b0a; }
.matchday-card:hover,.matchday-card:focus-visible { border-color:#2563eb; box-shadow:0 4px 18px #2563eb22; }
.matchday-league-card { color:inherit; text-decoration:none; }
.matchday-league-card:hover,.matchday-league-card:focus-visible { border-color:#2563eb; box-shadow:0 4px 18px #2563eb22; text-decoration:none; }
.matchday-league-card .tournament-content { justify-content:center; }
.matchday-league-card .tournament-content p { margin:0; line-height:1.6; }
.matchday-header { align-items:flex-end; gap:24px; }
.matchday-header > div { min-width:0; }
.matchday-header p { margin:.5rem 0 0; max-width:720px; color:#475569; }
.matchday-filters { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin:0; }
.matchday-filters label { display:flex; flex-direction:column; gap:6px; }
.matchday-filters select { padding:9px 10px; min-width:100px; border:1px solid #cbd5e1; border-radius:6px; background:white; color:#172133; }
.matchday-summary { display:flex; flex-wrap:wrap; gap:.4rem 1rem; margin-bottom:.5rem; }
.matchday-summary span { color:#475569; }
.matchday-note { color:#475569; line-height:1.6; }
.matchday-league-table-box { min-width:0; max-width: 550px; }
.matchday-standings-table { font-variant-numeric:tabular-nums; }
.matchday-standings-table .league-status-icon { width:1em; height:1em; object-fit:contain; flex-shrink:0; vertical-align:-0.1em; }
.matchday-standings-table tbody tr.relegation-row:last-child td { background:#fde8e8; }
.matchday-legend { display:flex; flex-wrap:wrap; gap:16px; margin:15px 0 24px; }
.matchday-legend span { padding-left:9px; }
.matchday-legend .matchday-promotion { border-left:4px solid #168044; }
.matchday-legend .matchday-relegation { border-left:4px solid #d97706; }
.matchday-legend .matchday-elimination { border-left:4px solid #c1272d; }
.matchday-games-grid { margin-bottom:1.5rem; }
.matchday-prizes { margin-top:1.5rem; }
.matchday-rules { margin-top:28px; padding-top:16px; border-top:1px solid #e2e8f0; }
@media(max-width:700px) {
  .matchday-header { align-items:stretch; }
  .matchday-filters { width:100%; }
}
@media(max-width:499px) {
  .matchday-page h1 { font-size:1.6rem; }
  .matchday-standings-table .col-won,.matchday-standings-table .col-draw,.matchday-standings-table .col-lost { display:none; }
}
