body {
    font-family: 'Courier New', monospace;
    margin: 0;
    padding: 0;
}

header {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
}

h1 {
    margin: 0;
}

p {
    margin-top: 10px;
}

.music-list {
    max-width: 90%;
    margin: 20px auto;
}

.music-entry {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    cursor: pointer;
}

.music-entry:hover {
    background-color: #f5f5f5;
}

.music-entry .header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px;
    background-color: #eee;
}

.mix-info {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.mix-info .mix-number {
    flex: 0; /* Takes up 1/10 of the width */
    margin-right: 50px;
}

.mix-info .mix-user {
    flex: 1;
    margin-right: 10px;
    margin-left: 20px;
}

.mix-info .mix-title {
    flex: 8;
    align-items: flex-start;
    margin-left: 20px; /* Adds some space between track number and mix name */
    margin-right: 20px;
}

.mix-info .mix-duration {
    flex: 0;
    margin-right: 20px;
}

.mix-info .expand-icon {
    flex: 0;
}

.music-entry .mix-details {
    display: none;
    flex-direction: row;
    padding: 20px;
    width: 100%
}

.music-entry.expanded .mix-details {
    display: flex;
    padding: 10px;
    /*margin-left: 30px;*/
    /*justify-content: space-between;*/
    align-items: flex-start; 
    width: 100%;
}

.music-entry.expanded .mix-description {
    flex: 9;
    margin-right: 20px;
    margin-left: 20px;
}

.music-entry .play-button,
.music-entry .download-button {
    width: 20px; /* Adjust as needed */
    height: 20px;
    fill: #333;
    cursor: pointer;
    flex: 0 0 auto;
    margin-right: 10px; 
    color: inherit;
    text-decoration: none;
    display: inline-block; 
}

.music-entry.expanded .mix-actions {
    display: flex;
}

.download-button:hover {
    fill: #555; /* Adjust color on hover */
}


/* Add styles for the container */
#playerContainer {
    position: fixed;
    width: 50%;
    margin: 0 auto;
    border: 1px solid #333;
    bottom: 10px; /* Adjust the distance from the bottom as needed */
    right: 10px; /* Adjust the distance from the right as needed */
    display: none; /* Initially hide the container */
}

/* Style for the close button */
#closePlayer {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 1.5em;
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
}

/* Adjust the position for narrow screens */
@media (max-width: 600px) {
    #closePlayer {
        top: 5px;
        right: 5px;
        font-size: 1.2em;
    }
    #playerContainer {
        width: 100%;
    }

    .mix-info {
        flex-direction: column;
        display: flex;
        align-items: left;
        width: 100%;
    }

    .mix-info .mix-title {
        align-items: left;
        margin-left: 0px;
        margin-top: 5px;
        margin-right: 20px;
    }

    .mix-info .mix-user {
        flex: 1;
        margin-right: 10px;
        margin-left: 0px;
        margin-top: 5px;
    }

    .mix-info .mix-duration{
        margin-top: 5px;
    }

    .music-entry.expanded .mix-details {
        flex-direction: column;
        align-items: left;
        text-align: left;
    }

    .music-entry.expanded .mix-description{
        margin-top: 10px;
    }

    .music-entry.expanded .mix-title,
    .music-entry.expanded .mix-description {
        width: 90%; /* Take up full width on narrow screens */
        margin-left: 0px;
        margin-right: 20px;
    }

    .music-entry.expanded .mix-actions {
        display: flex;
    }
    
}


/* Add styles for the title box */
.title-box {
    padding: 10px;
    background-color: #fff; /* Adjust background color as needed */
    color: #333; /* Adjust text color as needed */
    border-radius: 5px; /* Optional: Add border radius for rounded corners */
    text-align: center; /* Center the text */
}

#playerTitle {
    font-size: 12px; /* Adjust font size as needed */
}

/* Add styles for the Plyr player */
#sharedPlayer {
    width: 100%; /* Make Plyr player fill the container */
}