#section-header:not(.matches-header) > [data-section-nav="Settings"] { display: none; }
#section-header.matches-header {
  inset: 0 0 auto;
  height: 85px;
  border: 0;
}
#section-header.matches-header .section-logo { left: 42px; top: 24px; width: 140px; height: 58px; }
#section-header.matches-header nav { left: 220px; top: 27px; gap: 20px; }
#section-header.matches-header nav button { width: 160px; height: 48px; font-size: 17px; text-transform: uppercase; }
#section-header.matches-header nav button[aria-current] { color: #17120a; background: var(--gold); border-color: var(--gold); }
#section-header.matches-header > button { top: 27px; width: 56px; height: 50px; }
#section-header.matches-header [data-section-nav="Notifications"] { left: 1220px; }
#section-header.matches-header [data-section-nav="Settings"] { left: 1302px; }
#section-header.matches-header [data-section-nav="Search"],
#section-header.matches-header #section-clock { display: none; }

#real-matches {
  padding: 0;
  background: var(--bg) url(assets/matches-wave.png) left 728px / 1440px 82px no-repeat;
}
#match-schedule h1 { position: absolute; top: 102px; left: 50px; margin: 0; font-size: 35px; line-height: 50px; }
#matches-counts { position: absolute; top: 156px; left: 51px; margin: 0; color: var(--muted); font-size: 15px; line-height: 28px; }
.match-filters { position: absolute; top: 193px; left: 50px; display: flex; gap: 16px; }
.match-filters button, #matches-refresh { height: 46px; padding: 0 12px; font-size: 16px; }
.match-filters button { width: 184px; }
#matches-refresh { position: absolute; top: 122px; right: 54px; width: 156px; }
#matches-rows {
  position: absolute;
  top: 254px;
  left: 24px;
  width: 922px;
  height: 474px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px;
  overflow: auto;
  scrollbar-width: none;
}
#matches-rows::-webkit-scrollbar { display: none; }
.match-card {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr) 94px minmax(0, 1fr) 160px;
  align-items: center;
  gap: 7px;
  flex: 0 0 102px;
  padding: 10px 15px;
  border-radius: 16px;
  text-align: left;
}
.match-league { color: var(--muted); font-size: 15px; }
.match-team { min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 18px; }
.match-team.away { flex-direction: row-reverse; text-align: right; }
.match-team strong, .match-league, .match-preview-team strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
}
.match-crest { flex: 0 0 48px; width: 48px; height: 48px; }
.match-crest img { display: block; width: 100%; height: 100%; object-fit: contain; }
.match-time { text-align: center; font-size: 25px; font-weight: 700; color: var(--gold); }
.match-info { display: flex; flex-direction: column; gap: 7px; text-align: center; }
.match-phase { font-size: 13px; font-weight: 700; color: var(--gold); }
.match-info small { font-size: 14px; color: var(--muted); }

#match-preview {
  position: absolute;
  top: 200px;
  right: 52px;
  width: 416px;
  height: 520px;
  padding: 25px 24px 50px;
  border: 1px solid var(--edge);
  border-radius: 18px;
  background: var(--panel);
  display: grid;
  grid-template-rows: 65px minmax(0, 1fr) 55px 62px;
  gap: 28px;
  text-align: center;
}
#match-preview-league { margin: 0; align-self: center; font-size: 21px; color: var(--gold); overflow-wrap: anywhere; }
#match-preview-teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.match-preview-team { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 24px; }
.match-preview-team .match-crest { flex-basis: auto; width: 115px; height: 115px; }
#match-preview-time { align-self: center; margin: 0; font-size: 18px; font-weight: 700; color: var(--gold); }
#view-match-channels { width: 100%; padding: 0 12px; font-size: 22px; }
#matches-empty {
  position: absolute;
  top: 340px;
  left: 60px;
  width: 1320px;
  margin: 0;
  text-align: center;
  font-size: 22px;
  color: var(--muted);
}
#matches-more { position: absolute; left: 600px; top: 490px; width: 240px; height: 56px; font-size: 18px; }
#matches-state { position: absolute; top: 737px; left: 50px; margin: 0; font-size: 16px; color: var(--muted); }
.matches-remote { position: absolute; top: 779px; left: 50px; font-size: 14px; color: var(--muted); }
.matches-remote span { margin: 0 28px; }

#match-chooser { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: #000c; }
.match-channel-sheet {
  position: absolute;
  top: 95px;
  left: 190px;
  width: 1060px;
  height: 630px;
  border: 1px solid var(--edge);
  border-radius: 18px;
  background: var(--panel);
}
#match-channel-title { position: absolute; left: 32px; top: 24px; margin: 0; font-size: 29px; line-height: 45px; }
#match-choice-back { position: absolute; right: 32px; top: 25px; width: 232px; height: 44px; padding: 0 10px; font-size: 17px; }
#match-channel-info {
  position: absolute;
  inset: 85px 40px auto;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 20px;
  height: 100px;
}
#match-channel-info .match-crest { width: 72px; height: 72px; }
.match-channel-summary h3 { margin: 0 0 9px; font-size: 27px; overflow-wrap: anywhere; }
.match-channel-summary p { margin: 0; font-size: 16px; color: var(--gold); }
.broadcast-list {
  position: absolute;
  inset: 199px 24px auto;
  height: 347px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  padding: 8px;
}
.broadcast-list button { display: flex; align-items: center; flex: 0 0 68px; gap: 14px; text-align: left; }
.broadcast-list img { width: 48px; height: 36px; object-fit: contain; }
.broadcast-list small { margin-left: auto; font-size: 15px; color: var(--muted); }
#match-channel-state { position: absolute; inset: 557px 40px auto; margin: 0; font-size: 17px; color: var(--muted); }

#matches-events { position: absolute; right: 52px; bottom: 90px; width: 416px; max-height: 166px; overflow: auto; padding: 15px 18px; background: var(--panel); border: 1px solid var(--edge); border-radius: 16px; }
#matches-events h2 { font-size: 20px; margin: 0 0 10px; }
.event-list { display: grid; gap: 7px; padding: 4px; }
.event-list button { text-align: left; }
#match-schedule:has(#matches-events:not([hidden])) #match-preview {
  height: 340px;
  padding: 16px;
  grid-template-rows: 40px minmax(0, 1fr) 34px 46px;
  gap: 10px;
}
#match-schedule:has(#matches-events:not([hidden])) .match-preview-team .match-crest { width: 80px; height: 80px; }
