/* ── Live Score Ticker ── */
:root {
  --ticker-height: 52px;
}

/* ── Global Nav helpers ── */
.nav-links > li > a.active {
  color: var(--text-primary);
  font-weight: 600;
}

a.btn {
  text-decoration: none;
}

a.btn-primary {
  color: #000000;
}

.nav-sog-full {
  display: inline;
}

.nav-sog-short {
  display: none;
}

@media (max-width: 1080px) {
  .nav-sog-full {
    display: none;
  }

  .nav-sog-short {
    display: inline;
  }
}

.score-ticker {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 99;
  height: var(--ticker-height);
  max-height: var(--ticker-height);
  overflow: hidden;
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.ticker-viewport {
  position: relative;
  width: 100%;
  height: var(--ticker-height);
  max-height: var(--ticker-height);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-track-wrap {
  flex: 1;
  height: var(--ticker-height);
  max-height: var(--ticker-height);
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  height: var(--ticker-height);
  max-height: var(--ticker-height);
  padding: 0 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
}

.ticker-track::-webkit-scrollbar { display: none; }
.ticker-track.is-dragging { cursor: grabbing; scroll-behavior: auto; }

.ticker-section {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: var(--ticker-height);
  max-height: var(--ticker-height);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker-section:last-child {
  border-right: none;
}

.ticker-organizer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: var(--ticker-height);
  max-height: var(--ticker-height);
  min-width: 46px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.09);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ticker-organizer:hover {
  background: rgba(255, 255, 255, 0.15);
}

.ticker-organizer:focus-visible {
  outline: 2px solid rgba(146, 210, 255, 0.55);
  outline-offset: -2px;
}

.ticker-organizer-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f4f4f5;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
}

.ticker-organizer-label.is-long {
  font-size: 0.58rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.ticker-section-cards {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  height: var(--ticker-height);
  max-height: var(--ticker-height);
  padding: 0 12px;
  overflow: hidden;
}

.ticker-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-family: inherit;
  padding: 0;
}

.ticker-viewport:hover .ticker-arrow { display: flex; }
.ticker-arrow:hover {
  background: rgba(146, 210, 255, 0.2);
  border-color: rgba(146, 210, 255, 0.5);
}

.ticker-arrow-left { left: 4px; }
.ticker-arrow-right { right: 4px; }

.score-card {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  height: 40px;
  max-height: 40px;
  min-width: max-content;
  overflow: hidden;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a.score-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.score-card:hover {
  background: rgba(146, 210, 255, 0.1);
  border-color: rgba(146, 210, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(146, 210, 255, 0.14);
}

a.score-card:focus-visible {
  outline: 2px solid rgba(146, 210, 255, 0.55);
  outline-offset: 2px;
}

.score-card:hover {
  background: rgba(146, 210, 255, 0.06);
  border-color: rgba(146, 210, 255, 0.2);
}

.score-card.is-live {
  border-color: rgba(146, 210, 255, 0.35);
  box-shadow: 0 0 12px rgba(146, 210, 255, 0.08);
}

.score-card.is-placeholder,
.score-card.is-error {
  min-width: max-content;
  justify-content: center;
  color: #71717a;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.score-card.is-error { color: #fca5a5; }

.score-teams {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  flex-shrink: 0;
  pointer-events: none;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1;
  height: 14px;
}

.score-logo {
  width: 12px;
  height: 12px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 2px;
  pointer-events: none;
  user-select: none;
}

.score-logo.is-headshot {
  border-radius: 50%;
  object-fit: cover;
  background: #1a1a1a;
}

.score-abbr {
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1;
}

.score-val {
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1;
  min-width: 12px;
  margin-left: 4px;
  text-align: right;
}

.score-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
  pointer-events: none;
}

.score-status {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #92d2ff;
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1;
}

.score-status.is-final { color: #71717a; }
.score-status.is-scheduled { color: #a1a1aa; }

.score-broadcast {
  font-size: 0.58rem;
  font-weight: 600;
  color: #71717a;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 5px;
  border-radius: 4px;
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1;
}

.ticker-loading .score-card,
.ticker-loading .ticker-organizer { opacity: 0.5; }

@media (max-width: 900px) {
  .ticker-organizer {
    min-width: 40px;
    padding: 0 8px;
  }

  .ticker-organizer-label { font-size: 0.62rem; }
  .ticker-organizer-label.is-long { font-size: 0.54rem; }

  .ticker-section-cards {
    gap: 10px;
    padding: 0 10px;
  }

  .score-card {
    padding: 6px 12px;
    gap: 8px;
  }

  .ticker-arrow { display: none !important; }
}
