/* SkyPanama Bet — marca SkyPanama®: navy #0e1944, fucsia #e6007e, blanco. */
.spb-wrap { max-width: 1100px; margin: 0 auto; font-family: inherit; }
.spb-header { background: #0e1944; color: #fff; padding: 24px; border-radius: 8px; margin-bottom: 24px; }
.spb-header h1 { color: #fff; margin: 12px 0 8px; }
.spb-logo { max-width: 220px; height: auto; display: block; }
.spb-disclaimer { font-size: 0.9em; opacity: 0.9; }

/* Cinta en vivo: fondo navy, etiqueta fucsia, pausa al pasar el cursor. */
.spb-ticker { display: flex; align-items: stretch; background: #0e1944; color: #fff; border-radius: 8px; overflow: hidden; margin-bottom: 24px; }
.spb-ticker-label { background: #e6007e; color: #fff; font-weight: bold; letter-spacing: 1px; padding: 10px 14px; white-space: nowrap; display: flex; align-items: center; }
.spb-ticker-track { overflow: hidden; flex: 1; display: flex; align-items: center; }
.spb-ticker-items { display: flex; gap: 40px; padding: 10px 0 10px 20px; white-space: nowrap; animation: spb-ticker-scroll 90s linear infinite; }
.spb-ticker:hover .spb-ticker-items { animation-play-state: paused; }
.spb-ticker-item { display: inline-flex; align-items: center; gap: 6px; font-size: 0.92em; }
@keyframes spb-ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .spb-ticker-items { animation: none; }
}

.spb-accuracy { border: 2px solid #0e1944; border-radius: 8px; padding: 16px 20px; margin-bottom: 24px; }
.spb-accuracy h2 { margin-top: 0; color: #0e1944; }
.spb-accuracy-leagues { columns: 2; margin: 0; padding-left: 20px; }

/* Fichas de seguimiento: rejilla adaptable, una columna en teléfonos. */
.spb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-bottom: 32px; }
.spb-card { background: #fff; border: 1px solid #ddd; border-top: 4px solid #0e1944; border-radius: 8px; padding: 16px 18px; }
.spb-card-league { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.spb-card-league-name { font-weight: bold; color: #0e1944; }
.spb-card-coverage { margin-left: auto; font-size: 0.8em; color: #555; text-align: right; }
.spb-card-teams { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.spb-card-team { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; text-align: center; }
.spb-card-team-name { font-weight: bold; line-height: 1.25; }
.spb-card-vs { background: #e6007e; color: #fff; font-weight: bold; font-size: 0.8em; border-radius: 50%; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.spb-card-date { text-align: center; font-size: 0.85em; color: #555; margin-bottom: 10px; }
.spb-card-probs { border-top: 1px solid #eee; padding-top: 10px; }
.spb-probs { margin: 4px 0; }
.spb-adj-probs { font-weight: bold; }
.spb-match h3 { margin: 0 0 8px; }
.spb-date { font-weight: normal; font-size: 0.85em; color: #555; }
.spb-adjust { margin-top: 12px; border-top: 1px solid #eee; padding-top: 10px; }
.spb-slider { vertical-align: middle; accent-color: #e6007e; }
.spb-button { background: #e6007e; color: #fff; border: 0; border-radius: 6px; padding: 8px 16px; cursor: pointer; }
.spb-button:hover { background: #c4006b; }
.spb-save-status { margin-left: 10px; font-size: 0.9em; }

/* Escudos e insignias de respaldo. */
.spb-crest-wrap { display: inline-flex; align-items: center; }
.spb-crest { object-fit: contain; background: #fff; }
.spb-crest-md { width: 44px; height: 44px; }
.spb-crest-xs { width: 20px; height: 20px; vertical-align: middle; }
.spb-crest-badge { display: inline-flex; align-items: center; justify-content: center; background: #0e1944; color: #fff; font-weight: bold; border-radius: 50%; }
.spb-crest-badge.spb-crest-md { width: 44px; height: 44px; font-size: 0.9em; }
.spb-crest-badge.spb-crest-xs { width: 20px; height: 20px; font-size: 0.6em; vertical-align: middle; }
.spb-league-crest { width: 26px; height: 26px; object-fit: contain; background: #fff; }
.spb-league-badge { display: inline-flex; align-items: center; justify-content: center; background: #0e1944; color: #fff; font-weight: bold; font-size: 0.7em; border-radius: 6px; width: 26px; height: 26px; }

.spb-league { margin-bottom: 32px; }
.spb-league h2 { color: #0e1944; border-bottom: 3px solid #e6007e; padding-bottom: 6px; }
.spb-coverage { font-size: 0.9em; color: #555; }
.spb-unavailable { background: #f7f7f7; border-radius: 8px; padding: 8px 18px; }
.spb-footnote { font-size: 0.85em; color: #555; }
.spb-login-required { text-align: center; padding: 40px 20px; }
.spb-admin .spb-header { margin-bottom: 16px; }
#spb-admin-result { margin: 12px 0; white-space: pre-wrap; }

@media (max-width: 600px) {
    .spb-cards { grid-template-columns: 1fr; }
    .spb-accuracy-leagues { columns: 1; }
    .spb-ticker-label { padding: 10px 8px; font-size: 0.85em; }
}
