/* =========================
   BTTS CARD
========================= */

.prediction-card--btts {
  position: relative;
}

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

/* BODY GRID (Using Grid for strict alignment) */
.prediction-card--btts .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--btts .pc-team,
.prediction-card--btts .pc-center {
  display: contents;
}

/* LEFT TEAM PLACEMENT */
.prediction-card--btts .pc-team:first-of-type > .pc-logo-wrapper { grid-column: 1; grid-row: 1; justify-self: center; align-self: end; }
.prediction-card--btts .pc-team:first-of-type > .pc-name { grid-column: 1; grid-row: 2; justify-self: center; align-self: start; }
.prediction-card--btts .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--btts .pc-center > .pc-score-block { grid-column: 2; grid-row: 1 / span 2; justify-self: center; align-self: center; }
.prediction-card--btts .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--btts .pc-team:last-of-type > .pc-logo-wrapper { grid-column: 3; grid-row: 1; justify-self: center; align-self: end; }
.prediction-card--btts .pc-team:last-of-type > .pc-name { grid-column: 3; grid-row: 2; justify-self: center; align-self: start; }
.prediction-card--btts .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--btts .pc-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

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

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

.form-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  color: #fff;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  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;
}

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

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

.score-hidden {
  display: none;
}

.pc-minute {
  font-size: 14px;
  color: red;
  text-align: center;
}

.minute-finished {
  color: rgba(34, 34, 38, 0.45);
}

/* PROBS */
.pc-probs-row {
  display: flex;
  gap: 35px;
  margin-top: -13px;
}

.pc-prob {
  position: relative;
  width: 75px;
  height: 75px;
}

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

.pc-bg {
  fill: none;
  stroke: #e2e2e2;
  stroke-width: 10;
}

.pc-progress {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
}

.pc-percent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: 600;
}

/* BADGE + ODDS */
.pc-badge.Pc-over {
  display: block;
  text-align: center;
  font-size: 11px;
  font-weight: bold;
  margin-top: 4px;
}

.pc-odds {
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
}

/* FOOT */
.form-score-predict-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1px;
}

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

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

.score-predict {
  font-size: 12px;
  padding: 0 15px;
  border-radius: 5px;
  border: 1px solid #64748b;
  background: mintcream;
  font-weight: bold;
}

.pc-prediction-pill {
  margin: 0 auto;
  width: fit-content;
  background: #FFB400;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 1px;
  border-radius: 1px;
}

.prediction-card--btts .foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 48px;
}

@media (max-width: 480px) {
  .prediction-card--btts .foot {
    gap: 0 !important;
    margin-top: 6px !important;
    padding-top: 0;
  }

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

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

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