.events-page main.events-main {
  padding-top: 4px;
  padding-bottom: 72px;
}

.events-hero {
  padding: 36px 0 48px;
}

.events-hero h1 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.events-hero h1 .accent {
  color: var(--red);
  text-shadow: 0 0 28px rgba(255, 48, 70, 0.45);
}

/* Голографическое дрожание «Текущие» (как на главной) */
.events-hero h1 .glitch-holo {
  position: relative;
  display: inline-block;
  margin-right: 0.12em;
  color: var(--cream);
  z-index: 0;
  text-shadow: 5px 0 0 rgba(255, 48, 70, 0.55), -4px 0 0 rgba(16, 167, 255, 0.38);
  animation: holo-jitter 0.18s infinite steps(2);
}

.events-hero h1 .glitch-holo::before,
.events-hero h1 .glitch-holo::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0.8;
}

.events-hero h1 .glitch-holo::before {
  color: var(--red);
  transform: translate(5px, 0);
  clip-path: polygon(0 8%, 100% 8%, 100% 38%, 0 38%);
  animation: holo-red 2.1s infinite steps(2);
}

.events-hero h1 .glitch-holo::after {
  color: var(--blue);
  transform: translate(-4px, 0);
  clip-path: polygon(0 55%, 100% 55%, 100% 85%, 0 85%);
  animation: holo-blue 2.5s infinite steps(2);
}

@keyframes holo-jitter {
  0% {
    transform: translate(0, 0) skewX(0deg);
  }
  25% {
    transform: translate(2px, -1px) skewX(-0.8deg);
  }
  50% {
    transform: translate(-2px, 1px) skewX(0.6deg);
  }
  75% {
    transform: translate(1px, 1px) skewX(-0.4deg);
  }
  100% {
    transform: translate(-1px, -1px) skewX(0.5deg);
  }
}

@keyframes holo-red {
  0%,
  78%,
  100% {
    transform: translate(5px, 0);
  }
  82% {
    transform: translate(10px, -3px);
  }
  86% {
    transform: translate(-5px, 2px);
  }
  90% {
    transform: translate(8px, 1px);
  }
}

@keyframes holo-blue {
  0%,
  72%,
  100% {
    transform: translate(-4px, 0);
  }
  76% {
    transform: translate(-10px, 3px);
  }
  80% {
    transform: translate(6px, -2px);
  }
  84% {
    transform: translate(-7px, -2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .events-hero h1 .glitch-holo,
  .events-hero h1 .glitch-holo::before,
  .events-hero h1 .glitch-holo::after {
    animation: none;
  }

  .events-hero h1 .glitch-holo::before {
    transform: translate(5px, 0);
  }

  .events-hero h1 .glitch-holo::after {
    transform: translate(-4px, 0);
  }
}

.events-hero .hero-copy {
  max-width: 640px;
  margin-bottom: 0;
  font-size: clamp(17px, 2vw, 21px);
  color: var(--muted);
}

.events-list-section {
  padding-top: 8px;
  padding-bottom: 56px;
}

.events-list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.events-list-head > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.events-format-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.format-filter-btn {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.format-filter-btn:hover {
  border-color: rgba(255, 48, 70, 0.45);
  color: var(--cream);
}

.format-filter-btn.is-active {
  border-color: rgba(255, 48, 70, 0.72);
  background: rgba(255, 48, 70, 0.14);
  color: #fff;
  box-shadow: var(--shadow-red);
}

.events-empty {
  grid-column: 1 / -1;
  padding: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 18px;
  letter-spacing: 0.06em;
}

.events-list-title {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.events-list-hint {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(246, 239, 228, 0.45);
}

.live-matches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 4px;
}

.live-card {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(18, 26, 34, 0.95), rgba(6, 9, 12, 0.92));
  padding: 18px 18px 16px;
  color: var(--cream);
  font-family: inherit;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
}

.live-card:hover {
  border-color: rgba(255, 48, 70, 0.55);
  box-shadow: var(--shadow-red);
  transform: translateY(-2px);
}

.live-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #fff;
  background: var(--red);
  box-shadow: 0 0 16px rgba(255, 48, 70, 0.6);
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

.live-card__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-right: 52px;
}

.live-card__team {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-card__team:last-child {
  text-align: right;
}

.live-card__score {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Archivo Black", sans-serif;
  font-size: 28px;
  line-height: 1;
}

.live-card__score em {
  color: var(--muted);
  font-style: normal;
  font-size: 20px;
}

.live-card__score-val--win {
  color: var(--red);
  text-shadow: 0 0 16px rgba(255, 48, 70, 0.65);
}

.match-scoreblock__num--win {
  color: var(--red);
  text-shadow: 0 0 20px rgba(255, 48, 70, 0.7);
}

.live-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.live-card__map {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cream);
}

.live-card__map img {
  width: 48px;
  height: 28px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.live-card__time {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(246, 239, 228, 0.4);
}

.match-detail-section {
  padding-bottom: 48px;
}

.match-detail-section[hidden] {
  display: none !important;
}

.match-back {
  margin-bottom: 18px;
}

.match-shell {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.match-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--match-bg);
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(0.35);
  transform: scale(1.08);
  z-index: 0;
}

.match-panel {
  position: relative;
  z-index: 1;
  background: rgba(8, 10, 14, 0.88);
  backdrop-filter: blur(12px);
  padding: 20px 22px 24px;
}

.match-panel__tabs {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.match-tab {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 239, 228, 0.45);
}

.match-tab--active {
  color: var(--cream);
  position: relative;
}

.match-tab--active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -13px;
  height: 3px;
  background: var(--red);
  box-shadow: 0 0 12px rgba(255, 48, 70, 0.8);
}

.match-tab--muted {
  opacity: 0.5;
  cursor: default;
}

.match-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.match-team {
  display: flex;
  align-items: center;
  gap: 12px;
}

.match-team--b {
  justify-content: flex-end;
}

.match-team__avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: "Archivo Black", sans-serif;
  font-size: 20px;
  text-transform: uppercase;
  border: 2px solid rgba(255, 48, 70, 0.65);
  background: rgba(255, 48, 70, 0.12);
  box-shadow: 0 0 20px rgba(255, 48, 70, 0.25);
}

.match-team__name {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.match-scoreblock {
  text-align: center;
}

.match-scoreblock__format,
.match-scoreblock__rounds,
.match-scoreblock__bo {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.match-scoreblock__score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(44px, 6vw, 60px);
  line-height: 1;
  margin: 6px 0 8px;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

.match-scoreblock__sep {
  color: var(--muted);
  font-size: 0.7em;
}

.match-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: 16px 0 20px;
  position: relative;
}

.match-divider span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--red);
  box-shadow: 0 0 14px rgba(255, 48, 70, 0.9);
}

.match-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 240px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.match-roster {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(0, 0, 0, 0.25) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.player-row:hover {
  border-color: rgba(255, 48, 70, 0.4);
  background: linear-gradient(135deg, rgba(255, 48, 70, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.player-row--b {
  direction: rtl;
}

.player-row--b .player-main,
.player-row--b .player-kd {
  direction: ltr;
  text-align: right;
}

.player-agent {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--agent-color, var(--red));
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 12px rgba(255, 48, 70, 0.35);
}

.player-agent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.35s ease, opacity 0.35s ease;
}

.player-row.is-dead .player-agent img {
  filter: grayscale(1) brightness(0.38);
  opacity: 0.55;
}

.player-row.is-dead .player-nick,
.player-row.is-dead .player-agent-name {
  opacity: 0.55;
}

.match-center__card--clock {
  padding: 16px 14px 14px;
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(0, 0, 0, 0.45) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.match-center__card--clock.match-center__card--spike {
  border-color: rgba(255, 48, 70, 0.55);
  background: linear-gradient(180deg, rgba(255, 48, 70, 0.14) 0%, rgba(0, 0, 0, 0.5) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 28px rgba(255, 48, 70, 0.22);
}

.match-center__clock {
  display: block;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--cream);
  text-shadow: 0 0 24px rgba(246, 239, 228, 0.15);
}

.match-center__status--spike {
  color: #ffb4be;
  text-shadow: 0 0 18px rgba(255, 48, 70, 0.35);
}

.player-nick {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.player-agent-name {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 2px;
}

.player-handle {
  display: block;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.player-kd {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  white-space: nowrap;
}

.player-kd__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 28px;
}

.player-kd__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

.player-kd__val {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 400;
  line-height: 1;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}

.match-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}

.match-center__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  text-align: center;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: live-pulse 1.4s ease-in-out infinite;
}

.match-center__card {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.match-center__card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.match-center__card--map {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 10px 12px;
  overflow: hidden;
}

.match-center__card--map img {
  width: 80px;
  height: 48px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.match-center__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.match-center__card strong {
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav span.nav-events {
  position: relative;
  color: var(--red);
  animation: nav-events-glow 3.6s ease-in-out infinite;
  cursor: default;
}

.nav span.nav-events::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--red);
  box-shadow: 0 0 10px rgba(255, 48, 70, 0.85);
}

@media (max-width: 1100px) {
  .match-body {
    grid-template-columns: 1fr;
  }

  .match-center {
    order: -1;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .match-center__card {
    flex: 1 1 140px;
  }

  .player-row--b {
    direction: ltr;
  }

  .player-row--b .player-main,
  .player-row--b .player-kd {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .match-header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .match-team,
  .match-team--b {
    justify-content: center;
  }

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