/* =============================================================================
   Score Strip Slider Template
   ============================================================================= */

.pp-ss-container {
  --ss-h: 80px;

  display: none; /* hidden until Glider.js initialises; JS adds .pp-ss-ready */
  width: 100%;
  background: var(--pp-scorestrip-strip_bg);
  font-family: var(--pp-scorestrip-strip_font,
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

.pp-ss-container.pp-ss-ready {
  display: block;
}

/* ── Outer flex row: [prev] [glider] [next] ── */
.pp-ss-inner {
  display: flex;
  align-items: stretch;
  height: var(--ss-h);
}

/* ── Nav arrow buttons — flush with strip height ── */
.pp-ss-nav {
  flex-shrink: 0;
  width: 44px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pp-scorestrip-nav_bg);
  color: var(--pp-scorestrip-nav_text);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.15s ease;
}

.pp-ss-nav:hover {
  opacity: 0.8;
}

.pp-ss-nav.disabled,
.pp-ss-nav:disabled {
  opacity: 0.25;
  cursor: default;
}

/* ── Glider wrapper — fills remaining width ── */
.pp-ss-glider-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

/* ── Glider.js overrides ── */
.pp-ss-container .glider {
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  margin-left: 0 !important; /* Cancel gameslider.css's unscoped -10px bleed */
}

.pp-ss-container .glider-track {
  display: flex;
  width: 100%;
  height: var(--ss-h);
  margin: 0;
  padding: 0;
}

.pp-ss-container .glider-slide {
  height: var(--ss-h) !important;
  min-width: 0;
  margin-left: 0; /* Cancel gameslider.css's unscoped 10px bleed */
}

/* ── Score item (completed game) ── */
.pp-ss-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  height: var(--ss-h);
  border-right: 1px solid var(--pp-scorestrip-item_divider);
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

/* ── Date label ── */
.pp-ss-date {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pp-scorestrip-date_text);
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1;
}

/* ── Two-row matchup block ── */
.pp-ss-matchup {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1;
}

.pp-ss-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

/* ── Team logos ── */
.pp-ss-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.pp-ss-logo--lg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

/* ── Team name ── */
.pp-ss-team {
  flex: 1;
  min-width: 0;
  color: var(--pp-scorestrip-team_dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pp-ss-row--won .pp-ss-team {
  color: var(--pp-scorestrip-team_bright);
}

/* ── Score ── */
.pp-ss-pts {
  min-width: 18px;
  text-align: right;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--pp-scorestrip-score_loser);
}

.pp-ss-row--won .pp-ss-pts {
  color: var(--pp-scorestrip-score_winner);
}

/* ── Status / "Final" tag ── */
.pp-ss-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pp-scorestrip-date_text);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}

/* "Next" badge variant */
.pp-ss-tag--next {
  background: var(--pp-scorestrip-next_badge_bg);
  color: var(--pp-scorestrip-next_badge_text);
  padding: 4px 7px;
  border-radius: 3px;
}

/* ── Upcoming game item ── */
.pp-ss-upcoming {
  flex: 1;
  min-width: 0;
}

.pp-ss-upcoming-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--pp-scorestrip-team_bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.pp-ss-upcoming-detail {
  font-size: 11px;
  color: var(--pp-scorestrip-date_text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
  line-height: 1;
}

/* ── Recap overlay — slides up from below on hover/tap ── */
.pp-ss-item--has-recap {
  position: relative;
  overflow: hidden;
}

.pp-ss-recap-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 14px;
  background: var(--pp-scorestrip-overlay_bg);
  color: var(--pp-scorestrip-overlay_text);
  transform: translateY(100%);
  transition: transform 0.22s ease;
}

.pp-ss-item--has-recap:hover .pp-ss-recap-overlay,
.pp-ss-item--recap-open .pp-ss-recap-overlay {
  transform: translateY(0);
}

.pp-ss-recap-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  opacity: 0.75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
  line-height: 1;
}

.pp-ss-recap-title {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  flex: 1;
}

.pp-ss-recap-link {
  display: block;
  margin-top: auto;
  font-size: 11px;
  font-weight: 700;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  line-height: 1;
}

.pp-ss-recap-hint {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--pp-scorestrip-recap_hint);
  pointer-events: none;
  line-height: 0;
}

/* ── Mobile scrollbar ── */
@media (max-width: 640px) {
  .pp-ss-container .glider::-webkit-scrollbar {
    opacity: 1;
    -webkit-appearance: none;
    height: 2px;
  }

  .pp-ss-container .glider::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background-color: rgba(255, 255, 255, 0.15);
  }
}
