/* --- Heading --- */
.jpsr-weekend-heading {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #14234b;
  text-align: left;
  margin-top: 0.5rem;       /* reduced top margin */
  margin-bottom: 0.4rem;    /* slightly tighter bottom gap */
  line-height: 1.2;         /* keeps it visually compact */
}

/* --- Scroller --- */
.jpsr-scroller {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  gap: 0.8rem;
  padding: 0.6rem 0 1rem;
  scrollbar-width: thin;
  scrollbar-color: #003d80 #e6ebf5;
}

.jpsr-scroller::-webkit-scrollbar {
  height: 6px;
}
.jpsr-scroller::-webkit-scrollbar-track {
  background: #e6ebf5;
  border-radius: 10px;
}
.jpsr-scroller::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #003d80 0%, #0056b3 100%);
  border-radius: 10px;
}

/* --- Card Container --- */
.jpsr-item {
  flex: 0 0 calc(25% - 0.5rem);
  scroll-snap-align: start;
  min-width: 200px;
  transition: transform 0.25s ease;
}
.jpsr-item:hover {
  transform: translateY(-3px);
}

/* --- Card --- */
.jpsr-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* --- Header (team + opponent) --- */
.jpsr-header {
  font-weight: 700;
  text-transform: uppercase;
  color: #14234b;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  line-height: 1.3;
}

.jpsr-opponent {
  color: #666;
  font-weight: 500;
  font-size: 0.8rem;
  margin-top: 0.1rem; /* tighter vertical spacing */
}

/* --- Meta (date + time) --- */
.jpsr-meta {
  font-size: 0.75rem;
  color: #888;
  margin-top: 0.2rem;
  margin-bottom: 0.4rem; /* tighter spacing before score */
  line-height: 1.2;
}

/* --- Score --- */
.jpsr-score {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  line-height: 1.1;
  margin-top: 0.1rem;
}

.jpsr-score-erci { color: #003d80; }
.jpsr-score-opponent { color: #a00; }
.jpsr-divider { color: #333; }

/* --- Win/Loss/Draw coloring --- */
.jpsr-item.win .jpsr-score-erci { color: #0a8a0a; }
.jpsr-item.loss .jpsr-score-erci { color: #a00; }
.jpsr-item.draw .jpsr-score-erci { color: #444; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .jpsr-item { flex: 0 0 calc(50% - 0.5rem); }
}

@media (max-width: 600px) {
  .jpsr-item { flex: 0 0 calc(100% - 0.5rem); }
  .jpsr-card { padding: 0.6rem; }
  .jpsr-header { font-size: 0.95rem; }
  .jpsr-score { font-size: 1.2rem; }
}

/* Subtle blue accent for future games */
.jpsr-item.future .jpsr-card::before {
  background: #003d80;
}

.jpsr-no-games {
  text-align: center;
  color: #444;
  font-size: 0.9rem;
  margin: 0.5rem 0 1rem;
}

.jpsr-no-games .jpsr-link {
  color: #003d80;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.jpsr-no-games .jpsr-link:hover {
  border-color: #003d80;
}
