* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #101216;
    color: #eeeeee;
    min-height: 100vh;
    transition: 0.3s;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: #17191f;
    border-bottom: 1px solid #30343d;
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo h1 {
    color: #f5c400;
    font-size: 32px;
}

.logo span {
    font-size: 20px;
    color: #bbbbbb;
}

#themeButton {
    background: #242830;
    color: white;
    border: 1px solid #444a55;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
}

#themeButton:hover {
    background: #333843;
}

main {
    max-width: 1400px;
    margin: auto;
    padding: 35px;
}

.intro {
    margin-bottom: 25px;
}

.intro h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.intro p {
    color: #999999;
}

.characters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.character {
    background: #191c22;
    border: 1px solid #30343d;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: 0.2s;
}

.character:hover {
    transform: translateY(-5px);
    border-color: #72c832;
}

.character.playing {
    border-color: #72c832;
    animation: playing 1.2s infinite;
}

@keyframes playing {
    0% {
        box-shadow: 0 0 0px #72c832;
    }

    50% {
        box-shadow: 0 0 18px #72c832;
    }

    100% {
        box-shadow: 0 0 0px #72c832;
    }
}

.character-image {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin-bottom: 15px;
}

.character h3 {
    font-size: 18px;
    margin-bottom: 7px;
}

.character p {
    color: #999999;
    font-size: 14px;
    margin-bottom: 15px;
}

.play-button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #72c832;
    background: #22262d;
    color: #72c832;
    cursor: pointer;
    font-size: 16px;
}

.play-button:hover {
    background: #72c832;
    color: #111;
}

.player {
    position: sticky;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 30px;
    background: #15181d;
    border-top: 1px solid #30343d;
    padding: 18px 35px;
}

.current-song {
    display: flex;
    align-items: center;
    gap: 15px;
}

.small-image {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: bold;
}

.current-song span {
    color: #72c832;
    font-size: 12px;
}

.current-song h3 {
    margin: 4px 0;
}

.current-song p {
    color: #999;
    font-size: 13px;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-container span {
    color: #888;
    font-size: 12px;
}

#progress {
    width: 100%;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 12px;
}

.buttons button {
    border: none;
    background: #292d35;
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
}

#mainPlay {
    background: #72c832;
    color: #111;
}

.volume {
    display: flex;
    align-items: center;
    gap: 12px;
}

.volume input {
    width: 100%;
}

footer {
    text-align: center;
    color: #666;
    padding: 25px;
}

body.light {
    background: #eeeeee;
    color: #222;
}

body.light header,
body.light .player {
    background: #ffffff;
}

body.light .character {
    background: #ffffff;
    border-color: #cccccc;
}

body.light #themeButton {
    background: #eeeeee;
    color: #222;
}

@media (max-width: 1000px) {
    .characters {
        grid-template-columns: repeat(2, 1fr);
    }

    .player {
        grid-template-columns: 1fr 1.5fr;
    }

    .volume {
        display: none;
    }
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }

    .logo {
        flex-direction: column;
        gap: 5px;
    }

    .logo h1 {
        font-size: 27px;
    }

    main {
        padding: 20px;
    }

    .characters {
        grid-template-columns: 1fr;
    }

    .character-image {
        height: 200px;
    }

    .player {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }

    .current-song {
        justify-content: center;
    }

    .controls {
        width: 100%;
    }
}