/* Fantasy League / Расписание, 13115:7307. */
.content:has(> .schedule-view) {
  min-height: 100%;
  padding: 0 17px 22px;
  background: #0e0e0e;
}

.match-figma-header {
  display: flex;
  min-height: 125px;
  margin-inline: -17px;
  padding: 22px 16px 0;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid #2e2e2e;
  background: #0a0a0a;
  text-align: center;
}

.match-figma-header h1 {
  color: #fff;
  font: 900 55px / .9 var(--heading);
  letter-spacing: -.05em;
  transform: translate(-2px, -2px);
}

.match-figma-header p {
  margin-top: 14.5px;
  color: #fff;
  font: 400 13px / 1 var(--mono);
  letter-spacing: -.055em;
}

.match-figma-rail {
  position: relative;
  display: flex;
  gap: 5px;
  margin: 15px -17px 23px 0;
  padding: 3px 17px 3px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.match-figma-rail::-webkit-scrollbar {
  display: none;
}

.match-figma-rail button {
  position: relative;
  flex: none;
  min-width: 61px;
  height: 41px;
  padding: 0 13.5px 0 12.5px;
  border: 1px solid #2e2e2e;
  border-radius: 10px;
  background: #0e0e0e;
  color: #fff;
  font: 400 11px / 1 var(--mono);
  letter-spacing: -.055em;
  text-transform: uppercase;
  white-space: nowrap;
}

.match-figma-rail button:nth-child(2) {
  min-width: 75px;
}

.match-figma-rail [data-match-filter="yandex"] {
  min-width: 132px;
}

.match-figma-rail button::after {
  position: absolute;
  inset: -3px 0;
  content: "";
}

.match-figma-rail [aria-pressed="true"] {
  border-color: #e10000;
  background: #e10000;
}

.match-figma-date {
  margin: 16px 0 8px;
  font: 400 11px / 1.2 var(--mono);
  letter-spacing: 0;
}

.match-figma-list {
  display: grid;
  gap: 14px;
}

.match-figma {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: inherit;
}

.match-figma-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(86px, 1fr) minmax(0, 1fr);
  align-items: center;
  column-gap: 3px;
  min-height: 136px;
  padding: 12px 8px;
  border: 1px solid #2e2e2e;
  border-radius: 16px;
  background: #131313;
}

.match-figma.is-yandex .match-figma-card,
.match-figma.is-live .match-figma-card {
  border-color: #e10000;
}

.match-figma.is-live .match-figma-card {
  min-height: 144px;
  background: linear-gradient(180deg, #6f0b0b, #131313 72px);
}

.match-figma:focus-visible {
  outline-offset: 2px;
  border-radius: 16px;
}

.match-figma-club {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  align-self: end;
  gap: 20px;
  font: 400 11px / 12px var(--mono);
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
  text-align: center;
  text-transform: uppercase;
}

.match-figma-club > span:last-child {
  transform: translateY(-1px);
}

.match-figma-logo {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 1px solid #2e2e2e;
  border-radius: 50%;
  background: #131313;
}

.match-figma-logo.is-highlighted {
  border-color: #e10000;
}

.match-figma.is-live .match-figma-logo.is-highlighted {
  box-shadow: 0 0 19px #e1000099;
}

.match-figma-logo .team-logo {
  width: auto;
  height: auto;
  max-width: 57.3px;
  max-height: 57.3px;
  object-fit: contain;
}

/* The exported marks retain each centered Figma layer's optical offset. */
.match-figma-logo [src="/assets/figma/team-yandex.svg"] { transform: translate(-.5px, .5px); }
.match-figma-logo [src="/assets/figma/betboom.svg"] { transform: translateX(-1px); }
.match-figma-logo [src="/assets/figma/falcons.svg"] { transform: translateX(-.75px); }
.match-figma-logo [src="/assets/figma/nemesis.svg"] { transform: translate(-.75px, .5px); }
.match-figma-logo [src="/assets/figma/liquid.svg"] { transform: translate(-1px, .25px); }
.match-figma-logo [src="/assets/figma/spirit.svg"] { transform: translate(-.75px, -2.25px); }

.match-figma-logo .placeholder {
  width: 48px;
  height: 48px;
  border: 0;
  color: #fff;
  font: 900 24px / 1 var(--heading);
}

.match-figma-center {
  display: grid;
  justify-items: center;
  align-self: start;
  min-width: 0;
  margin-top: 3px;
  text-align: center;
}

.match-figma-center strong {
  margin-top: 12px;
  font: 900 38px / .9 var(--heading);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  white-space: nowrap;
  transform: translateX(-2px);
}

.match-figma.is-live .match-figma-center {
  margin-top: -2px;
}

.match-figma.is-live .match-figma-center strong {
  font-size: 44px;
  letter-spacing: .06em;
  transform: translate(-1px, -1px);
}

.match-figma-state {
  display: flex;
  min-height: 12px;
  align-items: center;
  gap: 9px;
  font: 400 11px / 12px var(--mono);
  letter-spacing: -.055em;
  text-transform: uppercase;
}

.match-figma:not(.is-live) .match-figma-state,
.match-figma.is-live .match-figma-state small {
  transform: translateX(-.5px);
}

.match-figma-center small {
  color: #808080;
  font: 400 11px / 1 var(--mono);
  letter-spacing: -.055em;
}

.match-figma-center > small {
  margin-top: 15px;
}

.match-figma-live,
.match-figma-center .match-figma-start {
  display: inline-flex;
  height: 22px;
  padding: 0 10px;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  background: #e10000;
  color: #fff;
  font-size: 10px;
  white-space: nowrap;
}

.match-figma-live {
  padding-top: 1px;
}

.match-figma-center .match-figma-start {
  min-width: 48px;
  margin-top: 11px;
  background: #2e2e2e;
  letter-spacing: -.065em;
}

.match-figma .match-tag {
  display: flex;
  min-height: 40px;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 7px;
  margin-top: 4px;
  padding: 7px 12.5px 5px 13.5px;
  border: 1px solid #e10000;
  border-radius: 10px;
  background: #131313;
  color: #808080;
  font: 400 11px / 1.25 var(--mono);
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
  text-align: left;
  text-transform: uppercase;
}

.match-figma .match-tag strong {
  color: #fff;
  font-weight: 400;
}
