/* Structure only — brand colors (Tickets pill, text, borders) live in the theme. */
.ticker {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 63px;
}

.ticker .ticker-track {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.ticker .ticker-track::-webkit-scrollbar {
  display: none;
}

.ticker .ticker-game {
  flex: 0 0 auto;
}

/* divider between games (structure; color from the theme) */
.ticker .ticker-game + .ticker-game {
  border-left: 1px solid var(--light-color);
}

.ticker .ticker-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 63px;
  text-decoration: none;
  white-space: nowrap;
}

.ticker .ticker-logo {
  display: inline-flex;
  align-items: center;
  width: 24px;
  height: 24px;
}

.ticker .ticker-logo .icon,
.ticker .ticker-logo img,
.ticker .ticker-logo svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ticker .ticker-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.ticker .ticker-matchup {
  font-size: var(--body-font-size-s);
  font-weight: 700;
}

.ticker .ticker-time {
  font-size: var(--body-font-size-xs);
  font-weight: 700;
}

/* fully-rounded pill, tight padding */
.ticker .ticker-tickets {
  padding: 4px 8px;
  border-radius: 100vmax;
  font-size: var(--body-font-size-s);
  font-weight: 700;
  line-height: 14px;
}

/* ===== Controls cluster: prev/next + view-all, pinned at the right end ===== */
.ticker .ticker-controls {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 16px;
}

.ticker .ticker-prev,
.ticker .ticker-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.ticker .ticker-prev .icon,
.ticker .ticker-next .icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

/* view-all is a full-height rectangular cell (its hover fills the rectangle),
   separated from the games by a divider matching the inter-game dividers */
.ticker .ticker-viewall {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 63px;
  height: 63px;
  border-left: 1px solid var(--light-color);
}

.ticker .ticker-viewall .icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
}

.ticker .ticker-controls .icon svg,
.ticker .ticker-controls .icon img {
  width: 100%;
  height: 100%;
}

/* At/above the content cap the whole rail fits, so the scroll arrows are
   unnecessary — hide them and let the games grow to absorb the freed space
   (no leftover whitespace before the view-all). */
@media (width >= 1600px) {
  .ticker .ticker-prev,
  .ticker .ticker-next {
    display: none;
  }

  .ticker .ticker-game {
    flex: 1 1 auto;
  }
}
