/* === 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;
  }
}
