/* ===================================
   Grundlayout
=================================== */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: #ddd;
    color: #222;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

h1 {
    color: #555;
    text-align: center;
    margin-bottom: 20px;
}

/* Albumtitel (Pause/Continue) */
#current-title {
    font-size: 1.2em;
    margin-bottom: 10px;
    cursor: pointer;
    color: #aaa; /* Pause */
}

#current-title.playing {
    color: #111; /* Play */
}

/* ------------------------------------------------------------------ */
/* Play/Pause Button */
#play-pause-btn {
    display: inline-block;
    font-size: 2rem;
    cursor: pointer;
    margin-bottom: 10px;
    background: none;
    border: none;
    padding: 0;
}

/* ------------------------------------------------------------------ */
/* Album Wrapper & Container */
.album-wrapper {
    width: 100%;
    overflow-x: auto;
    padding: 0 20px;
    white-space: nowrap;
    text-align: center;
    scroll-behavior: smooth; /* sanftes Scrollen */
}

.album-container {
    display: inline-block;  /* macht die gesamte Reihe zu einem Inline-Block */
    white-space: nowrap;    /* verhindert Zeilenumbruch */
}

/* Scrollbar Styling */
.album-container::-webkit-scrollbar {
    height: 6px;
}

.album-container::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}

.album-container::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
}

/* Spacer für iOS10-Bugfix */
.album-spacer {
    display: inline-block;
    width: 20px;
}

/* ------------------------------------------------------------------ */
/* Album-Karten */
.album {
    display: inline-block;  /* nebeneinander */
    vertical-align: top;    /* damit sie oben ausgerichtet sind */
    margin: 0 10px;         /* Abstand zwischen den Alben */
    text-align: center;
    cursor: pointer;
}

.album:hover .album-title {
    transform: translateY(-3px);
    color: #111; /* Titel wird minimal dunkler bei Hover */
}

/* Skalierung nur auf das Bild, nicht auf den ganzen Container */
.album-cover {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.album-cover:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 16px rgba(0,0,0,0.6);
}

/* Album Titel */
.album-title {
    margin-top: 8px;
    font-size: 0.9em;
    color: #222;
    transition: transform 0.25s ease, color 0.25s ease;
}

.album-spacer {
    display: inline-block;
    width: 20px;   /* optional */
    height: 1px;
}

/* ------------------------------------------------------------------ */
/* Systemplayer verstecken */
#audio-player {
    display: none;
}

/* ------------------------------------------------------------------ */
/* Trackliste */
#track-list {
    list-style: none;
    padding: 0;
    width: 100%;
    max-width: 600px;
}

#track-list li {
    padding: 10px 14px;
    margin-bottom: 6px;
    background: rgba(255,255,255,0.15);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

#track-list li:hover {
    background: rgba(155,155,155,0.25);
    transform: translateX(3px);
}

#track-list li.active {
    background: #3b6cff;
    color: #fff;
    font-weight: bold;
}

/* Play-Dreieck */
.play-icon {
    width: 0;
    height: 0;
    border-left: 10px solid #fff;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    margin-right: 10px;
}
