/* --- Grundlayout --- */
body {
    background: black;
    color: #fff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
}

.title {
    text-align: center;
    margin-bottom: 20px;
}

/* --- Suchleiste --- */
.search-container {
    text-align: center;
    margin-bottom: 20px;
}

#searchInput {
    width: 80%;
    padding: 12px;
    font-size: 18px;
    border-radius: 6px;
    border: none;
    outline: none;
}

/* --- Suchergebnisse (Desktop) --- */
.search-results {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
}

.search-results img {
    width: 120px;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin: 5px;
}

/* --- Kategorien / Zeilen --- */
.genre-row {
    margin-bottom: 40px;
}

.genre-row h2 {
    margin: 0 0 10px 5px;
    font-size: 22px;
}

/* --- Swiper (Desktop/Tablet) --- */
.swiper-container {
    width: 100%;
    padding-bottom: 10px;
}

.swiper-slide img {
    width: 160px;
    height: 240px;
    object-fit: cover;
    border-radius: 6px;
}

/* Tablet */
@media (max-width: 1024px) {
    .swiper-slide img {
        width: 140px;
        height: 210px;
    }
}

/* --- iPhone / kleine Smartphones --- */

/* 1. Suchergebnisse groß */
@media (max-width: 600px) {
    .search-results img {
        width: 48% !important;
        height: auto !important;
        aspect-ratio: 2 / 3;
        object-fit: cover;
        margin: 1% !important;
    }
}

/* 2. Swiper im CSS-Mode auf iPhone */
@media (max-width: 600px) {
    .swiper-slide {
        width: 48% !important;
        margin-right: 2% !important;
    }

    .swiper-slide img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 2 / 3;
        object-fit: cover;
    }
}
.detail-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.detail-cover {
    width: 80%;
    max-width: 300px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.back-button {
    margin-top: 20px;
    padding: 12px 20px;
    font-size: 18px;
    border: none;
    border-radius: 6px;
    background: #444;
    color: white;
}
