.predict-page { padding-top: 10px; padding-bottom: 28px; }

.predict-hero {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(26, 35, 50, .06);
}
.predict-hero .name { font-size: 18px; font-weight: 800; color: #1558c0; }
.predict-hero .meta { color: #7a8699; font-size: 13px; margin: 4px 0 8px; }
.predict-hero .mini-balls { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.predict-hero .ball { width: 28px; height: 28px; font-size: 12px; }
.predict-hero-right { text-align: right; }
.predict-hero-right .next-tip { font-size: 12px; color: #9aa6b8; margin-bottom: 6px; }
.predict-hero-right .countdown { justify-content: flex-end; }
.predict-hero-right .cd-unit {
  background: linear-gradient(180deg, #2a3a55, #17233a);
  min-width: 46px;
  font-size: 22px;
  padding: 8px 6px;
}
.predict-hero-right .cd-sep { color: #334155; }

.predict-panel {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(26, 35, 50, .06);
  scroll-margin-top: 88px;
}
.predict-form { padding: 12px 14px; border-bottom: 1px solid #f0f0f0; }
.form-title {
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.form-title strong { font-size: 15px; color: #333; }
.form-title span { font-size: 12px; color: #999; }

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}
.form-row label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: #666;
}
.form-row input,
.form-row select {
  height: 34px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0 10px;
  min-width: 110px;
  font-size: 13px;
}
.input-with-unit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.input-with-unit em { font-style: normal; color: #999; font-size: 12px; }
.btn-search {
  height: 34px;
  border: none;
  border-radius: 4px;
  background: #e11d2e;
  color: #fff;
  padding: 0 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.filter-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}
.seg a {
  text-decoration: none;
  color: #666;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 12px;
}
.seg a.on {
  background: #1e5bb8;
  border-color: #1e5bb8;
  color: #fff;
  font-weight: 700;
}
.seg.red a.on {
  background: #e11d2e;
  border-color: #e11d2e;
}

.plan-summary {
  padding: 10px 14px;
  background: #fff8f8;
  color: #666;
  font-size: 13px;
  border-bottom: 1px solid #f0e0e0;
}
.plan-summary .cum {
  margin-left: 12px;
  color: #e11d2e;
  font-weight: 700;
}

.plan-table-wrap { overflow: auto; }
.plan-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
  font-size: 12px;
}
.plan-table th,
.plan-table td {
  border: 1px solid #eee;
  padding: 8px 6px;
  text-align: center;
  white-space: nowrap;
}
.plan-table thead th {
  background: #fafafa;
  color: #666;
  font-weight: 600;
}
.plan-table tr.is-pending { background: #fffaf0; }
.pending-text { color: #e11d2e; }
.win { color: #19be6b; font-weight: 700; }
.lose { color: #999; }
.up { color: #e11d2e; font-weight: 700; }
.down { color: #19be6b; }
.col-predict .pred { color: #333; }
.col-predict .pred.hit { color: #e11d2e; font-weight: 800; }
.col-open .mini-balls { justify-content: center; }
.col-open .ball {
  width: 22px;
  height: 22px;
  font-size: 11px;
  background: linear-gradient(180deg, #5aa8ff, #2d8cf0);
}
.col-open .ball.focus {
  box-shadow: 0 0 0 2px rgba(225, 29, 46, .35);
}
.empty { padding: 28px !important; color: #999; }

@media (max-width: 768px) {
  .predict-hero-right { width: 100%; text-align: left; }
  .predict-hero-right .countdown { justify-content: flex-start; }
  .form-row label { width: calc(50% - 6px); }
  .form-row input, .form-row select { width: 100%; min-width: 0; }
  .btn-search { width: 100%; }
}
