/* Estilos más vivos para la polla */
:root{
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  color:#e2e8f0;
  background: #0b1120;
}
body{
  max-width:980px;
  margin:16px auto;
  padding:16px;
}
header{
  margin-bottom:20px;
}
.hero{
  position:relative;
  border-radius:22px;
  overflow:hidden;
  background: linear-gradient(135deg, #111827 0%, #0f172a 100%);
  box-shadow:0 22px 48px rgba(15,23,42,0.35);
}
.hero img{
  display:block;
  width:100%;
  height:320px;
  object-fit:cover;
  background: #0f172a;
}
.hero-text{
  position:absolute;
  bottom:28px;
  left:28px;
  color:#f8fafc;
  text-shadow:0 12px 28px rgba(0,0,0,0.6);
}
.hero-text h1{
  margin:0 0 6px;
  font-size:2.8rem;
}
.hero-text p{
  margin:0;
  font-size:1.05rem;
}
main{
  display:grid;
  gap:20px;
}
.card{
  background:#111827;
  padding:24px;
  border-radius:22px;
  box-shadow:0 18px 35px rgba(0,0,0,0.35);
  border:1px solid rgba(148,163,184,0.14);
}
.card--blue{
  border-color: rgba(37,99,235,0.3);
  background: linear-gradient(180deg, rgba(37,99,235,0.12), rgba(15,23,42,0.9));
}
.card--dark{
  border-color: rgba(148,163,184,0.18);
}
.hidden{
  display:none;
}
.form-row{
  display:grid;
  gap:8px;
  margin-bottom:16px;
}
.form-row label{
  color:#cbd5e1;
  font-size:0.95rem;
}
.form-row input{
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(148,163,184,0.2);
  background:#0f172a;
  color:#e2e8f0;
}
.form-actions{
  margin-top:12px;
}
.btn-primary,
.btn-secondary{
  border:none;
  border-radius:999px;
  padding:12px 20px;
  cursor:pointer;
  font-weight:600;
}
.btn-primary{
  background:#38bdf8;
  color:#0f172a;
}
.btn-primary:hover{
  background:#0ea5e9;
}
.btn-secondary{
  background:transparent;
  color:#f8fafc;
  border:1px solid rgba(248,250,252,0.24);
}
.btn-secondary:hover{
  background:rgba(248,250,252,0.08);
}
.text-error{
  color:#fecaca;
  margin-top:8px;
}
.card-header{
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:center;
  margin-bottom:18px;
}
.prediction-row{
  display:grid;
  grid-template-columns:1fr auto auto auto;
  gap:12px;
  align-items:center;
  padding:16px;
  border-radius:16px;
  background: rgba(255,255,255,0.04);
  border:1px solid rgba(148,163,184,0.12);
  margin-bottom:12px;
}
.match-meta{
  color:#e2e8f0;
}
.score-input{
  width:64px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(148,163,184,0.2);
  background:#0f172a;
  color:#e2e8f0;
}
.save-button{
  min-width:100px;
}
.match-status{
  color:#94a3b8;
  font-size:0.9rem;
}
table{
  width:100%;
  border-collapse:collapse;
  margin-top:12px;
}
th,td{
  padding:14px 16px;
  border:1px solid rgba(148,163,184,0.2);
  text-align:left;
  color:#e2e8f0;
}
thead th{
  background:rgba(30,41,59,0.95);
  color:#f8fafc;
}
tbody tr:nth-child(odd){
  background:rgba(255,255,255,0.04);
}
tbody tr:hover{
  background:rgba(59,130,246,0.14);
}
ul{
  padding-left:18px;
  margin-top:12px;
}
li{
  margin-bottom:12px;
  line-height:1.7;
  color:#ffffff;
}
footer{
  margin-top:24px;
  color:#475569;
  text-align:center;
}
.points-badge{
  display:inline-block;
  padding:4px 12px;
  border-radius:999px;
  font-weight:700;
  font-size:0.82rem;
  white-space:nowrap;
}
.points-badge--exact{
  background:rgba(34,197,94,0.18);
  color:#4ade80;
}
.points-badge--winner{
  background:rgba(234,179,8,0.18);
  color:#fbbf24;
}
.points-badge--miss{
  background:rgba(239,68,68,0.15);
  color:#f87171;
}
.actual-score{
  color:#4ade80;
  font-weight:600;
  font-size:0.88rem;
}
.score-input:disabled{
  opacity:0.45;
  cursor:not-allowed;
}
/* --- Pronósticos del grupo --- */
.group-match-card{
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(148,163,184,0.14);
  border-radius:16px;
  padding:16px;
  margin-bottom:16px;
}
.group-match-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:12px;
  gap:12px;
}
.group-match-title{
  color:#f8fafc;
  font-weight:600;
  font-size:1rem;
}
.group-match-meta{
  color:#94a3b8;
  font-size:0.8rem;
  margin-top:2px;
}
.group-match-score{
  font-size:1.5rem;
  font-weight:700;
  color:#60a5fa;
  white-space:nowrap;
}
.live-badge{
  display:inline-block;
  margin-left:8px;
  padding:2px 8px;
  border-radius:999px;
  background:#ef4444;
  color:#fff;
  font-size:0.68rem;
  font-weight:700;
  letter-spacing:0.05em;
  animation:gp-pulse 1.5s ease-in-out infinite;
  vertical-align:middle;
}
.finished-badge{
  display:inline-block;
  margin-left:8px;
  padding:2px 8px;
  border-radius:999px;
  background:rgba(148,163,184,0.15);
  color:#94a3b8;
  font-size:0.68rem;
  font-weight:600;
  vertical-align:middle;
}
@keyframes gp-pulse{
  0%,100%{opacity:1;}
  50%{opacity:0.45;}
}
.group-predictions-table{
  width:100%;
  border-collapse:collapse;
  margin-top:4px;
}
.group-predictions-table th,
.group-predictions-table td{
  padding:10px 12px;
  border:1px solid rgba(148,163,184,0.12);
  font-size:0.88rem;
}
.group-predictions-table thead th{
  background:rgba(15,23,42,0.7);
  color:#94a3b8;
  font-weight:600;
  text-transform:uppercase;
  font-size:0.72rem;
  letter-spacing:0.06em;
}
.group-predictions-table tbody tr:nth-child(odd){
  background:rgba(255,255,255,0.02);
}
.group-predictions-table tbody tr:hover{
  background:rgba(59,130,246,0.1);
}
.group-predictions-table .cell-user{
  color:#e2e8f0;
  font-weight:500;
}
.group-predictions-table .cell-pred{
  color:#60a5fa;
  font-weight:600;
  text-align:center;
}
.group-predictions-table .cell-pts{
  text-align:center;
}
.pts-exact{background:rgba(34,197,94,0.18);color:#4ade80;}
.pts-winner{background:rgba(234,179,8,0.18);color:#fbbf24;}
.pts-miss{background:rgba(239,68,68,0.15);color:#f87171;}
/* --- end pronósticos del grupo --- */

@media(max-width:640px){
  .hero img{height:220px;}
  .hero-text h1{font-size:2rem;}
  .prediction-row{grid-template-columns:1fr auto auto;}
  .group-match-header{flex-direction:column;align-items:flex-start;}
}
