/* /styles/legacy/foundation.css */
:root {
  color-scheme: light;
  --bg: #f3f5f8;
  --bg-secondary: #edf1f5;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --surface-muted: #f5f7fa;
  --surface-soft: var(--surface-muted);
  --text: #111827;
  --text-main: var(--text);
  --text-muted: #667085;
  --text-soft: var(--text-muted);
  --line: rgba(17, 24, 39, 0.105);
  --line-strong: rgba(17, 24, 39, 0.16);
  --border: var(--line);
  --border-soft: rgba(17, 24, 39, 0.075);
  --border-strong: var(--line-strong);
  --accent: #1d68d8;
  --accent-strong: #1657b8;
  --accent-soft: rgba(29, 104, 216, 0.1);
  --surface-hover: color-mix(in srgb, var(--accent) 7%, var(--surface-strong));
  --surface-selected: color-mix(in srgb, var(--accent) 10%, var(--surface-strong));
  --surface-overlay: rgba(243, 245, 248, 0.72);
  --system-state-bg: color-mix(in srgb, var(--surface-strong) 86%, var(--surface-muted));
  --system-state-border: color-mix(in srgb, var(--line) 76%, transparent);
  --system-state-accent-bg: color-mix(in srgb, var(--accent) 9%, transparent);
  --system-state-accent-border: color-mix(in srgb, var(--accent) 18%, var(--line));
  --system-state-error: #c2410c;
  --system-state-error-bg: rgba(251, 146, 60, 0.11);
  --system-state-success: #5f9f2f;
  --system-state-success-bg: rgba(95, 159, 47, 0.11);
  --page-bg: var(--bg);
  --green: #5f9f2f;
  --emoji-outline-color: rgba(130, 140, 156, 0.34);
  --emoji-outline-filter:
    drop-shadow(0.14px 0 0 var(--emoji-outline-color))
    drop-shadow(-0.14px 0 0 var(--emoji-outline-color))
    drop-shadow(0 0.14px 0 var(--emoji-outline-color))
    drop-shadow(0 -0.14px 0 var(--emoji-outline-color));
  --shadow: 0 10px 24px rgba(16, 24, 40, 0.075);
  --shadow-soft: 0 1px 2px rgba(16, 24, 40, 0.045);
  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.045);
  --shadow-card-hover: 0 4px 14px rgba(16, 24, 40, 0.06);
  --shadow-popover: 0 16px 36px rgba(16, 24, 40, 0.12);
  --elevation-1: var(--shadow-soft);
  --elevation-2: var(--shadow-card-hover);
  --elevation-popover: var(--shadow-popover);
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --radius-card: var(--radius-md);
  --radius-inner: var(--radius-sm);
  --radius-control: var(--radius-md);
  --radius-pill: 999px;
  --space-1: 4px;
  --space-2: 6px;
  --space-3: 8px;
  --space-4: 10px;
  --space-5: 12px;
  --space-6: 16px;
  --space-7: 20px;
  --space-8: 24px;
  --space-mobile-gutter: 10px;
  --space-mobile-feed-gap: 10px;
  --space-mobile-card-x: 12px;
  --space-mobile-card-y: 10px;
  --space-mobile-control-gap: 8px;
  --motion-fast: 120ms;
  --motion-base: 160ms;
  --motion-slow: 220ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-emphasized: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: var(--motion-fast) var(--ease-standard);
  --transition-base: var(--motion-base) var(--ease-standard);
  --transition-slow: var(--motion-slow) var(--ease-emphasized);
  --focus-ring-color: color-mix(in srgb, var(--accent) 18%, transparent);
  --focus-ring: 0 0 0 3px var(--focus-ring-color);
  --focus-outline: 2px solid color-mix(in srgb, var(--accent) 78%, var(--text));
  --focus-ring-offset: 3px;
  --container: 1106px;
  --font-sans: "IBM Plex Sans", "Manrope", "Segoe UI", sans-serif;
}

/* Teams directory: data-rich grid and list views. */
.page-teams .page-grid.page-grid--teams-table {
  grid-template-columns: minmax(0, 1fr);
}

.page-teams .page-grid--teams-table .teams-page {
  width: 100%;
  max-width: none;
}

.page-teams .teams-toolbar {
  position: relative;
  z-index: 4;
}

.page-teams .directory-sort--compact {
  position: relative;
  flex: 0 0 42px;
  margin-left: auto;
}

.page-teams .directory-sort--compact .directory-sort__summary {
  box-sizing: border-box;
  width: 42px;
  min-width: 42px;
  height: 40px;
  padding: 0;
  border-color: color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: 9px;
  background: var(--surface-strong);
}

.page-teams .directory-sort--compact .directory-sort__summary:hover,
.page-teams .directory-sort--compact[open] .directory-sort__summary {
  border-color: color-mix(in srgb, var(--accent-strong) 28%, var(--line));
  background: var(--surface-muted);
  color: var(--accent-strong);
}

.page-teams .directory-sort--compact .directory-sort__icon {
  width: 19px;
  height: 19px;
}

.page-teams .directory-sort--compact .directory-sort__menu {
  right: 0;
  left: auto;
  width: 272px;
}

.page-teams .teams-directory {
  min-width: 0;
}

.page-teams .teams-list-header,
.page-teams .teams-grid--list .team-directory-card {
  display: grid;
  grid-template-columns: 42px minmax(190px, 1.15fr) 78px 86px minmax(190px, 1fr) 116px minmax(190px, 1fr) 16px;
  align-items: center;
  gap: 12px;
}

.page-teams .teams-directory--list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-card) - 2px);
  background: var(--surface-strong);
}

.page-teams .teams-list-header {
  min-height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-muted) 76%, var(--surface-strong));
  color: var(--text-soft);
  font-size: .61rem;
  font-weight: 740;
  letter-spacing: .01em;
}

.page-teams .teams-grid--list {
  display: block;
}

.page-teams .teams-grid--list .team-directory-card {
  min-height: 78px;
  padding: 8px 14px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.page-teams .teams-grid--list .team-directory-card + .team-directory-card {
  border-top: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
}

.page-teams .teams-grid--list .team-directory-card:hover {
  z-index: 1;
  background: color-mix(in srgb, var(--accent-soft) 16%, var(--surface-strong));
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--accent-strong) 58%, transparent);
  transform: none;
}

.page-teams .team-directory-card__position {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--text-soft);
  font-size: .7rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.page-teams .teams-grid--list .team-directory-card:nth-child(-n + 3) .team-directory-card__position {
  background: color-mix(in srgb, var(--accent-soft) 68%, var(--surface-strong));
  color: var(--accent-strong);
}

.page-teams .team-directory-card__identity {
  display: flex;
  min-width: 0;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.page-teams .team-directory-card__identity-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.page-teams .team-directory-card__identity-copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: .78rem;
  font-weight: 790;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-teams .team-directory-card__identity-copy small {
  color: var(--text-soft);
  font-size: .53rem;
  font-weight: 700;
}

.page-teams .teams-grid--list .team-directory-card__logo {
  width: 40px;
  height: 40px;
}

.page-teams .team-directory-card__region {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
}

.page-teams .team-directory-card__region b {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
}

.page-teams .team-directory-card__region strong,
.page-teams .team-directory-card__region small {
  font-size: .63rem;
  font-weight: 720;
}

.page-teams .team-directory-card__vrs {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 5px;
  font-variant-numeric: tabular-nums;
}

.page-teams .team-directory-card__vrs strong {
  color: var(--text);
  font-size: .76rem;
  font-weight: 820;
  white-space: nowrap;
}

.page-teams .team-directory-card__vrs small {
  color: var(--text-soft);
  font-size: .5rem;
  font-weight: 760;
}

.page-teams .team-directory-card__vrs small.is-up { color: #147a50; }
.page-teams .team-directory-card__vrs small.is-down { color: #b84540; }

.page-teams .team-directory-card__roster,
.page-teams .team-directory-card__form {
  min-width: 0;
  margin: 0;
}

.page-teams .team-directory-card__roster-items,
.page-teams .team-directory-card__form-items {
  display: flex;
  min-width: 0;
  align-items: center;
}

.page-teams .team-directory-card__roster-items {
  gap: 3px;
}

.page-teams .team-directory-player {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.page-teams .team-directory-player__photo {
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 50%;
  background: var(--surface-muted);
  object-fit: cover;
}

.page-teams .team-directory-player__photo--fallback {
  display: grid;
  place-items: center;
  color: var(--text-soft);
  font-size: .48rem;
  font-weight: 780;
}

.page-teams .team-directory-player > small,
.page-teams .teams-grid--list .team-directory-card__section-label {
  display: none;
}

.page-teams .team-directory-card__form-items {
  gap: 4px;
}

.page-teams .team-directory-card__form-items > b {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 5px;
  font-size: .52rem;
  font-weight: 840;
  line-height: 1;
}

.page-teams .team-directory-card__form-items > b.is-win {
  background: #e1f7ea;
  color: #147a50;
}

.page-teams .team-directory-card__form-items > b.is-loss {
  background: #fee9e8;
  color: #b84540;
}

.page-teams .team-directory-card__form-items > b.is-draw {
  background: var(--surface-muted);
  color: var(--text-soft);
}

.page-teams .team-directory-card__form-items > small,
.page-teams .team-directory-card__roster-items > small {
  color: var(--text-soft);
  font-size: .58rem;
  font-weight: 620;
}

.page-teams .team-directory-card__footer {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.page-teams .team-directory-card__next {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label time" "opponent opponent";
  gap: 4px 8px;
}

.page-teams .team-directory-card__next-label {
  grid-area: label;
  color: var(--text-soft);
  font-size: .5rem;
  font-weight: 720;
}

.page-teams .team-directory-card__next time {
  grid-area: time;
  color: var(--text-soft);
  font-size: .51rem;
  font-weight: 650;
  white-space: nowrap;
}

.page-teams .team-directory-card__next-opponent {
  display: flex;
  min-width: 0;
  grid-area: opponent;
  align-items: center;
  gap: 7px;
}

.page-teams .team-directory-card__next-opponent strong {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 4px;
  overflow: hidden;
  color: var(--text);
  font-size: .63rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-teams .team-directory-card__next-opponent strong small {
  color: var(--text-soft);
  font-size: .48rem;
  font-weight: 600;
}

.page-teams .team-directory-card__next-logo {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  object-fit: contain;
}

.page-teams .team-directory-card__next--empty {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-teams .team-directory-card__next--empty small {
  color: var(--text-soft);
  font-size: .5rem;
}

.page-teams .team-directory-card__next--empty strong {
  color: var(--text-soft);
  font-size: .61rem;
  font-weight: 650;
}

.page-teams .teams-grid--list .team-directory-card__arrow {
  justify-self: end;
}

/* The tile view keeps the same comparison data, but gives the roster room to breathe. */
.page-teams .teams-grid--grid {
  gap: 12px;
}

.page-teams .teams-grid--grid .team-directory-card {
  position: relative;
  display: grid;
  min-height: 244px;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  grid-template-areas:
    "position identity vrs"
    ". region vrs"
    "roster roster roster"
    "form footer footer";
  align-items: center;
  gap: 6px 10px;
  padding: 14px;
  overflow: visible;
}

.page-teams .teams-grid--grid .team-directory-card:hover {
  transform: translateY(-1px);
}

.page-teams .teams-grid--grid .team-directory-card__position { grid-area: position; }
.page-teams .teams-grid--grid .team-directory-card__identity { grid-area: identity; }
.page-teams .teams-grid--grid .team-directory-card__region { grid-area: region; }
.page-teams .teams-grid--grid .team-directory-card__vrs { grid-area: vrs; align-self: start; justify-content: flex-end; padding-top: 5px; }
.page-teams .teams-grid--grid .team-directory-card__roster { grid-area: roster; }
.page-teams .teams-grid--grid .team-directory-card__form { grid-area: form; }
.page-teams .teams-grid--grid .team-directory-card__footer { grid-area: footer; padding-left: 12px; border-left: 1px solid var(--line); }

.page-teams .teams-grid--grid .team-directory-card__logo {
  width: 48px;
  height: 48px;
}

.page-teams .teams-grid--grid .team-directory-card__identity-copy strong {
  font-size: .86rem;
}

.page-teams .teams-grid--grid .team-directory-card__region {
  padding-left: 58px;
}

.page-teams .teams-grid--grid .team-directory-card__region b {
  font-size: .88rem;
}

.page-teams .teams-grid--grid .team-directory-card__section-label {
  display: block;
  margin-bottom: 7px;
  color: var(--text-soft);
  font-size: .5rem;
  font-weight: 720;
}

.page-teams .teams-grid--grid .team-directory-card__roster {
  align-self: end;
  padding: 11px 0;
  border-top: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
}

.page-teams .teams-grid--grid .team-directory-card__roster-items {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.page-teams .teams-grid--grid .team-directory-player__photo {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
}

.page-teams .teams-grid--grid .team-directory-player > small {
  display: block;
  width: 100%;
  overflow: hidden;
  color: var(--text-soft);
  font-size: .47rem;
  font-weight: 630;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-teams .teams-grid--grid .team-directory-card__form {
  align-self: start;
}

.page-teams .teams-grid--grid .team-directory-card__form-items > b {
  width: 19px;
  height: 19px;
}

.page-teams .teams-grid--grid .team-directory-card__arrow {
  position: absolute;
  right: 11px;
  bottom: 10px;
}

@media (min-width: 1280px) {
  .page-teams .page-grid--teams-table {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
  }
}

@media (max-width: 1180px) and (min-width: 861px) {
  .page-teams .teams-list-header,
.page-teams .teams-grid--list .team-directory-card {
    grid-template-columns: 38px minmax(170px, 1fr) 68px 76px minmax(170px, .9fr) 106px minmax(170px, 1fr) 14px;
    gap: 9px;
  }
}

@media (max-width: 860px) {
  .page-teams .teams-list-header {
    display: none;
  }

  .page-teams .teams-directory--list {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .page-teams .teams-grid--list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .page-teams .teams-grid--list .team-directory-card,
.page-teams .teams-grid--grid .team-directory-card {
    position: relative;
    display: grid;
    min-height: 234px;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    grid-template-areas:
      "position identity vrs"
      ". region vrs"
      "roster roster roster"
      "form footer footer";
    align-items: center;
    gap: 6px 9px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius-card) - 3px);
    background: var(--surface-strong);
  }

  .page-teams .teams-grid--list .team-directory-card + .team-directory-card {
    border-top: 1px solid var(--line);
  }

  .page-teams .teams-grid--list .team-directory-card__position,
.page-teams .teams-grid--grid .team-directory-card__position { grid-area: position; }
  .page-teams .teams-grid--list .team-directory-card__identity,
.page-teams .teams-grid--grid .team-directory-card__identity { grid-area: identity; }
  .page-teams .teams-grid--list .team-directory-card__region,
.page-teams .teams-grid--grid .team-directory-card__region { grid-area: region; padding-left: 58px; }
  .page-teams .teams-grid--list .team-directory-card__vrs,
.page-teams .teams-grid--grid .team-directory-card__vrs { grid-area: vrs; align-self: start; justify-content: flex-end; padding-top: 5px; }
  .page-teams .teams-grid--list .team-directory-card__roster,
.page-teams .teams-grid--grid .team-directory-card__roster { grid-area: roster; min-height: 0; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .page-teams .teams-grid--list .team-directory-card__form,
.page-teams .teams-grid--grid .team-directory-card__form { grid-area: form; }
  .page-teams .teams-grid--list .team-directory-card__footer,
.page-teams .teams-grid--grid .team-directory-card__footer { grid-area: footer; width: auto; padding: 0 0 0 10px; border: 0; border-left: 1px solid var(--line); }

  .page-teams .teams-grid--list .team-directory-card__section-label {
    display: block;
    margin-bottom: 7px;
    color: var(--text-soft);
    font-size: .5rem;
    font-weight: 720;
  }

  .page-teams .teams-grid--list .team-directory-card__roster-items {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .page-teams .teams-grid--list .team-directory-player__photo {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .page-teams .teams-grid--list .team-directory-player > small {
    display: block;
    width: 100%;
    overflow: hidden;
    color: var(--text-soft);
    font-size: .46rem;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-teams .teams-grid--list .team-directory-card__arrow {
    position: absolute;
    right: 10px;
    bottom: 9px;
  }
}

@media (max-width: 620px) {
  .page-teams .teams-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px auto;
    gap: 8px;
  }

  .page-teams .teams-search--directory {
    grid-column: 1 / -1;
    max-width: none;
  }

  .page-teams .teams-directory-sort {
    grid-column: 2;
    grid-row: 2;
  }

  .page-teams .teams-view {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
  }

  .page-teams .teams-grid--list,
.page-teams .teams-grid--grid {
    grid-template-columns: 1fr;
  }

  .page-teams .teams-grid--list .team-directory-card,
.page-teams .teams-grid--grid .team-directory-card {
    min-height: 232px;
  }
}

/* Entity directories, profiles and contextual search. */
.page-teams .teams-page {
  padding: 0 16px 16px;
}

.page-teams .teams-hero,
.page-players .players-hero {
  margin-inline: -16px;
  padding: 15px 16px;
}

.page-teams .teams-hero__breadcrumbs {
  margin: 0 0 10px;
}

.page-teams .teams-hero__title,
.page-teams .teams-hero__description {
  margin-left: 0;
}

.page-teams .teams-toolbar {
  gap: 8px;
  margin-top: 0;
  padding: 10px 0;
  border-width: 1px 0 0;
  border-radius: 0;
  background: transparent;
}

.teams-search {
  flex: 1 1 260px;
  width: auto;
  max-width: 340px;
}

.teams-search__input {
  min-width: 0;
  padding-right: 118px;
}

.teams-search__clear {
  right: 108px;
}

.teams-sort {
  position: absolute;
  top: 4px;
  right: 4px;
  bottom: 4px;
}

.teams-sort select {
  height: 100%;
  padding: 0 24px 0 9px;
  border: 0;
  border-left: 1px solid var(--line);
  outline: 0;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: 0.66rem;
  font-weight: 700;
}

.teams-view {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-strong);
}

.teams-view__item {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border-radius: 6px;
  color: var(--text-soft);
  font-size: 0.64rem;
  font-weight: 720;
  text-decoration: none;
}

.teams-view__item.is-active {
  background: var(--surface-muted);
  color: var(--text);
}

.teams-view__glyph {
  display: grid;
  width: 12px;
  height: 12px;
  background: currentColor;
  opacity: 0.78;
}

.teams-view__glyph--grid {
  mask: linear-gradient(#000 0 0) 0 0 / 5px 5px, linear-gradient(#000 0 0) 100% 0 / 5px 5px, linear-gradient(#000 0 0) 0 100% / 5px 5px, linear-gradient(#000 0 0) 100% 100% / 5px 5px;
  mask-repeat: no-repeat;
}

.teams-view__glyph--list {
  mask: linear-gradient(#000 0 0) 0 1px / 100% 2px, linear-gradient(#000 0 0) 0 5px / 100% 2px, linear-gradient(#000 0 0) 0 9px / 100% 2px;
  mask-repeat: no-repeat;
}

.teams-grid--list {
  grid-template-columns: 1fr;
}

.teams-grid--list .team-directory-card {
  display: grid;
  min-height: 92px;
  grid-template-columns: minmax(220px, 0.9fr) minmax(150px, 1fr) minmax(170px, 0.8fr);
  align-items: center;
  gap: 18px;
}

.teams-grid--list .team-directory-card__roster {
  min-height: 0;
  margin: 0;
}

.teams-grid--list .team-directory-card__footer {
  margin: 0;
  padding: 0 0 0 16px;
  border-top: 0;
  border-left: 1px solid var(--line);
}

.team-player-card {
  color: inherit;
  text-decoration: none;
}

.team-player-card:hover {
  background: color-mix(in srgb, var(--surface-muted) 80%, var(--accent-soft));
}

.players-page,
.player-profile,
.tournament-profile {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-strong);
}

.players-page {
  padding: 0 16px 16px;
}

.entity-directory-search {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 0 12px;
}

.entity-directory-search__icon {
  position: absolute;
  left: 13px;
  width: 17px;
  color: var(--text-soft);
}

.entity-directory-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: var(--surface-muted);
  color: var(--text);
  font: inherit;
  font-size: 0.76rem;
}

.entity-directory-search input:focus {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  background: var(--surface-strong);
}

.entity-directory-search > a {
  position: absolute;
  right: 10px;
  color: var(--text-soft);
  text-decoration: none;
}

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

.player-directory-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 50px minmax(0, 1fr) auto 12px;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
}

.player-directory-card:hover {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 28%, var(--surface-strong));
}

.player-directory-card__photo,
.player-profile__photo {
  box-sizing: border-box;
  border-radius: 50%;
  object-fit: cover;
}

.player-directory-card__photo {
  width: 50px;
  height: 50px;
}

.player-directory-card__photo--fallback,
.player-profile__photo--fallback {
  display: grid;
  place-items: center;
  background: var(--surface-muted);
  color: var(--text-soft);
  font-weight: 800;
}

.player-directory-card__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.player-directory-card__copy strong {
  color: var(--text);
  font-size: 0.79rem;
}

.player-directory-card__copy span,
.player-directory-card__copy small,
.player-directory-card__team {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 0.59rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-directory-card__team {
  display: flex;
  max-width: 105px;
  align-items: center;
  gap: 6px;
}

.player-directory-card__team-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.player-detail-stack,
.tournament-detail-stack {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}

.player-profile,
.tournament-profile {
  padding: 20px;
}

.player-profile__hero {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}

.player-profile__photo {
  width: 92px;
  height: 92px;
}

.player-profile__eyebrow,
.tournament-profile__status {
  color: var(--accent-strong);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.player-profile h1,
.tournament-profile h1 {
  margin: 5px 0 4px;
  color: var(--text);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.player-profile p,
.tournament-profile p,
.player-profile__meta {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.72rem;
}

.player-profile__meta {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.player-profile__team {
  display: flex;
  min-width: 170px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: var(--surface-muted);
  color: inherit;
  text-decoration: none;
}

.player-profile__team-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.player-profile__team > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.player-profile__team small,
.player-profile__team b {
  color: var(--text-soft);
  font-size: 0.57rem;
}

.player-profile__team strong { font-size: 0.76rem; }
.player-profile__source-note { margin-top: 16px !important; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.61rem !important; }

.tournament-profile__hero {
  display: grid;
  margin-top: 18px;
}

.tournament-profile__logo {
  display: grid;
  width: 86px;
  height: 76px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.tournament-profile__logo img { max-width: 68px; max-height: 52px; object-fit: contain; }
.tournament-profile__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--line); }
.tournament-participants__grid { display: grid; gap: 7px; }
.tournament-participants__grid > a { display: grid; min-width: 0; align-items: center; gap: 8px; border-radius: 9px; background: var(--surface-muted); color: inherit; text-decoration: none; }
.tournament-participants__logo { width: 34px; height: 34px; object-fit: contain; }
.tournament-participants__grid strong { overflow: hidden; font-size: 0.68rem; text-overflow: ellipsis; white-space: nowrap; }
.tournament-profile-matches > div { display: flex; flex-direction: column; }
.tournament-profile-match { display: grid; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); color: inherit; font-size: 0.68rem; text-decoration: none; }
.tournament-profile-match time,
.tournament-profile-match span { color: var(--text-soft); font-size: 0.61rem; }

.search { overflow: visible; }
.search-suggestions { position: absolute; top: calc(100% + 8px); right: 0; z-index: 80; box-sizing: border-box; width: min(440px, 86vw); max-height: min(620px, 72vh); padding: 7px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-strong); box-shadow: 0 18px 44px rgb(24 39 66 / 15%); }
.search-suggestions__group + .search-suggestions__group { margin-top: 5px; padding-top: 5px; border-top: 1px solid var(--line); }
.search-suggestions__heading { display: block; padding: 6px 8px 4px; color: var(--text-soft); font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.06em; }
.search-suggestions__item { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; color: inherit; text-decoration: none; }
.search-suggestions__item:hover,
.search-suggestions__item.is-active { background: var(--surface-muted); }
.search-suggestions__item img,
.search-suggestions__fallback { box-sizing: border-box; width: 34px; height: 34px; border-radius: 7px; object-fit: contain; }
.search-suggestions__fallback { display: grid; place-items: center; background: var(--surface-muted); color: var(--text-soft); font-size: 0.58rem; font-weight: 800; }
.search-suggestions__item > span:last-child { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.search-suggestions__item strong,
.search-suggestions__item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-suggestions__item strong { font-size: 0.7rem; }
.search-suggestions__item small { color: var(--text-soft); font-size: 0.58rem; }

.hero .search__input:focus {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
  background: var(--surface-strong);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 5%, transparent);
}

.rankings-date-filter label { display: flex; min-height: 36px; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-strong); color: var(--text-soft); font-size: 0.61rem; font-weight: 700; }
.rankings-date-filter select { max-width: 116px; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 0.64rem; font-weight: 700; }
.rankings-table__rank { display: inline-flex; align-items: center; gap: 5px; }
.rankings-table__delta { font-size: 0.53rem; font-weight: 800; }
.rankings-table__delta.is-up { color: #16875d; }
.rankings-table__delta.is-down { color: #bc4a43; }
.rankings-table__delta.is-flat { color: var(--text-soft); }
.rankings-table__player { color: inherit; text-decoration: none; }

@media (max-width: 1180px) {
  .teams-view__item > span:last-child { display: none; }
  .players-grid { grid-template-columns: 1fr; }
  .teams-grid--list .team-directory-card { grid-template-columns: minmax(190px, 0.9fr) minmax(130px, 1fr); }
  .teams-grid--list .team-directory-card__footer { grid-column: 1 / -1; padding: 8px 0 0; border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 860px) {
  .page-teams .teams-page,
.players-page { padding: 0 12px 12px; }
  .page-teams .teams-hero,
.page-players .players-hero { margin-inline: -12px; padding-inline: 12px; }
  .page-teams .teams-toolbar { flex-direction: row; flex-wrap: wrap; }
  .teams-filter { flex: 1 1 auto; }
  .teams-search { order: 3; max-width: none; flex-basis: 100%; }
  .teams-grid--list .team-directory-card { display: flex; min-height: 150px; }
  .teams-grid--list .team-directory-card__roster { min-height: 34px; margin-top: 12px; }
  .teams-grid--list .team-directory-card__footer { width: 100%; margin-top: auto; }
  .player-profile__hero { grid-template-columns: 72px minmax(0, 1fr); }
  .player-profile__photo { width: 72px; height: 72px; }
  .player-profile__team { grid-column: 1 / -1; }
  .tournament-profile__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tournament-participants__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-suggestions { position: fixed; top: var(--header-height, 72px); right: 12px; left: 12px; width: auto; }
}

@media (max-width: 520px) {
  .player-directory-card { grid-template-columns: 46px minmax(0, 1fr) 10px; }
  .player-directory-card__team { display: none; }


  .tournament-profile-match > span { display: none; }
}

/* Entity navigation and profile polish. */
.directory-sort,
.entity-option-filter {
  position: relative;
  flex: 0 0 auto;
}

.directory-sort__summary,
.entity-option-filter__summary {
  box-sizing: border-box;
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-strong);
  color: var(--text);
  cursor: pointer;
  font: 700 0.64rem/1 var(--font-sans);
  list-style: none;
  white-space: nowrap;
}

.directory-sort__summary::-webkit-details-marker,
.entity-option-filter__summary::-webkit-details-marker {
  display: none;
}

.directory-sort__summary:hover,
.entity-option-filter__summary:hover {
  border-color: var(--line-strong);
  background: var(--surface-muted);
}

.directory-sort__icon,
.directory-sort__chevron,
.entity-option-filter__chevron {
  display: grid;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  place-items: center;
  color: var(--text-soft);
}

.directory-sort__icon svg,
.directory-sort__chevron svg,
.entity-option-filter__chevron svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.directory-sort__chevron,
.entity-option-filter__chevron {
  margin-left: 2px;
  transition: transform .16s ease;
}

.directory-sort[open] .directory-sort__chevron,
.entity-option-filter[open] .entity-option-filter__chevron {
  transform: rotate(180deg);
}

.directory-sort__menu,
.entity-option-filter__menu {
  position: absolute;
  z-index: 24;
  top: calc(100% + 6px);
  right: 0;
  box-sizing: border-box;
  width: 250px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-strong);
  box-shadow: 0 14px 36px rgb(25 39 67 / 14%);
}

.directory-sort__option,
.entity-option-filter__option {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 9px;
  border-radius: 7px;
  color: inherit;
  text-decoration: none;
}

.directory-sort__option:hover,
.entity-option-filter__option:hover,
.directory-sort__option.is-active,
.entity-option-filter__option.is-active {
  background: var(--surface-muted);
}

.directory-sort__option > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.directory-sort__option strong {
  color: var(--text);
  font-size: .66rem;
}

.directory-sort__option small,
.entity-option-filter__option > small {
  color: var(--text-soft);
  font-size: .56rem;
  font-weight: 620;
}

.directory-sort__option > b {
  color: var(--accent-strong);
  font-size: .72rem;
}

.players-selects {
  justify-content: flex-end;
}

.players-country-filter {
  min-width: 180px;
}

.entity-option-filter__flag {
  font-size: .88rem;
}

.entity-option-filter__label {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entity-option-filter__menu {
  width: min(310px, calc(100vw - 30px));
}

.entity-option-filter__search {
  position: relative;
  display: flex;
  height: 38px;
  align-items: center;
  margin-bottom: 5px;
}

.entity-option-filter__search input {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 0 10px 0 33px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  background: var(--surface-muted);
  color: var(--text);
  font: 650 .64rem/1 var(--font-sans);
}

.entity-option-filter__search input:focus {
  border-color: color-mix(in srgb, var(--accent-strong) 34%, var(--line));
}

.entity-option-filter__search-icon {
  position: absolute;
  z-index: 1;
  left: 10px;
  width: 14px;
  color: var(--text-soft);
}

.entity-option-filter__options {
  max-height: 290px;
  overflow-y: auto;
}

.entity-option-filter__option[hidden],
.entity-option-filter__empty[hidden] {
  display: none;
}

.entity-option-filter__option-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.entity-option-filter__option-main > b {
  width: 22px;
  flex: 0 0 22px;
  font-size: 1rem;
  text-align: center;
}

.entity-option-filter__option-main > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  color: var(--text);
  font-size: .66rem;
  font-weight: 700;
}

.entity-option-filter__option-main small {
  color: var(--text-soft);
  font-size: .53rem;
}

.entity-option-filter__empty {
  padding: 18px 8px;
  color: var(--text-soft);
  font-size: .62rem;
  text-align: center;
}

.matches-team-filter__icon,
.matches-team-filter__logo {
  overflow: hidden;
  border-radius: 50%;
}

.matches-team-filter__logo,
.matches-team-filter__option-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.matches-team-filter__menu {
  width: min(320px, calc(100vw - 24px));
}

.matches-team-filter__option-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.matches-team-filter__option-main > span {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.matches-team-filter__option-all {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--text-soft);
  font-size: .48rem;
}

.team-matches__header > span,
.tournament-participants__header > span,
.tournament-profile-matches__header > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.team-matches__header small,
.tournament-participants__header small,
.tournament-profile-matches__header small {
  color: var(--text-soft);
  font-size: .57rem;
  font-weight: 580;
}

.team-match-row {
  cursor: pointer;
  text-decoration: none;
}

.team-match-row__date {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-match-row__date > strong {
  color: var(--text-soft);
  font-size: .59rem;
  font-variant-numeric: tabular-nums;
}

.team-match-row__outcome {
  width: fit-content;
  color: var(--text-soft);
  font-size: .51rem;
  font-weight: 800;
}

.team-match-row__outcome.is-win { color: #137a52; }
.team-match-row__outcome.is-loss { color: #b7443e; }

.team-match-row__team,
.team-match-row__competition {
  color: inherit;
  text-decoration: none;
}

.team-match-row__team:hover strong,
.team-match-row__competition:hover strong {
  color: var(--accent-strong);
}

.team-match-row--featured {
  min-height: 82px;
  margin-bottom: 5px;
  padding-inline: 10px;
  border-color: color-mix(in srgb, var(--accent-strong) 16%, var(--line));
  border-radius: 9px;
  background: color-mix(in srgb, var(--accent-soft) 22%, var(--surface-strong));
}

.team-match-row--featured .team-match-row__team {
  grid-template-columns: 32px minmax(0, 1fr);
}

.team-match-row--featured .team-match-row__logo {
  width: 32px;
  height: 32px;
}

.tournament-profile {
  padding: 18px;
}

.tournament-profile__hero {
  grid-template-columns: 88px minmax(0, 1fr) minmax(210px, 260px);
  gap: 18px;
  align-items: center;
}

.tournament-profile__identity {
  min-width: 0;
}

.tournament-profile__identity h1 {
  max-width: 560px;
}

.tournament-profile__matches-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: var(--accent-strong);
  font-size: .65rem;
  font-weight: 760;
  text-decoration: none;
}

.tournament-profile__matches-link:hover span {
  transform: translateX(2px);
}

.tournament-profile__spotlight {
  box-sizing: border-box;
  min-width: 0;
  min-height: 104px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-muted);
  color: inherit;
  text-decoration: none;
}

.tournament-profile__spotlight > small {
  display: block;
  margin-bottom: 9px;
  color: var(--text-soft);
  font-size: .54rem;
  font-weight: 720;
}

.tournament-profile__spotlight--winner > span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tournament-profile__spotlight--winner > b {
  float: right;
  margin-top: -27px;
  color: var(--text-soft);
}

.tournament-profile__spotlight-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.tournament-profile__spotlight-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}

.tournament-profile__spotlight-teams > span {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 4px;
}

.tournament-profile__spotlight-teams strong {
  width: 100%;
  overflow: hidden;
  font-size: .57rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament-profile__spotlight-teams > b {
  color: var(--text);
  font-size: .68rem;
  font-variant-numeric: tabular-nums;
}

.tournament-profile__spotlight time {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  font-size: .52rem;
  text-align: center;
}

.tournament-participants__header > b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--text-soft);
  font-size: .6rem;
}

.tournament-participants__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tournament-participants__grid > a {
  min-height: 54px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  padding: 8px 10px;
}

.tournament-participants__grid > a:hover {
  background: color-mix(in srgb, var(--surface-muted) 76%, var(--accent-soft));
}

.tournament-participants__grid > a > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.tournament-participants__grid small {
  color: var(--text-soft);
  font-size: .54rem;
  font-weight: 620;
}

.tournament-profile-matches__groups {
  display: grid;
  gap: 14px;
}

.tournament-profile-matches__group > header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
}

.tournament-profile-matches__group h3 {
  margin: 0;
  color: var(--text);
  font-size: .67rem;
}

.tournament-profile-matches__group > header span {
  color: var(--text-soft);
  font-size: .55rem;
}

.tournament-profile-match {
  min-height: 54px;
  grid-template-columns: 76px minmax(180px, 1fr) 44px 38px 12px;
  padding: 6px 8px;
  cursor: pointer;
}

.tournament-profile-match:hover {
  border-radius: 8px;
  background: var(--surface-muted);
}

.tournament-profile-match__teams {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.tournament-profile-match__teams a {
  display: grid;
  min-width: 0;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  color: inherit;
  text-decoration: none;
}

.tournament-profile-match__teams strong {
  overflow: hidden;
  color: var(--text);
  font-size: .64rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament-profile-match__logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.tournament-profile-match__score {
  display: grid;
  height: 30px;
  place-items: center;
  border-radius: 7px;
  background: var(--surface-muted);
  font-size: .68rem;
  font-variant-numeric: tabular-nums;
}

.tournament-profile-match__format,
.tournament-profile-match__arrow {
  color: var(--text-soft);
  font-size: .57rem;
}

@media (max-width: 860px) {
  .directory-sort,
.entity-option-filter {
    flex: 1 1 0;
  }

  .directory-sort__summary,
.entity-option-filter__summary {
    justify-content: center;
  }

  .directory-sort__menu,
.entity-option-filter__menu {
    right: 0;
  }

  .tournament-profile__hero {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .tournament-profile__spotlight {
    grid-column: 1 / -1;
  }

  .team-match-row {
    grid-template-columns: 64px minmax(0, 1fr) 44px 12px;
  }

  .tournament-profile-match {
    grid-template-columns: 66px minmax(0, 1fr) 40px 12px;
  }

  .tournament-profile-match__format {
    display: none;
  }
}

@media (max-width: 520px) {
  .players-selects {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .players-country-filter,
.players-directory-sort {
    min-width: 0;
  }

  .directory-sort__summary,
.entity-option-filter__summary {
    padding-inline: 8px;
  }

  .directory-sort__icon {
    display: none;
  }

  .directory-sort__menu {
    width: min(260px, calc(100vw - 24px));
  }

  .players-country-filter .entity-option-filter__menu {
    left: 0;
    right: auto;
  }

  .page-matches .matches-team-filter .matches-tournament-filter__summary {
    width: 42px;
    min-width: 42px;
    padding: 0;
  }

  .page-matches .matches-team-filter .matches-tournament-filter__label,
.page-matches .matches-team-filter .matches-tournament-filter__chevron {
    display: none;
  }

  .page-matches .matches-team-filter__menu {
    left: 0;
    right: auto;
  }

  .tournament-profile__hero {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 11px;
  }

  .tournament-profile__logo {
    width: 58px;
    height: 58px;
  }

  .tournament-profile__identity h1 {
    font-size: 1.25rem;
  }

  .tournament-profile__facts,
.tournament-participants__grid {
    grid-template-columns: 1fr 1fr;
  }

  .team-match-row,
.team-match-row--featured {
    grid-template-columns: 58px minmax(0, 1fr) 40px;
    padding-inline: 4px;
  }

  .team-match-row__arrow,
.team-match-row__competition {
    display: none;
  }

  .tournament-profile-match {
    grid-template-columns: 58px minmax(0, 1fr) 38px;
    gap: 7px;
    padding-inline: 2px;
  }

  .tournament-profile-match__arrow {
    display: none;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0f15;
  --bg-secondary: #111722;
  --surface: rgba(17, 23, 34, 0.94);
  --surface-strong: #131a26;
  --surface-muted: rgba(25, 33, 47, 0.96);
  --surface-soft: var(--surface-muted);
  --text: #f3f6fb;
  --text-main: var(--text);
  --text-muted: #9ba8bb;
  --text-soft: var(--text-muted);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --border: var(--line);
  --border-soft: rgba(255, 255, 255, 0.06);
  --border-strong: var(--line-strong);
  --accent: #7aa7e8;
  --accent-strong: #9abcf0;
  --accent-soft: rgba(122, 167, 232, 0.16);
  --surface-hover: color-mix(in srgb, var(--accent) 9%, var(--surface-strong));
  --surface-selected: color-mix(in srgb, var(--accent) 13%, var(--surface-strong));
  --surface-overlay: rgba(11, 15, 21, 0.76);
  --system-state-bg: color-mix(in srgb, var(--surface-strong) 88%, var(--surface-muted));
  --system-state-border: color-mix(in srgb, var(--line) 86%, transparent);
  --system-state-accent-bg: color-mix(in srgb, var(--accent) 13%, transparent);
  --system-state-accent-border: color-mix(in srgb, var(--accent) 24%, var(--line));
  --system-state-error: #fdba74;
  --system-state-error-bg: rgba(251, 146, 60, 0.14);
  --system-state-success: #8ccf4d;
  --system-state-success-bg: rgba(140, 207, 77, 0.14);
  --green: #8ccf4d;
  --emoji-outline-color: rgba(220, 228, 240, 0.32);
  --emoji-outline-filter:
    drop-shadow(0.14px 0 0 var(--emoji-outline-color))
    drop-shadow(-0.14px 0 0 var(--emoji-outline-color))
    drop-shadow(0 0.14px 0 var(--emoji-outline-color))
    drop-shadow(0 -0.14px 0 var(--emoji-outline-color));
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.22);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-card-hover: 0 4px 14px rgba(0, 0, 0, 0.24);
  --shadow-popover: 0 16px 36px rgba(0, 0, 0, 0.36);
  --elevation-1: var(--shadow-soft);
  --elevation-2: var(--shadow-card-hover);
  --elevation-popover: var(--shadow-popover);
}

:root[data-theme="system"] {
  color-scheme: light dark;
}

.page-home {
  --container: 1018px;
}

.page-post {
  --container: 1018px;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --bg: #0b0f15;
    --bg-secondary: #111722;
    --surface: rgba(17, 23, 34, 0.94);
    --surface-strong: #131a26;
    --surface-muted: rgba(25, 33, 47, 0.96);
    --surface-soft: var(--surface-muted);
    --text: #f3f6fb;
    --text-main: var(--text);
    --text-muted: #9ba8bb;
    --text-soft: var(--text-muted);
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --border: var(--line);
    --border-soft: rgba(255, 255, 255, 0.06);
    --border-strong: var(--line-strong);
    --accent: #7aa7e8;
    --accent-strong: #9abcf0;
    --accent-soft: rgba(122, 167, 232, 0.16);
    --surface-hover: color-mix(in srgb, var(--accent) 9%, var(--surface-strong));
    --surface-selected: color-mix(in srgb, var(--accent) 13%, var(--surface-strong));
    --surface-overlay: rgba(11, 15, 21, 0.76);
    --system-state-bg: color-mix(in srgb, var(--surface-strong) 88%, var(--surface-muted));
    --system-state-border: color-mix(in srgb, var(--line) 86%, transparent);
    --system-state-accent-bg: color-mix(in srgb, var(--accent) 13%, transparent);
    --system-state-accent-border: color-mix(in srgb, var(--accent) 24%, var(--line));
    --system-state-error: #fdba74;
    --system-state-error-bg: rgba(251, 146, 60, 0.14);
    --system-state-success: #8ccf4d;
    --system-state-success-bg: rgba(140, 207, 77, 0.14);
    --green: #8ccf4d;
    --emoji-outline-color: rgba(220, 228, 240, 0.32);
    --emoji-outline-filter:
      drop-shadow(0.14px 0 0 var(--emoji-outline-color))
      drop-shadow(-0.14px 0 0 var(--emoji-outline-color))
      drop-shadow(0 0.14px 0 var(--emoji-outline-color))
      drop-shadow(0 -0.14px 0 var(--emoji-outline-color));
    --shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.22);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-card-hover: 0 4px 14px rgba(0, 0, 0, 0.24);
    --shadow-popover: 0 16px 36px rgba(0, 0, 0, 0.36);
    --elevation-1: var(--shadow-soft);
    --elevation-2: var(--shadow-card-hover);
    --elevation-popover: var(--shadow-popover);
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

@keyframes cs3-popover-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cs3-popover-centered-in {
  from {
    opacity: 0;
    transform: translate(-50%, -4px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes cs3-overlay-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes cs3-dialog-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.992);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cs3-press-pop {
  from {
    transform: scale(0.992);
  }

  to {
    transform: scale(1);
  }
}

html {
  font-size: 12.6px;
  font-family: var(--font-sans);
  background: var(--bg);
}

/* Mobile scale: +2% over the shared rem base. Media queries stay in px and
   are unaffected by zoom; the tablet-gap range below keeps its own
   deliberate zoom: 1 for the fixed-header mode. */
@media (max-width: 860px) {
  html {
    zoom: 1.02;
  }
}

@media (min-width: 861px) {
  html {
    zoom: 1.06;
  }
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  background: var(--bg-secondary);
}

body::before {
  content: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.app-shell {
  width: min(calc(100% - 20px), var(--container));
  margin: 8px auto 0;
  padding-bottom: 24px;
  min-width: 0;
}

.hero {
  position: relative;
  z-index: 80;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero__identity,
.hero__controls,
.hero__actions {
  display: flex;
  align-items: center;
}

.hero__identity {
  min-width: 0;
}

.hero__avatar {
  box-shadow: var(--shadow-soft);
}

.hero__copy {
  min-width: 0;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin-bottom: 2px;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__eyebrow > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero__subscribers-inline {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: color-mix(in srgb, var(--accent) 74%, var(--text-soft));
  font-weight: 820;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hero__subscribers-inline::before {
  content: "";
  width: 3px;
  height: 3px;
  margin-right: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.56;
}

.hero__title {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero__title-separator {
  margin-inline: 0.26em;
}

.hero__meta {
  min-width: 0;
  color: var(--text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-nav {
  flex: 0 0 auto;
  gap: 2px;
  overflow-x: auto;
}

.hero-nav::-webkit-scrollbar {
  display: none;
}

.hero-nav__item,
.hero-menu__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: color-mix(in srgb, var(--text-soft) 88%, var(--text));
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
  transition:
    background var(--transition-base),
    color var(--transition-fast),
    box-shadow var(--transition-base);
}


.hero-nav__item:hover,
.hero-nav__item:focus-visible,
.hero-menu__item:hover,
.hero-menu__item:focus-visible {
  background: var(--surface-hover);
  color: color-mix(in srgb, var(--accent) 72%, var(--text));
}

.hero-nav__item[aria-current="page"],
.hero-menu__item[aria-current="page"] {
  background: var(--surface-selected);
  color: var(--text);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 14%, var(--line)),
    var(--elevation-1);
}

.hero__controls {
  justify-content: flex-end;
}


.search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.search__input {
  width: 100%;
  padding: 0 14px 0 40px;
  border: 1px solid var(--line);
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 1;
  width: 16px;
  height: 16px;
  color: color-mix(in srgb, var(--text-soft) 78%, var(--text));
  pointer-events: none;
  transform: translateY(-50%);
}

.search__icon svg {
  width: 16px;
  height: 16px;
}

.search__input::placeholder {
  color: #7a8397;
  opacity: 1;
}

.search__input:hover {
  background: #edf2f9;
}

.search__input:focus {
  background: #f8fbff;
  transform: translateY(-1px);
}

.hero__actions {
  position: relative;
  gap: 8px;
}

.theme-toggle,
.hero__search-toggle,
.hero__contact-toggle,
.hero-menu__toggle,
.hero__origin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  padding: 0;
  cursor: pointer;
}

.hero__contact {
  position: relative;
  display: inline-flex;
}

.hero-menu {
  position: relative;
  display: none;
}

.hero-menu__toggle {
  width: 36px;
  height: 36px;
  padding: 0;
  color: color-mix(in srgb, var(--text-soft) 72%, var(--text));
  cursor: pointer;
  list-style: none;
}

.hero-menu__toggle::-webkit-details-marker {
  display: none;
}

.hero-menu__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hero-menu__icon {
  position: relative;
  display: block;
  width: 18px;
  height: 14px;
}

.hero-menu__icon::before,
.hero-menu__icon::after,
.hero-menu__icon {
  border-top: 2px solid currentColor;
}

.hero-menu__icon::before,
.hero-menu__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
}

.hero-menu__icon::before {
  top: 4px;
}

.hero-menu__icon::after {
  top: 10px;
}

.hero-menu__toggle:hover,
.hero-menu__toggle:focus-visible,
.hero-menu[open] .hero-menu__toggle {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
  background: color-mix(in srgb, var(--accent) 5%, var(--surface-strong));
  color: color-mix(in srgb, var(--accent) 76%, var(--text));
}

.hero-menu__panel {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 130;
  display: grid;
  gap: 3px;
  width: 168px;
  padding: 7px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: 14px;
  background: var(--surface-strong);
  box-shadow:
    0 18px 44px rgba(20, 35, 61, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.hero-menu__item {
  min-height: 34px;
  padding: 0 7px;
  border-radius: 10px;
  font-size: 0.86rem;
}

.hero__contact-toggle {
  width: 36px;
  height: 36px;
  padding: 0;
  cursor: pointer;
  color: color-mix(in srgb, var(--text-soft) 72%, var(--text));
}

.hero__contact-toggle:hover {
  border-color: color-mix(in srgb, var(--accent) 20%, var(--line));
  background: color-mix(in srgb, var(--accent) 3%, var(--surface-strong));
  color: color-mix(in srgb, var(--accent) 70%, var(--text));
}

.hero__contact-toggle.is-active {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  background: color-mix(in srgb, var(--accent) 5%, var(--surface-strong));
  color: var(--accent);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent),
    var(--shadow-soft);
}

.hero__search-toggle {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  cursor: pointer;
}

.theme-toggle__icon {
  position: relative;
  display: block;
  color: color-mix(in srgb, var(--text-soft) 84%, var(--text));
  font-size: 0;
  line-height: 1;
}


.hero-contact-popover {
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;

  width: fit-content;
  min-width: 0;
  max-width: min(360px, calc(100vw - 28px));

  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: 18px;
  background: var(--surface-strong);
  box-shadow:
    var(--elevation-popover),
    0 1px 0 rgba(255, 255, 255, 0.72) inset;
  transform-origin: top center;
  animation: cs3-popover-centered-in var(--transition-base) both;
  will-change: transform, opacity;
}

.hero-contact-popover__lead {
  width: max-content;
  max-width: min(320px, calc(100vw - 56px));
  color: color-mix(in srgb, var(--text-soft) 84%, var(--text));
  font-size: 0.84rem;
  font-weight: 760;
  line-height: 1.35;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.hero-contact-popover::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--surface-strong);
  transform: translate(-50%, 5px) rotate(45deg);
}

.hero-contact-popover[hidden] {
  display: none;
}

.theme-toggle__icon::before {
  content: "◐";
  position: absolute;
  place-items: center;
  color: currentColor;
  font-size: 17px;
}

:root[data-theme="light"] .theme-toggle__icon::before {
  content: "☼";
}

:root[data-theme="dark"] .theme-toggle__icon::before {
  content: "☾";
  font-size: 17px;
}

.hero-contact-popover__email {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  max-width: 100%;
  margin-top: 9px;
  color: color-mix(in srgb, var(--text-soft) 72%, var(--text));
  font-size: 0.95rem;
  font-weight: 780;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
}

.hero-contact-popover__email:hover {
  color: var(--accent);
}

.hero-contact-popover__email-icon,
.hero-contact-popover__email-icon svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: color-mix(in srgb, var(--text-soft) 82%, var(--text));
}

.hero-contact-popover__email:hover .hero-contact-popover__email-icon,
.hero-contact-popover__email:hover .hero-contact-popover__email-icon svg {
  color: var(--accent);
}

.hero-contact-popover__email span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero__search-toggle-icon,
.hero__search-toggle-icon svg,
.hero__origin-icon,
.hero__origin-icon svg {
  width: 18px;
  height: 18px;
}

.hero__origin {
  white-space: nowrap;
}

.main-shell {
  margin-top: 10px;
}

@media (max-width: 1040px) {
  .hero {
    gap: 10px;
  }

  .hero-nav {
    max-width: min(28vw, 254px);
  }

  .hero-nav__item {
    min-height: 28px;
    padding: 0 8px;
    font-size: 0.78rem;
  }

  .search {
    max-width: 320px;
    min-width: 190px;
  }
}

@media (max-width: 980px) {
  .hero-nav {
    display: none;
  }

  .hero-menu {
    display: inline-flex;
  }
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.page-grid--home {
  grid-template-columns: minmax(0, 720px) 286px;
  justify-content: center;
}

.page-grid--single {
  grid-template-columns: minmax(0, 720px);
}

.feed-section {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.feed-list {
  display: flex;
  flex-direction: column;
  min-width: 0;
}


.trends-page__period {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  white-space: nowrap;
  cursor: pointer;
}


.trends-page__period:focus-visible {
  outline: 3px solid var(--focus-ring-color);
  outline-offset: 2px;
}

.trends-page__empty {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--surface-muted);
  color: var(--text-soft);
  font-size: 0.9rem;
}


.trends-page {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.trends-page__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.trends-page__heading {
  min-width: 0;
}

.trends-page__breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 750;
}

.trends-page__breadcrumbs a {
  color: inherit;
}

.trends-page__breadcrumbs a:hover {
  color: var(--accent);
}


.trends-page__hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.trends-page__hero-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}
.trends-page__title-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.trends-page__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.trends-page__hero-icon {
  position: relative;
  display: inline-flex;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 11%, var(--surface));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 16%, transparent);
  margin-top: 1px;
}

.trends-page__hero-icon::before {
  content: "";
  width: 13px;
  height: 18px;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 0, 68% 40%, 100% 40%, 32% 100%, 46% 57%, 0 57%);
}

.trends-page__title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: -0.012em;
}

.trends-page__title-context {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 21px;
  padding: 0 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 17%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  color: color-mix(in srgb, var(--accent) 74%, var(--text-soft));
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  transform: translateY(-1.5px);
}

.trends-page__lead {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 550;
}

.trends-page__periods {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-muted) 82%, var(--surface));
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045);
}

.trends-page__period {
  min-width: 58px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 850;
  color: var(--text-soft);
}

.trends-page__period.is-active {
  background: var(--surface);
  color: var(--accent);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 34%, transparent),
    0 2px 9px color-mix(in srgb, var(--accent) 10%, transparent);
}

.trends-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trends-list__item {
  position: relative;
  display: grid;
  grid-template-columns: 42px 168px minmax(0, 1fr) minmax(230px, max-content);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.trends-list__item:not(.trends-list__item--leader) {
  grid-template-columns: 42px 168px minmax(0, 1fr);
  grid-template-areas:
    "rank thumb body"
    "rank thumb meta";
  align-items: center;
  row-gap: 8px;
}

.trends-list__item:not(.trends-list__item--leader) .trends-list__rank {
  grid-area: rank;
  align-self: center;
}

.trends-list__item:not(.trends-list__item--leader) .trends-list__thumb {
  grid-area: thumb;
  align-self: center;
}

.trends-list__item:not(.trends-list__item--leader) .trends-list__body {
  grid-area: body;
  align-self: end;
  min-width: 0;
}

.trends-list__item--leader {
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  padding: 0;
}

.trends-list__item:hover {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
  transform: translateY(-1px);
}

.trends-list__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-muted));
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 900;
}

.trends-list__item--leader .trends-list__rank {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 48px;
  height: 42px;
  border-radius: 13px 0 13px 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 12px 24px rgba(23, 117, 255, 0.22);
}

.trends-list__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, transparent), rgba(141, 204, 24, 0.12)),
    var(--surface-muted);
}

.trends-list__item--leader .trends-list__thumb {
  width: 100%;
  height: 100%;
  min-height: 236px;
  border-radius: 0;
}

.trends-list__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trends-list__thumb--empty {
  display: grid;
  place-items: center;
}

.trends-list__empty-label {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 900;
}

.trends-list__play {
  position: absolute;
  right: 8px;
  top: 8px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(8, 12, 18, 0.68);
}

.trends-list__play::before {
  content: "";
  margin-left: 2px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #fff;
}

.trends-list__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.trends-list__item--leader .trends-list__body {
  justify-content: flex-start;
  padding: 22px 24px 24px;
}

.trends-list__title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 850;
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.trends-list__item--leader .trends-list__title {
  font-size: 1.34rem;
  line-height: 1.16;
  -webkit-line-clamp: 3;
}

.trends-list__excerpt {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.trends-list__item--leader .trends-list__excerpt {
  font-size: 0.94rem;
  -webkit-line-clamp: 3;
}

.trends-list__meta,
.trends-list__meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.trends-list__meta {
  justify-content: space-between;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 750;
}

.trends-list__item:not(.trends-list__item--leader) .trends-list__meta {
  grid-area: meta;
  justify-self: end;
  align-self: start;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 22px;
  min-width: 0;
  white-space: nowrap;
  margin-top: 1px;
}

.trends-list__stats {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.trends-list__time {
  margin-left: auto;
}

.trends-list__item:not(.trends-list__item--leader) .trends-list__time {
  margin-left: 0;
}

.trends-list__item--leader .trends-list__meta {
  margin-top: auto;
}

.trends-list__item--leader .trends-list__stats {
  gap: 18px;
  font-size: 0.9rem;
}

.trends-list__meta-icon,
.trends-list__meta-icon svg {
  width: 14px;
  height: 14px;
}

.results-bar,
.sidebar-card,
.post-card,
.empty-state {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
}

.results-bar--summary {
  align-items: stretch;
}

.results-bar__intro {
  min-width: 0;
}

.results-bar__headline {
  font-size: 0.94rem;
  font-weight: 700;
}

.results-bar__subline,
.results-bar__meta {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.results-bar__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.results-bar__metrics {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.results-metric {
  min-width: 112px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-muted);
}

.results-metric__label {
  display: block;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.results-metric__value {
  display: block;
  margin-top: 4px;
  font-weight: 700;
}

.post-card {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 14px;
}

.post-card.is-menu-open {
  z-index: 50;
}

.post-card__header,
.post-card__footer,
.post-card__header-main,
.post-card__author,
.post-card__stats,
.post-card__reactions {
  display: flex;
  align-items: center;
}

.post-card__header,
.post-card__footer {
  justify-content: space-between;
  gap: 14px;
}


.post-card__header-main {
  gap: 10px;
  min-width: 0;
}

.post-card__author {
  gap: 10px;
  min-width: 0;
}

.post-card__author--detail {
  gap: 0;
  padding-right: 0;
}

.post-card__author--detail .post-card__channel {
  color: var(--text-soft);
}

.post-card__back-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.post-card__back-link:hover {
  color: var(--accent);
}

.post-card__header-side {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-left: auto;
}


.post-card__channel {
  letter-spacing: 0;
}


.post-card__title a:hover {
  color: var(--accent);
}


.post-card__content {
  overflow: hidden;
  contain: layout paint;
}

.post-card__content.is-resizing {
  will-change: height;
}

.post-card__content.is-collapsed {
  position: relative;
  overflow: hidden;
}

.post-card__content.is-collapsed::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
}

.post-card__content.is-expanded {
  max-height: none;
}

.post-card__content.is-expanded::after {
  display: none;
}

.expand-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.expand-button:disabled {
  opacity: 1;
  cursor: default;
}

.read-also {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.read-also__title {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.2;
}

.read-also__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.read-also__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.read-also__card:hover {
  border-color: color-mix(in srgb, var(--accent) 46%, var(--line));
  transform: translateY(-1px);
}

.read-also__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--accent-soft), rgba(141, 204, 24, 0.12)),
    var(--surface-muted);
}

.read-also__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.read-also__body {
  display: flex;
  min-width: 0;
  min-height: 94px;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px 12px;
}

.read-also__headline {
  display: -webkit-box;
  overflow: hidden;
  min-width: 0;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.read-also__meta,
.read-also__views {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
}

.read-also__meta {
  justify-content: space-between;
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.2;
}

.read-also__views {
  flex: 0 0 auto;
}

.read-also__views-icon,
.read-also__views-icon svg {
  width: 15px;
  height: 15px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.post-tags--header {
  margin-top: 0;
  justify-content: flex-end;
  max-width: 220px;
}

.post-tags--header .post-tag {
  min-height: 28px;
  padding: 0 9px;
  font-size: 0.8rem;
}

.post-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
}


.rich-text p:last-child {
  margin-bottom: 0;
}


.rich-text blockquote::after {
  content: "”";
  position: absolute;
  font-weight: 800;
  line-height: 1;
}

.rich-text p + blockquote {
  margin-top: -0.16rem;
}

.rich-text blockquote p {
  margin-bottom: 0.72rem;
}

.rich-text blockquote p:last-child {
  margin-bottom: 0;
}

.rich-text blockquote.quote-collapsible {
  cursor: pointer;
}

.quote-collapsible__body {
  position: relative;
  max-height: 60rem;
  overflow: hidden;
  transition: max-height 180ms cubic-bezier(0.2, 0, 0, 1);
}

.quote-collapsible:not(.is-expanded) .quote-collapsible__body {
  max-height: 6.4em;
}

.quote-collapsible:not(.is-expanded) .quote-collapsible__body::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2.8em;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent,
    color-mix(in srgb, var(--accent) 7%, var(--surface-muted)) 86%
  );
}

.quote-collapsible__toggle {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.quote-collapsible__toggle:hover {
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

.quote-collapsible--short {
  cursor: default;
}

.quote-collapsible--short .quote-collapsible__body::after {
  display: none;
}

.quote-collapsible__chevron {
  display: block;
  font-size: 1.35rem;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform 160ms ease;
}

.quote-collapsible.is-expanded .quote-collapsible__chevron {
  transform: translateY(1px) rotate(180deg);
}

.rich-text .spoiler {
  position: relative;
  display: inline;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  line-height: inherit;
  text-align: inherit;
  vertical-align: baseline;
}

.rich-text .spoiler:not(.is-revealed)::before {
  content: none;
}

.rich-text .spoiler__inner {
  position: relative;
  padding: 0.02em 0.24em 0.06em;
  border-radius: 4px;
  background-color: color-mix(in srgb, var(--text) 10%, var(--surface-strong));
  background:
    radial-gradient(circle at 18% 34%, color-mix(in srgb, var(--text) 56%, transparent) 0 1px, transparent 1.35px),
    radial-gradient(circle at 72% 58%, color-mix(in srgb, var(--text) 48%, transparent) 0 1px, transparent 1.45px),
    radial-gradient(circle at 48% 76%, color-mix(in srgb, var(--text) 34%, transparent) 0 0.85px, transparent 1.25px),
    repeating-linear-gradient(
      168deg,
      transparent 0 4px,
      color-mix(in srgb, var(--text) 18%, transparent) 4px 5px,
      transparent 5px 9px
    ),
    linear-gradient(
      color-mix(in srgb, var(--text) 10%, var(--surface-strong)),
      color-mix(in srgb, var(--text) 10%, var(--surface-strong))
    );
  background-size: 6px 6px, 9px 8px, 13px 11px, 18px 18px, 100% 100%;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 7%, transparent);
  line-height: 1.08;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  color: transparent;
  text-shadow: none;
  transition:
    background 150ms ease,
    box-shadow 150ms ease,
    color 150ms ease;
  user-select: none;
  animation: spoilerScratchFlicker 1.65s steps(4, end) infinite;
}

.rich-text .spoiler:not(.is-revealed) .spoiler__inner,
.rich-text .spoiler:not(.is-revealed) .spoiler__inner * {
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.rich-text .spoiler + .spoiler .spoiler__inner {
  margin-left: -0.18em;
  border-top-left-radius: 2px;
  border-bottom-left-radius: 2px;
}

.rich-text .spoiler:not(.is-revealed) .inline-emoji,
.rich-text .spoiler:not(.is-revealed) .inline-emoji img {
  visibility: hidden;
}

.rich-text .spoiler.is-revealed {
  background: transparent;
}

.rich-text .spoiler.is-revealed .spoiler__inner {
  background: transparent;
  box-shadow: none;
  color: inherit;
  -webkit-text-fill-color: currentColor;
  text-shadow: none;
  user-select: text;
  animation: spoilerReveal 180ms ease-out;
}

@keyframes spoilerScratchFlicker {
  0%,
100% {
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
    filter: contrast(1);
  }

  25% {
    background-position: 1px 0, -1px 1px, 0 -1px, 2px 0, 0 0;
    filter: contrast(1.08);
  }

  50% {
    background-position: -1px 1px, 1px -1px, 2px 0, -2px 1px, 0 0;
    filter: contrast(0.96);
  }

  75% {
    background-position: 0 -1px, 2px 1px, -1px 2px, 1px -1px, 0 0;
    filter: contrast(1.12);
  }
}

@keyframes spoilerReveal {
  from {
    opacity: 0.72;
    transform: translateY(0.03em);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.post-media {
  margin: 14px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-muted) 86%, transparent), color-mix(in srgb, var(--surface-strong) 70%, transparent));
}

.post-media__lightbox-trigger,
.post-media__frame {
  display: block;
  width: 100%;
  max-width: min(100%, var(--media-max-width, 100%));
  min-width: 0;
}

.post-media__lightbox-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.post-card--detail .post-media__lightbox-trigger,
.post-card--detail .post-media__frame--video {
  max-height: min(82vh, 1100px);
}

.post-media img,
.post-media video {
  display: block;
  width: 100%;
  max-width: 100%;
}

.post-card:not(.post-card--detail) .post-media {
  aspect-ratio: 16 / 9;
}

.post-card:not(.post-card--detail) .post-media__lightbox-trigger,
.post-card:not(.post-card--detail) .post-media__frame {
  width: 100%;
  height: 100%;
  max-width: 100%;
}

.post-card:not(.post-card--detail) .post-media img,
.post-card:not(.post-card--detail) .post-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.post-card:not(.post-card--detail) .post-media--image:not(.post-media--tall) img {
  margin: 0 auto;
}

.post-card:not(.post-card--detail) .post-media--tall {
  aspect-ratio: 4 / 5;
  margin-left: auto;
  margin-right: auto;
}

.post-card:not(.post-card--detail) .post-media--tall .post-media__lightbox-trigger {
  overflow: hidden;
}

.post-card:not(.post-card--detail) .post-media--tall img {
  object-fit: contain;
  object-position: center;
}

.post-card--detail .post-media img {
  max-width: 100%;
  max-height: min(82vh, 1100px);
  margin: 0 auto;
  object-fit: contain;
}

.post-media__frame--video {
  aspect-ratio: 16 / 9;
  background: #000;
}

.post-media__lightbox-trigger--video {
  position: relative;
  height: 100%;
  cursor: pointer;
}

.post-media__video-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent),
    #10131a;
}

.post-media__video {
  height: 100%;
  object-fit: contain;
}

.post-media-album {
  margin: 14px 0 0;
  display: grid;
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.post-media-album--photo-pair,
.post-media-album--preview-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-media-album--mixed {
  grid-template-columns: 1fr;
}

.post-media-album--carousel {
  display: block;
}

.post-media-album__viewport {
  overflow: hidden;
  width: 100%;
}

.post-media-album__track {
  display: grid;
  grid-auto-flow: column;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.post-media-album__track::-webkit-scrollbar {
  display: none;
}

.post-media-album__tile {
  position: relative;
  display: block;
  min-width: 0;
  aspect-ratio: 7 / 8;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #07090d;
  cursor: zoom-in;
  scroll-snap-align: start;
}

.post-media-album--mixed .post-media-album__tile {
  aspect-ratio: 16 / 9;
}

.post-media-album--preview-pair .post-media-album__tile {
  aspect-ratio: 1 / 1;
}

.post-media-album__tile--video {
  cursor: pointer;
}

.post-media-album__tile img,
.post-media-album__placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.post-media-album__tile img {
  object-fit: cover;
}

.post-media-album__placeholder {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent),
    #10131a;
}

.post-media-album__play,
.post-media__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(8, 12, 18, 0.72);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
  transition: transform 160ms ease;
}

.post-media-album__tile:hover .post-media-album__play,
.post-media__lightbox-trigger--video:hover .post-media__play {
  transform: translate(-50%, -50%) scale(1.05);
}

.post-media-album__play::before,
.post-media__play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #fff;
  transform: translate(-35%, -50%);
}

.post-media-album__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(8, 12, 18, 0.68);
  color: #fff;
  font-size: 0;
  font-weight: 800;
  line-height: 0;
  transform: translateY(-50%);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.post-media-album__nav:hover:not(:disabled) {
  background: rgba(8, 12, 18, 0.82);
  transform: translateY(-50%) scale(1.05);
}

.post-media-album__nav:disabled {
  opacity: 0.28;
  cursor: default;
}

.post-media-album__nav--prev {
  left: 10px;
}

.post-media-album__nav--next {
  right: 10px;
}

.post-media-album__nav-icon {
  display: block;
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.post-media-album__nav-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.post-media-album__thumbs {
  position: absolute;
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 5px;
  width: max-content;
  max-width: calc(100% - 24px);
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 12, 18, 0.5);
  backdrop-filter: blur(12px);
  scrollbar-width: none;
  transform: translateX(-50%);
}

.post-media-album__thumbs::-webkit-scrollbar {
  display: none;
}

.post-media-album__thumb {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 34px;
  padding: 0;
  border: 2px solid transparent;
  overflow: hidden;
  background: color-mix(in srgb, var(--text) 8%, transparent);
  opacity: 0.58;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    opacity 140ms ease,
    transform 140ms ease;
}

.post-media-album__thumb:hover,
.post-media-album__thumb:focus-visible {
  opacity: 0.86;
}

.post-media-album__thumb.is-active {
  border-color: var(--accent);
  opacity: 1;
  transform: translateY(-1px);
}

.post-media-album__thumb img,
.post-media-album__thumb-placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.post-media-album__thumb img {
  object-fit: cover;
}

.post-media-album__thumb-placeholder {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent),
    #10131a;
}

.post-media-album__thumb-play,
.lightbox__thumb-play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(8, 12, 18, 0.76);
  transform: translate(-50%, -50%);
}

.post-media-album__thumb-play::before,
.lightbox__thumb-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid #fff;
  transform: translate(-35%, -50%);
}

.link-preview {
  display: grid;
  border: 1px solid var(--line);
}

.link-preview__media {
  overflow: hidden;
}

.link-preview__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.link-preview__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.link-preview__site {
  color: var(--accent);
}


.post-card__footer {
  align-items: center;
  flex-wrap: nowrap;
}

.post-card__reactions {
  min-width: 0;
  overflow: visible;
}

.post-card__reactions-set {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
}

.post-card__reactions-set--mobile {
  display: none;
}

.reaction-pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  cursor: pointer;
  font: inherit;
}

.reaction-pill:not(.reaction-pill--more):hover {
  color: var(--accent);
}


.reaction-pill--more {
  cursor: pointer;
}

.reaction-pill--more:hover,
.reaction-pill--more[aria-expanded="true"] {
  background: var(--accent-soft);
  color: var(--accent);
}

.reactions-more {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.reactions-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 30;
  min-width: 0;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
  box-shadow: var(--elevation-popover);
  transform-origin: right bottom;
  animation: cs3-popover-in var(--transition-fast) both;
  will-change: transform, opacity;
}

.reactions-popover__list {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 7px;
}

.reaction-toast {
  position: fixed;
  top: var(--reaction-toast-top, auto);
  bottom: var(--reaction-toast-bottom, 24px);
  left: var(--reaction-toast-left, 50%);
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid rgba(37, 118, 255, 0.18);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 92%, rgba(37, 118, 255, 0.08));
  color: var(--text);
  box-shadow: 0 16px 38px rgba(31, 45, 73, 0.16);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.reaction-toast[hidden] {
  display: none;
}

.reaction-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reaction-toast__icon {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 1rem;
}

.reaction-toast__message {
  font-size: 0.9rem;
  font-weight: 780;
  line-height: 1.35;
}


.post-menu-wrap {
  position: relative;
}

.post-menu-button {
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.post-menu-button:hover {
  border-color: var(--line);
  background: var(--surface-muted);
}

.post-menu {
  position: absolute;
  right: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.post-menu[hidden] {
  display: none;
}

.post-menu button,
.post-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.post-menu__icon,
.post-menu__icon svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.post-menu__icon {
  color: var(--text-soft);
}

.post-menu a .post-menu__icon {
  color: var(--accent);
}

.post-menu button:hover,
.post-menu a:hover {
  background: var(--accent-soft);
}

.post-menu__danger {
  color: #d94a3a;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar-card {
  padding: 16px;
}


.channel-card__avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}


.channel-card__title--stacked {
  line-height: 1.05;
}


.channel-card__title-sub {
  letter-spacing: 0.01em;
}

.channel-card__handle,
.channel-card__description,
.channel-card__subscribers {
  display: block;
}


.channel-card__description {
  margin: 8px auto 0;
  max-width: 212px;
  color: var(--text-soft);
  line-height: 1.5;
  font-size: 0.86rem;
}

.channel-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
  min-height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  font-weight: 800;
}

.channel-card__contact {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  padding: 0 13px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, var(--text-soft));
  border-radius: 15px;
  background: color-mix(in srgb, var(--surface-strong) 86%, var(--page-bg));
  color: var(--text-soft);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 54%, transparent);
  font-size: 0.88rem;
  font-weight: 760;
  line-height: 1.2;
}

.channel-card__contact-main {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55ch;
  min-width: 0;
  max-width: 100%;
}

.channel-card__contact-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: inherit;
}

.channel-card__contact-email {
  min-width: 0;
  color: var(--text-soft);
  overflow-wrap: anywhere;
  user-select: text;
  cursor: text;
}

.channel-card__contact-icon,
.channel-card__contact-icon svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.channel-card__contact-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 40;
  width: max-content;
  max-width: min(260px, calc(100vw - 32px));
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.channel-card__contact-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-strong);
  transform: translate(-50%, -4px) rotate(45deg);
}

.channel-card__contact-main:hover .channel-card__contact-tooltip,
.channel-card__contact-main:focus-within .channel-card__contact-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.popular-card {
  position: relative;
  padding: 14px 14px 10px;
}

.popular-card__header {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 0;
  padding-right: 40px;
  margin-bottom: -1px;
}

.popular-card__more {
  position: absolute;
  top: -2px;
  right: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;

  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  color: var(--accent);

  font-size: 1.35rem;
  font-weight: 850;
  line-height: 1;

  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 8%, transparent);
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.popular-card__more:hover {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
  transform: translateY(-1px);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 12%, transparent);
}

.popular-card__more span {
  display: inline-block;
  transform: translate(1px, -1px) scaleX(1.2);
  transform-origin: center;
}

.sidebar-matches-card__title-link {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.sidebar-matches-card__title-link:hover,
.sidebar-matches-card__title-link:focus-visible {
  color: var(--accent);
}


.popular-card__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.popular-card--dynamic {
  padding-top: 10px;
  padding-bottom: 8px;
}

.popular-card__heading {
  min-width: 0;
}

.popular-card__header--dynamic {
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-right: 0;
  margin-bottom: 1px;
}

.popular-card__header--dynamic .popular-card__heading {
  flex: 1 1 auto;
  max-width: calc(100% - 94px);
}

.popular-card__header--dynamic .popular-card__title {
  line-height: 1.06;
}

.popular-card__title-link {
  display: inline;
  color: var(--text);
  text-decoration: none;
}

.popular-card__title-link:hover,
.popular-card__title-link:focus-visible {
  color: var(--accent);
}

.popular-card__title span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.popular-card__periods {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 2px;
  margin: 0;
  margin-top: -3px;
  padding: 1px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
}

.popular-card__period {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  min-width: 30px;
  padding: 0 7px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 820;
  white-space: nowrap;
  cursor: pointer;
}

.popular-card__period.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.popular-card__all-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;

  width: 100%;
  min-height: 30px;
  margin-top: 0px;
  padding: 0 9px;

  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--surface) 92%, var(--surface-strong));

  color: color-mix(in srgb, var(--text) 88%, var(--text-soft));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.62) inset;

  font-size: 0.78rem;
  font-weight: 820;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.popular-card__all-link:hover {
  border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
  background: color-mix(in srgb, var(--accent) 2.5%, var(--surface));
  color: var(--text);
}

.vrs-card {
  padding: 10px 14px 8px;
}

.vrs-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 30px;
  margin-bottom: 6px;
}

.vrs-card__title {
  color: var(--text);
  font-size: 1.04rem;
  font-weight: 850;
  line-height: 1.08;
  text-decoration: none;
}

.vrs-card__title:hover,
.vrs-card__title:focus-visible {
  color: var(--accent);
}

.vrs-card__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.vrs-card__item {
  display: grid;
  grid-template-columns: 28px 30px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  min-height: 42px;
  padding: 6px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 62%, transparent);
  text-decoration: none;
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.vrs-card__item:hover,
.vrs-card__item:focus-visible {
  color: var(--accent);
}

.vrs-card__item:last-child {
  border-bottom-color: transparent;
}

.vrs-card__rank {
  display: inline-flex;
  align-items: center;
  font-variant-numeric: tabular-nums;
}

.vrs-card__logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: contain;
  background: color-mix(in srgb, var(--surface-muted) 84%, var(--surface));
}

.vrs-card__logo--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 0.58rem;
  font-weight: 900;
}

.vrs-card__team {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.vrs-card__name,
.vrs-card__roster {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vrs-card__name {
  color: var(--text);
  font-weight: 820;
  line-height: 1.1;
}


.vrs-card__points {
  line-height: 1;
  white-space: nowrap;
}

.vrs-card__all-link {
  margin-top: 7px;
}

.vrs-card__all-link:hover,
.vrs-card__all-link:focus-visible {
  color: var(--accent);
}

.popular-card__all-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
}

.popular-card__all-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: color-mix(in srgb, var(--text-soft) 78%, var(--text));
  line-height: 1;
}

.popular-card__all-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.popular-card__all-text {
  text-align: center;
  color: inherit;
}

.popular-card__all-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: color-mix(in srgb, var(--text-soft) 78%, var(--text));
  font-size: 1.22rem;
  font-weight: 850;
  line-height: 1;
  transform: translateY(-1px);
}

.popular-card__all-link:hover .popular-card__all-icon,
.popular-card__all-link:hover .popular-card__all-arrow {
  color: var(--accent);
}

.popular-card__panel[hidden] {
  display: none;
}

.popular-card__empty {
  padding: 10px 0 4px;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.mobile-trend-card {
  display: none;
}

.mobile-trend-card__panel[hidden] {
  display: none;
}

.mobile-trend-card__empty {
  padding: 12px 0 4px;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.mobile-trend-card__header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.mobile-trend-card__heading {
  min-width: 0;
}

.mobile-trend-card__title {
  display: inline;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 860;
  line-height: 1.08;
  text-decoration: none;
}

.mobile-trend-card__title span {
  color: inherit;
  font: inherit;
}

.mobile-trend-card__periods {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 2px;
  padding: 1px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
}

.mobile-trend-card__period {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 24px;
  padding: 0 7px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 820;
  white-space: nowrap;
  cursor: pointer;
}

.mobile-trend-card__period.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.mobile-trend-card__rail {
  display: flex;
  gap: 10px;
  margin-inline: -2px;
  padding: 0 2px 3px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.mobile-trend-card__rail::-webkit-scrollbar {
  display: none;
}

.mobile-trend-item {
  position: relative;
  flex: 0 0 172px;
  width: 172px;
  min-height: 122px;
  overflow: hidden;
  border-radius: 16px;
  background: #101620;
  color: #fff;
  scroll-snap-align: start;
  box-shadow: 0 10px 22px rgba(20, 35, 61, 0.1);
}

.mobile-trend-item__thumb {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--accent) 14%, #101620);
}

.mobile-trend-item__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 12, 18, 0.08), rgba(8, 12, 18, 0.78)),
    linear-gradient(90deg, rgba(8, 12, 18, 0.48), transparent 72%);
}

.mobile-trend-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-trend-item__thumb--empty {
  display: grid;
  place-items: center;
  color: color-mix(in srgb, var(--accent) 70%, #fff);
  font-size: 1.2rem;
  font-weight: 900;
}

.mobile-trend-item__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 122px;
  padding: 10px;
}

.mobile-trend-item__rank {
  width: fit-content;
  margin-bottom: auto;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.62rem;
  font-weight: 860;
}

.mobile-trend-item__title {
  display: -webkit-box;
  margin-top: 18px;
  overflow: hidden;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 880;
  line-height: 1.12;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mobile-trend-item__meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.68rem;
  font-weight: 780;
}

.mobile-trend-item__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.mobile-trend-item__meta-icon,
.mobile-trend-item__meta-icon svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}

.popular-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px 0;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.popular-item:hover {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  transform: translateY(-1px);
}

.popular-item--leader {
  position: relative;
  display: block;
  padding: 0;
  margin-bottom: 8px;
  border-radius: 15px;
  overflow: hidden;
  background: #111824;
  box-shadow: 0 12px 26px rgba(20, 35, 61, 0.11);
}

.popular-item--leader:hover {
  background: #111824;
}

.popular-item__thumb {
  position: relative;
  display: block;
  height: 56px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 12px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, transparent), rgba(141, 204, 24, 0.12)),
    var(--surface-muted);
  box-shadow: 0 9px 18px rgba(20, 35, 61, 0.06);
}

.popular-item--leader .popular-item__thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 8.05;
  border: 0;
  border-radius: 15px;
  box-shadow: none;
}

.popular-item--leader .popular-item__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 12, 18, 0.08) 0%, rgba(8, 12, 18, 0.36) 42%, rgba(8, 12, 18, 0.84) 100%),
    linear-gradient(90deg, rgba(8, 12, 18, 0.34) 0%, transparent 45%);
}

.popular-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-item__thumb--empty::after {
  content: "TG";
  display: grid;
  height: 100%;
  place-items: center;
  color: var(--accent);
  font-weight: 800;
}

.popular-item__rank {
  position: absolute;
  z-index: 1;
  top: 7px;
  left: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 23px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(16, 21, 34, 0.18);
}

.popular-item--leader .popular-item__rank {
  z-index: 2;
  top: 12px;
  left: 12px;
  min-width: 32px;
  height: 27px;
  border-radius: 9px;
  font-size: 0.88rem;
}

.popular-item__rank--gold {
  background: linear-gradient(135deg, #ffd93d, #ffb000);
  color: #17120a;
}

.popular-item__rank--silver {
  background: linear-gradient(135deg, #dfe6f2, #9aa6b8);
  color: #121722;
}

.popular-item__rank--bronze {
  background: linear-gradient(135deg, #d99a58, #9f5e28);
}

.popular-item__rank--neutral {
  background: linear-gradient(135deg, #293243, #121824);
}

.popular-item__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  justify-content: center;
}

.popular-item--leader .popular-item__body {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  left: 12px;
  gap: 8px;
  padding: 0;
  color: #ffffff;
}

.popular-item__title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 820;
  line-height: 1.26;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.popular-item--leader .popular-item__title {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.22;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
  -webkit-line-clamp: 2;
}

.popular-item--leader .popular-item__meta {
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.popular-item--leader .popular-item__views-icon,
.popular-item--leader .popular-item__reactions-icon {
  color: rgba(255, 255, 255, 0.84);
}

.popular-item__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.popular-item__views,
.popular-item__reactions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.popular-item__views-icon,
.popular-item__reactions-icon {
  width: 14px;
  height: 14px;
  color: #8d95a8;
}

.popular-item__views-icon svg,
.popular-item__reactions-icon svg {
  width: 100%;
  height: 100%;
}

.inline-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.16em;
}

.inline-emoji img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: var(--emoji-outline-filter);
}

.empty-state,
.not-found {
  padding: 30px 18px;
  text-align: center;
}

.empty-state h2,
.not-found h1 {
  margin: 0 0 10px;
  font-size: 1.46rem;
}

.empty-state p,
.not-found p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.not-found {
  width: min(calc(100% - 32px), 720px);
  margin: 120px auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.not-found__eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.not-found a {
  display: inline-flex;
  margin-top: 18px;
}

:where(
  a,
  button,
  input
):focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-ring-offset);
}

.load-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 36px;
  padding: 2px 0 0;
}

.load-more__fallback {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.load-more__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  min-width: 0;
  padding: 0 12px;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 720;
}

.load-more__status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}

.load-more[data-load-more-state="idle"] .load-more__status {
  opacity: 0.68;
}

.load-more[data-load-more-state="loading"] .load-more__status::before {
  animation: load-more-pulse 900ms ease-in-out infinite;
}

@keyframes load-more-pulse {
  0%,
100% {
    transform: scale(0.82);
    opacity: 0.55;
  }

  50% {
    transform: scale(1);
    opacity: 1;
  }
}

.load-more__meta {
  display: none;
}

.load-more--end {
  display: flex;
  justify-content: center;
  padding: 4px 0 2px;
  color: var(--text-soft);
  font-size: 0.84rem;
}

@media (max-width: 900px) {
  .feed-section > .load-more {
    position: static;
    left: auto;
    bottom: auto;
    z-index: auto;
    width: 100%;
    max-width: 100%;
    padding: 0;
    transform: none;
  }
}

.new-posts-notice {
  position: absolute;
  top: var(--new-posts-notice-top, 14px);
  left: 50%;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 96%, var(--accent-soft));
  color: color-mix(in srgb, var(--text-soft) 82%, var(--text));
  font: inherit;
  font-size: 0.94rem;
  font-weight: 720;
  box-shadow: 0 10px 26px rgba(39, 61, 100, 0.1);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transform: translateX(-50%);
  animation: newPostsNoticeIn 180ms cubic-bezier(0.2, 0, 0, 1);
}

.new-posts-notice[hidden] {
  display: none;
}

.new-posts-notice:hover,
.new-posts-notice:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  background: color-mix(in srgb, var(--surface) 92%, var(--accent-soft));
  color: color-mix(in srgb, var(--text) 86%, var(--text-soft));
}

.new-posts-notice:disabled {
  cursor: default;
}

.new-posts-notice.is-out-of-first-post {
  opacity: 0;
  pointer-events: none;
}

.new-posts-notice__icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-strong));
  color: var(--accent);
  line-height: 1;
}

@keyframes newPostsNoticeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -8px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

body.is-lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1600;
  isolation: isolate;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 12, 18, 0.88);
  animation: cs3-overlay-in var(--motion-base) var(--ease-standard) both;
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 24px 24px 92px;
  animation: cs3-dialog-in var(--motion-slow) var(--ease-emphasized) both;
}

.lightbox__content {
  max-width: min(96vw, 1400px);
  max-height: calc(92vh - 92px);
}

.lightbox__content img,
.lightbox__content video {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 92px);
  border-radius: 18px;
  background: #000;
  object-fit: contain;
}

.lightbox__content video {
  width: min(92vw, 1200px);
  aspect-ratio: 16 / 9;
}

.lightbox__close {
  position: absolute;
  top: 26px;
  right: 26px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(8, 12, 18, 0.56);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  color: #fff;
  cursor: pointer;
  font-size: 0;
  line-height: 0;
  transform: translateY(-50%);
  transition:
    background 150ms ease,
    border-color 150ms ease,
    transform 150ms ease,
    opacity 150ms ease;
}

.lightbox__nav:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(8, 12, 18, 0.76);
  transform: translateY(-50%) scale(1.04);
}

.lightbox__nav[hidden] {
  display: none;
}

.lightbox__nav--prev {
  left: 26px;
}

.lightbox__nav--next {
  right: 26px;
}

.lightbox__nav-icon {
  display: block;
  width: 30px;
  height: 30px;
  pointer-events: none;
}

.lightbox__nav-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.lightbox__thumbs {
  position: absolute;
  bottom: 18px;
  left: 50%;
  z-index: 2;
  display: flex;
  gap: 6px;
  width: max-content;
  max-width: min(960px, calc(100vw - 40px));
  padding: 6px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(8, 12, 18, 0.58);
  backdrop-filter: blur(14px);
  scrollbar-width: none;
  transform: translateX(-50%);
}

.lightbox__thumbs[hidden] {
  display: none;
}

.lightbox__thumbs::-webkit-scrollbar {
  display: none;
}

.lightbox__thumb {
  position: relative;
  flex: 0 0 64px;
  width: 64px;
  height: 44px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  opacity: 0.55;
  transition:
    border-color 140ms ease,
    opacity 140ms ease,
    transform 140ms ease;
}

.lightbox__thumb:hover,
.lightbox__thumb:focus-visible {
  opacity: 0.86;
}

.lightbox__thumb.is-active {
  border-color: var(--accent);
  opacity: 1;
  transform: translateY(-1px);
}

.lightbox__thumb img,
.lightbox__thumb-placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.lightbox__thumb img {
  object-fit: cover;
}

.lightbox__thumb-placeholder {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent),
    #10131a;
}

.scroll-top {
  position: fixed;
  right: max(18px, calc((100vw - var(--container)) / 2 + 18px));
  bottom: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 800;
  opacity: 0.92;
  transition: opacity 160ms ease, transform 160ms ease, color 160ms ease;
}

.scroll-top.has-new-posts {
  border-color: rgba(37, 118, 255, 0.28);
  background: color-mix(in srgb, var(--surface) 86%, rgba(37, 118, 255, 0.14));
  color: var(--accent);
}

.scroll-top__icon {
  line-height: 1;
}

.scroll-top__badge {
  position: absolute;
  top: -7px;
  right: -7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
}

.scroll-top__badge[hidden] {
  display: none;
}

.scroll-top:hover {
  color: var(--accent);
  opacity: 1;
  transform: translateY(-2px);
}

.scroll-top[hidden] {
  display: none;
}

@media (min-width: 641px) {
  .scroll-top {
    right: max(22px, calc((100vw - var(--container)) / 2 - 58px));
    bottom: 28px;
    width: 42px;
    height: 42px;
    border-color: color-mix(in srgb, var(--line) 82%, transparent);
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
    color: color-mix(in srgb, var(--text-soft) 82%, var(--text));
    box-shadow:
      0 18px 42px rgba(20, 35, 61, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.48);
    backdrop-filter: blur(14px);
  }

  .scroll-top.has-new-posts {
    border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
    background: color-mix(in srgb, var(--surface-strong) 84%, var(--accent-soft));
    color: var(--accent);
  }

  .scroll-top__badge {
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-color: var(--bg-secondary);
    box-shadow: 0 8px 18px rgba(23, 117, 255, 0.22);
    font-size: 0.68rem;
  }

  .scroll-top:hover {
    border-color: color-mix(in srgb, var(--accent) 26%, var(--line));
    background: color-mix(in srgb, var(--surface-strong) 82%, var(--accent-soft));
    transform: translateY(-5px);
  }
}


/* Feed card interaction polish. */
.feed-list > .post-card:not(.post-card--detail) {
  transition:
    border-color var(--transition-base),
    background-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base),
    opacity var(--transition-base);
  will-change: auto;
}

.feed-list > .post-card:not(.post-card--detail).is-feed-card-entering {
  opacity: 0;
  transform: translateY(8px) scale(0.996);
}

.feed-list > .post-card:not(.post-card--detail):focus-within {
  border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
  box-shadow: var(--elevation-2);
}

@media (hover: hover) and (pointer: fine) {
  .feed-list > .post-card:not(.post-card--detail):hover {
    border-color: color-mix(in srgb, var(--accent) 16%, var(--line));
    background: color-mix(in srgb, var(--surface) 96%, var(--accent-soft));
    box-shadow: var(--elevation-2);
    transform: translateY(-1px);
  }

  .feed-list > .post-card:not(.post-card--detail):hover .post-card__title a {
    color: color-mix(in srgb, var(--accent) 86%, var(--text));
  }

}

.post-card__title a {
  transition: color var(--transition-fast);
}

.post-card__content.is-collapsed::after {
  height: 44px;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--surface) 0%, transparent),
    color-mix(in srgb, var(--surface) 82%, transparent) 55%,
    var(--surface)
  );
}

.post-media {
  transition:
    border-color var(--transition-base),
    background-color var(--transition-base),
    box-shadow var(--transition-base);
}

.post-media img,
.post-media video {
  transition: transform var(--motion-slow) var(--ease-emphasized);
}

.expand-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  margin-top: 8px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  color: color-mix(in srgb, var(--accent) 86%, var(--text));
  font-size: 0.84rem;
  font-weight: 720;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.expand-button:hover,
.expand-button:focus-visible {
  background: var(--accent-soft);
  color: var(--accent);
}

.expand-button:active {
  transform: scale(0.975);
}

.reaction-pill {
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    opacity var(--transition-fast);
}

.reaction-pill:active,
.post-menu-button:active,
.scroll-top:active {
  transform: scale(0.97);
}

.new-posts-notice:active {
  transform: translateX(-50%) scale(0.97);
}

.new-posts-notice {
  transition:
    opacity var(--transition-fast),
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.load-more[data-load-more-state="loading"] .load-more__status {
  padding-inline: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 12%, var(--line));
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  *,
*::before,
*::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 999.98px) {
  .page-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .sidebar > .popular-card {
    display: none;
  }

  .channel-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 14px;
    align-items: center;
  }

  .channel-card__avatar-wrap {
    grid-row: span 5;
    margin-bottom: 0;
  }

  .channel-card__description {
    margin-left: 0;
    margin-right: 0;
  }

  .channel-card__button {
    width: auto;
    min-width: 168px;
    justify-self: start;
  }
}

@media (max-width: 860px) {
  .app-shell {
    width: min(calc(100% - 18px), var(--container));
    margin-top: 8px;
  }

  .hero {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__controls {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .hero__origin {
    flex: 0 0 auto;
  }

  .results-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .trends-page__period {
    min-height: 30px;
    padding: 0 12px;
    font-size: 0.8rem;
  }

  .trends-page__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .trends-page__periods {
    justify-content: flex-start;
  }

  .trends-list__item {
    grid-template-columns: 38px 132px minmax(0, 1fr);
  }

  .trends-list__item:not(.trends-list__item--leader) .trends-list__meta {
    grid-column: 3;
    justify-self: start;
    min-width: 0;
    gap: 14px;
    margin-top: 2px;
  }

  .trends-list__item--leader {
    grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1fr);
  }

  .trends-list__excerpt {
    -webkit-line-clamp: 1;
  }

  .post-card__header-side {
    width: 100%;
    justify-content: flex-end;
    margin-left: 0;
  }

  .post-tags--header {
    justify-content: flex-start;
    margin-right: auto;
    max-width: none;
  }

  .results-bar__metrics {
    width: 100%;
    justify-content: flex-start;
  }

  .post-card {
    padding: 14px;
  }

  .post-media__lightbox-trigger,
.post-media__frame {
    width: 100%;
    max-width: 100%;
  }

  .link-preview {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 641px) and (max-width: 860px) {
  .hero {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
  }

  .hero.is-search-open {
    margin-bottom: 68px;
  }

  .hero__identity {
    flex: 1 1 auto;
    gap: 10px;
    min-width: 0;
  }

  .hero__avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .hero__controls {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
  }

  .hero__actions {
    width: auto;
    justify-content: flex-end;
  }

  .hero__title,
.hero__eyebrow,
.hero__meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero__subscribers-inline {
    max-width: 92px;
  }

  .hero__title {
    font-size: clamp(1.14rem, 2.4vw, 1.42rem);
  }

  .hero__meta {
    font-size: 0.82rem;
  }

  .hero__search-toggle {
    display: inline-flex;
  }

  .theme-toggle,
.hero__search-toggle,
.hero__contact-toggle,
.hero-menu__toggle,
.hero__origin {
    height: 36px;
    min-height: 36px;
  }

  .theme-toggle,
.hero__search-toggle,
.hero__contact-toggle,
.hero-menu__toggle {
    width: 36px;
  }

  .search {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    z-index: 45;
    width: min(420px, calc(100vw - 36px));
    max-width: none;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-strong);
    box-shadow: 0 18px 40px rgba(20, 35, 61, 0.16);
  }

  .search__icon {
    left: 22px;
  }

  .has-mobile-search-toggle .hero:not(.is-search-open) .search {
    display: none;
  }

  .hero__origin {
    flex: 0 0 auto;
    gap: 7px;
    min-width: 116px;
    padding: 0 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 640px) {


  .mobile-trend-card__header {
    gap: 8px;
    margin-bottom: 9px;
  }

  .mobile-trend-item {
    min-height: 116px;
  }

  .mobile-trend-item__body {
    min-height: 116px;
  }

  .hero {
    gap: 8px;
  }

  .reaction-toast {
    max-width: calc(100vw - 24px);
  }

  .new-posts-notice {
    display: none;
  }

  .popular-card {
    display: none;
  }

  .trends-page {
    padding: 12px;
    border-radius: 18px;
  }
  .trends-page__header {
    display: block;
    margin-bottom: 12px;
  }
  .trends-page__breadcrumbs {
    margin-bottom: 10px;
    font-size: 0.74rem;
  }
  .trends-page__hero-title {
    align-items: center;
    gap: 10px;
  }
  .trends-page__hero-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
  }
  .trends-page__hero-icon::before {
    width: 12px;
    height: 16px;
  }
  .trends-page__title-row {
    gap: 6px;
  }
  .trends-page__title {
    font-size: 1.08rem;
    line-height: 1.08;
  }
  .trends-page__title-context {
    min-height: 20px;
    padding: 0 8px;
    font-size: 0.68rem;
  }
  .trends-page__lead {
    margin-top: 2px;
    font-size: 0.76rem;
    line-height: 1.25;
  }

  .trends-page__periods {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 2px;
    margin-top: 14px;
    padding: 3px;
    overflow: visible;
  }

  .trends-page__period {
    min-width: 0;
    min-height: 32px;
    padding: 0 6px;
    font-size: 0.76rem;
  }

  .trends-list {
    gap: 8px;
  }

  .trends-list__item,
.trends-list__item--leader,
.trends-list__item:not(.trends-list__item--leader) {
    display: grid;
    grid-template-columns: 34px 108px minmax(0, 1fr);
    gap: 7px 10px;
    align-items: center;
    min-height: 92px;
    padding: 8px;
    overflow: hidden;
    border-radius: 16px;
    background: var(--surface-strong);
  }

  .trends-list__item:not(.trends-list__item--leader) {
    grid-template-areas:
      "rank thumb body"
      "rank thumb meta";
  }

  .trends-list__item--leader {
    grid-template-areas: "rank thumb body";
    background:
      linear-gradient(
        135deg,
        color-mix(in srgb, var(--accent) 6%, transparent),
        transparent 52%
      ),
      var(--surface-strong);
  }

  .trends-list__rank,
.trends-list__item--leader .trends-list__rank {
    position: static;
    grid-area: rank;
    align-self: center;
    justify-self: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 0.78rem;
    box-shadow: none;
  }

  .trends-list__item--leader .trends-list__rank {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
  }

  .trends-list__thumb,
.trends-list__item--leader .trends-list__thumb {
    grid-area: thumb;
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
  }

  .trends-list__body,
.trends-list__item:not(.trends-list__item--leader) .trends-list__body {
    grid-area: body;
    align-self: end;
    min-width: 0;
    gap: 4px;
    padding: 0;
    justify-content: center;
  }

  .trends-list__item--leader .trends-list__body {
    grid-area: body;
    align-self: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: 0;
  }

  .trends-list__title,
.trends-list__item--leader .trends-list__title {
    font-size: 0.92rem;
    line-height: 1.16;
    -webkit-line-clamp: 2;
  }

  .trends-list__excerpt {
    display: none;
  }

  .trends-list__item:not(.trends-list__item--leader) > .trends-list__meta {
    grid-area: meta;
    align-self: start;
    justify-self: stretch;
  }

  .trends-list__meta,
.trends-list__item--leader .trends-list__meta,
.trends-list__item:not(.trends-list__item--leader) .trends-list__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
    margin-top: 0;
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 750;
    white-space: nowrap;
  }

  .trends-list__stats,
.trends-list__item--leader .trends-list__stats {
    gap: 8px;
    min-width: 0;
    font-size: inherit;
  }

  .trends-list__time,
.trends-list__item--leader .trends-list__time {
    margin-left: auto;
    white-space: nowrap;
  }

  .trends-list__meta-icon,
.trends-list__meta-icon svg {
    width: 13px;
    height: 13px;
  }

  .trends-list__play {
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
  }

  .trends-list__play::before {
    border-top-width: 5px;
    border-bottom-width: 5px;
    border-left-width: 8px;
  }

  .hero__identity {
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .hero__avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .hero__title {
    max-width: 100%;
    font-size: clamp(1.04rem, 4.1vw, 1.22rem);
    line-height: 1.08;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero__eyebrow {
    display: flex;
    max-width: 100%;
    margin-bottom: 2px;
    font-size: 0.58rem;
    line-height: 1;
  }

  .hero__subscribers-inline {
    max-width: 88px;
  }

  .hero__meta {
    display: block;
    max-width: 100%;
    margin-top: 3px;
    font-size: 0.72rem;
    line-height: 1.05;
  }

  .hero__meta--tagline {
    display: none;
  }

  .hero__controls {
    width: 100%;
  }

  .hero__actions {
    display: grid;
    gap: 8px;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: stretch;
    order: 1;
  }

  .hero__search-toggle {
    display: inline-flex;
  }

  .search {
    order: 2;
    width: 100%;
    max-width: none;
  }

  .has-mobile-search-toggle .hero:not(.is-search-open) .search {
    display: none;
  }

  .theme-toggle,
.hero__search-toggle,
.hero__contact-toggle,
.hero-menu__toggle,
.hero__origin {
    height: 44px;
    min-height: 44px;
    border-radius: 14px;
  }

  .theme-toggle,
.hero__search-toggle,
.hero__contact-toggle,
.hero-menu__toggle {
    width: 44px;
  }

  .hero-menu__panel {
    right: 0;
    width: min(178px, calc(100vw - 38px));
  }

  .hero__origin {
    padding: 0 12px;
    font-size: 0.92rem;
  }

  .post-card__header,
.post-card__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .post-card__author {
    padding-right: 42px;
  }

  .post-card__author--detail {
    padding-right: 0;
  }

  .post-card__footer {
    flex-wrap: wrap;
  }

  .post-card__reactions-set--desktop {
    display: none;
  }

  .post-card__reactions-set--mobile {
    width: 100%;
  }

  .post-card__reactions-set--mobile .reaction-pill {
    justify-content: center;
    gap: 4px;
    padding-right: 6px;
    padding-left: 6px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .post-card__reactions-set--mobile .reaction-pill:not(.reaction-pill--more) {
    flex: 0 1 auto;
  }

  .post-card__reactions-set--mobile .reaction-pill--more {
    flex: 0 0 auto;
  }


  .post-card__reactions-set--mobile .reaction-pill span:not(.reaction-pill__emoji) {
    overflow: visible;
    min-width: 0;
    text-overflow: clip;
    white-space: nowrap;
  }


  .post-card__stat--time {
    text-align: left;
  }

  .read-also {
    padding: 14px;
  }

  .read-also__grid {
    grid-template-columns: 1fr;
  }

  .read-also__card {
    display: grid;
    grid-template-columns: minmax(96px, 118px) minmax(0, 1fr);
  }

  .read-also__thumb {
    height: 100%;
    min-height: 92px;
    aspect-ratio: auto;
  }

  .read-also__body {
    min-height: 92px;
  }

  .read-also__headline {
    -webkit-line-clamp: 3;
  }

  .post-menu-wrap {
    align-self: flex-end;
  }


  .post-card--detail .post-card__header-main {
    align-items: center;
    flex-direction: row;
  }

  .post-card__header-main .post-card__author {
    padding-right: 0;
  }

  .popular-item {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .channel-card {
    display: block;
    text-align: center;
  }

  .channel-card__avatar-wrap {
    margin-bottom: 12px;
  }

  .channel-card__description {
    margin-left: auto;
    margin-right: auto;
  }

  .channel-card__button {
    width: 100%;
  }

  .lightbox__dialog {
    padding: 16px 12px 84px;
  }

  .lightbox__content,
.lightbox__content img,
.lightbox__content video {
    max-height: calc(92vh - 84px);
  }

  .lightbox__close {
    top: 16px;
    right: 16px;
  }

  .lightbox__nav {
    width: 42px;
    height: 42px;
  }

  .lightbox__nav--prev {
    left: 12px;
  }

  .lightbox__nav--next {
    right: 12px;
  }

  .lightbox__thumbs {
    bottom: 12px;
    left: 50%;
    max-width: calc(100vw - 20px);
  }

  .lightbox__thumb {
    flex-basis: 54px;
    width: 54px;
    height: 38px;
  }
}

@media (max-width: 360px) {

  .trends-list__item,
.trends-list__item--leader,
.trends-list__item:not(.trends-list__item--leader) {
    grid-template-columns: 32px 96px minmax(0, 1fr);
    gap: 7px 8px;
  }

  .trends-list__title,
.trends-list__item--leader .trends-list__title {
    font-size: 0.88rem;
  }

  .trends-list__meta {
    font-size: 0.68rem;
  }
}


.matches-page {
  width: 100%;
  min-width: 0;
}


@media (max-width: 720px) {
  .matches-hero {
    border-radius: 20px;
    padding: 18px;
  }
}

.matches-empty {
  background: rgba(255, 255, 255, 0.92);
  border: 1px dashed rgba(15, 23, 42, 0.16);
  border-radius: 22px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.matches-empty__icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 10px;
}

.matches-empty__title {
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 6px;
}

.matches-empty__text {
  color: rgba(15, 23, 42, 0.62);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* /styles/components/sidebar-matches.css */
.sidebar-matches-card {
  padding: 10px 14px 10px;
}

.sidebar-matches-card__header {
  position: relative;
  display: flex;
}

.popular-card__title,
.sidebar-matches-card__title {
  padding-right: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: none;
}


.sidebar-matches-card__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
  flex: 0 0 auto;
}

.sidebar-matches-card__filters {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  margin-top: -1.5px;
}

.sidebar-matches-card__filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.sidebar-matches-card__filter[data-match-filter="tier1"] {
  min-width: 30px;
  padding: 0 8px;
  color: var(--accent);
  font-size: 0.82rem;
}

.sidebar-matches-card__filter.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.sidebar-matches-card__all-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;

  width: 100%;
  min-height: 30px;
  margin-top: 0px;
  padding: 0 9px;

  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--surface) 92%, var(--surface-strong));

  color: color-mix(in srgb, var(--text) 88%, var(--text-soft));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.62) inset;

  font-size: 0.78rem;
  font-weight: 820;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.sidebar-matches-card__all-link:hover {
  border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
  background: color-mix(in srgb, var(--accent) 2.5%, var(--surface));
  color: var(--text);
}

.sidebar-matches-card__all-text {
  text-align: center;
  color: inherit;
}

.sidebar-matches-card__all-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  color: color-mix(in srgb, var(--text-soft) 78%, var(--text));
  font-size: 1.26rem;
  font-weight: 850;
  line-height: 1;
  transform: translateY(-1px);
  margin-left: 4px;
}

.sidebar-matches-card__all-link:hover .sidebar-matches-card__all-arrow {
  color: var(--accent);
}

.sidebar-matches-card__panel[hidden] {
  display: none;
}

.sidebar-matches-card__empty {
  padding: 12px 2px 4px;
  color: var(--text-soft);
  font-size: 0.8rem;
  text-align: center;
}

.sidebar-match-featured {
  display: block;
  padding: 5px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 3%, var(--surface)),
    var(--surface)
  );
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.sidebar-match-featured:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.sidebar-match-featured[data-match-link],
.match-feed-card[data-match-link],
.sidebar-match-row[data-match-link] {
  cursor: pointer;
}

.sidebar-match-featured[data-match-link]:focus-visible,
.match-feed-card[data-match-link]:focus-visible,
.sidebar-match-row[data-match-link]:focus-visible {
  outline: 3px solid var(--focus-ring-color);
  outline-offset: 3px;
}

.sidebar-match-featured__top {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.sidebar-match-featured__format {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 92%, var(--page-bg));
  color: var(--text-soft);
  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.sidebar-match-featured__status {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  min-width: 0;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.04em;
}

.sidebar-match-featured__status--live {
  background: color-mix(in srgb, #ff584d 14%, white);
  color: #e54a3d;
}

.sidebar-match-featured__status--live::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 999px;
  background: #ef5445;
  box-shadow:
    0 0 0 2px color-mix(in srgb, #ef5445 12%, transparent),
    0 0 6px color-mix(in srgb, #ef5445 28%, transparent);
}

@media (min-width: 1000px) and (max-width: 1279px) {
  .sidebar-match-featured__status--live .sidebar-match-featured__status-text--desktop {
    display: inline-block;
    transform: translateY(1px);
  }
}

.sidebar-match-featured__status--upcoming,
.sidebar-match-featured__status--finished,
.sidebar-match-featured__status--unknown,
.sidebar-match-featured__status--canceled,
.sidebar-match-featured__status--postponed {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--accent);
}

.sidebar-match-featured__competition {
  grid-column: 1 / -1;
  position: absolute;
  left: 50%;
  top: 50%;
  width: max-content;
  max-width: calc(100% - 109px);
  min-width: 0;
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  text-align: center;
  justify-self: center;
  transform: translate(-50%, -50%);
}

.sidebar-match-featured__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.sidebar-match-featured__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 92px;
  max-width: 92px;
  min-width: 0;
  overflow: hidden;
  text-align: center;
}
.sidebar-match-featured__body > .sidebar-match-featured__team:first-child {
  justify-self: start;
}

.sidebar-match-featured__body > .sidebar-match-featured__team:last-child {
  justify-self: end;
}

.sidebar-match-featured__logo,
.sidebar-match-featured__logo--fallback {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 10px;
}

.sidebar-match-featured__logo {
  object-fit: contain;
}

.sidebar-match-featured__team-name {
  width: 100%;
  max-width: 100%;
  min-height: 1.2em;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: clip;
  display: block;
}

.sidebar-match-featured__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 86px;
  min-width: 86px;
  position: relative;
}

.sidebar-match-featured__center--live {
  align-items: center;
  transform: translateY(-10px);
}

.sidebar-match-featured__score {
  display: grid;
  grid-template-columns: 1ch 14px 1ch;
  align-items: center;
  justify-content: center;
  width: 86px;
  color: var(--text);
  font-size: 2rem;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.sidebar-match-featured__score-divider {
  color: var(--text-soft);
  text-align: center;
  transform: translateY(-1px);
}

.sidebar-match-featured__versus {
  color: var(--text-soft);
  font-size: 1.05rem;
  font-weight: 850;
  text-transform: uppercase;
}

.sidebar-match-featured__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.sidebar-match-featured__time {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.sidebar-match-featured__submeta {
  max-width: 100%;
  color: var(--text-soft);
  font-size: 0.8rem;
  line-height: 1.2;
  text-align: center;
}

.sidebar-match-featured__submeta--live {
  margin-top: -1px;
}

.sidebar-match-featured__score-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 16px;
  padding: 0 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  color: var(--text-soft);
  font-size: 0.54rem;
  font-weight: 820;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transform: translateY(1px);
}

.sidebar-match-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 92%, var(--page-bg));
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
}

.sidebar-match-pill--row {
  min-height: 14px;
  padding: 0 4px;
  border-radius: 7px;
  font-size: 0.50rem;
  font-weight: 820;
  line-height: 1;
}

.sidebar-match-list {
  display: flex;
  flex-direction: column;
  margin-top: 1px;
  margin-inline: -1px;
}

.sidebar-match-row {
  display: grid;
  gap: 6px;
  align-items: center;
  padding: 7px 4px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 12px;
  transition:
    background-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.sidebar-match-row:hover {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  border-radius: 3px;
  transform: translateX(-1px);
}

.sidebar-match-row:last-child {
  border-bottom-color: transparent;
}

.sidebar-match-row--collapsed-last {
  border-bottom-color: transparent;
}

.sidebar-matches-card.is-expanded .sidebar-match-row--collapsed-last {
  border-bottom-color: color-mix(in srgb, var(--line) 72%, transparent);
}

.sidebar-matches-card.is-expanded .sidebar-match-row:last-child {
  border-bottom-color: transparent;
}

.sidebar-match-row__main {
  display: grid;
  gap: 6px;
  align-items: center;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.sidebar-match-row__team-name:hover {
  color: var(--accent);
}

.sidebar-match-row__schedule {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.sidebar-match-row__time {
  width: 100%;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1;
  text-align: center;
}

.sidebar-match-row__date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 17px;
  padding: 0 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-soft) 8%, var(--surface-muted));
  color: color-mix(in srgb, var(--text-soft) 88%, var(--text));
  font-size: 0.56rem;
  font-weight: 820;
  line-height: 1;
  text-transform: none;
}

.sidebar-match-row__live-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: color-mix(in srgb, #ff584d 13%, white);
  color: #e54a3d;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
}

.sidebar-match-row__live-label::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 999px;
  background: currentColor;
}

.sidebar-match-row__teams-stack {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.sidebar-match-row__team-line {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.sidebar-match-row__logo,
.sidebar-match-row__logo--fallback {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border-radius: 4px;
}

.sidebar-match-row__logo {
  object-fit: contain;
}

.sidebar-match-row__logo--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--text) 7%, transparent);
  color: var(--text);
  font-size: 0.5rem;
  font-weight: 800;
}


.sidebar-match-row__team-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 820;
  line-height: 1.08;
}

.sidebar-match-row__team-score {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.sidebar-match-row__competition {
  max-width: 100%;
  color: var(--text-soft);
  font-size: 0.66rem;
  font-weight: 820;
  line-height: 1.15;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-match-row__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: wrap;
  min-width: 0;
}

.sidebar-match-row__stage {
  max-width: 100%;
  color: var(--text-soft);
  font-size: 0.56rem;
  font-weight: 740;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-match-row__details {
  appearance: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.sidebar-match-row__details:hover {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent);
  transform: translateX(1px);
}

.sidebar-match-row__details span {
  display: inline-block;
  transform: translate(1px, -1px) scaleX(1.2);
}

.sidebar-match-row__side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

@media (max-width: 640px) {
  .sidebar-match-featured__body {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sidebar-match-featured__center {
    min-width: 0;
  }

  .sidebar-match-row {
    grid-template-columns: 54px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {


  .sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding-bottom: 0;
  }

  .sidebar > .channel-card {
    display: none !important;
  }

}

.sidebar-matches-card__titles {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.sidebar-matches-card__title {
  font-size: 1.04rem;
  font-weight: 850;
  letter-spacing: 0;
}

@media (max-width: 900px) {
  html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-shell,
.main-shell,
.page-grid,
.feed-section,
.feed-list,
.sidebar,
.sidebar-card,
.channel-card,
.sidebar-matches-card,
.popular-card,
.post-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

}

@media (max-width: 900px) {

  .sidebar-matches-card__header {
    min-height: 28px;
    margin-bottom: 10px;
    padding-right: 40px;
  }
}

.sidebar-matches-card__mobile-rail {
  display: none;
}

.sidebar-matches-card__desktop {
  display: block;
}

button.sidebar-match-featured__team-name,
button.sidebar-match-row__team-name,
button.sidebar-match-featured__competition,
button.sidebar-match-row__competition {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

button.sidebar-match-featured__team-name {
  display: block;
  width: 100%;
  max-width: 100%;
  color: var(--text);
  text-align: center;
}

button.sidebar-match-row__team-name {
  display: block;
  width: 100%;
  max-width: 100%;
  text-align: left;

  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--text);
  font-size: 0.80rem;
  font-weight: 780;
  line-height: 1.07;
  letter-spacing: -0.01em;
}

button.sidebar-match-featured__competition {
  display: block;
  color: var(--text-soft);
  text-align: center;
}

button.sidebar-match-row__competition {
  display: block;
  max-width: 100%;
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 820;
  line-height: 1.15;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

button.sidebar-match-featured__team-name:hover,
button.sidebar-match-row__team-name:hover,
button.sidebar-match-featured__competition:hover,
button.sidebar-match-row__competition:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .sidebar-matches-card {
    padding: 10px 12px 12px;
    overflow: hidden;
  }

  .sidebar-matches-card__desktop {
    display: none !important;
  }

  .sidebar-matches-card__mobile-rail {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding: 0 2px 2px 0;
  }

  .sidebar-matches-card__mobile-rail::-webkit-scrollbar {
    display: none;
  }

  .sidebar-matches-card__mobile-rail .sidebar-match-featured {
    flex: 0 0 195px !important;
    width: 195px !important;
    min-width: 195px !important;
    max-width: 195px !important;
    scroll-snap-align: start;
    padding: 5px 5px 5px;
    border-radius: 16px;
  }

  .sidebar-matches-card__mobile-rail .sidebar-match-featured__top {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    gap: 6px;
    align-items: center;
    margin-bottom: 8px;
  }

  .sidebar-matches-card__mobile-rail .sidebar-match-featured__competition {
    font-size: 0.68rem;
    line-height: 1;
    text-align: center;
  }

  .sidebar-matches-card__mobile-rail .sidebar-match-featured__status {
    min-height: 21px;
    padding: 0 7px;
    font-size: 0.56rem;
  }

  .sidebar-matches-card__mobile-rail .sidebar-match-featured__format {
    min-height: 21px;
    padding: 0 7px;
    font-size: 0.58rem;
  }

  .sidebar-matches-card__mobile-rail .sidebar-match-featured__body {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 66px minmax(0, 1fr) !important;
    grid-template-areas: none !important;
    gap: 7px !important;
    align-items: center !important;
    min-height: 0 !important;
  }

  .sidebar-matches-card__mobile-rail .sidebar-match-featured__team {
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 4px;
    transform: none !important;
  }

  .sidebar-matches-card__mobile-rail .sidebar-match-featured__logo,
.sidebar-matches-card__mobile-rail .sidebar-match-featured__logo--fallback {
    width: 34px !important;
    height: 34px !important;
    flex-basis: 34px !important;
  }

  .sidebar-matches-card__mobile-rail .sidebar-match-featured__team-name {
    width: 100%;
    max-width: 100%;
    font-size: 0.68rem;
    line-height: 1.06;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }

  .sidebar-matches-card__mobile-rail .sidebar-match-featured__center {
    width: 66px !important;
    min-width: 66px !important;
    gap: 1px;
    transform: none !important;
  }

  .sidebar-matches-card__mobile-rail .sidebar-match-featured__score-label {
    min-height: 14px;
    padding: 0 5px;
    font-size: 0.42rem;
  }

  .sidebar-matches-card__mobile-rail .sidebar-match-featured__score {
    width: 66px !important;
    font-size: 1.42rem;
    line-height: 0.95;
  }

  .sidebar-matches-card__mobile-rail .sidebar-match-featured__submeta {
    font-size: 0.62rem;
    line-height: 1;
  }

}

.sidebar-match-featured__status-text--mobile,
.sidebar-match-featured__mobile-start-meta {
  display: none;
}

@media (max-width: 999.98px) {
  .sidebar-match-featured__status-text--desktop {
    display: none;
  }

  .sidebar-match-featured__status-text--mobile {
    display: inline;
  }

  .sidebar-matches-card__mobile-rail
    .sidebar-match-featured--not-live
    .sidebar-match-featured__versus {
    display: none;
  }

  .sidebar-matches-card__mobile-rail
    .sidebar-match-featured--not-live
    .sidebar-match-featured__mobile-start-meta {
    min-width: 0;
  }

  .sidebar-matches-card__mobile-rail
    .sidebar-match-featured--not-live
    .sidebar-match-featured__mobile-time {
    color: var(--text);
    font-size: 1.18rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }

  .sidebar-matches-card__mobile-rail
    .sidebar-match-featured--not-live
    .sidebar-match-featured__mobile-stage {
    color: var(--text-soft);
    font-size: 0.64rem;
    font-weight: 720;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }

  .sidebar-matches-card__mobile-rail
    .sidebar-match-featured--not-live
    .sidebar-match-featured__submeta {
    display: none;
  }
}

@media (max-width: 999.98px) {
  .sidebar-matches-card__mobile-rail
    .sidebar-match-featured--not-live
    .sidebar-match-featured__meta,
.sidebar-matches-card__mobile-rail
    .sidebar-match-featured--not-live
    .sidebar-match-featured__meta--desktop,
.sidebar-matches-card__mobile-rail
    .sidebar-match-featured--not-live
    .sidebar-match-featured__center
    .sidebar-match-pill {
    display: none !important;
  }

  .sidebar-matches-card__mobile-rail
    .sidebar-match-featured--not-live
    .sidebar-match-featured__mobile-start-meta {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
  }
}

.sidebar-matches-card--mobile-placement {
  display: none;
}

@media (max-width: 900px) {
  .sidebar-matches-card--mobile-placement {
    display: block !important;
  }
}

@media (max-width: 900px) {
  .page-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .feed-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    order: 1;
  }

  .sidebar {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    order: 2;
  }

  .feed-section > .sidebar-matches-card--mobile-placement {
    display: block !important;
    order: 2;
    margin-top: 0;
  }

  .feed-section > .results-bar {
    order: 3;
  }

  .feed-section > .feed-list {
    order: 4;
  }

  .feed-section > .load-more {
    order: 5;
  }

  .sidebar-matches-card--desktop-placement {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .sidebar-matches-card--mobile-placement .sidebar-matches-card__header {
    margin-bottom: 2px !important;
  }

  .sidebar-matches-card--mobile-placement .sidebar-matches-card__mobile-rail {
    margin-top: 4px !important;
  }
}


/* === Matches placement: tablet/mobile fix === */
@media (max-width: 999.98px) {
  .sidebar-matches-card--desktop-placement {
    display: none !important;
  }

  .feed-section > .sidebar-matches-card--mobile-placement {
    display: block !important;
    margin-top: 0;
  }

}

@media (min-width: 1000px) {
  .sidebar-matches-card--mobile-placement {
    display: none !important;
  }

  .sidebar-matches-card--desktop-placement {
    display: block !important;
  }
}

/* === Matches mobile/tablet header polish === */
@media (max-width: 999.98px) {

  .sidebar-matches-card--mobile-placement .sidebar-matches-card__header {
    min-height: 30px;
  }

  .sidebar-matches-card--mobile-placement .sidebar-matches-card__titles {
    grid-area: titles;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .sidebar-matches-card--mobile-placement .sidebar-matches-card__title {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text);
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.015em;
  }

  .sidebar-matches-card--mobile-placement.has-live-matches .sidebar-matches-card__title::before {
    content: "";
    flex: 0 0 7px;
    border-radius: 999px;
  }

}

/* === Matches tablet/mobile horizontal layout below compact desktop === */
@media (max-width: 999.98px) {
  .sidebar-matches-card--mobile-placement .sidebar-matches-card__desktop {
    display: none !important;
  }

  .sidebar-matches-card--mobile-placement .sidebar-matches-card__mobile-rail {
    display: flex !important;
    flex-direction: row !important;
    width: 100%;
    min-width: 0;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .sidebar-matches-card--mobile-placement .sidebar-matches-card__mobile-rail::-webkit-scrollbar {
    display: none;
  }


  .sidebar-matches-card--mobile-placement .sidebar-match-featured__top {
    display: grid !important;
    align-items: center;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__body {
    display: grid !important;
    grid-template-areas: none !important;
    align-items: center !important;
    min-height: 0 !important;
  }

  .sidebar-matches-card--mobile-placement
    .sidebar-match-featured__body
    > .sidebar-match-featured__team:first-child,
.sidebar-matches-card--mobile-placement
    .sidebar-match-featured__body
    > .sidebar-match-featured__team:last-child {
    justify-self: stretch;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__team {
    display: grid !important;
    align-items: center;
    justify-items: center;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 3px;
    transform: none !important;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__logo,
.sidebar-matches-card--mobile-placement .sidebar-match-featured__logo--fallback {
    object-fit: contain;
    object-position: center;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__team-name {
    width: 100%;
    max-width: 100%;
    line-height: 1.05;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__center {
    align-self: center;
    justify-self: center;
    gap: 2px;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__score {
    line-height: 0.95;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__score-label {
    min-height: 13px;
    padding: 0 5px;
    font-size: 0.4rem;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__submeta {
    font-size: 0.62rem;
    font-weight: 680;
    line-height: 1.05;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__competition {
    grid-column: 2;
    position: static;
    width: auto;
    justify-self: stretch;
    transform: none !important;
    line-height: 1.05;
    text-align: center;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__status {
    min-height: 22px;
    padding: 0 7px;
    border-radius: 10px;
    font-size: 0.56rem;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__format {
    justify-self: end;
    min-width: 20px;
  }


  .sidebar-matches-card--mobile-placement .sidebar-match-featured__mobile-stage {
    line-height: 1.05;
    text-align: center;
  }

}

/* === Matches compact filters === */
.sidebar-matches-card__header {
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 0;
  margin-bottom: 6px;
  padding-right: 0 !important;
}

.sidebar-matches-card__controls {
  align-self: flex-start;
}

@media (max-width: 999.98px) {
  .sidebar > .popular-card--dynamic {
    display: none !important;
  }

  .mobile-trend-card {
    display: block;
    min-width: 0;
    border: 1px solid var(--line);
  }

  .sidebar-matches-card--mobile-placement .sidebar-matches-card__all-link {
    display: none;
  }

  .sidebar-matches-card--mobile-placement .sidebar-matches-card__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "titles controls";
    align-items: start;
    gap: 8px;
    padding-right: 0 !important;
  }

  .sidebar-matches-card--mobile-placement .sidebar-matches-card__controls {
    grid-area: controls;
    justify-self: end;
    gap: 5px;
  }

  .sidebar-matches-card--mobile-placement .sidebar-matches-card__filters {
    max-width: 118px;
  }

  .sidebar-matches-card--mobile-placement .sidebar-matches-card__filter {
    min-height: 22px;
    padding: 0 7px;
    font-size: 0.62rem;
  }


}

/* /styles/legacy/before-sidebar-refinements.css */
/* === About page === */


.about-post-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.about-post-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px 16px;
}

.about-post-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.about-post-card__avatar-link {
  display: block;
  flex: 0 0 auto;
}

.about-post-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.about-post-card__author-copy {
  min-width: 0;
}

.about-post-card__channel {
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 850;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.about-post-card__label {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 650;
}

.about-post-card__date {
  flex: 0 0 auto;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 650;
}

.about-post-card__divider {
  height: 1px;
  background: var(--line);
}

.about-post-card__divider--content {
  margin: 28px 0;
}

.about-post-card__body {
  max-width: 800px;
  padding: 2px 20px 32px;
}

.about-post-card__title {
  margin: 0 0 22px;
  color: var(--text);
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.about-post-card__body p {
  margin: 0 0 20px;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.72;
}

.about-post-card__body p a {
  color: var(--accent);
  font-weight: 750;
}

.about-section {
  margin-top: 34px;
}

.about-section__title {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.015em;
}

.about-section--contacts {
  margin-top: 0;
}

.about-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
}

.about-contact-row__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  flex: 0 0 18px;
  color: var(--accent);
  font-size: 1.08rem;
  font-weight: 900;
}

.about-contact-row__icon--telegram {
  transform: translateY(-1px);
}

.about-contact-row a {
  min-width: 0;
  color: var(--accent);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.about-contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.about-contact-social {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-muted) 46%, transparent);
  color: color-mix(in srgb, var(--text) 86%, var(--accent));
  font-size: 0.82rem;
  font-weight: 760;
  text-decoration: none;
}

.about-contact-social:hover,
.about-contact-social:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
  background: color-mix(in srgb, var(--accent) 5%, var(--surface-strong));
  color: color-mix(in srgb, var(--accent) 82%, var(--text));
}

.about-contact-social__icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: currentColor;
}

.about-contact-social__icon svg {
  width: 100%;
  height: 100%;
}

.channel-card {
  text-align: left;
}

.channel-card__profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: 0;
  margin-bottom: 0;
}

.channel-card__identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  text-align: left;
}

.channel-card__avatar-wrap {
  align-items: center;
  margin: 0;
}

.channel-card__avatar {
  width: 88px;
  height: 88px;
  border-radius: 24px;
}

.channel-card__actions {
  margin-top: -2px;
}

.channel-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.08;
  color: var(--text-main);
}

.channel-card__title--stacked {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.channel-card__title-main,
.channel-card__title-sub {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.08;
}

.channel-card__handle {
  display: block;
  margin-top: 6px;
  color: var(--accent);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
}

.channel-card__subscribers {
  margin-top: 5px;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.2;
}

@media (max-width: 640px) {
  .channel-card__avatar-wrap {
    justify-content: flex-end;
    gap: 0;
  }

  .channel-card__avatar {
    width: 88px;
    height: 88px;
    border-radius: 24px;
  }
}

@media (max-width: 999.98px) {
  .sidebar-card {
    padding: 4px;
  }

  .channel-card {
    text-align: left;
  }

  .channel-card__profile {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    column-gap: 0;
    margin-bottom: 0;
  }

  .channel-card__identity {
    min-width: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin-left: 10px;
    margin-top: 10px;
  }

  .hero__contact .hero-contact-popover {
    max-width: calc(100vw - 32px);
  }
}

/* Matches page: lightweight Telegram-like schedule */
.page-grid--matches {
  align-items: start;
}


.matches-hero {
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0;
}

.matches-hero__copy {
  min-width: 0;
}

.matches-hero__breadcrumbs {
  margin-bottom: 10px;
}


.matches-hero__title {
  margin: 0;
  color: var(--text);
  line-height: 1.02;
}

.matches-hero__description {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--text-soft);
  line-height: 1.45;
}

.rankings-page {
  gap: 10px;
}

.rankings-hero {
  margin-bottom: 0;
}

.rankings-hero__copy {
  min-width: 0;
}

.rankings-hero__breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 780;
}

.rankings-hero__breadcrumbs a:hover {
  color: var(--accent);
}

.rankings-hero__title {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.54rem, 3.2vw, 2.08rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.rankings-hero__description {
  max-width: 600px;
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.45;
}

.rankings-hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  max-width: 220px;
}

.rankings-hero__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-muted) 76%, var(--surface));
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 820;
  white-space: nowrap;
}

.rankings-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  background: color-mix(in srgb, var(--surface) 88%, var(--surface-muted));
}

.rankings-regions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding: 2px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  scrollbar-width: none;
}

.rankings-regions::-webkit-scrollbar {
  display: none;
}

.rankings-region {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 840;
  white-space: nowrap;
}

.rankings-region.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.rankings-region.is-empty:not(.is-active) {
  opacity: 0.58;
}

.rankings-toolbar__summary {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 760;
  white-space: nowrap;
}

.rankings-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: visible;
  border: 0;
  background: transparent;
}

.rankings-table__row {
  display: grid;
  grid-template-columns: 48px minmax(0, 190px) 84px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 9px 14px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.rankings-table__row--head {
  min-height: 24px;
  padding: 0 14px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 880;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rankings-table__rank,
.rankings-table__points {
  font-weight: 900;
  white-space: nowrap;
}

.rankings-table__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 11px;
  font-size: 0.84rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.rankings-table__team {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 860;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rankings-table__logo {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 9px;
  object-fit: contain;
  background: color-mix(in srgb, var(--surface-muted) 84%, var(--surface));
}

.rankings-table__logo--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 0.62rem;
  font-weight: 900;
}

.rankings-table__team-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rankings-table__team a:hover,
.rankings-table__team a:focus-visible {
  color: var(--accent);
}

.rankings-table__points {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.rankings-table__roster {
  min-width: 0;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rankings-empty {
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 720;
}

@media (max-width: 700px) {
  .rankings-hero,
.rankings-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .rankings-hero__meta {
    justify-content: flex-start;
    max-width: none;
  }

  .rankings-regions {
    width: 100%;
  }

  .rankings-table__row {
    grid-template-columns: 44px minmax(0, 1fr) 72px;
    gap: 8px;
    align-items: start;
  }

  .rankings-table__row--head span:nth-child(4) {
    display: none;
  }

  .rankings-table__roster {
    grid-column: 2 / 4;
    white-space: normal;
  }
}

.matches-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.matches-filters,
.matches-toolbar__tools {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.matches-filters {
  flex: 1 1 auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.matches-filters::-webkit-scrollbar {
  display: none;
}

.matches-toolbar__tools {
  flex: 0 0 auto;
}

.matches-filter,
.matches-tournament-filter__summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
}

.matches-filter {
  gap: 6px;
  padding: 0 12px;
}

.matches-filter:hover,
.matches-tournament-filter__summary:hover {
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
  color: var(--accent);
}

.matches-filter.is-active {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 20%, transparent);
}

.matches-filter__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 3px color-mix(in srgb, #ef4444 12%, transparent);
}

.matches-tournament-filter {
  position: relative;
}

.matches-tournament-filter__summary {
  min-width: 118px;
  padding: 0 11px;
  list-style: none;
  cursor: pointer;
}

.matches-tournament-filter__summary::-webkit-details-marker {
  display: none;
}

.matches-tournament-filter__label {
  display: block;
  max-width: 146px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.matches-tournament-filter__menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 90;
  display: grid;
  gap: 3px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-strong);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.matches-tournament-filter__option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 34px;
  padding: 0 9px;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 760;
}

.matches-tournament-filter__option span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.matches-tournament-filter__option:hover,
.matches-tournament-filter__option.is-active {
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  color: var(--text);
}

.matches-active-summary {
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 730;
}

.matches-active-summary a {
  font-weight: 840;
}

.matches-list {
  display: flex;
  flex-direction: column;
}

.matches-day {
  margin-bottom: 0;
}

.matches-day__title {
  margin: 0;
  padding: 0 13px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.matches-day__title span:last-child {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 740;
}

.matches-day__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.match-feed-card {
  position: relative;
  display: grid;
  align-items: center;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: transparent;
  outline: none;
}

.match-feed-card:last-child {
  border-bottom: 0;
}


.match-feed-card__time,
.match-feed-card__team,
.match-feed-card__score,
.match-feed-card__competition {
  min-width: 0;
}


.match-feed-card__bookmark,
.match-feed-card__competition {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.match-feed-card__clock {
  color: var(--text);
  font-weight: 860;
  white-space: nowrap;
}

.match-feed-card__status {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.match-feed-card__status--live {
  background: color-mix(in srgb, #ef4444 13%, var(--surface));
  color: #dc2626;
}

.match-feed-card__status--live::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 999px;
  background: #ef4444;
}

.match-feed-card__status--upcoming,
.match-feed-card__status--unknown {
  background: color-mix(in srgb, var(--accent) 11%, var(--surface));
  color: var(--accent);
}


.match-feed-card__status--canceled,
.match-feed-card__status--postponed {
  background: color-mix(in srgb, #f59e0b 14%, var(--surface));
  color: #b45309;
}

.match-feed-card__team {
  display: flex;
  align-items: center;
}

.match-feed-card__team--left {
  justify-content: flex-end;
  text-align: right;
}

.match-feed-card__team--right {
  justify-content: flex-start;
  text-align: left;
}

.match-feed-card__team-name {
  overflow: hidden;
  color: var(--text);
  font-weight: 860;
  white-space: nowrap;
}

.match-feed-card__logo,
.match-feed-card__logo--fallback {
  flex: 0 0 34px;
}

.match-feed-card__logo {
  object-fit: contain;
}

.match-feed-card__logo--fallback {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--text-soft);
  font-size: 0.64rem;
  font-weight: 900;
}

.match-feed-card__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.match-feed-card__score-main {
  color: var(--text);
  font-weight: 940;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.match-feed-card__format {
  color: var(--text-soft);
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.match-feed-card__competition {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 0;
  color: inherit;
  text-align: left;
}

.match-feed-card__competition:hover .match-feed-card__competition-copy span:first-child {
  color: var(--accent);
}

.match-feed-card__competition-logo {
  display: grid;
  place-items: center;
  flex: 0 0 31px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--text-soft);
  font-size: 0.56rem;
  font-weight: 900;
}

.match-feed-card__competition-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.match-feed-card__competition-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.match-feed-card__competition-copy span {
  overflow: hidden;
  white-space: nowrap;
}

.match-feed-card__competition-copy span:first-child {
  color: var(--text);
  font-weight: 830;
}

.match-feed-card__competition-copy span:last-child {
  color: var(--text-soft);
  font-weight: 720;
}

.match-feed-card__bookmark {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  color: color-mix(in srgb, var(--text-soft) 58%, transparent);
  text-decoration: none;
}

.match-feed-card__bookmark:hover {
  color: var(--accent);
}

.matches-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.matches-side-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.matches-side-card__empty {
  padding: 12px 0 4px;
  color: var(--text-soft);
  font-size: 0.78rem;
  text-align: center;
}

.matches-tournaments-card__list {
  display: flex;
  flex-direction: column;
}

.matches-tournament-item {
  display: grid;
  gap: 9px;
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}


.matches-tournament-item__logo {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--text-soft);
  font-size: 0.52rem;
  font-weight: 900;
}

.matches-tournament-item__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.matches-tournament-item__copy span {
  overflow: hidden;
  white-space: nowrap;
}

.matches-tournament-item__copy span:first-child {
  color: var(--text);
  font-weight: 830;
}

.matches-tournament-item__copy span:last-child {
  color: var(--text-soft);
  font-weight: 720;
}

.matches-calendar__weekdays,
.matches-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  text-align: center;
}


.matches-calendar__day {
  display: grid;
  place-items: center;
  color: var(--text);
}

.matches-calendar__day.is-muted {
  color: color-mix(in srgb, var(--text-soft) 44%, transparent);
}

.matches-calendar__day.is-today {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
}

@media (max-width: 999.98px) {

  .matches-sidebar {
    display: none;
  }
}

@media (max-width: 640px) {

  .matches-hero {
    display: block;
    border-radius: 18px;
  }

  .matches-hero__breadcrumbs {
    display: none;
  }


  .matches-toolbar {
    border-radius: 16px;
  }


  .matches-day {
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .matches-day__title {
    font-size: 0.9rem;
  }


  .match-feed-card {
    display: grid;
  }


  .match-feed-card__competition {
    margin-right: 28px;
  }


  .match-feed-card__team {
    justify-content: center;
  }


  .match-feed-card__team--left,
.match-feed-card__team--right {
    align-items: center;
  }


  .match-feed-card__score {
    left: 50%;
    top: 50%;
    gap: 3px;
  }


  .match-feed-card__bookmark {
    top: 7px;
    right: 7px;
  }

  .matches-empty {
    border-radius: 18px;
    padding: 24px 16px;
  }
}

.matches-show-more {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 840;
}

.matches-show-more:hover {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
  color: var(--accent);
}

.matches-show-more span:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--accent);
  font-size: 0.72rem;
}

/* Matches page refinement: unified surface, main-page width, live-first filters and calendar links */
.page-matches {
  --container: 1018px;
}

.page-grid--matches {
  grid-template-columns: minmax(0, 720px) 286px;
  gap: 12px;
  justify-content: center;
}

.matches-page {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.matches-hero {
  margin: 0;
  border: 0;
  background: transparent;
}

.matches-toolbar {
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
  border-radius: 0;
  background: color-mix(in srgb, var(--surface-muted) 58%, var(--surface));
  box-shadow: none;
}


.matches-day {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.matches-day + .matches-day {
  border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

.matches-day__title {
  border-bottom: 1px solid color-mix(in srgb, var(--line) 68%, transparent);
}

.matches-show-more {
  margin: 0;
  border-width: 1px 0 0;
  border-radius: 0;
  background: color-mix(in srgb, var(--surface) 92%, var(--surface-muted));
  box-shadow: none;
}

.matches-priority-filter {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.matches-priority-filter__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.matches-priority-filter__item--star {
  min-width: 32px;
  padding: 0 8px;
  font-size: 0.86rem;
}

.matches-priority-filter__item.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.matches-calendar__day {
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.matches-calendar__day:hover {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  color: var(--accent);
}

.matches-calendar__day.is-selected {
  border-color: color-mix(in srgb, var(--accent) 58%, transparent);
}

.matches-calendar__day.is-today.is-selected {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
}

@media (max-width: 999.98px) {
  .page-grid--matches {
    grid-template-columns: minmax(0, 720px);
  }
}

@media (max-width: 640px) {


  .matches-toolbar__tools {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .matches-priority-filter__item {
    min-height: 30px;
  }

  .matches-day__title {
    margin: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 62%, transparent);
  }


}

/* Matches page refinement: compact header, searchable tournaments, clickable teams and calendar month picker */


.page-matches .app-shell {
  width: min(calc(100% - 20px), 1018px);
}


.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.matches-hero {
  display: block;
}

.matches-filter {
  min-width: auto;
}

.matches-tournament-filter__menu {
  width: min(340px, calc(100vw - 24px));
  max-height: min(430px, calc(100vh - 160px));
  overflow: hidden;
  padding: 8px;
}

.matches-tournament-filter__search {
  display: block;
  position: sticky;
  top: 0;
  z-index: 2;
  margin-bottom: 5px;
  background: var(--surface-strong);
}

.matches-tournament-filter__search input {
  width: 100%;
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-muted);
  color: var(--text);
  outline: none;
  font-size: 0.78rem;
  font-weight: 760;
}

.matches-tournament-filter__search input:focus {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
}

.matches-tournament-filter__options {
  display: grid;
  gap: 3px;
  max-height: min(360px, calc(100vh - 220px));
  overflow-y: auto;
  padding-right: 2px;
}

.matches-tournament-filter__option[hidden],
.matches-tournament-filter__empty[hidden] {
  display: none;
}

.matches-tournament-filter__empty {
  padding: 12px 8px 8px;
  color: var(--text-soft);
  font-size: 0.78rem;
  text-align: center;
}

.match-feed-card__team-name {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: inherit;
}

.match-feed-card__team-name:hover,
.match-feed-card__team-name:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.match-feed-card__bookmark {
  font-size: 1.2rem;
  line-height: 1;
}

.match-feed-card__bookmark span {
  display: inline-block;
  transform: translateY(-1px) scaleX(1.1);
}

.matches-calendar__month-nav {
  justify-content: flex-end;
  min-width: 0;
  font-weight: 850;
}

.matches-calendar__month-nav span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* Matches page refinement: compact calendar, collapsible date groups and favorite markers */


.page-matches .search {
  max-width: 340px;
}

.matches-hero {
  padding: 15px 16px;
}

.matches-hero__title {
  letter-spacing: -0.03em;
}

.matches-hero__description {
  margin-top: 7px;
  font-size: 0.88rem;
}

.matches-day {
  border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

.matches-day:first-child {
  border-top: 0;
}

.matches-day__title {
  display: grid;
  align-items: center;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.matches-day__title::-webkit-details-marker {
  display: none;
}

.matches-day__title-main {
  display: inline-flex;
  min-width: 0;
}


.matches-day__meta {
  justify-content: center;
}

.matches-day__chevron {
  transition: transform 160ms ease, color 160ms ease;
}


.matches-tournament-filter__summary {
  line-height: 1;
}

.matches-tournament-filter__chevron {
  line-height: 1;
}

.match-feed-card__team-name,
.match-feed-card__competition-copy span,
.matches-tournament-item__copy span {
  text-overflow: clip;
}

.matches-calendar {
  padding-bottom: 11px;
}

.matches-calendar__month-nav {
  font-size: 0.66rem;
}


.matches-calendar__day {
  aspect-ratio: auto;
}

.matches-calendar__day--disabled {
  cursor: not-allowed;
  opacity: 0.34;
}

.matches-calendar__day.is-today {
  box-shadow: 0 5px 12px color-mix(in srgb, var(--accent) 18%, transparent);
}

@media (max-width: 640px) {
  .page-matches .hero {
    padding: 8px 10px;
  }

  .page-matches .search {
    max-width: none;
  }


}

/* Matches page refinement: calendar navigation without page reload and cleaner match rows */
.matches-hero__title {
  font-size: clamp(1.26rem, 2vw, 1.56rem);
}


.matches-day__label {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 920;
  text-overflow: clip;
}


.matches-day__chevron {
  font-weight: 900;
  line-height: 1;
}


.matches-day__title:hover .matches-day__chevron,
.matches-day__title:focus-visible .matches-day__chevron {
  border-color: color-mix(in srgb, var(--accent) 26%, var(--line));
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}

.match-feed-card {
  grid-template-columns: 116px minmax(112px, 1fr) 78px minmax(112px, 1fr) minmax(158px, 0.74fr) 30px;
}

.match-feed-card__time {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.match-feed-card__clock {
  flex: 0 0 42px;
}

.match-feed-card__status {
  flex: 0 0 auto;
  padding-inline: 6px;
}

.matches-tournament-filter__summary {
  gap: 9px;
}

.matches-tournament-filter__chevron {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: currentColor;
  transform: none;
}

.matches-tournament-filter__chevron svg {
  display: block;
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.matches-tournament-filter[open] .matches-tournament-filter__chevron svg {
  transform: rotate(180deg);
}


.matches-calendar__month-nav {
  display: grid;
  color: var(--text);
}

.matches-calendar__month-button {
  place-items: center;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.matches-calendar__month-button:hover:not(:disabled),
.matches-calendar__month-button:focus-visible:not(:disabled) {
  outline: none;
}

.matches-calendar__month-button:disabled {
  cursor: default;
  opacity: 0.3;
}

.matches-calendar__month-button svg {
  stroke: currentColor;
  fill: none;
}

.matches-calendar__weekdays {
  letter-spacing: 0.02em;
}


/* Matches page refinement: clearer day toggles and non-popup calendar header */
.matches-day__chevron {
  font-size: 0;
  transform: none;
}

.matches-day[open] .matches-day__chevron {
  transform: none;
}

.matches-day__chevron svg {
  display: block;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: transform 160ms ease;
}

.matches-day[open] .matches-day__chevron svg {
  transform: rotate(180deg);
}


.matches-calendar__month-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 8px;
  line-height: 1;
  text-align: center;
  user-select: none;
}

/* Matches page refinement: calendar visual polish and incremental pagination */
.match-feed-card__time {
  grid-template-columns: 42px auto;
}

.matches-day__title {
  grid-template-columns: minmax(0, 1fr) 22px;
  gap: 8px;
}

.matches-day__title-main {
  align-items: center;
  gap: 8px;
}

.matches-day__label {
  white-space: nowrap;
}

.matches-day__meta {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 9px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.matches-day__title span:last-child.matches-day__meta {
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 850;
}

.matches-day__chevron {
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.matches-day__title:hover .matches-day__chevron,
.matches-day__title:focus-visible .matches-day__chevron {
  color: var(--accent);
}

.matches-day__chevron svg {
  stroke: currentColor;
}

.matches-calendar {
  padding: 17px 18px 16px;
  border-radius: 24px;
}


.matches-calendar__month-button {
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}


.matches-calendar__month-label {
  border-radius: 0;
  background: transparent;
  letter-spacing: -0.02em;
}

.matches-calendar__weekdays {
  margin-bottom: 8px;
  color: color-mix(in srgb, var(--text-soft) 82%, var(--text));
  font-size: 0.65rem;
  font-weight: 850;
}

.matches-calendar__grid {
  gap: 5px 2px;
}

.matches-calendar__day {
  min-height: 28px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 850;
}


.matches-calendar__day.is-today:not(.is-selected) {
  box-shadow: none;
}

@media (max-width: 640px) {
  .matches-day__title {
    grid-template-columns: minmax(0, 1fr) 22px;
  }

  .matches-day__title-main {
    flex-wrap: wrap;
  }

  .matches-day__meta {
    display: inline-flex;
  }
}

.matches-day__meta {
  border-color: color-mix(in srgb, var(--line) 88%, transparent);
  background: color-mix(in srgb, var(--surface-muted) 82%, var(--surface));
  color: color-mix(in srgb, var(--text-soft) 82%, var(--text));
  box-shadow: none;
}

.matches-day__chevron {
  width: 18px;
  height: 18px;
  color: color-mix(in srgb, var(--text-soft) 92%, var(--text));
}

.matches-day__chevron svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.7;
}

.matches-calendar__month-nav {
  margin-bottom: 13px;
}


.matches-calendar__day.is-selected {
  border: 1px solid color-mix(in srgb, var(--text-soft) 22%, var(--line));
  background: color-mix(in srgb, var(--surface-muted) 90%, var(--surface));
  color: var(--text);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--surface) 72%, transparent);
}

.matches-calendar__day.is-selected:hover,
.matches-calendar__day.is-selected:focus-visible {
  background: color-mix(in srgb, var(--surface-muted) 78%, var(--surface));
  color: var(--text);
}

.matches-calendar__day.is-today:not(.is-selected) {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}

.matches-active-summary {
  margin: 0;
  padding: 9px 16px;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 0;
  background: color-mix(in srgb, var(--surface-muted) 62%, var(--surface));
  color: var(--text-soft);
}

.matches-active-summary a {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
}

.matches-show-more.is-loading {
  opacity: 0.68;
  pointer-events: none;
}

/* Matches page refinement: compact calendar controls and removable filter chips */
.matches-active-summary__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, var(--surface-muted));
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.matches-active-summary__chip:hover,
.matches-active-summary__chip:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  color: var(--text);
}

.matches-active-summary__reset {
  margin-left: auto;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .matches-active-summary__reset {
    margin-left: 0;
  }
}


.matches-calendar__month-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.matches-calendar__month-button svg {
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: center;
}

.matches-calendar__month-label {
  height: 22px;
}

.matches-show-more {
  gap: 0;
}

.matches-show-more > span:only-child {
  display: inline;
  min-width: 0;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.matches-show-more > span:last-child:not(:only-child) {
  display: none;
}

.matches-active-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.matches-active-summary__count {
  color: color-mix(in srgb, var(--text-soft) 84%, var(--text));
  font-weight: 820;
}

.matches-active-summary__chips {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.matches-active-summary .matches-active-summary__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, var(--surface-muted));
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.matches-active-summary .matches-active-summary__chip:hover,
.matches-active-summary .matches-active-summary__chip:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  background: color-mix(in srgb, var(--surface) 82%, var(--surface-muted));
  color: var(--text);
}

.matches-active-summary__chip-remove {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  color: color-mix(in srgb, var(--text-soft) 82%, var(--text));
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
}

.matches-active-summary .matches-active-summary__reset {
  margin-left: auto;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .matches-active-summary {
    align-items: flex-start;
  }

  .matches-active-summary__chips {
    flex-basis: 100%;
  }

  .matches-active-summary .matches-active-summary__reset {
    margin-left: 0;
  }
}
/* Matches page refinement: denser match schedule, calendar controls and live/tournament sidebar polish */
.matches-day__title {
  border-top: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
}


.matches-calendar__month-nav {
  align-items: center;
}

.matches-calendar__month-button {
  color: color-mix(in srgb, var(--text-soft) 78%, var(--text));
}

.matches-calendar__month-button:hover:not(:disabled),
.matches-calendar__month-button:focus-visible:not(:disabled) {
  color: color-mix(in srgb, var(--text-soft) 54%, var(--text));
}


.matches-calendar__month-label {
  color: color-mix(in srgb, var(--text-soft) 80%, var(--text));
  font-size: 0.9rem;
  font-weight: 850;
}

.matches-tournaments-card__header {
  align-items: flex-start;
  margin-bottom: 8px;
}

.matches-tournaments-card__filters {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 30px;
  padding: 2px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-muted) 74%, var(--surface));
}

.matches-tournaments-card__filter {
  display: inline-grid;
  min-width: 30px;
  height: 26px;
  place-items: center;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
}

.matches-tournaments-card__filter.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 6px 13px color-mix(in srgb, var(--text) 8%, transparent);
}

.matches-tournaments-card__filter[data-matches-tournament-tier-filter="tier1"] {
  color: var(--accent);
  font-size: 0.92rem;
}


.matches-tournament-item[hidden] {
  display: none;
}


.matches-tournament-item__logo img {
  width: 100%;
  height: 100%;
}


.matches-tournaments-card__tier-empty {
  margin: 4px 0 6px;
  padding: 9px;
}

.matches-tournaments-card__all-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  min-height: 30px;
  margin-top: 0;
  padding: 0 9px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  background: color-mix(in srgb, var(--surface) 92%, var(--surface-strong));
  color: color-mix(in srgb, var(--text) 88%, var(--text-soft));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.62) inset;
  font-size: 0.78rem;
  font-weight: 820;
  line-height: 1;
  text-decoration: none;
}

.matches-tournaments-card__all-link:hover,
.matches-tournaments-card__all-link:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
  background: color-mix(in srgb, var(--accent) 2.5%, var(--surface));
  color: var(--text);
}

/* Matches page refinement: date popup filter, denser rows, flat live list and stable sidebar scroll */
.matches-toolbar__tools {
  position: relative;
}

.matches-date-filter {
  position: relative;
}

.matches-date-filter__summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 36px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 820;
  line-height: 1;
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
}

.matches-date-filter__summary::-webkit-details-marker {
  display: none;
}

.matches-date-filter__summary:hover,
.matches-date-filter__summary:focus-visible,
.matches-date-filter[open] .matches-date-filter__summary,
.matches-date-filter.is-active .matches-date-filter__summary {
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
  color: var(--accent);
}

.matches-date-filter__icon,
.matches-date-filter__icon svg {
  flex: 0 0 auto;
}

.matches-date-filter__icon svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.matches-date-filter:not(.is-active) .matches-date-filter__label {
  display: none;
}

.matches-date-filter__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 95;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 18px;
  box-shadow: 0 20px 42px color-mix(in srgb, var(--text) 16%, transparent);
}

.matches-date-filter__menu .matches-calendar {
  border: 0;
  border-radius: 14px;
  box-shadow: none;
}


.matches-date-filter__reset {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin-top: 6px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 11px;
  background: var(--surface-strong);
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 820;
  text-decoration: none;
}

.matches-date-filter__reset:hover,
.matches-date-filter__reset:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
  color: var(--accent);
}

.matches-list {
  gap: 8px;
}

.matches-day__title {
  min-height: 38px;
  background: color-mix(in srgb, var(--surface-muted) 96%, var(--surface));
  border-bottom-color: color-mix(in srgb, var(--line) 88%, transparent);
}

.matches-day__title:hover,
.matches-day__title:focus-visible {
  background: color-mix(in srgb, var(--surface-muted) 98%, var(--surface));
}


.matches-calendar__month-nav {
  grid-template-columns: 30px minmax(0, 1fr) 30px;
  gap: 9px;
}

.matches-calendar__month-button {
  width: 30px;
  min-width: 30px;
  height: 22px;
  min-height: 22px;
  border-radius: 8px;
  border-color: color-mix(in srgb, var(--line) 78%, transparent);
  background: color-mix(in srgb, var(--surface) 88%, var(--surface-muted));
  box-shadow: none;
}

.matches-calendar__month-button:hover:not(:disabled),
.matches-calendar__month-button:focus-visible:not(:disabled) {
  border-color: color-mix(in srgb, var(--accent) 16%, var(--line));
  background: color-mix(in srgb, var(--surface) 94%, var(--surface-muted));
  box-shadow: none;
}

.matches-calendar__month-button svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
  transform: scaleX(1.1);
}


@media (max-width: 640px) {
  .matches-date-filter__menu {
    right: 0;
    width: min(286px, calc(100vw - 18px));
  }

}

/* Matches page refinement: compact live list, denser match rows and natural sidebar flow */
.matches-day__list {
  background: var(--surface);
}

.match-feed-card {
  min-height: 52px;
  padding: 5px 9px;
  gap: 7px;
}

.match-feed-card__time {
  gap: 4px;
}

.match-feed-card__clock {
  font-size: 0.8rem;
}

.match-feed-card__status {
  min-height: 19px;
  padding: 0 7px;
  font-size: 0.6rem;
}

.match-feed-card__logo,
.match-feed-card__logo--fallback {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  border-radius: 8px;
}

.match-feed-card__team {
  gap: 6px;
}

.match-feed-card__team-name {
  font-size: 0.78rem;
}

.match-feed-card__score-main {
  font-size: 1rem;
}

.match-feed-card__format {
  font-size: 0.57rem;
}

.match-feed-card__competition-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.match-feed-card__competition-copy span:first-child {
  font-size: 0.74rem;
}

.match-feed-card__competition-copy span:last-child {
  font-size: 0.62rem;
}

.matches-date-filter__menu {
  background: var(--surface);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.matches-date-filter__menu .matches-calendar {
  background: var(--surface);
}


/* Matches page refinement: final sorting/status/read-also cleanup */
.match-feed-card__status--finished {
  background: color-mix(in srgb, var(--surface-muted) 86%, var(--surface));
  color: color-mix(in srgb, var(--text-soft) 88%, var(--text));
}


.read-also--matches .read-also__grid {
  gap: 10px;
}

.read-also--matches .read-also__card {
  border-radius: 13px;
}

.read-also--matches .read-also__thumb {
  aspect-ratio: 16 / 6.4;
}

.read-also--matches .read-also__body {
  min-height: 78px;
  gap: 8px;
  padding: 9px 10px 10px;
}

.read-also--matches .read-also__headline {
  font-size: 0.86rem;
  line-height: 1.22;
}

.read-also--matches .read-also__meta {
  font-size: 0.7rem;
}

@media (max-width: 640px) {
  .read-also--matches .read-also__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Matches page refine: footer navigation, natural sidebar flow and detached read-also block */
.matches-main-stack {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}

.read-also--matches {
  margin-top: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.read-also--matches::before,
.read-also--matches::after {
  content: none;
}

@media (max-width: 640px) {
  .matches-main-stack {
    gap: 10px;
  }

  .read-also--matches {
    padding: 10px;
    border-radius: 18px;
  }
}


/* Refinement: unified desktop grid/header and adaptive matches sidebar */
body.page-home,
body.page-post,
body.page-trends,
body.page-about,
body.page-matches {
  --container: 1018px;
}

@media (min-width: 1080px) {
  .page-grid,
.page-grid--home,
.page-grid--matches {
    grid-template-columns: minmax(0, 720px) 286px;
    gap: 12px;
    justify-content: center;
  }

  .page-grid--single {
    grid-template-columns: minmax(0, 720px);
  }
}

.hero {
  width: 100%;
}


.popular-card [data-sidebar-fit-item][hidden] {
  display: none;
}

.matches-tournaments-card__all-link.sidebar-matches-card__all-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  padding: 0 9px;
  line-height: 1;
  text-decoration: none;
}


.matches-tournaments-card__all-link .sidebar-matches-card__all-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: 4px;
  color: color-mix(in srgb, var(--text-soft) 78%, var(--text));
  font-size: 1.26rem;
  font-weight: 850;
  line-height: 1;
  transform: translateY(-1px);
}

.read-also--matches .read-also__header--matches {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 4px;
  margin-top: -5px;
}

.read-also--matches .read-also__title--matches {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-left: 10px;
}

.read-also__all-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  border-radius: 13px;
  background: color-mix(in srgb, var(--surface) 90%, var(--surface-strong));
  color: color-mix(in srgb, var(--text-soft) 86%, var(--text));
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
}

.read-also__all-link:hover,
.read-also__all-link:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
  color: var(--accent);
}

.read-also__all-link span:last-child {
  font-size: 1.2rem;
  line-height: 1;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .read-also--matches .read-also__header--matches {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .read-also__all-link {
    width: 100%;
  }
}


/* Refinement: read-also CTA */
.read-also__header--matches {
  align-items: center;
}

.read-also__all-link--matches {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 27px;
  padding: 0 13px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 92%, var(--surface-strong));
  color: color-mix(in srgb, var(--text) 88%, var(--text-soft));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.62) inset;
  font-size: 0.82rem;
  font-weight: 840;
  line-height: 1;
  text-decoration: none;
}

.read-also__all-link--matches:hover,
.read-also__all-link--matches:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
  background: color-mix(in srgb, var(--accent) 2.5%, var(--surface));
  color: var(--text);
}

/* Refinement: match sidebar blocks use the same header/filter/button rhythm as the home matches card */
.page-matches .matches-live-card.sidebar-matches-card,
.page-matches .matches-tournaments-card.sidebar-matches-card {
  padding: 10px 14px 10px;
}

.page-matches .matches-live-card .sidebar-matches-card__header,
.page-matches .matches-tournaments-card .sidebar-matches-card__header {
  align-items: flex-start;
  gap: 10px;
  min-height: 28px;
  margin-bottom: 0px;
  padding-right: 0;
}

.page-matches .matches-live-card .sidebar-matches-card__title,
.page-matches .matches-tournaments-card .sidebar-matches-card__title {
  padding-right: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 0px;
  margin-top: 0px;
}

.page-matches .matches-live-card .sidebar-matches-card__controls,
.page-matches .matches-tournaments-card .sidebar-matches-card__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
  flex: 0 0 auto;
}

.page-matches .matches-live-card .sidebar-matches-card__filters,
.page-matches .matches-tournaments-card .sidebar-matches-card__filters {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: auto;
  margin-top: -2px;
  padding: 1px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
}

.page-matches .matches-live-card .sidebar-matches-card__filter,
.page-matches .matches-tournaments-card .sidebar-matches-card__filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  min-height: 24px;
  height: auto;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
}

.page-matches .matches-live-card .sidebar-matches-card__filter[data-match-filter="tier1"],
.page-matches .matches-tournaments-card .sidebar-matches-card__filter[data-matches-tournament-tier-filter="tier1"] {
  min-width: 30px;
  padding: 0 8px;
  color: var(--accent);
  font-size: 0.82rem;
}

.page-matches .matches-live-card .sidebar-matches-card__filter.is-active,
.page-matches .matches-tournaments-card .sidebar-matches-card__filter.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.page-matches .matches-tournaments-card .sidebar-matches-card__filter[data-matches-tournament-tier-filter="tier1"].is-active {
  background: var(--text);
  color: var(--surface);
  box-shadow: 0 7px 16px color-mix(in srgb, var(--text) 14%, transparent);
}

.page-matches .matches-tournaments-card .matches-tournaments-card__list {
  margin-top: 0;
}

.page-matches .matches-tournaments-card .sidebar-matches-card__all-link {
  min-height: 30px;
  margin-top: 0px;
}

/* Refinement: hourly wide upcoming sync UX, mobile tournament icon and mobile matches read-also placement */
.matches-tournament-filter__icon {
  display: none;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: currentColor;
}

.matches-tournament-filter__icon svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 640px) {


  .matches-tournament-filter__summary {
    max-width: 42px;
    justify-content: center;
  }

  .matches-tournament-filter__icon {
    display: inline-flex;
  }

  .matches-tournament-filter__label,
.matches-tournament-filter__summary .matches-tournament-filter__chevron {
    display: none;
  }

  .page-matches .matches-main-stack {
    display: flex;
    flex-direction: column;
  }

  .page-matches .read-also--matches {
    order: 2;
  }
}

/* Matches page mobile refinement: compact filters, cards and related block */
@media (max-width: 640px) {
  body.page-matches {
    --container: 100%;
  }

  .page-matches .app-shell,
.page-matches .main-shell {
    width: 100%;
    max-width: 100%;
  }

  .page-matches .app-shell {
    margin-top: 8px;
    padding-inline: 8px;
  }

  .page-matches .main-shell {
    margin-top: 10px;
  }

  .page-grid--matches {
    display: block;
    width: 100%;
  }

  .matches-page {
    overflow: visible;
    border-radius: 18px;
  }

  .matches-hero {
    padding: 18px 16px 16px;
  }

  .matches-hero__copy {
    width: 100%;
  }

  .matches-hero__title {
    font-size: 1.42rem;
    line-height: 1.08;
    letter-spacing: -0.03em;
  }

  .matches-hero__description {
    max-width: none;
    width: min(100%, 34rem);
    margin-top: 8px;
    font-size: 0.92rem;
    line-height: 1.34;
    text-wrap: balance;
  }

  .matches-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 10px 8px;
    overflow: hidden;
  }

  .matches-filters,
.matches-toolbar__tools {
    display: flex;
    width: 100%;
    min-width: 0;
    gap: 7px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .matches-filters::-webkit-scrollbar,
.matches-toolbar__tools::-webkit-scrollbar {
    display: none;
  }

  .matches-filter,
.matches-priority-filter,
.matches-date-filter,
.matches-tournament-filter,
.matches-tournament-filter__summary {
    flex: 0 0 auto;
  }

  .matches-filter {
    min-height: 34px;
    padding: 0 13px;
    border-radius: 13px;
    font-size: 0.78rem;
  }

  .matches-toolbar__tools {
    justify-content: flex-start;
  }

  .matches-tournament-filter__summary {
    width: 40px;
    min-width: 40px;
    min-height: 38px;
    padding: 0;
    border-radius: 14px;
    gap: 0;
  }

  .matches-tournament-filter__chevron {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .matches-tournament-filter__menu {
    position: fixed;
    top: auto;
    right: 10px;
    bottom: 14px;
    left: 10px;
    width: auto;
    max-height: min(70vh, 520px);
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.24);
  }

  .matches-priority-filter {
    min-height: 38px;
  }

  .matches-day__title {
    min-height: 46px;
    padding: 0 12px;
    background: color-mix(in srgb, var(--surface-muted) 74%, var(--surface));
  }

  .matches-day__label {
    font-size: 0.92rem;
  }

  .matches-day__meta {
    min-height: 24px;
    padding: 0 9px;
    font-size: 0.72rem;
  }

  .matches-day__list {
    display: grid;
    gap: 8px;
    padding: 8px;
    background: color-mix(in srgb, var(--surface-muted) 35%, transparent);
  }

  .match-feed-card {
    grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr) 22px;
    grid-template-areas:
      "time time competition bookmark"
      "left score right bookmark";
    gap: 8px 8px;
    min-height: 96px;
    padding: 10px;
    border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
  }

  .match-feed-card  .match-feed-card {
    margin-top: 0;
  }

  .match-feed-card__time {
    grid-area: time;
    display: flex;
    min-width: 0;
    gap: 7px;
    align-items: center;
    justify-content: flex-start;
  }

  .match-feed-card__clock {
    flex: 0 0 auto;
    min-width: 38px;
    font-size: 0.82rem;
  }

  .match-feed-card__status {
    min-height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 0.58rem;
  }

  .match-feed-card__competition {
    grid-area: competition;
    justify-self: end;
    align-self: center;
    max-width: 100%;
    margin: 0 2px 0 0;
    pointer-events: auto;
  }

  .match-feed-card__competition-logo {
    display: none;
  }

  .match-feed-card__competition-copy {
    align-items: flex-end;
    max-width: 112px;
  }

  .match-feed-card__competition-copy span:first-child {
    max-width: 112px;
    color: var(--text-soft);
    font-size: 0.67rem;
    font-weight: 840;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .match-feed-card__competition-copy span:last-child {
    display: block;
    max-width: 112px;
    overflow: hidden;
    color: color-mix(in srgb, var(--text-soft) 86%, var(--text));
    font-size: 0.58rem;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .match-feed-card__team {
    display: flex;
    min-width: 0;
    gap: 6px;
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .match-feed-card__team--left {
    grid-area: left;
    justify-content: center;
  }

  .match-feed-card__team--right {
    grid-area: right;
    justify-content: center;
  }

  .match-feed-card__team--left .match-feed-card__team-name {
    order: 2;
  }

  .match-feed-card__team-name {
    width: 100%;
    max-width: 112px;
    overflow: hidden;
    color: var(--text);
    font-size: 0.78rem;
    line-height: 1.16;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .match-feed-card__logo,
.match-feed-card__logo--fallback {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 10px;
  }

  .match-feed-card__score {
    grid-area: score;
    position: static;
    align-self: center;
    justify-self: center;
    min-width: 56px;
    transform: none;
  }

  .match-feed-card__score-main {
    font-size: 1.12rem;
  }

  .match-feed-card__format {
    font-size: 0.58rem;
  }

  .match-feed-card__bookmark {
    grid-area: bookmark;
    position: static;
    align-self: center;
    justify-self: end;
    width: 20px;
    height: 48px;
    color: color-mix(in srgb, var(--text-soft) 82%, transparent);
  }

  .matches-sidebar {
    display: none;
  }
}


/* Matches mobile: compact read-also block */
@media (max-width: 640px) {
  .page-matches .read-also--matches {
    padding: 14px;
    border-radius: 18px;
    overflow: hidden;
  }

  .page-matches .read-also--matches .read-also__header--matches,
.page-matches .read-also--matches .read-also__header {
    display: block;
    margin: 0 0 12px;
  }

  .page-matches .read-also--matches .read-also__all-link,
.page-matches .read-also--matches .read-also__all-link--matches {
    display: none !important;
  }

  .page-matches .read-also--matches .read-also__title,
.page-matches .read-also--matches .read-also__title--matches {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.2;
  }

  .page-matches .read-also--matches .read-also__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .page-matches .read-also--matches .read-also__card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    min-height: 94px;
    border-radius: 15px;
  }

  .page-matches .read-also--matches .read-also__thumb {
    min-height: 94px;
    height: 100%;
    aspect-ratio: auto;
  }

  .page-matches .read-also--matches .read-also__body {
    min-height: 94px;
    padding: 10px 11px;
  }

  .page-matches .read-also--matches .read-also__headline {
    font-size: 0.86rem;
    line-height: 1.22;
    -webkit-line-clamp: 3;
  }

  .page-matches .read-also--matches .read-also__meta {
    font-size: 0.72rem;
  }
}

/* Matches mobile: one-line description and one-row filters */
@media (max-width: 640px) {
  .page-matches .matches-hero__description {
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    text-wrap: pretty;
  }

  .page-matches .matches-toolbar {
    overscroll-behavior-x: contain;
  }


}

/* Matches mobile: ultra-compact one-row filters */
@media (max-width: 640px) {
  .page-matches .matches-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .page-matches .matches-toolbar::-webkit-scrollbar {
    display: none;
  }

  .page-matches .matches-filters,
.page-matches .matches-toolbar__tools {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    overflow: visible;
  }

  .page-matches .matches-toolbar__tools {
    margin-left: 0;
  }

  .page-matches .matches-filter {
    font-weight: 820;
    white-space: nowrap;
  }


  .page-matches .matches-tournament-filter__summary,
.page-matches .matches-date-filter__summary {
    padding: 0;
  }


  .page-matches .matches-priority-filter__item--star {
    padding-inline: 6px;
  }
}

/* Matches mobile: compact linear match rows */
@media (max-width: 640px) {
  .page-matches .matches-day__list {
    display: grid;
    background: color-mix(in srgb, var(--surface-muted) 34%, transparent);
  }

  .page-matches .match-feed-card {
    display: grid;
    box-shadow: none;
  }

  .page-matches .match-feed-card__time {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .page-matches .match-feed-card__clock {
    min-width: 0;
    font-weight: 900;
    line-height: 1;
  }

  .page-matches .match-feed-card__status {
    border-radius: 999px;
    line-height: 1;
    white-space: nowrap;
  }

  .page-matches .match-feed-card__competition {
    pointer-events: auto;
  }


  .page-matches .match-feed-card__team {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: initial;
  }

  .page-matches .match-feed-card__team--left .match-feed-card__team-name {
    order: 0;
  }

  .page-matches .match-feed-card__team--left .match-feed-card__logo,
.page-matches .match-feed-card__team--left .match-feed-card__logo--fallback {
    order: 1;
  }

  .page-matches .match-feed-card__team-name {
    width: auto;
    max-width: 100%;
    overflow: hidden;
    font-weight: 860;
    text-overflow: ellipsis;
    white-space: nowrap;
  }


  .page-matches .match-feed-card__score {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: none;
  }

  .page-matches .match-feed-card__score-main {
    font-weight: 920;
    line-height: 1;
  }

  .page-matches .match-feed-card__format {
    font-weight: 850;
    line-height: 1;
  }

  .page-matches .match-feed-card__bookmark {
    position: static;
    color: color-mix(in srgb, var(--text-soft) 84%, var(--text));
  }
}

/* Matches mobile: swap time/status and center competition line */


/* Matches mobile: center tournament line across the whole card */
@media (max-width: 640px) {
  .page-matches .match-feed-card {
    align-items: center;
  }

  .page-matches .match-feed-card__competition {
    margin: 0;
 /* компенсируем левую колонку времени и правую стрелку */
  }

  .page-matches .match-feed-card__competition-copy {
    text-align: center;
  }

  .page-matches .match-feed-card__competition-copy span:first-child,
.page-matches .match-feed-card__competition-copy span:last-child {
    min-width: 0;
  }


  .page-matches .match-feed-card__competition-copy span:first-child::after {
    color: color-mix(in srgb, var(--text-soft) 65%, transparent);
    font-weight: 850;
  }


  .page-matches .match-feed-card__status {
    order: 1;
  }

  .page-matches .match-feed-card__clock {
    order: 2;
  }


}

/* Matches mobile: compact All / Star switch */
@media (max-width: 640px) {
  .page-matches .matches-priority-filter {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    overflow: hidden;
  }

  .page-matches .matches-priority-filter__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    line-height: 1;
  }

  .page-matches .matches-priority-filter__item--star {
    padding: 0;
  }
}

/* Matches final fixes: start-time rows, indexable match pages and filter layering */
.page-matches .matches-toolbar {
  position: relative;
  z-index: 70;
  overflow: visible;
}

.page-matches .matches-toolbar:has(.matches-tournament-filter[open], .matches-date-filter[open]) {
  z-index: 320;
}

.page-matches .matches-tournament-filter,
.page-matches .matches-date-filter {
  position: relative;
}

.page-matches .matches-tournament-filter[open],
.page-matches .matches-date-filter[open] {
  z-index: 330;
}

.page-matches .matches-tournament-filter__menu,
.page-matches .matches-date-filter__menu {
  z-index: 900;
}

.page-matches .matches-tournament-filter__summary .matches-tournament-filter__icon {
  display: none;
}

.page-matches .matches-tournament-filter__summary .matches-tournament-filter__label {
  display: block;
  max-width: 146px;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 640px) {
  .page-matches .matches-toolbar,
.page-matches .matches-toolbar__tools {
    overflow: visible;
  }

  .page-matches .matches-filters {
    overflow-x: auto;
    overflow-y: hidden;
  }

  .page-matches .matches-tournament-filter__summary::before {
    content: none;
  }

  .page-matches .matches-tournament-filter__summary .matches-tournament-filter__icon {
    position: static;
    overflow: visible;
    clip: auto;
    color: color-mix(in srgb, var(--text-soft) 78%, var(--text));
    white-space: normal;
  }

  .page-matches .matches-tournament-filter__icon svg {
    stroke-width: 2;
  }


  .page-matches .match-feed-card__logo,
.page-matches .match-feed-card__logo--fallback {
    flex-basis: 20px;
    font-size: 0.5rem;
  }


}

/* Matches all-tab flow, trends header and mobile tournament filter */
@media (min-width: 641px) and (max-width: 860px) {
  .page-trends .trends-page__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .page-trends .trends-page__heading {
    flex: 1 1 auto;
    min-width: 0;
  }

  .page-trends .trends-page__periods {
    display: inline-flex;
    flex: 0 0 auto;
    width: auto;
    margin-top: 0;
  }
}

@media (min-width: 901px) and (max-width: 999.98px) {
  .page-matches .page-grid--matches {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    justify-content: stretch;
  }

  .page-matches .matches-main-stack,
.page-matches .matches-page {
    width: 100%;
    max-width: 100%;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .page-matches .matches-main-stack {
    display: flex;
    flex-direction: column;
  }

  .page-matches .matches-page {
    order: 1;
  }

  .page-matches .read-also--matches {
    order: 2;
  }
}

@media (max-width: 640px) {
  .page-matches .matches-tournament-filter__summary {
    padding: 0;
    justify-content: center;
  }

  .page-matches .matches-tournament-filter__summary .matches-tournament-filter__icon {
    display: inline-flex;
  }

  .page-matches .matches-tournament-filter__label,
.page-matches .matches-tournament-filter__summary .matches-tournament-filter__chevron {
    display: none !important;
  }
}

/* Matches mobile: denser match row with tournament metadata near the arrow */
@media (max-width: 640px) {
  .page-matches .matches-day__list {
    gap: 5px;
    padding: 6px;
  }

  .page-matches .match-feed-card {
    grid-template-columns: 48px minmax(64px, 1fr) 32px minmax(64px, 1fr) minmax(54px, 0.54fr) 10px;
    grid-template-areas: "time left score right competition bookmark";
    min-height: 48px;
    padding: 5px 7px;
    gap: 4px;
    border-radius: 12px;
  }

  .page-matches .match-feed-card__time {
    grid-area: time;
    align-items: center;
    justify-content: center;
    gap: 2px;
  }

  .page-matches .match-feed-card__status {
    min-height: 15px;
    padding: 0 5px;
    font-size: 0.45rem;
  }

  .page-matches .match-feed-card__clock {
    font-size: 0.74rem;
  }

  .page-matches .match-feed-card__team {
    gap: 4px;
    min-width: 0;
  }

  .page-matches .match-feed-card__team--left {
    grid-area: left;
    justify-content: flex-end;
    text-align: right;
  }

  .page-matches .match-feed-card__team--right {
    grid-area: right;
    justify-content: flex-start;
    text-align: left;
  }

  .page-matches .match-feed-card__team-name {
    min-width: 0;
    font-size: 0.66rem;
    line-height: 1;
  }

  .page-matches .match-feed-card__logo,
.page-matches .match-feed-card__logo--fallback {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    border-radius: 6px;
  }

  .page-matches .match-feed-card__score {
    grid-area: score;
    min-width: 32px;
    gap: 1px;
  }

  .page-matches .match-feed-card__score-main {
    font-size: 0.9rem;
    letter-spacing: 0;
  }

  .page-matches .match-feed-card__format {
    font-size: 0.44rem;
  }

  .page-matches .match-feed-card__competition {
    grid-area: competition;
    justify-self: stretch;
    align-self: center;
    width: 100%;
    max-width: 100%;
    padding: 0;
    text-align: right;
  }

  .page-matches .match-feed-card__competition-logo {
    display: none;
  }

  .page-matches .match-feed-card__competition-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .page-matches .match-feed-card__competition-copy span:first-child,
.page-matches .match-feed-card__competition-copy span:last-child {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    line-height: 1.02;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-matches .match-feed-card__competition-copy span:first-child {
    color: color-mix(in srgb, var(--text-soft) 92%, var(--text));
    font-size: 0.51rem;
    font-weight: 850;
  }

  .page-matches .match-feed-card__competition-copy span:last-child {
    color: var(--text-soft);
    font-size: 0.48rem;
    font-weight: 760;
  }

  .page-matches .match-feed-card__competition-copy span:first-child::after {
    content: none !important;
  }

  .page-matches .match-feed-card__bookmark {
    grid-area: bookmark;
    width: 10px;
    height: 24px;
    align-self: center;
    justify-self: end;
  }
}

/* Matches mobile: fit all toolbar filters into one row */
@media (max-width: 640px) {
  .page-matches .matches-toolbar {
    gap: 4px;
    padding: 8px 5px;
  }

  .page-matches .matches-filters,
.page-matches .matches-toolbar__tools {
    gap: 3px;
  }

  .page-matches .matches-filter {
    min-height: 28px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 0.66rem;
    gap: 4px;
  }

  .page-matches .matches-filter[href*="finished"],
.page-matches .matches-filter[href*="future"] {
    padding-inline: 6px;
  }

  .page-matches .matches-filter__dot {
    width: 5px;
    height: 5px;
  }

  .page-matches .matches-tournament-filter__summary,
.page-matches .matches-date-filter__summary {
    width: 28px;
    min-width: 28px;
    max-width: 28px;
    height: 28px;
    min-height: 28px;
    border-radius: 10px;
  }

  .page-matches .matches-tournament-filter__summary .matches-tournament-filter__icon,
.page-matches .matches-tournament-filter__icon svg,
.page-matches .matches-date-filter__icon,
.page-matches .matches-date-filter__icon svg {
    width: 13px;
    height: 13px;
  }

  .page-matches .matches-priority-filter {
    width: 58px;
    min-width: 58px;
    height: 28px;
    min-height: 28px;
    padding: 1px;
    gap: 0;
  }

  .page-matches .matches-priority-filter__item {
    width: 28px;
    min-width: 28px;
    height: 26px;
    min-height: 26px;
    padding: 0;
    font-size: 0.66rem;
  }

  .page-matches .matches-priority-filter__item--star {
    width: 28px;
    min-width: 28px;
    font-size: 0.82rem;
  }
}

/* Header layout: integrated two-row navigation */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  justify-content: normal;
  padding: 0;
}

.hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.hero__identity {
  flex: 0 1 330px;
}

.hero__controls {
  flex: 1 1 auto;
  min-width: 0;
}

.search {
  position: relative;
  flex: 1 1 auto;
  width: auto;
}


.hero__actions {
  flex: 0 0 auto;
}


.hero-nav-spacer[hidden] {
  display: none;
}


.hero-nav-shell {
  position: relative;
  z-index: 90;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  border-top: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(12px);
}

.hero-nav-shell.is-fixed {
  position: fixed;
  left: 50%;
  z-index: 220;
  grid-template-columns: auto minmax(0, 1fr) auto;
  width: min(calc(100% - 20px), var(--container));
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  background: color-mix(in srgb, var(--surface-strong) 88%, var(--surface-muted));
  box-shadow: 0 14px 34px rgba(20, 35, 61, 0.13);
  transform: translateX(-50%);
}

.hero-nav-brand {
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 880;
  line-height: 1;
  white-space: nowrap;
}


.hero-nav-brand__avatar {
  box-shadow: var(--shadow-soft);
}

.hero-nav {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: none;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scrollbar-width: none;
}

.hero-nav--primary {
  gap: 24px;
}

.hero-nav--secondary {
  justify-content: flex-end;
  gap: 16px;
}

.hero-nav__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: color-mix(in srgb, var(--text-soft) 84%, var(--text));
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
}


.hero-nav__item::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: transparent;
}

.hero-nav__item:hover,
.hero-nav__item:focus-visible {
  background: transparent;
  color: color-mix(in srgb, var(--accent) 82%, var(--text));
}

.hero-nav__item[aria-current="page"] {
  background: transparent;
  color: var(--accent);
  box-shadow: none;
}

.hero-nav__item[aria-current="page"]::after {
  background: currentColor;
}

.hero-nav__item--disabled {
  cursor: not-allowed;
}

.hero-nav__item--disabled:hover,
.hero-nav__item--disabled:focus-visible {
  color: color-mix(in srgb, var(--text-soft) 88%, var(--text));
}

.hero-nav__item--disabled::before {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  width: max-content;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, -4px);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
  white-space: normal;
}

.hero-nav__item--disabled:hover::before,
.hero-nav__item--disabled:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hero-nav__item--quiet {
  font-weight: 760;
}

.hero-nav__item--quiet:hover,
.hero-nav__item--quiet:focus-visible {
  color: color-mix(in srgb, var(--text-soft) 88%, var(--text));
}

@media (max-width: 1079.98px) {


  .hero-nav--secondary {
    gap: 12px;
  }
}

@media (max-width: 860px) {
  .hero {
    display: grid;
    padding: 0;
  }

  .hero__top {
    flex-direction: row;
  }


  .hero__controls {
    flex: 0 0 auto;
  }

  .search {
    min-width: 0;
  }

  .hero-nav-shell,
.hero-nav-shell.is-fixed {
    grid-template-columns: auto;
    gap: 0;
  }


  .hero-nav-brand {
    margin-right: 10px;
  }

  .hero-nav--primary,
.hero-nav--secondary {
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    overflow-y: visible;
  }

  .hero-nav--secondary {
    display: none;
  }

  .hero-nav-shell.is-fixed .hero-nav--primary {
    min-width: 0;
  }

  .hero-nav__item {
    font-size: 0.86rem;
  }
}

@media (max-width: 640px) {
  .hero {
    display: grid;
    padding: 0;
  }

  .hero__top {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .hero__actions {
    grid-template-columns: 44px 44px 44px minmax(0, 1fr);
  }


  .hero-nav-shell.is-fixed {
    width: min(calc(100% - 14px), var(--container));
    border-radius: 14px;
  }

  .hero-nav-brand span {
    display: none;
  }

  .hero-nav--primary {
    gap: 16px;
  }


  .hero-nav__item--disabled::before {
    max-width: 190px;
    font-size: 0.74rem;
  }
}

/* Header compact tuning */
.hero {
  backdrop-filter: none;
}


.hero__meta {
  margin-top: 2px;
}

.search {
  max-width: 430px;
  min-width: 250px;
}


.theme-toggle,
.hero__search-toggle,
.hero__contact-toggle {
  padding: 0;
}


.hero-nav-shell {
  min-height: 34px;
  padding: 0 18px;
}

.hero-nav-shell.is-fixed {
  top: 0;
  min-height: 36px;
  border-radius: 0 0 14px 14px;
}

.hero-nav-brand__avatar {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.hero-nav__item,
.hero-nav-shell.is-fixed .hero-nav__item {
  min-height: 34px;
  font-size: 0.84rem;
}

.hero-nav-shell.is-fixed .hero-nav__item {
  min-height: 36px;
}

.hero-nav__item--quiet {
  color: color-mix(in srgb, var(--text-soft) 54%, transparent);
  font-size: 0.74rem;
}

.hero-nav__item--disabled::before {
  z-index: 420;
  max-width: 210px;
  box-shadow: 0 16px 38px rgba(20, 35, 61, 0.2);
}

@media (max-width: 1079.98px) {
  .hero__identity {
    flex-basis: 285px;
    max-width: 285px;
  }

  .search {
    min-width: 210px;
  }

  .hero-nav--primary {
    gap: 16px;
  }
}

@media (max-width: 860px) {

  .hero__identity {
    flex-basis: auto;
  }


  .hero-nav__item,
.hero-nav-shell.is-fixed .hero-nav__item {
    min-height: 36px;
  }
}

@media (max-width: 640px) {
  .hero__top {
    min-height: 0;
    padding: 8px 12px;
  }

  .search {
    min-width: 0;
  }

  .hero__origin {
    min-width: 0;
  }

  .hero-nav-shell,
.hero-nav-shell.is-fixed {
    top: 0;
    min-height: 34px;
  }

  .hero-nav__item,
.hero-nav-shell.is-fixed .hero-nav__item {
    min-height: 34px;
    font-size: 0.8rem;
  }
}

/* Header visual touch-ups */
.page-home .hero,
.page-post .hero,
.page-trends .hero,
.page-about .hero,
.page-matches .hero {
  width: 100%;
  padding: 0;
}


.hero__controls {
  gap: 10px;
}

.hero .search {
  max-width: 400px;
  min-width: 230px;
}

.search__input {
  height: 34px;
}

.theme-toggle,
.hero__search-toggle,
.hero__contact-toggle,
.hero__origin {
  height: 34px;
  min-height: 34px;
}

.theme-toggle,
.hero__search-toggle,
.hero__contact-toggle {
  width: 34px;
}

.theme-toggle__icon {
  width: 22px;
  height: 22px;
}

.hero__search-toggle-icon,
.hero__search-toggle-icon svg,
.hero__contact-toggle-icon,
.hero__contact-toggle-icon svg,
.hero__origin-icon,
.hero__origin-icon svg {
  width: 17px;
  height: 17px;
}

.hero__origin {
  min-width: 152px;
  padding: 0 12px;
  gap: 7px;
}

.hero-nav-shell {
  padding-inline: 16px;
}

.hero-nav-brand {
  left: 12px;
  top: 50%;
  will-change: opacity, transform;
}

.hero-nav-shell.is-fixed .hero-nav-brand {
  position: static;
  pointer-events: auto;
}


@media (min-width: 640px) and (max-width: 860px) {
  .hero-nav-shell {
    gap: 12px;
  }


  .hero-nav-brand span {
    display: none;
  }
}


/* Header/breadcrumb follow-up tuning */
.hero__top {
  min-height: 51px;
  padding: 6px 12px;
}

.hero__identity {
  flex-basis: 305px;
  max-width: 305px;
  gap: 9px;
}

.hero__avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}


.hero__origin-label--short {
  display: none;
}

.hero__meta-short {
  display: none;
}

.hero-nav-brand {
  position: static;
  display: none;
  max-width: none;
  overflow: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition: none;
  visibility: visible;
}

.hero-nav-shell.is-fixed .hero-nav-brand {
  display: inline-flex;
  max-width: none;
  opacity: 1;
  transform: none;
  transition: none;
  visibility: visible;
}

.hero-nav__item--disabled::before {
  color: var(--text);
}

.trends-page__breadcrumbs,
.about-breadcrumbs,
.matches-hero__breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  padding: 0;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 780;
  line-height: 1;
}

.trends-page__breadcrumbs a,
.about-breadcrumbs a,
.matches-hero__breadcrumbs a {
  color: inherit;
}

.trends-page__breadcrumbs a:hover,
.about-breadcrumbs a:hover,
.matches-hero__breadcrumbs a:hover {
  color: var(--accent);
}

.about-post-card__body .about-breadcrumbs {
  margin: 0 0 10px;
}

.about-post-card__body {
  padding-top: 18px;
}

.hero-mobile-nav {
  display: none;
}


@media (max-width: 639.98px) {
  .app-shell {
    width: min(calc(100% - 18px), var(--container));
    margin-top: 10px;
  }

  .hero {
    border-radius: 20px;
  }

  .hero__top {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    min-height: 44px;
  }

  .hero__identity {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    width: auto;
  }


  .hero__copy {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
  }

  .hero__title {
    display: block;
    max-width: 100%;
  }

  .hero__title-separator,
.hero__title-game {
    display: inline;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: 0;
    text-transform: none;
  }

  .hero__meta--tagline {
    display: block;
    margin-top: 2px;
    font-weight: 800;
  }

  .hero__meta-full {
    display: inline;
  }

  .hero__meta-short {
    display: none;
  }

  .hero__controls {
    display: contents;
  }

  .hero__actions {
    order: 2;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    width: auto;
  }

  .hero__contact {
    display: none;
  }

  .theme-toggle,
.hero__search-toggle,
.hero__contact-toggle {
    padding: 0;
    line-height: 1;
  }

  .hero__search-toggle {
    display: inline-flex;
  }

  .hero__origin {
    line-height: 1;
  }

  .theme-toggle__icon {
    width: 17px;
    height: 17px;
  }

  :root[data-theme="light"] .theme-toggle__icon::before {
    font-size: 19px;
    margin-top: -1px;
  }

  :root[data-theme="dark"] .theme-toggle__icon::before,
.theme-toggle__icon::before {
    font-size: 16px;
  }


  .hero__origin-label--full {
    display: none;
  }

  .hero__origin-label--short {
    display: inline;
  }

  .hero .search {
    order: 3;
    flex: 1 0 100%;
    max-width: none;
    min-width: 0;
  }

  .search__input {
    height: 38px;
  }

  .hero-nav-shell,
.hero-nav-shell.is-fixed {
    display: block;
    min-height: 33px;
    padding: 0 14px;
    overflow: visible;
  }

  .hero-nav-shell.is-fixed {
    top: 0;
    width: min(calc(100% - 18px), var(--container));
    border-radius: 0 0 16px 16px;
  }

  .hero-nav-brand,
.hero-nav--primary,
.hero-nav--secondary {
    display: none;
  }

  .hero-nav-shell.is-fixed .hero-nav-brand {
    position: absolute;
    left: 14px;
    top: 50%;
    display: inline-flex;
    max-width: 58px;
    overflow: visible;
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 950;
    letter-spacing: 0;
    transform: translateY(-50%);
  }

  .hero-nav-shell.is-fixed .hero-nav-brand__avatar {
    display: none;
  }

  .hero-nav-shell.is-fixed .hero-nav-brand span {
    display: inline;
    background: linear-gradient(
      90deg,
      var(--text) 0 42%,
      var(--accent) 42% 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
  }

  .hero-nav-shell.is-fixed .hero-mobile-nav {
    padding-left: 64px;
  }

  .hero-mobile-nav {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    min-height: 33px;
  }

  .hero-mobile-nav__item,
.hero-mobile-more__summary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 33px;
    padding: 0 1px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: color-mix(in srgb, var(--text-soft) 86%, var(--text));
    font-size: 0.66rem;
    font-weight: 830;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
  }

  .hero-mobile-nav__item[aria-current="page"] {
    color: var(--accent);
  }

  .hero-mobile-nav__item[aria-current="page"]::after,
.hero-mobile-more.is-active .hero-mobile-more__summary::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .hero-mobile-more.is-active .hero-mobile-more__summary {
    color: var(--accent);
  }

  .hero-mobile-nav__item--disabled {
    opacity: 0.68;
  }

  .hero-mobile-more {
    position: relative;
    margin-left: auto;
    min-width: 0;
  }

  .hero-mobile-more__summary {
    gap: 4px;
    width: 100%;
    cursor: pointer;
    list-style: none;
  }

  .hero-mobile-more__summary::-webkit-details-marker {
    display: none;
  }

  .hero-mobile-more__chevron {
    width: 0;
    height: 0;
    border-top: 4px solid currentColor;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    transform: translateY(1px);
  }

  .hero-mobile-more[open] .hero-mobile-more__chevron {
    transform: rotate(180deg) translateY(-1px);
  }

  .hero-mobile-more__panel {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    z-index: 460;
    display: grid;
    gap: 3px;
    min-width: 152px;
    padding: 7px;
    border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
    border-radius: 14px;
    background: var(--surface-strong);
    box-shadow: 0 18px 44px rgba(20, 35, 61, 0.16);
  }

  .hero-mobile-more__item {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 10px;
    color: color-mix(in srgb, var(--text-soft) 88%, var(--text));
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
  }

  .hero-mobile-more__item[aria-current="page"] {
    background: color-mix(in srgb, var(--accent) 10%, var(--surface-muted));
    color: var(--accent);
  }

  .hero-mobile-more__item--disabled {
    opacity: 0.68;
  }

}

@media (max-width: 380px) {
  .hero-mobile-nav {
    gap: 8px;
  }

  .hero-mobile-nav__item,
.hero-mobile-more__summary {
    font-size: 0.62rem;
  }

}

/* Trends page compact tuning */
.page-trends .trends-page__header {
  gap: 12px;
  margin-bottom: 14px;
}

.page-trends .trends-page__hero-title {
  gap: 10px;
}

.page-trends .trends-page__hero-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
}

.page-trends .trends-page__hero-icon::before {
  width: 12px;
  height: 16px;
}


.page-trends .trends-page__title-context {
  min-height: 19px;
  padding: 0 7px;
  font-size: 0.66rem;
}


.page-trends .trends-list__item:not(.trends-list__item--leader) {
  row-gap: 6px;
}


.page-trends .trends-list__excerpt {
  font-size: 0.8rem;
  line-height: 1.3;
}

.page-trends .trends-list__item--leader .trends-list__excerpt {
  font-size: 0.86rem;
}


@media (max-width: 640px) {
  .page-trends .trends-page {
    padding: 10px;
  }

  .page-trends .trends-page__header {
    margin-bottom: 10px;
  }

  .page-trends .trends-page__hero-title {
    gap: 8px;
  }

  .page-trends .trends-page__hero-icon {
    width: 24px;
    height: 24px;
    border-radius: 9px;
  }

  .page-trends .trends-page__hero-icon::before {
    width: 10px;
    height: 14px;
  }


  .page-trends .trends-page__title-context {
    min-height: 18px;
    padding: 0 7px;
    font-size: 0.62rem;
  }


  .page-trends .trends-page__periods {
    margin-top: 10px;
    padding: 2px;
  }


  .page-trends .trends-list {
    gap: 6px;
  }

  .page-trends .trends-list__item,
.page-trends .trends-list__item--leader,
.page-trends .trends-list__item:not(.trends-list__item--leader) {
    border-radius: 13px;
  }

  .page-trends .trends-list__rank,
.page-trends .trends-list__item--leader .trends-list__rank {
    border-radius: 9px;
  }

  .page-trends .trends-list__thumb,
.page-trends .trends-list__item--leader .trends-list__thumb {
    height: auto;
    min-height: 0;
    border-radius: 10px;
  }

  .page-trends .trends-list__title,
.page-trends .trends-list__item--leader .trends-list__title {
    line-height: 1.12;
  }


  .page-trends .trends-list__stats,
.page-trends .trends-list__item--leader .trends-list__stats {
    gap: 6px;
  }

  .page-trends .trends-list__meta-icon,
.page-trends .trends-list__meta-icon svg {
    width: 12px;
    height: 12px;
  }
}


/* Defensive layout guard for formatting tags leaked from rich content. */
.page-grid > b:not([class]),
.feed-section > b:not([class]) {
  display: contents;
  font-weight: inherit;
}

/* Keep the infinite-scroll marker ordered correctly on tablet/mobile. */
@media (max-width: 999.98px) {
  .feed-section {
    display: flex;
    flex-direction: column;
  }

  .feed-section > .sidebar-matches-card--mobile-placement {
    order: 2;
  }

  .feed-section > .results-bar {
    order: 3;
  }

  .feed-section > .feed-list {
    order: 4;
  }

  .feed-section > .load-more {
    position: relative;
    order: 50;
    width: 100%;
    min-height: 34px;
    height: auto;
    margin: 0;
    padding: 2px 0 0;
    overflow: visible;
    pointer-events: auto;
  }

  .feed-section > .load-more .load-more__fallback,
.feed-section > .load-more .load-more__meta {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .feed-section > .load-more .load-more__status {
    position: static;
    display: inline-flex;
    width: auto;
    height: auto;
    min-height: 30px;
    margin: 0;
    padding: 0 12px;
    clip: auto;
    overflow: visible;
    border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
    border-radius: 999px;
    background: var(--surface-strong);
    box-shadow: var(--shadow-soft);
    white-space: normal;
  }

  .feed-section > .load-more--end {
    height: auto;
    min-height: 28px;
    margin-top: 8px;
    overflow: visible;
    pointer-events: auto;
  }

  .feed-section > .load-more--end span {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }
}

.hero-nav__item--disabled::before {
  background: #ffffff;
  border-color: rgba(17, 24, 39, 0.14);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

:root[data-theme="dark"] .hero-nav__item--disabled::before {
  background: #131a26;
  border-color: rgba(255, 255, 255, 0.12);
}

.hero-nav__item--disabled {
  opacity: 1;
  color: color-mix(in srgb, var(--text-soft) 68%, var(--text));
}

@media (min-width: 901px) {
  .page-home .sidebar,
.page-post .sidebar,
.page-trends .sidebar,
.page-about .sidebar,
.page-matches .matches-sidebar {
    position: sticky;
    top: var(--sidebar-sticky-top, 12px);
    bottom: auto;
    align-self: start;
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
    scrollbar-gutter: auto;
    scrollbar-width: auto;
  }

  .page-home .sidebar::-webkit-scrollbar,
.page-post .sidebar::-webkit-scrollbar,
.page-trends .sidebar::-webkit-scrollbar,
.page-about .sidebar::-webkit-scrollbar,
.page-matches .matches-sidebar::-webkit-scrollbar {
    display: none;
  }
}

.page-trends .trends-page,
.page-matches .matches-hero,
.page-about .about-post-card__body {
  padding-top: 16px;
  padding-inline: 16px;
}

.page-trends .trends-page__breadcrumbs,
.page-matches .matches-hero__breadcrumbs,
.page-about .about-breadcrumbs {
  margin: 0 0 10px;
  padding: 0;
}

/* Header typography scale-up */
.hero__title {
  font-size: 1.32rem;
  line-height: 1.03;
}

.hero__meta {
  font-size: 0.83rem;
  line-height: 1.06;
}


@media (max-width: 639.98px) {

  .hero__meta--tagline {
    font-size: 0.67rem;
    line-height: 1.02;
  }
}

@media (max-width: 380px) {

  .hero__meta--tagline {
    font-size: 0.64rem;
  }
}

/* Tablet boundary fixes: keep 640px out of the legacy mobile header flow. */
@media (min-width: 640px) and (max-width: 860px) {
  .hero {
    display: grid;
    padding: 0;
  }


  .hero__meta,
.hero__meta--tagline {
    display: block;
    margin-top: 2px;
    font-size: 0.76rem;
    line-height: 1.04;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero__controls {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    width: auto;
    min-width: 0;
    gap: 8px;
  }

  .hero__actions {
    justify-content: flex-end;
  }

  .has-mobile-search-toggle .hero:not(.is-search-open) .search {
    display: none;
  }

  .hero .search {
    position: absolute;
    top: calc(100% + 8px);
    right: 10px;
    left: 10px;
    z-index: 45;
    width: auto;
  }


  .hero__origin {
    gap: 7px;
  }

  .hero-nav-shell,
.hero-nav-shell.is-fixed {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .hero-nav--primary,
.hero-nav--secondary {
    gap: 12px;
    overflow-x: auto;
    overflow-y: visible;
  }

  .hero-nav--secondary {
    justify-content: flex-end;
  }

  .hero-nav__item,
.hero-nav-shell.is-fixed .hero-nav__item {
    min-height: 36px;
    font-size: 0.78rem;
  }

  .post-card__header,
.post-card__footer {
    flex-direction: row;
    align-items: flex-start;
  }

  .post-card__header {
    gap: 10px;
    margin-bottom: 8px;
  }

  .post-card__header-main {
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    min-width: 0;
    padding-right: 0;
  }

  .post-card__author,
.post-card__header-main .post-card__author {
    min-width: 0;
    padding-right: 0;
  }

  .post-card__author > div {
    min-width: 0;
  }

  .post-card__author-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .post-card__channel,
.post-card__date {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .post-card__channel {
    font-size: 0.96rem;
    line-height: 1.12;
  }

  .post-card__date {
    font-size: 0.86rem;
  }

  .post-card__header-side {
    position: static;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: flex-end;
    width: auto;
    margin-left: auto;
  }

  .post-tags--header {
    max-width: min(220px, 32vw);
  }

  .post-card__title {
    margin-top: 0;
  }
}

/* Desktop top navigation sizing. */
@media (min-width: 861px) {


  .hero-nav-shell:not(.is-fixed) .hero-nav__item--quiet {
    font-size: 0.8rem;
  }
}

/* Desktop fixed navigation sizing. */
@media (min-width: 861px) {
  .hero-nav-shell.is-fixed {
    padding-inline: 14px;
  }


  .hero-nav-shell.is-fixed .hero-nav__item {
    color: color-mix(in srgb, var(--text-soft) 82%, var(--text));
  }

  .hero-nav-shell.is-fixed .hero-nav__item[aria-current="page"] {
    color: var(--accent);
  }

  .hero-nav-shell.is-fixed .hero-nav__item::after {
    right: -3px;
    left: -3px;
  }

  .hero-nav-shell.is-fixed .hero-nav__item--quiet {
    color: color-mix(in srgb, var(--text-soft) 62%, transparent);
    font-size: 0.8rem;
    font-weight: 750;
  }
}

/* Tournaments page */


/* Matches/tournaments filter and calendar fixes */
.page-matches .matches-page:has(.matches-tournament-filter[open], .matches-date-filter[open]) {
  overflow: visible;
}

.matches-date-filter__menu {
  width: min(228px, calc(100vw - 24px));
  padding: 6px;
}

.matches-date-filter__menu .matches-calendar {
  padding: 7px;
}

.matches-date-filter__menu .matches-calendar__month-nav {
  grid-template-columns: 26px minmax(0, 1fr) 26px;
  gap: 5px;
  margin-bottom: 6px;
}

.matches-date-filter__menu .matches-calendar__month-button {
  width: 26px;
  min-width: 26px;
  height: 22px;
  min-height: 22px;
}

.matches-date-filter__menu .matches-calendar__month-label {
  height: 22px;
  font-size: 0.78rem;
}

.matches-date-filter__menu .matches-calendar__weekdays {
  margin-bottom: 4px;
  font-size: 0.56rem;
}

.matches-date-filter__menu .matches-calendar__grid {
  gap: 1px;
}

.matches-date-filter__menu .matches-calendar__day {
  min-height: 20px;
  border-radius: 6px;
  font-size: 0.63rem;
}


/* Tournaments responsive alignment with matches page */


/* Tournaments mobile/tablet: compact cards and read-also parity with matches */


/* Mobile polish for header, filters and tournament rows */
@media (max-width: 639.98px) {
  .hero__top {
    gap: 4px;
    padding: 5px 7px;
  }

  .hero__identity {
    gap: 5px;
  }

  .hero__avatar {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .hero__title {
    overflow: hidden;
    font-size: 0.82rem;
    line-height: 1.03;
    text-overflow: clip;
    white-space: nowrap;
  }

  .hero__actions {
    gap: 4px;
  }

  .theme-toggle,
.hero__search-toggle,
.hero__contact-toggle {
    width: 29px;
    height: 29px;
    min-height: 29px;
    border-radius: 10px;
  }

  .hero__origin {
    min-width: 74px;
    height: 29px;
    min-height: 29px;
    padding: 0 7px;
    gap: 5px;
    border-radius: 10px;
    font-size: 0.69rem;
  }

  .hero__search-toggle-icon,
.hero__search-toggle-icon svg,
.hero__origin-icon,
.hero__origin-icon svg {
    width: 14px;
    height: 14px;
  }

  .page-matches .read-also--matches {
    margin: 0 8px 10px;
  }

  .page-matches .matches-active-summary {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 7px;
    min-height: 42px;
    padding: 7px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .page-matches .matches-active-summary::-webkit-scrollbar {
    display: none;
  }

  .page-matches .matches-active-summary__count {
    flex: 0 0 auto;
    font-size: 0.74rem;
    white-space: nowrap;
  }

  .page-matches .matches-active-summary__chips {
    flex: 0 0 auto;
    flex-basis: auto;
    flex-wrap: nowrap;
    width: auto;
    gap: 6px;
  }

  .page-matches .matches-active-summary .matches-active-summary__chip {
    max-width: 210px;
    min-height: 30px;
    padding: 0 10px;
    gap: 7px;
    font-size: 0.75rem;
  }

  .page-matches .matches-active-summary .matches-active-summary__chip span:first-child {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-matches .matches-active-summary .matches-active-summary__reset {
    flex: 0 0 auto;
    margin-left: 0;
    font-size: 0.76rem;
    white-space: nowrap;
  }



  .page-matches .matches-tournament-filter__summary .matches-tournament-filter__icon {
    width: 15px;
    height: 15px;
  }

  .page-matches .matches-tournament-filter__icon svg {
    width: 15px;
    height: 15px;
    stroke-width: 2;
    overflow: visible;
  }




















}


@media (max-width: 380px) {
  .hero__title {
    font-size: 0.78rem;
  }

  .hero__origin {
    min-width: 70px;
    padding-inline: 6px;
    font-size: 0.66rem;
  }




}

/* Responsive alignment: home, tablet pages and tournament visuals */


@media (max-width: 999.98px) {
  .page-matches .page-grid--matches {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    justify-content: stretch;
  }

  .page-matches .matches-main-stack,
.page-matches .matches-page {
    width: 100%;
    max-width: 100%;
  }
}


@media (min-width: 640px) and (max-width: 860px) {
  .hero-nav-shell.is-fixed {
    align-items: center;
    flex-wrap: nowrap;
    gap: 14px;
  }

  .hero-nav-shell.is-fixed .hero-nav-brand {
    flex: 0 0 auto;
    margin: 0;
  }

  .hero-nav-shell.is-fixed .hero-nav-brand__avatar {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .hero-nav-shell.is-fixed .hero-nav-brand span {
    overflow: hidden;
    max-width: 82px;
    text-overflow: clip;
    white-space: nowrap;
  }

  .hero-nav-shell.is-fixed .hero-nav--primary {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    gap: clamp(10px, 1.7vw, 18px);
    min-width: 0;
    overflow: hidden;
  }

  .hero-nav-shell.is-fixed .hero-nav--secondary {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
    overflow: visible;
  }

  .hero-nav-shell.is-fixed .hero-nav__item {
    min-height: 42px;
    font-size: 0.78rem;
  }

  .hero-nav-shell.is-fixed .hero-nav__item--quiet {
    font-size: 0.72rem;
  }
}

@media (max-width: 640px) {
  body.page-home {
    --container: 100%;
  }

  .page-home .app-shell,
.page-home .main-shell,
.page-home .page-grid,
.page-home .feed-section {
    width: 100%;
    max-width: 100%;
  }

  .page-home .app-shell {
    margin-top: 8px;
    padding-inline: 8px;
  }

  .page-home .main-shell {
    margin-top: 10px;
  }

  .page-home .page-grid {
    display: block;
  }

  .page-home .feed-section,
.page-home .post-card,
.page-home .sidebar-matches-card--mobile-placement {
    border-radius: 18px;
  }

  .page-matches .read-also--matches {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
}

/* Mobile page shell alignment for utility sections. */
@media (max-width: 640px) {
  body:is(.page-trends, .page-matches, .page-tournaments, .page-rankings) {
    --container: 100%;
  }

  body:is(.page-trends, .page-matches, .page-tournaments, .page-rankings) .app-shell,
body:is(.page-trends, .page-matches, .page-tournaments, .page-rankings) .main-shell,
body:is(.page-trends, .page-matches, .page-tournaments, .page-rankings) .page-grid,
body:is(.page-trends, .page-matches, .page-tournaments, .page-rankings) .feed-section,
body:is(.page-trends, .page-matches, .page-tournaments, .page-rankings) .matches-main-stack,
body:is(.page-trends, .page-matches, .page-tournaments, .page-rankings) .tournaments-main-stack {
    width: 100%;
    max-width: 100%;
  }

  body:is(.page-trends, .page-matches, .page-tournaments, .page-rankings) .app-shell {
    margin-top: 8px;
    padding-right: max(8px, env(safe-area-inset-right));
    padding-left: max(8px, env(safe-area-inset-left));
  }

  body:is(.page-trends, .page-matches, .page-tournaments, .page-rankings) .main-shell {
    margin-top: 10px;
  }

  body:is(.page-trends, .page-matches, .page-tournaments, .page-rankings) .page-grid {
    display: block;
  }

  body:is(.page-trends, .page-matches, .page-tournaments, .page-rankings) :is(.trends-page, .matches-page, .tournaments-page, .rankings-page) {
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-md);
  }
}

@media (max-width: 640px) {
  .hero-nav-shell.is-fixed {
    min-height: 35px;
  }

  .hero-nav-shell.is-fixed .hero-nav-brand {
    max-width: 64px;
    font-size: 0.81rem;
  }

  .hero-nav-shell.is-fixed .hero-mobile-nav {
    min-height: 35px;
    padding-left: 70px;
  }

  .hero-nav-shell.is-fixed .hero-mobile-nav__item,
.hero-nav-shell.is-fixed .hero-mobile-more__summary {
    min-height: 35px;
    font-size: 0.7rem;
  }
}

/* Popular page, sidebar separators and compact footer */
.page-trends .trends-page {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.page-trends .trends-page__header {
  display: block;
  margin: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
}

.page-trends .trends-page__breadcrumbs {
  gap: 7px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 780;
}

.page-trends .trends-page__title {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.26rem, 2vw, 1.56rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
}


.page-trends .trends-page__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
  background: color-mix(in srgb, var(--surface-muted) 58%, var(--surface));
}

.page-trends .trends-page__periods {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 6px;
  min-width: 0;
  padding: 0;
  overflow-x: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scrollbar-width: none;
}

.page-trends .trends-page__periods::-webkit-scrollbar {
  display: none;
}

.page-trends .trends-page__period {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-strong);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
}

.page-trends .trends-page__period:hover,
.page-trends .trends-page__period:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
  color: var(--accent);
}

.page-trends .trends-page__period.is-active {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 20%, transparent);
}

.page-trends .trends-page__summary {
  flex: 0 0 auto;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 820;
  white-space: nowrap;
}

.page-trends .trends-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.page-trends .trends-list__item,
.page-trends .trends-list__item--leader,
.page-trends .trends-list__item:not(.trends-list__item--leader) {
  display: grid;
  grid-template-columns: 36px 108px minmax(0, 1fr) minmax(112px, auto);
  grid-template-areas: "rank thumb body meta";
  gap: 10px;
  align-items: center;
  min-height: 70px;
  padding: 9px 12px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
  transform: none;
}

.page-trends .trends-list__item:last-child {
  border-bottom: 0;
}

.page-trends .trends-list__item:hover {
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
  transform: none;
}

.page-trends .trends-list__rank,
.page-trends .trends-list__item--leader .trends-list__rank {
  position: static;
  grid-area: rank;
  width: 28px;
  height: 28px;
  align-self: center;
  justify-self: center;
  border-radius: 9px;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-muted));
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
  box-shadow: none;
}

.page-trends .trends-list__item--leader .trends-list__rank {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
}

.page-trends .trends-list__thumb,
.page-trends .trends-list__item--leader .trends-list__thumb {
  grid-area: thumb;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-radius: 11px;
}

.page-trends .trends-list__body,
.page-trends .trends-list__item--leader .trends-list__body,
.page-trends .trends-list__item:not(.trends-list__item--leader) .trends-list__body {
  grid-area: body;
  align-self: center;
  gap: 0;
  min-width: 0;
  padding: 0;
  justify-content: center;
}

.page-trends .trends-list__title,
.page-trends .trends-list__item--leader .trends-list__title {
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 850;
  line-height: 1.18;
  text-shadow: none;
  -webkit-line-clamp: 2;
}

.page-trends .trends-list__excerpt {
  display: none;
}

.page-trends .trends-list__meta,
.page-trends .trends-list__item--leader .trends-list__meta,
.page-trends .trends-list__item:not(.trends-list__item--leader) .trends-list__meta {
  grid-area: meta;
  justify-self: end;
  align-self: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 10px;
  min-width: 0;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 760;
  text-shadow: none;
  white-space: nowrap;
}

.page-trends .trends-list__stats {
  gap: 9px;
}

.page-trends .trends-list__time {
  margin-left: 0;
}

@media (min-width: 861px) {
  .page-trends .trends-list__item--leader {
    position: relative;
  }

  .page-trends .trends-list__item--leader .trends-list__rank {
    top: 12px;
    left: 12px;
  }


  .page-trends .trends-list__item--leader .trends-list__excerpt {
    overflow: hidden;
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.34;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .page-trends .trends-list__item--leader .trends-list__meta {
    margin-top: auto;
  }
}

.popular-card--dynamic .popular-card__list .popular-item:not(.popular-item--leader) {
  position: relative;
}

.popular-card--dynamic .popular-card__list .popular-item:not(.popular-item--leader)::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--line) 76%, transparent) 12%,
    color-mix(in srgb, var(--line) 76%, transparent) 86%,
    transparent
  );
}

.popular-card--dynamic .popular-card__list .popular-item:not(.popular-item--leader):first-child::before {
  display: none;
}

@media (max-width: 860px) {
  .page-trends .trends-page__toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .page-trends .trends-page__summary {
    display: none;
  }

  .page-trends .trends-list__item,
.page-trends .trends-list__item--leader,
.page-trends .trends-list__item:not(.trends-list__item--leader) {
    grid-template-columns: 32px 104px minmax(0, 1fr);
    grid-template-areas:
      "rank thumb body"
      "rank thumb meta";
    min-height: 86px;
    padding: 9px 10px;
  }

  .page-trends .trends-list__meta,
.page-trends .trends-list__item--leader .trends-list__meta,
.page-trends .trends-list__item:not(.trends-list__item--leader) .trends-list__meta {
    justify-self: start;
    justify-content: flex-start;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .page-trends .trends-page {
    border-radius: 18px;
  }

  .page-trends .trends-page__header {
    padding: 18px 16px 16px;
  }

  .page-trends .trends-page__title {
    font-size: 1.42rem;
    line-height: 1.08;
  }

  .page-trends .trends-page__lead {
    font-size: 0.92rem;
    line-height: 1.34;
  }

  .page-trends .trends-page__toolbar {
    flex-direction: row;
    padding: 8px 5px;
    overflow-x: auto;
  }

  .page-trends .trends-page__periods {
    gap: 4px;
    flex: 0 0 auto;
  }

  .page-trends .trends-page__period {
    min-height: 28px;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 0.66rem;
  }

  .page-trends .trends-list__item,
.page-trends .trends-list__item--leader,
.page-trends .trends-list__item:not(.trends-list__item--leader) {
    grid-template-columns: 28px 86px minmax(0, 1fr);
    gap: 7px;
    min-height: 76px;
    padding: 8px;
  }

  .page-trends .trends-list__rank,
.page-trends .trends-list__item--leader .trends-list__rank {
    width: 25px;
    height: 25px;
    font-size: 0.66rem;
  }

  .page-trends .trends-list__title,
.page-trends .trends-list__item--leader .trends-list__title {
    font-size: 0.84rem;
  }

  .page-trends .trends-list__meta,
.page-trends .trends-list__item--leader .trends-list__meta,
.page-trends .trends-list__item:not(.trends-list__item--leader) .trends-list__meta {
    gap: 8px;
    font-size: 0.68rem;
  }
}

/* Home: editorial sidebars */
@media (min-width: 1280px) {

  .page-home .page-grid--home-three {
    justify-content: center;
  }

  .page-home .home-left-sidebar {
    grid-column: 1;
  }

  .page-home .page-grid--home-three > .feed-section {
    grid-column: 2;
  }

  .page-home .home-right-sidebar {
    grid-column: 3;
  }
}


@media (max-width: 900px) {
  .page-home .home-right-sidebar {
    display: none;
  }
}

.home-left-sidebar,
.home-right-sidebar {
  gap: 12px;
}

.channel-card--visit {
  position: relative;
}

.channel-card--visit::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 26%);
}

.channel-card--visit > * {
  position: relative;
  z-index: 1;
}

.channel-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 9px;
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 860;
  line-height: 1;
}

.channel-card__eyebrow-icon,
.channel-card__eyebrow-icon svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}


.channel-card--visit .channel-card__avatar-wrap {
  justify-content: flex-start;
  margin: 0;
}

.channel-card--visit .channel-card__avatar {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 12%, transparent);
}


.channel-card--visit .channel-card__title {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}


.channel-card__description--visit {
  max-width: none;
  margin: 13px 0 0;
  color: var(--text-soft);
  font-weight: 560;
  text-align: left;
}

.channel-card__mini-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.channel-card__mini-stats span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 5px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  color: color-mix(in srgb, var(--text) 86%, var(--text-soft));
  font-weight: 840;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-card__actions--visit {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.channel-card__actions--visit .channel-card__button {
  margin-top: 0;
  letter-spacing: 0;
}

.channel-card__secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: 11px;
  background: color-mix(in srgb, var(--surface) 88%, var(--surface-strong));
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 820;
  line-height: 1;
  text-decoration: none;
}

.channel-card__secondary-button:hover,
.channel-card__secondary-button:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
  color: var(--accent);
}

@media (min-width: 861px) {
  .page-trends .trends-list__item--leader .trends-list__thumb {
    display: grid;
    place-items: center;
    background:
      radial-gradient(circle at 50% 0, color-mix(in srgb, var(--accent) 8%, transparent), transparent 52%),
      color-mix(in srgb, var(--surface-muted) 78%, var(--surface));
  }

}

/* Navigation/sidebar rhythm */
@media (min-width: 861px) {

  .hero__identity {
    width: 100%;
    flex: none;
  }

  .hero-nav-shell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .hero-nav-shell.is-fixed {
    position: fixed;
  }

  .hero-nav--primary {
    gap: 16px;
  }

  .hero-nav--secondary {
    justify-content: flex-start;
    gap: 14px;
  }


  .hero-nav__item--quiet {
    font-size: 0.8rem;
  }

  .hero__controls {
    justify-content: flex-end;
    min-width: 0;
  }


}

@media (min-width: 1280px) {
  body.page-home {
    --container: 1328px;
  }

  .page-home .page-grid--home-three {
    grid-template-columns: 263px minmax(0, 720px) 286px;
  }
}

@media (min-width: 861px) and (max-width: 1180px) {


  .hero-nav--secondary {
    display: none;
  }


}

@media (max-width: 860px) {
  .hero__identity {
    order: 1;
  }

  .hero__controls {
    order: 2;
  }

  .hero-nav-shell {
    order: 3;
    flex: 1 0 100%;
  }
}

@media (max-width: 639.98px) {
  .hero-nav-shell {
    order: 4;
  }
}

.matches-tournaments-card .sidebar-matches-card__header {
  align-items: flex-start;
  gap: 10px;
  min-height: 28px;
  padding-right: 0;
}

.matches-tournaments-card .sidebar-matches-card__title {
  display: flex;
  align-items: center;
  margin: 0;
  padding-right: 0;
  color: var(--text);
  font-size: 1.04rem;
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: none;
}

.matches-tournaments-card .sidebar-matches-card__filters {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 28px;
  min-height: auto;
  margin-top: -1.5px;
  padding: 1px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
}

.matches-tournaments-card .sidebar-matches-card__filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  min-height: 24px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  box-shadow: none;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: normal;
}

.matches-tournaments-card .sidebar-matches-card__filter[data-matches-tournament-tier-filter="tier1"] {
  min-width: 30px;
  padding: 0 8px;
  font-size: 0.82rem;
}

.matches-tournaments-card .sidebar-matches-card__filter.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}


.channel-card--visit .channel-card__avatar-wrap {
  display: none;
}


.channel-card--visit .channel-card__handle {
  display: inline-flex;
}

.channel-card__button {
  gap: 8px;
  letter-spacing: 0;
}

.channel-card__button-icon,
.channel-card__button-icon svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}


.channel-card__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  color: color-mix(in srgb, var(--text) 82%, var(--text-soft));
  font-size: 0.72rem;
  font-weight: 820;
  line-height: 1;
  text-decoration: none;
}

.channel-card__social:hover,
.channel-card__social:focus-visible {
  color: var(--accent);
}

.channel-card__social-icon,
.channel-card__social-icon svg {
  flex: 0 0 14px;
}

.channel-card__social-label {
  min-width: 0;
  text-overflow: ellipsis;
}

/* Unified content hover */
:root {
  --content-hover-bg: color-mix(in srgb, var(--accent) 3.2%, var(--surface));
  --content-hover-border: color-mix(in srgb, var(--accent) 10%, var(--line));
  --content-hover-shadow: var(--shadow-card-hover);
}

.trends-list__item,
.popular-item,
.popular-item--leader,
.read-also__card,
.sidebar-match-featured,
.sidebar-match-row,
.match-feed-card,
.matches-tournament-item {
  transition:
    background-color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    color var(--transition-base);
}

.trends-list__item:hover,
.trends-list__item:focus-within,
.popular-item:hover,
.popular-item:focus-within,
.read-also__card:hover,
.read-also__card:focus-visible,
.sidebar-match-featured:hover,
.sidebar-match-featured:focus-visible,
.sidebar-match-row:hover,
.sidebar-match-row:focus-visible,
.match-feed-card:hover,
.match-feed-card:focus-visible,
.matches-tournament-item:hover,
.matches-tournament-item:focus-visible {
  border-color: var(--content-hover-border);
  background: var(--content-hover-bg);
  box-shadow: var(--content-hover-shadow);
  transform: translateY(-0.5px);
}

.popular-item--leader:hover,
.popular-item--leader:focus-within {
  background: #111824;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 9%, transparent),
    0 12px 26px rgba(20, 35, 61, 0.11);
}


.popular-item:hover .popular-item__thumb img {
  transform: none;
}


.popular-card .popular-item:not(.popular-item--leader) {
  padding-inline: 6px;
}


.sidebar-match-row__date {
  min-width: 38px;
  padding-inline: 5px;
  letter-spacing: 0.015em;
}


.channel-card--visit .channel-card__eyebrow {
  min-height: 30px;
  padding: 0 11px;
  border-color: color-mix(in srgb, var(--accent) 26%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  font-size: 0.72rem;
}


.channel-card--visit .channel-card__title {
  font-weight: 930;
  line-height: 1;
}

.channel-card--visit .channel-card__handle {
  margin-top: 0;
}

.channel-card--visit .channel-card__subscribers {
  margin-top: 0;
}

.channel-card__description--visit {
  margin-top: 18px;
  font-size: 0.86rem;
  line-height: 1.42;
}

.channel-card__mini-stats {
  gap: 7px;
  margin-top: 14px;
}

.channel-card__mini-stats span {
  min-height: 34px;
  border-radius: 12px;
  font-size: 0.72rem;
}


.channel-card__social {
  position: relative;
  width: 100%;
  padding: 0;
}

.channel-card__social-label {
  padding: 0;
  overflow: hidden;
}

.channel-card__social-icon,
.channel-card__social-icon svg {
  display: block;
}

/* Desktop visual polish */
@media (min-width: 1280px) {
  .page-home .page-grid--home-three {
    gap: 14px;
  }
}

.page-home .sidebar-card,
.page-home .post-card {
  border-color: color-mix(in srgb, var(--line) 86%, transparent);
  box-shadow: 0 7px 18px rgba(20, 35, 61, 0.045);
}

.page-home .sidebar-card {
  border-radius: 16px;
}


.page-home .post-media {
  border-color: color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 13px;
  background:
    radial-gradient(circle at 50% 0, color-mix(in srgb, var(--accent) 4%, transparent), transparent 54%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface-muted) 74%, var(--surface)), var(--surface-strong));
}


.channel-card__avatar--visit {
  width: 49px;
  height: 49px;
  border-radius: 14px;
}


.matches-tournaments-card .sidebar-matches-card__header {
  margin-bottom: 0;
}

.matches-tournament-item {
  padding: 7px 6px;
}


.matches-tournament-item__copy span:first-child {
  font-size: 0.8rem;
  line-height: 1.15;
}

.matches-tournament-item__copy span:last-child {
  font-size: 0.69rem;
}

@media (min-width: 861px) {

  .hero-nav-shell {
    justify-self: center;
  }

  .hero-nav--primary {
    justify-content: center;
  }
}

.channel-card--visit .channel-card__profile {
  margin-top: 0;
}


.channel-card--visit .channel-card__avatar--visit {
  margin-right: -15px;
}


.channel-card--visit .channel-card__title {
  font-size: 1.12rem;
}

.channel-card--visit .channel-card__eyebrow,
.channel-card__description--visit,
.channel-card__mini-stats {
  display: none;
}

.matches-tournaments-card__list {
  margin-top: 1px;
  margin-inline: -1px;
}


@media (min-width: 861px) {
  .page-trends .trends-list__item--leader {
    display: grid;
    grid-template-columns: 36px 108px minmax(0, 1fr) minmax(112px, auto);
    grid-template-areas: "rank thumb body meta";
    gap: 10px;
    align-items: center;
    min-height: 70px;
    padding: 9px 12px;
    overflow: hidden;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
    border-radius: 0;
    background: var(--surface);
    box-shadow: none;
  }

  .page-trends .trends-list__item--leader .trends-list__rank {
    position: static;
    z-index: auto;
    width: 28px;
    height: 28px;
    align-self: center;
    justify-self: center;
    border-radius: 9px;
    font-size: 0.74rem;
    box-shadow: none;
  }

  .page-trends .trends-list__item--leader .trends-list__thumb {
    grid-area: thumb;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 11px;
  }

  .page-trends .trends-list__item--leader .trends-list__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .page-trends .trends-list__item--leader .trends-list__body {
    grid-area: body;
    align-self: center;
    gap: 0;
    min-width: 0;
    padding: 0;
    justify-content: center;
  }

  .page-trends .trends-list__item--leader .trends-list__title {
    font-size: 0.93rem;
    line-height: 1.18;
    -webkit-line-clamp: 2;
  }

  .page-trends .trends-list__item--leader .trends-list__excerpt {
    display: none;
  }

  .page-trends .trends-list__item--leader .trends-list__meta {
    grid-area: meta;
    width: auto;
    justify-self: end;
    align-self: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 10px;
    min-width: 0;
    margin: 0;
    font-size: 0.76rem;
  }
}

/* Shared desktop sidebars and compact sticky header */
@media (min-width: 1280px) {
  .page-grid--with-left > .home-left-sidebar {
    display: flex;
    grid-column: 1;
  }

  .page-grid--with-left > .feed-section,
.page-grid--with-left > .matches-main-stack {
    grid-column: 2;
  }

  .page-grid--with-left > .sidebar:not(.home-left-sidebar),
.page-grid--with-left > .matches-sidebar {
    grid-column: 3;
  }

  .hero__top {
    grid-template-columns: 320px minmax(0, 1fr) 486px;
  }

  .hero-nav-shell:not(.is-fixed) {
    width: 100%;
    justify-self: stretch;
  }

  .hero-nav-shell:not(.is-fixed) .hero-nav--primary {
    width: 100%;
    justify-content: center;
  }

  .hero__controls {
    width: 100%;
  }
}


@media (min-width: 861px) {
  .hero-nav-shell.is-fixed {
    min-width: 0;
    border-color: color-mix(in srgb, var(--line) 72%, transparent);
  }


  .hero-nav-shell.is-fixed .hero-nav--primary {
    flex: 0 1 auto;
  }

  .hero-nav-shell.is-fixed .hero-nav__item {
    font-weight: 800;
  }

  .hero-nav-shell.is-fixed .hero-nav__item::after {
    bottom: 4px;
    height: 2px;
  }
}


.channel-card--visit .channel-card__profile::after {
  align-self: center;
  border-radius: 999px;
}


.channel-card--visit .channel-card__identity {
  align-self: center;
}


/* Sidebar/header polish */
@media (min-width: 1280px) {
  body.page-post,
  body.page-trends,
  body.page-matches,
  body.page-rankings,
  body.page-teams,
  body.page-team-detail,
  body.page-about {
    --container: 1328px;
  }

  .page-grid--with-left {
    grid-template-columns: 263px minmax(0, 720px) 286px;
    gap: 14px;
    justify-content: center;
  }

  .page-grid--with-left.page-grid--left-only {
    grid-template-columns: 263px minmax(0, 720px);
  }
}

@media (min-width: 861px) {
  .hero-nav-shell.is-fixed {
    justify-content: center;
  }


}

@media (min-width: 861px) and (max-width: 1180px) {

  .hero-nav--primary {
    gap: clamp(10px, 1.35vw, 16px);
  }


  .hero .search {
    position: absolute;
    top: calc(100% + 8px);
    right: 8px;
    z-index: 45;
    width: min(360px, calc(100vw - 40px));
    max-width: none;
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-strong);
    box-shadow: 0 18px 40px rgba(20, 35, 61, 0.16);
  }
}


.channel-card__actions--visit .channel-card__button {
  font-weight: 920;
}


.home-left-sidebar .popular-item:not(.popular-item--leader) {
  align-items: start;
}

.home-left-sidebar .popular-item--leader .popular-item__body {
  position: absolute;
}

.sidebar-match-row {
  grid-template-columns: minmax(0, 1fr);
  padding-right: 6px;
}

.sidebar-match-row__main {
  grid-template-columns: 38px minmax(0, 1fr) 99px;
}

.sidebar-match-row__side {
  align-items: flex-end;
  text-align: right;
}

.sidebar-match-row__competition,
.sidebar-match-row__stage {
  text-align: right;
}

.sidebar-match-row__details {
  display: none;
}


/* CS3NEWS design system pass: radius, surfaces and navigation polish */
:root {
  --divider-soft: color-mix(in srgb, var(--line) 56%, transparent);
  --control-bg: color-mix(in srgb, var(--surface-muted) 64%, var(--surface-strong));
}

.results-bar,
.sidebar-card,
.post-card,
.read-also,
.matches-page,
.matches-hero,
.matches-empty,
.rankings-hero,
.rankings-toolbar,
.rankings-table,
.rankings-empty,
.about-post-card {
  border-radius: var(--radius-card);
  border-color: color-mix(in srgb, var(--line) 78%, transparent);
  box-shadow: var(--shadow-card);
}

.post-media,
.post-media__lightbox-trigger,
.post-media__frame,
.post-media-album__tile,
.read-also__card,
.link-preview,
.trends-list__thumb,
.popular-item__thumb,
.sidebar-match-featured,
.match-feed-card {
  border-radius: var(--radius-inner);
}

.theme-toggle,
.hero__search-toggle,
.hero__contact-toggle,
.hero__origin,
.search__input,
.sidebar-matches-card__all-link,
.popular-card__all-link,
.matches-tournaments-card__all-link,
.post-tag,
.reaction-pill,
.expand-button,
.matches-filter,
.matches-date-filter__summary,
.matches-tournament-filter__summary {
  border-radius: var(--radius-control);
}

.popular-card__periods,
.sidebar-matches-card__filters,
.matches-priority-filter,
.trends-page__periods {
  border-radius: var(--radius-pill);
}

@media (min-width: 861px) {


  .hero-nav-shell:not(.is-fixed) {
    border-radius: var(--radius-control);
  }


  .theme-toggle,
.hero__search-toggle,
.hero__contact-toggle {
    border-color: color-mix(in srgb, var(--line) 74%, transparent);
    background: var(--control-bg);
    box-shadow: none;
  }

  .search__input {
    border-color: color-mix(in srgb, var(--line) 76%, transparent);
    background: var(--control-bg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  }

  .hero__origin {
    border-color: color-mix(in srgb, var(--accent) 34%, transparent);
    background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--accent) 88%, white 12%),
      color-mix(in srgb, var(--accent-strong) 92%, var(--accent))
    );
    box-shadow: 0 7px 16px color-mix(in srgb, var(--accent) 18%, transparent);
  }

  .hero__origin:hover,
.hero__origin:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px color-mix(in srgb, var(--accent) 21%, transparent);
  }
}

@media (min-width: 861px) and (max-width: 1180px) {


  .hero-nav__item,
.hero-nav-shell:not(.is-fixed) .hero-nav__item {
    font-size: 0.78rem;
  }
}

@media (min-width: 861px) {


  .hero-nav-shell.is-fixed .hero-nav__item {
    border-radius: var(--radius-control);
  }

}

.has-fixed-hero-nav .hero {
  backdrop-filter: none;
}


.has-fixed-hero-nav .hero__identity,
.has-fixed-hero-nav .hero__controls {
  opacity: 0;
  pointer-events: none;
}

.has-fixed-hero-nav .hero-nav-shell.is-fixed {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 861px) and (max-width: 1500px) {
  .hero__search-toggle {
    display: inline-flex;
  }

  .has-mobile-search-toggle .hero:not(.is-search-open) .search {
    display: none;
  }

  .hero .search {
    position: absolute;
    top: calc(100% + 8px);
    right: 8px;
    z-index: 45;
    width: min(360px, calc(100vw - 40px));
    max-width: none;
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-inner);
    background: var(--surface-strong);
    box-shadow: 0 18px 40px rgba(20, 35, 61, 0.16);
  }
}

.popular-card__all-link,
.sidebar-matches-card__all-link,
.matches-tournaments-card__all-link.sidebar-matches-card__all-link {
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: var(--radius-control);
  transition:
    border-color 170ms ease,
    background-color 170ms ease,
    box-shadow 170ms ease,
    color 170ms ease,
    transform 170ms ease;
}


.popular-card__list,
.sidebar-match-list,
.matches-tournaments-card__list {
  gap: 0;
}

.popular-card--dynamic .popular-card__list .popular-item:not(.popular-item--leader)::before {
  content: none;
  display: none;
}

.popular-card .popular-item:not(.popular-item--leader),
.sidebar-match-row,
.matches-tournament-item {
  border-bottom: 1px solid var(--divider-soft);
}

.popular-card .popular-item:not(.popular-item--leader):last-child,
.sidebar-match-row:last-child,
.matches-tournament-item:last-child,
.matches-tournaments-card[data-active-tournament-filter="all"] .matches-tournament-item--all-last,
.matches-tournaments-card[data-active-tournament-filter="tier1"] .matches-tournament-item--tier-last {
  border-bottom-color: transparent;
}

.popular-card .popular-item:not(.popular-item--leader) {
  margin-inline: 0;
  padding: 10px 0;
  border-radius: 0;
}


.sidebar-match-row,
.matches-tournament-item {
  border-radius: 0;
}

.sidebar-match-row:hover,
.sidebar-match-row:focus-visible,
.matches-tournament-item:hover,
.matches-tournament-item:focus-visible {
  border-radius: var(--radius-inner);
}

.rich-text blockquote {
  position: relative;
  overflow: hidden;
  border-left: 0;
}

.rich-text blockquote::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 72%, white), color-mix(in srgb, var(--accent) 46%, transparent));
}

.rich-text blockquote::after {
  color: color-mix(in srgb, var(--accent) 42%, transparent);
}


.home-left-sidebar .popular-item__title,
.home-left-sidebar .popular-item--leader .popular-item__title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}


.channel-card--visit .channel-card__identity {
  gap: 6px;
}


.channel-card__title--visit span:first-child {
  font-weight: 940;
}

.channel-card__title--visit span:last-child {
  color: color-mix(in srgb, var(--text-soft) 86%, var(--text));
  font-weight: 800;
}

.channel-card__actions--visit {
  margin-top: 16px;
}

.channel-card__actions--visit .channel-card__button {
  min-height: 40px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: var(--radius-control);
  background: color-mix(in srgb, var(--accent) 7%, var(--surface-strong));
  color: var(--accent);
  box-shadow: none;
  font-size: 0.88rem;
}

.channel-card__actions--visit .channel-card__button:hover,
.channel-card__actions--visit .channel-card__button:focus-visible {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-strong));
  transform: translateY(-1px);
}

.channel-card__socials {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin-top: 14px;
}

.channel-card__social {
  flex-direction: column;
  gap: 4px;
  border-radius: var(--radius-control);
}

.channel-card__social-label {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  border: 0;
  color: color-mix(in srgb, var(--text-soft) 86%, var(--text));
  font-size: 0.55rem;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
}

.channel-card__social-icon,
.channel-card__social-icon svg {
  width: 15px;
  height: 15px;
  flex-basis: 15px;
}

.channel-card__footer {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--divider-soft);
}

.channel-card__footer-link {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: color-mix(in srgb, var(--text-soft) 86%, var(--text));
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1.2;
}

.channel-card__footer-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-card__footer-link:hover,
.channel-card__footer-link:focus-visible {
  color: var(--accent);
}

.channel-card__footer-icon,
.channel-card__footer-icon svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.channel-card__footer-link--about {
  justify-content: flex-end;
}

.channel-card__footer-arrow {
  flex: 0 0 auto;
  color: inherit;
}

@media (min-width: 1280px) {

  .page-matches .app-shell {
    width: min(calc(100% - 20px), var(--container));
  }

  .page-matches .page-grid--matches.page-grid--with-left {
    justify-content: center;
  }

  .page-matches .matches-main-stack,
.page-matches .matches-page {
    width: 100%;
    max-width: none;
  }
}

/* Header and sidebar control fixes. */
@media (min-width: 861px) {


  .hero-nav-shell.is-fixed .hero-nav-brand {
    margin-right: 4px;
  }
}

@media (min-width: 861px) and (max-width: 1500px) {
  .hero__top {
    grid-template-columns: minmax(240px, 292px) minmax(0, 1fr) auto;
  }
}

.has-fixed-hero-nav .hero {
  min-height: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.has-fixed-hero-nav .hero__top {
  min-height: 0;
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: visible;
}


.has-fixed-hero-nav .hero__identity,
.has-fixed-hero-nav .hero__controls {
  visibility: hidden;
}

.popular-card .popular-item:not(.popular-item--leader):hover,
.popular-card .popular-item:not(.popular-item--leader):focus-within {
  margin-inline: -7px;
  padding-inline: 7px;
  border-radius: var(--radius-inner);
}

.popular-item--leader:hover,
.popular-item--leader:focus-within {
  border-radius: var(--radius-inner);
  transform: translateY(-1px);
}

.sidebar-matches-card__filter[data-match-filter="tier1"],
.matches-tournaments-card .sidebar-matches-card__filter[data-matches-tournament-tier-filter="tier1"],
.matches-priority-filter__item--star {
  color: var(--text-soft);
}

.sidebar-matches-card__filter[data-match-filter="tier1"].is-active,
.matches-tournaments-card .sidebar-matches-card__filter[data-matches-tournament-tier-filter="tier1"].is-active,
.matches-priority-filter__item--star.is-active {
  color: var(--accent);
}

.matches-date-filter__icon {
  position: relative;
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
}

.matches-date-filter__icon svg {
  width: 18px;
  height: 18px;
}

.matches-date-filter__day {
  position: absolute;
  right: 0;
  left: 0;
  color: currentColor;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}


.channel-card__social {
  min-height: 36px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.channel-card__social:hover,
.channel-card__social:focus-visible {
  border-color: transparent;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}

.channel-card__footer-link--mail span {
  white-space: nowrap;
}

@media (min-width: 1280px) {

  .page-matches .page-grid--matches.page-grid--with-left {
    gap: 14px;
  }
}

/* Channel card alignment and quiet CTAs. */
.channel-card__visit-logo-link {
  align-self: center;
}


.channel-card--visit .channel-card__identity {
  align-items: flex-start;
  justify-content: left;
}

.channel-card__title--visit {
  gap: 3px;
}

.channel-card__title--visit span {
  min-width: 0;
}


.channel-card__title--visit span:last-child {
  font-size: 0.82rem;
}

.popular-card .popular-item:not(.popular-item--leader) {
  border-bottom-color: var(--divider-soft);
  transition:
    background-color 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease,
    transform 170ms ease;
}

.popular-card .popular-item:not(.popular-item--leader):hover,
.popular-card .popular-item:not(.popular-item--leader):focus-within {
  border-bottom-color: transparent;
  background: var(--content-hover-bg);
  box-shadow: 0 5px 13px color-mix(in srgb, var(--accent) 6%, transparent);
  transform: translateY(-1px);
}

.popular-card .popular-item:not(.popular-item--leader):hover + .popular-item,
.popular-card .popular-item:not(.popular-item--leader):focus-within + .popular-item {
  border-top-color: transparent;
}

.popular-card__all-link,
.sidebar-matches-card__all-link,
.matches-tournaments-card__all-link.sidebar-matches-card__all-link {
  min-height: 34px;
  margin-top: 2px;
  border-color: color-mix(in srgb, var(--line) 62%, transparent);
  background: color-mix(in srgb, var(--surface-strong) 70%, var(--surface-muted));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
  color: color-mix(in srgb, var(--text) 82%, var(--text-soft));
  font-size: 0.78rem;
  font-weight: 840;
}

.popular-card__all-link:hover,
.popular-card__all-link:focus-visible,
.sidebar-matches-card__all-link:hover,
.sidebar-matches-card__all-link:focus-visible,
.matches-tournaments-card__all-link.sidebar-matches-card__all-link:hover,
.matches-tournaments-card__all-link.sidebar-matches-card__all-link:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 16%, var(--line));
  background: color-mix(in srgb, var(--accent) 3.5%, var(--surface-strong));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46);
  color: var(--text);
  transform: none;
}

/* Header responsive fine-tuning. */
@media (min-width: 1121px) and (max-width: 1500px) {
  .hero__top {
    grid-template-columns: minmax(230px, 300px) minmax(0, 1fr) minmax(326px, 390px);
    gap: 8px;
  }

  .hero-nav-shell:not(.is-fixed) .hero-nav--primary,
.hero-nav--primary {
    gap: clamp(6px, 0.62vw, 10px);
  }

  .hero-nav__item,
.hero-nav-shell:not(.is-fixed) .hero-nav__item {
    padding-inline: 3px;
    font-size: 0.78rem;
  }

  .hero__controls {
    gap: 6px;
  }

  .hero__actions {
    gap: 5px;
  }

  .hero__search-toggle {
    display: none;
  }

  .has-mobile-search-toggle .hero:not(.is-search-open) .search,
.hero .search {
    position: relative;
    inset: auto;
    z-index: auto;
    display: block;
    flex: 1 1 142px;
    width: auto;
    max-width: 180px;
    min-width: 124px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .search__input {
    height: 33px;
  }

  .theme-toggle,
.hero__contact-toggle,
.hero__origin {
    height: 33px;
    min-height: 33px;
    border-radius: 10px;
  }

  .theme-toggle,
.hero__contact-toggle {
    width: 33px;
  }

  .theme-toggle__icon,
.theme-toggle__icon svg,
.hero__contact-toggle-icon,
.hero__contact-toggle-icon svg,
.hero__origin-icon,
.hero__origin-icon svg {
    width: 15px;
    height: 15px;
  }

  .hero__origin {
    min-width: 132px;
    padding-inline: 10px;
    gap: 6px;
    font-size: 0.78rem;
  }
}

@media (min-width: 861px) and (max-width: 1120px) {
  .hero__top {
    grid-template-columns: minmax(198px, 248px) minmax(0, 1fr) auto;
    gap: 6px;
  }

  .hero-nav-shell:not(.is-fixed) .hero-nav--primary,
.hero-nav--primary {
    gap: clamp(5px, 0.7vw, 8px);
  }

  .hero-nav__item,
.hero-nav-shell:not(.is-fixed) .hero-nav__item {
    min-height: 31px;
    padding-inline: 2px;
    font-size: 0.74rem;
  }

  .hero__controls,
.hero__actions {
    gap: 4px;
  }

  .hero__search-toggle {
    display: inline-flex;
  }

  .theme-toggle,
.hero__search-toggle,
.hero__contact-toggle,
.hero__origin {
    height: 30px;
    min-height: 30px;
    border-radius: 9px;
  }

  .theme-toggle,
.hero__search-toggle,
.hero__contact-toggle {
    width: 30px;
  }

  .theme-toggle__icon,
.theme-toggle__icon svg,
.hero__search-toggle-icon,
.hero__search-toggle-icon svg,
.hero__contact-toggle-icon,
.hero__contact-toggle-icon svg,
.hero__origin-icon,
.hero__origin-icon svg {
    width: 14px;
    height: 14px;
  }

  .hero__origin {
    min-width: 108px;
    padding-inline: 8px;
    gap: 5px;
    font-size: 0.72rem;
  }
}

@media (min-width: 861px) and (max-width: 980px) {
  .hero__origin-label--full {
    display: none;
  }

  .hero__origin-label--short {
    display: inline;
  }

}

/* Desktop header: stable pre-scroll layout across medium widths. */
@media (min-width: 861px) {

  .hero__identity {
    min-width: 302px;
    overflow: visible;
  }

  .hero__copy {
    overflow: visible;
  }

  .hero__title {
    display: flex;
    flex-wrap: nowrap;
    max-width: none;
    overflow: visible;
    white-space: nowrap;
    text-overflow: clip;
  }

  .hero__title-main,
.hero__title-separator,
.hero__title-game {
    display: inline;
    flex: 0 0 auto;
  }


  .theme-toggle__icon,
.theme-toggle__icon svg,
.hero__search-toggle-icon,
.hero__search-toggle-icon svg,
.hero__contact-toggle-icon,
.hero__contact-toggle-icon svg,
.hero__origin-icon,
.hero__origin-icon svg {
    width: 14px;
    height: 14px;
  }

}

@media (min-width: 1181px) and (max-width: 1380px) {
  .hero__top {
    gap: 8px;
  }


}

@media (min-width: 1041px) and (max-width: 1300px) {
  .hero__top {
    grid-template-columns: minmax(302px, 1fr) auto;
    grid-template-areas:
      "brand controls"
      "nav nav";
    gap: 5px 8px;
    padding: 7px 11px 6px;
  }

  .hero__identity {
    grid-area: brand;
  }

  .hero__controls {
    grid-area: controls;
  }

  .hero-nav-shell:not(.is-fixed) {
    grid-area: nav;
    width: 100%;
    padding-top: 1px;
  }

  .hero-nav-shell:not(.is-fixed) .hero-nav--primary {
    width: 100%;
    justify-content: center;
    gap: clamp(12px, 1.8vw, 22px);
  }

  .hero-nav-shell:not(.is-fixed) .hero-nav__item {
    min-height: 31px;
    font-size: 0.9rem;
  }

  .hero__search-toggle {
    display: none;
  }

  .has-mobile-search-toggle .hero:not(.is-search-open) .search,
.hero .search {
    position: relative;
    inset: auto;
    z-index: auto;
    display: block;
    flex: 1 1 140px;
    width: auto;
    max-width: 170px;
    min-width: 120px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
}

@media (min-width: 861px) and (max-width: 1040px) {
  .hero__top {
    grid-template-columns: minmax(286px, 1fr) auto;
    grid-template-areas:
      "brand controls"
      "nav nav";
    gap: 5px 7px;
    padding: 7px 10px 6px;
  }

  .hero__identity {
    grid-area: brand;
    min-width: 286px;
  }

  .hero__controls {
    grid-area: controls;
  }

  .hero-nav-shell:not(.is-fixed) {
    grid-area: nav;
    width: 100%;
  }

  .hero-nav-shell:not(.is-fixed) .hero-nav--primary {
    width: 100%;
    justify-content: center;
    gap: clamp(10px, 2vw, 18px);
  }

  .hero-nav-shell:not(.is-fixed) .hero-nav__item {
    min-height: 31px;
    padding-inline: 3px;
    font-size: 0.87rem;
  }

  .hero__search-toggle {
    display: inline-flex;
  }

  .theme-toggle,
.hero__search-toggle,
.hero__contact-toggle,
.hero__origin {
    height: 30px;
    min-height: 30px;
    border-radius: 9px;
  }

  .theme-toggle,
.hero__search-toggle,
.hero__contact-toggle {
    width: 30px;
  }

  .hero__origin-label--full {
    display: none;
  }

  .hero__origin-label--short {
    display: inline;
  }

  .hero__origin {
    min-width: 74px;
    padding-inline: 8px;
    font-size: 0.72rem;
  }
}

/* Channel visit card: reference-style compact media block. */
.channel-card--visit {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: var(--radius-card);
  background:
    radial-gradient(circle at 16% 8%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 42%),
    linear-gradient(135deg, color-mix(in srgb, #fff 86%, var(--surface-strong)), color-mix(in srgb, var(--surface) 96%, #fff));
  box-shadow:
    0 14px 34px rgba(20, 35, 61, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.channel-card--visit::before {
  opacity: 0.05;
}

.channel-card--visit .channel-card__profile {
  position: relative;
  display: grid;
  align-items: center;
  border-radius: var(--radius-inner);
}

.channel-card--visit .channel-card__profile::after {
  content: "";
  grid-column: 3;
  grid-row: 1;
  width: 1px;
  height: 54px;
  background: linear-gradient(
    180deg,
    transparent,
    color-mix(in srgb, var(--line) 92%, var(--accent) 8%) 18%,
    color-mix(in srgb, var(--line) 92%, var(--accent) 8%) 82%,
    transparent
  );
}

.channel-card__visit-logo-link {
  display: inline-flex;
  grid-column: 1;
  grid-row: 1;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: transparent;
  box-shadow: none;
}

.channel-card--visit .channel-card__avatar--visit {
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: var(--radius-pill);
  object-fit: cover;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 12%, transparent);
}

.channel-card--visit .channel-card__identity {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  row-gap: 2px;
  min-width: 0;
  margin: 0;
  margin-left: 10px;
  overflow: hidden;
  text-align: left;
}

.channel-card__title--visit {
  display: block !important;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 940;
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-card__title--visit span {
  display: inline !important;
  overflow: visible;
  visibility: visible;
  opacity: 1;
  text-overflow: clip;
}

.channel-card__title--visit span:first-child {
  display: inline !important;
  font-size: inherit;
  line-height: inherit;
}

.channel-card__title--visit span + span {
  display: none !important;
}

.channel-card--visit .channel-card__handle {
  width: fit-content;
  margin: 0;
  color: var(--accent);
  font-weight: 900;
  line-height: 1.02;
  text-decoration: none;
}

.channel-card--visit .channel-card__subscribers {
  margin: 0;
  overflow: hidden;
  color: color-mix(in srgb, var(--text-soft) 88%, var(--text));
  font-weight: 820;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-card--visit .channel-card__actions--visit {
  display: flex;
  grid-column: 4;
  grid-row: 1;
  justify-content: flex-end;
  margin: 0;
}

.channel-card--visit .channel-card__actions--visit .channel-card__button {
  border: 1px solid color-mix(in srgb, var(--accent) 54%, transparent);
  border-radius: var(--radius-control);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 90%, white 10%), color-mix(in srgb, var(--accent-strong) 94%, var(--accent)));
  color: #fff;
  font-weight: 920;
  line-height: 1;
}

.channel-card--visit .channel-card__actions--visit .channel-card__button:hover,
.channel-card--visit .channel-card__actions--visit .channel-card__button:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 66%, transparent);
  color: #fff;
}

.channel-card--visit .channel-card__actions--visit .channel-card__button:active {
  transform: translateY(0);
}

.channel-card--visit .channel-card__button-icon,
.channel-card--visit .channel-card__button-icon svg {
  flex: 0 0 13px;
}

.channel-card--visit .channel-card__socials {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}

.channel-card--visit .channel-card__social {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: color-mix(in srgb, var(--text) 86%, var(--text-soft));
  text-decoration: none;
}

.channel-card--visit .channel-card__social:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 0;
  bottom: 6px;
  width: 1px;
  background: var(--divider-soft);
}

.channel-card--visit .channel-card__social:hover,
.channel-card--visit .channel-card__social:focus-visible {
  background: transparent;
  color: var(--accent);
  transform: translateY(-1px);
}

.channel-card--visit .channel-card__social-icon,
.channel-card--visit .channel-card__social-icon svg {
  display: block;
  flex: 0 0 19px;
}

.channel-card--visit .channel-card__social-label {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  color: currentColor;
  font-size: 0.62rem;
  font-weight: 780;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.channel-card--visit .channel-card__footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-top: 16px;
}

.channel-card--visit .channel-card__footer-link {
  min-width: 0;
  color: color-mix(in srgb, var(--text-soft) 86%, var(--text));
  font-size: 0.82rem;
  font-weight: 820;
  line-height: 1;
  text-decoration: none;
}

.channel-card--visit .channel-card__footer-link--mail span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-card--visit .channel-card__footer-icon,
.channel-card--visit .channel-card__footer-icon svg {
  flex: 0 0 17px;
}

.channel-card--visit .channel-card__footer-arrow {
  color: color-mix(in srgb, var(--text-soft) 82%, var(--text));
  font-size: 0.9rem;
}

/* Requested header and channel-card polish. */
.theme-toggle__icon,
.hero__search-toggle-icon,
.hero__contact-toggle-icon,
.hero__origin-icon {
  display: grid;
  place-items: center;
  line-height: 0;
}

.hero__search-toggle-icon svg,
.hero__contact-toggle-icon svg,
.hero__origin-icon svg {
  display: block;
}

.theme-toggle__icon::before {
  top: 50%;
  left: 50%;
  inset: auto;
  display: flex;
  width: 1em;
  height: 1em;
  align-items: center;
  justify-content: center;
  margin: 0;
  line-height: 1;
  transform: translate(-50%, -50%);
}

:root[data-theme="light"] .theme-toggle__icon::before {
  font-size: 25px;
  margin-top: 26px;
  margin-left: 25px;
}

.hero__contact-toggle-icon,
.hero__contact-toggle-icon svg {
  width: 18px;
  height: 18px;
}

.hero__origin {
  font-size: 0.885rem;
}


@media (min-width: 861px) {
  .hero__top {
    grid-template-areas: none;
  }

  .hero__identity,
.hero__controls,
.hero-nav-shell:not(.is-fixed) {
    grid-area: auto;
  }

  .hero-nav-shell:not(.is-fixed) {
    padding-top: 0;
  }


  .hero-nav__item,
.hero-nav-shell:not(.is-fixed) .hero-nav__item {
    -webkit-font-smoothing: antialiased;
  }


}

@media (min-width: 1181px) and (max-width: 1380px) {
  .hero__top {
    grid-template-columns: minmax(292px, 314px) minmax(0, 1fr) minmax(312px, auto);
  }

  .hero-nav-shell:not(.is-fixed) .hero-nav--primary {
    gap: clamp(7px, 0.58vw, 11px);
  }

  .hero-nav-shell:not(.is-fixed) .hero-nav__item {
    padding-inline: 2px;
    font-size: 0.895rem;
  }


}


@media (min-width: 861px) and (max-width: 980px) {


  .hero__contact {
    display: none;
  }
}

@media (min-width: 640px) and (max-width: 860px) {
  .hero {
    border-radius: var(--radius-lg);
  }

  .hero__top {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 6px 9px;
  }

  .hero__identity {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: none;
    gap: 7px;
  }

  .hero__avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .hero__copy {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
  }

  .hero__title {
    display: block;
    max-width: 100%;
    overflow: hidden;
    font-size: 0.95rem;
    line-height: 1.04;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero__title-separator,
.hero__title-game {
    display: inline;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: 0;
    text-transform: none;
  }

  .hero__meta--tagline {
    display: block;
    margin-top: 2px;
    font-size: 0.64rem;
    font-weight: 800;
    line-height: 1;
  }

  .hero__meta-full {
    display: inline;
  }

  .hero__meta-short {
    display: none;
  }

  .hero__controls {
    display: contents;
  }

  .hero__actions {
    order: 2;
    display: flex;
    width: auto;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
  }

  .hero__contact {
    display: none;
  }

  .theme-toggle,
.hero__search-toggle,
.hero__contact-toggle {
    width: 31px;
    height: 31px;
    min-height: 31px;
    padding: 0;
    border-radius: 11px;
    line-height: 1;
  }

  .hero__search-toggle {
    display: inline-flex;
  }

  .hero__origin {
    min-width: 82px;
    height: 31px;
    min-height: 31px;
    padding: 0 9px;
    border-radius: 11px;
    font-size: 0.755rem;
    line-height: 1;
  }

  .hero__origin-label--full {
    display: none;
  }

  .hero__origin-label--short {
    display: inline;
  }

  .theme-toggle__icon {
    width: 17px;
    height: 17px;
  }

  .hero__search-toggle-icon,
.hero__search-toggle-icon svg,
.hero__origin-icon,
.hero__origin-icon svg {
    width: 15px;
    height: 15px;
  }

  .hero .search {
    order: 3;
    flex: 1 0 100%;
    max-width: none;
    min-width: 0;
  }

  .search__input {
    height: 38px;
  }

  .hero-nav-shell,
.hero-nav-shell.is-fixed {
    display: block;
    min-height: 33px;
    padding: 0 14px;
    overflow: visible;
  }

  .hero-nav-shell.is-fixed {
    top: 0;
    width: min(calc(100% - 18px), var(--container));
    border-radius: 0 0 16px 16px;
  }

  .hero-nav-brand,
.hero-nav--primary,
.hero-nav--secondary {
    display: none;
  }

  .hero-nav-shell.is-fixed .hero-nav-brand {
    position: absolute;
    top: 50%;
    left: 14px;
    display: inline-flex;
    max-width: 58px;
    overflow: visible;
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 950;
    letter-spacing: 0;
    transform: translateY(-50%);
  }

  .hero-nav-shell.is-fixed .hero-nav-brand__avatar {
    display: none;
  }

  .hero-nav-shell.is-fixed .hero-nav-brand span {
    display: inline;
    background: linear-gradient(90deg, var(--text) 0 42%, var(--accent) 42% 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
  }

  .hero-nav-shell.is-fixed .hero-mobile-nav {
    padding-left: 64px;
  }

  .hero-mobile-nav {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    min-height: 33px;
    overflow: visible;
  }

  .hero-mobile-nav__item,
.hero-mobile-more__summary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 33px;
    padding: 0 1px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: color-mix(in srgb, var(--text-soft) 86%, var(--text));
    font-size: 0.72rem;
    font-weight: 840;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
  }

  .hero-mobile-nav__item[aria-current="page"] {
    color: var(--accent);
  }

  .hero-mobile-nav__item[aria-current="page"]::after,
.hero-mobile-more.is-active .hero-mobile-more__summary::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .hero-mobile-more.is-active .hero-mobile-more__summary {
    color: var(--accent);
  }

  .hero-mobile-nav__item--disabled {
    opacity: 0.68;
  }

  .hero-mobile-more {
    position: relative;
    min-width: 0;
    margin-left: auto;
  }

  .hero-mobile-more__summary {
    gap: 4px;
    width: 100%;
    cursor: pointer;
    list-style: none;
  }

  .hero-mobile-more__summary::-webkit-details-marker {
    display: none;
  }

  .hero-mobile-more__chevron {
    width: 0;
    height: 0;
    border-top: 4px solid currentColor;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    transform: translateY(1px);
  }

  .hero-mobile-more[open] .hero-mobile-more__chevron {
    transform: rotate(180deg) translateY(-1px);
  }

  .hero-mobile-more__panel {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    z-index: 460;
    display: grid;
    gap: 3px;
    min-width: 152px;
    padding: 7px;
    border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
    border-radius: 14px;
    background: var(--surface-strong);
    box-shadow: 0 18px 44px rgba(20, 35, 61, 0.16);
  }

  .hero-mobile-more__item {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 10px;
    color: color-mix(in srgb, var(--text-soft) 88%, var(--text));
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
  }

  .hero-mobile-more__item[aria-current="page"] {
    background: color-mix(in srgb, var(--accent) 10%, var(--surface-muted));
    color: var(--accent);
  }

  .hero-mobile-more__item--disabled {
    opacity: 0.68;
  }
}

/* Channel visit card: compact framed sidebar variant. */
.home-left-sidebar {
  max-height: none;
  overflow: visible;
}

.home-left-sidebar > * {
  flex: 0 0 auto;
}

.channel-card--visit {
  padding: 22px 20px 18px;
}

.channel-card--visit::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--accent) 11%, var(--line));
  border-radius: var(--radius-card);
}

.channel-card--visit .channel-card__profile {
  grid-template-columns: 66px minmax(0, 1fr);
  grid-template-areas:
    "logo identity"
    "actions actions";
  gap: 7px 8px;
  min-height: 0;
  margin: 0;
  padding: 2px 12px;
  border: 0;
  background: transparent;
}

.channel-card--visit .channel-card__profile::after {
  display: none;
}

.channel-card__visit-logo-link {
  grid-area: logo;
  justify-self: end;
  width: 56px;
  height: 56px;
}

.channel-card--visit .channel-card__avatar--visit {
  width: 54px;
  height: 54px;
}

.channel-card--visit .channel-card__identity {
  grid-area: identity;
}

.channel-card--visit .channel-card__title--visit {
  color: #000 !important;
  font-size: 1.12rem;
  font-weight: 960;
  letter-spacing: 0;
}

.channel-card--visit .channel-card__title--visit span {
  color: #000 !important;
}

.channel-card--visit .channel-card__handle {
  font-size: 0.85rem;
}

.channel-card--visit .channel-card__subscribers {
  font-size: 0.77rem;
}

.channel-card--visit .channel-card__actions--visit {
  grid-area: actions;
  width: 100%;
  margin-top: 2px;
  margin-bottom: 2px;
}

.channel-card--visit .channel-card__actions--visit .channel-card__button {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  gap: 6px;
  padding: 0 12px;
  font-size: 0.86rem;
  box-shadow:
    0 7px 16px rgba(20, 35, 61, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.channel-card--visit .channel-card__actions--visit .channel-card__button:hover,
.channel-card--visit .channel-card__actions--visit .channel-card__button:focus-visible {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 90%, white 10%), color-mix(in srgb, var(--accent-strong) 94%, var(--accent)));
  box-shadow:
    0 8px 18px rgba(20, 35, 61, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.channel-card--visit .channel-card__button-icon,
.channel-card--visit .channel-card__button-icon svg {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}

.channel-card--visit .channel-card__socials {
  margin: 0 12px;
  padding: 0;
  border-top: 0;
  border-bottom: 0;
}

.channel-card--visit .channel-card__social {
  min-height: 34px;
  gap: 0;
  padding: 0;
}

.channel-card--visit .channel-card__social-icon,
.channel-card--visit .channel-card__social-icon svg {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
  color: color-mix(in srgb, var(--text-soft) 82%, var(--text));
}

.channel-card--visit .channel-card__social:hover .channel-card__social-icon,
.channel-card--visit .channel-card__social:focus-visible .channel-card__social-icon,
.channel-card--visit .channel-card__social:hover .channel-card__social-icon svg,
.channel-card--visit .channel-card__social:focus-visible .channel-card__social-icon svg {
  color: var(--accent);
}

.channel-card--visit .channel-card__social-label {
  display: none;
}

.channel-card--visit .channel-card__footer {
  gap: 8px;
  margin: 4px 12px 0;
  padding-top: 9px;
  padding-bottom: 2px;
  border-top: 1px solid var(--divider-soft);
}

.channel-card--visit .channel-card__footer-link {
  gap: 5px;
}

.channel-card--visit .channel-card__footer-link--about {
  justify-content: flex-end;
}

.channel-card--visit .channel-card__footer-icon,
.channel-card--visit .channel-card__footer-icon svg {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}

.channel-card--visit .channel-card__footer-arrow {
  margin-left: 2px;
}

/* Header controls: consistent desktop sizing and alignment. */
@media (min-width: 1181px) {
  .hero__controls {
    align-items: center;
    gap: 10px;
  }

  .hero__actions {
    align-items: center;
    gap: 8px;
  }

  .hero .search {
    width: 244px;
    max-width: 244px;
    min-width: 220px;
  }

  .search__input,
.theme-toggle,
.hero__search-toggle,
.hero__contact-toggle,
.hero__origin {
    height: 40px;
    min-height: 40px;
    border-radius: 14px;
  }

  .theme-toggle,
.hero__search-toggle,
.hero__contact-toggle {
    width: 40px;
    padding: 0;
  }

  .search__input {
    padding-left: 40px;
    font-size: 0.92rem;
  }

  .hero__origin {
    min-width: 170px;
    padding: 0 16px;
    gap: 8px;
    font-size: 0.9rem;
  }

  .theme-toggle__icon,
.hero__search-toggle-icon,
.hero__contact-toggle-icon,
.hero__origin-icon {
    width: 20px;
    height: 20px;
  }

  .hero__search-toggle-icon svg,
.hero__contact-toggle-icon svg,
.hero__origin-icon svg {
    width: 20px;
    height: 20px;
  }

  :root[data-theme="light"] .theme-toggle__icon::before {
    font-size: 26px;
    margin-top: 28px;
    margin-left: 25px;
  }
}

@media (min-width: 1181px) and (max-width: 1380px) {
  .hero__controls {
    gap: 8px;
  }

  .hero__actions {
    gap: 7px;
  }

  .hero .search {
    width: 214px;
    max-width: 214px;
    min-width: 180px;
  }

  .search__input,
.theme-toggle,
.hero__search-toggle,
.hero__contact-toggle,
.hero__origin {
    height: 38px;
    min-height: 38px;
    border-radius: 13px;
  }

  .theme-toggle,
.hero__search-toggle,
.hero__contact-toggle {
    width: 38px;
  }

  .search__input {
    padding-left: 38px;
    font-size: 0.88rem;
  }

  .hero__origin {
    min-width: 154px;
    padding-inline: 13px;
    gap: 7px;
    font-size: 0.84rem;
  }

  .theme-toggle__icon,
.hero__search-toggle-icon,
.hero__contact-toggle-icon,
.hero__origin-icon {
    width: 19px;
    height: 19px;
  }

  .hero__search-toggle-icon svg,
.hero__contact-toggle-icon svg,
.hero__origin-icon svg {
    width: 19px;
    height: 19px;
  }
}

@media (min-width: 861px) and (max-width: 1180px) {
  .hero__controls {
    align-items: center;
    gap: 7px;
  }

  .hero__actions {
    align-items: center;
    gap: 7px;
  }

  .theme-toggle,
.hero__search-toggle,
.hero__contact-toggle,
.hero__origin {
    height: 36px;
    min-height: 36px;
    border-radius: 12px;
  }

  .theme-toggle,
.hero__search-toggle,
.hero__contact-toggle {
    width: 36px;
  }

  .hero__origin {
    gap: 6px;
  }

  .theme-toggle__icon,
.hero__search-toggle-icon,
.hero__contact-toggle-icon,
.hero__origin-icon,
.hero__search-toggle-icon svg,
.hero__contact-toggle-icon svg,
.hero__origin-icon svg {
    width: 18px;
    height: 18px;
  }
}

/* Keep the header on one line around 1180-1300px without nav/search overlap. */
@media (min-width: 1181px) and (max-width: 1300px) {

  .hero__identity {
    min-width: 0;
    max-width: 360px;
  }

  .hero__copy {
    min-width: 0;
    max-width: none;
  }

  .hero__meta,
.hero__meta--tagline {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
  }

  .hero__meta-full {
    display: inline;
    white-space: nowrap;
  }

  .hero-nav-shell:not(.is-fixed) {
    width: max-content;
    max-width: none;
    min-width: 0;
    justify-self: center;
    overflow: visible;
  }

  .hero-nav-shell:not(.is-fixed) .hero-nav--primary {
    width: max-content;
    gap: 5px;
    overflow: visible;
  }

  .hero-nav-shell:not(.is-fixed) .hero-nav__item {
    padding-inline: 2px;
    font-size: 0.84rem;
  }

  .hero__controls {
    gap: 7px;
    justify-self: end;
  }

  .has-mobile-search-toggle .hero:not(.is-search-open) .search,
.hero:not(.is-search-open) .search {
    display: none;
  }


  .theme-toggle,
.hero__search-toggle,
.hero__contact-toggle,
.hero__origin {
    height: 38px;
    min-height: 38px;
    border-radius: 13px;
  }

  .theme-toggle,
.hero__search-toggle,
.hero__contact-toggle {
    width: 38px;
  }

  .hero__origin {
    gap: 7px;
  }
}

/* Wide desktop search: keep the same compact field as around 1320px. */
@media (min-width: 1381px) {
  .hero .search {
    width: 180px;
    max-width: 180px;
    min-width: 180px;
  }

  .search__input {
    height: 38px;
    min-height: 38px;
    padding-left: 38px;
    border-radius: 13px;
    font-size: 0.88rem;
  }
}

/* Medium desktop header: keep the 950px layout compact without clipping the tagline. */
@media (min-width: 861px) and (max-width: 980px) {


  .hero__copy {
    max-width: none;
  }


}

/* Desktop header refinement: lighter nav type and lower-profile controls. */
@media (min-width: 861px) {
  .hero__top {
    padding-top: 6px;
    padding-bottom: 6px;
  }


  .hero-nav__item,
.hero-nav-shell:not(.is-fixed) .hero-nav__item {
    padding-inline: 2px;
    text-rendering: optimizeLegibility;
  }


  .hero__origin {
    padding-inline: 13px;
  }


}

@media (min-width: 1181px) and (max-width: 1300px) {
  .hero__origin {
    padding-inline: 11px;
    font-size: 0.78rem;
  }
}

@media (min-width: 861px) and (max-width: 980px) {


  .hero__origin {
    min-width: 82px;
    padding-inline: 10px;
    font-size: 0.76rem;
  }
}

/* Keep the matches header width aligned with the home header on wide desktop. */
@media (min-width: 1280px) {
  body.page-matches {
    --container: 1328px;
  }
}

/* Quiet channel block for the lower left sidebar. */
.channel-card--quiet {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 12px 13px 10px;
  border: 1px solid color-mix(in srgb, var(--line) 68%, transparent);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--surface-strong) 70%, transparent);
  box-shadow: none;
  text-align: left;
}

.channel-card--quiet::before,
.channel-card--quiet::after {
  display: none;
}

.channel-card--quiet .channel-card__compact-profile {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}

.channel-card--quiet .channel-card__compact-avatar-link {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-control);
}

.channel-card--quiet .channel-card__compact-avatar {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  object-fit: cover;
}

.channel-card--quiet .channel-card__compact-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.channel-card--quiet .channel-card__title--visit {
  margin: 0;
  overflow: hidden;
  color: color-mix(in srgb, var(--text) 92%, var(--text-soft));
  font-size: 0.82rem;
  font-weight: 880;
  line-height: 1.05;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-card--quiet .channel-card__title--visit span {
  color: inherit !important;
}

.channel-card--quiet .channel-card__subscribers {
  color: color-mix(in srgb, var(--text-soft) 88%, transparent);
  font-size: 0.64rem;
  font-weight: 720;
  line-height: 1;
  white-space: nowrap;
}

.channel-card--quiet .channel-card__compact-subscribe {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 5%, var(--surface-strong));
  color: color-mix(in srgb, var(--accent) 76%, var(--text));
  font-size: 0.68rem;
  font-weight: 820;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.channel-card--quiet .channel-card__compact-subscribe:hover,
.channel-card--quiet .channel-card__compact-subscribe:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-strong));
  color: var(--accent);
}

.channel-card--quiet .channel-card__quiet-row--socials {
  min-width: 0;
}

.channel-card--quiet .channel-card__socials {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 6px;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
}

.channel-card--quiet .channel-card__social {
  display: inline-flex;
  min-height: 16px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: color-mix(in srgb, var(--text-soft) 82%, var(--text));
  text-decoration: none;
  justify-self: center;
  transform: none;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.channel-card--quiet .channel-card__social:first-child {
  justify-self: start;
}

.channel-card--quiet .channel-card__social:last-child {
  justify-self: end;
}

.channel-card--quiet .channel-card__social:not(:last-child)::after {
  display: none;
}

.channel-card--quiet .channel-card__social:hover,
.channel-card--quiet .channel-card__social:focus-visible {
  background: transparent;
  color: var(--accent);
  transform: none;
}

.channel-card--quiet .channel-card__social--telegram {
  color: color-mix(in srgb, var(--text-soft) 82%, var(--text));
}

.channel-card--quiet .channel-card__social-label {
  display: inline;
  min-width: 0;
  overflow: hidden;
  color: currentColor;
  font-size: 0.62rem;
  font-weight: 760;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-card--quiet .channel-card__footer {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 6px;
  align-items: center;
  margin: 0;
  padding-top: 7px;
  margin-left: 7px;
  margin-right: 8px;
  border-top: 1px solid color-mix(in srgb, var(--line) 58%, transparent);
}

.channel-card--quiet .channel-card__footer-link {
  min-width: 0;
  color: color-mix(in srgb, var(--text-soft) 86%, transparent);
  font-size: 0.66rem;
  font-weight: 720;
  line-height: 1;
  text-decoration: none;
  transition: color 160ms ease;
}

.channel-card--quiet .channel-card__footer-link:hover,
.channel-card--quiet .channel-card__footer-link:focus-visible {
  color: var(--accent);
}

.channel-card--quiet .channel-card__footer-link--mail span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-card--quiet .channel-card__footer-link--mail {
  grid-column: 1 / 4;
  justify-self: start;
}

.channel-card--quiet .channel-card__footer-link--rss {
  grid-column: 4;
  justify-self: center;
}

.channel-card--quiet .channel-card__footer-link--about {
  grid-column: 5;
  justify-self: end;
  white-space: nowrap;
}

/* Rankings page: dense editorial table, aligned with matches/tournaments rhythm. */
.page-rankings .rankings-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  min-height: 0;
  padding: 16px 18px 15px;
}

.page-rankings .rankings-hero__breadcrumbs {
  margin-bottom: 8px;
}

.page-rankings .rankings-hero__title {
  font-size: clamp(1.48rem, 2.5vw, 1.86rem);
  letter-spacing: 0;
}

.page-rankings .rankings-hero__description {
  max-width: 560px;
  margin-top: 7px;
  font-size: 0.9rem;
  line-height: 1.38;
}

.page-rankings .rankings-hero__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 5px;
  max-width: none;
  margin-top: 0;
}

.page-rankings .rankings-hero__meta span {
  min-height: 24px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 820;
}

.page-rankings .rankings-toolbar {
  min-height: 42px;
  border-radius: var(--radius-card);
}

.page-rankings .rankings-region {
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.72rem;
}

.page-rankings .rankings-toolbar__summary {
  padding-right: 2px;
  font-size: 0.78rem;
  font-weight: 820;
}

.page-rankings .rankings-table {
  display: block;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.page-rankings .rankings-table__row {
  display: grid;
  gap: 12px;
  align-items: center;
  min-height: 50px;
  padding: 8px 16px;
  border: 0;
  border-top: 1px solid var(--divider-soft);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-rankings .rankings-table__row:first-child {
  border-top: 0;
}

.page-rankings .rankings-table__row--head {
  min-height: 34px;
  padding-block: 8px;
  background: color-mix(in srgb, var(--surface-muted) 72%, var(--surface));
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 880;
  letter-spacing: 0.035em;
}

.page-rankings .rankings-table__rank {
  display: inline-flex;
  width: auto;
  height: auto;
  justify-content: flex-start;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: color-mix(in srgb, var(--text-soft) 86%, var(--text));
  font-size: 0.8rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.page-rankings .rankings-table__team {
  gap: 9px;
  font-size: 0.86rem;
  font-weight: 850;
}

.page-rankings .rankings-table__logo {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  border-radius: 8px;
}

.page-rankings .rankings-table__points {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.page-rankings .rankings-table__roster {
  font-size: 0.78rem;
  font-weight: 680;
}


@media (max-width: 700px) {
  .page-rankings .rankings-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-rankings .rankings-hero__meta {
    align-items: flex-start;
  }


  .page-rankings .rankings-table__roster {
    grid-column: 2 / 4;
  }
}

/* Stage 2: polished minimalist header. */
.hero {
  overflow: visible;
}

.hero__identity:focus-visible,
.hero-nav-brand:focus-visible,
.hero-nav__item:focus-visible,
.hero-mobile-nav__item:focus-visible,
.hero-mobile-more__summary:focus-visible,
.hero-mobile-more__item:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

.hero__identity:focus-visible,
.hero-nav-brand:focus-visible {
  border-radius: var(--radius-control);
}

.hero-nav-spacer:not([hidden]) {
  display: block;
  flex: 0 0 auto;
  height: var(--header-spacer-height, auto);
}

.has-fixed-hero-nav .hero-nav-spacer:not([hidden]) {
  display: block;
  height: var(--header-spacer-height, 40px) !important;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.theme-toggle,
.hero__search-toggle,
.hero__contact-toggle,
.hero__origin {
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  background: var(--control-bg);
  box-shadow: none;
  color: color-mix(in srgb, var(--text-soft) 82%, var(--text));
  transition:
    background-color var(--transition-base),
    border-color var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-base);
}

.theme-toggle:hover,
.hero__search-toggle:hover,
.hero__contact-toggle:hover {
  border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
  background: color-mix(in srgb, var(--accent) 4%, var(--surface-strong));
  color: color-mix(in srgb, var(--accent) 72%, var(--text));
}

.hero__origin {
  box-shadow: none;
}

.hero__origin:hover,
.hero__origin:focus-visible {
  box-shadow: none;
  transform: none;
}

.search__input {
  border-color: color-mix(in srgb, var(--line) 76%, transparent);
  background: var(--control-bg);
  box-shadow: none;
}

.search__input:focus {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  box-shadow: var(--focus-ring);
}

@media (min-width: 861px) {
  .hero {
    border-radius: var(--radius-lg);
    border-color: color-mix(in srgb, var(--line) 74%, transparent);
    background: color-mix(in srgb, var(--surface-strong) 92%, var(--surface-muted));
    box-shadow: var(--shadow-card);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero__top {
    display: grid;
    grid-template-columns: minmax(248px, 300px) minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 48px;
    padding: 6px 10px;
  }

  .hero__identity {
    max-width: 300px;
    gap: 8px;
  }

  .hero__avatar {
    width: 34px;
    height: 34px;
    border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    border-radius: var(--radius-control);
    box-shadow: none;
  }

  .hero__title {
    font-size: 1.04rem;
    font-weight: 850;
    line-height: 1.02;
    letter-spacing: 0;
  }

  .hero__meta,
.hero__meta--tagline {
    margin-top: 2px;
    color: color-mix(in srgb, var(--text-soft) 84%, var(--text));
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.05;
  }

  .hero-nav-shell:not(.is-fixed) {
    width: 100%;
    max-width: max-content;
    min-width: 0;
    min-height: 34px;
    justify-self: center;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero-nav-shell:not(.is-fixed) .hero-nav--primary {
    width: auto;
    justify-content: center;
    gap: clamp(7px, 0.72vw, 13px);
  }

  .hero-nav--secondary {
    display: none;
  }

  .hero-nav__item,
.hero-nav-shell:not(.is-fixed) .hero-nav__item {
    min-height: 32px;
    padding: 0 3px;
    border-radius: var(--radius-sm);
    background: transparent;
    box-shadow: none;
    color: color-mix(in srgb, var(--text-soft) 78%, var(--text));
    font-family: var(--font-sans);
    font-size: 0.83rem;
    font-weight: 720;
    letter-spacing: 0;
    line-height: 1;
    transition:
      background-color var(--transition-fast),
      color var(--transition-fast),
      box-shadow var(--transition-fast);
  }

  .hero-nav__item::after {
    right: 4px;
    bottom: 2px;
    left: 4px;
    height: 2px;
    border-radius: var(--radius-pill);
    background: transparent;
  }

  .hero-nav__item:hover,
.hero-nav__item:focus-visible {
    background: color-mix(in srgb, var(--accent) 4%, transparent);
    color: color-mix(in srgb, var(--accent) 74%, var(--text));
    transform: none;
  }

  .hero-nav__item[aria-current="page"],
.hero-nav-shell:not(.is-fixed) .hero-nav__item[aria-current="page"] {
    background: transparent;
    box-shadow: none;
    color: var(--accent);
    font-weight: 780;
  }

  .hero-nav__item[aria-current="page"]::after {
    background: color-mix(in srgb, var(--accent) 86%, transparent);
  }

  .hero-nav__item--disabled {
    opacity: 0.56;
  }

  .hero-nav__item--disabled:hover,
.hero-nav__item--disabled:focus-visible {
    background: transparent;
    color: color-mix(in srgb, var(--text-soft) 86%, var(--text));
  }

  .hero-nav__item--disabled::before {
    border-radius: var(--radius-control);
    box-shadow: var(--shadow-popover);
  }

  .hero__controls {
    justify-self: end;
    gap: 7px;
  }

  .hero__actions {
    gap: 7px;
  }

  .hero .search {
    width: 188px;
    max-width: 188px;
    min-width: 160px;
  }

  .search__input,
.theme-toggle,
.hero__search-toggle,
.hero__contact-toggle,
.hero__origin {
    height: 34px;
    min-height: 34px;
    border-radius: var(--radius-control);
  }

  .theme-toggle,
.hero__search-toggle,
.hero__contact-toggle {
    width: 34px;
    padding: 0;
  }

  .search__input {
    padding-left: 35px;
    font-size: 0.84rem;
  }

  .hero__origin {
    min-width: 136px;
    padding: 0 12px;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 780;
  }

  .theme-toggle__icon,
.hero__search-toggle-icon,
.hero__contact-toggle-icon,
.hero__origin-icon,
.hero__search-toggle-icon svg,
.hero__contact-toggle-icon svg,
.hero__origin-icon svg {
    width: 17px;
    height: 17px;
  }

  .hero-nav-shell.is-fixed {
    top: 8px;
    left: 50%;
    display: grid;
    width: auto;
    max-width: min(calc(100% - 20px), var(--container));
    min-height: 38px;
    padding: 2px 14px 2px 10px;
    border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: translateX(-50%);
  }

  .hero-nav-shell.is-fixed .hero-nav-brand {
    display: inline-flex;
    gap: 7px;
    min-width: 0;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 840;
  }

  .hero-nav-shell.is-fixed .hero-nav-brand__avatar {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    box-shadow: none;
  }

  .hero-nav-shell.is-fixed .hero-nav--primary {
    gap: clamp(10px, 1.05vw, 17px);
  }

  .hero-nav-shell.is-fixed .hero-nav__item {
    min-height: 34px;
    padding: 0 3px;
    font-size: 0.81rem;
  }

  .hero-nav-shell.is-fixed .hero-nav__item[aria-current="page"] {
    background: transparent;
    box-shadow: none;
  }

  .has-fixed-hero-nav .hero {
    min-height: 0;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .has-fixed-hero-nav .hero__top {
    min-height: 0;
    height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
  }
}

@media (min-width: 1181px) and (max-width: 1300px) {
  .hero__top {
    grid-template-columns: minmax(260px, 300px) max-content auto;
    gap: 8px;
  }

  .hero .search {
    display: none;
  }

  .hero__search-toggle {
    display: inline-flex;
  }

  .hero.is-search-open .search {
    position: absolute;
    top: calc(100% + 8px);
    right: 8px;
    z-index: 120;
    display: block;
    width: min(320px, calc(100vw - 32px));
    max-width: none;
    min-width: 0;
    padding: 8px;
    border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    border-radius: var(--radius-lg);
    background: var(--surface-strong);
    box-shadow: var(--elevation-popover);
    transform-origin: top right;
    animation: cs3-popover-in var(--transition-base) both;
    will-change: transform, opacity;
  }

  .hero__origin-label--full {
    display: none;
  }

  .hero__origin-label--short {
    display: inline;
  }

  .hero__origin {
    min-width: 88px;
  }
}

@media (min-width: 861px) and (max-width: 1180px) {
  .hero__top {
    grid-template-columns: minmax(218px, 248px) minmax(0, 1fr) auto;
    gap: 7px;
  }

  .hero__identity {
    min-width: 0;
    max-width: 248px;
  }

  .hero__title {
    overflow: hidden;
    font-size: 0.98rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero__meta-full {
    display: none;
  }

  .hero__meta-short {
    display: inline;
  }

  .hero-nav-shell:not(.is-fixed) .hero-nav--primary {
    gap: 5px;
  }

  .hero-nav-shell:not(.is-fixed) .hero-nav__item {
    min-height: 30px;
    padding-inline: 2px;
    font-size: 0.78rem;
  }

  .hero__search-toggle {
    display: inline-flex;
  }

  .has-mobile-search-toggle .hero:not(.is-search-open) .search,
.hero:not(.is-search-open) .search {
    display: none;
  }

  .hero.is-search-open .search {
    position: absolute;
    top: calc(100% + 8px);
    right: 8px;
    z-index: 120;
    display: block;
    width: min(320px, calc(100vw - 32px));
    max-width: none;
    min-width: 0;
    padding: 8px;
    border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    border-radius: var(--radius-lg);
    background: var(--surface-strong);
    box-shadow: var(--elevation-popover);
    transform-origin: top right;
    animation: cs3-popover-in var(--transition-base) both;
    will-change: transform, opacity;
  }

  .hero__origin-label--full {
    display: none;
  }

  .hero__origin-label--short {
    display: inline;
  }

  .hero__origin {
    min-width: 82px;
    padding-inline: 10px;
    font-size: 0.76rem;
  }

  .hero__contact {
    display: none;
  }

  .hero-nav-shell.is-fixed .hero-nav-brand {
    display: none;
  }
}

@media (min-width: 980px) and (max-width: 1180px) {
  .hero__top {
    grid-template-columns: minmax(248px, 276px) minmax(0, 1fr) auto;
  }

  .hero__identity {
    max-width: 276px;
  }

  .hero__meta-full {
    display: inline;
    white-space: nowrap;
  }

  .hero__meta-short {
    display: none;
  }
}

@media (min-width: 1080px) and (max-width: 1180px) {
  .hero__meta,
.hero__meta--tagline {
    color: color-mix(in srgb, var(--text-soft) 94%, var(--surface-strong));
    font-weight: 400;
  }

  .hero-nav-shell:not(.is-fixed) {
    width: min(100%, 500px) !important;
    max-width: min(100%, 500px) !important;
    justify-self: center;
  }

  .hero-nav-shell:not(.is-fixed) .hero-nav--primary {
    width: 100% !important;
    max-width: none !important;
    justify-content: space-between;
    gap: clamp(8px, 0.9vw, 11px);
  }

  .hero-nav-shell:not(.is-fixed) .hero-nav__item {
    min-height: 32px;
    font-size: 0.82rem;
  }
}

@media (min-width: 981px) and (max-width: 1079.98px) {
  .hero__meta,
.hero__meta--tagline {
    color: color-mix(in srgb, var(--text-soft) 94%, var(--surface-strong));
    font-weight: 400;
  }

  .hero-nav-shell:not(.is-fixed) {
    width: min(100%, 500px) !important;
    max-width: min(100%, 500px) !important;
    justify-self: center;
  }

  .hero-nav-shell:not(.is-fixed) .hero-nav--primary {
    width: 100% !important;
    max-width: none !important;
    justify-content: space-between;
    gap: clamp(6px, 0.75vw, 9px);
  }

  .hero-nav-shell:not(.is-fixed) .hero-nav__item {
    min-height: 32px;
    font-size: 0.78rem;
  }
}

@media (min-width: 861px) and (max-width: 1079.98px) {
  .hero-nav-shell.is-fixed {
    top: 0;
    display: block;
    width: min(calc(100% - 18px), var(--container));
    max-width: min(calc(100% - 18px), var(--container));
    min-height: 40px;
    padding: 0 12px;
    border-top: 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    background: var(--surface-strong);
    box-shadow: 0 5px 16px rgba(16, 24, 40, 0.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero-nav-shell.is-fixed .hero-nav-brand,
.hero-nav-shell.is-fixed .hero-nav--secondary {
    display: none;
  }

  .hero-nav-shell.is-fixed .hero-nav--primary {
    display: flex;
    width: 100%;
    min-height: 40px;
    justify-content: center;
    gap: clamp(8px, 1.4vw, 16px);
  }

  .hero-nav-shell.is-fixed .hero-nav__item {
    min-height: 40px;
    font-size: 0.8rem;
  }
}

@media (min-width: 1080px) and (max-width: 1180px) {
  .hero-nav-shell.is-fixed {
    top: 8px;
    display: grid;
    min-height: 38px;
    padding: 2px 14px 2px 10px;
    border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .hero-nav-shell.is-fixed .hero-nav-brand {
    display: inline-flex;
  }

  .hero-nav-shell.is-fixed .hero-nav--primary {
    min-height: 34px;
  }

  .hero-nav-shell.is-fixed .hero-nav__item {
    min-height: 34px;
    font-size: clamp(0.74rem, 0.8vw, 0.8rem);
  }
}

@media (min-width: 981px) and (max-width: 1079.98px) {
  .hero-nav-shell.is-fixed {
    display: grid;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
    box-shadow: 0 8px 22px rgba(20, 35, 61, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .hero-nav-shell.is-fixed .hero-nav-brand {
    display: inline-flex;
  }


}

/* Center the desktop top nav against the visible brand, not its reserved column. */
@media (min-width: 981px) and (max-width: 1300px) {
  .hero__top {
    grid-template-columns: max-content minmax(0, 1fr) auto;
  }

  .hero__identity {
    justify-self: start;
    width: max-content;
    max-width: min(360px, 34vw);
  }

  .hero-nav-shell:not(.is-fixed) {
    justify-self: center;
  }
}

@media (max-width: 860px) {
  .hero {
    border-radius: var(--radius-lg);
    border-color: color-mix(in srgb, var(--line) 76%, transparent);
    background: color-mix(in srgb, var(--surface-strong) 94%, var(--surface-muted));
    box-shadow: var(--shadow-card);
  }

  .hero__top {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    gap: 5px;
    min-height: 44px;
    padding: 6px 8px;
  }

  .hero__identity {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: none;
    gap: 7px;
  }

  .hero__avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-control);
    box-shadow: none;
  }

  .hero__copy {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
  }

  .hero__title {
    display: block;
    max-width: 100%;
    overflow: hidden;
    font-size: 0.88rem;
    line-height: 1.04;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero__meta,
.hero__meta--tagline {
    margin-top: 2px;
    font-size: 0.61rem;
    font-weight: 740;
    line-height: 1;
  }

  .hero__controls {
    display: contents;
  }

  .hero__actions {
    order: 2;
    display: flex;
    width: auto;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
  }

  .hero__contact {
    display: none;
  }

  .hero__search-toggle {
    display: inline-flex;
  }

  .theme-toggle,
.hero__search-toggle,
.hero__contact-toggle,
.hero__origin {
    height: 31px;
    min-height: 31px;
    border-radius: var(--radius-control);
  }

  .theme-toggle,
.hero__search-toggle,
.hero__contact-toggle {
    width: 31px;
  }

  .hero__origin {
    min-width: 80px;
    padding: 0 9px;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 780;
  }

  .hero__origin-label--full {
    display: none;
  }

  .hero__origin-label--short {
    display: inline;
  }

  .hero__search-toggle-icon,
.hero__search-toggle-icon svg,
.hero__contact-toggle-icon,
.hero__contact-toggle-icon svg,
.hero__origin-icon,
.hero__origin-icon svg {
    width: 15px;
    height: 15px;
  }

  .has-mobile-search-toggle .hero:not(.is-search-open) .search,
.hero:not(.is-search-open) .search {
    display: none;
  }

  .hero.is-search-open .search {
    order: 3;
    display: block;
    flex: 1 0 100%;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin-top: 2px;
  }

  .hero.is-search-open .search__input {
    height: 36px;
    min-height: 36px;
  }

  .hero-nav-shell,
.hero-nav-shell.is-fixed {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 34px;
    padding: 0 9px;
    overflow: visible;
    border-top: 1px solid color-mix(in srgb, var(--line) 68%, transparent);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero-nav-shell.is-fixed {
    top: 0;
    min-height: 35px;
    padding-inline: 9px;
    border: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
    border-top: 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    background: var(--surface-strong);
    box-shadow: 0 5px 16px rgba(16, 24, 40, 0.08);
  }

  .hero-nav-shell .hero-nav-brand,
.hero-nav-shell .hero-nav--primary,
.hero-nav-shell .hero-nav--secondary,
.hero-nav-shell.is-fixed .hero-nav-brand,
.hero-nav-shell.is-fixed .hero-nav--primary,
.hero-nav-shell.is-fixed .hero-nav--secondary {
    display: none;
  }

  .hero-mobile-nav {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 35px;
    align-items: stretch;
  }

  .hero-mobile-nav__item,
.hero-mobile-more__summary {
    position: relative;
    display: inline-flex;
    min-width: 0;
    min-height: 35px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: color-mix(in srgb, var(--text-soft) 84%, var(--text));
    font-size: clamp(0.66rem, 2.3vw, 0.72rem);
    font-weight: 760;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
  }

  .hero-mobile-nav__item:hover,
.hero-mobile-nav__item:focus-visible,
.hero-mobile-more__summary:hover,
.hero-mobile-more__summary:focus-visible {
    color: color-mix(in srgb, var(--accent) 76%, var(--text));
  }

  .hero-mobile-nav__item[aria-current="page"],
.hero-mobile-more.is-active .hero-mobile-more__summary {
    color: var(--accent);
    font-weight: 820;
  }

  .hero-mobile-nav__item[aria-current="page"]::after,
.hero-mobile-more.is-active .hero-mobile-more__summary::after {
    content: "";
    position: absolute;
    right: 1px;
    bottom: 2px;
    left: 1px;
    height: 2px;
    border-radius: var(--radius-pill);
    background: currentColor;
  }

  .hero-mobile-nav__item--disabled {
    opacity: 0.48;
  }

  .hero-mobile-more {
    position: relative;
    min-width: 0;
  }

  .hero-mobile-more__summary {
    gap: 3px;
    cursor: pointer;
    list-style: none;
  }

  .hero-mobile-more__summary::-webkit-details-marker {
    display: none;
  }

  .hero-mobile-more__panel {
    right: 0;
    min-width: 146px;
    padding: 6px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-popover);
  }

  .hero-mobile-more__item {
    min-height: 32px;
    border-radius: var(--radius-control);
    font-size: 0.78rem;
  }

  .has-fixed-hero-nav .hero {
    min-height: 0;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }

  .has-fixed-hero-nav .hero__top {
    min-height: 0;
    height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
  }
}

@media (max-width: 360px) {
  .hero-mobile-nav {
    gap: 5px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .hero-nav__item,
.hero-mobile-nav__item,
.hero-mobile-more__summary,
.theme-toggle,
.hero__search-toggle,
.hero__contact-toggle,
.hero__origin {
    transition-duration: 1ms;
  }
}

/* Stage 3: polished minimalist Telegram-like feed cards. */
.feed-list {
  gap: 10px;
}

.feed-list > .post-card,
.post-card--detail {
  padding: 12px 13px;
  overflow: visible;
  border-color: color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    border-color var(--transition-base),
    background-color var(--transition-base);
}

.page-home .post-card {
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.feed-list > .post-card:not(.post-card--detail):hover,
.feed-list > .post-card:not(.post-card--detail):focus-within {
  border-color: color-mix(in srgb, var(--line) 82%, transparent);
  background: var(--surface-strong);
  box-shadow: none;
  transform: none;
}

.post-card__header {
  gap: 10px;
  margin-bottom: 8px;
}

.post-card__header-main,
.post-card__author {
  gap: 8px;
}

.post-card__author > div {
  min-width: 0;
}

.post-card__author-avatar {
  width: 30px;
  height: 30px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: var(--radius-inner);
  box-shadow: none;
}

.post-card__channel {
  overflow: hidden;
  color: var(--text);
  font-size: 0.83rem;
  font-weight: 780;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-card__date {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-card__edited {
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface-muted));
  color: color-mix(in srgb, var(--accent) 80%, var(--text));
  font-size: 0.68rem;
  font-weight: 720;
}

.post-card__title {
  margin: 0 0 8px;
  color: var(--text);
  font-size: clamp(1rem, 1.55vw, 1.1rem);
  font-weight: 790;
  line-height: 1.22;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.post-card__title a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
  transition:
    color var(--transition-fast),
    text-decoration-color var(--transition-fast);
}

.post-card__title a:hover,
.post-card__title a:focus-visible {
  color: color-mix(in srgb, var(--accent) 84%, var(--text));
}

.post-card__title--detail {
  font-size: clamp(1.18rem, 2.2vw, 1.42rem);
  line-height: 1.2;
}

.post-card__content {
  overflow-wrap: anywhere;
}

.post-card__content.is-collapsed {
  max-height: 12.8em;
}

.post-card__content.is-collapsed::after {
  height: 3em;
  background: linear-gradient(180deg, transparent, var(--surface-strong) 88%);
}

.rich-text {
  color: color-mix(in srgb, var(--text) 86%, var(--text-soft));
  font-size: 0.9rem;
  font-weight: 440;
  line-height: 1.5;
  text-wrap: pretty;
}

.rich-text p {
  margin: 0 0 0.68rem;
}

.rich-text b,
.rich-text strong {
  color: color-mix(in srgb, var(--text) 96%, var(--text-soft));
  font-weight: 720;
}

.rich-text a {
  border-radius: 4px;
  color: color-mix(in srgb, var(--accent) 88%, var(--text));
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 44%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: normal;
  word-break: break-word;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    text-decoration-color var(--transition-fast);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.rich-text a:hover,
.rich-text a:focus-visible {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  color: var(--accent);
  text-decoration-color: currentColor;
}

.rich-text blockquote {
  margin: 0.7rem 0 0.82rem;
  padding: 11px 34px 11px 13px;
  border-radius: var(--radius-inner);
  background: color-mix(in srgb, var(--accent) 5%, var(--surface-muted));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 9%, transparent);
  color: color-mix(in srgb, var(--text) 92%, var(--text-soft));
  font-size: 0.9rem;
  font-weight: 440;
  line-height: 1.48;
}

.rich-text blockquote::after {
  top: 8px;
  right: 12px;
  font-size: 1.55rem;
}

.expand-button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin-top: 6px;
  padding: 0 4px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 740;
  line-height: 1;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.expand-button:hover,
.expand-button:focus-visible {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  color: var(--accent);
}

.post-media,
.post-media-album {
  margin-top: 10px;
  border-color: color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: var(--radius-inner);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-muted) 58%, var(--surface-strong)), var(--surface-strong));
}

.post-card:not(.post-card--detail) .post-media {
  max-height: 398px;
}

.post-card:not(.post-card--detail) .post-media--tall {
  width: min(100%, 418px);
  max-height: 512px;
}

.post-media__lightbox-trigger,
.post-media__frame {
  border-radius: inherit;
  overflow: hidden;
}

.post-media-album {
  gap: 1px;
  max-width: 100%;
  background: color-mix(in srgb, var(--line) 72%, transparent);
}

.post-media-album__track {
  grid-auto-columns: calc((100% - 1px) / 2);
  gap: 1px;
}

.post-media-album__thumbs {
  bottom: 8px;
  padding: 5px;
  border-radius: var(--radius-control);
}

.post-media-album__thumb {
  border-radius: var(--radius-sm);
}

.link-preview {
  grid-template-columns: minmax(112px, 132px) minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
  padding: 8px;
  border-color: color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: var(--radius-inner);
  background: color-mix(in srgb, var(--surface-muted) 72%, var(--surface-strong));
}

.link-preview__media {
  border-radius: var(--radius-sm);
}

.link-preview__site {
  font-size: 0.78rem;
  font-weight: 720;
}

.link-preview__title {
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.25;
}

.link-preview__description {
  color: color-mix(in srgb, var(--text-soft) 90%, var(--text));
  font-size: 0.84rem;
  line-height: 1.38;
}

.post-card__footer {
  gap: 10px;
  margin-top: 10px;
}

.post-card__reactions {
  gap: 6px;
}

.post-card__reactions-set {
  gap: 6px;
}

.reaction-pill {
  border-radius: var(--radius-control);
  color: color-mix(in srgb, var(--text) 90%, var(--text-soft));
  font-weight: 640;
  font-variant-numeric: tabular-nums;
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.reaction-pill:not(.reaction-pill--more):hover,
.reaction-pill:not(.reaction-pill--more):focus-visible {
  border-color: color-mix(in srgb, var(--accent) 16%, var(--line));
  background: color-mix(in srgb, var(--accent) 5%, var(--surface-strong));
  color: var(--text);
}

.reaction-pill__emoji {
  font-size: 0.96rem;
}

.reaction-pill--more {
  color: color-mix(in srgb, var(--text-soft) 88%, var(--text));
  font-weight: 720;
}


.post-menu-button {
  width: 30px;
  height: 30px;
  border-color: color-mix(in srgb, var(--line) 74%, transparent);
  border-radius: var(--radius-control);
  background: color-mix(in srgb, var(--surface-muted) 58%, var(--surface-strong));
  color: color-mix(in srgb, var(--text-soft) 86%, var(--text));
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.post-menu-button:hover,
.post-menu-button:focus-visible,
.post-card.is-menu-open .post-menu-button {
  border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
  background: color-mix(in srgb, var(--accent) 5%, var(--surface-strong));
  color: var(--text);
}

.post-menu {
  top: calc(100% + 8px);
  min-width: 192px;
  padding: 6px;
  border-radius: var(--radius-lg);
  box-shadow: var(--elevation-popover);
  transform-origin: top right;
  animation: cs3-popover-in var(--transition-fast) both;
  will-change: transform, opacity;
}

.post-menu button,
.post-menu a {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: var(--radius-control);
  font-size: 0.84rem;
  font-weight: 650;
}

.post-menu button:hover,
.post-menu button:focus-visible,
.post-menu a:hover,
.post-menu a:focus-visible {
  background: color-mix(in srgb, var(--accent) 6%, var(--surface-strong));
  color: var(--text);
}

.post-card a:focus-visible,
.reaction-pill:focus-visible,
.post-menu-button:focus-visible,
.post-menu button:focus-visible,
.post-menu a:focus-visible,
.post-media__lightbox-trigger:focus-visible,
.post-media-album__tile:focus-visible,
.post-media-album__thumb:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

@media (hover: none) {
  .feed-list > .post-card:not(.post-card--detail):hover {
    border-color: color-mix(in srgb, var(--line) 82%, transparent);
    background: var(--surface-strong);
  }
}

@media (max-width: 640px) {
  .feed-list {
    gap: var(--space-mobile-feed-gap);
  }

  .feed-list > .post-card,
.page-home .post-card,
.post-card--detail {
    padding: 12px;
    border-radius: var(--radius-xl);
  }

  .post-card__header {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
  }

  .post-card__header-main {
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    min-width: 0;
    padding-right: 38px;
  }

  .post-card--detail .post-card__header-main {
    padding-right: 0;
  }

  .post-card__author,
.post-card__header-main .post-card__author {
    min-width: 0;
    padding-right: 0;
  }

  .post-card__author-avatar {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-control);
  }

  .post-card__channel {
    font-size: 0.94rem;
    line-height: 1.12;
  }

  .post-card__date {
    font-size: 0.82rem;
  }

  .post-card__header-side {
    position: absolute;
    top: 12px;
    right: 12px;
    align-items: flex-start;
    width: auto;
    margin-left: 0;
  }

  .post-card__title {
    margin-bottom: 8px;
    font-size: clamp(1.02rem, 4.9vw, 1.16rem);
    line-height: 1.2;
  }

  .rich-text {
    font-size: 0.96rem;
    line-height: 1.46;
  }

  .rich-text p {
    margin-bottom: 0.66rem;
  }

  .post-card__content.is-collapsed {
    max-height: 13.2em;
  }

  .expand-button {
    min-height: 36px;
    padding-inline: 2px;
    font-size: 0.9rem;
  }

  .post-media,
.post-media-album,
.link-preview {
    margin-top: 10px;
    border-radius: var(--radius-lg);
  }

  .post-card:not(.post-card--detail) .post-media {
    max-height: 390px;
  }

  .post-card:not(.post-card--detail) .post-media--tall {
    width: min(100%, 390px);
    max-height: 500px;
  }

  .link-preview {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
  }

  .link-preview__description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .post-card__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 10px;
  }

  .post-card__reactions,
.post-card__reactions-set--mobile {
    width: 100%;
    min-width: 0;
  }

  .post-card__reactions-set--mobile {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .post-card__reactions-set--mobile::-webkit-scrollbar {
    display: none;
  }

  .post-card__reactions-set--mobile .reaction-pill,
.reaction-pill {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.84rem;
  }

  .post-card__reactions-set--mobile .reaction-pill__emoji {
    font-size: 1rem;
  }

  .post-card__stats {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.84rem;
  }

  .post-menu-button {
    width: 34px;
    height: 34px;
  }

  .post-menu {
    min-width: min(210px, calc(100vw - 36px));
  }
}

@media (max-width: 380px) {
  .post-card__channel {
    font-size: 0.88rem;
  }

  .post-card__date,
.post-card__stats {
    font-size: 0.8rem;
  }

  .post-card__title {
    font-size: clamp(1rem, 5vw, 1.1rem);
  }

  .rich-text {
    font-size: 0.94rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feed-list > .post-card,
.post-card__title a,
.rich-text a,
.expand-button,
.reaction-pill,
.post-menu-button,
.post-menu button,
.post-menu a {
    transition-duration: 1ms;
  }
}

/* Stage 4: quiet left sidebar. */
.home-left-sidebar {
  gap: 10px;
}

.home-left-sidebar > .sidebar-card,
.home-left-sidebar > .channel-card {
  overflow: hidden;
  border-color: color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface-strong) 78%, transparent);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home-left-sidebar .popular-card,
.home-left-sidebar .vrs-card {
  padding: 10px 11px 9px;
}


.home-left-sidebar .popular-card__heading {
  display: grid;
  gap: 2px;
}


.home-left-sidebar .popular-card__title,
.home-left-sidebar .popular-card__title-link,
.home-left-sidebar .vrs-card__title {
  color: color-mix(in srgb, var(--text) 90%, var(--text-soft));
  font-size: 0.88rem;
  font-weight: 780;
  line-height: 1.12;
  letter-spacing: 0;
}

.home-left-sidebar .popular-card__periods {
  gap: 1px;
  padding: 1px;
  border-color: color-mix(in srgb, var(--line) 62%, transparent);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-muted) 60%, transparent);
  box-shadow: none;
}

.home-left-sidebar .popular-card__period {
  min-width: 25px;
  min-height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-sm);
  color: color-mix(in srgb, var(--text-soft) 88%, var(--text));
  font-size: 0.64rem;
  font-weight: 760;
}

.home-left-sidebar .popular-card__period:hover,
.home-left-sidebar .popular-card__period:focus-visible {
  background: color-mix(in srgb, var(--accent) 4%, var(--surface-strong));
  color: color-mix(in srgb, var(--accent) 76%, var(--text));
}

.home-left-sidebar .popular-card__period.is-active {
  background: var(--surface-strong);
  color: color-mix(in srgb, var(--text) 88%, var(--accent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 52%, transparent);
}

.home-left-sidebar .popular-card__list,
.home-left-sidebar .vrs-card__list {
  margin-top: 2px;
}

.home-left-sidebar .popular-item,
.home-left-sidebar .popular-card .popular-item:not(.popular-item--leader) {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
  min-height: 52px;
  margin-inline: -4px;
  padding: 7px 4px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 54%, transparent);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.home-left-sidebar .popular-item:last-child,
.home-left-sidebar .popular-card .popular-item:not(.popular-item--leader):last-child {
  border-bottom-color: transparent;
}

.home-left-sidebar .popular-item:hover,
.home-left-sidebar .popular-item:focus-within,
.home-left-sidebar .popular-card .popular-item:not(.popular-item--leader):hover,
.home-left-sidebar .popular-card .popular-item:not(.popular-item--leader):focus-within {
  margin-inline: -4px;
  padding-inline: 4px;
  border-bottom-color: color-mix(in srgb, var(--line) 42%, transparent);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 3.5%, transparent);
  box-shadow: none;
  transform: none;
}

.home-left-sidebar .popular-item__thumb {
  width: 48px;
  height: 38px;
  border-color: color-mix(in srgb, var(--line) 60%, transparent);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-muted) 70%, var(--surface-strong));
  box-shadow: none;
}

.home-left-sidebar .popular-item__thumb--empty::after {
  color: color-mix(in srgb, var(--text-soft) 74%, var(--text));
  font-size: 0.7rem;
}

.home-left-sidebar .popular-item__body {
  gap: 5px;
}

.home-left-sidebar .popular-item__title,
.home-left-sidebar .popular-item--leader .popular-item__title {
  color: color-mix(in srgb, var(--text) 92%, var(--text-soft));
  font-size: 0.76rem;
  font-weight: 730;
  line-height: 1.24;
  -webkit-line-clamp: 2;
}

.home-left-sidebar .popular-item__meta {
  gap: 8px;
  color: color-mix(in srgb, var(--text-soft) 86%, var(--text));
  font-size: 0.68rem;
  font-weight: 620;
  line-height: 1;
}

.home-left-sidebar .popular-item__views,
.home-left-sidebar .popular-item__reactions {
  gap: 4px;
}

.home-left-sidebar .popular-item__views-icon,
.home-left-sidebar .popular-item__reactions-icon {
  width: 12px;
  height: 12px;
  color: color-mix(in srgb, var(--text-soft) 76%, var(--text));
}

.home-left-sidebar .popular-card__all-link,
.home-left-sidebar .vrs-card__all-link {
  min-height: 29px;
  margin-top: 3px;
  border-color: color-mix(in srgb, var(--line) 58%, transparent);
  border-radius: var(--radius-sm);
  background: transparent;
  box-shadow: none;
  color: color-mix(in srgb, var(--text-soft) 88%, var(--text));
  font-size: 0.72rem;
  font-weight: 720;
}

.home-left-sidebar .popular-card__all-link:hover,
.home-left-sidebar .popular-card__all-link:focus-visible,
.home-left-sidebar .vrs-card__all-link:hover,
.home-left-sidebar .vrs-card__all-link:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 14%, var(--line));
  background: color-mix(in srgb, var(--accent) 3.5%, transparent);
  color: color-mix(in srgb, var(--accent) 78%, var(--text));
  box-shadow: none;
  transform: none;
}

.home-left-sidebar .popular-card__all-arrow {
  color: currentColor;
  font-size: 1rem;
}


.home-left-sidebar .vrs-card__item {
  margin-inline: -4px;
  padding: 6px 4px;
  border-bottom-color: color-mix(in srgb, var(--line) 54%, transparent);
  border-radius: 0;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.home-left-sidebar .vrs-card__item:last-child {
  border-bottom-color: transparent;
}

.home-left-sidebar .vrs-card__item:hover,
.home-left-sidebar .vrs-card__item:focus-visible {
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 3.5%, transparent);
  color: color-mix(in srgb, var(--accent) 78%, var(--text));
}

.home-left-sidebar .vrs-card__rank {
  color: color-mix(in srgb, var(--text-soft) 84%, var(--text));
  font-size: 0.68rem;
  font-weight: 820;
}

.home-left-sidebar .vrs-card__logo {
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-muted) 64%, var(--surface-strong));
}

.home-left-sidebar .vrs-card__name {
  color: color-mix(in srgb, var(--text) 92%, var(--text-soft));
  font-size: 0.76rem;
  font-weight: 740;
  line-height: 1.08;
}

.home-left-sidebar .vrs-card__roster {
  margin-top: 2px;
  color: color-mix(in srgb, var(--text-soft) 82%, var(--text));
  font-size: 0.62rem;
  font-weight: 580;
}

.home-left-sidebar .vrs-card__points {
  color: color-mix(in srgb, var(--text-soft) 88%, var(--text));
  font-size: 0.72rem;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.home-left-sidebar .channel-card--quiet {
  gap: 7px;
}

.home-left-sidebar .channel-card--quiet .channel-card__compact-profile {
  gap: 8px;
}


.home-left-sidebar .channel-card--quiet .channel-card__title--visit {
  color: color-mix(in srgb, var(--text) 88%, var(--text-soft));
}

.home-left-sidebar .channel-card--quiet .channel-card__subscribers {
  color: color-mix(in srgb, var(--text-soft) 80%, var(--text));
}

.home-left-sidebar .channel-card--quiet .channel-card__compact-subscribe {
  padding: 0 9px;
  border-radius: var(--radius-sm);
}

.home-left-sidebar .channel-card--quiet .channel-card__compact-subscribe:hover,
.home-left-sidebar .channel-card--quiet .channel-card__compact-subscribe:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  color: var(--accent);
}

.home-left-sidebar .channel-card--quiet .channel-card__socials {
  display: flex;
  min-width: 0;
  padding-top: 1px;
}

.home-left-sidebar .channel-card--quiet .channel-card__social {
  flex: 1 1 0;
  min-width: 0;
  min-height: 24px;
  border-radius: var(--radius-sm);
  color: color-mix(in srgb, var(--text-soft) 78%, var(--text));
}

.home-left-sidebar .channel-card--quiet .channel-card__social:hover,
.home-left-sidebar .channel-card--quiet .channel-card__social:focus-visible {
  background: color-mix(in srgb, var(--accent) 3.5%, transparent);
  color: color-mix(in srgb, var(--accent) 72%, var(--text));
}

.home-left-sidebar .channel-card--quiet .channel-card__social-label {
  font-size: 0.6rem;
  font-weight: 650;
}

.home-left-sidebar .channel-card--quiet .channel-card__footer {
  margin: 0;
}


.home-left-sidebar .channel-card--quiet .channel-card__footer-link--mail {
  grid-column: auto;
}

.home-left-sidebar .channel-card--quiet .channel-card__footer-link--rss,
.home-left-sidebar .channel-card--quiet .channel-card__footer-link--about {
  grid-column: auto;
}

.home-left-sidebar .channel-card--quiet .channel-card__footer-link:hover,
.home-left-sidebar .channel-card--quiet .channel-card__footer-link:focus-visible {
  color: color-mix(in srgb, var(--accent) 74%, var(--text));
}

.home-left-sidebar a:focus-visible,
.home-left-sidebar button:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

@media (max-width: 1279.98px) {
  .page-home .home-left-sidebar,
.page-grid--with-left > .home-left-sidebar {
    display: none;
  }
}

@media (max-width: 640px) {
  .home-left-sidebar {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .home-left-sidebar .channel-card--quiet,
.home-left-sidebar .popular-card,
.home-left-sidebar .vrs-card {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-left-sidebar .popular-item,
.home-left-sidebar .vrs-card__item,
.home-left-sidebar .popular-card__period,
.home-left-sidebar .popular-card__all-link,
.home-left-sidebar .vrs-card__all-link,
.home-left-sidebar .channel-card__compact-subscribe,
.home-left-sidebar .channel-card__social,
.home-left-sidebar .channel-card__footer-link {
    transition-duration: 1ms;
  }
}

/* /styles/components/sidebar-matches-refinements.css */
/* Stage 5: compact right sidebar matches. */
.home-right-sidebar {
  gap: 10px;
}

.home-right-sidebar .sidebar-matches-card,
.matches-sidebar .matches-live-card,
.sidebar-matches-card--mobile-placement {
  overflow: hidden;
  border-color: color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home-right-sidebar .sidebar-matches-card--desktop-placement,
.matches-sidebar .matches-live-card {
  padding: 10px 11px 9px;
}

.home-right-sidebar .matches-tournaments-card {
  padding: 10px 11px 9px;
  border-color: color-mix(in srgb, var(--line) 62%, transparent);
  box-shadow: none;
}

.home-right-sidebar .sidebar-matches-card__header,
.matches-sidebar .matches-live-card .sidebar-matches-card__header,
.sidebar-matches-card--mobile-placement .sidebar-matches-card__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  min-height: 0;
  margin-bottom: 7px;
  padding-right: 0 !important;
}

.home-right-sidebar .sidebar-matches-card__titles,
.matches-sidebar .matches-live-card .sidebar-matches-card__titles,
.sidebar-matches-card--mobile-placement .sidebar-matches-card__titles {
  gap: 2px;
}

.home-right-sidebar .sidebar-matches-card__title,
.home-right-sidebar .sidebar-matches-card__title-link,
.matches-sidebar .matches-live-card .sidebar-matches-card__title,
.sidebar-matches-card--mobile-placement .sidebar-matches-card__title,
.sidebar-matches-card--mobile-placement .sidebar-matches-card__title-link {
  color: color-mix(in srgb, var(--text) 92%, var(--text-soft));
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.home-right-sidebar .sidebar-matches-card__title-link:hover,
.home-right-sidebar .sidebar-matches-card__title-link:focus-visible,
.matches-sidebar .matches-live-card .sidebar-matches-card__title-link:hover,
.matches-sidebar .matches-live-card .sidebar-matches-card__title-link:focus-visible,
.sidebar-matches-card--mobile-placement .sidebar-matches-card__title-link:hover,
.sidebar-matches-card--mobile-placement .sidebar-matches-card__title-link:focus-visible {
  color: color-mix(in srgb, var(--accent) 78%, var(--text));
}

.home-right-sidebar .sidebar-matches-card__filters,
.matches-sidebar .matches-live-card .sidebar-matches-card__filters,
.sidebar-matches-card--mobile-placement .sidebar-matches-card__filters {
  gap: 1px;
  padding: 1px;
  border-color: color-mix(in srgb, var(--line) 60%, transparent);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-muted) 56%, transparent);
  box-shadow: none;
}

.home-right-sidebar .sidebar-matches-card__filter,
.matches-sidebar .matches-live-card .sidebar-matches-card__filter,
.sidebar-matches-card--mobile-placement .sidebar-matches-card__filter {
  min-width: 25px;
  min-height: 22px;
  padding: 0 7px;
  border-radius: var(--radius-sm);
  color: color-mix(in srgb, var(--text-soft) 88%, var(--text));
  font-size: 0.64rem;
  font-weight: 760;
}

.home-right-sidebar .sidebar-matches-card__filter:hover,
.home-right-sidebar .sidebar-matches-card__filter:focus-visible,
.matches-sidebar .matches-live-card .sidebar-matches-card__filter:hover,
.matches-sidebar .matches-live-card .sidebar-matches-card__filter:focus-visible,
.sidebar-matches-card--mobile-placement .sidebar-matches-card__filter:hover,
.sidebar-matches-card--mobile-placement .sidebar-matches-card__filter:focus-visible {
  background: color-mix(in srgb, var(--accent) 4%, var(--surface-strong));
  color: color-mix(in srgb, var(--accent) 76%, var(--text));
}

.home-right-sidebar .sidebar-matches-card__filter.is-active,
.matches-sidebar .matches-live-card .sidebar-matches-card__filter.is-active,
.sidebar-matches-card--mobile-placement .sidebar-matches-card__filter.is-active {
  background: var(--surface-strong);
  color: color-mix(in srgb, var(--text) 90%, var(--accent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 52%, transparent);
}

.home-right-sidebar .sidebar-matches-card__empty,
.matches-sidebar .matches-live-card .sidebar-matches-card__empty,
.sidebar-matches-card--mobile-placement .sidebar-matches-card__empty {
  margin-top: 4px;
  padding: 12px 10px;
  border: 1px dashed color-mix(in srgb, var(--line) 68%, transparent);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-muted) 45%, transparent);
  color: color-mix(in srgb, var(--text-soft) 86%, var(--text));
  font-size: 0.74rem;
  font-weight: 620;
  line-height: 1.25;
  text-align: center;
}

.home-right-sidebar .sidebar-match-featured,
.matches-sidebar .matches-live-card .sidebar-match-featured,
.sidebar-matches-card--mobile-placement .sidebar-match-featured {
  padding: 8px;
  border-color: color-mix(in srgb, var(--line) 66%, transparent);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-strong) 84%, var(--surface-muted));
  box-shadow: none;
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.home-right-sidebar .sidebar-match-featured:hover,
.home-right-sidebar .sidebar-match-featured:focus-visible,
.matches-sidebar .matches-live-card .sidebar-match-featured:hover,
.matches-sidebar .matches-live-card .sidebar-match-featured:focus-visible,
.sidebar-matches-card--mobile-placement .sidebar-match-featured:hover,
.sidebar-matches-card--mobile-placement .sidebar-match-featured:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 14%, var(--line));
  background: color-mix(in srgb, var(--accent) 3%, var(--surface-strong));
  box-shadow: none;
  transform: none;
}

.home-right-sidebar .sidebar-match-featured--live,
.matches-sidebar .matches-live-card .sidebar-match-featured--live,
.sidebar-matches-card--mobile-placement .sidebar-match-featured--live {
  border-color: color-mix(in srgb, #d94a3a 18%, var(--line));
}

.home-right-sidebar .sidebar-match-featured__top,
.matches-sidebar .matches-live-card .sidebar-match-featured__top,
.sidebar-matches-card--mobile-placement .sidebar-match-featured__top {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 6px;
  margin-bottom: 8px;
}

.home-right-sidebar .sidebar-match-featured__status,
.matches-sidebar .matches-live-card .sidebar-match-featured__status,
.sidebar-matches-card--mobile-placement .sidebar-match-featured__status {
  min-height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-sm);
  font-size: 0.58rem;
  font-weight: 820;
  letter-spacing: 0.02em;
}

.home-right-sidebar .sidebar-match-featured__status--live,
.matches-sidebar .matches-live-card .sidebar-match-featured__status--live,
.sidebar-matches-card--mobile-placement .sidebar-match-featured__status--live,
.home-right-sidebar .sidebar-match-row__live-label,
.matches-sidebar .matches-live-card .sidebar-match-row__live-label,
.sidebar-matches-card--mobile-placement .sidebar-match-row__live-label {
  background: color-mix(in srgb, #d94a3a 8%, var(--surface-strong));
  color: #c94435;
}

.home-right-sidebar .sidebar-match-featured__status--live::before,
.matches-sidebar .matches-live-card .sidebar-match-featured__status--live::before,
.sidebar-matches-card--mobile-placement .sidebar-match-featured__status--live::before,
.home-right-sidebar .sidebar-match-row__live-label::before,
.matches-sidebar .matches-live-card .sidebar-match-row__live-label::before,
.sidebar-matches-card--mobile-placement .sidebar-match-row__live-label::before {
  width: 5px;
  height: 5px;
  flex-basis: 5px;
  background: currentColor;
  box-shadow: 0 0 0 2px color-mix(in srgb, #d94a3a 10%, transparent);
}

.home-right-sidebar .sidebar-match-featured__status--upcoming,
.home-right-sidebar .sidebar-match-featured__status--finished,
.home-right-sidebar .sidebar-match-featured__status--unknown,
.home-right-sidebar .sidebar-match-featured__status--canceled,
.home-right-sidebar .sidebar-match-featured__status--postponed,
.matches-sidebar .matches-live-card .sidebar-match-featured__status--upcoming,
.matches-sidebar .matches-live-card .sidebar-match-featured__status--finished,
.matches-sidebar .matches-live-card .sidebar-match-featured__status--unknown,
.matches-sidebar .matches-live-card .sidebar-match-featured__status--canceled,
.matches-sidebar .matches-live-card .sidebar-match-featured__status--postponed,
.sidebar-matches-card--mobile-placement .sidebar-match-featured__status--upcoming,
.sidebar-matches-card--mobile-placement .sidebar-match-featured__status--finished,
.sidebar-matches-card--mobile-placement .sidebar-match-featured__status--unknown,
.sidebar-matches-card--mobile-placement .sidebar-match-featured__status--canceled,
.sidebar-matches-card--mobile-placement .sidebar-match-featured__status--postponed {
  background: color-mix(in srgb, var(--accent) 5%, var(--surface-strong));
  color: color-mix(in srgb, var(--accent) 72%, var(--text));
}

.home-right-sidebar .sidebar-match-featured__competition,
.matches-sidebar .matches-live-card .sidebar-match-featured__competition,
.sidebar-matches-card--mobile-placement .sidebar-match-featured__competition {
  max-width: calc(100% - 92px);
  color: color-mix(in srgb, var(--text-soft) 88%, var(--text));
  font-size: 0.64rem;
  font-weight: 650;
  line-height: 1.05;
  text-overflow: ellipsis;
}

.home-right-sidebar .sidebar-match-featured__format,
.matches-sidebar .matches-live-card .sidebar-match-featured__format,
.sidebar-matches-card--mobile-placement .sidebar-match-featured__format,
.home-right-sidebar .sidebar-match-pill,
.matches-sidebar .matches-live-card .sidebar-match-pill,
.sidebar-matches-card--mobile-placement .sidebar-match-pill {
  min-height: 20px;
  padding: 0 6px;
  border-color: color-mix(in srgb, var(--line) 58%, transparent);
  border-radius: var(--radius-sm);
  background: transparent;
  color: color-mix(in srgb, var(--text-soft) 84%, var(--text));
  font-size: 0.58rem;
  font-weight: 760;
}

.home-right-sidebar .sidebar-match-featured__body,
.matches-sidebar .matches-live-card .sidebar-match-featured__body,
.sidebar-matches-card--mobile-placement .sidebar-match-featured__body {
  grid-template-columns: minmax(0, 1fr) 66px minmax(0, 1fr);
  gap: 8px;
}

.home-right-sidebar .sidebar-match-featured__team,
.matches-sidebar .matches-live-card .sidebar-match-featured__team,
.sidebar-matches-card--mobile-placement .sidebar-match-featured__team {
  width: auto;
  max-width: 100%;
  gap: 4px;
}

.home-right-sidebar .sidebar-match-featured__logo,
.home-right-sidebar .sidebar-match-featured__logo--fallback,
.matches-sidebar .matches-live-card .sidebar-match-featured__logo,
.matches-sidebar .matches-live-card .sidebar-match-featured__logo--fallback,
.sidebar-matches-card--mobile-placement .sidebar-match-featured__logo,
.sidebar-matches-card--mobile-placement .sidebar-match-featured__logo--fallback {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  border-radius: var(--radius-sm);
}

.home-right-sidebar .sidebar-match-featured__team-name,
.matches-sidebar .matches-live-card .sidebar-match-featured__team-name,
.sidebar-matches-card--mobile-placement .sidebar-match-featured__team-name {
  min-height: 1.1em;
  color: color-mix(in srgb, var(--text) 92%, var(--text-soft));
  font-size: 0.74rem;
  font-weight: 760;
  line-height: 1.08;
  text-overflow: ellipsis;
}

.home-right-sidebar .sidebar-match-featured__center,
.matches-sidebar .matches-live-card .sidebar-match-featured__center,
.sidebar-matches-card--mobile-placement .sidebar-match-featured__center {
  width: 66px;
  min-width: 66px;
  gap: 2px;
  transform: none;
}

.home-right-sidebar .sidebar-match-featured__center--live,
.matches-sidebar .matches-live-card .sidebar-match-featured__center--live,
.sidebar-matches-card--mobile-placement .sidebar-match-featured__center--live {
  transform: translateY(-4px);
}

.home-right-sidebar .sidebar-match-featured__score,
.matches-sidebar .matches-live-card .sidebar-match-featured__score,
.sidebar-matches-card--mobile-placement .sidebar-match-featured__score {
  grid-template-columns: 1ch 10px 1ch;
  width: 66px;
  font-size: 1.42rem;
  font-weight: 850;
  letter-spacing: 0;
}

.home-right-sidebar .sidebar-match-featured__score-label,
.matches-sidebar .matches-live-card .sidebar-match-featured__score-label,
.sidebar-matches-card--mobile-placement .sidebar-match-featured__score-label {
  min-height: 13px;
  padding: 0 5px;
  background: color-mix(in srgb, var(--surface-muted) 64%, transparent);
  color: color-mix(in srgb, var(--text-soft) 84%, var(--text));
  font-size: 0.4rem;
  font-weight: 760;
}

.home-right-sidebar .sidebar-match-featured__versus,
.matches-sidebar .matches-live-card .sidebar-match-featured__versus,
.sidebar-matches-card--mobile-placement .sidebar-match-featured__versus {
  color: color-mix(in srgb, var(--text-soft) 82%, var(--text));
  font-size: 0.78rem;
  font-weight: 760;
}

.home-right-sidebar .sidebar-match-featured__time,
.matches-sidebar .matches-live-card .sidebar-match-featured__time,
.sidebar-matches-card--mobile-placement .sidebar-match-featured__time {
  color: color-mix(in srgb, var(--text) 86%, var(--text-soft));
  font-size: 0.78rem;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.home-right-sidebar .sidebar-match-featured__submeta,
.matches-sidebar .matches-live-card .sidebar-match-featured__submeta,
.sidebar-matches-card--mobile-placement .sidebar-match-featured__submeta {
  color: color-mix(in srgb, var(--text-soft) 84%, var(--text));
  font-size: 0.62rem;
  font-weight: 620;
  line-height: 1.1;
}

.home-right-sidebar .sidebar-match-list,
.matches-sidebar .matches-live-card .sidebar-match-list {
  margin: 4px -4px 0;
}

.home-right-sidebar .sidebar-match-row,
.matches-sidebar .matches-live-card .sidebar-match-row {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  min-height: 50px;
  padding: 6px 4px;
  border-bottom-color: color-mix(in srgb, var(--line) 54%, transparent);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.home-right-sidebar .sidebar-match-list .sidebar-match-row:last-child,
.home-right-sidebar .sidebar-match-list .sidebar-match-row--collapsed-last,
.matches-sidebar .matches-live-card .sidebar-match-list .sidebar-match-row:last-child,
.matches-sidebar .matches-live-card .sidebar-match-list .sidebar-match-row--collapsed-last {
  border-bottom-color: transparent;
}

.home-right-sidebar .sidebar-match-row:hover,
.home-right-sidebar .sidebar-match-row:focus-visible,
.matches-sidebar .matches-live-card .sidebar-match-row:hover,
.matches-sidebar .matches-live-card .sidebar-match-row:focus-visible {
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 3.5%, transparent);
  box-shadow: none;
  transform: none;
}

.home-right-sidebar .sidebar-match-row__main,
.matches-sidebar .matches-live-card .sidebar-match-row__main {
  gap: 6px;
}

.home-right-sidebar .sidebar-match-row__time,
.matches-sidebar .matches-live-card .sidebar-match-row__time {
  color: color-mix(in srgb, var(--text) 88%, var(--text-soft));
  font-size: 0.76rem;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}

.home-right-sidebar .sidebar-match-row__date,
.matches-sidebar .matches-live-card .sidebar-match-row__date {
  min-width: 34px;
  min-height: 15px;
  padding: 0 4px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: color-mix(in srgb, var(--text-soft) 82%, var(--text));
  font-size: 0.5rem;
  font-weight: 740;
  letter-spacing: 0;
}

.home-right-sidebar .sidebar-match-row__live-label,
.matches-sidebar .matches-live-card .sidebar-match-row__live-label {
  min-height: 18px;
  padding: 0 6px;
  border-radius: var(--radius-sm);
  font-size: 0.54rem;
  font-weight: 820;
}

.home-right-sidebar .sidebar-match-row__teams-stack,
.matches-sidebar .matches-live-card .sidebar-match-row__teams-stack {
  gap: 4px;
}

.home-right-sidebar .sidebar-match-row__team-line,
.matches-sidebar .matches-live-card .sidebar-match-row__team-line {
  grid-template-columns: 15px minmax(0, 1fr) auto;
  gap: 5px;
}

.home-right-sidebar .sidebar-match-row__logo,
.home-right-sidebar .sidebar-match-row__logo--fallback,
.matches-sidebar .matches-live-card .sidebar-match-row__logo,
.matches-sidebar .matches-live-card .sidebar-match-row__logo--fallback {
  width: 15px;
  height: 15px;
  border-radius: 4px;
}

.home-right-sidebar .sidebar-match-row__team-name,
.matches-sidebar .matches-live-card .sidebar-match-row__team-name {
  color: color-mix(in srgb, var(--text) 90%, var(--text-soft));
  font-size: 0.72rem;
  font-weight: 720;
  line-height: 1.05;
  text-overflow: clip;
}

.home-right-sidebar .sidebar-match-row__team-score,
.matches-sidebar .matches-live-card .sidebar-match-row__team-score {
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 780;
}

.home-right-sidebar .sidebar-match-row__side,
.matches-sidebar .matches-live-card .sidebar-match-row__side {
  gap: 4px;
}

.home-right-sidebar .sidebar-match-row__meta,
.matches-sidebar .matches-live-card .sidebar-match-row__meta {
  flex-wrap: nowrap;
  gap: 4px;
}


.home-right-sidebar .sidebar-match-row__stage,
.matches-sidebar .matches-live-card .sidebar-match-row__stage {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.52rem;
  font-weight: 620;
  text-overflow: clip;
}

.home-right-sidebar .sidebar-match-pill--row,
.matches-sidebar .matches-live-card .sidebar-match-pill--row {
  flex: 0 0 auto;
  min-height: 14px;
  padding: 0 2px;
  border-color: transparent;
  background: transparent;
  color: color-mix(in srgb, var(--text-soft) 76%, var(--text));
  font-size: 0.5rem;
  font-weight: 640;
}

.home-right-sidebar button.sidebar-match-featured__team-name:hover,
.home-right-sidebar button.sidebar-match-row__team-name:hover,
.home-right-sidebar button.sidebar-match-featured__competition:hover,
.home-right-sidebar button.sidebar-match-row__competition:hover,
.home-right-sidebar button.sidebar-match-featured__team-name:focus-visible,
.home-right-sidebar button.sidebar-match-row__team-name:focus-visible,
.home-right-sidebar button.sidebar-match-featured__competition:focus-visible,
.home-right-sidebar button.sidebar-match-row__competition:focus-visible,
.matches-sidebar .matches-live-card button.sidebar-match-featured__team-name:hover,
.matches-sidebar .matches-live-card button.sidebar-match-row__team-name:hover,
.matches-sidebar .matches-live-card button.sidebar-match-featured__competition:hover,
.matches-sidebar .matches-live-card button.sidebar-match-row__competition:hover,
.matches-sidebar .matches-live-card button.sidebar-match-featured__team-name:focus-visible,
.matches-sidebar .matches-live-card button.sidebar-match-row__team-name:focus-visible,
.matches-sidebar .matches-live-card button.sidebar-match-featured__competition:focus-visible,
.matches-sidebar .matches-live-card button.sidebar-match-row__competition:focus-visible {
  color: color-mix(in srgb, var(--accent) 78%, var(--text));
}

.home-right-sidebar .sidebar-matches-card__all-link,
.matches-sidebar .matches-live-card .sidebar-matches-card__all-link {
  min-height: 29px;
  margin-top: 3px;
  border-color: color-mix(in srgb, var(--line) 58%, transparent);
  border-radius: var(--radius-sm);
  background: transparent;
  box-shadow: none;
  color: color-mix(in srgb, var(--text-soft) 88%, var(--text));
  font-size: 0.72rem;
  font-weight: 720;
}

.home-right-sidebar .sidebar-matches-card__all-link:hover,
.home-right-sidebar .sidebar-matches-card__all-link:focus-visible,
.matches-sidebar .matches-live-card .sidebar-matches-card__all-link:hover,
.matches-sidebar .matches-live-card .sidebar-matches-card__all-link:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 14%, var(--line));
  background: color-mix(in srgb, var(--accent) 3.5%, transparent);
  color: color-mix(in srgb, var(--accent) 78%, var(--text));
  box-shadow: none;
  transform: none;
}

.home-right-sidebar .sidebar-matches-card__all-arrow,
.matches-sidebar .matches-live-card .sidebar-matches-card__all-arrow {
  color: currentColor;
  font-size: 1rem;
}

.home-right-sidebar .matches-tournaments-card .sidebar-matches-card__title,
.home-right-sidebar .matches-tournaments-card .sidebar-matches-card__title-link {
  font-size: 0.86rem;
  font-weight: 760;
}

@media (max-width: 999.98px) {
  .sidebar-matches-card--mobile-placement {
    padding: 10px 12px !important;
    border-color: color-mix(in srgb, var(--line) 70%, transparent);
    background: color-mix(in srgb, var(--surface-strong) 86%, transparent);
    box-shadow: none;
  }

  .sidebar-matches-card--mobile-placement .sidebar-matches-card__header {
    margin-bottom: 6px !important;
  }

  .sidebar-matches-card--mobile-placement .sidebar-matches-card__title,
  .sidebar-matches-card--mobile-placement .sidebar-matches-card__title-link {
    font-size: 0.96rem;
    font-weight: 800;
  }

  .sidebar-matches-card--mobile-placement.has-live-matches .sidebar-matches-card__title::before {
    width: 6px;
    height: 6px;
    flex-basis: 6px;
    background: #c94435;
    box-shadow: 0 0 0 3px color-mix(in srgb, #d94a3a 10%, transparent);
  }

  .sidebar-matches-card--mobile-placement .sidebar-matches-card__mobile-rail {
    gap: 8px;
    margin-top: 4px !important;
    padding: 0 2px 1px 0;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured {
    flex: 0 0 184px !important;
    width: 184px !important;
    min-width: 184px !important;
    max-width: 184px !important;
    padding: 7px !important;
    border-radius: var(--radius-md);
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__top {
    grid-template-columns: minmax(42px, auto) minmax(0, 1fr) auto !important;
    gap: 5px;
    margin-bottom: 6px;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__competition {
    max-width: 100%;
    font-size: 0.6rem;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__format,
  .sidebar-matches-card--mobile-placement .sidebar-match-featured__status {
    min-height: 19px;
    padding: 0 5px;
    font-size: 0.5rem;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__body {
    grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr) !important;
    gap: 6px !important;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__team {
    grid-template-rows: 32px 17px;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__logo,
  .sidebar-matches-card--mobile-placement .sidebar-match-featured__logo--fallback {
    width: 30px !important;
    height: 30px !important;
    flex-basis: 30px !important;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__team-name {
    min-height: 17px;
    font-size: 0.62rem;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__center {
    width: 54px !important;
    min-width: 54px !important;
    transform: none !important;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__center--live {
    transform: translateY(-3px) !important;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__score {
    grid-template-columns: 1ch 9px 1ch;
    width: 54px !important;
    font-size: 1.2rem;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__mobile-time {
    color: color-mix(in srgb, var(--text) 90%, var(--text-soft));
    font-size: 1rem;
    font-weight: 820;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__mobile-stage {
    color: color-mix(in srgb, var(--text-soft) 82%, var(--text));
    font-size: 0.56rem;
    font-weight: 620;
  }
}

@media (max-width: 640px) {
  .sidebar-matches-card--mobile-placement {
    padding: 9px 10px 10px !important;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured {
    flex-basis: 172px !important;
    width: 172px !important;
    min-width: 172px !important;
    max-width: 172px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar-match-featured,
  .sidebar-match-row,
  .sidebar-matches-card__filter,
  .sidebar-matches-card__all-link,
  .sidebar-match-featured__team-name,
  .sidebar-match-row__team-name,
  .sidebar-match-featured__competition,
  .sidebar-match-row__competition {
    transition-duration: 1ms;
  }
}

/* /styles/components/interaction-base.css */
/* Global focus, interaction, touch-target and motion foundations. */
:root {
  --state-hover-bg: color-mix(in srgb, var(--accent) 4%, var(--surface-strong));
  --state-active-bg: color-mix(in srgb, var(--accent) 7%, var(--surface-strong));
  --state-border: color-mix(in srgb, var(--accent) 18%, var(--line));
}

:where(
  a,
  button,
  input,
  summary,
  [role="button"],
  [tabindex]:not([tabindex="-1"])
) {
  scroll-margin-top: 72px;
}

:where(
  a,
  button,
  input,
  summary,
  [role="button"],
  [tabindex]:not([tabindex="-1"])
):focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

:where(
  .theme-toggle,
  .hero__search-toggle,
  .hero__contact-toggle,
  .hero__origin,
  .hero-nav__item,
  .hero-mobile-nav__item,
  .hero-mobile-more__summary,
  .hero-mobile-more__item,
  .post-menu-button,
  .expand-button,
  .reaction-pill,
  .popular-card__period,
  .mobile-trend-card__period,
  .sidebar-matches-card__filter,
  .matches-filter,
  .matches-priority-filter__item,
  .matches-calendar__day,
  .matches-calendar__month-button,
  .matches-date-filter__summary,
  .popular-card__all-link,
  .vrs-card__all-link,
  .sidebar-matches-card__all-link,
  .matches-show-more,
  .read-also__all-link,
  .channel-card__compact-subscribe,
  .channel-card__social,
  .channel-card__footer-link
) {
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast),
    opacity var(--transition-fast);
}

:where(
  .theme-toggle,
  .hero__search-toggle,
  .hero__contact-toggle,
  .hero__origin,
  .post-menu-button,
  .expand-button,
  .reaction-pill,
  .popular-card__period,
  .mobile-trend-card__period,
  .sidebar-matches-card__filter,
  .matches-filter,
  .matches-priority-filter__item,
  .matches-calendar__day,
  .matches-calendar__month-button,
  .matches-date-filter__summary
):focus-visible {
  box-shadow: var(--focus-ring);
}

:where(
  .theme-toggle,
  .hero__search-toggle,
  .hero__contact-toggle,
  .post-menu-button,
  .reaction-pill,
  .popular-card__period,
  .mobile-trend-card__period,
  .sidebar-matches-card__filter,
  .matches-filter,
  .matches-priority-filter__item,
  .matches-calendar__day,
  .matches-calendar__month-button,
  .matches-date-filter__summary
):hover {
  border-color: var(--state-border);
  background-color: var(--state-hover-bg);
  color: color-mix(in srgb, var(--accent) 76%, var(--text));
}

:where(
  .hero-nav__item,
  .hero-mobile-nav__item,
  .hero-mobile-more__summary,
  .hero-mobile-more__item,
  .post-card__title a,
  .rich-text a,
  .popular-card__title-link,
  .sidebar-matches-card__title-link,
  .vrs-card__title,
  .matches-day__title
):focus-visible {
  color: color-mix(in srgb, var(--accent) 84%, var(--text));
}

:where(
  .hero-nav__item[aria-current="page"],
  .hero-mobile-nav__item[aria-current="page"],
  .hero-mobile-more.is-active .hero-mobile-more__summary,
  .popular-card__period.is-active,
  .mobile-trend-card__period.is-active,
  .sidebar-matches-card__filter.is-active,
  .matches-filter.is-active,
  .matches-priority-filter__item.is-active,
  .rankings-region.is-active
) {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
  background-color: var(--state-active-bg);
  color: color-mix(in srgb, var(--accent) 86%, var(--text));
}

:where(
  .feed-list > .post-card:not(.post-card--detail),
  .mobile-trend-item,
  .popular-item,
  .vrs-card__item,
  .sidebar-match-featured,
  .sidebar-match-row,
  .match-feed-card,
  .matches-tournament-item,
  .read-also__card
):hover,
:where(
  .feed-list > .post-card:not(.post-card--detail),
  .mobile-trend-item,
  .popular-item,
  .vrs-card__item,
  .sidebar-match-featured,
  .sidebar-match-row,
  .match-feed-card,
  .matches-tournament-item,
  .read-also__card
):focus-visible,
:where(
  .feed-list > .post-card:not(.post-card--detail),
  .popular-item,
  .mobile-trend-item
):focus-within {
  transform: none;
}

:where(
  .post-media__play,
  .post-media-album__play,
  .post-media-album__nav,
  .lightbox__nav,
  .lightbox__thumb,
  .scroll-top,
  .popular-card__all-arrow,
  .sidebar-matches-card__all-arrow
) {
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    opacity var(--transition-fast);
}

@media (pointer: coarse) {
  :where(
    .theme-toggle,
    .hero__search-toggle,
    .hero__contact-toggle,
    .hero__origin,
    .hero-nav__item,
    .hero-mobile-nav__item,
    .hero-mobile-more__summary,
    .hero-mobile-more__item,
    .post-menu-button,
    .expand-button,
    .reaction-pill,
    .popular-card__period,
    .mobile-trend-card__period,
    .sidebar-matches-card__filter,
    .matches-filter,
    .matches-priority-filter__item,
    .matches-calendar__day,
    .matches-calendar__month-button,
    .matches-date-filter__summary,
    .popular-card__all-link,
    .vrs-card__all-link,
    .sidebar-matches-card__all-link,
    .matches-show-more,
    .read-also__all-link,
    .channel-card__compact-subscribe,
    .channel-card__social,
    .channel-card__footer-link
  ) {
    min-height: 44px;
  }

  :where(
    .theme-toggle,
    .hero__search-toggle,
    .hero__contact-toggle,
    .post-menu-button
  ) {
    width: 44px;
    height: 44px;
  }

  :where(
    .hero-nav__item,
    .hero-mobile-nav__item,
    .hero-mobile-more__summary,
    .hero-mobile-more__item,
    .reaction-pill,
    .popular-card__period,
    .mobile-trend-card__period,
    .sidebar-matches-card__filter,
    .matches-filter,
    .matches-priority-filter__item,
    .matches-calendar__day,
    .matches-date-filter__summary
  ) {
    min-width: 44px;
  }

  .hero-mobile-nav__item,
  .hero-mobile-more__summary {
    padding-inline: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }

  .load-more__status::before,
  .feed-list > .post-card.is-feed-card-entering,
  .new-posts-notice,
  .feed-settings__menu,
  .hero-contact-popover,
  .post-menu,
  .reactions-popover,
  .lightbox__backdrop,
  .lightbox__dialog,
  .hero-menu--mobile[open]::before,
  .hero-menu--mobile .hero-menu__panel {
    animation: none !important;
  }

  :where(
    .feed-list > .post-card:not(.post-card--detail),
    .mobile-trend-item,
    .popular-item,
    .vrs-card__item,
    .sidebar-match-featured,
    .sidebar-match-row,
    .match-feed-card,
    .matches-tournament-item,
    .read-also__card,
    .scroll-top,
    .lightbox__nav,
    .post-media-album__nav,
    .post-media__play,
    .post-media-album__play
  ):hover,
  :where(
    .feed-list > .post-card:not(.post-card--detail),
    .mobile-trend-item,
    .popular-item,
    .vrs-card__item,
    .sidebar-match-featured,
    .sidebar-match-row,
    .match-feed-card,
    .matches-tournament-item,
    .read-also__card,
    .scroll-top,
    .lightbox__nav,
    .post-media-album__nav,
    .post-media__play,
    .post-media-album__play
  ):focus-visible {
    transform: none !important;
  }
}

/* /styles/components/layout-grid.css */
/* Shared responsive page grid geometry. */
@media (min-width: 1000px) and (max-width: 1079.98px) {
  .page-grid:not(.page-grid--with-left):not(.page-grid--single):not(.page-grid--teams-table):not(.page-grid--cs3bet),
  .page-grid--with-left:not(.page-grid--left-only):not(.page-grid--teams-table):not(.page-grid--cs3bet) {
    width: min(100%, 994px);
    grid-template-columns: minmax(0, 1fr) 264px;
    gap: 10px;
    justify-content: stretch;
    margin-inline: auto;
  }
}

@media (min-width: 1080px) {
  .page-grid:not(.page-grid--with-left):not(.page-grid--single),
  .page-grid--home:not(.page-grid--with-left):not(.page-grid--single),
  .page-grid--matches:not(.page-grid--with-left):not(.page-grid--single) {
    grid-template-columns: minmax(0, 720px) 274px;
  }
}

@media (min-width: 1080px) and (max-width: 1279px) {
  .page-grid--with-left:not(.page-grid--left-only) {
    grid-template-columns: minmax(0, 720px) 274px;
    justify-content: center;
  }
}

@media (min-width: 1280px) {
  .page-grid--with-left:not(.page-grid--left-only),
  .page-home .page-grid--home-three,
  .page-matches .page-grid--matches.page-grid--with-left {
    grid-template-columns: 263px minmax(0, 720px) 274px;
  }
}

/* /styles/components/post-card-meta.css */
/* Post-card metadata and reaction controls. */

.post-card__author-avatar {
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  object-fit: contain;
}

.post-card__date {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.2;
}

.post-card__stats {
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  white-space: nowrap;
}

.post-card__stat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-soft);
}

.post-card__stat--time {
  text-align: right;
}

.post-card__stat-icon {
  width: 16px;
  height: 16px;
  color: #8d95a8;
}

.post-card__stat-icon svg {
  width: 100%;
  height: 100%;
}

.reaction-pill {
  min-height: 24px;
  padding: 1px 7px;
  border: 0;
  background: color-mix(in srgb, var(--text) 2.5%, transparent);
  font-size: 0.78rem;
  line-height: 1;
}

.reaction-pill:not(.reaction-pill--more):hover {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}

/* /styles/components/ranking-visuals.css */
/* Shared rank and team-logo presentation for VRS and Rankings. */
.rankings-table__rank {
  border-color: color-mix(in srgb, var(--accent) 14%, var(--line));
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
  color: color-mix(in srgb, var(--text) 82%, var(--accent));
}

.vrs-card__logo,
.rankings-table__logo {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  transform: scale(1.12);
  transform-origin: center;
}

/* Vitality's narrow mark needs a little more optical weight in equal logo boxes. */
.vrs-card__logo.team-logo--vitality,
.rankings-table__logo.team-logo--vitality {
  transform: scale(1.42);
}

.vrs-card__logo--fallback,
.rankings-table__logo--fallback {
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-muted) 84%, var(--surface));
  transform: none;
}

/* /styles/components/sidebar-entity-interactions.css */
/* Shared entity links and overflow tooltips for match, VRS and rankings UI. */
.vrs-card__team-action,
.vrs-card__player,
.rankings-table__team-name,
.rankings-table__player {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.vrs-card__team-action,
.rankings-table__team-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vrs-card__player,
.rankings-table__player {
  color: color-mix(in srgb, var(--text-soft) 88%, var(--text));
}

.vrs-card__team-action:hover,
.vrs-card__team-action:focus-visible,
.vrs-card__player:hover,
.vrs-card__player:focus-visible,
.rankings-table__team-name:hover,
.rankings-table__team-name:focus-visible,
.rankings-table__player:hover,
.rankings-table__player:focus-visible {
  color: color-mix(in srgb, var(--accent) 78%, var(--text));
}

.rankings-table__roster {
  display: block;
}

.rankings-table__separator,
.vrs-card__separator {
  color: color-mix(in srgb, var(--text-soft) 72%, transparent);
}

.rankings-table__team-name {
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  :where(
    .sidebar-match-featured__team-name,
    .sidebar-match-row__team-name,
    .sidebar-match-featured__competition,
    .sidebar-match-row__competition,
    .matches-tournament-item,
    .rankings-table__team-name,
    .vrs-card__team-action
  ) {
    position: relative;
  }

  :where(
    .sidebar-match-featured__team-name,
    .sidebar-match-row__team-name,
    .sidebar-match-featured__competition,
    .sidebar-match-row__competition,
    .matches-tournament-item,
    .rankings-table__team-name,
    .vrs-card__team-action
  )[data-sidebar-tooltip="true"]:hover::after,
  :where(
    .sidebar-match-featured__team-name,
    .sidebar-match-row__team-name,
    .sidebar-match-featured__competition,
    .sidebar-match-row__competition,
    .matches-tournament-item,
    .rankings-table__team-name,
    .vrs-card__team-action
  )[data-sidebar-tooltip="true"]:focus-visible::after {
    position: absolute;
    z-index: 70;
    left: 50%;
    bottom: calc(100% + 7px);
    width: max-content;
    max-width: min(280px, 78vw);
    padding: 6px 8px;
    border: 1px solid color-mix(in srgb, var(--line) 86%, var(--text));
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface-strong) 96%, var(--text));
    box-shadow: var(--shadow-popover);
    color: var(--text);
    content: attr(data-sidebar-entity-name);
    font-size: 0.72rem;
    font-weight: 780;
    line-height: 1.18;
    overflow-wrap: anywhere;
    pointer-events: none;
    text-align: center;
    transform: translateX(-50%);
    white-space: normal;
  }

}

/* /styles/components/sidebar-shared.css */
/* Shared sidebar card chrome: headings and labels. */


.home-left-sidebar .popular-card__header--dynamic,
.home-left-sidebar .vrs-card__header,
.home-right-sidebar .sidebar-matches-card__header,
.matches-sidebar .matches-live-card .sidebar-matches-card__header {
  margin-bottom: 5px;
}

.home-left-sidebar .popular-card__header--dynamic .popular-card__heading,
.home-left-sidebar .vrs-card__titles,
.home-right-sidebar .sidebar-matches-card__titles,
.matches-sidebar .matches-live-card .sidebar-matches-card__titles {
  gap: 0;
}

.home-left-sidebar .popular-card__list,
.home-left-sidebar .vrs-card__list,
.home-right-sidebar .sidebar-match-list,
.home-right-sidebar .matches-tournaments-card__list,
.matches-sidebar .matches-live-card .sidebar-match-list {
  margin-top: 0;
}

.home-left-sidebar .popular-card__header--dynamic,
.home-right-sidebar .popular-card__header--dynamic,
.home-left-sidebar .vrs-card__header,
.home-right-sidebar .sidebar-matches-card__header,
.matches-sidebar .matches-live-card .sidebar-matches-card__header,
.sidebar-matches-card--mobile-placement .sidebar-matches-card__header,
.matches-tournaments-card .sidebar-matches-card__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  margin: -10px -11px 3px;
  padding: 6px 13px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 66%, transparent);
  background: color-mix(in srgb, var(--surface-muted) 74%, var(--bg-secondary));
}

.home-left-sidebar .popular-card__heading,
.home-right-sidebar .popular-card__heading,
.home-left-sidebar .vrs-card__titles,
.home-right-sidebar .sidebar-matches-card__titles,
.matches-sidebar .matches-live-card .sidebar-matches-card__titles,
.sidebar-matches-card--mobile-placement .sidebar-matches-card__titles {
  min-width: 0;
  gap: 0;
}

.home-left-sidebar .popular-card__title,
.home-left-sidebar .popular-card__title-link,
.home-right-sidebar .popular-card__title,
.home-right-sidebar .popular-card__title-link,
.home-left-sidebar .vrs-card__title,
.home-right-sidebar .sidebar-matches-card__title,
.home-right-sidebar .sidebar-matches-card__title-link,
.home-right-sidebar .matches-tournaments-card .sidebar-matches-card__title,
.home-right-sidebar .matches-tournaments-card .sidebar-matches-card__title-link,
.matches-sidebar .matches-live-card .sidebar-matches-card__title,
.matches-sidebar .matches-tournaments-card .sidebar-matches-card__title,
.matches-sidebar .matches-tournaments-card .sidebar-matches-card__title-link,
.sidebar-matches-card--mobile-placement .sidebar-matches-card__title,
.sidebar-matches-card--mobile-placement .sidebar-matches-card__title-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 840;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* /styles/components/segmented-controls.css */
/* Shared segmented controls for Popular, Matches, Rankings and VRS. */
.home-left-sidebar .popular-card__periods,
.home-right-sidebar .popular-card__periods,
.home-right-sidebar .sidebar-matches-card__filters,
.matches-sidebar .matches-live-card .sidebar-matches-card__filters,
.rankings-regions,
.vrs-card__regions {
  border-color: color-mix(in srgb, var(--line) 82%, var(--text));
}

.home-left-sidebar .popular-card__periods,
.home-right-sidebar .popular-card__periods,
.home-right-sidebar .sidebar-matches-card__filters,
.matches-sidebar .matches-live-card .sidebar-matches-card__filters,
.sidebar-matches-card--mobile-placement .sidebar-matches-card__filters,
.vrs-card__regions {
  --segmented-control-radius: var(--radius-md);
  --segmented-item-radius: var(--radius-sm);
}

.home-left-sidebar .popular-card__period.is-active,
.home-right-sidebar .sidebar-matches-card__filter.is-active,
.matches-sidebar .matches-live-card .sidebar-matches-card__filter.is-active,
.rankings-region.is-active,
.vrs-card__region.is-active {
  border-color: transparent;
}

.home-left-sidebar .popular-card__periods,
.home-right-sidebar .sidebar-matches-card__filters,
.matches-sidebar .matches-live-card .sidebar-matches-card__filters,
.rankings-regions,
.vrs-card__regions {
  gap: 2px;
  padding: 2px;
  border: 1px solid color-mix(in srgb, var(--line) 86%, var(--text-soft));
  border-radius: var(--segmented-control-radius, 999px);
  background: color-mix(in srgb, var(--surface-muted) 78%, var(--surface-strong));
  box-shadow:
    inset 0 1px 2px rgba(16, 24, 40, 0.04),
    0 1px 2px rgba(16, 24, 40, 0.04);
}

.home-left-sidebar .popular-card__period,
.home-right-sidebar .sidebar-matches-card__filter,
.matches-sidebar .matches-live-card .sidebar-matches-card__filter,
.rankings-region,
.vrs-card__region {
  min-height: 28px;
  border: 0;
  border-radius: var(--segmented-item-radius, 999px);
  background: transparent;
  color: color-mix(in srgb, var(--text-soft) 86%, var(--text));
  box-shadow: none;
}

.home-left-sidebar .popular-card__period.is-active,
.home-right-sidebar .sidebar-matches-card__filter.is-active,
.matches-sidebar .matches-live-card .sidebar-matches-card__filter.is-active,
.rankings-region.is-active,
.vrs-card__region.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.08),
    0 6px 14px rgba(16, 24, 40, 0.06);
}

.sidebar .popular-card__periods,
.sidebar .sidebar-matches-card__filters,
.sidebar .vrs-card__regions,
.sidebar-matches-card--mobile-placement .sidebar-matches-card__filters {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 28px;
  min-height: auto;
  margin-top: -1.5px;
  padding: 1px;
  border: 1px solid var(--line);
  border-radius: var(--segmented-control-radius, 999px);
  background: var(--surface-muted);
  box-shadow: none;
}

.sidebar .popular-card__period,
.sidebar .sidebar-matches-card__filter,
.sidebar .vrs-card__region,
.sidebar-matches-card--mobile-placement .sidebar-matches-card__filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  min-height: 24px;
  padding: 0 9px;
  border: 0;
  border-radius: var(--segmented-item-radius, 999px);
  background: transparent;
  color: var(--text-soft);
  box-shadow: none;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: normal;
}

.home-left-sidebar .popular-card__period:hover,
.home-left-sidebar .popular-card__period:focus-visible {
  background: color-mix(in srgb, var(--accent) 4%, var(--surface-strong));
  color: color-mix(in srgb, var(--accent) 72%, var(--text));
}

.sidebar .popular-card__period.is-active,
.sidebar .sidebar-matches-card__filter.is-active,
.sidebar .vrs-card__region.is-active,
.sidebar-matches-card--mobile-placement .sidebar-matches-card__filter.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.home-left-sidebar .popular-card__periods,
.home-right-sidebar .popular-card__periods,
.home-right-sidebar .sidebar-matches-card__filters,
.matches-sidebar .matches-live-card .sidebar-matches-card__filters,
.sidebar-matches-card--mobile-placement .sidebar-matches-card__filters,
.vrs-card__regions {
  height: 26px;
  margin-top: 0;
  background: color-mix(in srgb, var(--surface-muted) 62%, var(--surface-strong));
}

.home-left-sidebar .popular-card__period,
.home-right-sidebar .popular-card__period,
.home-right-sidebar .sidebar-matches-card__filter,
.matches-sidebar .matches-live-card .sidebar-matches-card__filter,
.sidebar-matches-card--mobile-placement .sidebar-matches-card__filter,
.vrs-card__region {
  height: 22px;
  min-height: 22px;
  padding-inline: 6px;
  font-size: 0.62rem;
  line-height: 1;
}

.home-left-sidebar .popular-card__period {
  min-width: 24px;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast);
}

/* /styles/components/sidebar-matches-polish.css */
/* Final match and tournament sidebar refinements extracted from the legacy layer. */
.home-right-sidebar .sidebar-match-featured,
.matches-sidebar .matches-live-card .sidebar-match-featured {
  margin-inline: -4px;
  padding: 7px 4px;
  border-width: 0 0 1px;
  border-color: color-mix(in srgb, var(--line) 54%, transparent);
  border-radius: 0;
  background: transparent;
}

.home-right-sidebar .sidebar-match-featured--live,
.matches-sidebar .matches-live-card .sidebar-match-featured--live {
  border-color: color-mix(in srgb, var(--line) 54%, transparent);
}

.home-right-sidebar .sidebar-match-featured:hover,
.home-right-sidebar .sidebar-match-featured:focus-visible,
.matches-sidebar .matches-live-card .sidebar-match-featured:hover,
.matches-sidebar .matches-live-card .sidebar-match-featured:focus-visible {
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 3.5%, transparent);
}

.home-right-sidebar .sidebar-match-row__competition,
.matches-sidebar .matches-live-card .sidebar-match-row__competition {
  -webkit-box-orient: vertical;
}


.matches-tournament-item__logo {
  overflow: hidden;
}

.matches-tournament-item__logo img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 26px !important;
  object-fit: contain;
}

.matches-tournament-item__copy > span:first-child {
  font-size: 0.80rem;
  line-height: 1.12;
}

.matches-tournament-item__meta {
  align-items: center;
  min-width: 0;
}

.matches-tournament-item__meta span:first-child,
.matches-tournament-item__meta span:last-child {
  text-overflow: clip;
}

.matches-tournament-item__meta span:first-child {
  flex: 1 1 auto;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}

.matches-tournament-item__meta span:last-child {
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
}

.home-right-sidebar .sidebar-match-featured,
.matches-sidebar .matches-live-card .sidebar-match-featured {
  display: none;
}

.home-right-sidebar .sidebar-match-row__main,
.matches-sidebar .matches-live-card .sidebar-match-row__main {
  grid-template-columns: 36px minmax(calc(78px + 3ch), 1.25fr) minmax(82px, 1.1fr);
}

.home-right-sidebar .sidebar-match-row__competition,
.matches-sidebar .matches-live-card .sidebar-match-row__competition {
  display: block;
  color: color-mix(in srgb, var(--text-soft) 78%, var(--text));
  font-size: 0.63rem;
  font-weight: 720;
  line-height: 1.08;
  -webkit-line-clamp: unset;
}


.matches-tournament-item {
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 46px;
  padding-block: 6px;
}

.matches-tournament-item__logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.matches-tournament-item__logo--image {
  border-color: transparent;
  background: transparent;
}

.matches-tournament-item__logo--image img {
  max-width: 30px;
  max-height: 30px !important;
}

.matches-tournament-item__copy {
  gap: 2px;
}

.matches-tournament-item__meta {
  gap: 6px;
}


.home-right-sidebar .sidebar-matches-card__filter[data-match-filter="tier1"],
.matches-sidebar .matches-live-card .sidebar-matches-card__filter[data-match-filter="tier1"],
.matches-tournaments-card .sidebar-matches-card__filter[data-matches-tournament-tier-filter="tier1"] {
  min-width: 32px;
  padding-inline: 8px;
  color: color-mix(in srgb, var(--text-soft) 92%, var(--accent));
  font-size: 0.86rem;
  font-weight: 780;
}

.home-right-sidebar .sidebar-matches-card__filter[data-match-filter="tier1"].is-active,
.matches-sidebar .matches-live-card .sidebar-matches-card__filter[data-match-filter="tier1"].is-active,
.matches-tournaments-card .sidebar-matches-card__filter[data-matches-tournament-tier-filter="tier1"].is-active {
  color: var(--accent);
}

.matches-tournament-item__meta {
  display: block;
  overflow: hidden;
  font-size: 0.67rem;
  line-height: 1.05;
  white-space: nowrap;
}

.matches-tournament-item__meta span:first-child,
.matches-tournament-item__meta span:last-child {
  overflow: visible;
  max-width: none;
  padding: 0;
  background: transparent;
  color: inherit;
  font-weight: inherit;
  white-space: inherit;
}

.sidebar .sidebar-matches-card__filter[data-match-filter="tier1"],
.sidebar .sidebar-matches-card__filter[data-matches-tournament-tier-filter="tier1"],
.sidebar-matches-card--mobile-placement .sidebar-matches-card__filter[data-match-filter="tier1"],
.sidebar-matches-card--mobile-placement .sidebar-matches-card__filter[data-matches-tournament-tier-filter="tier1"] {
  min-width: 30px;
  padding: 0 8px;
  color: var(--accent);
  font-size: 0.82rem;
}

.sidebar .sidebar-matches-card__filter[data-match-filter="tier1"].is-active,
.sidebar .sidebar-matches-card__filter[data-matches-tournament-tier-filter="tier1"].is-active,
.sidebar-matches-card--mobile-placement .sidebar-matches-card__filter[data-match-filter="tier1"].is-active,
.sidebar-matches-card--mobile-placement .sidebar-matches-card__filter[data-matches-tournament-tier-filter="tier1"].is-active {
  color: var(--accent);
}

.sidebar-matches-card .sidebar-match-row__side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  gap: 4px;
}

.sidebar-matches-card .sidebar-match-row__competition {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  line-height: 1.08;
  text-align: right;
  text-overflow: clip;
  white-space: nowrap;
}

.sidebar-matches-card .sidebar-match-row__meta {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 4px;
  overflow: hidden;
}

.sidebar-matches-card .sidebar-match-row__stage,
.sidebar-matches-card .sidebar-match-pill--row {
  color: color-mix(in srgb, var(--text-soft) 76%, var(--text));
  font-size: 0.52rem;
  font-weight: 620;
  line-height: 1;
}

.sidebar-matches-card .sidebar-match-row__stage {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.sidebar-matches-card .sidebar-match-row__logo.team-logo--vitality {
  transform: scale(1.38);
}

.sidebar-matches-card .sidebar-match-pill--row {
  flex: 0 0 auto;
  border-color: transparent;
}

.sidebar-matches-card .sidebar-match-row__competition {
  color: color-mix(in srgb, var(--text) 54%, var(--text-soft));
  font-size: 0.66rem;
  font-weight: 720;
}

.sidebar-matches-card .sidebar-match-pill--row {
  min-height: 16px;
  padding: 1px 4px;
  border: 1px solid color-mix(in srgb, var(--line) 68%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-muted) 48%, transparent);
  color: color-mix(in srgb, var(--text-soft) 84%, var(--text));
  font-size: 0.52rem;
  font-weight: 720;
}

.home-right-sidebar .sidebar-matches-card__titles {
  display: grid;
  justify-items: start;
  text-align: left;
}

.home-right-sidebar .sidebar-matches-card__header {
  padding-right: 13px !important;
}

.home-right-sidebar .matches-tournaments-card {
  background: color-mix(in srgb, var(--surface-strong) 78%, transparent);
}

.home-right-sidebar .sidebar-match-row__team-name,
.home-right-sidebar .sidebar-match-row__competition,
.home-right-sidebar .sidebar-match-row__stage,
.home-right-sidebar .sidebar-match-featured__team-name,
.home-right-sidebar .sidebar-match-featured__competition,
.home-right-sidebar .matches-tournament-item__copy span:first-child,
.matches-sidebar .matches-live-card .sidebar-match-row__team-name,
.matches-sidebar .matches-live-card .sidebar-match-row__competition,
.matches-sidebar .matches-live-card .sidebar-match-row__stage,
.matches-sidebar .matches-live-card .sidebar-match-featured__team-name,
.matches-sidebar .matches-live-card .sidebar-match-featured__competition,
.matches-sidebar .matches-tournament-item__copy span:first-child,
.sidebar-matches-card--mobile-placement .sidebar-match-row__team-name,
.sidebar-matches-card--mobile-placement .sidebar-match-row__competition,
.sidebar-matches-card--mobile-placement .sidebar-match-row__stage,
.sidebar-matches-card--mobile-placement .sidebar-match-featured__team-name,
.sidebar-matches-card--mobile-placement .sidebar-match-featured__competition {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.matches-tournament-item__meta {
  color: var(--text-soft);
  font-weight: 400;
  text-overflow: ellipsis;
}

.sidebar .matches-tournament-item__meta {
  font-weight: 400 !important;
}

.home-right-sidebar .sidebar-match-row__competition,
.home-right-sidebar .sidebar-match-row__stage,
.home-right-sidebar .sidebar-match-featured__competition,
.home-right-sidebar .matches-tournament-item__copy span:first-child,
.matches-sidebar .matches-live-card .sidebar-match-row__competition,
.matches-sidebar .matches-live-card .sidebar-match-row__stage,
.matches-sidebar .matches-live-card .sidebar-match-featured__competition,
.matches-sidebar .matches-tournament-item__copy span:first-child,
.sidebar-matches-card--mobile-placement .sidebar-match-row__competition,
.sidebar-matches-card--mobile-placement .sidebar-match-row__stage,
.sidebar-matches-card--mobile-placement .sidebar-match-featured__competition {
  text-overflow: "";
}

@media (max-width: 860px) {
  .sidebar-matches-card--mobile-placement .sidebar-match-pill--row,
  .matches-sidebar .matches-live-card .sidebar-match-pill--row {
    padding-inline: 2px;
    border-color: color-mix(in srgb, var(--line) 50%, transparent);
  }
}

.home-right-sidebar .matches-tournaments-card .matches-tournament-item,
.matches-sidebar .matches-tournaments-card .matches-tournament-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 50px;
  padding: 8px 10px;
  text-align: left;
}

.home-right-sidebar .matches-tournaments-card .matches-tournament-item:hover,
.home-right-sidebar .matches-tournaments-card .matches-tournament-item:focus-visible,
.matches-sidebar .matches-tournaments-card .matches-tournament-item:hover,
.matches-sidebar .matches-tournaments-card .matches-tournament-item:focus-visible {
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 3.5%, transparent);
  box-shadow: none;
  transform: none;
}

.home-right-sidebar .matches-tournaments-card .matches-tournament-item__logo,
.matches-sidebar .matches-tournaments-card .matches-tournament-item__logo {
  justify-self: start;
  align-self: center;
}

.home-right-sidebar .matches-tournaments-card .matches-tournament-item__copy,
.matches-sidebar .matches-tournaments-card .matches-tournament-item__copy {
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}

.home-right-sidebar .matches-tournaments-card .matches-tournament-item__copy span:first-child,
.matches-sidebar .matches-tournaments-card .matches-tournament-item__copy span:first-child {
  width: 100%;
  text-align: left;
}

.home-right-sidebar .sidebar-match-row__competition,
.home-right-sidebar .sidebar-match-row__stage,
.home-right-sidebar .sidebar-match-featured__competition,
.home-right-sidebar .matches-tournaments-card .matches-tournament-item__copy span:first-child,
.matches-sidebar .matches-live-card .sidebar-match-row__competition,
.matches-sidebar .matches-live-card .sidebar-match-row__stage,
.matches-sidebar .matches-live-card .sidebar-match-featured__competition,
.matches-sidebar .matches-tournaments-card .matches-tournament-item__copy span:first-child,
.sidebar-matches-card--mobile-placement .sidebar-match-row__competition,
.sidebar-matches-card--mobile-placement .sidebar-match-row__stage,
.sidebar-matches-card--mobile-placement .sidebar-match-featured__competition {
  text-overflow: clip;
}

@media (max-width: 860px) {
  .sidebar-matches-card--mobile-placement .sidebar-match-pill--row,
  .matches-sidebar .matches-live-card .sidebar-match-pill--row {
    min-height: 12px;
    padding: 0 1px;
    border-width: 1px;
    font-size: 0.46rem;
    line-height: 1;
  }
}

@media (hover: hover) and (pointer: fine) {
  .sidebar-match-featured__team,
  .sidebar-match-row__team {
    position: relative;
  }

  .sidebar-match-featured__team[data-sidebar-entity-name]:hover::after,
  .sidebar-match-featured__team[data-sidebar-entity-name]:focus-visible::after,
  .sidebar-match-row__team[data-sidebar-entity-name]:hover::after,
  .sidebar-match-row__team[data-sidebar-entity-name]:focus-visible::after {
    position: absolute;
    z-index: 40;
    left: 50%;
    bottom: calc(100% + 7px);
    max-width: min(260px, 74vw);
    padding: 6px 8px;
    border: 1px solid color-mix(in srgb, var(--line) 88%, var(--text));
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface-strong) 96%, var(--text));
    box-shadow: var(--shadow-soft);
    color: var(--text);
    content: attr(data-sidebar-entity-name);
    font-size: 0.72rem;
    font-weight: 780;
    line-height: 1.18;
    overflow-wrap: anywhere;
    text-align: center;
    transform: translateX(-50%);
    white-space: normal;
  }
}

@media (max-width: 999.98px) {
  body:is(.page-trends, .page-matches, .page-tournaments, .page-rankings, .page-about) .home-right-sidebar .matches-tournaments-card,
  body:is(.page-trends, .page-matches, .page-tournaments, .page-rankings, .page-about) .matches-sidebar .matches-tournaments-card {
    display: none;
  }
}

.home-right-sidebar .sidebar-match-row__meta,
.matches-sidebar .matches-live-card .sidebar-match-row__meta,
.sidebar-matches-card--desktop-placement .sidebar-match-row__meta {
  gap: 6px;
}

.home-right-sidebar .sidebar-match-row__stage,
.matches-sidebar .matches-live-card .sidebar-match-row__stage,
.sidebar-matches-card--desktop-placement .sidebar-match-row__stage {
  color: color-mix(in srgb, var(--text-soft) 86%, var(--text));
  font-size: 0.62rem;
  font-weight: 760;
  line-height: 1.08;
}

.home-right-sidebar .sidebar-match-pill--row,
.matches-sidebar .matches-live-card .sidebar-match-pill--row,
.sidebar-matches-card--desktop-placement .sidebar-match-pill--row {
  min-height: 18px;
  padding: 1px 6px;
  border-color: color-mix(in srgb, var(--line) 76%, transparent);
  background: color-mix(in srgb, var(--surface-muted) 64%, transparent);
  color: color-mix(in srgb, var(--text-soft) 88%, var(--text));
  font-size: 0.58rem;
  font-weight: 790;
}

.home-right-sidebar .sidebar-match-featured__team-name,
.matches-sidebar .matches-live-card .sidebar-match-featured__team-name,
.sidebar-matches-card--desktop-placement .sidebar-match-featured__team-name,
.home-right-sidebar .sidebar-match-row__team-name,
.matches-sidebar .matches-live-card .sidebar-match-row__team-name,
.sidebar-matches-card--desktop-placement .sidebar-match-row__team-name {
  text-overflow: clip;
}

/* /styles/components/sidebar-vrs-card.css */
/* Sidebar VRS card. Loaded after the remaining legacy stylesheet. */
.vrs-card__titles {
  min-width: 0;
}

.vrs-card__regions {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  flex: 0 0 auto;
  padding: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.vrs-card__region {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  min-height: 22px;
  padding: 0 5px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 0.60rem;
  font-weight: 820;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.vrs-card__region.is-empty:not(.is-active) {
  opacity: 0.5;
}

.vrs-card__item {
  border-radius: var(--radius-sm);
}

.vrs-card__rank {
  border-color: color-mix(in srgb, var(--accent) 12%, var(--line));
}

.vrs-card__points {
  border-radius: var(--radius-sm);
  text-align: right;
}

.vrs-card__panel[hidden] {
  display: none;
}

.vrs-card__panel {
  display: flex;
  flex-direction: column;
}

.vrs-card__rank {
  width: 20px;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: color-mix(in srgb, var(--accent) 68%, var(--text));
  font-size: 0.76rem;
  font-weight: 900;
  justify-content: flex-start;
}


.vrs-card__points {
  padding: 0;
  background: transparent;
  color: color-mix(in srgb, var(--text) 78%, var(--text-soft));
  font-weight: 820;
}

.vrs-card__empty {
  padding: 10px 2px 6px;
  color: color-mix(in srgb, var(--text-soft) 76%, var(--surface-strong));
  font-size: 0.68rem;
  font-weight: 620;
  text-align: center;
}

.home-left-sidebar .vrs-card__item {
  min-height: 40px;
}

.home-left-sidebar .vrs-card__logo[alt="Логотип Vitality"],
.home-left-sidebar .vrs-card__logo[alt="Логотип Team Vitality"] {
  transform: scale(1.34);
}

.vrs-card__name {
  font-size: 0.81rem;
}

.vrs-card__roster {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: color-mix(in srgb, var(--text-soft) 84%, var(--text));
  font-size: 0.61rem;
  font-weight: 600;
  line-height: 1.05;
  text-overflow: clip;
  white-space: nowrap;
}

.vrs-card__separator {
  margin-inline: 0;
}

/* Sidebar block polish: single-line headers after subtitle removal. */
.home-left-sidebar .vrs-card {
  order: 1;
  background: color-mix(in srgb, var(--surface-strong) 86%, var(--surface-muted));
}

.home-left-sidebar .vrs-card__title {
  font-size: 0.84rem;
}

.home-left-sidebar .vrs-card__item {
  padding-left: 3px;
  padding-right: 4px;
}

.home-left-sidebar .vrs-card__rank {
  width: 16px;
}

.home-left-sidebar .vrs-card__logo {
  justify-self: start;
}

.home-left-sidebar .vrs-card__titles {
  max-width: calc(100% - 132px);
}

.home-left-sidebar .vrs-card__region {
  min-width: 24px;
  padding-inline: 6px;
  font-size: 0.58rem;
}

.vrs-card__logo[alt="Логотип Vitality"],
.vrs-card__logo[alt="Логотип Team Vitality"] {
  border-radius: 0;
  background: transparent;
}

.home-left-sidebar .vrs-card__item {
  grid-template-columns: 14px 24px minmax(0, 1fr) 32px;
  gap: 4px;
}

.home-left-sidebar .vrs-card__rank {
  justify-content: flex-start;
}

.home-left-sidebar .vrs-card__logo {
  width: 24px;
  height: 24px;
}

.vrs-card__points {
  min-width: 32px;
  font-size: 0.70rem;
}

.vrs-card__roster {
  max-width: 100%;
}

/* /styles/components/sidebar-popular-card.css */
/* Sidebar popular-content card. Loaded after the remaining legacy stylesheet. */
.home-left-sidebar .popular-card--dynamic {
  overflow: hidden;
  padding: 9px 10px 8px;
  border-color: color-mix(in srgb, var(--line) 66%, transparent);
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
  box-shadow: none;
}

.home-left-sidebar .popular-card--dynamic .popular-card__list {
  margin-top: 1px;
}

.home-left-sidebar .popular-card--dynamic .popular-item,
.home-left-sidebar .popular-card--dynamic .popular-item:not(.popular-item--leader) {
  gap: 7px;
  min-height: 45px;
  margin-inline: -3px;
  border-bottom-color: color-mix(in srgb, var(--line) 44%, transparent);
  background: transparent;
}

.home-left-sidebar .popular-card--dynamic .popular-item:last-child,
.home-left-sidebar .popular-card--dynamic .popular-item:not(.popular-item--leader):last-child {
  border-bottom-color: transparent;
}

.home-left-sidebar .popular-card--dynamic .popular-item:hover,
.home-left-sidebar .popular-card--dynamic .popular-item:focus-within {
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 3%, transparent);
  transform: none;
}

.home-left-sidebar .popular-card--dynamic .popular-item__thumb {
  border-color: color-mix(in srgb, var(--line) 52%, transparent);
  border-radius: var(--radius-sm);
  box-shadow: none;
}

.home-left-sidebar .popular-card--dynamic .popular-item__body {
  gap: 4px;
}

.home-left-sidebar .popular-card--dynamic .popular-item__title {
  color: color-mix(in srgb, var(--text) 90%, var(--text-soft));
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.22;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
}

.home-left-sidebar .popular-card--dynamic .popular-item__meta {
  gap: 7px;
  color: color-mix(in srgb, var(--text-soft) 82%, var(--text));
  font-size: 0.62rem;
  font-weight: 600;
}

.home-left-sidebar .popular-card--dynamic .popular-item__views-icon,
.home-left-sidebar .popular-card--dynamic .popular-item__reactions-icon {
  width: 11px;
  height: 11px;
}

.home-left-sidebar .popular-card {
  order: 2;
}

.home-right-sidebar > .popular-card {
  overflow: hidden;
  padding: 10px 11px 9px;
  border-color: color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
  box-shadow: none;
}

.home-left-sidebar .popular-card__header--dynamic .popular-card__heading {
  max-width: calc(100% - 112px);
}

.home-right-sidebar .popular-card__all-link {
  min-height: 29px;
  margin-top: 3px;
  border-color: color-mix(in srgb, var(--line) 58%, transparent);
  border-radius: var(--radius-sm);
  background: transparent;
  box-shadow: none;
  color: color-mix(in srgb, var(--text-soft) 88%, var(--text));
  font-size: 0.72rem;
  font-weight: 720;
}

.home-right-sidebar .popular-card__all-link:hover,
.home-right-sidebar .popular-card__all-link:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 14%, var(--line));
  background: color-mix(in srgb, var(--accent) 3.5%, transparent);
  color: color-mix(in srgb, var(--accent) 78%, var(--text));
  box-shadow: none;
  transform: none;
}

.home-left-sidebar .popular-card--dynamic .popular-item,
.home-left-sidebar .popular-card--dynamic .popular-item:not(.popular-item--leader) {
  padding: 6px 10px 6px 3px;
}


.home-left-sidebar .popular-card--dynamic .popular-item__body {
  justify-content: space-between;
}

.home-left-sidebar .popular-card--dynamic .popular-item__title {
  min-height: calc(0.72rem * 1.22 * 2);
}

.home-left-sidebar .popular-card--dynamic .popular-item__meta {
  margin-top: auto;
  justify-content: flex-start;
  text-align: left;
}

.home-left-sidebar .popular-card--dynamic .popular-item,
.home-left-sidebar .popular-card--dynamic .popular-item:not(.popular-item--leader) {
  grid-template-columns: 50px minmax(0, 1fr);
}

.home-left-sidebar .popular-card--dynamic .popular-item__thumb {
  width: 50px;
  height: 38px;
}

.home-left-sidebar .popular-card--dynamic .popular-item__body {
  min-height: 38px;
}

.home-left-sidebar .popular-card--dynamic .popular-card__all-link {
  min-height: 27px;
  border-color: color-mix(in srgb, var(--line) 58%, transparent);
  border-radius: var(--radius-sm);
  background: transparent;
  box-shadow: none;
  color: color-mix(in srgb, var(--text-soft) 86%, var(--text));
  font-size: 0.7rem;
  font-weight: 700;
}

.home-left-sidebar .popular-card--dynamic .popular-card__all-link:hover,
.home-left-sidebar .popular-card--dynamic .popular-card__all-link:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 14%, var(--line));
  background: color-mix(in srgb, var(--accent) 3%, transparent);
  color: color-mix(in srgb, var(--accent) 76%, var(--text));
  transform: none;
}

.popular-card__all-arrow {
  color: currentColor;
  font-size: 1rem;
  font-weight: 760;
  transform: translateY(-1px);
}

.popular-card__empty {
  margin-top: 4px;
  padding: 10px;
  border: 1px dashed color-mix(in srgb, var(--line) 62%, transparent);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-muted) 42%, transparent);
  color: color-mix(in srgb, var(--text-soft) 84%, var(--text));
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

/* /styles/components/sidebar-channel-card.css */
/* Compact channel hub for the shared left sidebar. */
.home-left-sidebar .channel-card--compact-hub {
  order: 3;
  display: grid;
  min-height: 0;
  gap: 6px;
  margin: 0;
  padding: 8px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: none;
  text-align: left;
}

.home-left-sidebar .channel-card--compact-hub::before,
.home-left-sidebar .channel-card--compact-hub::after {
  display: none;
}

.home-left-sidebar .channel-hub__viewport {
  min-width: 0;
  min-height: 101px;
}

.home-left-sidebar .channel-hub__panel {
  --channel-hub-accent: var(--accent);
  display: grid;
  min-height: 101px;
  grid-template-rows: auto auto;
  align-content: stretch;
  gap: 8px;
  padding: 9px;
  border: 1px solid color-mix(in srgb, var(--channel-hub-accent) 16%, var(--line));
  border-radius: calc(var(--radius-lg) - 2px);
  background: var(--surface-strong);
  box-shadow: 0 5px 16px color-mix(in srgb, var(--text) 5%, transparent);
}

.home-left-sidebar .channel-hub__panel[hidden] {
  display: none;
}

.home-left-sidebar .channel-hub__panel:not([hidden]) {
  animation: channel-hub-panel-in 180ms ease-out both;
}

.home-left-sidebar .channel-hub__panel--life {
  --channel-hub-accent: #7357c7;
}

.home-left-sidebar .channel-hub__panel--hub {
  --channel-hub-accent: #46515f;
}

.home-left-sidebar .channel-hub__panel--bet {
  --channel-hub-accent: #6a5b4b;
}

.home-left-sidebar .channel-hub__identity {
  display: grid;
  min-width: 0;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.home-left-sidebar .channel-hub__avatar,
.home-left-sidebar .channel-hub__avatar-img {
  width: 42px;
  height: 42px;
  border-radius: 999px;
}

.home-left-sidebar .channel-hub__avatar {
  display: inline-flex;
  overflow: hidden;
  background: var(--surface-strong);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--channel-hub-accent) 18%, var(--line)),
    0 3px 9px color-mix(in srgb, var(--text) 8%, transparent);
}

.home-left-sidebar .channel-hub__avatar-img {
  display: block;
  max-width: none;
  object-fit: cover;
}

.home-left-sidebar .channel-hub__copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.home-left-sidebar .channel-hub__copy strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-left-sidebar .channel-hub__copy strong {
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 820;
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.home-left-sidebar .channel-hub__meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  line-height: 1.2;
  white-space: nowrap;
}

.home-left-sidebar .channel-hub__handle {
  display: inline-block;
  min-width: 0;
  overflow: hidden;
  color: color-mix(in srgb, var(--channel-hub-accent) 78%, var(--text));
  font-weight: 800;
  text-decoration: none;
  text-overflow: ellipsis;
}

.home-left-sidebar .channel-hub__handle:hover,
.home-left-sidebar .channel-hub__handle:focus-visible {
  color: var(--channel-hub-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-left-sidebar .channel-hub__meta small {
  min-width: 0;
  overflow: hidden;
  color: color-mix(in srgb, var(--text-soft) 90%, var(--text));
  font-size: inherit;
  font-weight: 630;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
}

.home-left-sidebar .channel-hub__meta small::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 9px;
  margin-right: 6px;
  background: color-mix(in srgb, var(--line) 76%, transparent);
  vertical-align: -1px;
}

.home-left-sidebar .channel-hub__action {
  display: flex;
  min-height: 31px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-inline: 10px;
  border: 1px solid color-mix(in srgb, var(--channel-hub-accent) 23%, var(--line));
  border-radius: var(--radius-sm);
  color: color-mix(in srgb, var(--channel-hub-accent) 82%, var(--text));
  background: var(--surface-strong);
  font-size: 0.62rem;
  font-weight: 780;
  text-decoration: none;
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.home-left-sidebar .channel-hub__action > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.home-left-sidebar .channel-hub__action:hover,
.home-left-sidebar .channel-hub__action:focus-visible {
  border-color: color-mix(in srgb, var(--channel-hub-accent) 42%, var(--line));
  background: color-mix(in srgb, var(--channel-hub-accent) 6%, var(--surface-strong));
  color: var(--channel-hub-accent);
}

.home-left-sidebar .channel-hub__action-icon,
.home-left-sidebar .channel-hub__action-icon svg,
.home-left-sidebar .channel-hub__action-arrow,
.home-left-sidebar .channel-hub__action-arrow svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}

.home-left-sidebar .channel-hub__controls {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) 25px;
  align-items: center;
  gap: 5px;
}

.home-left-sidebar .channel-hub__arrow {
  display: inline-grid;
  width: 25px;
  height: 29px;
  min-width: 0;
  place-items: center;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  background: var(--surface-strong);
  cursor: pointer;
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.home-left-sidebar .channel-hub__arrow:hover,
.home-left-sidebar .channel-hub__arrow:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, var(--surface-strong));
}

.home-left-sidebar .channel-hub__arrow-icon,
.home-left-sidebar .channel-hub__arrow-icon svg {
  width: 13px;
  height: 13px;
}

.home-left-sidebar .channel-hub__tabs {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  padding: 2px;
  border: 1px solid color-mix(in srgb, var(--line) 64%, transparent);
  border-radius: calc(var(--radius-sm) + 2px);
  background: color-mix(in srgb, var(--surface-muted) 74%, var(--bg-secondary));
}

.home-left-sidebar .channel-hub__tab {
  --channel-hub-tab-accent: var(--accent);
  display: inline-flex;
  min-width: 0;
  min-height: 23px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 4px;
  border: 0;
  border-radius: 6px;
  color: color-mix(in srgb, var(--text-soft) 82%, transparent);
  background: transparent;
  font-size: 0.47rem;
  font-weight: 760;
  letter-spacing: 0.025em;
  cursor: pointer;
}

.home-left-sidebar .channel-hub__tab--life {
  --channel-hub-tab-accent: #7357c7;
}

.home-left-sidebar .channel-hub__tab--hub {
  --channel-hub-tab-accent: #46515f;
}

.home-left-sidebar .channel-hub__tab--bet {
  --channel-hub-tab-accent: #6a5b4b;
}

.home-left-sidebar .channel-hub__tab i {
  width: 4px;
  height: 4px;
  flex: 0 0 4px;
  border-radius: 999px;
  background: currentColor;
}

.home-left-sidebar .channel-hub__tab:hover,
.home-left-sidebar .channel-hub__tab:focus-visible {
  color: color-mix(in srgb, var(--channel-hub-tab-accent) 70%, var(--text));
}

.home-left-sidebar .channel-hub__tab.is-active {
  color: color-mix(in srgb, var(--channel-hub-tab-accent) 82%, var(--text));
  background: var(--surface-strong);
  box-shadow: 0 1px 4px color-mix(in srgb, var(--text) 10%, transparent);
}

.home-left-sidebar .channel-card--compact-hub .channel-card__footer {
  display: grid;
  min-height: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 7px 2px 0;
  border-top: 1px solid color-mix(in srgb, var(--line) 52%, transparent);
}

.home-left-sidebar .channel-card--compact-hub .channel-card__footer-link {
  display: inline-flex;
  min-width: 0;
  min-height: 17px;
  align-items: center;
  gap: 5px;
  color: color-mix(in srgb, var(--text-soft) 86%, var(--text));
  font-size: 0.61rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.home-left-sidebar .channel-card--compact-hub .channel-card__footer-link:hover,
.home-left-sidebar .channel-card--compact-hub .channel-card__footer-link:focus-visible {
  color: var(--accent);
}

.home-left-sidebar .channel-card--compact-hub .channel-card__footer-link--mail {
  justify-self: start;
}

.home-left-sidebar .channel-card--compact-hub .channel-card__footer-link--mail span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-left-sidebar .channel-card--compact-hub .channel-card__footer-icon,
.home-left-sidebar .channel-card--compact-hub .channel-card__footer-icon svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}

.home-left-sidebar .channel-card--compact-hub .channel-card__footer-links {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.home-left-sidebar .channel-card--compact-hub .channel-card__footer-link--rss {
  position: relative;
}

.home-left-sidebar .channel-card--compact-hub .channel-card__footer-link--rss::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  margin-left: 10px;
  background: var(--divider-soft);
  vertical-align: middle;
}

.home-left-sidebar a:focus-visible,
.home-left-sidebar button:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

@keyframes channel-hub-panel-in {
  from {
    opacity: 0;
    transform: translateX(5px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-left-sidebar .channel-hub__panel:not([hidden]) {
    animation-duration: 1ms;
  }

  .home-left-sidebar .channel-hub__action,
  .home-left-sidebar .channel-hub__arrow,
  .home-left-sidebar .channel-card__footer-link {
    transition-duration: 1ms;
  }
}

/* /styles/components/feed-mobile.css */
/* Mobile feed cards: post menu and reactions popover. */

/* Mobile feed cards: compact post options button. */
@media (max-width: 640px) {
  .post-menu-wrap {
    flex: 0 0 auto;
    align-self: flex-start;
  }

  .post-menu-button {
    display: inline-grid;
    place-items: center;
    padding: 0;
    font-size: 0;
    line-height: 1;
    background: color-mix(in srgb, var(--surface-muted) 44%, var(--surface-strong));
    color: color-mix(in srgb, var(--text-soft) 84%, var(--text));
  }

  .post-menu-button::before {
    content: "";
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
    opacity: 0.9;
  }
}


@media (max-width: 380px) {
  .post-menu-button,
  :where(.post-menu-button) {
    width: 36px;
    min-width: 36px;
    height: 38px;
    min-height: 38px;
    border-radius: 13px;
  }
}

/* Mobile feed cards: precise compact post options button. */
@media (max-width: 860px) {
  .post-card__header-main {
    padding-right: 42px;
  }

  .post-card__header-side {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    width: auto;
    margin-left: 0;
    pointer-events: none;
  }

  .post-menu-wrap {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    pointer-events: auto;
  }

  .post-menu-button,
  :where(.post-menu-button) {
    display: inline-grid;
    place-items: center;
    box-sizing: border-box;
    padding: 0;
    font-size: 0;
    line-height: 1;
    color: color-mix(in srgb, var(--text-soft) 66%, var(--text));
  }

  .post-menu-button::before {
    content: "";
    border-radius: 999px;
    opacity: 0.68;
  }
}


@media (max-width: 640px) {
  .post-card__header-side {
    top: 12px;
    right: 12px;
  }

  .post-card__header-main {
    padding-right: 38px;
  }




}


/* Mobile feed cards: keep the post options frame centered around the dots. */
@media (max-width: 860px) {
  .post-menu-button,
  :where(.post-menu-button) {
    position: relative;
    overflow: hidden;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--surface-muted) 22%, var(--surface-strong));
  }

  .post-menu-button::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 2px;
    transform: translate(-50%, -50%);
    background: currentColor;
    box-shadow: 0 -4.5px 0 currentColor, 0 4.5px 0 currentColor;
  }
}

@media (pointer: coarse) and (max-width: 860px) {
  .post-menu-button,
  :where(.post-menu-button) {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
  }
}

@media (max-width: 640px) {
  .post-menu-wrap {
    width: 36px;
    height: 36px;
  }

  .post-menu-button,
  :where(.post-menu-button) {
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    border-radius: 11px;
  }
}

@media (pointer: coarse) and (max-width: 640px) {
  .post-menu-button,
  :where(.post-menu-button) {
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
  }
}

/* Mobile reaction overflow popover fix. */
.reactions-popover--floating {
  position: fixed;
  top: var(--reactions-popover-top, 12px);
  right: auto;
  bottom: auto;
  left: var(--reactions-popover-left, 12px);
  z-index: 140;
  max-width: calc(100vw - 24px);
  box-shadow: var(--shadow-popover);
}

@media (max-width: 640px) {
  .reactions-popover--floating .reactions-popover__list {
    grid-template-columns: repeat(3, max-content);
  }
}

/* Mobile trending cards extracted from the remaining legacy layer. */
@media (max-width: 999.98px) {
  .mobile-trend-card {
    overflow: hidden;
    padding: 10px 12px 11px;
    border-color: color-mix(in srgb, var(--line) 66%, transparent);
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--surface-strong) 84%, transparent);
    box-shadow: none;
  }

  .mobile-trend-card__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
    margin-bottom: 8px;
  }

  .mobile-trend-card__title {
    color: color-mix(in srgb, var(--text) 90%, var(--text-soft));
    font-size: 0.92rem;
    font-weight: 780;
    line-height: 1.12;
  }

  .mobile-trend-card__periods {
    gap: 1px;
    min-height: 24px;
    padding: 1px;
    border-color: color-mix(in srgb, var(--line) 58%, transparent);
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--surface-muted) 52%, transparent);
    box-shadow: none;
  }

  .mobile-trend-card__period {
    min-width: 24px;
    min-height: 20px;
    padding: 0 6px;
    border-radius: var(--radius-sm);
    color: color-mix(in srgb, var(--text-soft) 86%, var(--text));
    font-size: 0.62rem;
    font-weight: 720;
    line-height: 1;
    transition:
      background-color var(--transition-fast),
      color var(--transition-fast),
      box-shadow var(--transition-fast);
  }

  .mobile-trend-card__period:hover,
  .mobile-trend-card__period:focus-visible {
    background: color-mix(in srgb, var(--accent) 4%, var(--surface-strong));
    color: color-mix(in srgb, var(--accent) 72%, var(--text));
  }

  .mobile-trend-card__period.is-active {
    background: var(--surface-strong);
    color: color-mix(in srgb, var(--text) 88%, var(--accent));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 52%, transparent);
  }

  .mobile-trend-card__empty {
    margin-top: 4px;
    padding: 10px;
    border: 1px dashed color-mix(in srgb, var(--line) 62%, transparent);
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--surface-muted) 42%, transparent);
    color: color-mix(in srgb, var(--text-soft) 84%, var(--text));
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
  }

  .mobile-trend-card__rail {
    gap: 8px;
    max-width: calc(100% + 20px);
    margin-inline: -10px;
    padding: 0 10px 2px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-trend-item {
    flex: 0 0 164px;
    width: 164px;
    min-height: 156px;
    border: 1px solid color-mix(in srgb, var(--line) 58%, transparent);
    border-radius: var(--radius-md);
    background: var(--surface-strong);
    color: var(--text);
    box-shadow: none;
  }

  .mobile-trend-item__thumb {
    position: relative;
    inset: auto;
    display: block;
    height: 82px;
    background: color-mix(in srgb, var(--surface-muted) 70%, var(--surface-strong));
  }

  .mobile-trend-item__thumb::after {
    background: linear-gradient(180deg, transparent 48%, rgba(6, 9, 14, 0.2));
  }

  .mobile-trend-item__thumb img {
    filter: saturate(0.94) contrast(0.96);
  }

  .mobile-trend-item__body {
    min-height: 72px;
    padding: 7px;
    justify-content: flex-start;
  }

  .mobile-trend-item__rank {
    margin-bottom: 5px;
    padding: 1px 5px;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--surface-muted) 70%, transparent);
    color: color-mix(in srgb, var(--text-soft) 86%, var(--text));
    font-size: 0.58rem;
    font-weight: 700;
  }

  .mobile-trend-item__title {
    margin-top: 0;
    color: color-mix(in srgb, var(--text) 92%, var(--text-soft));
    font-size: 0.72rem;
    font-weight: 720;
    line-height: 1.22;
    overflow-wrap: anywhere;
  }

  .mobile-trend-item__meta {
    gap: 8px;
    margin-top: auto;
    color: color-mix(in srgb, var(--text-soft) 84%, var(--text));
    font-size: 0.62rem;
    font-weight: 620;
    text-shadow: none;
  }

  .mobile-trend-item__meta-icon,
.mobile-trend-item__meta-icon svg {
    width: 11px;
    height: 11px;
  }}

@media (max-width: 640px) {

  .mobile-trend-card {
    padding: 9px 10px 10px;
  }

  .mobile-trend-card__period {
    min-width: 23px;
    padding: 0 5px;
    font-size: 0.6rem;
  }

  .mobile-trend-card__rail {
    max-width: calc(100% + 16px);
    margin-inline: -8px;
    padding-inline: 8px;
  }

  .mobile-trend-item {
    flex-basis: 152px;
    width: 152px;
  }}

.mobile-trend-card__header {
  align-items: center;
}

.mobile-trend-card__title {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

@media (max-width: 700px) {


  .mobile-trend-card__rail {
    gap: 10px;
    padding-bottom: 0;
  }}

@media (max-width: 700px) {
  .mobile-trend-card {
    padding: 8px 8px 7px;
  }

  .mobile-trend-card__header {
    margin-bottom: 5px;
  }

  .mobile-trend-item {
    min-height: 122px;
  }

  .mobile-trend-item__thumb {
    height: 76px;
  }

  .mobile-trend-item__body {
    position: relative;
    min-height: 46px;
    padding: 6px 7px 7px;
  }

  .mobile-trend-item__rank {
    position: absolute;
    top: -15px;
    left: 7px;
    margin: 0;
    padding: 1px 6px;
    background: color-mix(in srgb, var(--surface-strong) 90%, transparent);
    box-shadow: 0 3px 8px rgba(16, 24, 40, 0.1);
  }

  .mobile-trend-item__title {
    margin-top: 0;
  }

  .mobile-trend-item__meta {
    margin-top: 5px;
  }}

/* /styles/components/sidebar-matches-mobile.css */
/* Mobile sidebar matches: compact rail, filters and card metadata. */

/* Late mobile-placement refinements extracted from the legacy layer. */
.sidebar-matches-card--mobile-placement .sidebar-matches-card__header {
  margin-inline: -12px;
}

@media (max-width: 999.98px) {
  .sidebar-matches-card--mobile-placement .sidebar-matches-card__mobile-rail {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 12px;
    scroll-snap-type: x proximity;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured {
    flex-basis: 206px;
    scroll-snap-align: start;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__format {
    padding: 0 5px;
    border-radius: 7px;
    line-height: 1;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__team-name,
  .sidebar-matches-card--mobile-placement .sidebar-match-row__team-name {
    display: -webkit-box;
    min-height: 1.4em;
    overflow: hidden;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 700px) {
  .sidebar-matches-card--mobile-placement .sidebar-match-featured {
    flex-basis: 196px;
  }
}

@media (max-width: 860px) {
  .sidebar-matches-card--mobile-placement .sidebar-match-featured__status {
    max-width: 58px;
    min-height: 16px;
    padding: 0 5px;
    border-radius: 7px;
    font-size: 0.5rem;
    letter-spacing: 0;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__status--live::before {
    width: 4px;
    height: 4px;
    flex-basis: 4px;
    box-shadow: 0 0 0 2px color-mix(in srgb, #d94a3a 8%, transparent);
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__format {
    min-width: 34px;
    min-height: 16px;
    padding: 0 5px;
    border-radius: 7px;
    font-size: 0.5rem;
  }
}

@media (max-width: 700px) {
  .sidebar-matches-card--mobile-placement .sidebar-match-featured__status {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    min-width: 40px;
    padding-inline: 5px;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__format {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    max-width: max-content;
    padding-inline: 5px;
  }
}

/* === Mobile matches header: compact segmented control === */
@media (max-width: 999.98px) {
  .sidebar-matches-card--mobile-placement {
    padding: 8px 12px 9px !important;
  }

  .sidebar-matches-card--mobile-placement .sidebar-matches-card__header {
    display: grid;
    grid-template-columns: max-content auto minmax(0, 1fr);
    grid-template-areas: "titles controls spacer";
    align-items: center;
    justify-content: start;
    box-sizing: border-box;
    min-height: 36px;
    margin: -8px -12px 6px !important;
    padding: 0 14px !important;
    column-gap: 10px;
  }

  .sidebar-matches-card--mobile-placement .sidebar-matches-card__titles {
    grid-area: titles;
    display: flex;
    align-items: center;
    min-width: 0;
  }

  .sidebar-matches-card--mobile-placement .sidebar-matches-card__title,
  .sidebar-matches-card--mobile-placement .sidebar-matches-card__title-link {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    line-height: 1;
  }

  .sidebar-matches-card--mobile-placement.has-live-matches .sidebar-matches-card__title::before {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    box-shadow: 0 0 0 3px color-mix(in srgb, #d94a3a 10%, transparent);
  }

  .sidebar-matches-card--mobile-placement .sidebar-matches-card__controls {
    grid-area: controls;
    align-self: center;
    justify-self: start;
    display: flex;
    align-items: center;
    height: 24px;
    margin-left: 0;
  }

  .sidebar-matches-card--mobile-placement .sidebar-matches-card__filters {
    display: inline-flex;
    align-items: center;
    width: auto;
    max-width: none;
    height: 24px;
    min-height: 24px;
    margin: 0;
    padding: 1px;
    gap: 1px;
    overflow: hidden;
    border-color: color-mix(in srgb, var(--line) 62%, transparent);
    border-radius: var(--radius-control);
    background: color-mix(in srgb, var(--surface-muted) 58%, var(--surface-strong));
    box-shadow: none;
  }

  .sidebar-matches-card--mobile-placement .sidebar-matches-card__filter {
    width: auto;
    min-width: 26px;
    height: 22px;
    min-height: 22px;
    padding: 0 7px;
    border-radius: var(--radius-inner);
    font-size: 0.6rem;
    line-height: 1;
  }

  .sidebar-matches-card--mobile-placement .sidebar-matches-card__filter.is-active {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 48%, transparent);
  }

  .sidebar-matches-card--mobile-placement .sidebar-matches-card__filter[data-match-filter="all"] {
    min-width: 34px;
  }

  .sidebar-matches-card--mobile-placement .sidebar-matches-card__filter[data-match-filter="tier1"] {
    min-width: 26px;
    padding-inline: 5px;
    font-size: 0.74rem;
  }

  .sidebar-matches-card--mobile-placement .sidebar-matches-card__mobile-rail {
    gap: 7px;
    margin-top: 0 !important;
    padding-bottom: 0;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured {
    padding: 6px !important;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__top {
    margin-bottom: 5px;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__status,
  .sidebar-matches-card--mobile-placement .sidebar-match-featured__format {
    min-height: 18px;
    font-size: 0.48rem;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__body {
    grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr) !important;
    gap: 5px !important;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__team {
    grid-template-rows: 28px 16px;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__logo,
  .sidebar-matches-card--mobile-placement .sidebar-match-featured__logo--fallback {
    width: 28px !important;
    height: 28px !important;
    flex-basis: 28px !important;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__team-name {
    min-height: 16px;
    font-size: 0.6rem;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__center {
    width: 52px !important;
    min-width: 52px !important;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__score {
    grid-template-columns: 1ch 8px 1ch;
    width: 52px !important;
    font-size: 1.14rem;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__score-label {
    min-height: 12px;
    padding-inline: 4px;
    font-size: 0.38rem;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__submeta {
    font-size: 0.58rem;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__mobile-time {
    font-size: 0.96rem;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__mobile-stage {
    font-size: 0.54rem;
  }
}

@media (max-width: 640px) {
  .sidebar-matches-card--mobile-placement {
    padding: 8px 10px 9px !important;
  }

  .sidebar-matches-card--mobile-placement .sidebar-matches-card__header {
    min-height: 34px;
    margin: -8px -10px 6px !important;
    padding-inline: 12px !important;
    column-gap: 9px;
  }

  .sidebar-matches-card--mobile-placement .sidebar-matches-card__title,
  .sidebar-matches-card--mobile-placement .sidebar-matches-card__title-link {
    min-height: 23px;
    font-size: 0.94rem;
  }

  .sidebar-matches-card--mobile-placement .sidebar-matches-card__controls,
  .sidebar-matches-card--mobile-placement .sidebar-matches-card__filters {
    height: 23px;
    min-height: 23px;
  }

  .sidebar-matches-card--mobile-placement .sidebar-matches-card__filter {
    height: 21px;
    min-height: 21px;
    padding-inline: 6px;
  }

  .sidebar-matches-card--mobile-placement .sidebar-matches-card__filter[data-match-filter="all"] {
    min-width: 32px;
  }

  .sidebar-matches-card--mobile-placement .sidebar-matches-card__filter[data-match-filter="tier1"] {
    min-width: 25px;
    padding-inline: 5px;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured {
    flex-basis: 170px !important;
    width: 170px !important;
    min-width: 170px !important;
    max-width: 170px !important;
  }
}

/* Mobile matches block: premium compact "All matches" action in header. */
.sidebar-matches-card__header-all-link {
  display: none;
}

@media (max-width: 999.98px) {
  .sidebar-matches-card--mobile-placement .sidebar-matches-card__header-all-link {
    grid-area: spacer;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition:
      border-color 160ms ease,
      background 160ms ease,
      color 160ms ease,
      transform 160ms ease,
      box-shadow 160ms ease;
  }



  .sidebar-matches-card--mobile-placement .sidebar-matches-card__header-all-link:active {
    transform: translateY(1px);
  }

  .sidebar-matches-card--mobile-placement .sidebar-matches-card__header-all-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}


@media (max-width: 380px) {
  .sidebar-matches-card--mobile-placement .sidebar-matches-card__header {
    column-gap: 7px;
  }


}

/* Mobile matches block: calmer premium header action. */
@media (max-width: 999.98px) {
  .sidebar-matches-card--mobile-placement .sidebar-matches-card__header-all-link {
    border-color: rgba(203, 213, 225, 0.82);
  }




}

@media (max-width: 640px) {
  .sidebar-matches-card--mobile-placement .sidebar-matches-card__header-all-link {
    padding-inline: 9px 8px;
  }
}

@media (max-width: 380px) {
  .sidebar-matches-card--mobile-placement .sidebar-matches-card__header-all-link {
    padding-inline: 8px 7px;
  }
}

/* Mobile matches block: tune the "All matches" button radius to match the UI rhythm. */
@media (max-width: 999.98px) {
  .sidebar-matches-card--mobile-placement .sidebar-matches-card__header-all-link,
  .sidebar-matches-card--mobile-placement .sidebar-matches-card__header-all-link:hover,
  .sidebar-matches-card--mobile-placement .sidebar-matches-card__header-all-link:focus-visible {
    border-radius: 10px;
  }
}

@media (max-width: 640px) {
  .sidebar-matches-card--mobile-placement .sidebar-matches-card__header-all-link,
  .sidebar-matches-card--mobile-placement .sidebar-matches-card__header-all-link:hover,
  .sidebar-matches-card--mobile-placement .sidebar-matches-card__header-all-link:focus-visible {
    border-radius: 9px;
  }
}

@media (max-width: 380px) {
  .sidebar-matches-card--mobile-placement .sidebar-matches-card__header-all-link,
  .sidebar-matches-card--mobile-placement .sidebar-matches-card__header-all-link:hover,
  .sidebar-matches-card--mobile-placement .sidebar-matches-card__header-all-link:focus-visible {
    border-radius: 8px;
  }
}

/* Mobile matches block: quiet text action for the full matches link. */
@media (max-width: 999.98px) {
  .sidebar-matches-card--mobile-placement .sidebar-matches-card__header-all-link {
    gap: 5px;
    min-height: 26px;
    padding: 0 3px 0 9px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: color-mix(in srgb, var(--text-soft) 74%, var(--text));
    box-shadow: none;
    font-size: 0.66rem;
    font-weight: 840;
    letter-spacing: -0.015em;
  }

  .sidebar-matches-card--mobile-placement .sidebar-matches-card__header-all-link:hover,
  .sidebar-matches-card--mobile-placement .sidebar-matches-card__header-all-link:focus-visible {
    border-color: transparent;
    background: transparent;
    color: color-mix(in srgb, var(--accent) 46%, var(--text));
    box-shadow: none;
  }

  .sidebar-matches-card--mobile-placement .sidebar-matches-card__header-all-link:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--accent) 14%, transparent);
    outline-offset: 3px;
  }

  .sidebar-matches-card--mobile-placement .sidebar-matches-card__header-all-arrow {
    margin-left: 1px;
    color: color-mix(in srgb, var(--accent) 50%, var(--text-soft));
    font-size: 0.86rem;
    font-weight: 860;
    line-height: 1;
    opacity: 0.86;
    transform: translateY(-0.5px);
    transition:
      color 160ms ease,
      opacity 160ms ease,
      transform 160ms ease;
  }

  .sidebar-matches-card--mobile-placement .sidebar-matches-card__header-all-link:hover .sidebar-matches-card__header-all-arrow,
  .sidebar-matches-card--mobile-placement .sidebar-matches-card__header-all-link:focus-visible .sidebar-matches-card__header-all-arrow {
    color: var(--accent);
    opacity: 1;
    transform: translate(1px, -0.5px);
  }
}

@media (max-width: 640px) {
  .sidebar-matches-card--mobile-placement .sidebar-matches-card__header-all-link {
    min-height: 26px;
    padding-right: 2px;
    padding-left: 7px;
    border-radius: 8px;
    font-size: 0.62rem;
  }
}

@media (max-width: 380px) {
  .sidebar-matches-card--mobile-placement .sidebar-matches-card__header-all-link {
    gap: 4px;
    padding-left: 5px;
    font-size: 0.59rem;
  }
}


/* Mobile matches block: adaptive status/date badges inside match cards. */
@media (max-width: 999.98px) {
  .sidebar-matches-card--mobile-placement .sidebar-match-featured__top {
    grid-template-columns: max-content minmax(0, 1fr) max-content !important;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__status {
    width: auto !important;
    min-width: 0 !important;
    max-width: max-content !important;
    flex: 0 0 auto;
    justify-content: center;
    gap: 4px;
    padding-inline: 6px;
    white-space: nowrap;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__status--live {
    padding-left: 6px;
    padding-right: 7px;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__status--live::before {
    width: 4px;
    height: 4px;
    flex: 0 0 4px;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__status--upcoming,
  .sidebar-matches-card--mobile-placement .sidebar-match-featured__status--finished,
  .sidebar-matches-card--mobile-placement .sidebar-match-featured__status--unknown,
  .sidebar-matches-card--mobile-placement .sidebar-match-featured__status--canceled,
  .sidebar-matches-card--mobile-placement .sidebar-match-featured__status--postponed {
    padding-inline: 7px;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__competition {
    max-width: calc(100% - 78px) !important;
  }
}

@media (max-width: 640px) {
  .sidebar-matches-card--mobile-placement .sidebar-match-featured__status {
    min-height: 17px;
    padding-inline: 5px;
    border-radius: 7px;
    font-size: 0.48rem;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__status--live {
    padding-left: 5px;
    padding-right: 6px;
  }

  .sidebar-matches-card--mobile-placement .sidebar-match-featured__status--upcoming,
  .sidebar-matches-card--mobile-placement .sidebar-match-featured__status--finished,
  .sidebar-matches-card--mobile-placement .sidebar-match-featured__status--unknown,
  .sidebar-matches-card--mobile-placement .sidebar-match-featured__status--canceled,
  .sidebar-matches-card--mobile-placement .sidebar-match-featured__status--postponed {
    padding-inline: 6px;
  }
}

@media (max-width: 380px) {
  .sidebar-matches-card--mobile-placement .sidebar-match-featured__competition {
    max-width: calc(100% - 72px) !important;
  }
}

/* Mobile matches block: keep tournament names visible after adaptive badges. */
@media (max-width: 999.98px) {
  .sidebar-matches-card--mobile-placement .sidebar-matches-card__mobile-rail .sidebar-match-featured__competition {
    position: static;
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: stretch;
    width: 100%;
    max-width: 100% !important;
    min-width: 0;
    text-align: left;
    transform: none;
  }
}

/* /styles/components/site-shell.css */
/* Responsive site shell: header, mobile drawer and bottom dock. */

.hero__avatar,
.hero-nav-brand__avatar {
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  object-fit: contain;
}

/* Residual responsive header refinements extracted from the legacy layer. */
.hero__origin {
  border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
  background: color-mix(in srgb, var(--accent) 4%, transparent);
  color: color-mix(in srgb, var(--accent) 74%, var(--text));
  font-weight: 780;
}

.hero__origin:hover,
.hero__origin:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  color: color-mix(in srgb, var(--accent) 90%, var(--text));
}

.hero__origin-icon,
.hero__origin-icon svg {
  color: currentColor;
}

@media (min-width: 900px) and (max-width: 1180px) {
  .hero__contact {
    display: block;
  }

  .hero__contact-toggle {
    display: inline-flex;
  }
}

@media (min-width: 861px) and (max-width: 980px) {


  .hero__identity {
    min-width: 0;
  }

  .hero__title {
    display: flex;
    max-width: none;
    overflow: visible;
    font-size: 1.04rem;
    text-overflow: clip;
    white-space: nowrap;
  }

  .hero__title-separator,
  .hero__title-game {
    display: inline;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: 0;
    text-transform: none;
  }

  .hero__meta-full {
    display: inline;
    white-space: nowrap;
  }

  .hero__meta-short {
    display: none;
  }
}

@media (max-width: 860px) {
  .hero-mobile-nav {
    justify-content: flex-start;
    gap: clamp(7px, 2vw, 10px);
    overflow: hidden;
  }

  .hero-mobile-nav__item {
    flex: 0 0 auto;
  }

  .hero-mobile-more {
    flex: 0 0 auto;
    margin-left: 0;
  }

  .hero-mobile-more__summary {
    flex: 0 0 auto;
    padding-inline: 2px;
  }

  .hero-mobile-more[hidden] {
    display: none !important;
  }

  .hero-nav-shell.is-fixed .hero-nav-brand {
    position: absolute;
    top: 50%;
    left: 12px;
    max-width: 64px;
    transform: translateY(-50%);
  }




}

@media (max-width: 700px) {
  .hero__title {
    font-weight: 580;
  }

  .hero__meta,
  .hero__meta--tagline {
    font-weight: 620;
  }
}


/* Header: neutral top brand and readable fixed navigation. */
.hero__title-main-accent {
  color: inherit;
}

@media (min-width: 861px) {
  .hero-nav-shell.is-fixed {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(14px, 2vw, 28px);
  }

  .hero-nav-shell.is-fixed .hero-nav-brand {
    display: inline-flex !important;
  }

  .hero-nav-shell.is-fixed .hero-nav--primary {
    display: flex !important;
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
}

@media (min-width: 861px) and (max-width: 1180px) {
  .hero-nav-shell.is-fixed {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 40px;
    padding-inline: 10px;
  }

  .hero-nav-shell.is-fixed .hero-nav--secondary {
    display: none !important;
  }

  .hero-nav-shell.is-fixed .hero-nav--primary {
    gap: clamp(7px, 1.1vw, 13px);
    justify-content: flex-start;
  }

  .hero-nav-shell.is-fixed .hero-nav__item {
    min-height: 38px;
    padding-inline: 2px;
    font-size: 0.8rem;
  }
}

@media (min-width: 861px) and (max-width: 980px) {



  .hero__controls {
    justify-self: end;
  }



}

/* Mobile fixed nav: keep the logo visible while preserving space for tabs. */
@media (max-width: 860px) {
  .hero-nav-shell.is-fixed {
    align-items: center;
  }

  .hero-nav-shell.is-fixed .hero-nav-brand {
    gap: 0;
  }


  .hero-nav-shell.is-fixed .hero-nav-brand__avatar {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 8px;
  }

  .hero-nav-shell.is-fixed .hero-nav--primary,
  .hero-nav-shell.is-fixed .hero-nav--secondary {
    display: none !important;
  }

}

@media (max-width: 860px) {

  .hero-nav-shell.is-fixed .hero-nav-brand {
    display: inline-flex !important;
    flex: 0 0 auto;
    width: auto;
  }

  .hero-nav-shell.is-fixed .hero-nav-brand__avatar {
    display: none;
  }

  .hero-nav-shell.is-fixed .hero-nav-brand span {
    font-weight: 880;
  }

  .hero-nav-shell.is-fixed .hero-mobile-nav {
    justify-self: stretch;
  }
}

@media (max-width: 860px) {
  .hero-nav-shell.is-fixed {
    left: 50%;
    box-sizing: border-box;
    width: min(calc(100% - 18px), var(--fixed-nav-width, 720px));
    max-width: calc(100% - 18px);
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 16px;
    transform: translateX(-50%);
  }

  .hero-nav-shell.is-fixed .hero-nav-brand {
    grid-column: 1;
    align-self: stretch;
    min-width: max-content;
    padding-left: 2px;
  }

  .hero-nav-shell.is-fixed .hero-nav-brand span {
    display: inline-flex !important;
    align-items: center;
    font-size: 0.82rem;
    line-height: 1;
  }

  .hero-nav-shell.is-fixed .hero-mobile-nav {
    grid-column: 2;
    min-width: 0;
    width: 100%;
    padding-left: 68px !important;
    justify-content: flex-start;
    gap: clamp(8px, 2.2vw, 14px);
    overflow-x: auto;
    overflow-y: visible;
  }

  .hero-nav-shell.is-fixed .hero-mobile-nav__item,
  .hero-nav-shell.is-fixed .hero-mobile-more__summary {
    flex: 0 0 auto;
  }
}

@media (min-width: 700px) and (max-width: 860px) {
  .hero-nav-shell.is-fixed {
    top: 8px;
    display: grid !important;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: clamp(10px, 1.6vw, 14px);
    width: min(calc(100% - 28px), var(--fixed-nav-width, 720px));
    max-width: calc(100% - 28px);
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
    box-shadow: 0 8px 22px rgba(20, 35, 61, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .hero-nav-shell.is-fixed .hero-nav-brand {
    display: inline-flex !important;
    grid-column: 1;
    position: static;
    top: auto;
    left: auto;
    align-items: center;
    align-self: center;
    width: auto;
    min-width: max-content;
    max-width: none;
    padding-left: 0;
    overflow: visible;
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
    transform: none;
  }

  .hero-nav-shell.is-fixed .hero-nav-brand__avatar {
    display: none;
  }

  .hero-nav-shell.is-fixed .hero-nav-brand span {
    display: inline !important;
    background: linear-gradient(
      90deg,
      var(--text) 0 48%,
      var(--accent) 48% 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-size: inherit;
    line-height: 1;
  }

  .hero-nav-shell.is-fixed .hero-mobile-nav {
    grid-column: 2;
    width: 100%;
    max-width: 100%;
    padding-left: 0 !important;
    justify-content: space-evenly;
    gap: clamp(4px, 0.8vw, 8px);
    overflow-x: auto;
    overflow-y: visible;
  }

  .hero-nav-shell.is-fixed .hero-mobile-nav__item,
  .hero-nav-shell.is-fixed .hero-mobile-more__summary {
    flex: 0 1 auto;
    min-height: 36px;
    font-size: clamp(0.72rem, 1.55vw, 0.8rem);
  }
}

@media (min-width: 1080px) {
  .hero-nav-shell.is-fixed {
    left: var(--fixed-nav-center, 50%) !important;
    width: fit-content !important;
    max-width: min(var(--fixed-nav-width, 720px), calc(100% - 18px)) !important;
    grid-template-columns: max-content max-content;
    justify-content: center;
    gap: clamp(18px, 1.45vw, 26px);
    padding-inline: clamp(14px, 1.35vw, 20px);
    transform: translateX(-50%) !important;
  }

  .hero-nav-shell.is-fixed .hero-nav-brand {
    grid-column: 1;
    justify-self: auto;
    gap: 7px;
    min-width: 0;
  }

  .hero-nav-shell.is-fixed .hero-nav-brand span {
    font-size: 0.9rem;
  }

  .hero-nav-shell.is-fixed .hero-nav--primary {
    grid-column: 2;
    width: auto;
    justify-self: auto;
    justify-content: flex-start;
    gap: clamp(8px, 0.72vw, 13px);
  }

  .hero-nav-shell.is-fixed .hero-nav__item {
    font-size: clamp(0.76rem, 0.72vw, 0.84rem);
  }
}

@media (min-width: 1080px) and (max-width: 1180px) {
  .hero-nav-shell.is-fixed {
    gap: 12px;
  }

  .hero-nav-shell.is-fixed .hero-nav--primary {
    gap: clamp(10px, 1vw, 12px);
  }
}

@media (min-width: 981px) and (max-width: 1079.98px) {
  .hero-nav-shell.is-fixed {
    left: var(--fixed-nav-center, 50%) !important;
    width: fit-content !important;
    max-width: min(var(--fixed-nav-width, 720px), calc(100% - 18px)) !important;
    grid-template-columns: max-content max-content;
    justify-content: center;
    gap: 12px;
    padding-inline: 14px;
    transform: translateX(-50%) !important;
  }

  .hero-nav-shell.is-fixed .hero-nav-brand {
    grid-column: 1;
    justify-self: auto;
    gap: 7px;
    min-width: 0;
  }

  .hero-nav-shell.is-fixed .hero-nav-brand span {
    font-size: 0.88rem;
  }

  .hero-nav-shell.is-fixed .hero-nav--primary {
    grid-column: 2;
    width: auto;
    justify-self: auto;
    justify-content: flex-start;
    gap: clamp(8px, 0.85vw, 10px);
  }

  .hero-nav-shell.is-fixed .hero-nav__item {
    min-height: 36px;
    font-size: 0.78rem;
  }
}

/* Around 970px keep desktop navigation compact instead of splitting it into a second row. */
@media (min-width: 861px) and (max-width: 980px) {
  .hero__top {
    column-gap: 8px;
    row-gap: 0;
  }

  .hero__identity,
  .hero__controls,
  .hero-nav-shell:not(.is-fixed) {
    grid-area: auto;
  }



  .hero-nav-shell:not(.is-fixed) {
    width: max-content;
    max-width: 100%;
    min-height: 36px;
    justify-self: center;
    padding-top: 0;
    border-top: 0;
  }

  .hero-nav-shell:not(.is-fixed) .hero-nav--primary {
    width: auto;
    justify-content: center;
    gap: clamp(5px, 0.7vw, 8px);
  }

  .hero-nav-shell:not(.is-fixed) .hero-nav__item {
    min-height: 34px;
    padding-inline: 2px;
    font-size: 0.76rem;
  }

  .hero-nav-shell.is-fixed {
    left: 50% !important;
    width: fit-content !important;
    max-width: calc(100% - 18px) !important;
    grid-template-columns: max-content max-content;
    justify-content: center;
    gap: 12px;
    padding-inline: 14px;
    transform: translateX(-50%) !important;
  }

  .hero-nav-shell.is-fixed .hero-nav-brand {
    grid-column: 1;
    justify-self: auto;
    gap: 7px;
    min-width: 0;
  }

  .hero-nav-shell.is-fixed .hero-nav-brand span {
    font-size: 0.88rem;
  }

  .hero-nav-shell.is-fixed .hero-nav--primary {
    grid-column: 2;
    width: auto;
    justify-self: auto;
    justify-content: flex-start;
    gap: 5px;
  }

  .hero-nav-shell.is-fixed .hero-nav__item {
    min-height: 36px;
    font-size: 0.72rem;
  }
}

/* Keep the 845px tablet header in the same compact desktop rhythm. */
@media (min-width: 821px) and (max-width: 860px) {
  .hero__top {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) auto;
    grid-template-areas: none;
    align-items: center;
    gap: 6px;
    min-height: 48px;
    padding: 6px 8px;
  }

  .hero__identity,
  .hero__controls,
  .hero-nav-shell:not(.is-fixed) {
    grid-area: auto;
  }

  .hero__identity {
    grid-column: 1;
    grid-row: 1;
    width: max-content;
    max-width: 320px;
    justify-self: start;
  }

  .hero__copy {
    max-width: 270px;
  }

  .hero__title {
    display: flex;
    max-width: 270px;
    overflow: visible;
    font-size: 0.94rem;
    text-overflow: clip;
    white-space: nowrap;
  }

  .hero__title-separator,
  .hero__title-game {
    display: inline;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: 0;
    text-transform: none;
  }

  .hero__meta--tagline {
    display: block;
    max-width: 270px;
    overflow: visible;
    font-size: 0.65rem;
    text-overflow: clip;
    white-space: nowrap;
  }

  .hero__meta-full {
    display: inline;
  }

  .hero__meta-short {
    display: none;
  }

  .hero__controls {
    display: flex;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    width: auto;
    min-width: 0;
  }

  .hero__actions {
    order: initial;
    width: auto;
  }

  .hero-nav-shell:not(.is-fixed) {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    width: max-content;
    max-width: 100%;
    min-height: 36px;
    justify-self: center;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .hero-nav-shell .hero-nav-brand,
  .hero-nav-shell .hero-nav--secondary,
  .hero-nav-shell .hero-mobile-nav {
    display: none !important;
  }

  .hero-nav-shell:not(.is-fixed) .hero-nav--primary {
    display: flex !important;
    width: auto;
    justify-content: center;
    gap: 5px;
  }

  .hero-nav-shell:not(.is-fixed) .hero-nav__item {
    min-height: 34px;
    padding-inline: 1px;
    font-size: 0.72rem;
  }

  .hero-nav-shell.is-fixed {
    top: 0;
    left: 50% !important;
    display: grid !important;
    width: fit-content !important;
    max-width: calc(100% - 18px) !important;
    grid-template-columns: max-content max-content;
    justify-content: center;
    gap: 12px;
    padding-inline: 14px;
    border-top: 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    transform: translateX(-50%) !important;
  }

  .hero-nav-shell.is-fixed .hero-nav-brand {
    display: inline-flex !important;
    grid-column: 1;
    justify-self: auto;
    gap: 7px;
    min-width: 0;
  }

  .hero-nav-shell.is-fixed .hero-nav-brand span {
    display: inline !important;
    background: none;
    color: var(--text);
    font-size: 0.88rem;
  }

  .hero-nav-shell.is-fixed .hero-nav-brand__avatar {
    display: block;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 8px;
  }

  .hero-nav-shell.is-fixed .hero-nav--primary {
    display: flex !important;
    grid-column: 2;
    width: auto;
    justify-self: auto;
    justify-content: flex-start;
    gap: 5px;
  }

  .hero-nav-shell.is-fixed .hero-nav__item {
    min-height: 36px;
    padding-inline: 2px;
    font-size: 0.72rem;
  }
}

/* Disabled nav affordance across compact header states. */
.hero-nav-shell .hero-nav__item--disabled,
.hero-nav-shell .hero-nav__item--disabled:hover,
.hero-nav-shell .hero-nav__item--disabled:focus-visible {
  position: relative;
  background: transparent;
  color: color-mix(in srgb, var(--text-soft) 72%, var(--surface-strong)) !important;
  opacity: 1;
  cursor: not-allowed;
  overflow: visible;
  pointer-events: auto;
}

.hero-nav-shell.is-fixed,
.hero-nav-shell.is-fixed .hero-nav,
.hero-nav-shell.is-fixed .hero-nav--primary {
  overflow: visible;
}

.hero-nav-shell .hero-nav__item--disabled::after {
  background: transparent !important;
}

.hero-nav-shell .hero-nav__item--disabled::before {
  display: none;
  content: none;
}

.hero-nav-shell .hero-nav__item--disabled:hover::before,
.hero-nav-shell .hero-nav__item--disabled:focus-visible::before {
  display: none;
}

/* Reserved section notice: calm, editorial treatment for the primary navigation. */
.reaction-toast--header {
  gap: 7px;
  max-width: min(320px, calc(100vw - 24px));
  padding: 10px 14px;
  border-color: color-mix(in srgb, var(--line) 92%, var(--text-soft));
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-strong) 98%, var(--surface-soft));
  color: color-mix(in srgb, var(--text) 88%, var(--text-soft));
  box-shadow: 0 10px 28px rgba(25, 36, 57, 0.12), 0 2px 7px rgba(25, 36, 57, 0.06);
  backdrop-filter: blur(12px);
}

.reaction-toast--header .reaction-toast__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.92rem;
  line-height: 1;
}

.reaction-toast--header .reaction-toast__message {
  font-size: 0.8rem;
  font-weight: 690;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

/* Player profile notice: compact product feedback without decorative emoji. */
.reaction-toast--player {
  gap: 7px;
  max-width: min(390px, calc(100vw - 24px));
  padding: 11px 14px;
  border-color: color-mix(in srgb, var(--line) 92%, var(--text-soft));
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-strong) 98%, var(--surface-soft));
  color: color-mix(in srgb, var(--text) 90%, var(--text-soft));
  box-shadow: 0 12px 30px rgb(25 36 57 / 11%), 0 2px 7px rgb(25 36 57 / 5%);
  backdrop-filter: blur(12px);
}

.reaction-toast--player .reaction-toast__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.92rem;
  line-height: 1;
}

.reaction-toast--player .reaction-toast__message {
  font-size: 0.78rem;
  font-weight: 690;
  line-height: 1.38;
  letter-spacing: -0.006em;
}

/* 640-820px tablet header: keep two-row top nav centered and match fixed item sizing to 875px. */
@media (min-width: 640px) and (max-width: 820px) {
  .hero__contact {
    display: block !important;
  }

  .hero__contact-toggle {
    display: inline-flex !important;
  }

  .hero-nav-shell:not(.is-fixed) {
    display: block;
    width: 100%;
    padding-inline: 12px;
  }

  .hero-nav-shell:not(.is-fixed) .hero-mobile-nav {
    justify-content: center;
    gap: clamp(7px, 1.7vw, 10px);
  }

  .hero-nav-shell:not(.is-fixed) .hero-mobile-more,
  .hero-nav-shell.is-fixed .hero-mobile-more {
    margin-left: 0;
  }

  .hero-nav-shell.is-fixed {
    top: 0;
    left: 50% !important;
    display: grid !important;
    width: fit-content !important;
    max-width: calc(100% - 18px) !important;
    grid-template-columns: max-content max-content;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 36px;
    padding-inline: 14px;
    border-top: 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    transform: translateX(-50%) !important;
  }

  .hero-nav-shell.is-fixed .hero-nav-brand {
    position: static;
    display: inline-flex !important;
    max-width: none;
    overflow: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
  }

  .hero-nav-shell.is-fixed .hero-nav-brand__avatar {
    display: none;
  }

  .hero-nav-shell.is-fixed .hero-nav-brand span {
    display: inline;
    font-size: 0.88rem;
  }

  .hero-nav-shell.is-fixed .hero-mobile-nav {
    width: auto;
    min-height: 36px;
    padding-left: 0 !important;
    justify-content: center;
    gap: 5px;
    overflow: visible;
  }

  .hero-mobile-nav__item,
  .hero-mobile-more__summary {
    min-height: 36px;
    padding-inline: 2px;
    color: color-mix(in srgb, var(--text-soft) 70%, var(--text));
    font-size: 0.72rem;
    font-weight: 840;
  }

  .hero-mobile-nav__item--disabled,
  .hero-mobile-nav__item--disabled:hover,
  .hero-mobile-nav__item--disabled:focus-visible {
    position: relative;
    color: color-mix(in srgb, var(--text-soft) 72%, var(--surface-strong));
    opacity: 1;
    cursor: not-allowed;
    overflow: visible;
  }

  .hero-mobile-nav__item--disabled::before {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 9px);
    left: 50%;
    z-index: 720;
    width: max-content;
    max-width: 210px;
    padding: 8px 10px;
    border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--surface-strong) 98%, var(--surface-muted));
    color: color-mix(in srgb, var(--text-soft) 82%, var(--text));
    box-shadow: 0 16px 38px rgba(20, 35, 61, 0.18);
    font-size: 0.78rem;
    font-weight: 760;
    line-height: 1.25;
    opacity: 0;
    pointer-events: none;
    text-align: center;
    transform: translate(-50%, -4px);
    transition:
      opacity 140ms ease,
      transform 140ms ease;
    white-space: normal;
  }

  .hero-mobile-nav__item--disabled:hover::before,
  .hero-mobile-nav__item--disabled:focus-visible::before {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* 400px mobile header: center visible items and rely on "More" instead of horizontal scroll. */
@media (max-width: 480px) {
  .hero-nav-shell,
  .hero-nav-shell.is-fixed {
    overflow: visible;
  }

  .hero-nav-shell:not(.is-fixed) {
    padding-inline: 10px;
  }

  .hero-nav-shell:not(.is-fixed) .hero-mobile-nav {
    justify-content: center;
    overflow: visible;
  }

  .hero-nav-shell.is-fixed {
    top: 0;
    display: block !important;
    width: min(calc(100% - 18px), var(--container));
    max-width: calc(100% - 18px);
    padding-inline: 10px;
  }

  .hero-nav-shell.is-fixed .hero-mobile-nav {
    display: flex;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    gap: clamp(6px, 2vw, 9px);
    overflow: visible;
  }

  .hero-mobile-nav__item,
  .hero-mobile-more__summary {
    flex: 0 0 auto;
  }

  .hero-mobile-more {
    flex: 0 0 auto;
    margin-left: 0;
  }

  .hero-mobile-more[hidden] {
    display: none !important;
  }

  .hero-mobile-more__panel {
    top: calc(100% + 8px);
    right: 0;
    z-index: 760;
    max-width: min(220px, calc(100vw - 28px));
  }
}

/* iOS Safari repaint guard: fixed translucent layers can flash while the browser chrome settles. */
@media (max-width: 640px) {
  body {
    min-height: 100svh;
  }

  .hero-nav-shell.is-fixed {
    background: var(--surface-strong) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translate3d(-50%, 0, 0) !important;
    -webkit-transform: translate3d(-50%, 0, 0) !important;
  }
}

/* 509px mobile header: keep the "More" dropdown above the feed instead of clipped in the nav row. */
@media (min-width: 481px) and (max-width: 639.98px) {
  .hero__contact {
    display: block !important;
  }

  .hero__contact-toggle {
    display: inline-flex !important;
  }

  .hero-nav-shell:not(.is-fixed) {
    padding-inline: 10px;
  }

  .hero-nav-shell:not(.is-fixed) .hero-mobile-nav {
    justify-content: center;
    overflow: visible;
  }

  .hero-nav-shell:not(.is-fixed) .hero-mobile-more {
    margin-left: 0;
  }

  .hero-nav-shell.is-fixed {
    z-index: 780;
    overflow: visible;
  }

  .hero-nav-shell.is-fixed .hero-mobile-nav {
    overflow: visible !important;
  }

  .hero-nav-shell.is-fixed .hero-mobile-more {
    position: relative;
    z-index: 781;
  }

  .hero-nav-shell.is-fixed .hero-mobile-more__panel {
    top: calc(100% + 8px);
    right: 0;
    z-index: 790;
    max-width: min(220px, calc(100vw - 28px));
  }
}

/* Pre-compact-desktop fixed nav keeps the floating air gap used on wider screens. */
@media (min-width: 981px) and (max-width: 1079.98px) {
  .hero-nav-shell.is-fixed {
    top: 8px;
  }
}

/* 358px mobile nav must keep unavailable sections available through "More". */
@media (max-width: 360px) {
  .hero-mobile-nav__item--disabled {
    display: inline-flex;
  }

  .hero-mobile-more__item--disabled {
    display: flex;
  }
}

/* Mobile app chrome: top wordmark menu and bottom dock. */
.hero-wordmark,
.mobile-dock {
  display: none;
}

@media (max-width: 860px) {
  :root {
    --mobile-dock-height: 52px;
    --mobile-dock-scale: 1;
  }

  :root.is-mobile-scrolling-down {
    --mobile-dock-height: 52px;
  }

  :root.is-mobile-scrolling-up {
    --mobile-dock-height: 52px;
  }



  .app-shell {
    width: min(calc(100% - 20px), var(--container));
    margin-top: 0;
  }

  .hero {
    position: fixed !important;
    top: 0;
    right: 0;
    left: 0;
    z-index: 780;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    overflow: visible;
    border: 0;
    border-radius: 0;
    transform: translate3d(0, 0, 0);
    transform-origin: top center;
  }







  .hero__top {
    display: grid !important;
    grid-template-areas:
      "menu brand actions"
      "search search search";
    align-items: center;
    gap: 0 8px;
    border-bottom: 0;
  }



  .hero-menu--mobile {
    position: relative;
    display: block;
    grid-area: menu;
    justify-self: start;
  }

  .hero-menu__toggle {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }









  .hero-menu__panel {
    right: auto;
    padding: 8px;
  }

  .hero-menu:not([open]) .hero-menu__panel {
    display: none !important;
  }

  .hero-menu__item {
    justify-content: flex-start;
  }

  .hero__identity {
    grid-area: brand;
    flex: none !important;
    justify-content: center;
    gap: 0 !important;
  }

  .hero__avatar,
  .hero__copy {
    display: none !important;
  }

  .hero-wordmark {
    display: block;
    line-height: 0;
  }



  .hero-wordmark__image,
  .mobile-dock__wordmark__image {
    display: block;
    width: 100%;
    height: auto;
  }

  .hero-wordmark__image--dark,
  .mobile-dock__wordmark__image--dark {
    display: none;
  }

  :root[data-theme="dark"] .hero-wordmark__image--light,
  :root[data-theme="dark"] .mobile-dock__wordmark__image--light {
    display: none;
  }

  :root[data-theme="dark"] .hero-wordmark__image--dark,
  :root[data-theme="dark"] .mobile-dock__wordmark__image--dark {
    display: block;
  }

  .hero__controls {
    display: contents !important;
  }

  .hero__actions {
    display: flex !important;
    grid-area: actions;
    justify-content: flex-end;
    gap: 0 !important;
  }

  .hero__contact,
  .hero__origin {
    display: none !important;
  }

  .hero__search-toggle {
    display: inline-flex !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }







  .hero:not(.is-search-open) .search {
    display: none !important;
  }

  .hero.is-search-open .search {
    position: relative !important;
    inset: auto !important;
    z-index: 2;
    display: block !important;
    grid-area: search;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 5px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .hero.is-search-open .search__input {
    background: color-mix(in srgb, var(--surface-muted) 78%, var(--surface-strong));
    font-size: 16px;
  }

  .hero-nav-shell,
  .hero-nav-shell.is-fixed {
    display: none !important;
  }

  .hero-mobile-nav {
    display: none !important;
  }

  .hero-mobile-more {
    display: none !important;
  }

  .mobile-dock {
    position: fixed;
    left: 50%;
    z-index: 760;
    display: grid;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-50%, calc(100% + 28px), 0) scale(0.94);
    transform-origin: bottom center;
  }



  :root.is-mobile-dock-visible .mobile-dock {
    opacity: 1;
    pointer-events: auto;
  }

  :root.is-mobile-at-top .mobile-dock {
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-50%, calc(100% + 28px), 0) scale(0.94);
  }

  .mobile-dock__item,
  .mobile-dock__brand {
    color: color-mix(in srgb, var(--text-soft) 84%, var(--text));
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-dock__item {
    position: relative;
    font-size: 0.67rem;
    font-weight: 760;
  }

  .mobile-dock__item[aria-current="page"] {
    color: var(--accent);
  }





  .mobile-dock__item--with-dot::after {
    content: "";
    position: absolute;
    border: 2px solid var(--surface-strong);
    border-radius: 999px;
    background: #1265ff;
  }

  .mobile-dock__brand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }





  .scroll-top {
    right: 16px;
    z-index: 740;
  }
}

@media (max-width: 380px) {
  .app-shell {
    width: min(calc(100% - 16px), var(--container));
  }







  .mobile-dock__item {
    font-size: 0.65rem;
  }


}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .mobile-dock,
  .mobile-dock__item,
  .mobile-dock__icon svg,
  .mobile-dock__coins-glyph,
  .mobile-dock__item > span:last-child,
  .mobile-dock__brand,
  .mobile-dock__wordmark {
    transition: none !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .mobile-dock {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  :root[data-theme="dark"] .mobile-dock {
    background: rgba(12, 17, 25, 0.97) !important;
  }
}

/* Mobile top header: compact production polish. */
@media (max-width: 860px) {
  :root {
    --mobile-header-action-size: 42px;
    --mobile-header-action-radius: 12px;
    --mobile-header-graphite: color-mix(in srgb, var(--text) 88%, var(--text-soft));
    --mobile-header-graphite-soft: color-mix(in srgb, var(--text-soft) 76%, var(--text));
    --mobile-header-hover-bg: color-mix(in srgb, var(--text) 5%, transparent);
  }

  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .app-shell {
    padding-top: calc(50px + env(safe-area-inset-top));
  }

  .page-home .app-shell {
    margin-top: 0;
  }



  .hero {
    border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(250, 252, 255, 0.955)),
      var(--surface-strong);
    box-shadow:
      0 7px 18px rgba(29, 44, 68, 0.06),
      0 1px 0 rgba(255, 255, 255, 0.8) inset;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    transition:
      box-shadow 220ms ease,
      background-color 220ms ease,
      border-color 220ms ease,
      backdrop-filter 220ms ease;
  }

  :root[data-theme="dark"] .hero {
    border-bottom-color: color-mix(in srgb, var(--line) 84%, transparent);
    background:
      linear-gradient(180deg, rgba(11, 15, 22, 0.975), rgba(11, 15, 22, 0.94)),
      #0b0f15;
    box-shadow:
      0 10px 26px rgba(0, 0, 0, 0.32),
      0 1px 0 rgba(255, 255, 255, 0.07) inset;
  }

  :root.is-mobile-header-compact .hero,
  :root.is-mobile-header-compact.is-mobile-scrolling-up .hero {
    border-bottom-color: color-mix(in srgb, var(--line) 82%, transparent);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(250, 252, 255, 0.82)),
      var(--surface-strong);
    box-shadow:
      0 8px 22px rgba(29, 44, 68, 0.085),
      0 1px 0 rgba(255, 255, 255, 0.72) inset;
    backdrop-filter: blur(14px) saturate(1.12);
    -webkit-backdrop-filter: blur(14px) saturate(1.12);
    opacity: var(--mobile-header-opacity, 1);
    pointer-events: auto;
    transform: translate3d(0, var(--mobile-header-translate, 0%), 0);
  }

  :root[data-theme="dark"].is-mobile-header-compact .hero,
  :root[data-theme="dark"].is-mobile-header-compact.is-mobile-scrolling-up .hero {
    background:
      linear-gradient(180deg, rgba(11, 15, 22, 0.9), rgba(11, 15, 22, 0.82)),
      #0b0f15;
    box-shadow:
      0 12px 30px rgba(0, 0, 0, 0.38),
      0 1px 0 rgba(255, 255, 255, 0.075) inset;
  }

  :root.is-mobile-header-hidden .hero:not(.is-search-open) {
    visibility: hidden;
    opacity: var(--mobile-header-opacity, 0);
    pointer-events: none;
    transform: translate3d(0, var(--mobile-header-translate, -108%), 0);
    transition: visibility 0s linear;
  }

  :root.is-mobile-main-menu-open .hero,
  :root.is-mobile-chrome-overlay .hero.is-search-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    transition-delay: 0s;
  }

  .hero__top {
    position: relative;
    grid-template-columns: calc(var(--mobile-header-action-size) - var(--mobile-header-action-shrink, 0px)) minmax(0, 1fr) calc(var(--mobile-header-action-size) - var(--mobile-header-action-shrink, 0px));
    min-height: calc(var(--mobile-header-content-height, 50px) + env(safe-area-inset-top)) !important;
    padding: calc(var(--mobile-header-edge-padding, 3px) + env(safe-area-inset-top)) 15px var(--mobile-header-edge-padding, 3px) !important;
    column-gap: 8px;
    transition: none;
  }

  :root.is-mobile-header-compact .hero__top,
  :root.is-mobile-header-compact.is-mobile-scrolling-up .hero__top {
    min-height: calc(var(--mobile-header-content-height, 40px) + env(safe-area-inset-top)) !important;
    padding-top: calc(var(--mobile-header-edge-padding, 1px) + env(safe-area-inset-top)) !important;
    padding-bottom: var(--mobile-header-edge-padding, 1px) !important;
  }

  .hero-menu--mobile,
  .hero__actions {
    z-index: 4;
  }

  .hero-menu__toggle,
  .hero__search-toggle {
    width: calc(var(--mobile-header-action-size) - var(--mobile-header-action-shrink, 0px)) !important;
    height: calc(var(--mobile-header-action-size) - var(--mobile-header-action-shrink, 0px)) !important;
    min-height: calc(var(--mobile-header-action-size) - var(--mobile-header-action-shrink, 0px)) !important;
    border-radius: var(--mobile-header-action-radius) !important;
    color: var(--mobile-header-graphite) !important;
    transition:
      background-color 150ms ease,
      color 150ms ease,
      transform 150ms ease;
  }

  .hero-menu__toggle:hover,
  .hero-menu__toggle:focus-visible,
  .hero-menu[open] .hero-menu__toggle,
  .hero__search-toggle:hover,
  .hero__search-toggle:focus-visible,
  .hero.is-search-open .hero__search-toggle {
    background: var(--mobile-header-hover-bg) !important;
    color: var(--mobile-header-graphite) !important;
    transform: none;
  }

  .hero-menu__toggle:focus-visible,
  .hero__search-toggle:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--text-soft) 34%, transparent);
    outline-offset: 2px;
  }

  .hero-menu__icon {
    width: 19px;
    height: 14px;
    color: currentColor;
  }

  .hero-menu__icon::before,
  .hero-menu__icon::after,
  .hero-menu__icon {
    border-top-width: 2px;
  }

  .hero-menu__icon::before,
  .hero-menu__icon::after {
    width: 19px;
  }





  .hero__actions {
    width: calc(var(--mobile-header-action-size) - var(--mobile-header-action-shrink, 0px)) !important;
  }

  .hero__identity {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    z-index: 2;
    transform: translateZ(0);
    transition: none;
  }

  .hero-wordmark {
    transition: none;
  }

  :root.is-mobile-header-compact .hero-wordmark,
  :root.is-mobile-header-compact.is-mobile-scrolling-up .hero-wordmark {
    width: calc(var(--mobile-header-wordmark-width) - var(--mobile-header-wordmark-shrink, 10px));
    transform: translateY(0);
  }

  .hero.is-search-open .search {
    margin-top: 4px !important;
  }

  .hero.is-search-open .search__input {
    height: 36px !important;
    min-height: 36px !important;
    border-radius: 13px;
  }
}

@media (max-width: 380px) {
  :root {
    --mobile-header-action-size: 40px;
    --mobile-header-action-radius: 11px;
  }

  .hero__top {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }



  .hero-menu__icon,
  .hero-menu__icon::before,
  .hero-menu__icon::after {
    width: 18px;
  }
}

/* Mobile header/dock final spacing correction. */
@media (max-width: 860px) {
  :root {
    --mobile-header-wordmark-width: min(66px, 21.5vw);
    --mobile-header-wordmark-compact-width: min(61px, 20vw);
  }

  .page-home .main-shell {
    margin-top: 10px;
  }

  .hero__identity {
    width: calc(var(--mobile-header-wordmark-width) - var(--mobile-header-wordmark-shrink, 0px));
    max-width: calc(var(--mobile-header-wordmark-width) - var(--mobile-header-wordmark-shrink, 0px)) !important;
  }

  .hero-wordmark {
    width: calc(var(--mobile-header-wordmark-width) - var(--mobile-header-wordmark-shrink, 0px));
  }

  .hero__search-toggle-icon,
  .hero__search-toggle-icon svg {
    width: 24px !important;
    height: 24px !important;
  }

  .hero__search-toggle-icon svg {
    stroke-width: 2.3;
  }





  .mobile-dock__icon,
  .mobile-dock__icon svg {
    align-self: end;
  }

  .mobile-dock__item > span:last-child {
    align-self: start;
  }







  .scroll-top {
    bottom: calc(86px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 380px) {
  :root {
    --mobile-header-wordmark-width: min(61px, 20.5vw);
    --mobile-header-wordmark-compact-width: min(57px, 19vw);
  }

  .page-home .main-shell {
    margin-top: 9px;
  }

  .hero__search-toggle-icon,
  .hero__search-toggle-icon svg {
    width: 22px !important;
    height: 22px !important;
  }





  .mobile-dock__brand {
    transform: translateY(-4px);
  }


}

/* Mobile dock glass/lift tuning: keep the bottom navigation centered and more alive after scroll. */
@media (max-width: 860px) {
  :root.is-mobile-scrolling-down,
  :root.is-mobile-scrolling-up {
    --mobile-dock-scale: 1;
  }

  .mobile-dock {
    border-color: rgba(203, 213, 225, 0.62);
    transition:
      background 220ms ease,
      box-shadow 220ms ease,
      border-color 220ms ease;
  }

  .mobile-dock::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
  }







  .mobile-dock__item {
    transition:
      background-color 180ms ease,
      color 180ms ease,
      transform 180ms ease;
  }





  .mobile-dock__brand {
    border-color: rgba(203, 213, 225, 0.72);
    transition:
      box-shadow 220ms ease,
      background 220ms ease;
  }

  :root[data-theme="dark"] .mobile-dock__brand {
    box-shadow:
      0 16px 34px rgba(0, 0, 0, 0.46),
      0 1px 0 rgba(255, 255, 255, 0.08) inset;
  }




}


/* Mobile dock alignment final pass: center each item as a whole and keep the brand circle balanced. */
@media (max-width: 860px) {


  .mobile-dock__item {
    flex-direction: column;
    gap: 3px;
  }









  .mobile-dock__brand {
    top: auto;
  }




}

@media (max-width: 380px) {
  .mobile-dock {
    height: 56px;
    padding: 5px 8px;
  }

  .mobile-dock__item {
    gap: 2px;
    padding-bottom: 1px;
  }

  .mobile-dock__icon,
  .mobile-dock__icon svg {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  .mobile-dock__brand {
    width: 64px;
    height: 64px;
  }


}

/* Mobile dock rebuild: stable glass capsule, vertically centered items, balanced center brand. */
@media (max-width: 860px) {
  .mobile-dock {
    --dock-rebuild-height: var(--mobile-dock-current-height, 62px);
    --dock-rebuild-brand: var(--mobile-dock-current-brand, 72px);
    --dock-rebuild-side-item: var(--mobile-dock-current-item, 54px);
    --dock-rebuild-icon: var(--mobile-dock-current-icon, 22px);
    --dock-rebuild-center-track: var(--mobile-dock-current-center-track, 74px);
    --dock-rebuild-inline-padding: var(--mobile-dock-current-padding, 10px);
    --dock-rebuild-inline-gutters: var(--mobile-dock-current-gutters, 20px);
    bottom: calc(18px + env(safe-area-inset-bottom));
    width: min(calc(100% - 24px), var(--mobile-dock-current-width, 360px));
    height: var(--dock-rebuild-height);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) var(--dock-rebuild-center-track) minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    justify-items: center;
    gap: 0;
    overflow: visible;
    padding: 0 var(--dock-rebuild-inline-padding);
    border: 1px solid rgba(203, 213, 225, 0.68);
    border-radius: 999px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 253, 0.68)),
      rgba(255, 255, 255, 0.62);
    box-shadow:
      0 18px 48px rgba(31, 41, 55, 0.17),
      0 1px 0 rgba(255, 255, 255, 0.86) inset;
    backdrop-filter: blur(18px) saturate(1.28);
    -webkit-backdrop-filter: blur(18px) saturate(1.28);
  }

  .mobile-dock::before {
    inset: 1px;
    border-radius: inherit;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.06));
  }

  .mobile-dock::after {
    content: "";
    position: absolute;
    top: 50%;
    right: calc(var(--dock-rebuild-inline-padding) + (100% - var(--dock-rebuild-inline-gutters) - var(--dock-rebuild-center-track)) / 4);
    left: calc(var(--dock-rebuild-inline-padding) + (100% - var(--dock-rebuild-inline-gutters) - var(--dock-rebuild-center-track)) / 4);
    z-index: 0;
    height: var(--mobile-dock-current-divider-height, 30px);
    pointer-events: none;
    border-right: 1px solid rgba(148, 163, 184, 0.28);
    border-left: 1px solid rgba(148, 163, 184, 0.28);
    transform: translateY(-50%);
    transition: border-color 180ms ease;
  }

  :root[data-theme="dark"] .mobile-dock {
    border-color: rgba(255, 255, 255, 0.12);
    background:
      linear-gradient(180deg, rgba(26, 32, 43, 0.78), rgba(12, 17, 25, 0.68)),
      rgba(10, 15, 22, 0.66);
    box-shadow:
      0 22px 54px rgba(0, 0, 0, 0.46),
      0 1px 0 rgba(255, 255, 255, 0.1) inset;
  }

  :root[data-theme="dark"] .mobile-dock::after {
    border-color: rgba(203, 213, 225, 0.18);
  }

  :root.is-mobile-dock-visible .mobile-dock {
    opacity: var(--mobile-dock-opacity, 1);
    transform: translate3d(-50%, var(--mobile-dock-offset, 0px), 0) scale(var(--mobile-dock-scale));
  }

  :root.is-mobile-dock-visible.is-mobile-scrolling-down .mobile-dock {
    opacity: var(--mobile-dock-opacity, 1);
    transform: translate3d(-50%, var(--mobile-dock-offset, 0px), 0) scale(var(--mobile-dock-scale));
  }

  :root.is-mobile-dock-visible.is-mobile-scrolling-up .mobile-dock {
    opacity: var(--mobile-dock-opacity, 1);
    transform: translate3d(-50%, var(--mobile-dock-offset, 0px), 0) scale(var(--mobile-dock-scale));
  }

  .mobile-dock__item {
    display: grid;
    width: var(--dock-rebuild-side-item);
    height: var(--mobile-dock-current-item-height, 50px);
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
    grid-template-rows: 24px 15px;
    align-content: center;
    align-items: center;
    justify-content: center;
    justify-items: center;
    row-gap: 2px;
    padding: 0;
    margin: 0;
    border-radius: 19px;
    line-height: 1;
    transform: none;
    z-index: 1;
  }



  .mobile-dock__item:active {
    transform: scale(0.965);
  }

  .mobile-dock__icon {
    display: inline-flex;
    width: var(--dock-rebuild-icon);
    height: 24px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    line-height: 0;
  }

  .mobile-dock__icon svg {
    display: block;
    width: var(--dock-rebuild-icon);
    height: var(--dock-rebuild-icon);
    flex: 0 0 var(--dock-rebuild-icon);
    transition: none;
  }

  .mobile-dock__coins-glyph {
    display: block;
    width: var(--dock-rebuild-icon);
    height: var(--dock-rebuild-icon);
    background: currentColor;
    -webkit-mask: url("/assets/cs3bet/tabler-coins-menu-icon.svg") center / contain no-repeat;
    mask: url("/assets/cs3bet/tabler-coins-menu-icon.svg") center / contain no-repeat;
    transition: none;
  }

  .mobile-dock__item > span:last-child {
    display: block;
    height: 15px;
    min-height: 15px;
    max-height: 15px;
    line-height: 15px;
    font-size: var(--mobile-dock-current-label-size, 11px);
    font-weight: 780;
    letter-spacing: -0.01em;
    white-space: nowrap;
    opacity: 1;
    transform: translateY(0);
    transition: none;
  }

  .mobile-dock__item--with-dot::after {
    top: 8px;
    right: calc(50% - 18px);
    width: 7px;
    height: 7px;
    border-width: 2px;
  }

  .mobile-dock__brand {
    grid-column: 3;
    align-self: center;
    justify-self: center;
    width: var(--dock-rebuild-brand);
    height: var(--dock-rebuild-brand);
    min-width: var(--dock-rebuild-brand);
    min-height: var(--dock-rebuild-brand);
    box-sizing: border-box;
    border: 1px solid rgba(203, 213, 225, 0.74);
    border-radius: 999px;
    background:
      radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.96), rgba(247, 249, 253, 0.9) 60%, rgba(232, 238, 247, 0.8)),
      rgba(255, 255, 255, 0.76);
    box-shadow:
      0 15px 34px rgba(31, 41, 55, 0.17),
      0 1px 0 rgba(255, 255, 255, 0.9) inset;
    transform: translate3d(0, 0, 0);
    z-index: 1;
  }

  .mobile-dock__brand:active {
    transform: translate3d(0, 0, 0) scale(0.965);
  }

  :root[data-theme="dark"] .mobile-dock__brand {
    border-color: rgba(255, 255, 255, 0.14);
    background:
      radial-gradient(circle at 50% 22%, rgba(36, 43, 56, 0.94), rgba(16, 22, 32, 0.88)),
      rgba(12, 17, 25, 0.76);
  }

  .mobile-dock__wordmark {
    display: block;
    width: var(--mobile-dock-current-wordmark, 43px);
    line-height: 0;
    transform: none;
    transition: none;
  }
}

@media (max-width: 380px) {
  .mobile-dock {
    --dock-rebuild-height: var(--mobile-dock-current-height, 60px);
    --dock-rebuild-brand: var(--mobile-dock-current-brand, 68px);
    --dock-rebuild-side-item: var(--mobile-dock-current-item, 51px);
    --dock-rebuild-icon: var(--mobile-dock-current-icon, 21px);
    --dock-rebuild-center-track: var(--mobile-dock-current-center-track, 68px);
    --dock-rebuild-inline-padding: var(--mobile-dock-current-padding, 8px);
    --dock-rebuild-inline-gutters: var(--mobile-dock-current-gutters, 16px);
    width: min(calc(100% - 24px), var(--mobile-dock-current-width, 352px));
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) var(--dock-rebuild-center-track) minmax(0, 1fr) minmax(0, 1fr);
    padding-inline: var(--dock-rebuild-inline-padding);
  }

  .mobile-dock__item {
    width: var(--dock-rebuild-side-item);
    height: var(--mobile-dock-current-item-height, 48px);
    grid-template-rows: 23px 14px;
    row-gap: 2px;
    border-radius: 18px;
  }

  .mobile-dock__item > span:last-child {
    height: 14px;
    min-height: 14px;
    max-height: 14px;
    line-height: 14px;
    font-size: var(--mobile-dock-current-label-size, 10.5px);
  }

  .mobile-dock__item--with-dot::after {
    top: 8px;
    right: calc(50% - 17px);
  }

  .mobile-dock__wordmark {
    width: var(--mobile-dock-current-wordmark, 40px);
  }
}

/* Mobile dock rebuild safeguard: force the single grid row to center oversized brand. */
@media (max-width: 860px) {
  .mobile-dock {
    grid-template-rows: var(--dock-rebuild-height);
    align-content: center;
  }

  .mobile-dock__item,
  .mobile-dock__brand {
    grid-row: 1;
  }

  :root.is-mobile-dock-compact {
    --mobile-dock-scale: 1;
  }

  :root.is-mobile-dock-compact .mobile-dock__brand:active {
    transform: translate3d(0, 0, 0) scale(0.965);
  }
}

@media (max-width: 380px) {
  :root.is-mobile-dock-compact .mobile-dock {
    width: min(calc(100% - 24px), var(--mobile-dock-current-width, 296px));
  }
}

/* Mobile main menu drawer rebuild. */
@media (max-width: 980px) {
  :root.is-mobile-main-menu-open {
    overflow: hidden;
  }

  .hero-menu--mobile {
    position: relative;
    z-index: 260;
  }

  .hero-menu--mobile[open] {
    z-index: 320;
  }

  .hero-menu--mobile[open]::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 300;
    animation: mobileMenuBackdropIn var(--transition-base) both;
  }

  .hero-menu__toggle {
    position: relative;
    z-index: 330;
  }



  .hero-menu__panel,
  .hero-menu--mobile .hero-menu__panel {
    position: fixed !important;
    right: auto !important;
    z-index: 320 !important;
    display: block !important;
    max-width: none !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(203, 213, 225, 0.68) !important;
    transform-origin: left center;
    animation: mobileMenuDrawerIn var(--motion-slow) var(--ease-emphasized) both;
  }

  .hero-menu:not([open]) .hero-menu__panel,
  .hero-menu--mobile:not([open]) .hero-menu__panel {
    display: none !important;
  }

  .hero-menu__content {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  .hero-menu__content::-webkit-scrollbar {
    display: none;
  }

  .hero-menu__group {
    display: grid;
  }



  .hero-menu__divider {
    height: 1px;
  }

  .hero-menu__item,
  .hero-menu--mobile .hero-menu__item {
    position: relative;
    display: grid !important;
    align-items: center;
    border: 0 !important;
    background: transparent;
    color: #59657a;
    line-height: 1.1;
    text-decoration: none;
    box-shadow: none;
    transition:
      background-color 160ms ease,
      color 160ms ease,
      transform 160ms ease,
      box-shadow 160ms ease;
  }

  .hero-menu__item:hover,
  .hero-menu__item:focus-visible {
    background: rgba(239, 246, 255, 0.74);
    color: #1f2937;
    transform: translateX(1px);
  }

  .hero-menu__item:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.22);
    outline-offset: 2px;
  }





  .hero-menu__item--disabled::after {
    justify-self: end;
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: rgba(71, 85, 105, 0.68);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateX(4px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .hero-menu__item--disabled:hover::after,
  .hero-menu__item--disabled:focus-visible::after {
    opacity: 1;
    transform: translateX(0);
  }

  .hero-menu__item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
  }

  .hero-menu__item-icon svg {
    display: block;
    width: 100%;
    height: 100%;
  }

  .hero-menu__item-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }



  .hero-menu__group--secondary .hero-menu__item {
    color: #5f6b7f;
  }

  :root[data-theme="dark"] .hero-menu--mobile[open]::before {
    background: linear-gradient(90deg, rgba(3, 7, 18, 0.54), rgba(3, 7, 18, 0.25) 52%, rgba(3, 7, 18, 0.08));
  }

  :root[data-theme="dark"] .hero-menu__panel,
  :root[data-theme="dark"] .hero-menu--mobile .hero-menu__panel {
    border-color: rgba(148, 163, 184, 0.26) !important;
    box-shadow:
      24px 0 64px rgba(0, 0, 0, 0.38),
      1px 0 0 rgba(255, 255, 255, 0.08) inset !important;
  }

  :root[data-theme="dark"] .hero-menu__item {
    color: rgba(226, 232, 240, 0.72);
  }

  :root[data-theme="dark"] .hero-menu__item:hover,
  :root[data-theme="dark"] .hero-menu__item:focus-visible {
    background: rgba(59, 130, 246, 0.12);
    color: rgba(248, 250, 252, 0.94);
  }

  :root[data-theme="dark"] .hero-menu__item[aria-current="page"] {
    background:
      radial-gradient(circle at 20% 12%, rgba(37, 99, 235, 0.32), transparent 44%),
      rgba(30, 64, 175, 0.18);
    color: #7db1ff;
  }
}


@keyframes mobileMenuDrawerIn {
  from {
    opacity: 0;
    transform: translate3d(-24px, 0, 0) scaleX(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scaleX(1);
  }
}

@keyframes mobileMenuBackdropIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 860px) {
  .hero:has(.hero-menu--mobile[open]),
  :root.is-mobile-main-menu-open .hero {
    transform: none !important;
  }
}


@media (max-width: 860px) {
  .hero-menu__item-icon {
    grid-column: 1;
    grid-row: 1;
  }

  .hero-menu__item-label {
    grid-column: 2;
    grid-row: 1;
    padding-right: 0;
  }

  .hero-menu__item--disabled::after {
    display: none;
  }


}

/* Mobile drawer visual polish: compact, calmer active state. */
@media (max-width: 860px) {
  .hero-menu--mobile[open]::before {
    background:
      linear-gradient(90deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.045) 58%, rgba(15, 23, 42, 0.01)) !important;
    -webkit-backdrop-filter: blur(3px) saturate(1.02) !important;
    backdrop-filter: blur(3px) saturate(1.02) !important;
  }

  .hero-menu--mobile .hero-menu__panel,
  .hero-menu__panel {
    top: max(10px, env(safe-area-inset-top)) !important;
    bottom: auto !important;
    left: 10px !important;
    width: min(286px, calc(100vw - 88px)) !important;
    height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    border-radius: 0 24px 24px 0 !important;
    border-color: rgba(211, 219, 231, 0.72) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow:
      18px 0 46px rgba(15, 23, 42, 0.10),
      0 12px 32px rgba(29, 44, 68, 0.08),
      1px 0 0 rgba(255, 255, 255, 0.9) inset !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.04) !important;
    backdrop-filter: blur(16px) saturate(1.04) !important;
    will-change: transform, opacity;
  }

  .hero-menu__content {
    padding: max(58px, calc(env(safe-area-inset-top) + 46px)) 12px max(14px, env(safe-area-inset-bottom)) 12px !important;
  }

  .hero-menu__group,
  .hero-menu__group--primary {
    gap: 5px !important;
  }

  .hero-menu__group--secondary {
    gap: 4px !important;
    margin-top: 0 !important;
  }

  .hero-menu__divider {
    width: calc(100% - 32px) !important;
    margin: 13px auto 12px !important;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.22), transparent) !important;
  }

  .hero-menu__item,
  .hero-menu--mobile .hero-menu__item,
  .hero-menu__group--secondary .hero-menu__item {
    grid-template-columns: 25px minmax(0, 1fr) !important;
    column-gap: 11px !important;
    min-height: 44px !important;
    padding: 0 12px !important;
    border-radius: 14px !important;
    color: #5d687a !important;
    font-size: 0.9rem !important;
    font-weight: 670 !important;
    letter-spacing: -0.01em;
    transition:
      background-color var(--transition-fast),
      color var(--transition-fast),
      box-shadow var(--transition-fast),
      transform var(--transition-fast);
  }

  .hero-menu__item-icon {
    width: 23px !important;
    height: 23px !important;
    opacity: 0.9 !important;
  }

  .hero-menu__item-icon svg {
    stroke-width: 1.75;
  }

  .hero-menu__item:hover,
  .hero-menu__item:focus-visible {
    background: rgba(241, 245, 249, 0.72) !important;
    color: #243247 !important;
    transform: none !important;
  }

  .hero-menu__item:active {
    transform: scale(0.992) !important;
  }

  .hero-menu__item[aria-current="page"] {
    background: rgba(239, 246, 255, 0.68) !important;
    color: #1768e8 !important;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.84) inset,
      0 8px 22px rgba(37, 99, 235, 0.055) !important;
  }

  .hero-menu__item[aria-current="page"]::before {
    content: "";
    position: absolute;
    top: 11px;
    bottom: 11px;
    left: 0;
    width: 3px;
    border-radius: 999px;
    background: var(--accent, #2f7df6);
    box-shadow: 0 0 0 4px rgba(47, 125, 246, 0.08);
  }

  .hero-menu__item--disabled,
  .hero-menu__item--disabled:hover,
  .hero-menu__item--disabled:focus-visible {
    color: #6b7588 !important;
    opacity: 0.74 !important;
  }

  .hero-menu--mobile[open] .hero-menu__toggle,
  .hero-menu--mobile .hero-menu__toggle:hover,
  .hero-menu--mobile .hero-menu__toggle:focus-visible {
    background: rgba(248, 250, 252, 0.9) !important;
    color: #0f172a !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.09) !important;
  }

  :root[data-theme="dark"] .hero-menu--mobile[open]::before {
    background: linear-gradient(90deg, rgba(3, 7, 18, 0.42), rgba(3, 7, 18, 0.18) 58%, rgba(3, 7, 18, 0.04)) !important;
  }

  :root[data-theme="dark"] .hero-menu--mobile .hero-menu__panel,
  :root[data-theme="dark"] .hero-menu__panel {
    border-color: rgba(148, 163, 184, 0.24) !important;
    background: rgba(15, 23, 42, 0.88) !important;
    box-shadow:
      18px 0 52px rgba(0, 0, 0, 0.34),
      1px 0 0 rgba(255, 255, 255, 0.08) inset !important;
  }

  :root[data-theme="dark"] .hero-menu__item {
    color: rgba(226, 232, 240, 0.72) !important;
  }

  :root[data-theme="dark"] .hero-menu__item:hover,
  :root[data-theme="dark"] .hero-menu__item:focus-visible {
    background: rgba(59, 130, 246, 0.10) !important;
    color: rgba(248, 250, 252, 0.92) !important;
  }

  :root[data-theme="dark"] .hero-menu__item[aria-current="page"] {
    background: rgba(30, 64, 175, 0.18) !important;
    color: #8dbbff !important;
  }
}

@media (max-width: 380px) {
  .hero-menu--mobile .hero-menu__panel,
  .hero-menu__panel {
    left: 8px !important;
    width: min(272px, calc(100vw - 70px)) !important;
    border-radius: 0 22px 22px 0 !important;
  }

  .hero-menu__content {
    padding-top: max(56px, calc(env(safe-area-inset-top) + 44px)) !important;
    padding-right: 10px !important;
    padding-left: 10px !important;
  }

  .hero-menu__item,
  .hero-menu--mobile .hero-menu__item,
  .hero-menu__group--secondary .hero-menu__item {
    grid-template-columns: 26px minmax(0, 1fr) !important;
    column-gap: 12px !important;
    min-height: 45px !important;
    padding: 0 10px !important;
    font-size: 0.9rem !important;
  }

  .hero-menu__item-icon {
    width: 23px !important;
    height: 23px !important;
  }
}

/* Mobile drawer follow-up polish: full-height layout, calmer active state, bottom utility links. */
@media (max-width: 980px) {




  .hero-menu__group--primary {
    align-content: start;
  }

  .hero-menu__divider {
    margin-top: auto;
    margin-bottom: 18px;
  }









  .hero-menu__item-icon svg {
    overflow: visible;
  }







  .hero-menu__item--disabled::before {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: calc(100% + 8px);
    z-index: 2;
    padding: 8px 10px;
    border: 1px solid rgba(203, 213, 225, 0.88);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    color: #5f6b7f;
    box-shadow: 0 14px 28px rgba(20, 35, 61, 0.14);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 140ms ease, transform 140ms ease;
  }

  .hero-menu__item--disabled:hover::before,
  .hero-menu__item--disabled:focus-visible::before {
    opacity: 1;
    transform: translateY(0);
  }

  .hero-menu__toggle {
    border-radius: 14px;
  }

  .hero-menu__icon,
  .hero-menu__icon::before,
  .hero-menu__icon::after {
    transition:
      transform 180ms ease,
      width 180ms ease,
      background-color 180ms ease,
      border-color 180ms ease,
      top 180ms ease,
      left 180ms ease;
  }



  .hero-menu--mobile[open] .hero-menu__icon::before,
  .hero-menu--mobile[open] .hero-menu__icon::after {
    top: 0;
    left: 0;
    width: 9px;
  }



  .hero-menu--mobile[open] .hero-menu__icon::after {
    transform: translate(-1px, 3px) rotate(45deg);
    transform-origin: left center;
  }

  .mobile-dock__item:first-child .mobile-dock__icon svg {
    transform: scaleX(1.08);
    transform-origin: center;
  }
}

@media (max-width: 420px) {
  .hero-menu__panel,
  .hero-menu--mobile .hero-menu__panel {
    width: min(300px, calc(100vw - 32px)) !important;
  }

  .hero-menu__item,
  .hero-menu--mobile .hero-menu__item {
    min-height: 52px !important;
    font-size: 0.98rem !important;
  }
}

/* Mobile drawer disabled items should be inert: no toast, no tooltip, no hover affordance. */
@media (max-width: 980px) {
  .hero-menu__item--disabled,
  .hero-menu__item--disabled:hover,
  .hero-menu__item--disabled:focus-visible {
    background: transparent !important;
    color: #6b7588 !important;
    cursor: default !important;
    opacity: 0.68 !important;
    transform: none !important;
    box-shadow: none !important;
    outline: 0 !important;
  }

  .hero-menu__item--disabled::before,
  .hero-menu__item--disabled::after,
  .hero-menu__item--disabled:hover::before,
  .hero-menu__item--disabled:focus-visible::before,
  .hero-menu__item--disabled:hover::after,
  .hero-menu__item--disabled:focus-visible::after {
    content: none !important;
    display: none !important;
  }
}

/* Mobile drawer compact fit + safer outside click behavior. */
@media (max-width: 980px) {
  .hero-menu__panel,
  .hero-menu--mobile .hero-menu__panel {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    width: min(292px, calc(100vw - 34px)) !important;
    border-radius: 0 24px 24px 0 !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.992), rgba(255, 255, 255, 0.968)),
      var(--surface-strong, #ffffff) !important;
    box-shadow:
      18px 0 52px rgba(15, 23, 42, 0.13),
      0 12px 34px rgba(29, 44, 68, 0.09),
      1px 0 0 rgba(255, 255, 255, 0.9) inset !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.02) !important;
    backdrop-filter: blur(14px) saturate(1.02) !important;
  }

  .hero-menu--mobile[open]::before {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.04) 58%, rgba(15, 23, 42, 0.01)) !important;
    -webkit-backdrop-filter: blur(3px) saturate(1.02) !important;
    backdrop-filter: blur(3px) saturate(1.02) !important;
  }

  .hero-menu__brand {
    position: absolute;
    left: 50%;
    z-index: 1;
    display: flex;
    width: min(92px, 28vw);
    align-items: center;
    justify-content: center;
    line-height: 0;
    opacity: 0.96;
    pointer-events: none;
    transform: translateX(-50%);
  }

  .hero-menu__wordmark,
  .hero-menu__wordmark__image {
    display: block;
    width: 100%;
    height: auto;
  }

  .hero-menu__content {
    height: 100% !important;
    min-height: 100% !important;
    padding: max(58px, calc(env(safe-area-inset-top) + 52px)) 12px max(14px, calc(env(safe-area-inset-bottom) + 12px)) 12px !important;
    overflow-y: auto;
  }

  .hero-menu__group,
  .hero-menu__group--primary {
    gap: 3px !important;
  }

  .hero-menu__group--primary {
    flex: 0 0 auto;
  }

  .hero-menu__divider {
    width: calc(100% - 34px) !important;
    margin: auto auto 10px !important;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.22), transparent) !important;
  }

  .hero-menu__group--secondary {
    gap: 2px !important;
    margin-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .hero-menu__item,
  .hero-menu--mobile .hero-menu__item,
  .hero-menu__group--secondary .hero-menu__item {
    grid-template-columns: 27px minmax(0, 1fr) !important;
    column-gap: 12px !important;
    min-height: 43px !important;
    padding: 0 11px !important;
    border-radius: 13px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.012em;
  }

  .hero-menu__group--secondary .hero-menu__item {
    min-height: 41px !important;
    font-size: 0.86rem !important;
  }

  .hero-menu__item-icon {
    width: 23px !important;
    height: 23px !important;
    opacity: 0.9 !important;
  }

  .hero-menu__item[aria-current="page"] {
    color: #1768e8 !important;
  }

  .hero-menu__toggle {
    width: calc(var(--mobile-header-action-size, 42px) - var(--mobile-header-action-shrink, 0px)) !important;
    height: calc(var(--mobile-header-action-size, 42px) - var(--mobile-header-action-shrink, 0px)) !important;
    min-height: calc(var(--mobile-header-action-size, 42px) - var(--mobile-header-action-shrink, 0px)) !important;
  }



  .hero-menu--mobile[open] .hero-menu__icon {
    border-radius: 999px;
    transform: none !important;
  }

  .hero-menu--mobile[open] .hero-menu__icon::before {
    border-right: 0 !important;
    border-bottom: 0 !important;
    background: transparent !important;
    transform-origin: center !important;
  }

  .hero-menu--mobile[open] .hero-menu__icon::after {
    content: none !important;
    display: none !important;
  }

  :root[data-theme="dark"] .hero-menu__panel,
  :root[data-theme="dark"] .hero-menu--mobile .hero-menu__panel {
    background:
      linear-gradient(180deg, rgba(15, 23, 42, 0.972), rgba(15, 23, 42, 0.94)),
      #0f172a !important;
  }
}

@media (max-width: 380px), (max-height: 740px) {
  .hero-menu__panel,
  .hero-menu--mobile .hero-menu__panel {
    width: min(282px, calc(100vw - 28px)) !important;
  }

  .hero-menu__brand {
    width: min(82px, 26vw);
  }

  .hero-menu__content {
    padding-top: max(52px, calc(env(safe-area-inset-top) + 48px)) !important;
    padding-right: 10px !important;
    padding-left: 10px !important;
  }

  .hero-menu__item,
  .hero-menu--mobile .hero-menu__item,
  .hero-menu__group--secondary .hero-menu__item {
    min-height: 39px !important;
    font-size: 0.84rem !important;
  }

  .hero-menu__group--secondary .hero-menu__item {
    min-height: 38px !important;
    font-size: 0.82rem !important;
  }

  .hero-menu__item-icon {
    width: 21px !important;
    height: 21px !important;
  }
}

/* Mobile drawer final chrome cleanup: icon-only toggle, clean active item, split CS3/NEWS brand. */
@media (max-width: 980px) {
  .hero-menu--mobile .hero-menu__toggle,
  .hero-menu--mobile .hero-menu__toggle:hover,
  .hero-menu--mobile .hero-menu__toggle:focus-visible,
  .hero-menu--mobile[open] .hero-menu__toggle {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #0f172a !important;
  }

  .hero-menu--mobile .hero-menu__toggle:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.22) !important;
    outline-offset: 2px;
  }

  .hero-menu--mobile .hero-menu__icon {
    width: 23px;
    height: 16px;
  }

  .hero-menu--mobile .hero-menu__icon,
  .hero-menu--mobile .hero-menu__icon::before,
  .hero-menu--mobile .hero-menu__icon::after {
    border-top-width: 2px;
  }

  .hero-menu--mobile .hero-menu__icon::before,
  .hero-menu--mobile .hero-menu__icon::after {
    width: 23px;
  }

  .hero-menu--mobile .hero-menu__icon::before {
    top: 5px;
  }

  .hero-menu--mobile .hero-menu__icon::after {
    top: 12px;
  }

  .hero-menu--mobile[open] .hero-menu__icon {
    width: 23px !important;
    height: 2px !important;
    margin-left: 0;
    border-top: 0 !important;
    background: currentColor;
  }

  .hero-menu--mobile[open] .hero-menu__icon::before {
    top: 50% !important;
    left: 0 !important;
    width: 10px !important;
    height: 10px !important;
    border-top: 2px solid currentColor !important;
    border-left: 2px solid currentColor !important;
    transform: translate(1px, -50%) rotate(-45deg) !important;
  }

  .hero-menu__item[aria-current="page"] {
    background: rgba(239, 246, 255, 0.72) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset !important;
  }

  .hero-menu__item[aria-current="page"]::before,
  .hero-menu__item[aria-current="page"]::after {
    content: none !important;
    display: none !important;
  }








}


/* Mobile drawer brand sizing: keep CS3NEWS as one stronger wordmark. */
@media (max-width: 980px) {
  .hero-menu__brand {
    top: max(16px, calc(env(safe-area-inset-top) + 10px));
  }

  .hero-menu__brand-text {
    display: inline-flex;
    gap: 0 !important;
    align-items: baseline;
    justify-content: center;
    color: #101827;
    line-height: 1;
    opacity: 1;
    white-space: nowrap;
  }

  .hero-menu__brand-cs,
  .hero-menu__brand-news {
    display: inline-block;
  }

  .hero-menu__brand-cs {
    color: #101827;
  }

  .hero-menu__brand-news {
    color: var(--accent, #1265ff);
  }
}


/* Mobile drawer brand and quote toggle final polish. */
@media (max-width: 980px) {
  .hero-menu__brand-text {
    font-size: 1.16rem !important;
    font-weight: 980 !important;
    letter-spacing: 0.006em !important;
  }
}

@media (max-width: 380px) {
  .hero-menu__brand-text {
    font-size: 1.08rem !important;
  }
}

/* Tablet header: keep the mobile top-bar pattern through the 861-980px gap. */
@media (min-width: 861px) and (max-width: 980px) {
  html {
    zoom: 1;
  }

  .app-shell {
    width: min(calc(100% - 20px), var(--container));
    margin-top: 0;
    padding-top: 64px;
  }

  .hero {
    position: fixed !important;
    top: 0;
    right: 0;
    left: 0;
    z-index: 780;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 0;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 253, 255, 0.94)),
      var(--surface-strong);
    box-shadow:
      0 10px 24px rgba(29, 44, 68, 0.08),
      0 1px 0 rgba(255, 255, 255, 0.78) inset;
    transform: translate3d(0, 0, 0);
    transform-origin: top center;
    transition:
      transform 260ms cubic-bezier(0.2, 0.78, 0.2, 1),
      opacity 190ms ease,
      box-shadow 220ms ease;
  }

  :root[data-theme="dark"] .hero {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    background:
      linear-gradient(180deg, rgba(11, 15, 22, 0.97), rgba(11, 15, 22, 0.92)),
      #0b0f15;
    box-shadow:
      0 14px 34px rgba(0, 0, 0, 0.36),
      0 1px 0 rgba(255, 255, 255, 0.08) inset;
  }

  :root.is-mobile-scrolling-down:not(.is-mobile-at-top) .hero:not(.is-search-open) {
    opacity: 0.02;
    pointer-events: none;
    transform: translate3d(0, calc(-100% - 10px), 0);
  }

  .hero__top {
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr) 38px !important;
    grid-template-areas:
      "menu brand actions"
      "search search search" !important;
    align-items: center;
    gap: 0 8px !important;
    min-height: 56px !important;
    padding: 5px 16px !important;
  }

  .hero-menu--mobile {
    position: relative;
    z-index: 3;
    display: block !important;
    grid-area: menu;
    justify-self: start;
  }

  .hero-menu--mobile .hero-menu__toggle {
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 13px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: color-mix(in srgb, var(--text) 88%, var(--text-soft));
  }

  .hero-menu--mobile .hero-menu__icon {
    width: 23px;
    height: 16px;
  }

  .hero-menu--mobile .hero-menu__icon::before,
  .hero-menu--mobile .hero-menu__icon::after {
    width: 23px;
  }

  .hero-menu--mobile .hero-menu__icon::before {
    top: 5px;
  }

  .hero-menu--mobile .hero-menu__icon::after {
    top: 12px;
  }

  .hero__identity {
    grid-area: brand !important;
    justify-self: center !important;
    width: min(86px, 20vw) !important;
    max-width: min(86px, 20vw) !important;
    flex: none !important;
    justify-content: center;
    gap: 0 !important;
  }

  .hero__avatar,
  .hero__copy {
    display: none !important;
  }

  .hero-wordmark {
    display: block !important;
    width: min(86px, 20vw);
    line-height: 0;
  }

  .hero-wordmark__image {
    display: block;
    width: 100%;
    height: auto;
  }

  .hero__controls {
    display: contents !important;
  }

  .hero__actions {
    display: flex !important;
    grid-area: actions !important;
    justify-content: flex-end;
    width: 38px !important;
    gap: 0 !important;
  }

  .hero__contact,
  .hero__origin {
    display: none !important;
  }

  .hero__search-toggle {
    display: inline-flex !important;
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 13px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: color-mix(in srgb, var(--text) 88%, var(--text-soft));
  }

  .hero__search-toggle-icon,
  .hero__search-toggle-icon svg {
    width: 21px !important;
    height: 21px !important;
  }

  .hero:not(.is-search-open) .search {
    display: none !important;
  }

  .hero.is-search-open .search {
    position: relative !important;
    inset: auto !important;
    z-index: 2;
    display: block !important;
    grid-area: search !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 5px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .hero.is-search-open .search__input {
    height: 38px !important;
    min-height: 38px !important;
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface-muted) 78%, var(--surface-strong));
    font-size: 16px;
  }

  .hero-nav-shell,
  .hero-nav-shell.is-fixed,
  .hero-mobile-nav,
  .hero-mobile-more,
  .mobile-dock {
    display: none !important;
  }
}


.quote-collapsible__toggle:focus-visible {
  outline-offset: 2px;
}

.quote-collapsible__chevron {
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease;
}


/* Quote toggle: keep only the chevron, never draw an outline/background around it. */


.quote-collapsible__toggle {
  -webkit-tap-highlight-color: transparent;
}

/* Quote toggle: restore original chevron size/placement without drawing a button outline. */
.quote-collapsible__toggle {
  right: 8px !important;
  bottom: 8px !important;
  width: 26px !important;
  height: 22px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.quote-collapsible__toggle:hover,
.quote-collapsible__toggle:focus,
.quote-collapsible__toggle:focus-visible,
.quote-collapsible.is-expanded .quote-collapsible__toggle,
.quote-collapsible.is-expanded .quote-collapsible__toggle:hover,
.quote-collapsible.is-expanded .quote-collapsible__toggle:focus,
.quote-collapsible.is-expanded .quote-collapsible__toggle:focus-visible {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.quote-collapsible__chevron {
  display: block !important;
  width: auto !important;
  height: auto !important;
  font-size: 1.35rem !important;
  line-height: 1 !important;
  transform: translateY(-1px) !important;
}

.quote-collapsible.is-expanded .quote-collapsible__chevron {
  transform: translateY(1px) rotate(180deg) !important;
}

/* Mobile dock active state: color-only brand accent. */
@media (max-width: 860px) {
  .mobile-dock__item[aria-current="page"] {
    background: transparent !important;
    box-shadow: none !important;
  }

  .mobile-dock__item[aria-current="page"] .mobile-dock__icon {
    color: #1670ea !important;
  }

  .mobile-dock__item[aria-current="page"] > span:last-child {
    color: #1670ea !important;
  }
}

/* Mobile drawer CS3BET feature link. */
@media (max-width: 980px) {
  .hero-menu__divider--feature-top {
    margin: auto auto 8px !important;
  }

  .hero-menu__divider--feature-bottom {
    margin: 8px auto 6px !important;
  }

  .hero-menu__feature-slot {
    flex: 0 0 auto;
    margin: 0 2px;
  }

  .hero-menu__feature {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 11px;
    min-height: 60px;
    padding: 8px 13px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 15px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 252, 0.94));
    color: #59657a;
    text-decoration: none;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
    transition:
      border-color var(--transition-base),
      background var(--transition-base),
      color var(--transition-fast),
      transform var(--transition-base),
      box-shadow var(--transition-base);
  }

  .hero-menu__feature:hover,
  .hero-menu__feature:focus-visible {
    border-color: rgba(47, 109, 246, 0.24);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.98));
    color: #445169;
    box-shadow: var(--elevation-2);
    transform: translateX(1px);
  }

  .hero-menu__feature:active {
    animation: cs3-press-pop var(--transition-fast);
    transform: scale(0.992);
  }

  .hero-menu__feature:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.22);
    outline-offset: 2px;
  }

  .hero-menu__feature[aria-current="page"] {
    border-color: rgba(59, 130, 246, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 255, 0.96));
    color: #4f5d73;
  }

  .hero-menu__feature-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 999px;
    background: transparent;
    overflow: visible;
  }

  .hero-menu__feature-coin {
    display: block;
    width: 35px;
    height: 35px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(37, 99, 235, 0.12));
    opacity: 0.98;
    transform: translateY(0.5px);
  }

  .hero-menu__feature-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
  }

  .hero-menu__feature-copy strong {
    overflow: hidden;
    color: #465267;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.01em;
  }

  .hero-menu__feature-copy small {
    overflow: hidden;
    color: #7f8ba0;
    font-size: 0.67rem;
    font-weight: 600;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-menu__feature-chevron {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    color: #8a95a8;
  }

  .hero-menu__feature-chevron svg {
    display: block;
    width: 100%;
    height: 100%;
  }

  :root[data-theme="dark"] .hero-menu__feature {
    border-color: rgba(148, 163, 184, 0.22);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.82), rgba(17, 24, 39, 0.74));
    color: rgba(226, 232, 240, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  }

  :root[data-theme="dark"] .hero-menu__feature-copy strong {
    color: #f1f5f9;
  }

  :root[data-theme="dark"] .hero-menu__feature-copy small {
    color: #94a3b8;
  }

  :root[data-theme="dark"] .hero-menu__feature-coin {
    filter: drop-shadow(0 3px 8px rgba(14, 165, 233, 0.18));
    opacity: 0.98;
  }
}

@media (max-width: 380px), (max-height: 740px) {
  .hero-menu__feature {
    grid-template-columns: 36px minmax(0, 1fr) 16px;
    gap: 9px;
    min-height: 56px;
    padding: 7px 11px;
  }

  .hero-menu__feature-icon {
    width: 36px;
    height: 36px;
  }

  .hero-menu__feature-coin {
    width: 31px;
    height: 31px;
  }

  .hero-menu__feature-copy strong {
    font-size: 0.85rem;
  }

  .hero-menu__feature-copy small {
    font-size: 0.62rem;
  }
}

/* Mobile drawer v2: one quiet system of grouped navigation surfaces. */
@media (max-width: 980px) {
  .hero-menu--mobile[open]::before {
    background: rgba(15, 23, 42, 0.14) !important;
    -webkit-backdrop-filter: blur(4px) saturate(0.94) !important;
    backdrop-filter: blur(4px) saturate(0.94) !important;
  }

  .hero-menu__panel,
  .hero-menu--mobile .hero-menu__panel {
    width: min(320px, calc(100vw - 72px)) !important;
    border: 1px solid rgba(203, 213, 225, 0.72) !important;
    border-left: 0 !important;
    border-radius: 0 28px 28px 0 !important;
    background: rgba(251, 253, 255, 0.985) !important;
    box-shadow:
      24px 0 64px rgba(15, 23, 42, 0.14),
      1px 0 0 rgba(255, 255, 255, 0.92) inset !important;
    -webkit-backdrop-filter: blur(22px) saturate(1.06) !important;
    backdrop-filter: blur(22px) saturate(1.06) !important;
  }

  .hero-menu__brand {
    top: max(18px, calc(env(safe-area-inset-top) + 12px)) !important;
    width: 78px !important;
    opacity: 1 !important;
  }

  .hero-menu__wordmark,
  .hero-menu__wordmark__image {
    display: block;
    width: 100%;
    height: auto;
  }

  .hero-menu--mobile[open] .hero-menu__toggle,
  .hero-menu--mobile[open] .hero-menu__toggle:hover,
  .hero-menu--mobile[open] .hero-menu__toggle:focus-visible {
    top: 13px;
    width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    border: 1px solid rgba(203, 213, 225, 0.82) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.055) !important;
  }

  .hero-menu__content {
    gap: 12px;
    padding: max(76px, calc(env(safe-area-inset-top) + 68px)) 14px max(16px, calc(env(safe-area-inset-bottom) + 12px)) !important;
  }

  .hero-menu__group,
  .hero-menu__group--primary,
  .hero-menu__group--secondary {
    gap: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(203, 213, 225, 0.74);
    border-radius: 19px;
    background: rgba(255, 255, 255, 0.36);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
  }

  .hero-menu__group--primary {
    flex: 0 0 auto;
  }

  .hero-menu__group--secondary {
    margin: 0 !important;
    padding: 0 !important;
  }

  .hero-menu__divider {
    display: none !important;
  }

  .hero-menu__item,
  .hero-menu--mobile .hero-menu__item,
  .hero-menu__group--secondary .hero-menu__item {
    grid-template-columns: 27px minmax(0, 1fr) !important;
    column-gap: 14px !important;
    min-height: 49px !important;
    padding: 0 15px !important;
    border-radius: 0 !important;
    color: #536075 !important;
    font-size: 0.93rem !important;
    font-weight: 690 !important;
    letter-spacing: -0.014em;
    box-shadow: none !important;
  }

  .hero-menu__group--secondary .hero-menu__item {
    min-height: 46px !important;
    font-size: 0.89rem !important;
  }

  .hero-menu__group .hero-menu__item:not(:first-child),
  .hero-menu__group .hero-menu__item-cluster:not(:first-child) .hero-menu__item:first-child,
  .hero-menu__item-cluster + .hero-menu__item {
    border-top: 1px solid rgba(203, 213, 225, 0.58) !important;
  }

  .hero-menu__item-cluster {
    display: grid;
  }

  .hero-menu__item-icon {
    width: 23px !important;
    height: 23px !important;
    opacity: 0.96 !important;
  }

  .hero-menu__item-icon svg {
    stroke-width: 1.8 !important;
  }

  .hero-menu__item:hover,
  .hero-menu__item:focus-visible {
    background: rgba(241, 245, 249, 0.68) !important;
    color: #26354b !important;
    transform: none !important;
  }

  .hero-menu__item[aria-current="page"] {
    background: linear-gradient(90deg, rgba(225, 238, 255, 0.92), rgba(238, 246, 255, 0.78)) !important;
    color: #1670ea !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset !important;
  }

  .hero-menu__item[aria-current="page"]::before,
  .hero-menu__item[aria-current="page"]::after {
    content: none !important;
    display: none !important;
  }

  .hero-menu__item--disabled,
  .hero-menu__item--disabled:hover,
  .hero-menu__item--disabled:focus-visible {
    color: #8a96a8 !important;
    opacity: 0.72 !important;
  }

  .hero-menu__feature-slot {
    flex: 0 0 auto;
    margin: 0 !important;
  }

  .hero-menu__feature {
    grid-template-columns: 34px minmax(0, 1fr) 18px;
    gap: 12px;
    min-height: 64px;
    padding: 8px 15px;
    border-color: rgba(203, 213, 225, 0.74);
    border-radius: 19px;
    background: rgba(255, 255, 255, 0.4);
    color: #536075;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
  }

  .hero-menu__feature:hover,
  .hero-menu__feature:focus-visible {
    border-color: rgba(148, 163, 184, 0.58);
    background: rgba(246, 249, 253, 0.74);
    color: #26354b;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.065);
    transform: none;
  }

  .hero-menu__feature-icon {
    width: 34px;
    height: 34px;
  }

  .hero-menu__feature-coins {
    display: block;
    width: 27px;
    height: 27px;
    background: currentColor;
    -webkit-mask: url('/assets/cs3bet/tabler-coins-menu-icon.svg') center / contain no-repeat;
    mask: url('/assets/cs3bet/tabler-coins-menu-icon.svg') center / contain no-repeat;
  }

  .hero-menu__feature-copy {
    gap: 3px;
  }

  .hero-menu__feature-copy strong {
    color: #334155;
    font-size: 0.91rem;
    font-weight: 780;
  }

  .hero-menu__feature-copy small {
    color: #8490a3;
    font-size: 0.68rem;
    font-weight: 620;
  }

  .hero-menu__feature-chevron {
    color: #748197;
  }

  :root[data-theme="dark"] .hero-menu__panel,
  :root[data-theme="dark"] .hero-menu--mobile .hero-menu__panel {
    border-color: rgba(148, 163, 184, 0.24) !important;
    background: rgba(15, 23, 42, 0.955) !important;
  }

  :root[data-theme="dark"] .hero-menu__group,
  :root[data-theme="dark"] .hero-menu__feature {
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(30, 41, 59, 0.5);
  }

  :root[data-theme="dark"] .hero-menu__group .hero-menu__item:not(:first-child),
  :root[data-theme="dark"] .hero-menu__item-cluster + .hero-menu__item {
    border-top-color: rgba(148, 163, 184, 0.16) !important;
  }
}

@media (max-width: 380px), (max-height: 740px) {
  .hero-menu__panel,
  .hero-menu--mobile .hero-menu__panel {
    width: min(304px, calc(100vw - 64px)) !important;
    border-radius: 0 24px 24px 0 !important;
  }

  .hero-menu__brand {
    width: 72px !important;
  }

  .hero-menu__content {
    gap: 9px;
    padding-top: max(64px, calc(env(safe-area-inset-top) + 57px)) !important;
    padding-right: 11px !important;
    padding-left: 11px !important;
  }

  .hero-menu__item,
  .hero-menu--mobile .hero-menu__item,
  .hero-menu__group--secondary .hero-menu__item {
    min-height: 40px !important;
    padding: 0 12px !important;
    font-size: 0.84rem !important;
  }

  .hero-menu__group--secondary .hero-menu__item {
    min-height: 38px !important;
    font-size: 0.81rem !important;
  }

  .hero-menu__item-icon {
    width: 21px !important;
    height: 21px !important;
  }

  .hero-menu__feature {
    min-height: 54px;
    padding: 6px 12px;
  }
}

/* Mobile drawer selected geometry: strict corners, open arrow and clearer group rhythm. */
@media (max-width: 980px) {
  .hero-menu__panel,
  .hero-menu--mobile .hero-menu__panel {
    border-radius: 0 18px 18px 0 !important;
  }

  .hero-menu--mobile[open] .hero-menu__toggle,
  .hero-menu--mobile[open] .hero-menu__toggle:hover,
  .hero-menu--mobile[open] .hero-menu__toggle:focus-visible {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .hero-menu--mobile[open] .hero-menu__icon {
    width: 24px !important;
  }

  .hero-menu--mobile[open] .hero-menu__icon::before {
    width: 9px !important;
    height: 9px !important;
  }

  .hero-menu__content {
    gap: 16px;
  }

  .hero-menu__group,
  .hero-menu__group--primary,
  .hero-menu__group--secondary,
  .hero-menu__feature {
    border-radius: 10px;
  }
}

@media (max-width: 380px), (max-height: 740px) {
  .hero-menu__panel,
  .hero-menu--mobile .hero-menu__panel {
    border-radius: 0 16px 16px 0 !important;
  }

  .hero-menu__content {
    gap: 12px;
  }
}

/* /styles/components/feed-controls.css */
/* Multi-channel feed controls and source identity. */
.page-search .results-bar--search {
  min-height: 58px;
  padding: 10px 12px 10px 14px;
  border-color: color-mix(in srgb, var(--line) 94%, var(--text-soft));
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 3px 12px rgb(25 36 57 / 4%);
  backdrop-filter: none;
}

.page-search .results-bar--search::before {
  display: none;
  content: none;
}

.page-search .results-bar__intro {
  display: grid;
  gap: 4px;
}

.page-search .results-bar__eyebrow {
  color: var(--text-soft);
  font-size: 0.58rem;
  font-weight: 760;
  letter-spacing: 0.065em;
  line-height: 1;
  text-transform: uppercase;
}

.page-search .results-bar__summary {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 10px;
}

.page-search .results-bar__headline {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 790;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-search .results-bar__subline {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  white-space: nowrap;
}

.page-search .results-bar__clear {
  min-height: 30px;
  padding-inline: 10px;
  border-color: color-mix(in srgb, var(--line) 94%, var(--text-soft));
  border-radius: 6px;
  background: transparent;
  color: color-mix(in srgb, var(--text-soft) 88%, var(--text));
  font-size: 0.68rem;
  font-weight: 720;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.page-search .results-bar__clear:hover,
.page-search .results-bar__clear:focus-visible {
  border-color: var(--line-strong);
  background: var(--surface-muted);
  color: var(--text);
}

@media (max-width: 860px) {
  .page-search .results-bar--search {
    min-height: 0;
    padding: 10px 11px 10px 12px;
  }

  .page-search .results-bar__summary {
    flex-wrap: wrap;
    row-gap: 4px;
  }
}

.feed-settings {
  position: relative;
  z-index: 8;
  width: fit-content;
  margin: 0 0 8px auto;
}

.feed-settings__summary {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  border-radius: 8px;
  background: var(--surface-strong);
  color: color-mix(in srgb, var(--text) 86%, var(--text-soft));
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1;
  list-style: none;
  cursor: pointer;
  transition:
    background var(--transition-base),
    border-color var(--transition-base),
    color var(--transition-fast),
    box-shadow var(--transition-base);
}

.feed-settings__summary::-webkit-details-marker {
  display: none;
}

.feed-settings__summary:hover,
.feed-settings__summary:focus-visible,
.feed-settings[open] .feed-settings__summary {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  color: var(--text);
}

.feed-settings__icon,
.feed-settings__icon svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.feed-settings__icon {
  color: var(--accent-strong);
}

.feed-settings__count {
  display: inline-flex;
  min-width: 29px;
  height: 20px;
  align-items: center;
  justify-content: center;
  padding-inline: 5px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 7%, var(--surface-muted));
  color: var(--accent-strong);
  font-size: 0.65rem;
  font-variant-numeric: tabular-nums;
  font-weight: 820;
}

.hero-nav__cluster {
  position: relative;
  display: inline-flex;
  align-self: stretch;
  align-items: center;
  gap: 1px;
}

.hero-nav__cluster::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.hero-nav__cluster .hero-nav__item::after {
  display: none;
}

.hero-nav__cluster:has(.feed-settings__summary:focus-visible) {
  border-radius: 6px;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 34%, transparent);
}

.hero-nav-shell.is-fixed .hero-nav__cluster::after {
  bottom: 4px;
}

.feed-settings--nav,
.feed-settings--mobile {
  flex: 0 0 auto;
  margin: 0;
}

.feed-settings--nav {
  display: flex;
  align-self: stretch;
  align-items: center;
}

.feed-settings--mobile {
  display: none;
}

.feed-settings--nav .feed-settings__summary {
  width: 18px;
  min-width: 18px;
  height: 100%;
  min-height: 0;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  outline: none;
}

.feed-settings--nav .feed-settings__summary:hover,
.feed-settings--nav .feed-settings__summary:focus-visible,
.feed-settings--nav[open] .feed-settings__summary {
  border-color: transparent;
  background: transparent;
  color: var(--accent);
}

.feed-settings--nav .feed-settings__icon,
.feed-settings--nav .feed-settings__icon svg {
  width: 12px;
  height: 12px;
  flex-basis: 12px;
}

.feed-settings--nav .feed-settings__icon {
  transition: transform 140ms ease;
}

.feed-settings--nav[open] .feed-settings__icon {
  transform: rotate(180deg);
}

.feed-settings--nav .feed-settings__label,
.feed-settings--nav .feed-settings__count,
.feed-settings--mobile .feed-settings__label,
.feed-settings--mobile .feed-settings__count {
  display: none;
}

.feed-settings--nav .feed-settings__menu {
  top: calc(100% + 7px);
  right: auto;
  left: 0;
  width: min(282px, calc(100vw - 20px));
  transform-origin: top left;
}

.feed-discovery-hint {
  position: absolute;
  top: calc(100% + 10px);
  left: calc(100% - 22px);
  z-index: 11;
  display: grid;
  width: 206px;
  padding: 10px 34px 10px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--elevation-popover);
  color: var(--text);
  opacity: 0;
  transform: translateY(-6px) scale(0.94);
  transform-origin: 13px top;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.feed-discovery-hint[hidden] {
  display: none;
}

.feed-discovery-hint::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 9px;
  width: 9px;
  height: 9px;
  border-top: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-left: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  background: var(--surface-strong);
  transform: rotate(45deg);
}

.feed-discovery-hint.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.feed-discovery-hint__copy {
  display: grid;
  gap: 2px;
}

.feed-discovery-hint__copy strong {
  font-size: 0.78rem;
  line-height: 1.2;
}

.feed-discovery-hint__copy span {
  color: var(--text-soft);
  font-size: 0.67rem;
  line-height: 1.3;
}

.feed-discovery-hint__close {
  position: absolute;
  top: 7px;
  right: 7px;
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: color-mix(in srgb, var(--text-soft) 88%, transparent);
  font-family: inherit;
  font-size: 0.72rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.feed-discovery-hint__close:hover,
.feed-discovery-hint__close:focus-visible {
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-muted));
  color: var(--text);
}

.feed-discovery-hint__close:active {
  transform: scale(0.97);
}

@keyframes feed-discovery-chevron-nudge {
  0%,
  100% {
    transform: translateY(0);
  }

  24% {
    transform: translateY(2px);
  }

  48% {
    transform: translateY(0);
  }

  72% {
    transform: translateY(2px);
  }
}

.feed-settings.is-feed-discovery-active .feed-settings__icon {
  animation: feed-discovery-chevron-nudge 760ms cubic-bezier(0.16, 1, 0.3, 1) 160ms both;
}

.feed-settings__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  width: min(352px, calc(100vw - 20px));
  gap: 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: 12px;
  background: var(--surface-strong);
  box-shadow: var(--elevation-popover);
  overflow: hidden;
  transform-origin: top right;
  animation: cs3-popover-in var(--transition-base) both;
  will-change: transform, opacity;
}

.feed-settings__topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 10px 0 14px;
  background: color-mix(in srgb, var(--surface-muted) 22%, var(--surface-strong));
}

.feed-settings__panel-title {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 760;
}

.feed-settings__close {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
}

.feed-settings__close:hover,
.feed-settings__close:focus-visible {
  background: var(--surface-muted);
  color: var(--text);
}

.feed-settings__close-icon,
.feed-settings__close-icon svg {
  width: 14px;
  height: 14px;
}

.feed-settings__mode {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: 0 14px 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: color-mix(in srgb, var(--surface-muted) 22%, var(--surface-strong));
}

.feed-settings__mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  width: 100%;
  padding: 3px;
  border: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--surface-muted) 70%, transparent);
}

.feed-settings__mode-link {
  display: inline-flex;
  min-width: 0;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.69rem;
  font-weight: 720;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.feed-settings__mode-link:hover,
.feed-settings__mode-link:focus-visible {
  color: var(--text);
}

.feed-settings__mode-link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 34%, transparent);
  outline-offset: 1px;
}

.feed-settings__mode-link:active {
  transform: scale(0.98);
}

.feed-settings__mode-link.is-active {
  background: var(--surface-strong);
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--text) 7%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--line) 44%, transparent);
  color: var(--text);
}

.feed-settings__heading {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
}

.feed-settings__heading-copy {
  display: grid;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  gap: 3px;
  padding-right: 0;
}

.feed-settings__title {
  display: block;
  margin: 0;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: none;
}

.feed-settings__description {
  display: block;
  margin: 0;
  color: var(--text-soft);
  font-family: var(--font-sans);
  font-size: 0.69rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

.feed-settings__mode > .feed-settings__description {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.feed-settings__heading .feed-settings__description {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.feed-settings__status {
  position: static;
  display: inline-flex;
  min-width: 0;
  min-height: 20px;
  align-items: center;
  padding-inline: 2px;
  color: color-mix(in srgb, var(--text-soft) 86%, transparent);
  font-size: 0.62rem;
  font-variant-numeric: tabular-nums;
  font-weight: 680;
  line-height: 1;
  white-space: nowrap;
}

.feed-settings__heading .feed-settings__select-all {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.66rem;
  font-weight: 740;
  cursor: pointer;
}

.feed-settings__options {
  display: grid;
}

.feed-settings__option {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 34px;
  min-height: 54px;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-top: 1px solid color-mix(in srgb, var(--line) 66%, transparent);
  border-radius: 6px;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    box-shadow var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.feed-settings__option:first-child {
  border-top: 0;
}

.feed-settings__option input {
  grid-column: 3;
  grid-row: 1;
  width: 32px;
  height: 18px;
  margin: 0;
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--line) 92%, var(--text-soft));
  border-radius: 999px;
  background: var(--surface-muted);
  accent-color: var(--accent);
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.feed-settings__option input::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  margin: 2px;
  border-radius: 50%;
  background: var(--surface-strong);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--text) 20%, transparent);
  transition: transform var(--transition-fast);
}

.feed-settings__option input:checked {
  border-color: var(--accent);
  background: var(--accent);
}

.feed-settings__option input:checked::before {
  transform: translateX(14px);
}

.feed-settings__option:hover {
  background: color-mix(in srgb, var(--accent) 4%, transparent);
}

.feed-settings__option:focus-within {
  outline: none;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 24%, transparent);
}

.feed-settings__option:active {
  transform: translateY(1px);
}

.feed-settings__avatar {
  grid-column: 1;
  grid-row: 1;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
}

.feed-settings__channel {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  gap: 2px;
}

.feed-settings__channel strong,
.feed-settings__channel small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-settings__channel strong {
  color: var(--text);
  font-size: 0.77rem;
  line-height: 1.1;
}

.feed-settings__channel small {
  color: var(--text-soft);
  font-size: 0.65rem;
  line-height: 1.1;
}

.feed-settings__handle {
  color: color-mix(in srgb, var(--accent) 68%, var(--text-soft));
  font-weight: 680;
}

.feed-settings__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 36px;
  padding: 5px 14px;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  color: var(--text-soft);
  font-size: 0.65rem;
}

.feed-settings__actions button {
  min-height: 27px;
  border-radius: 6px;
  font-size: 0.69rem;
  font-weight: 760;
}

.feed-settings__heading .feed-settings__select-all:disabled {
  opacity: 0.48;
  cursor: default;
}

.feed-settings__actions button[type="submit"] {
  display: inline-flex;
  min-width: 82px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.feed-settings__actions button[type="submit"]:active:not(:disabled) {
  transform: scale(0.98);
}

.feed-settings__actions button[type="submit"]:disabled {
  border-color: color-mix(in srgb, var(--line) 86%, transparent);
  background: var(--surface-muted);
  color: var(--text-soft);
  cursor: default;
}

.post-card__source-count {
  margin-left: 6px;
  padding-left: 7px;
  border-left: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  color: color-mix(in srgb, var(--accent) 72%, var(--text-soft));
  font-size: 0.66rem;
  font-weight: 720;
}

.home-left-sidebar .vrs-card__logo {
  margin-left: -3px;
}

@media (max-width: 640px) {
  .feed-settings {
    margin-right: 10px;
  }

  .feed-settings--mobile .feed-settings__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    bottom: auto;
    width: min(252px, calc(100vw - 74px));
    max-height: calc(100dvh - 122px);
    overflow-y: auto;
  }
}

@media (max-width: 980px) {
  .feed-settings--nav {
    display: none;
  }

  .hero-menu__item-cluster {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    column-gap: 8px;
    position: relative;
    min-width: 0;
  }

  .hero-menu__item-cluster > .hero-menu__item {
    grid-column: 1 / -1;
    grid-row: 1;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding-right: 66px !important;
  }

  .hero-menu__item-cluster > .feed-settings--mobile {
    position: relative !important;
    inset: auto !important;
    grid-column: 2;
    grid-row: 1;
    z-index: 2;
    display: grid;
    width: 44px;
    height: 44px;
    align-self: center;
    justify-self: end;
    place-items: center;
    margin: 0;
    pointer-events: auto;
  }

  .hero-menu__item-cluster > .feed-settings--mobile .feed-settings__summary {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: transparent;
    box-shadow: none;
    color: var(--accent);
    transition:
      background-color var(--transition-fast),
      color var(--transition-fast),
      transform var(--transition-fast);
  }

  .feed-settings--mobile .feed-settings__icon,
  .feed-settings--mobile .feed-settings__icon svg {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
  }

  .feed-settings--mobile .feed-settings__icon {
    transition: transform 140ms ease;
  }

  .feed-settings--mobile[open] .feed-settings__icon {
    transform: rotate(180deg);
  }

  .feed-settings--mobile[open] .feed-settings__summary,
  .feed-settings--mobile .feed-settings__summary:hover,
  .feed-settings--mobile .feed-settings__summary:focus-visible {
    border-color: transparent;
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    color: var(--accent);
  }

  .feed-settings--mobile .feed-settings__summary:active {
    transform: scale(0.96);
  }

  .feed-settings--mobile .feed-settings__menu {
    z-index: 5;
  }

  .hero-menu__item-cluster > .feed-settings--mobile .feed-settings__menu {
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    z-index: 12;
    width: min(252px, calc(100vw - 74px));
    max-height: calc(100dvh - 148px);
  }

  .hero-menu__group--primary:has(.feed-settings--mobile[open]) {
    position: relative;
    z-index: 10;
    overflow: visible;
  }

  .feed-settings--mobile .feed-settings__mode {
    grid-template-columns: 1fr;
    padding: 0 10px 9px;
  }

  .feed-settings--mobile .feed-settings__topbar {
    grid-template-columns: minmax(0, 1fr) 28px;
    min-height: 38px;
    padding: 6px 10px 0;
  }

  .feed-settings--mobile .feed-settings__panel-title {
    font-size: 0.84rem;
  }

  .feed-settings--mobile .feed-settings__heading {
    min-height: 36px;
    gap: 7px;
    padding-inline: 10px;
  }

  .feed-settings--mobile .feed-settings__option {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    min-height: 50px;
    gap: 7px;
    padding-inline: 10px;
  }

  .feed-settings--mobile .feed-settings__avatar {
    width: 32px;
    height: 32px;
  }

  .feed-settings--mobile .feed-settings__channel strong {
    font-size: 0.72rem;
  }

  .feed-settings--mobile .feed-settings__channel small {
    font-size: 0.61rem;
  }

  .feed-settings--mobile .feed-settings__actions {
    min-height: 38px;
    padding-inline: 10px;
  }

  .hero-menu__item-cluster > .feed-discovery-hint {
    position: relative;
    top: auto;
    left: auto;
    z-index: 1;
    grid-column: 1 / -1;
    grid-row: 2;
    width: auto;
    margin: 4px 0 6px;
    transform-origin: top right;
  }

  .hero-menu__item-cluster > .feed-discovery-hint::before {
    top: -5px;
    right: 15px;
    left: auto;
  }
}

@media (max-width: 380px) {
  .hero-menu__item-cluster {
    grid-template-columns: minmax(0, 1fr) 40px;
    column-gap: 6px;
  }

  .hero-menu__item-cluster > .hero-menu__item {
    padding-right: 58px !important;
  }

  .hero-menu__item-cluster > .feed-settings--mobile {
    width: 40px;
    height: 40px;
  }

  .hero-menu__item-cluster > .feed-settings--mobile .feed-settings__summary {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    border-radius: 13px;
  }

  .hero-menu__item-cluster > .feed-settings--mobile .feed-settings__menu {
    width: min(236px, calc(100vw - 70px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .feed-discovery-hint {
    transition: none;
  }

  .feed-settings__option {
    transition: none;
  }

  .feed-settings__mode-link {
    transition: none;
  }

  .feed-settings.is-feed-discovery-active .feed-settings__icon {
    animation: none;
  }
}

/* /styles/components/system-states.css */
/* CS3NEWS visual step 4: loading, empty and system-state polish */
@keyframes cs3-system-state-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cs3-system-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes cs3-system-pulse {
  0%,
100% {
    opacity: 0.68;
    transform: scale(0.94);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.empty-state,
.matches-empty,
.rankings-empty,
.tournaments-empty {
  border: 1px dashed var(--system-state-border);
  border-radius: var(--radius-card);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--system-state-bg) 96%, transparent), var(--system-state-bg)),
    radial-gradient(circle at top center, color-mix(in srgb, var(--accent) 7%, transparent), transparent 58%);
  box-shadow: var(--elevation-1);
  animation: cs3-system-state-in var(--transition-slow) both;
}

.empty-state,
.matches-empty,
.rankings-empty,
.tournaments-empty {
  color: var(--text-soft);
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 30px 22px;
}

.empty-state::before,
.rankings-empty::before,
.tournaments-empty::before {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--system-state-accent-border);
  border-radius: var(--radius-pill);
  background: var(--system-state-accent-bg);
  color: var(--accent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--surface-strong) 72%, transparent);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
}

.empty-state::before {
  content: "⌕";
}

.empty-state h2,
.empty-state p {
  max-width: 520px;
}

.empty-state h2 {
  margin-bottom: 0;
}

.matches-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 30px 22px;
}

.matches-empty__icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin: 0;
  border: 1px solid var(--system-state-accent-border);
  border-radius: var(--radius-pill);
  background: var(--system-state-accent-bg);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--surface-strong) 72%, transparent);
  font-size: 1.28rem;
}

.matches-empty__title {
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.18;
}

.matches-empty__text {
  max-width: 460px;
  margin: 0;
  color: var(--text-soft);
}

/* Team-filtered matches empty state: identity badge and recovery actions. */
.matches-empty--team {
  position: relative;
  gap: 10px;
  padding: 34px 22px 26px;
}

.matches-empty__badge {
  display: inline-grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid var(--system-state-accent-border);
  border-radius: var(--radius-pill);
  background:
    radial-gradient(circle at 32% 24%, color-mix(in srgb, var(--surface-strong) 82%, transparent), transparent 62%),
    var(--system-state-accent-bg);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--surface-strong) 72%, transparent),
    0 10px 26px color-mix(in srgb, var(--accent) 14%, transparent);
}

.matches-empty__badge::after {
  content: "";
  position: absolute;
  width: 62px;
  height: 62px;
  margin: -62px 0 0 -62px;
  border: 1px dashed color-mix(in srgb, var(--accent) 26%, transparent);
  border-radius: var(--radius-pill);
  animation: cs3-matches-empty-spin 22s linear infinite;
  pointer-events: none;
}

.matches-empty__badge-logo,
.matches-empty__badge-fallback {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.matches-empty__badge-logo {
  overflow: hidden;
  border-radius: 50%;
}

.matches-empty__badge-fallback {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 880;
  letter-spacing: -0.02em;
}

@keyframes cs3-matches-empty-spin {
  to {
    transform: rotate(360deg);
  }
}

.matches-empty--team .matches-empty__title {
  font-size: 1.16rem;
  font-weight: 880;
  letter-spacing: -0.012em;
}

.matches-empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.matches-empty__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--transition-base),
    border-color var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.matches-empty__action--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 22%, transparent);
}

.matches-empty__action--primary:hover,
.matches-empty__action--primary:focus-visible {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 30%, transparent);
}

.matches-empty__action--secondary {
  border-color: color-mix(in srgb, var(--line) 86%, transparent);
  background: color-mix(in srgb, var(--surface-strong) 94%, transparent);
  color: var(--text);
}

.matches-empty__action--secondary:hover,
.matches-empty__action--secondary:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
  background: color-mix(in srgb, var(--accent) 6%, var(--surface-strong));
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.matches-empty__action:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 3px;
}

.matches-empty__action:active {
  transform: translateY(0) scale(0.985);
}

.rankings-empty,
.tournaments-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 24px 18px;
  text-align: center;
  line-height: 1.45;
}

.rankings-empty::before {
  content: "↻";
}

.tournaments-empty::before {
  content: "◌";
}

.matches-tournament-filter__empty,
.matches-side-card__empty,
.sidebar-matches-card__empty,
.popular-card__empty,
.mobile-trend-card__empty,
.vrs-card__empty,
.matches-tournaments-card__tier-empty {
  border-color: var(--system-state-border);
  background: color-mix(in srgb, var(--system-state-bg) 72%, transparent);
  color: color-mix(in srgb, var(--text-soft) 88%, var(--text));
}

.matches-tournament-filter__empty {
  display: grid;
  place-items: center;
  min-height: 42px;
  margin: 8px 10px 10px;
  padding: 8px 10px;
  border: 1px dashed var(--system-state-border);
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 760;
}

.load-more {
  transition:
    opacity var(--transition-fast),
    transform var(--transition-fast);
}

.load-more__status {
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast),
    opacity var(--transition-fast);
}

.load-more[data-load-more-state="idle"] .load-more__status {
  background: color-mix(in srgb, var(--surface-muted) 50%, transparent);
}

.load-more[data-load-more-state="loading"] .load-more__status {
  border-color: var(--system-state-accent-border);
  background: var(--system-state-accent-bg);
  color: color-mix(in srgb, var(--text) 88%, var(--accent));
  box-shadow: var(--elevation-1);
}

.load-more[data-load-more-state="loading"] .load-more__status::before {
  width: 12px;
  height: 12px;
  border: 2px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-top-color: var(--accent);
  background: transparent;
  box-shadow: none;
  animation: cs3-system-spin 720ms linear infinite;
}

.load-more[data-load-more-state="error"] .load-more__status {
  border-color: color-mix(in srgb, var(--system-state-error) 28%, var(--line));
  background: var(--system-state-error-bg);
  color: color-mix(in srgb, var(--system-state-error) 88%, var(--text));
  box-shadow: var(--elevation-1);
}

.load-more[data-load-more-state="error"] .load-more__status::before {
  background: var(--system-state-error);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--system-state-error) 13%, transparent);
  animation: cs3-system-pulse 920ms ease-in-out infinite;
}

.load-more--end span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--system-state-success) 20%, var(--line));
  border-radius: var(--radius-pill);
  background: var(--system-state-success-bg);
  color: color-mix(in srgb, var(--system-state-success) 76%, var(--text));
  font-weight: 780;
}

.load-more--end span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: currentColor;
}

.matches-show-more,
.tournament-section__more {
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    color var(--transition-fast),
    opacity var(--transition-fast),
    transform var(--transition-fast);
}

.matches-show-more.is-loading {
  gap: 8px;
  border-color: var(--system-state-accent-border);
  background: var(--system-state-accent-bg);
  color: color-mix(in srgb, var(--text) 88%, var(--accent));
  opacity: 1;
}

.matches-show-more.is-loading::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-top-color: var(--accent);
  border-radius: var(--radius-pill);
  animation: cs3-system-spin 720ms linear infinite;
}

.matches-show-more.is-loading span {
  opacity: 0.78;
}

.trends-page.is-loading {
  filter: saturate(0.92);
}

@media (max-width: 720px) {
  .empty-state,
.matches-empty,
.rankings-empty,
.tournaments-empty {
    padding: 22px 14px;
  }

  .empty-state::before,
.rankings-empty::before,
.tournaments-empty::before,
.matches-empty__icon {
    width: 36px;
    height: 36px;
  }

  .matches-empty--team {
    padding: 26px 14px 22px;
  }

  .matches-empty__badge,
  .matches-empty__badge::after {
    width: 54px;
    height: 54px;
  }

  .matches-empty__badge::after {
    margin: -54px 0 0 -54px;
  }

  .matches-empty__badge-logo,
  .matches-empty__badge-fallback {
    width: 29px;
    height: 29px;
  }

  .matches-empty__action {
    flex: 1 1 auto;
    min-height: 42px;
    padding: 0 12px;
  }

  .matches-empty__actions {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .empty-state,
.matches-empty,
.rankings-empty,
.tournaments-empty,
.matches-empty__badge::after,
.load-more[data-load-more-state="loading"] .load-more__status::before,
.load-more[data-load-more-state="error"] .load-more__status::before,
.matches-show-more.is-loading::before {
    animation: none !important;
  }

  .matches-empty__action {
    transition-duration: 1ms !important;
  }
}

/* CS3NEWS visual step 5 correction: subtle product module polish */
.matches-toolbar,
.tournaments-toolbar {
  transition:
    border-color var(--transition-base),
    background-color var(--transition-base),
    box-shadow var(--transition-base);
}

.matches-filter,
.matches-tournament-filter__summary,
.sidebar-matches-card__filter {
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.matches-filter:focus-visible,
.matches-tournament-filter__summary:focus-visible,
.sidebar-matches-card__filter:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 3px;
}

.matches-filter:active,
.matches-tournament-filter__summary:active,
.sidebar-matches-card__filter:active {
  transform: scale(0.975);
}

.sidebar-matches-card__filter:hover:not(.is-active) {
  background: var(--surface-hover);
  color: var(--text);
}

.match-feed-card,
.tournament-card {
  transition:
    background-color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.match-feed-card__status {
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    opacity var(--transition-fast);
}

.match-feed-card__logo,
.match-feed-card__logo--fallback,
.match-feed-card__competition-logo,
.matches-tournament-item__logo,
.tournament-card__logo,
.tournament-card__team {
  transition:
    border-color var(--transition-base),
    background-color var(--transition-base),
    box-shadow var(--transition-base);
}

.match-feed-card__competition-copy span:first-child,
.match-feed-card__team-name,
.tournament-card__title,
.tournament-card__facts strong,
.matches-tournament-item__copy span:first-child {
  transition: color var(--transition-fast);
}

.match-feed-card__bookmark {
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.match-feed-card__bookmark:hover,
.match-feed-card__bookmark:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 16%, transparent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}

.match-feed-card__bookmark:active {
  transform: scale(0.94);
}

.matches-tournament-item {
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    transform var(--transition-base);
}

.matches-tournament-item:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

.matches-tournament-item:active {
  transform: scale(0.99);
}

.tournament-card__arrow {
  transition: color var(--transition-fast);
}

/* CS3NEWS visual step 6: mobile product quality polish */
@media (max-width: 860px) {
  :root {
    --mobile-safe-inline: max(8px, env(safe-area-inset-left), env(safe-area-inset-right));
    --mobile-safe-bottom: max(12px, env(safe-area-inset-bottom));
    --mobile-tap-surface: color-mix(in srgb, var(--accent) 6%, transparent);
  }

  .app-shell,
.main-shell,
.page-grid,
.feed-section,
.sidebar,
.matches-page,
.tournaments-page,
.rankings-page,
.post-card,
.match-feed-card,
.tournament-card {
    min-width: 0;
  }

  .theme-toggle,
.hero__search-toggle,
.hero__contact-toggle,
.hero__origin,
.hero-mobile-nav__item,
.hero-mobile-more__summary,
.hero-mobile-more__item,
.hero-menu__toggle,
.hero-menu__item,
.hero-menu__feature,
.matches-filter,
.matches-priority-filter__item,
.matches-tournament-filter__summary,
.matches-date-filter__summary,
.tournaments-filter,
.rankings-region,
.post-card__menu-trigger,
.reaction-pill,
.expand-button,
.sidebar-matches-card__filter,
.sidebar-matches-card__all-link,
.match-feed-card__bookmark {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .theme-toggle,
.hero__search-toggle,
.hero__contact-toggle,
.hero__origin,
.hero-mobile-nav__item,
.hero-mobile-more__summary,
.hero-mobile-more__item,
.hero-menu__toggle,
.hero-menu__item,
.matches-filter,
.matches-priority-filter__item,
.matches-tournament-filter__summary,
.matches-date-filter__summary,
.tournaments-filter,
.rankings-region {
    transition:
      background-color var(--transition-fast),
      border-color var(--transition-fast),
      color var(--transition-fast),
      transform var(--transition-fast);
  }

  .theme-toggle:active,
.hero__search-toggle:active,
.hero__contact-toggle:active,
.hero__origin:active,
.hero-menu__toggle:active {
    transform: scale(0.97);
  }

  .hero-mobile-nav__item:active,
.hero-mobile-more__summary:active,
.hero-mobile-more__item:active,
.hero-menu__item:active,
.matches-filter:active,
.matches-priority-filter__item:active,
.matches-tournament-filter__summary:active,
.matches-date-filter__summary:active,
.tournaments-filter:active,
.rankings-region:active,
.sidebar-matches-card__filter:active {
    background: var(--mobile-tap-surface);
    transform: translateY(1px) scale(0.985);
  }

  .hero-mobile-more__panel,
.hero-menu__panel {
    max-height: min(420px, calc(100dvh - 92px));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .hero-mobile-more__panel {
    transform-origin: top right;
    animation: cs3-mobile-popover-in var(--transition-base) both;
    will-change: transform, opacity;
  }

  .hero-mobile-more__chevron {
    transition: transform var(--transition-fast);
  }

  .hero.is-search-open .search {
    transform-origin: top center;
    animation: cs3-mobile-search-in var(--transition-base) both;
    will-change: transform, opacity;
  }

  .hero.is-search-open .search__input {
    font-size: 16px;
  }

  .matches-toolbar,
.matches-filters,
.matches-toolbar__tools,
.matches-active-summary,
.matches-active-summary__chips,
.page-tournaments .tournaments-toolbar,
.page-tournaments .tournaments-filters,
.page-tournaments .tournaments-toolbar__tools,
.rankings-regions,
.trends-page__periods,
.mobile-trend-card__rail {
    overscroll-behavior-x: contain;
    scroll-padding-inline: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .matches-filter,
.matches-priority-filter__item,
.matches-tournament-filter__summary,
.matches-date-filter__summary,
.tournaments-filter,
.rankings-region,
.trends-page__period {
    scroll-snap-align: start;
  }

  .match-feed-card,
.tournament-card,
.post-card,
.trends-list__item {
    scroll-margin-top: 58px;
  }
}

@media (max-width: 640px) {
  .page-home .app-shell {
    padding-right: max(8px, env(safe-area-inset-right));
    padding-left: max(8px, env(safe-area-inset-left));
  }



  .hero-menu__panel {
    right: max(0px, env(safe-area-inset-right));
    width: min(296px, calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right)));
  }

  .hero-mobile-more__panel {
    right: max(0px, env(safe-area-inset-right));
    max-width: calc(100vw - 18px - env(safe-area-inset-left) - env(safe-area-inset-right));
  }

  .lightbox {
    padding:
      max(12px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
  }

  .lightbox__close,
.lightbox__nav {
    min-width: 44px;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .lightbox__close {
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
  }

  .lightbox__nav--prev {
    left: max(10px, env(safe-area-inset-left));
  }

  .lightbox__nav--next {
    right: max(10px, env(safe-area-inset-right));
  }

  .lightbox__thumbs {
    bottom: max(12px, env(safe-area-inset-bottom));
    max-width: calc(100vw - 20px - env(safe-area-inset-left) - env(safe-area-inset-right));
    -webkit-overflow-scrolling: touch;
  }

  .reaction-toast {
    max-width: calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right));
  }
}

@media (hover: none) and (pointer: coarse) {
  .post-card__menu-trigger:active,
.reaction-pill:active,
.expand-button:active,
.sidebar-matches-card__all-link:active,
.match-feed-card__bookmark:active {
    background: var(--mobile-tap-surface, color-mix(in srgb, var(--accent) 6%, transparent));
    transform: scale(0.98);
  }

  .match-feed-card[data-match-link]:active,
.tournament-card:active,
.sidebar-match-featured[data-match-link]:active,
.sidebar-match-row[data-match-link]:active,
.trends-list__item:active {
    background: color-mix(in srgb, var(--accent) 3.5%, var(--surface));
  }
}

@keyframes cs3-mobile-popover-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cs3-mobile-search-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mobile-more__panel,
.hero.is-search-open .search {
    animation: none !important;
  }

  .theme-toggle,
.hero__search-toggle,
.hero__contact-toggle,
.hero__origin,
.hero-mobile-nav__item,
.hero-mobile-more__summary,
.hero-mobile-more__item,
.hero-menu__toggle,
.hero-menu__item,
.matches-filter,
.matches-priority-filter__item,
.matches-tournament-filter__summary,
.matches-date-filter__summary,
.tournaments-filter,
.rankings-region {
    transition-duration: 1ms !important;
  }
}

/* Mobile utility page shell. */
@media (max-width: 640px) {
  body:is(.page-trends, .page-matches, .page-tournaments, .page-rankings) .app-shell {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding-top: calc(50px + env(safe-area-inset-top)) !important;
    padding-right: max(8px, env(safe-area-inset-right)) !important;
    padding-left: max(8px, env(safe-area-inset-left)) !important;
    box-sizing: border-box;
  }

  body:is(.page-trends, .page-matches, .page-tournaments, .page-rankings) .main-shell {
    margin-top: 8px !important;
  }

  body:is(.page-trends, .page-matches, .page-tournaments, .page-rankings) .page-grid,
body:is(.page-trends, .page-matches, .page-tournaments, .page-rankings) .feed-section,
body:is(.page-trends, .page-matches, .page-tournaments, .page-rankings) .matches-main-stack,
body:is(.page-trends, .page-matches, .page-tournaments, .page-rankings) .tournaments-main-stack {
    width: 100% !important;
    max-width: 100% !important;
  }

  body:is(.page-trends, .page-matches, .page-tournaments, .page-rankings) :is(.trends-page, .matches-page, .tournaments-page, .rankings-page) {
    border-radius: var(--radius-lg) !important;
    overflow: hidden !important;
  }

  body:is(.page-trends, .page-matches, .page-tournaments, .page-rankings) :is(.trends-page__header, .matches-hero, .tournaments-hero, .rankings-hero) {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
  }

  body:is(.page-trends, .page-matches, .page-tournaments, .page-rankings) :is(.trends-page__toolbar, .matches-toolbar, .tournaments-toolbar, .rankings-toolbar) {
    border-radius: 0 !important;
  }
}

/* /styles/components/header.css */
/* Step 7: Search / Header / Navigation polish */
.hero :where(.theme-toggle, .hero__search-toggle, .hero__contact-toggle, .hero-menu__toggle, .hero__origin) {
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.hero :where(.theme-toggle, .hero__search-toggle, .hero__contact-toggle, .hero-menu__toggle, .hero__origin):focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  box-shadow: var(--focus-ring);
}

.hero :where(.theme-toggle, .hero__search-toggle, .hero__contact-toggle, .hero-menu__toggle, .hero__origin):active {
  transform: translateY(1px) scale(0.985);
}

.hero.is-search-open .hero__search-toggle {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  background: color-mix(in srgb, var(--accent) 7%, var(--surface-strong));
  color: var(--accent);
}

.hero__search-toggle {
  position: relative;
  overflow: hidden;
}

.hero__search-toggle .hero__search-toggle-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition:
    opacity var(--transition-fast),
    transform var(--transition-fast);
}

.hero__search-toggle-icon--close {
  opacity: 0;
  transform: scale(0.72) rotate(18deg);
}

.hero.is-search-open .hero__search-toggle-icon--search {
  opacity: 0;
  transform: scale(0.72) rotate(-18deg);
}

.hero.is-search-open .hero__search-toggle-icon--close {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.hero .search {
  transition:
    filter var(--transition-base),
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.hero .search:focus-within .search__icon {
  color: color-mix(in srgb, var(--accent) 46%, var(--text-muted));
}

.hero .search__input {
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    box-shadow var(--transition-fast),
    color var(--transition-fast);
}

.hero .search__input:hover {
  border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
}

.hero .search__input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
  background: var(--surface-strong);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 7%, transparent);
  transform: none;
}

.hero-nav__item,
.hero-menu__item,
.hero-mobile-nav__item,
.hero-mobile-more__summary,
.hero-mobile-more__item {
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.site-breadcrumbs {
  display: flex;
  min-width: 0;
  min-height: 18px;
  align-items: center;
  flex-wrap: nowrap;
  gap: 9px;
  margin: 0 0 7px;
  padding: 11px 0 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.69rem;
  font-weight: 620;
  line-height: 1.2;
  white-space: nowrap;
}

.site-breadcrumbs a,
.site-breadcrumbs__current {
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-breadcrumbs a {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-weight: 650;
  border-radius: 8px;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.site-breadcrumbs__current {
  color: color-mix(in srgb, var(--text-soft) 76%, transparent);
  font-weight: 500;
}

.site-breadcrumbs > span[aria-hidden="true"] {
  flex: 0 0 auto;
  color: color-mix(in srgb, var(--text-muted) 52%, transparent);
}

.site-breadcrumbs a:hover {
  color: var(--accent-strong);
}

.site-breadcrumbs a:focus-visible {
  outline: none;
  color: var(--accent-strong);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}

@media (max-width: 640px) {
  .hero.is-search-open .search__input {
    border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
    background: color-mix(in srgb, var(--accent) 2%, var(--surface-strong));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 6%, transparent);
  }

  .hero.is-search-open .search__icon {
    color: var(--accent);
  }

  .hero__search-toggle .hero__search-toggle-icon svg {
    width: 21px !important;
    height: 21px !important;
  }

  .hero__search-toggle-icon--close svg {
    width: 20px !important;
    height: 20px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__search-toggle .hero__search-toggle-icon,
  .hero .search,
  .hero .search__input,
  .hero :where(.theme-toggle, .hero__search-toggle, .hero__contact-toggle, .hero-menu__toggle, .hero__origin),
  .hero-nav__item,
  .hero-menu__item,
  .hero-mobile-nav__item,
  .hero-mobile-more__summary,
  .hero-mobile-more__item {
    transition-duration: 1ms !important;
  }
}

/* Responsive search icon geometry. */
@media (max-width: 1300px) {
  .hero__search-toggle {
    --search-toggle-icon-size: 18px;
    --search-toggle-icon-scale: 0.8;
    --search-toggle-icon-stroke: 2.2;
    align-items: center !important;
    justify-content: center !important;
  }

  .hero__search-toggle .hero__search-toggle-icon {
    inset: auto !important;
    top: 50% !important;
    left: 50% !important;
    width: var(--search-toggle-icon-size) !important;
    height: var(--search-toggle-icon-size) !important;
    transform: translate(-50%, -50%) !important;
    transform-origin: center center;
  }

  .hero__search-toggle .hero__search-toggle-icon svg {
    width: var(--search-toggle-icon-size) !important;
    height: var(--search-toggle-icon-size) !important;
    stroke-width: var(--search-toggle-icon-stroke) !important;
  }

  .hero__search-toggle-icon--close {
    opacity: 0;
    transform: translate(-50%, -50%) scale(var(--search-toggle-icon-scale)) rotate(18deg) !important;
  }

  .hero.is-search-open .hero__search-toggle-icon--search {
    opacity: 0;
    transform: translate(-50%, -50%) scale(var(--search-toggle-icon-scale)) rotate(-18deg) !important;
  }

  .hero.is-search-open .hero__search-toggle-icon--close {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg) !important;
  }
}

@media (max-width: 980px) {
  .hero__search-toggle {
    --search-toggle-icon-size: 24px;
    --search-toggle-icon-stroke: 2.3;
  }
}

@media (max-width: 860px) {
  .hero__search-toggle {
    --search-toggle-icon-scale: 0.78;
  }
}

/* Shared breadcrumb geometry: catalog pages use the team profile's 38px topbar. */
.page-matches .matches-hero,
.page-rankings .rankings-hero,
.page-tournaments .tournaments-catalog__header,
.page-trends .trends-page .trends-page__header {
  min-height: 38px;
  height: 38px;
}

.page-matches .matches-hero__breadcrumbs,
.page-rankings .rankings-hero__breadcrumbs,
.page-tournaments .tournaments-catalog__breadcrumbs,
.page-trends .trends-page .trends-page__breadcrumbs {
  min-height: 18px;
  height: 100%;
  margin: 0;
  padding: 0;
  align-items: center;
  font-size: 0.69rem;
  line-height: 1;
}

@media (max-width: 700px) {
  .page-matches .matches-hero__breadcrumbs,
  .page-tournaments .tournaments-catalog__breadcrumbs {
    position: static;
    padding: 0 13px;
  }
}

/* /styles/components/interactions.css */
/* Step 8: CS3BET button and mobile menu polish. */
.cs3bet-page .cs3bet-button,
.hero-menu__feature {
  transition:
    border-color var(--transition-base),
    background-color var(--transition-base),
    box-shadow var(--transition-base),
    color var(--transition-base),
    transform var(--transition-base);
}

.cs3bet-page .cs3bet-button:active,
.hero-menu__feature:active {
  transform: translateY(0) scale(0.992);
}


@media (prefers-reduced-motion: reduce) {
  .cs3bet-page .cs3bet-button,
  .hero-menu__feature {
    transition: none !important;
  }
}

/* Step 9: Media / Lightbox / Gallery polish. */
.post-media,
.post-media-album {
  background:
    radial-gradient(circle at 50% 0, color-mix(in srgb, var(--accent) 4%, transparent), transparent 55%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface-muted) 88%, transparent), color-mix(in srgb, var(--surface-strong) 76%, transparent));
  transition:
    border-color var(--transition-base),
    background-color var(--transition-base),
    box-shadow var(--transition-base);
}

.post-media__lightbox-trigger,
.post-media-album__tile {
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .post-media:hover,
  .post-media-album:hover {
    border-color: color-mix(in srgb, var(--accent) 10%, var(--line));
  }

}

.post-media__lightbox-trigger:focus-visible,
.post-media-album__tile:focus-visible,
.post-media-album__nav:focus-visible,
.post-media-album__thumb:focus-visible,
.lightbox__close:focus-visible,
.lightbox__nav:focus-visible,
.lightbox__thumb:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.post-media-album__nav,
.lightbox__close,
.lightbox__nav,
.post-media-album__thumbs,
.lightbox__thumbs {
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  backdrop-filter: blur(14px) saturate(1.08);
}

.post-media-album__nav,
.lightbox__close,
.lightbox__nav {
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    box-shadow var(--transition-fast),
    color var(--transition-fast),
    opacity var(--transition-fast),
    transform var(--transition-fast);
}

.post-media-album__nav:active,
.lightbox__close:active,
.lightbox__nav:active,
.lightbox__thumb:active,
.post-media-album__thumb:active {
  transform: scale(0.96);
}

.post-media-album__nav:active,
.lightbox__nav:active {
  transform: translateY(-50%) scale(0.96);
}

.post-media-album__thumb,
.lightbox__thumb {
  border-radius: 10px;
}

.lightbox__backdrop {
  background:
    radial-gradient(circle at 50% 20%, rgba(37, 99, 235, 0.16), transparent 34%),
    rgba(8, 12, 18, 0.9);
}

.lightbox__content {
  position: relative;
  display: grid;
  place-items: center;
}

.lightbox__content::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.24);
  border-top-color: rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity var(--transition-fast);
  animation: cs3-lightbox-spin 840ms linear infinite;
}

.lightbox__content.is-loading::before {
  opacity: 1;
}

.lightbox__content img,
.lightbox__content video {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  transition:
    opacity var(--transition-base),
    transform var(--transition-base);
}

.lightbox__content.is-loading img,
.lightbox__content.is-loading video {
  opacity: 0.56;
  transform: scale(0.992);
}

.lightbox__thumbs {
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
}

.lightbox__close:hover,
.lightbox__nav:hover,
.lightbox__thumb:hover,
.post-media-album__nav:hover:not(:disabled),
.post-media-album__thumb:hover {
  border-color: rgba(255, 255, 255, 0.34);
}

@keyframes cs3-lightbox-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (max-width: 640px) {
  .lightbox__dialog {
    padding:
      calc(14px + env(safe-area-inset-top))
      calc(10px + env(safe-area-inset-right))
      calc(82px + env(safe-area-inset-bottom))
      calc(10px + env(safe-area-inset-left));
  }

  .lightbox__close {
    top: calc(12px + env(safe-area-inset-top));
    right: calc(12px + env(safe-area-inset-right));
    width: 44px;
    height: 44px;
  }

  .lightbox__nav {
    width: 44px;
    height: 44px;
  }

  .lightbox__nav--prev {
    left: calc(10px + env(safe-area-inset-left));
  }

  .lightbox__nav--next {
    right: calc(10px + env(safe-area-inset-right));
  }

  .lightbox__thumbs {
    bottom: calc(10px + env(safe-area-inset-bottom));
    max-width: calc(100vw - 20px - env(safe-area-inset-left) - env(safe-area-inset-right));
    scroll-padding-inline: 8px;
  }

  .post-media-album__nav {
    width: 42px;
    height: 42px;
  }

  .post-media-album__nav--prev {
    left: 8px;
  }

  .post-media-album__nav--next {
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox__content::before {
    animation: none !important;
  }

  .lightbox__content img,
  .lightbox__content video {
    transition: none !important;
  }
}

/* Step 10: Final mobile consistency pass and lightbox layering fixes. */
body.is-lightbox-open :is(.hero, .hero-nav-shell, .mobile-dock, .scroll-top) {
  pointer-events: none;
}

@media (max-width: 860px) {
  .lightbox__dialog {
    min-height: 100svh;
  }

  .lightbox__close,
  .lightbox__nav,
  .lightbox__thumbs {
    z-index: 3;
  }
}

/* Step 13: Final visual QA pass — small stability guards only. */
:where(
  .hero,
  .hero__top,
  .hero-nav-shell,
  .app-shell,
  .main-shell,
  .page-grid,
  .feed-section,
  .post-card,
  .matches-main-stack,
  .tournaments-main-stack,
  .trends-page,
  .matches-page,
  .tournaments-page,
  .rankings-page,
  .cs3bet-page
) {
  box-sizing: border-box;
  min-width: 0;
}

@media (max-width: 860px) {
  body {
    overflow-x: hidden;
  }

  .app-shell,
  .main-shell,
  .page-grid,
  .feed-section,
  .matches-main-stack,
  .tournaments-main-stack,
  .trends-page,
  .matches-page,
  .tournaments-page,
  .rankings-page,
  .cs3bet-page {
    max-width: 100%;
  }

  .search__input {
    font-size: 16px;
  }

  .hero-menu--mobile .hero-menu__panel,
  .post-menu,
  .reactions-popover {
    max-width: calc(100vw - 24px);
  }

  .scroll-top {
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(78px + env(safe-area-inset-bottom));
  }
}

@media (min-width: 861px) and (max-width: 1300px) {
  .hero__actions {
    align-items: center !important;
    flex-shrink: 0;
  }

  .hero__search-toggle,
  .hero__contact-toggle {
    flex: 0 0 auto;
  }
}

/* /styles/components/news-feed.css */
/* Compact status bar for the curated news feed mode. */
.news-feed-intro {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  width: 100%;
  margin: 0 0 -4px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
}

.news-feed-intro__indicator {
  box-sizing: border-box;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 2px solid color-mix(in srgb, var(--accent-strong) 54%, var(--text-soft));
  border-radius: 50%;
}

.news-feed-intro__indicator > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-strong) 72%, var(--text-soft));
}

.news-feed-intro__copy {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.news-feed-intro h1 {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 760;
  line-height: 1.2;
  white-space: nowrap;
}

.news-feed-intro p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: color-mix(in srgb, var(--text-soft) 88%, transparent);
  font-size: 0.64rem;
  font-weight: 520;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-feed-intro__separator {
  flex: 0 0 auto;
  color: color-mix(in srgb, var(--text-soft) 54%, transparent);
  font-size: 0.72rem;
  line-height: 1;
}

.news-feed-intro a {
  display: inline-flex;
  min-height: 30px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 3px;
  border-radius: 5px;
  background: transparent;
  color: color-mix(in srgb, var(--text-soft) 92%, transparent);
  font-size: 0.65rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color var(--transition-fast),
    transform var(--transition-fast);
}

.news-feed-intro a:hover {
  color: var(--text);
  transform: translateX(-2px);
}

.news-feed-intro a:focus-visible {
  color: var(--text);
  outline: none;
  box-shadow: var(--focus-ring);
}

.news-feed-intro a:active {
  transform: translateX(-2px) scale(0.98);
}

.news-feed-intro__action-mobile {
  display: none;
}

@media (max-width: 999.98px) {
  .feed-section > .sidebar-matches-card--mobile-placement {
    border-radius: var(--radius-card);
  }

  .feed-section > .news-feed-intro {
    order: 3;
    margin-top: -4px;
  }
}

@media (max-width: 600px) {
  .news-feed-intro {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 42px;
    padding-inline: 10px;
  }

  .news-feed-intro p,
  .news-feed-intro__separator,
  .news-feed-intro__action-desktop {
    display: none;
  }

  .news-feed-intro h1 {
    overflow: hidden;
    font-size: 0.68rem;
    text-overflow: ellipsis;
  }

  .news-feed-intro a {
    font-size: 0.63rem;
  }

  .news-feed-intro__action-mobile {
    display: inline;
  }
}

/* /styles/components/telegram-rich-content.css */
.telegram-rich-table {
  margin: 0.78rem 0 0.88rem;
}

.telegram-rich-table figcaption {
  margin: 0 0 0.45rem;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.35;
}

.telegram-rich-table__scroll {
  overflow-x: auto;
  border: 1px solid color-mix(in srgb, var(--line) 92%, transparent);
  border-radius: var(--radius-inner);
  background: color-mix(in srgb, var(--surface-muted) 46%, var(--surface-strong));
  overscroll-behavior-inline: contain;
}

.telegram-rich-table table {
  width: 100%;
  min-width: 360px;
  border-collapse: collapse;
  table-layout: fixed;
}

.telegram-rich-table th,
.telegram-rich-table td {
  padding: 0.62rem 0.72rem;
  border-right: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  color: color-mix(in srgb, var(--text) 92%, var(--text-soft));
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  vertical-align: middle;
}

.telegram-rich-table th {
  background: color-mix(in srgb, var(--surface-muted) 82%, var(--surface-strong));
  color: var(--text);
  font-weight: 680;
}

.telegram-rich-table th:first-child,
.telegram-rich-table td:first-child {
  width: 64%;
}

.telegram-rich-table th:last-child,
.telegram-rich-table td:last-child {
  border-right: 0;
}

.telegram-rich-table tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 600px) {
  .telegram-rich-table__scroll {
    margin-inline: -2px;
  }

  .telegram-rich-table th,
  .telegram-rich-table td {
    padding: 0.58rem 0.62rem;
    font-size: 0.78rem;
  }
}

/* /styles/components/media.css */
/* Lightbox images use the available viewport instead of Telegram preview dimensions. */
.lightbox__content {
  max-width: none;
  max-height: none;
}

.lightbox__content img {
  max-width: none;
  max-height: none;
  background: transparent;
}
