/* Base styles and CSS reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Roboto", "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #fff;
    background-color: #222;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Player container */
.player-container {
    position: relative;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Background image */
.image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#sh_photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

/* Gradient overlay for better text readability */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 2;
}

/* Content positioned above the image */
.content {
    position: relative;
    z-index: 3;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Show header */
h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding-bottom: 8px;
}

h1 a {
    text-decoration: none;
    color: #fff;
    transition: color 0.2s ease;
}

h1 a:hover {
    color: #3498db;
    text-shadow: 2px 2px 8px rgba(52, 152, 219, 0.3);
}

/* Show info list */
ol {
    list-style: none;
    margin-bottom: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 6px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-left: 4px solid #3498db;
}

ol li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

ol li:last-child {
    border-bottom: none;
}

/* Add icons before each info item */
#sh_djname::before {
    content: "👤 Host: ";
    font-weight: bold;
    margin-right: 8px;
    color: #3498db;
}

#sh_cat::before {
    content: "🎵 Category: ";
    font-weight: bold;
    margin-right: 8px;
    color: #3498db;
}

#sh_stime::before {
    content: "🕒 Starts: ";
    font-weight: bold;
    margin-right: 8px;
    color: #3498db;
}

#sh_ends::before {
    content: "🕒 Ends: ";
    font-weight: bold;
    margin-right: 8px;
    color: #3498db;
}

#sh_desc::before {
    content: "📝 Description: ";
    font-weight: bold;
    margin-right: 8px;
    color: #3498db;
    display: block;
}

#sh_desc {
    padding-top: 10px;
    line-height: 1.5;
    display: block;
}

/* Spacer to push content up and player down */
.spacer {
    flex-grow: 1;
}

/* Audio player styling - fixed at the bottom */
.audio-container {
    background-color: rgba(0, 0, 0, 0.8);
    width: 100%;
    padding: 15px;
    position: relative;
    z-index: 4;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
}

.player-info {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.now-playing {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #3498db;
}

audio {
    width: 100%;
    height: 50px;
    border-radius: 30px;
}

/* Custom audio player controls */
audio::-webkit-media-controls-panel {
    background-color: rgba(52, 152, 219, 0.2);
}

audio::-webkit-media-controls-play-button {
    background-color: #3498db;
    border-radius: 50%;
}

audio::-webkit-media-controls-play-button:hover {
    background-color: #2980b9;
}

/* Responsive design */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    ul {
        font-size: 0.9rem;
    }

    body {
        height: auto;
        overflow: scroll;
    }

    /* Audio player styling - fixed at the bottom */
    .audio-container {
        position: sticky;
    }

    .content: {
        height: auto;
    }
}
