/* =========================
   GLOBAL
========================= */
html, body {
    height: auto;
    min-height: 100%;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(180deg, #111, #1b1b1b);
    color: #eee;
    padding: 10px;
}

h1 {
    text-align: center;
    margin-bottom: 10px;
}

#anzahl {
    text-align: center;
    margin-bottom: 15px;
    font-size: 14px;
}

.header {
    text-align: center;
    padding: 30px 10px 20px;
    background: linear-gradient(135deg,#111,#222);
    color: white;
    border-radius: 10px;
    margin-bottom: 20px;
}

.subtitle {
    opacity: 0.7;
    font-size: 14px;
}

/* =========================
   SEARCH
========================= */
#search-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

#searchInput {
    width: 100%;
    max-width: 350px;
    padding: 8px 35px 8px 10px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

#clearSearch {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-weight: bold;
    color: #888;
}

.autocomplete-list {
    position: absolute;
    top: 100%;
    width: 100%;
    max-width: 350px;
    background: #1e1e1e;
    border: 1px solid #333;
    max-height: 150px;
    overflow-y: auto;
    z-index: 10;
}

.autocomplete-item:hover {
    background-color: #2a2a2a;
}

.autocomplete-item {
    padding: 6px;
    cursor: pointer;
}

.autocomplete-item:hover {
    background-color: #eee;
}


/* =========================
   TABS + NAV
========================= */
#tabs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

#tabs {
    display: flex;
    gap: 5px;
    flex: 1;
    overflow-x: auto;
    white-space: nowrap;
}

#tabs::-webkit-scrollbar {
    display: none;
}

.tab,
#nav-buttons a {
    padding: 8px 16px;
    background-color: #222;
    border-radius: 5px 5px 0 0;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    color: #bbb;
    transition: background-color 0.2s;
}

.tab:hover,
#nav-buttons a:hover {
    background-color: #333;
}

.tab.active,
#nav-buttons a.active {
    background-color: #444;
    color: #fff;
}

#nav-buttons {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

hr.tab-line {
    border: none;
    border-bottom: 2px solid #888;
    margin-top: 5px;
}

#mobile-nav {
    background-color: #1e1e1e;
    color:#eee;
    border:1px solid #333;
}

/* =========================
   SORT
========================= */
.sort-container {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.sort-container label {
    font-size: 14px;
}

.sort-container select {
    padding: 5px;
    font-size: 14px;
}

#searchInput {
    width: 100%;
    max-width: 350px;
    padding: 8px 35px 8px 10px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #1e1e1e;
    color: #eee;
}

#searchInput::placeholder{
    color:#888;
}

.sort-container select {
    padding: 5px;
    font-size: 14px;
    background:#1e1e1e;
    color:#eee;
    border:1px solid #333;
}
/* =========================
   COLLECTION / ALBUMS
========================= */
.album-block {
    margin-bottom: 20px;
}

.block-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
}

.album-card {
    background: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.6);
    margin-bottom: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.album-card:hover {
    transform: scale(1.02);
    box-shadow: 
        0 10px 25px rgba(0,0,0,0.8),
        0 0 10px rgba(255,77,109,0.2);
}

.album-header {
    display: flex;
    gap: 15px;
    padding: 10px;
    cursor: pointer;
}

.album-header img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.album-card:hover img {
    transform: scale(1.05);
}

.album-info p {
    margin: 3px 0;
}

.album-info .title {
    font-weight: bold;
    font-size: 18px;
}

.album-info .artist {
    font-weight: bold;
    font-size: 14px;
}

.album-info .size-year {
    font-size: 13px;
    color: #aaa;
}


/* =========================
   DETAILS / TRACKLIST
========================= */
.details {
    display: flex;
    gap: 15px;
    background-color: #181818;
    padding: 10px 15px;
    font-size: 13px;
    color: #ccc;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.details.open {
    max-height: 600px;
}

.detail-left {
    flex: 1;
    min-width: 200px;
}

.tracklist {
    flex: 2;
    min-width: 300px;
}

.tracklist {
    flex: 2;
    min-width: 300px;
    background-color: #222;
    border-radius: 6px;
    padding: 10px;
    white-space: normal;
    line-height: 1.4;
}

.tracklist div {
    margin-bottom: 3px;
}


/* =========================
   COLUMN LIST (KÜNSTLER / GENRE)
========================= */
.column-list {
    display: block;
}

/* NUR ab Tablet Columns benutzen */
@media (min-width: 768px) {
    .column-list {
        column-count: 2;
        column-gap: 40px;
    }
}

@media (min-width: 1100px) {
    .column-list {
        column-count: 3;
    }
}

@media (min-width: 1500px) {
    .column-list {
        column-count: 4;
    }
}


.letter-title {
    font-weight: bold;
    margin: 12px 0 6px;
    break-inside: avoid;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    break-inside: avoid;
}


.list-item:hover {
    text-decoration: underline;
}


/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
    .album-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .album-header img {
        width: 180px;
        height: 180px;
    }

    .details {
        flex-direction: column;
    }

    .sort-container {
        justify-content: center;
    }
}

/* =========================
   MOBILE DROPDOWN NAV
========================= */

#mobile-nav {
    display: none;
    width: 100%;
    max-width: 360px;
    margin: 10px auto 15px;
    padding: 10px;
    font-size: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #fff;
}

/* Nur auf Handy aktiv */
@media (max-width: 700px) {

    /* Tabs + Künstler/Genre ausblenden */
    #tabs-container {
        display: none;
    }

    /* Dropdown anzeigen */
    #mobile-nav {
        display: block;
    }
}

@media (max-width: 900px) {
    .details {
        flex-direction: column;
    }
}

.footer{
    text-align:center;
    margin-top:40px;
    opacity:0.5;
    font-size:12px;
}