body {
    font-family: 'Inter', sans-serif;
    background-color: #1a1a1a; /* Dunkler Hintergrund */
    color: #e0e0e0; /* Heller Text */
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column; /* Damit Footer unten bleibt, auch wenn Inhalt kürzer */
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.container {
    background-color: #2c2c2c; /* Etwas hellerer Kartenhintergrund */
    padding: 25px 35px;
    border-radius: 16px; /* Etwas größere Rundung */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4); /* Stärkerer Schatten */
    text-align: center;
    width: 100%;
    max-width: 480px; /* Etwas schmaler für besseren Fokus */
}

header {
    margin-bottom: 25px;
}

#logo {
    max-width: 150px; /* Logo-Größe angepasst (war 180px) */
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;
}

header h1 {
    color: #4CAF50; /* Akzentfarbe Grün */
    margin-bottom: 20px;
    font-size: 1.7em; /* Etwas kleiner */
    font-weight: 700;
}

/* Card für "Now Playing" Informationen */
.now-playing-card {
    background-color: #333333;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex; /* Cover und Text nebeneinander */
    flex-direction: column; /* Standardmäßig untereinander für kleinere Screens */
    align-items: center;
    gap: 15px;
}

.album-art {
    width: 120px; /* Album-Cover Größe angepasst (war 150px) */
    height: 120px; /* Album-Cover Größe angepasst (war 150px) */
    border-radius: 8px;
    object-fit: cover; /* Stellt sicher, dass das Bild den Bereich füllt ohne Verzerrung */
    background-color: #4a4a4a; /* Platzhalterfarbe während des Ladens */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.track-info {
    text-align: center; /* Text zentrieren */
    flex-grow: 1;
}

.track-info h2 { /* Songtitel */
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.3em;
    font-weight: 600;
    color: #ffffff;
}

.track-info p { /* Artist & Show Info */
    margin-bottom: 4px;
    font-size: 0.95em;
    color: #b0b0b0;
}
.track-info p.show-info {
    font-size: 0.9em;
    color: #999;
}
.track-info p.listeners-info {
    font-size: 0.85em;
    color: #888;
    margin-top: 8px;
}
.track-info p.show-info span,
.track-info p.listeners-info span {
    font-weight: 600;
    color: #aaa;
}


/* Card für den Audio Player */
.player-card {
    background-color: #383838; /* Leicht anderer Ton */
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.player-card h3 {
    margin-top: 0;
    font-size: 1.2em;
    color: #e0e0e0;
    font-weight: 600;
    margin-bottom: 15px;
}

audio {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
}

audio::-webkit-media-controls-panel {
    background-color: #4a4a4a;
    border-radius: 6px;
}
audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-volume-slider {
    /* Standard-Browser-Styling hier, da Custom Controls komplexer sind */
}
audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
    color: #e0e0e0;
    font-size: 0.9em;
}

.controls {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.control-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 28px; /* Etwas mehr Padding */
    text-align: center;
    font-size: 1em;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    min-width: 130px;
}

.control-button:hover {
    background-color: #45a049;
}
.control-button:active {
    transform: scale(0.97);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 80%;
    max-width: 280px; /* Etwas breiter */
}

.volume-control label {
    font-size: 0.9em;
    color: #b0b0b0;
}

#volumeSlider {
    flex-grow: 1;
    cursor: pointer;
    accent-color: #4CAF50;
}

footer {
    margin-top: auto; /* Drückt den Footer nach unten */
    padding-top: 20px; /* Abstand zum Inhalt */
    font-size: 0.85em;
    color: #999; /* Helleres Grau */
}

footer a {
    color: #4CAF50;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Anpassungen */
@media (min-width: 450px) { /* Für etwas breitere Screens als Mobil */
    .now-playing-card {
        flex-direction: row; /* Cover links, Text rechts */
        text-align: left; /* Text linksbündig */
    }
    .track-info {
        text-align: left;
    }
}


@media (max-width: 600px) {
    .container {
        margin: 10px;
        padding: 20px 25px; /* Angepasst */
        max-width: 100%;
    }

    header h1 {
        font-size: 1.6em;
    }

    .track-info h2 {
        font-size: 1.2em;
    }
    .track-info p {
        font-size: 0.9em;
    }

    .control-button {
        padding: 10px 22px;
        font-size: 0.95em;
    }

    .volume-control {
        width: 90%;
        max-width: 250px;
    }
}

@media (max-width: 380px) { /* Sehr schmale Screens */
    .album-art {
        width: 100px; /* Further reduced for very small screens */
        height: 100px; /* Further reduced for very small screens */
    }
    .track-info h2 {
        font-size: 1.1em;
    }
     header h1 {
        font-size: 1.4em;
    }
}
