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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.teams-search__clear {
  right: 108px;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.tournament-profile {
  padding: 18px;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  .directory-sort__icon {
    display: none;
  }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

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

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

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

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

  to {
    opacity: 1;
  }
}

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

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

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

  to {
    transform: scale(1);
  }
}

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

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

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

body::before {
  content: none;
}

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

button,
input {
  font: inherit;
}

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

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

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

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

.hero__identity {
  min-width: 0;
}

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

.hero__copy {
  min-width: 0;
}

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

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

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

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

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

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

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

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

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

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


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

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

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


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

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

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

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

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

.search__input:hover {
  background: #edf2f9;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.hero__origin {
  white-space: nowrap;
}

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

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

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

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

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

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

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

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

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

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

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

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


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


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

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


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

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

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

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

.trends-page__breadcrumbs a {
  color: inherit;
}

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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


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


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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.link-preview__media {
  overflow: hidden;
}

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

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

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


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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

.post-menu__danger {
  color: #d94a3a;
}

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

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

.sidebar-card {
  padding: 16px;
}


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


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


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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.load-more__meta {
  display: none;
}

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

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

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

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

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

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

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

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

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

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

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

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

.lightbox[hidden] {
  display: none;
}

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

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

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

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

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

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

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

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

.lightbox__nav[hidden] {
  display: none;
}

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

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

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

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

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

.lightbox__thumbs[hidden] {
  display: none;
}

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

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

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

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

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

.lightbox__thumb img {
  object-fit: cover;
}

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  .sidebar {
    position: static;
  }

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

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

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

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

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

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

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

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

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

  .hero__origin {
    flex: 0 0 auto;
  }

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

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

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

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

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

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

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

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

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

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

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

  .post-card {
    padding: 14px;
  }

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

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

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

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

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

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

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

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

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

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

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

  .hero__meta {
    font-size: 0.82rem;
  }

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

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

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

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

  .search__icon {
    left: 22px;
  }

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

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

@media (max-width: 640px) {


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

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

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

  .hero {
    gap: 8px;
  }

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

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

  .popular-card {
    display: none;
  }

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

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

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

  .trends-list {
    gap: 8px;
  }

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

  .trends-list__item:not(.trends-list__item--leader) {
    grid-template-areas:
      "rank thumb body"
      "rank thumb meta";
  }

  .trends-list__item--leader {
    grid-template-areas: "rank thumb body";
    background:
      linear-gradient(
        135deg,
        color-mix(in srgb, var(--accent) 6%, transparent),
        transparent 52%
      ),
      var(--surface-strong);
  }

  .trends-list__rank,
.trends-list__item--leader .trends-list__rank {
    position: static;
    grid-area: rank;
    align-self: center;
    justify-self: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 0.78rem;
    box-shadow: none;
  }

  .trends-list__item--leader .trends-list__rank {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
  }

  .trends-list__thumb,
.trends-list__item--leader .trends-list__thumb {
    grid-area: thumb;
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
  }

  .trends-list__body,
.trends-list__item:not(.trends-list__item--leader) .trends-list__body {
    grid-area: body;
    align-self: end;
    min-width: 0;
    gap: 4px;
    padding: 0;
    justify-content: center;
  }

  .trends-list__item--leader .trends-list__body {
    grid-area: body;
    align-self: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: 0;
  }

  .trends-list__title,
.trends-list__item--leader .trends-list__title {
    font-size: 0.92rem;
    line-height: 1.16;
    -webkit-line-clamp: 2;
  }

  .trends-list__excerpt {
    display: none;
  }

  .trends-list__item:not(.trends-list__item--leader) > .trends-list__meta {
    grid-area: meta;
    align-self: start;
    justify-self: stretch;
  }

  .trends-list__meta,
.trends-list__item--leader .trends-list__meta,
.trends-list__item:not(.trends-list__item--leader) .trends-list__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
    margin-top: 0;
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 750;
    white-space: nowrap;
  }

  .trends-list__stats,
.trends-list__item--leader .trends-list__stats {
    gap: 8px;
    min-width: 0;
    font-size: inherit;
  }

  .trends-list__time,
.trends-list__item--leader .trends-list__time {
    margin-left: auto;
    white-space: nowrap;
  }

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

  .trends-list__play {
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
  }

  .trends-list__play::before {
    border-top-width: 5px;
    border-bottom-width: 5px;
    border-left-width: 8px;
  }

  .hero__identity {
    align-items: center;
    gap: 10px;
    width: 100%;
  }

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

  .hero__title {
    max-width: 100%;
    font-size: clamp(1.04rem, 4.1vw, 1.22rem);
    line-height: 1.08;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero__eyebrow {
    display: flex;
    max-width: 100%;
    margin-bottom: 2px;
    font-size: 0.58rem;
    line-height: 1;
  }

  .hero__subscribers-inline {
    max-width: 88px;
  }

  .hero__meta {
    display: block;
    max-width: 100%;
    margin-top: 3px;
    font-size: 0.72rem;
    line-height: 1.05;
  }

  .hero__meta--tagline {
    display: none;
  }

  .hero__controls {
    width: 100%;
  }

  .hero__actions {
    display: grid;
    gap: 8px;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: stretch;
    order: 1;
  }

  .hero__search-toggle {
    display: inline-flex;
  }

  .search {
    order: 2;
    width: 100%;
    max-width: none;
  }

  .has-mobile-search-toggle .hero:not(.is-search-open) .search {
    display: none;
  }

  .theme-toggle,
.hero__search-toggle,
.hero__contact-toggle,
.hero-menu__toggle,
.hero__origin {
    height: 44px;
    min-height: 44px;
    border-radius: 14px;
  }

  .theme-toggle,
.hero__search-toggle,
.hero__contact-toggle,
.hero-menu__toggle {
    width: 44px;
  }

  .hero-menu__panel {
    right: 0;
    width: min(178px, calc(100vw - 38px));
  }

  .hero__origin {
    padding: 0 12px;
    font-size: 0.92rem;
  }

  .post-card__header,
.post-card__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .post-card__author {
    padding-right: 42px;
  }

  .post-card__author--detail {
    padding-right: 0;
  }

  .post-card__footer {
    flex-wrap: wrap;
  }

  .post-card__reactions-set--desktop {
    display: none;
  }

  .post-card__reactions-set--mobile {
    width: 100%;
  }

  .post-card__reactions-set--mobile .reaction-pill {
    justify-content: center;
    gap: 4px;
    padding-right: 6px;
    padding-left: 6px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .post-card__reactions-set--mobile .reaction-pill:not(.reaction-pill--more) {
    flex: 0 1 auto;
  }

  .post-card__reactions-set--mobile .reaction-pill--more {
    flex: 0 0 auto;
  }


  .post-card__reactions-set--mobile .reaction-pill span:not(.reaction-pill__emoji) {
    overflow: visible;
    min-width: 0;
    text-overflow: clip;
    white-space: nowrap;
  }


  .post-card__stat--time {
    text-align: left;
  }

  .read-also {
    padding: 14px;
  }

  .read-also__grid {
    grid-template-columns: 1fr;
  }

  .read-also__card {
    display: grid;
    grid-template-columns: minmax(96px, 118px) minmax(0, 1fr);
  }

  .read-also__thumb {
    height: 100%;
    min-height: 92px;
    aspect-ratio: auto;
  }

  .read-also__body {
    min-height: 92px;
  }

  .read-also__headline {
    -webkit-line-clamp: 3;
  }

  .post-menu-wrap {
    align-self: flex-end;
  }


  .post-card--detail .post-card__header-main {
    align-items: center;
    flex-direction: row;
  }

  .post-card__header-main .post-card__author {
    padding-right: 0;
  }

  .popular-item {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .channel-card {
    display: block;
    text-align: center;
  }

  .channel-card__avatar-wrap {
    margin-bottom: 12px;
  }

  .channel-card__description {
    margin-left: auto;
    margin-right: auto;
  }

  .channel-card__button {
    width: 100%;
  }

  .lightbox__dialog {
    padding: 16px 12px 84px;
  }

  .lightbox__content,
.lightbox__content img,
.lightbox__content video {
    max-height: calc(92vh - 84px);
  }

  .lightbox__close {
    top: 16px;
    right: 16px;
  }

  .lightbox__nav {
    width: 42px;
    height: 42px;
  }

  .lightbox__nav--prev {
    left: 12px;
  }

  .lightbox__nav--next {
    right: 12px;
  }

  .lightbox__thumbs {
    bottom: 12px;
    left: 50%;
    max-width: calc(100vw - 20px);
  }

  .lightbox__thumb {
    flex-basis: 54px;
    width: 54px;
    height: 38px;
  }
}

@media (max-width: 360px) {

  .trends-list__item,
.trends-list__item--leader,
.trends-list__item:not(.trends-list__item--leader) {
    grid-template-columns: 32px 96px minmax(0, 1fr);
    gap: 7px 8px;
  }

  .trends-list__title,
.trends-list__item--leader .trends-list__title {
    font-size: 0.88rem;
  }

  .trends-list__meta {
    font-size: 0.68rem;
  }
}


.matches-page {
  width: 100%;
  min-width: 0;
}


@media (max-width: 720px) {
  .matches-hero {
    border-radius: 20px;
    padding: 18px;
  }
}

.matches-empty {
  background: rgba(255, 255, 255, 0.92);
  border: 1px dashed rgba(15, 23, 42, 0.16);
  border-radius: 22px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.matches-empty__icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 10px;
}

.matches-empty__title {
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 6px;
}

.matches-empty__text {
  color: rgba(15, 23, 42, 0.62);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}
