/* B-Gjengen CUP Phase 3I
   Shorter live cards and compact group-stage fixtures, revised by owner.
   Preview-only CSS: no changes to the Gather site or production backend.
*/

/* Four MATCH labels above each broadcast card, without a section headline. */
.cup-live-matches { margin-top: 18px; }
.cup-live-matches .live-row { gap: 13px; align-items: stretch; }
.cup-live-matches .live-match-slot {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 7px;
}
.cup-live-matches .live-match-number {
  margin: 0;
  text-align: center;
  color: #e4f0e6;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: .065em;
  line-height: 19px;
}
.cup-live-matches .match-card,
.cup-live-matches .match-card.ingame,
.cup-live-matches .match-card.finished,
.cup-live-matches .match-card.upcoming {
  flex: 1 1 auto;
  min-height: 238px;
  grid-template-rows: 26px minmax(0,1fr) auto;
  gap: 0;
  padding: 11px 10px 9px;
}
.cup-live-matches .match-head { align-items: center; }
.cup-live-matches .match-head .pill { font-size: 10px; padding: 5px 9px; }
.cup-live-matches .match-middle {
  grid-template-columns: minmax(0,1fr) minmax(63px,auto) minmax(0,1fr);
  gap: 5px;
  margin: 0;
}
.cup-live-matches .match-team,
.cup-live-matches .match-card.upcoming .match-team {
  max-width: 113px;
  gap: 5px;
  padding: 7px 5px 6px;
}
.cup-live-matches .match-card.upcoming .match-team {
  max-width: 103px;
  padding: 5px 4px;
}
.cup-live-matches .match-ico,
.cup-live-matches .match-card.upcoming .match-ico { width: min(100%,74px); font-size: 33px; border-radius: 17px; }
.cup-live-matches .match-team strong { font-size: clamp(10px,.88vw,13px); line-height: 1.15; }
.cup-live-matches .match-result { font-size: clamp(19px,1.75vw,28px); }
.cup-live-matches .match-card.upcoming .match-result { font-size: clamp(19px,1.85vw,27px); }
.cup-live-matches .match-map { font-size: clamp(10px,.75vw,12px); min-height: 15px; line-height: 15px; }

/* Public Twitch link first; restricted CUP LOBBY action immediately below. */
.cup-live-matches .match-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: 5px;
  padding-top: 2px;
}
.cup-live-matches .match-cta,
.cup-live-matches .match-watch,
.cup-live-matches .match-lobby {
  width: min(100%,205px);
  min-height: 28px;
  padding: 5px 7px;
  font-size: 9px;
  line-height: 16px;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
}
.cup-live-matches .match-watch {
  color: #ebe1ff;
  border-color: #70618d;
  background: linear-gradient(180deg,#352845,#251e32);
}
.cup-live-matches .match-watch:hover,
.cup-live-matches .match-watch:focus-visible {
  background: #49345e;
  border-color: #b49ada;
  color: #fff;
}
.cup-live-matches .match-lobby {
  border-color: #558c62;
  background: #193923;
}
/* The former embedded Twitch player is intentionally removed from CUP MODE. */

/* Teams appear immediately below the four match cards, before standings. */
.cup-live-teams { margin-top: 23px; }
.cup-live-teams .team-page-top { margin-bottom: 13px; }
.cup-live-teams .section-head { margin: 0 4px; }
.cup-live-teams .team-grid { margin-top: 0; }
.cup-live-teams .team-card { min-width: 0; }
.cup-live-teams + .live-schedule { margin-top: 28px; }
.cup-live-teams + .live-schedule .standings-area .section-head { margin-top: 0; }

/* Half-height group fixtures: status ABOVE score, all in the center column.
   Keep emblems/names centered in both side columns with room between teams. */
.round-accordion-item .fixture.compact-fixture,
.round-accordion-item .fixture.compact-fixture.ingame,
.round-accordion-item .fixture.compact-fixture.finished,
.round-accordion-item .fixture.compact-fixture.upcoming {
  min-height: 93px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7px 10px;
}
.round-accordion-item .compact-fixture .fixture-card-middle {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(79px,auto) minmax(0,1fr);
  align-items: center;
  justify-items: stretch;
  gap: 11px;
  min-height: 0;
  height: 100%;
}
.round-accordion-item .compact-fixture .fixture-team {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  justify-self: center;
  gap: 3px;
  text-align: center;
}
.round-accordion-item .compact-fixture .fixture-crest,
.round-accordion-item .compact-fixture.ingame .fixture-crest,
.round-accordion-item .compact-fixture.finished .fixture-crest {
  width: min(100%,38px);
  border-radius: 9px;
  font-size: 20px;
}
.round-accordion-item .compact-fixture .fixture-team strong {
  display: block;
  width: 100%;
  max-width: 100%;
  font-size: clamp(9px,.72vw,11px);
  line-height: 1.12;
  text-align: center;
  overflow-wrap: anywhere;
}
.round-accordion-item .compact-fixture .fixture-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 3px;
  min-width: 0;
  padding-top: 6px; /* score line sits slightly below the crest midline */
}
.round-accordion-item .compact-fixture .fixture-card-state {
  display: flex;
  justify-content: center;
}
.round-accordion-item .compact-fixture .fixture-card-state .pill {
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 4px;
}
.round-accordion-item .compact-fixture .fixture-score,
.round-accordion-item .compact-fixture.upcoming .fixture-score {
  font-size: clamp(13px,1.1vw,17px);
  line-height: 1.05;
}
.round-accordion-item .compact-fixture .fixture-map {
  min-height: 11px;
  font-size: clamp(9px,.67vw,11px);
  line-height: 11px;
}

/* Responsive adaptation; maintain clear two-column / one-column transitions. */
@media (max-width: 1350px) {
  .round-accordion-item .compact-fixture .fixture-card-middle { gap: 6px; grid-template-columns:minmax(0,1fr) minmax(71px,auto) minmax(0,1fr); }
}
@media (max-width: 1100px) {
  .cup-live-matches .match-card,
  .cup-live-matches .match-card.ingame,
  .cup-live-matches .match-card.finished,
  .cup-live-matches .match-card.upcoming { min-height: 232px; }
  .cup-live-matches .match-ico { width: min(100%,80px); }
  .cup-live-matches .match-team strong { font-size: 12px; }
  .round-accordion-item .compact-fixture .fixture-team strong { font-size: 11px; }
}
@media (max-width: 700px) {
  .cup-live-matches .live-match-number { font-size: 14px; }
  .cup-live-matches .match-card,
  .cup-live-matches .match-card.ingame,
  .cup-live-matches .match-card.finished,
  .cup-live-matches .match-card.upcoming { min-height: 230px; padding: 10px 10px 9px; }
  .cup-live-matches .match-middle { grid-template-columns:minmax(0,1fr) 70px minmax(0,1fr); gap: 5px; }
  .cup-live-matches .match-ico,
  .cup-live-matches .match-card.upcoming .match-ico { width: min(100%,75px); font-size: 29px; }
  .cup-live-matches .match-result { font-size: 22px; }
  .cup-live-matches .match-team strong { font-size: 12px; }
  .cup-live-teams { margin-top: 20px; }
  .cup-live-teams .team-page-top { flex-wrap: wrap; }
  .cup-live-teams .section-head { font-size: 20px; }
  .round-accordion-item .fixture.compact-fixture,
  .round-accordion-item .fixture.compact-fixture.ingame,
  .round-accordion-item .fixture.compact-fixture.finished,
  .round-accordion-item .fixture.compact-fixture.upcoming { min-height: 95px; }
  .round-accordion-item .compact-fixture .fixture-card-middle { grid-template-columns:minmax(0,1fr) 78px minmax(0,1fr); gap: 8px; }
  .round-accordion-item .compact-fixture .fixture-crest { width: min(100%,42px); font-size: 22px; }
  .round-accordion-item .compact-fixture .fixture-team strong { font-size: 12px; }
}
@media (max-width: 390px) {
  .cup-live-matches .match-middle { grid-template-columns:minmax(0,1fr) 63px minmax(0,1fr); gap: 3px; }
  .round-accordion-item .compact-fixture .fixture-card-middle { grid-template-columns:minmax(0,1fr) 71px minmax(0,1fr); gap: 4px; }
  .round-accordion-item .compact-fixture .fixture-team strong { font-size: 11px; }
}
