/* Loading backdrop */
.loading-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#match-list-container {
    overflow-y: auto;
    padding-right: 10px
}

#results-header {
    margin-bottom: 0.4rem !important;;
}

.results-section {
    margin-top: 0.5rem;
}

#match-list-container::-webkit-scrollbar {
    width: 8px;
}

#match-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#match-list-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

#match-list-container::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.go-to-top-btn {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    background-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
}

.go-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.go-to-top-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.load-more-container:empty {
        display: none;
}

@media (min-width: 992px) {
    .results-section {
        width: 30%;
        flex-shrink: 0;
    }

    .results-content {
        height: calc(100vh - 140px);
        display: flex;
        flex-direction: column;
        position: relative;
    }

    #match-list-container {
        flex: 1;
        max-height: none;
        overflow-y: auto;
        padding-right: 10px;
        min-height: 0;
    }

    .load-more-container {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        padding: 0.35rem 0;
    }
}
