.sports-ticker-spacer {
  height: 48px;
}

.sports-ticker {
  position: fixed;
  z-index: 60;
  bottom: calc(67px + env(safe-area-inset-bottom));
  left: 50%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  width: min(100%, 540px);
  height: 43px;
  overflow: hidden;
  transform: translateX(-50%);
  border-block: 1px solid rgba(24, 201, 232, .35);
  background: #040a08;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .42);
}

.sports-ticker-label {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  background: linear-gradient(135deg, #0d99b4, #126173);
  color: #fff;
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 8px 0 16px rgba(0, 0, 0, .36);
}

.sports-ticker-label::after {
  content: "";
  position: absolute;
  top: 0;
  right: -10px;
  border-top: 21px solid transparent;
  border-bottom: 21px solid transparent;
  border-left: 10px solid #126173;
}

.sports-ticker-label i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5963;
  box-shadow: 0 0 0 4px rgba(255, 89, 99, .15);
  animation: tickerLivePulse 1.2s ease-in-out infinite;
}

.ticker-draft .sports-ticker-label {
  gap: 4.9px;
  padding-inline: 9.1px;
  font-size: 9px;
  background: linear-gradient(135deg, #c78a16, #7d560d);
}

.ticker-draft .sports-ticker-label::after {
  right: -7px;
  border-left-width: 7px;
  border-left-color: #7d560d;
}

.ticker-draft .sports-ticker-label i {
  width: 4.9px;
  height: 4.9px;
}

.sports-ticker-window {
  min-width: 0;
  overflow: hidden;
}

.sports-ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  height: 100%;
  animation: tickerScroll var(--ticker-duration) linear infinite;
  will-change: transform;
}

.sports-ticker-item {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 20px;
  border-right: 1px solid rgba(255, 255, 255, .14);
  color: #e9f2ee;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.ticker-score {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ticker-score em,
.ticker-draft-pick em {
  color: var(--cyan);
  font-size: 8px;
  font-style: normal;
  letter-spacing: .08em;
}

.ticker-score b {
  color: #fff;
  font-size: 15px;
}

.ticker-score i {
  color: #64756e;
  font-style: normal;
}

.ticker-score small,
.ticker-draft-pick small {
  color: #82948c;
  font-size: 8px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.ticker-draft-pick {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ticker-draft-pick em {
  color: var(--gold);
}

.ticker-draft-pick b {
  color: #fff2be;
}

.live-team-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-team-number {
  flex: 0 0 auto;
}

.live-roster-photos {
  display: flex;
  align-items: center;
}

.live-roster-photo {
  position: relative;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  margin-left: -7px;
  overflow: hidden;
  border: 2px solid #14261f;
  border-radius: 50%;
  background: linear-gradient(145deg, #1889a2, #416b35);
  color: #fff;
  padding: 0;
  font-size: 10px;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .28);
}

.live-roster-photo:first-child {
  margin-left: 0;
}

.live-roster-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-roster-photo:focus-visible {
  z-index: 2;
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes tickerLivePulse {
  50% { opacity: .42; }
}

.ticker-speed-admin .section-head {
  align-items: flex-start;
}

.ticker-speed-admin .section-head h2 {
  margin-bottom: 4px;
}

.ticker-speed-admin .section-head p {
  max-width: 250px;
  font-size: 10px;
  line-height: 1.4;
}

.ticker-speed-value {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid rgba(71, 255, 203, 0.34);
  border-radius: 999px;
  background: rgba(71, 255, 203, 0.08);
  color: var(--green);
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticker-speed-toggle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 14px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
}

.ticker-speed-toggle button {
  min-height: 38px;
  padding: 8px 6px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  font-weight: 1000;
  cursor: pointer;
}

.ticker-speed-toggle button.active {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #06110d;
  box-shadow: 0 5px 16px rgba(71, 255, 203, 0.2);
}

@media (min-width: 700px) {
  .sports-ticker {
    bottom: calc(87px + env(safe-area-inset-bottom));
  }
}

@media (orientation: landscape) and (max-height: 600px) {
  .sports-ticker {
    bottom: calc(67px + env(safe-area-inset-bottom));
    width: min(100%, 620px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sports-ticker-track {
    animation: none;
  }

  .sports-ticker-window {
    overflow-x: auto;
  }

  .sports-ticker-label i {
    animation: none;
  }
}
