

/* HEADER */
.pc-header {
  display: flex;
  align-items: center;
  color: var(--text-tertiary);
  font-weight: 500;
}




.prediction-card--match-result {
  position: relative;
}

.stats {
  margin-left: auto;
  font-size: 18px;
  padding: 6px;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: #fff;
  transition: all 0.2s ease;
}

.stats:hover {
  border-color: var(--text-tertiary);
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* BODY GRID (Using Grid for strict alignment) */
.prediction-card--over-under .pc-body {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  grid-template-rows: auto auto auto;
  column-gap: 10px;
  row-gap: 6px;
  margin-top: 10px;
  align-items: center;
}

/* TEAMS & CENTER FLATTENED */
.prediction-card--over-under .pc-team,
.prediction-card--over-under .pc-center {
  display: contents;
}

/* LEFT TEAM PLACEMENT */
.prediction-card--over-under .pc-team:first-of-type > .pc-logo-wrapper { grid-column: 1; grid-row: 1; justify-self: center; align-self: end; }
.prediction-card--over-under .pc-team:first-of-type > .pc-name { grid-column: 1; grid-row: 2; justify-self: center; align-self: start; }
.prediction-card--over-under .pc-team:first-of-type > .pc-form-row { grid-column: 1; grid-row: 3; justify-self: center; align-self: start; margin-top: 5px; }

/* CENTER PLACEMENT */
.prediction-card--over-under .pc-center > .pc-score-block { grid-column: 2; grid-row: 1 / span 2; justify-self: center; align-self: center; }
.prediction-card--over-under .pc-center > .pc-probs-row { grid-column: 2; grid-row: 3; justify-self: center; align-self: start; margin-top: 5px; }

/* RIGHT TEAM PLACEMENT */
.prediction-card--over-under .pc-team:last-of-type > .pc-logo-wrapper { grid-column: 3; grid-row: 1; justify-self: center; align-self: end; }
.prediction-card--over-under .pc-team:last-of-type > .pc-name { grid-column: 3; grid-row: 2; justify-self: center; align-self: start; }
.prediction-card--over-under .pc-team:last-of-type > .pc-form-row { grid-column: 3; grid-row: 3; justify-self: center; align-self: start; margin-top: 5px; }

.prediction-card--over-under .pc-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.prediction-card--over-under .pc-name {
  font-size: 13px;
  font-weight: 600;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.form-indicators {
  display: flex;
  gap: 1px;
}

.form-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  color: white;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  /*font-weight: bold;*/
  padding: 4px;
}

 .w { background: #048B01; }
 .l { background: #EA0000; }
 .d { background: #FA6705; }




/* =========================
   SCORE
========================= */
.pc-score {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 25px;
  font-weight: 700;
}

.pc-score span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.score-sep {
  margin: 0 4px;
}

.score-live {
  color: red;
  font-weight: 700;
}

.score-hidden {
  display: none;
}
/* pc-minute directly under pc-score */
 .pc-minute {
  font-size: 14px;
  font-weight: 400;
  color: red;
  text-align: center;
}

.pc-minute.minute-finished {
  color: rgba(34, 34, 38, 0.45);
}
/* Arrange the two pc-prob blocks side by side under pc-minute */
.pc-probs-row {
  display: flex;
  gap: 35px; /* controllable gap between two probs */
  margin-top: -13px;
}

/* Each prob block: vertical layout */
.pc-prob {
  position: relative;
  width: 75px;
  height: 75px; /* set height same as width for square container */
  flex-direction: column;
  align-items: center;  /* center children horizontally */
  gap: 6px;
}


/* SVG circle */
.pc-prob svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

/* Background circle */
.pc-bg {
  fill: none;
  stroke: #E2E2E2;
  stroke-width: 10;
}

/* Progress circle - animated in script.js */
.pc-progress {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  
}

/* Percent text centered inside the SVG circle */
.pc-percent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: 600;
  z-index: 2;
  pointer-events: none;
  
}

/* Badge under circle */
.pc-badge.Pc-over {
  font-size: 11px;
  font-weight: bold;
 
  color: #333;
}

/* Odds under badge with padding */
.pc-prob .pc-odds {
  font-weight: 500;
  font-size: 14px;
  font-weight: bold;
  padding-top: 5px;
  color: #222;
}

/* Make sure badge and odds are centered */
.pc-badge.Pc-over, .pc-odds {
  display: block;
  text-align: center;
  width: 100%; /* fill container width */
  
}

/* Footer form-score-predict row */
.form-score-predict-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1px;
  padding-top: 3px;

}

.home-form,
.away-form {
  color: white;
  width: 33px;
  text-align: center;
  font-size: 12px;
  padding: 0.2em;
  border-radius: 0.2em;
  font-weight: bold;
  display: inline-block;
}

.home-form {
  background: #2E8B57;
}

.away-form {
  background: #E5B05E;
}

.score-predict {
  position: relative;
  color: black;
  width: auto;
  text-align: center;
  font-size: 12px;
  padding: 0 15px;
  border-radius: 5px;
  border: 1px solid #64748b;
  box-shadow: 0 12px 28px rgba(100, 116, 139, 0.15);
  font-weight: bold;
  display: flex;
  flex-direction: column;
  background: mintcream;
  z-index: 1;
}

/* Pill under footer */
.pc-prediction-pill {
  margin: 0 auto;
  width: fit-content;
  background-color: #FFB400;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 1px;
  border: 1px solid #64748b;
  border-radius: 1px;
  box-shadow: 0 12px 28px rgba(100, 116, 139, 0.15);
}

.prediction-card--over-under .foot {
  margin-top: 48px; /* desktop/tablet breathing room */
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
}

@media (max-width: 480px) {
  .prediction-card--over-under .foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0 !important;
    margin-top: 6px !important;
    padding-top: 0;
  }

  .prediction-card--over-under .form-score-predict-row {
    position: relative;
    z-index: 2;
    padding-top: 0 !important;
    margin: 0 !important;
  }

  .prediction-card--over-under .pc-prediction-pill {
    position: relative;
    z-index: 3;
    margin: 1px auto 0 !important;
  }
}

@media (max-width: 360px) {
  .prediction-card--over-under .foot {
    margin-top: 4px !important;
  }
}
