* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-image: url("https://race.ovh/saved/s14s3/images/background.webp");
    background-color: #000000;
    background-size: cover; /* This makes the background image cover the entire screen */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
}

.ranking-table {
    width: 90%;
    margin: 20px auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: #333;
}

thead th {
    padding: 15px;
    text-align: left;
    font-weight: normal;
    color: #999;
}

tbody tr {
    background-color: rgba(38, 38, 38, 0.5);
    border-bottom: 1px solid #333;
}

tbody tr:hover {
    background-color: rgba(51, 51, 51, 0.6);
}

tbody td {
    padding: 15px;
    text-align: left;
}

.player-info {
    display: flex;
    align-items: center;
}

.player-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

.player-name {
    font-weight: bold;
}

.player-tag {
    color: #999;
}

.rank-info {
    display: flex;
    align-items: center;
}

.rank-info img {
    width: 30px;
    margin-right: 10px;
}

.winrate {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.winrate-bar {
    background-color: #444;
    height: 10px;
    width: 100px;
    border-radius: 5px;
    overflow: hidden;
    margin-left: 10px;
}

.winrate-filled {
    background-color: red;
    height: 100%;
    width: 50%; /* This width will vary depending on winrate */
}

.youtube-icon a img {
    position: relative;
    width: 40px;
    margin-right: 10px;
    left: 7;
}

.social-icons a {
    text-decoration: none; /* Remove the underline */
}

.social-icons a img {
    display: inline-block; /* Ensure the image behaves properly in the link */
    width: 20px;
    margin-right: 10px;
}

.live-badge {
    background-color: red;
    padding: 1px 5px;
    color: white;
    font-size: 12px;
    border-radius: 5px;
    line-height: 20px; /* Adjust this value to control badge height */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    display: none;
}

.top-button {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    z-index: 2;
}

/* Responsive Design */
@media only screen and (max-width: 600px) {

    body {
    background-image: url("../images/background.webp");
    background-color: #cccccc;
    background-size: normal; /* This makes the background image cover the entire screen */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
    }

    .ranking-table {
        width: 100%; /* Make table take full width on small screens */
        margin: 10px auto;
    }

    thead th, tbody td {
        padding: 10px; /* Reduce padding for smaller screens */
        font-size: 12px; /* Make text slightly smaller */
    }

    .player-avatar {
        width: 40px; /* Reduce avatar size on smaller screens */
        height: 40px;
    }

    .player-name {
        font-size: 14px; /* Reduce font size for player name */
    }

    .rank-info img {
        width: 20px; /* Make rank icons smaller */
    }

    .winrate-bar {
        width: 80px; /* Reduce width of winrate bar */
    }

    .live-badge {
        font-size: 10px; /* Smaller font size for live badge */
        padding: 1px 3px; /* Adjust padding for badge */
    }

    .top-button {
        padding: 8px 16px; /* Reduce padding for top button */
        font-size: 12px; /* Adjust font size */
    }

    .social-icons a img {
        width: 15px; /* Make social icons smaller */
        margin-right: 5px;
    }
}

#audio-player {
    position: fixed;
    top: 0px; 
    left: 0px;
    z-index: 10; 
    display: flex;
    align-items: center;
    padding: 10px;
}

.audio-button {
    background-color: transparent;
    border: none;
    font-size: 24px; 
    margin-right: 10px;
    cursor: pointer;
    color: white; 
}

#volume-control {
    position: relative;
}

#volume-slider {
    display: none;
    position: absolute;
    top: 14px;
    left: 35px;
    width: 100px;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 5px;
    outline: none;
    transition: opacity 0.3s ease;
}

#volume-slider.show {
    display: block;
    animation: slide-down 0.3s ease;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #4c00fc; 
    cursor: pointer;
    box-shadow: 0px 0px 10px rgba(76,0,252);
}

#volume-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #4c00fc;
    cursor: pointer;
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.8);
}

@keyframes slide-down {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
