.es-page { padding: 28px 0 64px; }
.es-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 18px; color: var(--muted); font-size: .86rem; }
.es-crumbs a { color: inherit; text-decoration: none; }
.es-crumbs a:hover { color: var(--accent); }
.es-hero { max-width: 760px; margin: 0 0 22px; }
.es-hero h1 { margin: 0 0 8px; }
.es-subnav { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 0; }
.es-subnav a { color: var(--accent); text-decoration: none; font-weight: 600; }
.es-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.es-chip { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border, #d8dee8); color: inherit; text-decoration: none; background: transparent; cursor: pointer; font: inherit; }
.es-chip.is-active, .es-chip:hover { border-color: var(--accent); color: var(--accent); }
.es-block { margin: 0 0 36px; }
.es-block__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 14px; }
.es-block__head a { color: var(--accent); text-decoration: none; }
.es-grid { display: grid; gap: 12px; }
.es-grid--matches { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.es-grid--news { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.es-grid--cards, .es-grid--streams { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.es-match, .es-news-card, .es-entity, .es-stream { border: 1px solid var(--border, #d8dee8); border-radius: 14px; background: var(--card, var(--bg, #fff)); overflow: hidden; }
.es-match__link, .es-news-card a, .es-entity, .es-stream button { display: block; width: 100%; color: inherit; text-decoration: none; text-align: left; background: none; border: 0; padding: 14px; cursor: pointer; font: inherit; }
.es-match__meta, .es-match__foot { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: .82rem; }
.es-match__teams { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0; }
.es-team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.es-team img, .es-entity img, .es-news-card img, .es-stream img, .es-logo { width: 28px; height: 28px; object-fit: contain; }
.es-news-card img, .es-stream img { width: 100%; height: 140px; object-fit: cover; }
.es-team--right { justify-content: flex-end; text-align: right; }
.es-vs { color: var(--muted); font-size: .8rem; }
.es-score { font-variant-numeric: tabular-nums; font-weight: 700; }
.es-badge { display: inline-flex; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.es-badge--running { background: #e10600; color: #fff; }
.es-badge--upcoming { background: var(--accent); color: #fff; }
.es-badge--finished, .es-badge--cancelled, .es-badge--postponed { background: var(--muted); color: #fff; }
.es-stream-flag { color: var(--accent); }
.es-news-card h3 { margin: 8px 0 6px; font-size: 1.02rem; }
.es-news-card p, .es-entity span, .es-stream p { margin: 0; color: var(--muted); font-size: .88rem; }
.es-match-hero__score { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin: 16px 0; }
.es-match-hero__center { text-align: center; }
.es-embed, .es-modal__box { position: relative; padding-top: 56.25%; background: #000; border-radius: 12px; overflow: hidden; }
.es-embed iframe, [data-esports-modal-frame] iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.es-modal { position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 80; display: grid; place-items: center; padding: 24px; }
.es-modal__box { width: min(960px, 100%); }
.es-modal__box > button { position: absolute; top: 8px; right: 8px; z-index: 2; }
.es-table { width: 100%; border-collapse: collapse; }
.es-table th, .es-table td { padding: 8px 10px; border-bottom: 1px solid var(--border, #d8dee8); text-align: left; }
.es-article-match { margin: 18px 0; padding: 14px; border: 1px solid var(--border, #d8dee8); border-radius: 14px; }
.es-article-match__teams { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.es-home { margin: 0 0 28px; }
.es-home__row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.es-home__row--matches-only,
.es-home__row--news-only { grid-template-columns: 1fr; }
.es-home__row--news-only .es-home__news {
  grid-template-rows: auto;
  max-width: 760px;
  height: auto;
}
.es-home__matches,
.es-home__news { min-width: 0; height: 100%; }
.es-home__matches {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border, #d8dee8);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card, var(--bg, #fff));
}
.es-home__matches .es-match {
  flex: 1 1 auto;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--border, #d8dee8);
  background: transparent;
  display: flex;
}
.es-home__matches .es-match:last-child { border-bottom: 0; }
.es-home__matches .es-match:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.es-home__matches .es-match__link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
}
.es-home__matches .es-match__meta,
.es-home__matches .es-match__foot { flex-wrap: nowrap; }
.es-home__matches .es-match__teams { margin: 4px 0; }
.es-home__matches .es-team { min-width: 0; }
.es-home__matches .es-team strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.es-home__matches .es-match__foot span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.es-home__news {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}
.es-home__news .es-news-card {
  min-height: 0;
  height: 100%;
  display: flex;
}
.es-home__news .es-news-card a {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  padding: 0;
}
.es-home__news .es-news-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 108px;
  flex: 0 0 auto;
  object-fit: cover;
}
.es-home__news .es-news-card a > div {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 10px 12px 12px;
}
.es-home__news .es-news-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 6px 0 4px;
  font-size: .95rem;
  line-height: 1.3;
}
.es-home__news .es-news-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  font-size: .82rem;
  line-height: 1.35;
}
.es-home__news .es-game { font-size: .78rem; font-weight: 600; }
.es-home__news .es-news-card time {
  margin-top: auto;
  padding-top: 8px;
  color: var(--muted);
  font-size: .78rem;
}
@media (max-width: 960px) {
  .es-home__row { grid-template-columns: 1fr; }
  .es-home__matches { height: auto; }
  .es-home__matches .es-match { flex: 0 0 auto; }
  .es-home__news { grid-template-rows: none; min-height: 0; height: auto; }
}
@media (max-width: 800px) {
  .es-match-hero__score { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .es-home__news { grid-template-columns: 1fr; }
}
