/* Public match page (SEO) */
*{ box-sizing:border-box; }
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color:#fff;
  min-height:100vh;
}

.public-match-container{
  max-width: 1060px;
  margin: 0 auto;
  padding: 18px 14px 34px;
}

.public-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 10px 2px 18px;
}

.logo{
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(90deg, #00d2ff, #3a7bd5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration:none;
}

.header-actions{ display:flex; gap:10px; align-items:center; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration:none;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid transparent;
  cursor:pointer;
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0px); }
.btn-outline{
  color: rgba(255,255,255,0.86);
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
}
.btn-login{
  border-color: rgba(0, 210, 255, 0.35);
  background: rgba(0, 210, 255, 0.10);
  color: rgba(255,255,255,0.92);
}
.btn-login:hover{
  background: rgba(0, 210, 255, 0.16);
  border-color: rgba(0, 210, 255, 0.55);
}
.btn-primary{
  color:#081018;
  background: linear-gradient(90deg, rgba(0,210,255,0.92), rgba(58,123,213,0.92));
  border-color: rgba(0,210,255,0.35);
}
.btn-success{
  color:#081018;
  background: linear-gradient(90deg, rgba(0,255,136,0.88), rgba(0,210,255,0.72));
  border-color: rgba(0,255,136,0.25);
}
.btn-large{ padding: 14px 30px; font-size: 15px; }

.match-header{
  padding: 16px 18px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
}
.match-league{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
}
.match-teams{
  margin: 6px 0 0;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.2;
}
.match-time{
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.60);
}
.status-pill{
  display:inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 200, 0, 0.14);
  border: 1px solid rgba(255, 200, 0, 0.28);
  color: #ffc800;
  font-weight: 900;
  font-size: 12px;
}

.match-content{ margin-top: 14px; }

.card{
  margin-top: 12px;
  padding: 14px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 18px;
}

.prediction-list{ display:flex; flex-direction:column; gap:10px; margin-top: 10px; }
.prediction-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 10px;
  background: rgba(0,0,0,0.16);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
}
.pred-name{ color: rgba(255,255,255,0.86); font-weight: 750; }
.pred-prob{ color: #00d2ff; font-weight: 950; }
.small-note{ margin-top: 10px; font-size: 13px; color: rgba(255,255,255,0.50); }

/* Aggregate Score for guests */
.aggregate-score{
  text-align: center;
  padding: 22px 14px;
}
.score-circle{
  width: 180px;
  height: 180px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, rgba(102,126,234,0.2), rgba(118,75,162,0.2));
  border-radius: 50%;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  border: 3px solid rgba(102,126,234,0.9);
  box-shadow: 0 0 30px rgba(102,126,234,0.25);
}
.score-value{
  font-size: 48px;
  font-weight: 950;
  color: #00d2ff;
  line-height: 1.1;
}
.score-label{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.60);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.score-hint{
  margin: 0;
  color: rgba(255,255,255,0.70);
}

/* Limited predictions (registered) */
.limited-predictions{
  margin-top: 12px;
  padding: 14px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 18px;
}
.limited-predictions h3{ margin: 0 0 10px; }
.probability{
  font-size: 18px;
  font-weight: 900;
  color: #00d2ff;
}

/* Blurred values */
.blurred-items{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding: 14px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
}
.blurred-item{
  display:flex;
  justify-content:space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.blurred-item:last-child{ border-bottom: none; }
.blurred-value{
  filter: blur(6px);
  background: rgba(255,255,255,0.10);
  padding: 4px 12px;
  border-radius: 999px;
  color: transparent;
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* CTA blocks */
.register-cta, .upgrade-banner{
  margin-top: 14px;
  padding: 18px 16px;
  background: linear-gradient(135deg, rgba(102,126,234,0.10), rgba(118,75,162,0.10));
  border-radius: 20px;
  text-align:center;
  border: 1px solid rgba(102,126,234,0.20);
}
.register-cta h3, .upgrade-banner h3{
  font-size: 18px;
  margin: 0 0 8px;
}
.register-cta p, .upgrade-banner p{
  margin: 0;
  color: rgba(255,255,255,0.72);
}
.register-cta .small-note{ margin-top: 12px; }

/* Guest CTA typography: slightly wider lines */
.register-cta h3{
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.25;
}
.register-cta p{
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
.register-cta .btn-large{ margin-top: 14px; }
.cta-login-link{
  color: #9ee7ff;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cta-login-link:hover{ opacity: 0.95; }

/* Share block */
.share-block{
  margin-top: 14px;
  padding: 14px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 18px;
}
.share-label{ font-weight: 900; color: rgba(255,255,255,0.92); margin-bottom: 10px; }
.share-url-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin-bottom: 12px;
}
.share-url-input{
  flex:1;
  min-width: 200px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.92);
  font-size: 12px;
}
.share-btn.copy-link{
  flex-shrink: 0;
  border-color: rgba(250,204,21,0.4);
  color: #fde68a;
}
.share-buttons{ display:flex; gap:10px; flex-wrap:wrap; }
.share-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.88);
  text-decoration:none;
  font-weight: 800;
  font-size: 13px;
  cursor:pointer;
}
.share-btn.telegram{ border-color: rgba(14,165,233,0.35); }
.share-btn.whatsapp{ border-color: rgba(34,197,94,0.35); }
.share-btn.vk{ border-color: rgba(99,102,241,0.35); }

/* Synthetic / estimated blocks */
.estimated-badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 200, 0, 0.15);
  border-radius: 30px;
  font-size: 13px;
  color: #ffc800;
  margin: 8px 0 12px;
  border: 1px solid rgba(255, 200, 0, 0.3);
}
.info-icon{ opacity: .9; cursor: help; }
.h2h-stats{ display:flex; flex-direction:column; gap: 8px; margin-top: 6px; }
.stat-row{ display:flex; justify-content:space-between; gap:10px; color: rgba(255,255,255,0.72); font-size: 13px; }
.h2h-matches{ margin-top: 10px; display:flex; flex-direction:column; gap: 8px; }
.h2h-match{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  background: rgba(0,0,0,0.16);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.86);
  font-size: 13px;
  flex-wrap: wrap;
}
.h2h-match.synthetic{
  opacity: 0.78;
  background: linear-gradient(90deg, transparent, rgba(255, 200, 0, 0.03), transparent);
}
.synthetic-mark{ color:#ffc800; font-size: 12px; margin-left: 4px; }
.data-note{ font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 10px; font-style: italic; }
.score{ font-weight: 950; color: #00d2ff; }
.corners{ opacity: .75; }
.h2h-date{ opacity: .65; }

@media (max-width: 760px){
  .match-teams{ font-size: 18px; }
  .header-actions{ width:100%; justify-content:flex-end; }
  .score-circle{ width: 160px; height: 160px; }
  .score-value{ font-size: 42px; }
}

