/* Eventy v13.0 */
.home-events-section {
  position: relative;
  z-index: 4;
  margin-top: -28px;
  padding-bottom: 34px;
}

.home-event-live-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 28px;
  min-height: 124px;
  padding: 24px 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(105deg, rgba(241, 255, 0, 0.08), transparent 36%),
    rgba(15, 18, 13, 0.96);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.home-event-live-card::after {
  position: absolute;
  content: "";
  width: 240px;
  height: 240px;
  right: -100px;
  top: -130px;
  border-radius: 50%;
  background: rgba(241, 255, 0, 0.08);
  filter: blur(12px);
  pointer-events: none;
}

.home-event-live-card.is-live {
  border-color: rgba(241, 255, 0, 0.27);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.36), 0 0 55px rgba(241, 255, 0, 0.055);
}

.home-event-live-main {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.home-event-live-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #0a0b08;
  background: linear-gradient(145deg, var(--lime), #cdd900);
  box-shadow: 0 12px 30px rgba(241, 255, 0, 0.15);
}

.home-event-kicker,
.events-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lime);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.home-event-kicker i,
.events-live-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 14px rgba(241, 255, 0, 0.7);
}

.home-event-live-card.is-live .home-event-kicker i,
.events-live-dashboard.is-live .events-live-badge i {
  animation: eventPulse 1.55s ease-in-out infinite;
}

@keyframes eventPulse {
  0%, 100% { transform: scale(0.8); opacity: 0.62; }
  50% { transform: scale(1.18); opacity: 1; }
}

.home-event-live-main h2 {
  margin: 5px 0 4px;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.home-event-live-main p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.home-event-live-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 145px;
}

.home-event-live-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 750;
}

.home-event-live-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(241, 255, 0, 0.26);
  border-radius: 13px;
  color: var(--lime);
  background: rgba(241, 255, 0, 0.07);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.home-event-live-link:hover {
  transform: translateY(-2px);
  border-color: rgba(241, 255, 0, 0.46);
  background: rgba(241, 255, 0, 0.12);
}

.events-page-hero .compact-page-hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 9, 6, 0.97) 0%, rgba(7, 9, 6, 0.78) 48%, rgba(7, 9, 6, 0.72) 100%),
    radial-gradient(circle at 78% 46%, rgba(241, 255, 0, 0.1), transparent 34%);
}

.events-live-section {
  padding-top: 58px;
  padding-bottom: 54px;
}

.events-live-dashboard {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 34px;
  align-items: stretch;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 26px;
  background:
    linear-gradient(120deg, rgba(241, 255, 0, 0.075), transparent 42%),
    linear-gradient(180deg, rgba(21, 25, 18, 0.96), rgba(13, 16, 11, 0.98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
}

.events-live-dashboard::before {
  position: absolute;
  content: "";
  width: 420px;
  height: 420px;
  left: -200px;
  bottom: -330px;
  border-radius: 50%;
  background: rgba(241, 255, 0, 0.08);
  filter: blur(25px);
}

.events-live-dashboard.is-live {
  border-color: rgba(241, 255, 0, 0.25);
}

.events-live-copy,
.events-countdown-card {
  position: relative;
  z-index: 1;
}

.events-live-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
}

.events-live-symbol {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #090b06;
  background: linear-gradient(145deg, var(--lime), #d5df00);
  box-shadow: 0 16px 42px rgba(241, 255, 0, 0.14);
}

.events-live-heading h2 {
  margin: 0 0 7px;
  font-size: clamp(28px, 4vw, 47px);
  letter-spacing: -0.05em;
  line-height: 1;
}

.events-live-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.events-live-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.events-live-details span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  font-weight: 760;
}

.events-countdown-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  padding: 24px;
  border: 1px solid rgba(241, 255, 0, 0.17);
  border-radius: 21px;
  background: rgba(6, 8, 5, 0.6);
  text-align: center;
}

.events-countdown-card span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.events-countdown-card strong {
  margin: 12px 0 8px;
  color: var(--lime);
  font-size: clamp(39px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 35px rgba(241, 255, 0, 0.13);
}

.events-countdown-card small {
  color: var(--muted);
  font-size: 12px;
}

.event-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.event-summary-grid article {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.event-summary-grid article > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 12px;
  color: var(--lime);
  background: rgba(241, 255, 0, 0.075);
}

.event-summary-grid article div {
  display: flex;
  flex-direction: column;
}

.event-summary-grid strong {
  font-size: 24px;
  line-height: 1;
}

.event-summary-grid small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.events-data-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 167, 62, 0.18);
  border-radius: 12px;
  color: #d8c7b4;
  background: rgba(255, 103, 0, 0.055);
  font-size: 12px;
}

.event-leaderboard-section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.012);
}

.events-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(240px, 1fr) auto;
  gap: 12px;
  margin-bottom: 16px;
}

.events-select-wrap,
.events-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  color: rgba(255, 255, 255, 0.47);
  background: rgba(14, 17, 12, 0.92);
}

.events-select-wrap select,
.events-search-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.events-select-wrap select {
  appearance: none;
  cursor: pointer;
  color-scheme: dark;
  background-color: #0e110c;
}

.events-select-wrap select option {
  color: #f7f8f4;
  background-color: #0e110c;
  font-weight: 700;
}

.events-select-wrap select option:checked {
  color: #0a0d08;
  background-color: #e7ff00;
}

.events-select-wrap > svg:last-child {
  pointer-events: none;
}

.events-search-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.events-refresh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 17px;
  border: 1px solid rgba(241, 255, 0, 0.17);
  border-radius: 13px;
  color: var(--lime);
  background: rgba(241, 255, 0, 0.055);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.events-leaderboard-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 20px;
  background: rgba(13, 16, 11, 0.93);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.18);
}

.events-table-head,
.event-player-row {
  display: grid;
  grid-template-columns: 58px minmax(200px, 1.4fr) 100px 100px 120px minmax(170px, 0.8fr);
  align-items: center;
  gap: 10px;
}

.events-table-head {
  min-height: 48px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.38);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-player-row {
  min-height: 78px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.event-player-row:last-child {
  border-bottom: 0;
}

.event-player-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.event-player-rank {
  font-size: 17px;
  font-weight: 900;
}

.event-player-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.event-player-profile > i {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(241, 255, 0, 0.13);
  border-radius: 12px;
  color: var(--lime);
  background: rgba(241, 255, 0, 0.06);
  font-style: normal;
  font-size: 16px;
  font-weight: 900;
}

.event-player-profile > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.event-player-profile strong {
  overflow: hidden;
  color: var(--white);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-player-profile small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.event-player-wins {
  color: var(--lime);
  font-size: 19px;
}

.event-player-podiums {
  color: var(--muted);
  font-size: 11px;
}

.events-empty-state {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 35px;
  color: var(--muted);
  text-align: center;
}

.events-empty-state svg {
  margin-bottom: 14px;
  color: var(--lime);
}

.events-empty-state strong {
  color: var(--white);
  font-size: 18px;
}

.events-empty-state p {
  max-width: 430px;
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
}

.event-history-section {
  background:
    radial-gradient(circle at 90% 30%, rgba(255, 103, 0, 0.035), transparent 28rem),
    var(--ink);
}

.event-history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.event-history-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.014));
}

.event-history-top {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.event-history-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--lime);
  background: rgba(241, 255, 0, 0.07);
}

.event-history-top div > span {
  color: rgba(255, 255, 255, 0.37);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.event-history-top h3 {
  margin: 4px 0 0;
  font-size: 18px;
}

.event-history-top time {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.event-history-winners {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.event-history-winners > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}

.event-history-winners strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-history-winners small {
  color: var(--muted);
  font-size: 9px;
}

.event-history-winners > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.event-history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.event-history-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.event-history-empty {
  grid-column: 1 / -1;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 18px;
}

.event-join-cta {
  padding: 58px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(115deg, rgba(241, 255, 0, 0.07), rgba(255, 103, 0, 0.035));
}

.event-join-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.event-join-cta h2 {
  margin: 9px 0 6px;
  font-size: clamp(27px, 4vw, 43px);
  letter-spacing: -0.045em;
}

.event-join-cta p {
  margin: 0;
  color: var(--muted);
}

.events-update-note {
  padding: 10px 20px;
  color: rgba(255, 255, 255, 0.32);
  background: rgba(0, 0, 0, 0.25);
  font-size: 9px;
  text-align: center;
}

@media (max-width: 1050px) {
  .home-event-live-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .home-event-live-meta {
    display: none;
  }
  .event-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .events-table-head,
  .event-player-row {
    grid-template-columns: 50px minmax(190px, 1.4fr) 80px 80px 105px;
  }
  .events-table-head span:last-child,
  .event-player-podiums {
    display: none;
  }
}

@media (max-width: 800px) {
  .home-events-section {
    margin-top: -14px;
  }
  .home-event-live-card {
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 21px;
  }
  .home-event-live-link {
    width: 100%;
  }
  .events-live-dashboard {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .events-countdown-card {
    min-height: 150px;
  }
  .events-toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .events-refresh-button {
    grid-column: 1 / -1;
  }
  .event-history-grid {
    grid-template-columns: 1fr;
  }
  .event-join-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .home-event-live-main {
    align-items: flex-start;
  }
  .home-event-live-icon {
    width: 47px;
    height: 47px;
    flex-basis: 47px;
    border-radius: 14px;
  }
  .home-event-live-main h2 {
    font-size: 23px;
  }
  .events-live-section {
    padding-top: 38px;
  }
  .events-live-heading {
    align-items: flex-start;
  }
  .events-live-symbol {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 15px;
  }
  .events-live-heading h2 {
    font-size: 31px;
  }
  .event-summary-grid,
  .events-toolbar {
    grid-template-columns: 1fr;
  }
  .events-refresh-button {
    grid-column: auto;
  }
  .events-table-head {
    display: none;
  }
  .event-player-row {
    grid-template-columns: 40px minmax(0, 1fr) 60px;
    min-height: 72px;
    padding: 12px 14px;
  }
  .event-player-row > span:nth-child(4),
  .event-player-row > span:nth-child(5),
  .event-player-podiums {
    display: none;
  }
  .event-player-wins::after {
    content: " výher";
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
  }
  .event-history-top {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .event-history-top time {
    grid-column: 2;
  }
}
