/* Match prediction — page header + match hero + content grid */

.pred-header {
  position: relative;
  margin-bottom: 1.75rem;
}

.pred-header-titlebar {
  text-align: center;
  margin-bottom: 1rem;
}

.pred-header-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 4vw, 1.875rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fff 25%, var(--accent-cyan) 70%, var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pred-header-subtitle {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

@media (min-width: 640px) {
  .pred-header-subtitle {
    font-size: 0.8125rem;
  }
}

.pred-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin-bottom: 1rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pred-breadcrumb-seg {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.4rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pred-breadcrumb-seg + .pred-breadcrumb-seg {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.pred-breadcrumb-seg--league {
  color: rgb(103 232 249 / 0.95);
  font-weight: 600;
}

@media (max-width: 639px) {
  .pred-breadcrumb {
    width: 100%;
  }

  .pred-breadcrumb-seg {
    flex: 1 1 0;
    font-size: 0.625rem;
    padding: 0.35rem 0.4rem;
  }
}

.pred-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas:
    "center center center"
    "hlogo vs alogo"
    "hmeta . ameta";
  align-items: center;
  gap: 0.5rem 0.65rem;
  padding: 1.15rem 1rem 1.25rem;
  border-radius: 1.25rem;
  background:
    var(--wc-starfield-1),
    var(--wc-starfield-2),
    linear-gradient(145deg, rgba(88, 28, 135, 0.35), var(--wc-card-bg) 45%, rgba(8, 5, 28, 0.92));
  border: 1px solid var(--wc-card-border);
  box-shadow:
    0 0 40px var(--wc-purple-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.pred-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 100%, var(--wc-magenta-soft), transparent 70%);
  opacity: 0.35;
  pointer-events: none;
}

.pred-hero > * {
  position: relative;
  z-index: 1;
}

.pred-header-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

.pred-hero-btn {
  padding: 0.4rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  width: auto;
}

.pred-hero-center {
  grid-area: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.2rem;
  padding: 0 0.25rem 0.15rem;
}

.pred-hero-datetime {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.02em;
}

.pred-hero-venue {
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.35;
  max-width: 18rem;
}

.pred-hero-vs {
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1;
  background: linear-gradient(135deg, #fff 20%, var(--accent-cyan) 55%, var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px var(--wc-purple-glow)) drop-shadow(0 0 24px rgba(34, 211, 238, 0.25));
}

.pred-hero-vs--desktop {
  display: none;
  margin-top: 0.35rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.pred-hero-vs--mobile {
  grid-area: vs;
  justify-self: center;
  font-size: clamp(1.15rem, 4vw, 1.5rem);
}

.pred-hero-team {
  min-width: 0;
}

.pred-hero-team--home,
.pred-hero-team--away {
  display: contents;
}

.pred-hero-team--home .pred-hero-logo,
.pred-hero-team--home .pred-hero-logo--ph {
  grid-area: hlogo;
  justify-self: end;
}

.pred-hero-team--home .pred-hero-team-meta {
  grid-area: hmeta;
  justify-self: start;
  text-align: left;
}

.pred-hero-team--away .pred-hero-logo,
.pred-hero-team--away .pred-hero-logo--ph {
  grid-area: alogo;
  justify-self: start;
}

.pred-hero-team--away .pred-hero-team-meta {
  grid-area: ameta;
  justify-self: end;
  text-align: right;
}

.pred-hero-logo {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.pred-hero-logo--ph {
  display: block;
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.pred-hero-team-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.pred-hero-team-name {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.2;
  word-break: break-word;
}

.pred-hero-team-sub {
  font-size: 0.5625rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .pred-header {
    margin-bottom: 2rem;
  }

  .pred-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 14rem) minmax(0, 1fr);
    grid-template-areas: "hteam center ateam";
    gap: 1rem 1.25rem;
    padding: 1.75rem 1.5rem;
  }

  .pred-hero-team--home,
  .pred-hero-team--away {
    display: flex;
    align-items: center;
    gap: 0.85rem;
  }

  .pred-hero-team--home {
    grid-area: hteam;
    justify-self: start;
    flex-direction: row;
    text-align: left;
  }

  .pred-hero-team--away {
    grid-area: ateam;
    justify-self: end;
    flex-direction: row-reverse;
    text-align: right;
  }

  .pred-hero-team--home .pred-hero-logo,
  .pred-hero-team--home .pred-hero-logo--ph,
  .pred-hero-team--away .pred-hero-logo,
  .pred-hero-team--away .pred-hero-logo--ph {
    grid-area: unset;
    justify-self: unset;
  }

  .pred-hero-team--home .pred-hero-team-meta,
  .pred-hero-team--away .pred-hero-team-meta {
    grid-area: unset;
    justify-self: unset;
  }

  .pred-hero-center {
    grid-area: center;
    padding: 0.35rem 0 0;
    gap: 0.35rem;
  }

  .pred-hero-datetime {
    font-size: 0.9375rem;
  }

  .pred-hero-venue {
    font-size: 0.75rem;
    max-width: none;
  }

  .pred-hero-vs--desktop {
    display: block;
  }

  .pred-hero-vs--mobile {
    display: none;
  }

  .pred-hero-logo {
    width: 4.5rem;
    height: 4.5rem;
  }

  .pred-hero-team-name {
    font-size: 1rem;
  }

  .pred-hero-team-sub {
    font-size: 0.6875rem;
  }
}

@media (min-width: 1024px) {
  .pred-hero {
    padding: 2rem 2.25rem;
  }

  .pred-hero-logo {
    width: 5.5rem;
    height: 5.5rem;
  }

  .pred-hero-team-name {
    font-size: 1.125rem;
  }
}

.pred-grid {
  display: grid;
  gap: 0.875rem;
  grid-template-columns: 1fr;
  grid-template-areas:
    "hasil"
    "score"
    "tips"
    "stats"
    "h2h"
    "form"
    "tactical"
    "referensi";
}

#card-hasil { grid-area: hasil; }
#card-skor { grid-area: score; }
#card-tips { grid-area: tips; }
#card-stats { grid-area: stats; }
#card-h2h { grid-area: h2h; }
#card-form { grid-area: form; }
#card-tactical { grid-area: tactical; }
#card-referensi { grid-area: referensi; }

.pred-grid-extra {
  display: grid;
  gap: 0.875rem;
  grid-template-columns: 1fr;
  margin-top: 0.875rem;
}

.pred-grid-extra:not(:has(.pred-card:not(.is-empty))) {
  display: none;
}

@media (min-width: 640px) {
  .pred-grid-extra {
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
  }

  #card-live-stats {
    grid-column: 1 / -1;
  }
}

@media (min-width: 640px) {
  .pred-grid {
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "hasil hasil"
      "score score"
      "tips tips"
      "stats stats"
      "h2h h2h"
      "form form"
      "tactical referensi";
  }

  #card-skor .pred-score-hero {
    min-height: 6rem;
  }
}

@media (min-width: 768px) {
  .pred-grid {
    grid-template-areas:
      "hasil score"
      "tips stats"
      "h2h h2h"
      "form form"
      "tactical referensi";
  }
}

@media (min-width: 1024px) {
  .pred-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-areas:
      "hasil hasil hasil hasil hasil hasil hasil hasil score score score score"
      "tips tips tips tips tips tips stats stats stats stats stats stats"
      "h2h h2h h2h h2h h2h h2h h2h h2h h2h h2h h2h h2h"
      "form form form form form form form form form form form form"
      "tactical tactical tactical tactical tactical tactical referensi referensi referensi referensi referensi referensi";
  }
}

.pred-card {
  min-width: 0;
  min-height: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.pred-card--optional.is-empty {
  display: none !important;
}

.pred-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.pred-card-head h2 {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgb(103 232 249 / 0.9);
  letter-spacing: 0.02em;
}

.pred-card-tag {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.pred-score-hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 0.85rem;
  min-height: 6.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .pred-score-hero {
    min-height: 7.5rem;
    gap: 0.85rem 1.25rem;
  }
}

.pred-score-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  flex: 1;
  max-width: 5.5rem;
}

.pred-score-logo {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

@media (min-width: 640px) {
  .pred-score-logo {
    width: 2.75rem;
    height: 2.75rem;
  }
}

.pred-score-team {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  line-height: 1.2;
  word-break: break-word;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 640px) {
  .pred-score-team {
    font-size: 0.6875rem;
  }
}

.pred-score-value {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.pred-score-digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: 0.35rem 0.55rem;
  border-radius: 0.6rem;
  border: 1px solid var(--wc-card-border);
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.22), rgba(168, 85, 247, 0.1));
  font-size: clamp(1.5rem, 4.5vw, 2.25rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pred-score-value.is-placeholder .pred-score-digit {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.pred-score-dash {
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1;
  user-select: none;
}

/* Outcome card — single row, logos at edges */
.pred-outcome-caption {
  margin: 0 0 0.75rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.pred-outcome-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.35rem, 2vw, 1rem);
}

.pred-outcome-logo {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

@media (min-width: 640px) {
  .pred-outcome-logo {
    width: 2.75rem;
    height: 2.75rem;
  }
}

.pred-outcome-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 0;
  flex: 1 1 0;
  padding: 0.45rem 0.35rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  text-align: center;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.pred-outcome-col.is-leading {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.28);
}

.pred-outcome-pct {
  font-size: clamp(1.15rem, 3.5vw, 1.65rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.pred-outcome-pct--home {
  color: var(--accent-cyan);
}

.pred-outcome-pct--draw {
  color: rgba(255, 255, 255, 0.95);
}

.pred-outcome-pct--away {
  color: var(--accent-purple);
}

.pred-outcome-team {
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .pred-outcome-team {
    font-size: 0.625rem;
  }
}

/* Tips table */
.pred-tips-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.25rem;
  font-size: 0.75rem;
}

.pred-tips-table th {
  padding: 0 0.4rem 0.35rem;
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  border: none;
}

.pred-tips-th--mid {
  text-align: center;
}

.pred-tips-th--end {
  text-align: right;
}

.pred-tips-row td {
  padding: 0.55rem 0.5rem;
  vertical-align: middle;
  border: none;
}

.pred-tips-row:nth-child(odd) td {
  background: rgba(255, 255, 255, 0.03);
}

.pred-tips-row td:first-child {
  border-radius: 0.5rem 0 0 0.5rem;
}

.pred-tips-row td:last-child {
  border-radius: 0 0.5rem 0.5rem 0;
}

.pred-tips-label {
  color: rgb(103 232 249 / 0.9);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.pred-tips-value {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
  text-align: center;
}

.pred-tips-value-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  max-width: 100%;
}

.pred-tips-logo {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
  border-radius: 999px;
  flex-shrink: 0;
}

.pred-tips-conf {
  text-align: right;
  white-space: nowrap;
}

.pred-conf {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

.pred-conf-pills {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.pred-conf-pill {
  display: block;
  width: 0.7rem;
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.25);
}

.pred-conf-pill.on {
  background: var(--accent-purple);
}

.pred-conf-num {
  font-family: ui-monospace, monospace;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.75);
  min-width: 2.25rem;
  text-align: right;
}

@media (max-width: 639px) {
  .pred-tips-label {
    font-size: 0.6875rem;
    white-space: normal;
    max-width: 5.5rem;
    line-height: 1.25;
  }

  .pred-tips-value {
    font-size: 0.6875rem;
  }

  .pred-conf-pill {
    width: 0.55rem;
    height: 0.35rem;
  }

  .pred-conf-num {
    font-size: 0.625rem;
    min-width: 2rem;
  }
}

/* Key stats — comparison rows + dual bar */
.pred-stats {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pred-stat-row {
  min-width: 0;
}

.pred-stat-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
}

.pred-stat-home {
  color: var(--accent-magenta);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: left;
  white-space: nowrap;
}

.pred-stat-label {
  color: var(--text-muted);
  font-size: 0.6875rem;
  text-align: center;
  line-height: 1.25;
}

.pred-stat-away {
  color: var(--accent-blue);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.pred-stat-bar {
  display: flex;
  height: 0.4rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.pred-stat-bar-home,
.pred-stat-bar-away {
  height: 100%;
  transition: width 0.45s ease;
  min-width: 0;
}

.pred-stat-bar-home {
  background: linear-gradient(90deg, #ec4899, #a855f7);
}

.pred-stat-bar-away {
  background: linear-gradient(90deg, #3b82f6, #22d3ee);
}

/* H2H card */
.pred-h2h-summary {
  margin-bottom: 0.85rem;
}

.pred-h2h-summary-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pred-h2h-summary-logo {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.pred-h2h-summary-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  flex: 1;
  min-width: 0;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pred-h2h-summary-stat strong {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

.pred-h2h-summary-sep {
  color: rgba(255, 255, 255, 0.25);
}

.pred-h2h-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pred-h2h-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.65rem 0.75rem;
  padding: 0.5rem 0.4rem;
  border-radius: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pred-h2h-item:nth-child(odd) {
  background: rgba(255, 255, 255, 0.03);
}

.pred-h2h-item:last-child {
  border-bottom: none;
}

.pred-h2h-date {
  font-family: ui-monospace, monospace;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

.pred-h2h-match {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  min-width: 0;
}

.pred-h2h-side {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  flex: 1;
}

.pred-h2h-side--home {
  justify-content: flex-end;
}

.pred-h2h-side--away {
  justify-content: flex-start;
}

.pred-h2h-logo {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 999px;
}

.pred-h2h-team {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 5.5rem;
}

.pred-h2h-score {
  flex-shrink: 0;
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
}

.pred-h2h-empty {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  padding: 0.75rem 0.5rem;
  text-align: center;
}

@media (max-width: 639px) {
  .pred-h2h-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .pred-h2h-date {
    font-size: 0.625rem;
  }

  .pred-h2h-team {
    max-width: 4rem;
  }
}

/* Performa terakhir */
.pred-form-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .pred-form-cols {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.pred-form-team {
  min-width: 0;
}

.pred-form-team-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  margin-bottom: 0.65rem;
}

.pred-form-logo {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.pred-form-team-name {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.9);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pred-form-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
  width: 100%;
}

@media (min-width: 640px) {
  .pred-form-badges {
    width: auto;
    margin-left: auto;
  }
}

.pred-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.2rem;
  border-radius: 0.3rem;
  font-size: 0.5625rem;
  font-weight: 700;
}

.pred-badge--w {
  background: rgba(34, 197, 94, 0.2);
  color: rgb(74 222 128);
}

.pred-badge--d {
  background: rgba(251, 191, 36, 0.2);
  color: rgb(251 191 36);
}

.pred-badge--l {
  background: rgba(248, 113, 113, 0.2);
  color: rgb(248 113 113);
}

.pred-form-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pred-form-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.6875rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.15);
}

.pred-form-match {
  color: rgba(255, 255, 255, 0.78);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.pred-form-date {
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

.pred-form-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.35rem;
  font-size: 0.625rem;
  font-weight: 700;
}

.pred-form-badge--w {
  background: rgba(34, 197, 94, 0.2);
  color: rgb(74 222 128);
}

.pred-form-badge--d {
  background: rgba(251, 191, 36, 0.2);
  color: rgb(251 191 36);
}

.pred-form-badge--l {
  background: rgba(248, 113, 113, 0.2);
  color: rgb(248 113 113);
}

.pred-form-empty {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  padding: 0.5rem;
  text-align: center;
  border-radius: 0.5rem;
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.pred-table tbody tr:last-child {
  border-bottom: none;
}

.pred-table th,
.pred-table td {
  padding: 0.45rem 0.4rem;
}

.pred-odds-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.pred-odds-chip {
  text-align: center;
  padding: 0.55rem 0.35rem;
  border-radius: 0.65rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pred-odds-chip-label {
  display: block;
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.2rem;
}

.pred-odds-chip-val {
  font-family: ui-monospace, monospace;
  font-size: 0.9375rem;
  font-weight: 700;
  color: rgb(103 232 249 / 0.95);
}

.pred-provider-pct {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pred-provider-pill {
  font-size: 0.6875rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(103, 232, 249, 0.1);
  border: 1px solid rgba(103, 232, 249, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

/* Pratinjau taktik + Referensi */
.pred-tactical-text {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.pred-tactical-text.is-placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.pred-ref-block:empty {
  display: none;
}

.pred-ref-block + .pred-ref-block:not(:empty) {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pred-ref-label {
  margin: 0 0 0.45rem;
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
}

.pred-ref-line {
  margin: 0.45rem 0 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}

.pred-ref-line:first-child {
  margin-top: 0;
}

.pred-ref-meta {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 0.25rem;
}

.pred-ref-advice {
  color: rgba(255, 255, 255, 0.65);
}

.pred-team-block {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pred-team-block:last-child {
  border-bottom: none;
}

.pred-muted {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Loading overlay during prediction */
.pred-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 10, 18, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.pred-loading.hidden {
  display: none !important;
}

.pred-loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 2rem;
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(103, 232, 249, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  min-width: 16rem;
  max-width: 90vw;
  text-align: center;
}

.pred-loading-box p {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

.pred-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid rgba(103, 232, 249, 0.2);
  border-top-color: rgb(103 232 249);
  border-radius: 50%;
  animation: pred-spin 0.85s linear infinite;
}

@keyframes pred-spin {
  to {
    transform: rotate(360deg);
  }
}
