.match-skeleton {
    background-color: #1e2835;
    border-radius: 6px;
    border: 1px solid #2a3546;
    margin-bottom: 10px;
    padding: 12px;
    position: relative;
    overflow: hidden;
}

.match-skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(30, 40, 53, 0) 0%,
        rgba(42, 57, 74, 0.15) 50%,
        rgba(30, 40, 53, 0) 100%
    );
    animation: shine 1.5s infinite;
    transform: translateX(-100%);
}

@keyframes shine {
    100% {
        transform: translateX(100%);
    }
}

.skeleton-team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skeleton-team-name {
    height: 16px;
    width: 120px;
    background-color: #273346;
    border-radius: 3px;
    animation: pulse 1.5s infinite;
}

.skeleton-score {
    height: 16px;
    width: 20px;
    background-color: #273346;
    border-radius: 3px;
    animation: pulse 1.5s infinite 0.15s;
}

.skeleton-vs {
    text-align: center;
    margin: 8px 0;
    height: 14px;
    width: 40px;
    background-color: #273346;
    border-radius: 3px;
    animation: pulse 1.5s infinite 0.3s;
    margin: 8px auto;
}

.skeleton-tournament {
    height: 14px;
    width: 160px;
    background-color: #273346;
    border-radius: 3px;
    margin-bottom: 10px;
    animation: pulse 1.5s infinite 0.45s;
}

.skeleton-odds-container {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.skeleton-odds {
    height: 30px;
    width: 60px;
    background-color: #273346;
    border-radius: 4px;
    animation: pulse 1.5s infinite 0.6s;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0.6;
    }
}

/* Make checkboxes less prominent in skeleton state */
.match-skeleton .custom-control-input {
    opacity: 0.3;
}

/* Hide existing 0.00 values in skeleton state */
.match-skeleton .odds-value {
    visibility: hidden;
    position: relative;
}

.match-skeleton .odds-value::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #273346;
    border-radius: 4px;
    visibility: visible;
    animation: pulse 1.5s infinite;
}

/* Match card loading indicator */
.match-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
}

.match-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #0d6efd;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Loading badge in corner */
.loading-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(13, 110, 253, 0.2);
    color: #0d6efd;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 10px;
    animation: pulse 1.5s infinite;
}
