/* ─────────────────────────────────────────────────
   scores.css — live score strip above the message list
   Follows the house style: hairline borders, soft radii,
   coral/gold accents, no heavy shadows.
   ───────────────────────────────────────────────── */

/* Cards WRAP to fill the available width instead of scrolling off-screen to
   the right (which hid matches behind the members panel). Height is capped so
   a busy fixture list can never push the message area off the page. */
.score-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 8px;
  padding: 8px 12px;
  max-height: 34vh;
  overflow-y: auto;
  overflow-x: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--surface2, #f6f5f1);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.score-strip::-webkit-scrollbar { width: 6px; }
.score-strip::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.sc-card {
  min-width: 0;                /* lets grid cells shrink instead of overflowing */
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface, #fff);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Hero variant: single fixture inside a dedicated match room */
.sc-card.sc-hero {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border-radius: 16px;
  gap: 5px;
}

.sc-card.sc-live { border-color: var(--rose, #e8607a); }

.sc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.sc-comp {
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-hero .sc-comp { font-size: 11.5px; white-space: normal; }

/* Pulsing live indicator */
.sc-dot {
  flex: 0 0 auto;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rose, #e8607a);
  animation: scPulse 1.6s ease-in-out infinite;
}
@keyframes scPulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: .45; transform: scale(.82); }
}

.sc-side {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.sc-side.sc-dim { opacity: .5; }

.sc-team {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #0a0a0a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;                /* ellipsis needs this inside a flex row */
}
.sc-hero .sc-team { font-size: 15px; }

.sc-score {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink, #0a0a0a);
  white-space: nowrap;
}
.sc-hero .sc-score { font-size: 16px; }

.sc-status {
  margin-top: 1px;
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-hero .sc-status { font-size: 12px; white-space: normal; }
.sc-live .sc-status { color: var(--rose, #e8607a); font-weight: 600; }

/* "Full scorecard ↗" — only on the hero card inside a match room */
.sc-more {
  margin-top: 6px;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  color: var(--rose, #e8607a);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.sc-more:hover { border-bottom-color: currentColor; }

/* Freshness stamp + attribution for the free ESPNcricinfo RSS feed */
.sc-credit {
  grid-column: 1 / -1;
  padding-top: 2px;
  font-size: 10px;
  color: var(--muted);
  text-align: right;
  opacity: .75;
}

@media (max-width: 640px) {
  /* Two columns on phones, and a tighter cap so the score grid never
     swallows the message list. */
  .score-strip {
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    padding: 6px 10px;
    gap: 6px;
    max-height: 28vh;
  }
  .sc-card { padding: 7px 9px; }
  .sc-team { font-size: 12.5px; }
  .sc-score { font-size: 12.5px; }
}
