:root {
  /* HarryWins site palette: deep navy + electric blue + cyan/teal accent */
  --hpst-navy: #00152f;
  --hpst-navy-deep: #000b1f;
  --hpst-blue: #003f83;
  --hpst-blue-bright: #0077c8;
  --hpst-cyan: #00c7d9;
  --hpst-cyan-soft: #39e0e8;
  --hpst-text: #ffffff;
}

.hpst-shell {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999999;
  font-family: Arial, Helvetica, sans-serif;
}

.sports-ticker-bar {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: stretch;
  background:
    linear-gradient(90deg,
      var(--hpst-navy-deep) 0%,
      var(--hpst-navy) 33%,
      #002d61 68%,
      var(--hpst-blue) 100%);
  color: var(--hpst-text);
  box-shadow: 0 -5px 22px rgba(0, 10, 30, .42);
  border-top: 2px solid var(--hpst-cyan);
  overflow: hidden;
}

.sports-ticker-title {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 22px;
  background: linear-gradient(135deg, #00b8ca 0%, var(--hpst-cyan) 60%, #00a8c8 100%);
  color: #00152f;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  box-shadow: 8px 0 20px rgba(0,0,0,.28);
}

.sports-ticker-title::after {
  content: "";
  position: absolute;
  right: -13px;
  top: 0;
  border-top: 24px solid transparent;
  border-bottom: 24px solid transparent;
  border-left: 13px solid var(--hpst-cyan);
}

.sports-ticker-wrap {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  cursor: default;
}

.sports-ticker-move {
  display: inline-flex;
  width: max-content;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: hpst-scroll 95s linear infinite;
}

.sports-ticker-wrap:hover .sports-ticker-move {
  animation-play-state: paused;
}

.sports-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 22px;
  height: 48px;
  border-right: 1px solid rgba(0, 199, 217, .25);
  font-size: 13px;
  line-height: 1;
}

.sports-ticker-item .sport {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .6px;
  color: var(--hpst-cyan-soft);
  opacity: .95;
}

.sports-ticker-item .team {
  font-weight: 800;
}

.sports-ticker-item .score {
  display: inline-flex;
  min-width: 20px;
  height: 22px;
  padding: 0 5px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: rgba(0, 199, 217, .13);
  border: 1px solid rgba(0, 199, 217, .22);
  font-weight: 900;
}

.sports-ticker-item .sep {
  color: var(--hpst-cyan-soft);
  opacity: .72;
  font-size: 11px;
}

.sports-ticker-item .status {
  margin-left: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .3px;
  color: #c8f9ff;
  opacity: .88;
  text-transform: uppercase;
}

.sports-ticker-item.is-live .status {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--hpst-cyan);
  color: #00152f;
  opacity: 1;
  box-shadow: 0 0 12px rgba(0, 199, 217, .28);
}

.sports-ticker-close-btn {
  flex: 0 0 46px;
  width: 46px;
  border: 0;
  border-left: 1px solid rgba(0, 199, 217, .30);
  background: rgba(0, 9, 28, .45);
  color: #fff;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.sports-ticker-close-btn:hover,
.sports-ticker-close-btn:focus-visible {
  background: rgba(0, 199, 217, .16);
  color: var(--hpst-cyan-soft);
}

.hpst-show-btn {
  position: fixed;
  right: 18px;
  bottom: 0;
  z-index: 999999;
  display: none;
  border: 1px solid rgba(0, 199, 217, .45);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--hpst-navy) 0%, var(--hpst-blue) 100%);
  color: var(--hpst-cyan-soft);
  box-shadow: 0 -3px 12px rgba(0,0,0,.30);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

body.hpst-hidden .hpst-shell { display: none; }
body.hpst-hidden .hpst-show-btn { display: block; }

@keyframes hpst-scroll {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%,0,0); }
}

@media (max-width: 700px) {
  .sports-ticker-bar,
  .sports-ticker-item { min-height: 44px; height: 44px; }
  .sports-ticker-title { padding: 0 15px; font-size: 11px; }
  .sports-ticker-title::after {
    border-top-width: 22px;
    border-bottom-width: 22px;
  }
  .sports-ticker-item { padding: 0 15px; font-size: 12px; gap: 5px; }
  .sports-ticker-item .status { font-size: 9px; }
  .sports-ticker-close-btn { flex-basis: 40px; width: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .sports-ticker-move { animation-duration: 180s; }
}
