/* Shared surfaces and typography */
body {
  --paper: #fff;
  --ink: #162e36;
  --muted: #485e65;
  --rule: #dbe4e3;
  --wash: #f1f6f5;
  --accent: #087663;
  color: var(--ink);
  background: var(--wash);
}
.Night body, body.Night {
  --paper: #17282e;
  --ink: #edf5f3;
  --muted: #b2c6c8;
  --rule: #344950;
  --wash: #101e23;
  --accent: #73d8bf;
}
body .container {max-width: 1120px}
#AYaHeader {margin: 0 0 18px; background: var(--paper); border-block: 3px solid var(--accent); border-block-end: 1px solid var(--rule)}
#AYaHeader .HdrInner {background: var(--paper); height: auto; border-radius: 0; box-shadow: none}
#AYaHeader .HdrInner > .container {min-height: 66px}
.MainMenu li > a {font-weight: 650; color: var(--ink)}
.AY_Block, .MtCard {background: var(--paper); border: 1px solid var(--rule); box-shadow: none; border-radius: 12px}
.AY_Block .AYb_Head, .EntryHeader {background: var(--paper); border-bottom: 1px solid var(--rule); margin: 0; padding: 14px 16px; align-items: center; gap: 10px}
.AYb_Head h2.aya-btn, .AYb_Head h1.aya-btn {background: transparent; color: var(--ink); border-inline-start: 4px solid var(--accent); border-radius: 0; padding: 0 10px; font-size: 19px}
.AY-Dtab {flex-wrap: wrap}
.AY-Dtab li .aya-btn {border: 0; background: var(--wash); color: var(--ink); font: inherit; font-size: 13px; padding: 7px 10px}
.AY-Dtab li .active {background: #065e50; color: white}
.gr-inner {background: var(--paper); border: 1px solid var(--rule); border-radius: 9px}
.gr-info h3 {color: var(--ink); height: auto; font-weight: 650; line-height: 1.55}
.EntryTitle {color: var(--ink); font-size: clamp(22px,4vw,34px); line-height: 1.4}
.entry-content {max-width: 80ch; margin-inline: auto; line-height: 1.85}
.McInner {background: #153c3bed}
.video-serv > a, .video-serv > span {background: #086a59; border-radius: 8px}
footer .FW-Area, footer .SnfoInner {background: var(--paper); color: var(--ink); border-top: 0; padding-block: 16px}

/* Opposing teams share a baseline at every viewport width. */
.AY-Fixture .albaflex {padding: 6px; background: var(--wash)}
.AY-Fixture .fixture-row {
  position: relative; margin: 3px 0; padding: 0; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: 9px;
}
.fixture-board {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(64px,auto) minmax(0,1fr);
  align-items: center; gap: 8px; padding: 9px 12px;
}
.fixture-teams {display: contents}
.fixture-team {
  grid-row: 1; display: flex; align-items: center; justify-content: flex-end;
  gap: 8px; text-align: center; overflow-wrap: anywhere; font-weight: 700;
  font-size: 14px; line-height: 1.45;
}
.fixture-team:first-child {grid-column: 1}
.fixture-team:last-child {grid-column: 3; flex-direction: row-reverse}
.fixture-team img {width: 28px; height: 28px; object-fit: contain; flex: none}
.fixture-row .fixture-score {
  grid-area: 1 / 2; width: auto; max-width: 100px; margin: 0; gap: 3px;
  display: flex; flex-direction: column; align-items: center; font-variant-numeric: tabular-nums;
}
.fixture-row .MT_Result, .fixture-row .MT_Time {
  height: auto; margin: 0; font: 700 18px/1.4 system-ui,sans-serif;
}
.fixture-row .MT_Result {display: inline-flex; gap: 6px; align-items: center}
.fixture-dash {color: var(--muted); font-size: 13px}
.fixture-row .MT_Stat {
  min-width: 0; height: auto; margin: 0; padding: 2px 8px; border-radius: 20px;
  background: var(--wash); color: var(--muted); font-size: 11px; line-height: 1.5;
}
.AY_Match.live .MT_Stat {background: #ffe6e7; color: #982339; animation: none}
.fixture-details {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 2px 10px; padding: 4px 8px;
  border-top: 1px solid var(--rule); color: var(--muted); font-size: 12px; line-height: 1.5;
}
.fixture-details strong {color: var(--accent); font-weight: 650}
.fixture-link {position: absolute; inset: 0}
.fixture-link:focus-visible {outline: 2px solid var(--accent); outline-offset: -2px}
@media(max-width: 600px) {
  .fixture-board {gap: 5px; padding: 8px}
  .fixture-team:first-child,.fixture-team:last-child {
    flex-direction: column; justify-content: flex-start; align-self: stretch; gap: 3px;
  }
}

@media (min-width: 900px) {
  .AY-Fixture .fixture-board {
    grid-template-columns: minmax(0,1fr) minmax(96px,auto) minmax(0,1fr);
    padding: 12px clamp(14px,3vw,48px);
  }
  .fixture-board .fixture-team {
    justify-content: center;
    gap: 12px;
    font-size: 17px;
  }
  .fixture-team img {width: 36px; height: 36px}
  .fixture-row .fixture-score {
    justify-self: center;
    padding-inline: 13px;
    border-inline: 1px solid var(--rule);
  }
  .fixture-row .MT_Time, .fixture-row .MT_Result {font-size: 21px}
  .fixture-details {
    display: grid;
    grid-auto-columns: minmax(0,1fr);
    grid-auto-flow: column;
    align-items: center;
    text-align: center;
    background: var(--wash);
    padding: 5px 14px;
    font-size: 13px;
  }
}
