/* Custom styles beyond Tailwind */

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ---------- Cards ---------- */
.match-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(145deg, rgba(30,41,59,0.8), rgba(15,23,42,0.9));
    border: 1px solid rgba(51,65,85,0.5);
}
.match-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59,130,246,0.3);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.4), 0 0 20px rgba(59,130,246,0.08);
}

.prob-bar { transition: width 1s cubic-bezier(0.4, 0, 0.2, 1); }
.player-row { transition: background 0.2s; }
.player-row:hover { background: rgba(59,130,246,0.08); }

.radar-container { position: relative; height: 260px; }

.flag { font-size: 1.6rem; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }

@keyframes scorePop {
    0% { transform: scale(0.8); opacity: 0; }
    60% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}
.score-badge { animation: scorePop 0.5s ease-out forwards; }

.team-name {
    background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Modal entrance */
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
#prediction-modal .pointer-events-auto {
    animation: modalIn 0.3s ease-out;
}
/* Mobile: slide up instead of scale */
@media (max-width: 640px) {
    #prediction-modal .pointer-events-auto {
        animation: slideUp 0.3s ease-out;
    }
    @keyframes slideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
}

.standing-card {
    background: rgba(30,41,59,0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(51,65,85,0.4);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.prob-bar-loading {
    background: linear-gradient(90deg, rgba(59,130,246,0.3) 25%, rgba(59,130,246,0.6) 50%, rgba(59,130,246,0.3) 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* ---------- Bracket ---------- */
.bracket-wrap {
    display: flex;
    gap: 8px;
    align-items: stretch;
    min-width: 680px;
    padding-bottom: 8px;
}
.bracket-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.bracket-round-title {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    padding: 6px 0;
}
.bracket-matches {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: space-around;
    flex: 1;
}
.bracket-match {
    background: rgba(30,41,59,0.6);
    border: 1px solid rgba(51,65,85,0.4);
    border-radius: 10px;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.bracket-team {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 12px;
    color: #94a3b8;
    transition: all 0.2s;
}
.bracket-winner {
    background: rgba(59,130,246,0.12);
    border: 1px solid rgba(59,130,246,0.25);
    color: #e2e8f0;
    font-weight: 600;
}
.bracket-prob {
    margin-left: auto;
    font-size: 10px;
    font-family: monospace;
    color: #60a5fa;
}
.bracket-champion {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 8px;
    background: linear-gradient(135deg, rgba(234,179,8,0.10), rgba(234,179,8,0.05));
    border: 2px solid rgba(234,179,8,0.3);
    border-radius: 14px;
    text-align: center;
    font-size: 14px;
}

/* ---------- Weight sliders ---------- */
.weight-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #1e293b;
    outline: none;
    cursor: pointer;
}
.weight-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    border: 2px solid #1e293b;
    box-shadow: 0 0 10px rgba(59,130,246,0.4);
    cursor: pointer;
    transition: all 0.15s;
}
.weight-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.weight-slider::-moz-range-thumb {
    width: 20px; height: 20px; border-radius: 50%;
    background: #3b82f6; border: 2px solid #1e293b;
    cursor: pointer;
}

/* ---------- Score input ---------- */
.score-input {
    width: 50px;
    height: 44px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    font-family: monospace;
    background: #1e293b;
    border: 1px solid rgba(59,130,246,0.3);
    border-radius: 10px;
    color: white;
    outline: none;
    transition: border-color 0.2s;
    -moz-appearance: textfield;
}
.score-input::-webkit-inner-spin-button,
.score-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.score-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,0.2); }

/* ---------- Tab buttons ---------- */
.tab-btn {
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s;
    background: #1e293b;
    color: #94a3b8;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}
.tab-btn:hover { background: #334155; color: #e2e8f0; }
.tab-btn.active {
    background: #2563eb;
    color: white;
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

/* Status filter pills (slightly smaller than tabs) */
.filter-btn {
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s;
    background: #1e293b;
    color: #94a3b8;
    border: 1px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
}
.filter-btn:hover { background: #334155; color: #e2e8f0; }
.filter-btn.active {
    background: rgba(37,99,235,0.15);
    color: #60a5fa;
    border-color: rgba(37,99,235,0.4);
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 640px) {
    .flag { font-size: 1.3rem; }
    .radar-container { height: 220px; }
}

/* ---------- Match card glow for top-3 hit ---------- */
.match-hit-glow {
    box-shadow: 0 0 24px rgba(74,222,128,0.12), 0 0 48px rgba(74,222,128,0.06);
    border-color: rgba(74,222,128,0.25) !important;
}
@keyframes greenPulse {
    0%, 100% { box-shadow: 0 0 16px rgba(74,222,128,0.08); }
    50% { box-shadow: 0 0 32px rgba(74,222,128,0.18); }
}
.match-hit-glow {
    animation: greenPulse 3s ease-in-out infinite;
}

.shadow-gold { text-shadow: 0 0 12px rgba(234,179,8,0.4); }

/* ---------- Toast ---------- */
#toast {
    transition: opacity 0.3s;
}
#toast.hidden { opacity: 0; }
#toast:not(.hidden) { opacity: 1; }

/* ---------- Champion table bg bar ---------- */
#champion-table tr:last-child td div.absolute {
    transition: width 0.8s;
}

/* ---------- Spinner animation ---------- */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------- Live (in progress) ---------- */
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f43f5e;
    box-shadow: 0 0 0 0 rgba(244,63,94,0.6);
    animation: livePulse 1.4s infinite;
}
@keyframes livePulse {
    0%   { box-shadow: 0 0 0 0 rgba(244,63,94,0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(244,63,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(244,63,94,0); }
}
.live-card {
    background: linear-gradient(145deg, rgba(40,20,28,0.6), rgba(15,23,42,0.9));
    border: 1px solid rgba(244,63,94,0.3);
    transition: all 0.3s;
}
.live-card:hover {
    border-color: rgba(244,63,94,0.55);
    box-shadow: 0 10px 30px -10px rgba(244,63,94,0.2);
}
