/* =========================
   Predictions page theme
   Keeps HTML + JS unchanged
   ========================= */

body {
  /* inherit your site theme from style.css; just add spacing polish */
}

/* Main spacing */
main{
  width: min(1300px, 92%);
  margin: 0 auto;
  padding: 10px 0 60px;
}

/* Page title */
.page-title{
  text-align: center;
  margin: 18px 0 18px;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: .3px;
  text-shadow: 0 14px 30px rgba(0,0,0,.45);
}

/* Season box wrapper */
.season-box{
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
}

/* Make season collapsible look strong but consistent */
.season-collapsible{
  border-radius: 14px;
}

/* Grid of events */
.events-container{
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* force 5 columns */
  gap: 14px;
  margin: 10px 0 0;
}

.event-box{
  min-width: 0; /* prevents overflow */
}
@media (max-width: 1100px){
  .events-container{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px){
  .events-container{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px){
  .events-container{ grid-template-columns: 1fr; }
}
/* Each event card */
.event-box{
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(0,0,0,.35);
  transition: transform .18s ease, box-shadow .18s ease, filter .2s ease;
}

.event-box:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(0,0,0,.45);
  filter: brightness(1.02);
}

/* Event collapsible button inside card */
.event-collapsible{
  width: 100%;
  margin: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(214,0,0,.95), rgba(177,0,0,.95));
}

/* Card content area */
.event-box .content{
  display: none; /* collapsible.js toggles this */
  padding: 14px 14px 16px;
  background: rgba(0,0,0,.18);
  border: 0;
  border-top: 1px solid rgba(255,255,255,.10);
  border-radius: 0 0 16px 16px;
  box-shadow: none;
}

/* Text styles */
.cheering{
  margin: 6px 0 12px;
  color: rgba(255,255,255,.88);
}

.prediction-order{
  margin: 10px 0 6px;
  color: rgba(255,255,255,.88);
}

.event-box p{
  color: rgba(255,255,255,.78);
  line-height: 1.55;
}

/* Spoiler button: looks like a secondary button */
.spoiler-btn{
  width: 100%;
  margin: 12px 0 0;
  padding: 10px 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: #ffd700;
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(0,0,0,.25);
}

.spoiler-btn:hover{
  background: rgba(255,255,255,.12);
}

/* Spoiler reveal text */
.event-box .spoiler{
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,215,0,.12);
  border: 1px solid rgba(255,215,0,.25);
  color: #ffd700;
  text-align: center;
  font-weight: 700;
}

/* Make the collapsible arrow spacing nicer inside cards */
.event-box .collapsible::before{
  margin-right: 10px;
}

/* Mobile: reduce padding slightly */
@media (max-width: 520px){
  main{ width: 92%; }
  .event-box .content{ padding: 12px 12px 14px; }
}
.events-container{
  align-items: start;   /* prevents cards stretching to tallest height */
}