.match-hub {
  max-width: 980px;
  margin: auto;
}
.match-hub > .back {
  font-size: 12px;
  margin-bottom: 16px;
}
.match-versus {
  overflow: hidden;
  border: 1px solid #426c8e;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 15% 40%, #22618988, transparent 55%),
    radial-gradient(ellipse at 95% 40%, #8a522f44, transparent 50%), #10263f;
  box-shadow: 0 5px 0 #061120;
}
.match-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #07172988;
  color: #b5cce0;
  font-size: 11px;
}
.match-ribbon a {
  color: #8bdbff;
  font-weight: 750;
}
.match-rivals {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 22px 18px 16px;
}
.match-clan {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  min-width: 0;
}
.match-clan > svg,
.match-clan > .team-logo,
.match-clan > .badge {
  width: 76px;
  height: 76px;
  max-width: 76px;
  max-height: 76px;
  object-fit: contain;
  flex-shrink: 0;
  margin: 0;
  filter: drop-shadow(0 5px 8px #0006);
}
.match-clan > .badge {
  font-size: 23px;
}
.match-clan b {
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.home-clan b {
  color: #b6edff;
}
.away-clan b {
  color: #ffdbb1;
}
.match-versus-score {
  font-size: 35px;
  font-weight: 950;
  font-style: italic;
  text-align: center;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 3px #040c18;
}
.match-versus-score > span {
  margin: 0 7px;
  color: #72869b;
}
.match-versus-score small {
  display: block;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #a2bdd4;
  margin-top: 8px;
  text-shadow: none;
}
.match-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px 14px;
  font-size: 11px;
  color: #a5bdd0;
}
.match-meta .status,
.match-meta .pill {
  font-size: 10px;
}
.match-hub .match-controls {
  margin: 20px 0;
  display: block;
}
.match-hub .match-controls .tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border: 0;
}
.match-hub .match-controls .tab {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(#18334e, #11253b);
  border: 1px solid #345674;
  border-radius: 11px;
  box-shadow: 0 3px 0 #071426;
  font-size: 13px;
  font-weight: 750;
}
.match-hub .match-controls .tab svg {
  width: 20px;
  height: 20px;
}
.match-hub .match-controls .tab.active {
  background: linear-gradient(#28668d, #17466a);
  border-color: #61c7f0;
  color: #d4f5ff;
}
.match-hub .coordination-grid {
  grid-template-columns: 1fr;
  gap: 16px;
}
.match-hub .match-time-card .panel-head {
  padding: 15px 20px;
}
.match-hub .match-time-card .form-body {
  padding: 18px 20px;
}
.match-hub .appointment-date {
  font-size: 25px;
  font-weight: 800;
  color: #f0f7ff;
  margin: 0 0 16px;
  line-height: 1.3;
}
.match-hub .appointment-date small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #9bb3cb;
  margin-top: 6px;
}
.match-drawer {
  border: 1px solid #355774;
  border-radius: 12px;
  background: #12283f;
  min-width: 0;
  overflow: hidden;
}
.match-drawer > summary {
  padding: 15px 18px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
}
.match-drawer > summary::-webkit-details-marker {
  display: none;
}
.match-drawer > summary:after {
  content: "+";
  font-size: 19px;
  color: #8cdafa;
}
.match-drawer[open] > summary:after {
  content: "−";
}
.match-drawer[open] > summary {
  border-bottom: 1px solid #355774;
}
.match-time-options {
  background: #0c2035;
}
.match-time-options > form {
  padding: 16px;
}
.match-time-options .error {
  margin: 0 16px;
}
.match-chat-options > section {
  border: 0;
  background: transparent;
}
.match-hub .match-demo-options {
  margin-top: 22px;
  background: transparent;
  border-color: #28435e;
}
.match-demo-options > summary {
  font-size: 11px;
  color: #94aec6;
  font-weight: 500;
}
.match-demo-options > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
  font-size: 12px;
}
.match-demo-options select {
  max-width: 75%;
  min-height: 44px;
}
.match-history-options > aside {
  border: 0;
  background: transparent;
}
.match-hub .columns {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: start;
}
.match-hub .form-actions .primary {
  min-height: 46px;
}
.match-clan:focus-visible,
.match-drawer > summary:focus-visible {
  outline: 2px solid #ffc679;
  outline-offset: 3px;
}
@media (max-width: 700px) {
  .match-hub .columns {
    grid-template-columns: 1fr;
  }
  .match-rivals {
    grid-template-columns: minmax(0, 1fr) 68px minmax(0, 1fr);
    padding: 18px 12px 12px;
    gap: 7px;
  }
  .match-clan > svg,
  .match-clan > .team-logo,
  .match-clan > .badge {
    width: 62px;
    height: 62px;
    max-width: 62px;
    max-height: 62px;
  }
  .match-clan b {
    font-size: 14px;
  }
  .match-versus-score {
    font-size: 28px;
  }
  .match-versus-score small {
    font-size: 9px;
  }
  .match-ribbon {
    padding: 10px 12px;
    font-size: 10px;
  }
  .match-hub .appointment-date {
    font-size: 23px;
  }
  .match-hub .match-controls {
    margin: 17px 0;
  }
  .match-hub .match-time-card .form-body {
    padding: 16px;
  }
  .match-hub .match-controls .tab {
    font-size: 12px;
  }
  .match-time-options .time-fields {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  }
  .match-time-options input {
    min-width: 0;
  }
}

.match-clan .match-team-name { color: #d8baff; font-size: 13px; font-weight: 800; text-align: center; }

.match-team-column { min-width: 0; align-self: start; }
.match-player-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.match-player-button {
  display: flex; align-items: center; justify-content: center;
  box-sizing: border-box; min-height: 34px; padding: 7px 6px;
  border: 1px solid #a9ddff; border-radius: 7px;
  background: linear-gradient(#5495c1 0%, #3673a1 48%, #285b88 49%, #326d99 100%);
  box-shadow: inset 0 2px 0 #c6ebff66, 0 3px 0 #102e4d, 0 4px 0 #050f20;
  color: #fff; font-size: 12px; font-weight: 800; line-height: 1.2;
  text-align: center; text-decoration: none; text-shadow: 0 1px 1px #092540;
  overflow-wrap: anywhere;
}
.match-player-button:hover, .match-player-button:focus-visible { filter: brightness(1.2); }
.match-player-button:active { transform: translateY(2px); }
.match-team-column ~ .match-versus-score { align-self: start; margin-top: 28px; }
.match-stream-details { border-color: #a36bd6; text-align: center; }
.match-stream-emblem { display: block; width: 76px; height: 76px; margin: 0 auto 6px; color: #d2a7ff; filter: drop-shadow(0 3px 0 #512077); }
.streamer-identity { display: flex; justify-content: center; margin: 12px 0 20px; }
.streamer-identity .match-player-button { min-width: 140px; padding-inline: 18px; }
.match-stream-button {
  display: inline-flex; justify-content: center; align-items: center;
  min-height: 44px; padding: 10px 24px; margin-bottom: 6px;
  border: 2px solid #eccbff; border-radius: 10px;
  background: linear-gradient(#c67afa 0%, #ad50e8 48%, #9238cf 49%, #a548de 100%);
  box-shadow: inset 0 2px 0 #f4deff88, 0 5px 0 #532075, 0 7px 0 #160d25;
  color: #fff; font: inherit; font-size: 15px; font-weight: 900;
  text-decoration: none; text-shadow: 0 2px 0 #582078;
}
.match-stream-button:disabled { opacity: .65; cursor: not-allowed; }
.match-stream-button:not(:disabled):hover { filter: brightness(1.12); }
.match-stream-button:not(:disabled):active { transform: translateY(3px); }
@media (max-width: 420px) {
  .match-versus .match-rivals { grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr); gap: 8px; padding-inline: 12px; }
  .match-player-button { font-size: 11px; }
}

.match-league-nav { display: flex; justify-content: center; margin: 0 0 16px; }
.match-league-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 8px 20px;
  border: 2px solid #bdeaff; border-radius: 12px;
  background: linear-gradient(#62abd6 0%, #3d82b2 48%, #28618f 49%, #367aa7 100%);
  box-shadow: inset 0 2px 0 #e3f7ff99, 0 5px 0 #153959, 0 7px 0 #06111f;
  color: #fff; font-size: 15px; font-weight: 900; text-decoration: none;
  text-shadow: 0 2px 0 #163954;
}
.match-league-button img { width: 66px; height: 36px; object-fit: contain; }
.match-league-button svg { width: 32px; height: 32px; }
.match-league-button:hover, .match-league-button:focus-visible { filter: brightness(1.15); }
.match-league-button:active { transform: translateY(3px); }
