/* --- Horizontal Scrolling Navigation (Adapted from SportsPress) --- */

.sp-scoreboard-wrapper {
    position: relative;
    /* Adjust min-height if loading spinner isn't centering correctly */
    min-height: 100px;
}

.sp-scoreboard-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 35px;
    height: 35px;
    padding: 0;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s, opacity 0.3s;
}

.sp-scoreboard-nav:hover:not(:disabled) {
    background-color: #004494;
    color: white;
    border-color: #004494;
}

.sp-scoreboard-nav-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f9f9f9;
}

/* RTL positioning (Previous on Right, Next on Left) */
.sp-scoreboard-prev {
    right: 0;
    border-radius: 0 4px 4px 0; 
}

.sp-scoreboard-next {
    left: 0;
    border-radius: 4px 0 0 4px;
}

/* Font Awesome Icons for RTL */
.sp-scoreboard-prev:before {
    content: "\f053"; /* fa-chevron-left: icon pointing left */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.sp-scoreboard-next:before {
    content: "\f054"; /* fa-chevron-right: icon pointing right */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

/* --- Loading State Overlay --- */

.echo-matches-root {
    position: relative;
    /* min-height is set on sp-scoreboard-wrapper */
}

.echo-matches-root.loading .sp-scoreboard-content {
    opacity: 0.5;
    pointer-events: none;
}

.loading-spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #004494;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 100;
}

.echo-matches-root.loading .loading-spinner {
    display: block;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}