.esports-page {
  gap: 22px;
}

.esports-hero-panel,
.esports-feed-panel {
  border-radius: 34px;
  border: 1px solid rgba(148, 163, 184, .16);
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, .12), transparent 38%),
    linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(8, 20, 36, .98));
  box-shadow: 0 22px 58px rgba(0, 0, 0, .24);
}

.esports-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  padding: clamp(28px, 5vw, 54px);
  overflow: hidden;
}

.esports-hero-panel h1 {
  margin: 10px 0 12px;
  color: #fff;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: .92;
  letter-spacing: -.07em;
}

.esports-hero-panel p {
  max-width: 650px;
  margin: 0;
  color: #a9b7c8;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  line-height: 1.34;
  font-weight: 650;
}

.esports-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.esports-hero-actions .btn {
  min-height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.esports-hero-actions .btn-ghost {
  color: #e5f7ff;
  border: 1px solid rgba(148, 163, 184, .20);
  background: rgba(148, 163, 184, .08);
}

.esports-hero-stats {
  min-width: 190px;
  display: grid;
  gap: 10px;
}

.esports-hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 13px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(15, 23, 42, .58);
  border: 1px solid rgba(148, 163, 184, .16);
  font-weight: 850;
}

.esports-feed-panel {
  display: grid;
  gap: 20px;
  padding: clamp(20px, 4vw, 34px);
}

.esports-main-title {
  align-items: end;
}

.esports-main-title h2 {
  margin: 6px 0 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: .95;
  letter-spacing: -.06em;
}

.esports-loading-card {
  min-height: 170px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: #b9c8d8;
  font-weight: 850;
  border: 1px dashed rgba(148, 163, 184, .20);
  background: rgba(2, 6, 23, .28);
}

.esports-rail-block {
  display: grid;
  gap: 12px;
}

.esports-rail-title h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 2.05rem);
  letter-spacing: -.04em;
}

.esports-rail-title span {
  color: #a7b5c7;
  font-weight: 850;
}

.esports-match-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(292px, 360px);
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 12px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.esports-match-card {
  scroll-snap-align: start;
  display: grid;
  gap: 10px;
  min-height: 238px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, .16);
  background:
    radial-gradient(circle at top left, rgba(99, 102, 241, .16), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, .96), rgba(7, 18, 32, .98));
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
  overflow: hidden;
}

.esports-match-head {
  min-width: 0;
  min-height: 48px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: #e8f2ff;
  text-decoration: none;
  background: linear-gradient(90deg, rgba(53, 61, 83, .9), rgba(34, 49, 76, .68));
}

.esports-match-head > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 850;
}

.esports-match-head b {
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(30, 41, 59, .86);
  color: #dbeafe;
  font-size: .78rem;
}

.esports-match-head b.live {
  background: rgba(22, 163, 74, .22);
  color: #86efac;
}

.esports-game-icon,
.esports-team-logo {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  color: #ecfeff;
  font-weight: 1000;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  overflow: hidden;
}

.esports-team-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.esports-score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0 12px;
  padding: 7px 10px;
  border-radius: 14px;
  background: rgba(3, 7, 18, .48);
  border: 1px solid rgba(148, 163, 184, .10);
}

.esports-score-row div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.esports-score-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f8fafc;
  font-size: .96rem;
}

.esports-score-row > span {
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 1000;
}

.esports-market-title {
  margin: 2px 14px 0;
  color: #edf6ff;
  font-weight: 1000;
  text-transform: capitalize;
}

.esports-odds-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 0 12px 12px;
}

.esports-odd-button,
.esports-open-link {
  min-height: 54px;
  border: 1px solid rgba(203, 213, 225, .22);
  border-radius: 14px;
  background: linear-gradient(180deg, #effafa, #dfecec);
  color: #0b2a2b;
  display: grid;
  place-items: center;
  gap: 2px;
  text-decoration: none;
  font-weight: 1000;
}

.esports-odd-button small {
  max-width: 100%;
  color: #6b7d78;
  font-size: .75rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.esports-odd-button strong {
  font-size: 1.12rem;
}

.esports-open-link {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .esports-page {
    gap: 16px;
  }

  .esports-hero-panel {
    grid-template-columns: 1fr;
    gap: 18px;
    border-radius: 26px;
    padding: 26px 22px;
  }

  .esports-hero-panel h1 {
    font-size: 2.7rem;
  }

  .esports-hero-panel p {
    font-size: 1rem;
  }

  .esports-hero-actions .btn {
    min-height: 46px;
    border-radius: 15px;
  }

  .esports-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .esports-hero-stats span:last-child {
    grid-column: 1 / -1;
  }

  .esports-hero-stats span {
    justify-content: center;
    min-height: 36px;
    padding: 8px 10px;
    font-size: .78rem;
  }

  .esports-feed-panel {
    border-radius: 26px;
    padding: 20px 14px;
  }

  .esports-main-title h2 {
    font-size: 2rem;
  }

  .esports-match-rail {
    grid-auto-columns: calc(100dvw - 48px);
    gap: 12px;
    padding: 0 0 9px;
    scrollbar-width: none;
  }

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

  .esports-match-card {
    min-height: 152px;
    gap: 4px;
    border-radius: 16px;
  }

  .esports-match-head {
    min-height: 34px;
    padding: 5px 8px;
    gap: 6px;
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }

  .esports-match-head > span:nth-child(2) {
    font-size: .76rem;
    line-height: 1;
  }

  .esports-match-head b {
    padding: 4px 7px;
    font-size: .62rem;
  }

  .esports-game-icon,
  .esports-team-logo {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: .68rem;
  }

  .esports-score-row {
    min-height: 31px;
    margin: 0 8px;
    padding: 4px 7px;
    gap: 6px;
    border-radius: 10px;
  }

  .esports-score-row div {
    gap: 6px;
  }

  .esports-score-row strong {
    font-size: .78rem;
    line-height: 1;
  }

  .esports-score-row > span {
    font-size: .86rem;
  }

  .esports-market-title {
    margin: 1px 10px 0;
    font-size: .74rem;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .esports-odds-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 0 8px 7px;
  }

  .esports-odds-grid .esports-odd-button:nth-child(n + 4) {
    display: none;
  }

  .esports-odd-button,
  .esports-open-link {
    min-height: 35px;
    border-radius: 10px;
    padding: 3px 5px;
  }

  .esports-odd-button small {
    font-size: .56rem;
    line-height: .95;
  }

  .esports-odd-button strong {
    font-size: .78rem;
    line-height: 1;
  }
}

@media (max-width: 380px) {
  .esports-match-rail {
    grid-auto-columns: calc(100dvw - 40px);
  }
}
