* {
    padding: 0;
    margin: 0;
    color: #fff;
}

html, body {
    height: 100vh;
    width: 100%;
    margin: 0;
    font-family: sans-serif, system-ui;
    background: linear-gradient(135deg, #1a1a1a, #2b2d31);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Radio container */
.radio {
    max-width: 95%;
    margin: 10px auto;
    width: 85vw;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    background-color: #202020;
    border: 1px solid #333;
    text-align: center;
}

/* Play/Pause button */
#player {
    margin: 10px;
    display: flex;
    padding: 5px 10px;
    background: gray;
    flex-direction: column; 
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid #c9c9c9;
}

/* Styles when radio is offline */
.offline-indicator {
    color: #e77373; /* Red color for offline indicator */
    margin-bottom: 10px;
    font-style: italic;
    font-size: 1.5rem;
    font-weight: bold;
}
.offline {
    opacity: 0.4;
    filter: grayscale(1);
    pointer-events: none;
}

/* Play/Pause button styling */
.play-pause-btn {
    background: none; /* Remove background */
    border: none; /* Remove border */
    padding: 0; /* Remove padding */
    cursor: pointer; /* Pointer cursor for interaction */
    color: #fff; /* Text color */
    font-size: 22px; /* Icon size */
}

/* Hover effect for better interaction */
.play-pause-btn:hover {
    opacity: 0.8; /* Slightly faded on hover */
}


/* Button Container */
.buttons {
    display: flex;
    margin-bottom: 5px; /* Space below buttons */
    align-items: center; /* Align icons vertically */
    margin: 10px 0;
}

/* Volume and Play/Pause Icons */
#volumeUpIcon, #volumeDownIcon, #muteIcon, #playPauseIcon {
    font-size: 22px; /* Uniform icon size */
    cursor: pointer;  /* Change cursor on hover */
    color: #fff; /* Fixed color code to white */
    margin: 0 5px; /* Set horizontal margin to create space between icons */
}

/* Metadata display */
.metadata {
    flex-direction: column;
}


/* Icon inside button */
#playPauseIcon {
    font-size: 22px;
}

/* Optional: responsive for mobile */
@media (max-width: 480px) {
    .radio {
        max-width: 90%;
        padding: 20px;
    }
}

.fade {
    opacity: 0;
    transition: opacity .2s ease;
}

#nowPlaying, #artist {
    transition: opacity .2s ease;
}
