body {
    display: flex;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    flex-direction: column;
    justify-content: center;
    font-family: 'Roboto Mono', monospace;
}

.content_container {
    display: flex;
    flex-direction: column;
    padding-left: 15px;
    padding-right: 15px;
    align-items: center;
}

#cover {
    max-width: 450px;
    height: auto;
}

.player-container {
    background: white;
    padding: 0 15px;
    margin: 0px 0px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.controls-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 0px;
    margin-bottom: 10px;
    width: 100%;
}

.controls button {
    all: unset !important; /* Force reset all properties */
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    border: none !important;
    background: transparent !important;
    background-color: rgb(255, 255, 255) !important;
    color: rgb(0, 47, 96) !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
    transition: transform 0.2s ease !important;
    padding: 8px !important;
    margin: 0 !important;
    min-width: 44px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    text-shadow: none !important;
}

.controls button:hover {
    transform: scale(1.1);
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 10px;
}

/* Custom progress bar */
.custom-progress-bar {
    width: 80%;
    height: 6px;
    background: #ddd;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.custom-progress-fill {
    height: 100%;
    background: rgb(0, 47, 96);
    width: 0%;
    border-radius: 5px;
}

/* Time Display */
#currentTime, #duration {
    font-size: 0.9rem;
}

.content_container p {
    text-align: center;
    line-height: 30px;
}

/* Playlist Styling */
#playlist {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    text-align: left;
}

#playlist li {
    cursor: pointer;
    padding: 5px;
    font-size: 0.8rem;
    transition: background-color 0.2s ease;
    letter-spacing: 2px;
}

#playlist li:hover {
    text-decoration: underline;
    text-decoration-color: rgba(0, 47, 96, 0.518);
    text-decoration-thickness: 2px;
}

#playlist li.playing {
    font-weight: bold;
    color: rgb(0, 47, 90);
}

.platforms {
    letter-spacing: 3px;
    line-height: 10px;
}

a:link, a:visited {
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    text-align: center;
    text-decoration: none;
    display: inline-block;
    padding: 5px 5px;
    font-size: 1.2rem; 
    margin: 10px 0;
}

a:hover, a:active {
    text-decoration: underline;
    text-decoration-color: rgba(0, 47, 96, 0.518);
    text-decoration-thickness: 5px;
}

@supports (-webkit-touch-callout: none) {
    .controls button {
        appearance: none !important;
        -webkit-appearance: none !important;
        background-color: rgb(255, 255, 255) !important;
        color: rgb(0, 47, 96) !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
}

@media (max-width: 1024px) {
    
    #cover {
        max-width: 75%;
        height: auto;
    }

    .player-container {
        border-radius: 10px;
        width: 100%;
        max-width: 500px;
        text-align: center;
    }

    #playlist li {
        cursor: pointer;
        padding: 5px;
        font-size: 1rem;
        transition: background-color 0.2s ease;
    }

    .content_container p {
        font-size: 1.5rem;
    }

    .platforms {
        line-height: 30px;
    }
    
    #link {
        font-size: 1.8rem;
    }
}

@media (max-width: 820px) {
    
    .content_container p {
        font-size: 1.2rem;
    }

    .platforms {
        line-height: 20px;
        line-height: 25px;
    }
    
    #link {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {

    body {
        padding: 5px;
    }

    #cover {
        max-width: 75%;
        height: auto;
    }

    .player-container {
        border-radius: 10px;
        width: 80%;
        max-width: 500px;
        text-align: center;
    }

    .content_container p {
        font-size: 1.2rem;
    }

    .platforms {
        line-height: 20px;
    }

    #link {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {

    #cover {
        max-width: 100%;
        height: auto;
    }

    .controls {
        gap: 20px; /* Slightly increase spacing for easier touch targeting */
    }

    .controls button {
        -webkit-appearance: none !important;
        appearance: none !important;
        background-color: rgb(255, 255, 255) !important;
        color: rgb(0, 47, 96) !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        font-size: 1.2rem !important;
    }

    .custom-progress-bar {
        height: 8px; /* Slightly larger for touch */
    }

    #playlist li {
        cursor: pointer;
        padding: 5px;
        font-size: 0.8rem;
        transition: background-color 0.2s ease;
    }

    .content_container p {
        font-size: 1rem;
    }

    .platforms {
        line-height: 10px;
    }

    #link {
        font-size: 1.1rem;
    }
}