/* Sticky app chrome */
.app-chrome {
  position: sticky;
  top: 0;
  z-index: var(--z-chrome);
  background: var(--color-header-bg);
}

.top-bar {
  background: var(--color-header-bg);
}

/* Site header */
.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 12px var(--space-page);
}

.site-header__logo {
  display: block;
  width: 97px;
  height: 19px;
  color: var(--color-white);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  color: var(--color-white);
}

.icon-btn:focus-visible {
  outline: 2px solid var(--color-accent-yellow);
  outline-offset: 2px;
  border-radius: 4px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 8px;
  background: var(--color-white);
  color: var(--color-black);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* Primary tabs SCORES / News */
.primary-tabs {
  display: flex;
  width: 100%;
}

.primary-tabs__item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--tab-height);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.primary-tabs__item--active {
  color: var(--color-white);
  background: var(--color-tab-inactive-bg);
  border-bottom: 4px solid var(--color-accent-yellow);
}

.primary-tabs__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: inherit;
}

/* Language popover content */
.lang-popover {
  --width: var(--lang-popover-width);
  --max-width: var(--lang-popover-width);
  --border-radius: var(--radius-popup);
  --box-shadow: var(--shadow-popup);
  --offset-y: var(--lang-popover-gap);
  --lang-popover-gap: 20px;
  z-index: calc(var(--z-chrome) + 50);
}

.lang-popover__inner {
  padding: 8px;
}

.lang-popover__heading {
  padding: 8px 12px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-black);
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: none;
  border-radius: var(--radius-lang-item);
  background: transparent;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  color: var(--color-black);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.lang-item:hover {
  background: rgba(0, 0, 0, 0.03);
}

.lang-item--active {
  background: var(--color-lang-active-bg);
}

.lang-item__flag {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}