/* Light mode */
@media (prefers-color-scheme: light) {
    :root {
        --body-bg: #FFFFFF;
        --body-color: #000000;
    }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --body-bg: #000000;
        --body-color: #FFFFFF;
    }
}

body {
    background: var(--body-bg);
    color: var(--body-color);
    font-family: Arial, sans-serif;
    background-color: #212529;
    color: #f8f9fa;
    width: 100vw;
    height: 100vh;
    margin: 0;
    justify-content: center;
    display: flex;
}

@media (orientation: landscape) {
    body {
        flex-direction: row;
        align-items: top;
    }

    #player {
        width: 40vw;
        max-width: 400px;
        height: auto;
    }

    #playlist {
        max-height: 90vh;
    }
}

@media (orientation: portrait) {
    body {
        flex-direction: column;
        align-items: center;
    }

    #player {
        width: 90vw;
        max-width: 400px;
        height: auto;
    }

    #playlist {
        max-width: 90%;
    }
}

#player {
    aspect-ratio: 16/9;
    padding: 20px;
    margin: 10px;
    background-color: #343a40;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
}

#controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

#controls button {
    background-color: #1864ab;
    color: #e7f5ff;
    border: none;
    border-radius: 5px;
    padding: 10px 10px;
    margin: 5px 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#controls button:hover {
    background-color: #1c7ed6;
    color: #d0ebff;
}

#playlist {
    padding: 20px;
    margin: 10px;
    background-color: #343a40;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    overflow-x: auto;
    overflow-y: scroll;
}

.playlist-item {
    padding: 10px;
    margin-bottom: 10px;
    background-color: #495057;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
}

.playlist-item:hover {
    background-color: #1c7ed6 !important;
    color: #f8f9fa !important;
}

.playlist-item:last-child {
    margin-bottom: 0;
}

.playlist-item-nameline {
    font-weight: bold;
}

.playlist-item-image {
    margin-right: 10px;
}

.playlist-item-animeimage {
    width: 50px;
    height: auto;
}

/*.playlist-item-artistline {}*/

.playlist-item-animeline {
    font-size: small;
}

.playlist-item-episodeline {
    font-size: small;
}

@media (max-width: 600px) {
    #controls button {
        padding: 10px;
    }
}