/* Match prediction poll — modern card aligned with match detail UI */

.match-prediction-block {
  margin-top: 20px;
}

.match-block-item .show-more-matches.comm_more {
  margin-top: 14px;
}

.match-prediction-block .section-title {
  margin-bottom: 12px;
}

.prediction-result-wrap {
  padding: 16px 18px 18px;
  border-radius: 12px;
  background: #151825;
  border: 1px solid #191d2d;
  color: #bfc3d4;
  font-size: 12px;
  font-weight: normal;
}

.prediction-poll-head {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.prediction-poll-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  text-align: center;
}

.prediction-poll-col.poll-home {
  align-items: flex-start;
  text-align: right;
}

.prediction-poll-col.poll-away {
  align-items: flex-end;
  text-align: left;
}

.prediction-poll-pct {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
}

.prediction-poll-col.poll-home .prediction-poll-pct {
  color: #5a83ff;
}

.prediction-poll-col.poll-draw .prediction-poll-pct {
  color: #707488;
}

.prediction-poll-col.poll-away .prediction-poll-pct {
  color: #7c569a;
}

.prediction-poll-team {
  font-size: 11px;
  font-weight: normal;
  color: #707488;
  line-height: 1.35;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prediction-poll-bar.bootstrap-progress {
  display: flex;
  align-items: stretch;
  height: 8px;
  border-radius: 8px;
  background: #191d2d;
  overflow: hidden;
  gap: 2px;
}

.prediction-poll-bar .progress-bar {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  min-width: 0;
  transition: width 0.6s ease;
}

.prediction-poll-bar .progress-bar span {
  display: none;
}

.prediction-poll-bar .progress-bar.win {
  background: #5a83ff;
}

.prediction-poll-bar .progress-bar.equal {
  background: #707488;
}

.prediction-poll-bar .progress-bar.lose {
  background: #7c569a;
}

.match-prediction {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  background: #151825;
  border: 1px solid #191d2d;
  padding: 14px 16px;
}

.match-prediction .predict-link {
  flex: 1;
  min-width: 0;
  max-width: none;
  width: auto;
  height: 44px;
  background: #191d2d;
  border-radius: 10px;
  font-size: 12px;
  font-weight: bold;
  color: #bfc3d4;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

.match-prediction .predict-link.equal {
  flex: 0 0 88px;
  margin: 0;
}

.match-prediction .predict-link .img {
  width: 24px;
  height: 24px;
  margin-left: 8px;
}

.match-prediction .predict-link:hover {
  color: #39dbbf;
  background: rgba(57, 219, 191, 0.1);
  border-color: rgba(57, 219, 191, 0.35);
}

.visitors_area .match-prediction-block #pre_result {
  margin-top: 12px;
}

html.light .prediction-result-wrap {
  background: #ffffff;
  border-color: #f1f1f1;
  color: #0e1019;
}

html.light .prediction-poll-pct {
  color: #0e1019;
}

html.light .prediction-poll-col.poll-home .prediction-poll-pct {
  color: #4766c4;
}

html.light .prediction-poll-col.poll-draw .prediction-poll-pct {
  color: #707488;
}

html.light .prediction-poll-col.poll-away .prediction-poll-pct {
  color: #7c569a;
}

html.light .prediction-poll-team {
  color: #707488;
}

html.light .prediction-poll-bar.bootstrap-progress {
  background: #e3e5f0;
}

html.light .prediction-poll-bar .progress-bar.win {
  background: #4766c4;
}

html.light .prediction-poll-bar .progress-bar.equal {
  background: #9aa0b5;
}

html.light .prediction-poll-bar .progress-bar.lose {
  background: #7c569a;
}

html.light .match-prediction {
  background: #ffffff;
  border-color: #f1f1f1;
}

html.light .match-prediction .predict-link {
  background: #f4f5f9;
  color: #0e1019;
}

html.light .match-prediction .predict-link:hover {
  color: #16ae94;
  background: rgba(22, 174, 148, 0.08);
  border-color: rgba(22, 174, 148, 0.3);
}

[dir="ltr"] .prediction-poll-col.poll-home {
  align-items: flex-start;
  text-align: left;
}

[dir="ltr"] .prediction-poll-col.poll-away {
  align-items: flex-end;
  text-align: right;
}

[dir="ltr"] .match-prediction .predict-link .img {
  margin-left: 0;
  margin-right: 8px;
}

@media (max-width: 575px) {
  .prediction-poll-pct {
    font-size: 16px;
  }

  .prediction-poll-team {
    font-size: 10px;
  }

  .match-prediction .predict-link.equal {
    flex: 0 0 72px;
  }
}
