.matchday-page { margin: 0; background: #09172f; color: #f4f7ff; font: 400 16px/1.5 'Inter', sans-serif; color-scheme: dark; }
.matchday-page [hidden] { display: none !important; }
.matchday-page a { color: #f0b830; }
.matchday-page h2 { font: 700 1.65rem/1.15 'Barlow Condensed', sans-serif; margin: 0 0 .75rem; overflow-wrap: anywhere; }
.matchday-header, .matchday-main, .matchday-footer { width: min(100% - 2rem, 1040px); margin-inline: auto; }
.matchday-header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-block: 1rem; border-bottom: 1px solid #2a436d; }
.matchday-brand { display: flex; align-items: center; gap: .6rem; min-height: 46px; text-decoration: none; font: 700 clamp(.95rem, 3.5vw, 1.25rem)/1.1 'Barlow Condensed', sans-serif; letter-spacing: .04em; }
.matchday-brand > span { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border: 1px solid #b58733; border-radius: 50%; font: 400 1.7rem 'Bebas Neue', sans-serif; }
.matchday-header .league-lang { flex-shrink: 0; margin: 0; }
.matchday-header .league-btn { padding-inline: .65rem; }
.matchday-main { padding-block: 1.65rem 2rem; }
.matchday-intro .league-copy { margin-bottom: 1.1rem; }
.matchday-toolbar { display: grid; gap: .65rem; }
.matchday-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.matchday-actions > .league-btn { flex: 1; }
.matchday-poster { min-width: 180px; }
.matchday-poster[aria-busy="true"] { cursor: wait; }
.matchday-sync { min-height: 1.4em; margin: .6rem 0; color: #b5c2da; font-size: .75rem; }
.matchday-share { margin-block: .75rem; }
.matchday-auth { border: 1px solid #375681; border-radius: 10px; padding: .9rem; margin: 1rem 0 1.5rem; background: #102447; }
.matchday-auth > h2 { font-size: 1.3rem; color: #f0b830; margin-bottom: .5rem; }
.matchday-auth .league-copy { margin-top: .4rem; }
.matchday-auth [aria-disabled="true"] { opacity: .6; cursor: wait; }
.matchday-event-heading { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.matchday-event-heading h2 { margin: 0; flex: 1 1 200px; }
.matchday-jumps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; margin: 1rem 0 1.5rem; }
.matchday-jumps .league-btn { font-size: .8rem; padding-inline: .35rem; }
.matchday-page :is(#matchdayFixtures, #matchdayTable, #matchdaySeason) { scroll-margin-top: 1rem; }
.matchday-round { margin: 1rem 0 1.5rem; }
.matchday-round h3 { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; margin: 0 0 .65rem; color: #b5c2da; font-size: .85rem; font-weight: 500; }
.matchday-round h3 span { color: #f0b830; font-variant-numeric: tabular-nums; }
.matchday-round h3 .matchday-round-label { color: #b5c2da; }
.matchday-round-games { display: grid; gap: .75rem; }
.matchday-game {
  min-width: 0;
  overflow: hidden;
  padding: 1rem;
  background: linear-gradient(145deg, #11294f, #0d1f3f);
  border: 1px solid #375681;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(2, 9, 22, .22);
}
.matchday-game.is-dirty { border-color: #b58733; }
.matchday-game.is-conflict { border-color: #fda4af; }
.matchday-game-meta { display: flex; flex-wrap: wrap; gap: .3rem .7rem; justify-content: space-between; margin-bottom: .75rem; font-size: .75rem; color: #b5c2da; }
.matchday-game-status {
  border: 1px solid rgba(181, 135, 51, .45);
  border-radius: 999px;
  padding: .18rem .5rem;
  color: #f0b830;
  background: rgba(181, 135, 51, .1);
  font-weight: 700;
}
.matchday-score-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .9rem; align-items: end; }
.matchday-score-grid label { display: grid; gap: .6rem; min-width: 0; }
.matchday-team-name { font: 700 1.3rem/1.2 'Barlow Condensed', sans-serif; overflow-wrap: anywhere; }
.matchday-score-grid input { width: 100%; min-height: 62px; padding: .5rem; border: 1px solid #8298b8; border-radius: 8px; background: #09172f; color: #fff; font: 700 1.8rem/1 'Inter', sans-serif; text-align: center; font-variant-numeric: tabular-nums; }
.matchday-score-grid input[readonly] { color: #b5c2da; border-color: #47608b; }
.matchday-score-grid input[aria-invalid="true"] { border-color: #fda4af; }
.matchday-save { width: 100%; margin-top: .85rem; min-height: 50px; }
.matchday-read-scores { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .65rem; align-items: center; }
.matchday-read-scores .matchday-team-name:last-child { text-align: right; }
.matchday-score-center { display: grid; justify-items: center; gap: .15rem; }
.matchday-score-center small { color: #8298b8; font: 700 .65rem/1 'Barlow Condensed', sans-serif; letter-spacing: .12em; }
.matchday-read-scores strong { font: 700 1.4rem/1.2 'Inter', sans-serif; color: #f0b830; white-space: nowrap; }
.matchday-game-message { margin: .65rem 0 0; color: #b5c2da; font-size: .8rem; }
.matchday-game-message:empty { display: none; }
.matchday-game-message.is-error { color: #fecaca; }
.matchday-program, .matchday-finale {
  margin: 1rem 0 1.5rem;
  padding: 1rem;
  border: 1px solid rgba(181, 135, 51, .55);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(181, 135, 51, .13), rgba(16, 36, 71, .92));
}
.matchday-program h3, .matchday-finale h3 { margin-top: 0; color: #f0b830; }
.matchday-program-grid, .matchday-finale-grid { display: grid; gap: .75rem; }
.matchday-program-grid > div, .matchday-finale-grid article {
  display: grid;
  gap: .22rem;
  min-width: 0;
  padding: .75rem;
  border: 1px solid rgba(71, 96, 139, .8);
  border-radius: 9px;
  background: rgba(3, 13, 30, .68);
}
.matchday-program-grid strong { color: #f0b830; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.matchday-program-grid span { font-weight: 700; }
.matchday-program-grid small { color: #b5c2da; }
.matchday-finale-grid h4, .matchday-finale-grid p { margin: 0; }
.matchday-finale-grid p { color: #dbe6f8; }
.matchday-ref-team {
  margin: .75rem 0 0;
  padding: .55rem .7rem;
  border-left: 4px solid #f0b830;
  background: rgba(181, 135, 51, .12);
  color: #f5d487;
}
.matchday-conflict { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid #47608b; font-size: .8rem; }
.matchday-conflict p { margin: 0 0 .75rem; color: #fecaca; }
.matchday-conflict .league-btn { font-size: .8rem; }
.matchday-game-actions { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid rgba(71, 96, 139, .7); }
.matchday-timer-link { width: 100%; min-height: 48px; }
.matchday-timer-link[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.matchday-season { margin-top: 2rem; border-top: 1px solid #375681; padding-top: 1.5rem; }
.matchday-search { max-width: 460px; margin: 1rem 0; }
.matchday-page .league-block { margin-top: 1.4rem; }
.matchday-page .league-standing { padding: .75rem .65rem; gap: .5rem; }
.matchday-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; padding: 1rem 0 2rem; border-top: 1px solid #2a436d; }
.matchday-footer a { display: flex; align-items: center; min-height: 44px; font-size: .8rem; text-underline-offset: .2em; }
.matchday-skip { position: absolute; z-index: 10; left: 1rem; top: -100px; min-height: 46px; padding: .75rem 1rem; background: #09172f; border: 2px solid #f0b830; }
.matchday-skip:focus { top: 1rem; }
.matchday-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (min-width: 640px) {
  .matchday-toolbar { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1rem; }
  .matchday-round-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .matchday-jumps { max-width: 480px; }
  .matchday-program-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .matchday-finale-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
