/* Default Theme (Lightmode) */
:root {
    --bg: #181820;
    --secondary-bg: #23233a;
    --text-color: #ffffff;
    --accent: #f0006f;
    --button-bg: #3a3a53;
    --button-hover: #4a4a63;
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background: var(--bg);
}

/* Verhindere Textauswahl */
* {
    user-select: none;
}

/* Hauptcontainer für horizontales Scrollen */
main {
    display: flex;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    width: 100vw;
    height: 100vh; /* Höhe der Seiten */
    position: relative;
}

.link {
    color: var(--accent);
    font-weight: bold;
    text-decoration: none;
}

/* Jede Seite nimmt die volle Breite und Höhe ein */
.section {
    flex: 0 0 100vw;
    scroll-snap-align: start;
    overflow-y: auto;
    height: 100vh; /* Höhe der Seiten */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    box-sizing: border-box;
}

.section.active {
    display: flex;
}

#player {
    height: calc(100% - 150px);
    justify-content: center;
    align-items: center;
}

#menu,
#favorites {
    height: 100%;
    flex-direction: column;
    overflow-y: auto;
}

.player-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
}

.cover {
    width: 190px;
    height: 190px;
    overflow: hidden;
    border-radius: 12px;
}

.cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.station-name {
	margin: 12px 0;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.nowplaying {
    font-size: 1rem;
    text-align: center;
    color: var(--text-color);
}

.artist {
    margin-top: 4px;
    margin-bottom: 24px;
}

.track {
    font-weight: 600;
    color: var(--text-color);
}

.controls {
    display: flex;
    gap: 20px;
}

.controls button {
    background: var(--button-bg);
    color: var(--text-color);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: background 0.2s;
}

.controls button:hover {
    background: var(--button-hover);
}

.controls button i {
    font-size: 20px;
}

/* Vereinheitlichtes Styling für Listen */
.menu-list,
.favorites-list {
    text-align: center;
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 80px;
}

/* Styling für Listenelemente */
.menu-item,
.favorites-item {
    display: flex;
    text-align: left;
    align-items: center;
    gap: 16px;
    padding: 6px;
    border-radius: 16px;
    background: var(--button-bg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background 0.2s;
}

.menu-item .mi-cover,
.favorites-item .mi-cover {
    background: var(--button-hover);
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.menu-item .mi-cover img,
.favorites-item .mi-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-item .mi-info,
.favorites-item .mi-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    overflow: hidden;
}

.menu-item .mi-title {
    font-size: 1rem;
    font-weight: 600;
}

.favorites-item .mi-title,
.menu-item .mi-nowplaying,
.favorites-item .mi-nowplaying {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.menu-item .mi-play,
.favorites-item .mi-play {
    color: var(--accent);
    font-size: 1.5rem;
}

.bottom-nav {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-bg);
    border-radius: 14px;
    padding: 8px 12px;
    display: flex;
    gap: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
    z-index: 60;
}

.nav-item {
    min-width: 84px;
    padding: 15px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    border-radius: 8px;
    color: var(--text-color);
    font-size: 20px;
    transition: background 0.2s, box-shadow 0.2s;
}

.nav-item:hover {
    background: var(--button-hover);
}

.nav-item.active {
    background: var(--accent);
    color: #fff;
}

.nav-item i {
    font-size: 18px;
}
	

/* Page Title Styling */
.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-color);
}

.page-subtitle {
    font-size: 0.8rem;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 24px;
}

/* Liked Button Styling */
button#likeBtn.liked {
    background-color: var(--accent);
}


/* Loading Screen */
body.loading-active {
    overflow: hidden;
    /* Scrollbar deaktivieren */
}

#loading-screen {
    position: fixed;
    inset: 0;
    background: #181828;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
    /* Scrollbar deaktivieren */
}

#loading-screen.closing {
    animation: fadeOut 0.5s ease-out forwards;/
}

#loading-logo {
    width: 350px;
    height: auto;
    margin-bottom: 200px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 8px solid var(--accent);
    border-top: 8px solid #23233a;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

#loading-footer {
    position: absolute;
    bottom: 16px;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 0.9em;
    font-weight: bold;
    opacity: 0.8;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}