/* MATCHES_FINAL_HOCKEY_VISUAL_20260425 */

.matches-final-root {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  padding: 24px 0 72px;
  color: #fff;
}

.rusich-matches-page {
  --rusich-red: #e31e24;
  --rusich-gold: #f1c45a;
  --rusich-ink: #07101e;
  --rusich-card: rgba(8, 14, 27, 0.92);
  --rusich-card-2: rgba(15, 24, 43, 0.92);
  --rusich-line: rgba(255, 255, 255, 0.12);
  --rusich-muted: rgba(255, 255, 255, 0.70);
  --rusich-soft: rgba(255, 255, 255, 0.06);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.matches-final-ready .match-card:not(.rusich-game-card),
body.matches-final-ready .matches-card:not(.rusich-game-card),
body.matches-final-ready [class*="match-card"]:not(.rusich-game-card),
body.matches-final-ready [class*="matches-card"]:not(.rusich-game-card) {
  display: none !important;
}

.rusich-matches-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  padding: clamp(22px, 4vw, 42px);
  margin-bottom: 20px;
  border: 1px solid var(--rusich-line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 0%, rgba(227, 30, 36, 0.42), transparent 34%),
    radial-gradient(circle at 88% 6%, rgba(241, 196, 90, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(8, 15, 30, 0.98), rgba(5, 8, 15, 0.96));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.rusich-matches-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -45% 38%;
  height: 170px;
  transform: rotate(-7deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  pointer-events: none;
}

.rusich-matches-eyebrow {
  margin: 0 0 8px;
  color: var(--rusich-gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rusich-matches-hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 0.94;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.rusich-matches-hero p {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--rusich-muted);
  font-size: clamp(14px, 2vw, 17px);
  line-height: 1.55;
}

.rusich-matches-summary {
  display: grid;
  place-items: center;
  min-width: 138px;
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(241, 196, 90, 0.35);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.07);
  text-align: center;
}

.rusich-matches-summary strong {
  display: block;
  font-size: 48px;
  line-height: 1;
}

.rusich-matches-summary span {
  color: var(--rusich-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.rusich-matches-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 14px;
  align-items: stretch;
  margin: 0 0 14px;
}

.rusich-match-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.rusich-match-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--rusich-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.rusich-match-filter:hover {
  transform: translateY(-1px);
  border-color: rgba(227, 30, 36, 0.55);
  background: rgba(227, 30, 36, 0.16);
}

.rusich-match-filter.is-active {
  border-color: rgba(227, 30, 36, 0.85);
  background: linear-gradient(135deg, #e31e24, #a91018);
  box-shadow: 0 12px 32px rgba(227, 30, 36, 0.22);
}

.rusich-match-filter span {
  min-width: 22px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  font-size: 12px;
}

.rusich-match-search-wrap {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid var(--rusich-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.rusich-match-search-wrap span {
  color: var(--rusich-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rusich-match-search {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.rusich-match-search::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.rusich-matches-count {
  margin: 8px 0 14px;
  color: var(--rusich-muted);
  font-weight: 700;
}

.rusich-matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
  gap: 16px;
}

.rusich-game-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  min-height: 258px;
  padding: 18px;
  border: 1px solid var(--rusich-line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 32%),
    radial-gradient(circle at 12% 0%, rgba(227, 30, 36, 0.20), transparent 34%),
    linear-gradient(145deg, var(--rusich-card), var(--rusich-card-2));
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.34);
}

.rusich-game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 20%, rgba(255,255,255,0.045) 20% 21%, transparent 21% 42%, rgba(255,255,255,0.035) 42% 43%, transparent 43%),
    linear-gradient(90deg, rgba(255,255,255,0.025), transparent);
  pointer-events: none;
}

.rusich-match-league {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.rusich-match-league-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  padding: 6px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 15px;
  background: rgba(255,255,255,0.08);
}

.rusich-match-league-kicker {
  margin-bottom: 2px;
  color: var(--rusich-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rusich-match-league strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  font-size: 15px;
  white-space: nowrap;
}

.rusich-match-status {
  justify-self: end;
  padding: 9px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.09);
  color: #fff;
  font-size: 12px;
  font-weight: 1000;
  white-space: nowrap;
}

.rusich-match-status--live {
  background: rgba(227, 30, 36, 0.95);
  box-shadow: 0 0 0 5px rgba(227, 30, 36, 0.13);
}

.rusich-match-status--scheduled {
  color: #101010;
  background: var(--rusich-gold);
}

.rusich-match-status--finished {
  background: rgba(255,255,255,0.12);
}

.rusich-match-scoreboard {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.rusich-match-team {
  display: grid;
  gap: 10px;
  justify-items: center;
  min-width: 0;
}

.rusich-match-team-logo {
  width: clamp(64px, 10vw, 92px);
  height: clamp(64px, 10vw, 92px);
  object-fit: contain;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,0.16), transparent 48%),
    rgba(255,255,255,0.07);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.35));
}

.rusich-match-team-name {
  width: 100%;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: clamp(15px, 2.1vw, 22px);
  font-weight: 1000;
  line-height: 1.08;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: -0.025em;
}

.rusich-match-score {
  display: grid;
  place-items: center;
  min-width: clamp(88px, 12vw, 128px);
  min-height: clamp(64px, 9vw, 88px);
  padding: 12px 16px;
  border: 1px solid rgba(241, 196, 90, 0.42);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(241, 196, 90, 0.14), transparent),
    rgba(0,0,0,0.32);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.rusich-match-score span {
  color: #fff;
  font-size: clamp(30px, 5.8vw, 52px);
  font-weight: 1000;
  line-height: 1;
  letter-spacing: -0.07em;
}

.rusich-match-footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.rusich-match-meta {
  color: var(--rusich-muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
}

.rusich-match-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 14px;
  background: #e31e24;
  color: #fff !important;
  font-weight: 1000;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(227, 30, 36, 0.24);
}

.rusich-matches-loading,
.rusich-matches-empty {
  padding: 26px;
  border: 1px solid var(--rusich-line);
  border-radius: 24px;
  background: rgba(255,255,255,0.06);
  color: var(--rusich-muted);
  font-weight: 800;
}

@media (max-width: 760px) {
  .matches-final-root {
    width: min(100% - 18px, 1180px);
    padding-top: 14px;
  }

  .rusich-matches-hero {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .rusich-matches-summary {
    justify-self: start;
    min-width: 118px;
    min-height: 86px;
  }

  .rusich-matches-toolbar {
    grid-template-columns: 1fr;
  }

  .rusich-game-card {
    min-height: 0;
    padding: 14px;
    border-radius: 24px;
  }

  .rusich-match-league {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .rusich-match-status {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .rusich-match-scoreboard {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
  }

  .rusich-match-team-logo {
    width: 60px;
    height: 60px;
    border-radius: 18px;
  }

  .rusich-match-team-name {
    font-size: 13px;
  }

  .rusich-match-score {
    min-width: 70px;
    min-height: 54px;
    padding: 8px 10px;
    border-radius: 18px;
  }

  .rusich-match-score span {
    font-size: 28px;
  }

  .rusich-match-footer {
    grid-template-columns: 1fr;
  }

  .rusich-match-link {
    width: 100%;
  }
}
