/*
Theme Name: Music Max
Author: Den
Description: Тема для страницы с песнями
Version: 1.0.0
*/

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #fff;
    color: #000;
}

.songs-page {
    min-height: 100vh;
    padding: 50px 16px;
}

.songs-container {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.songs-header {
    margin-bottom: 40px;
}

.songs-header h1 {
    margin: 0;
    font-size: 64px;
    line-height: 1.1;
    font-weight: 700;
}

.songs-divider {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.songs-divider span {
    width: 150px;
    height: 1px;
    background: #777;
}

.songs-divider b {
    font-size: 34px;
    line-height: 1;
    color: #555;
}

.songs-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.song-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #111;
}


.song-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.song-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.78),
        rgba(0, 0, 0, 0.15)
    );
}

.song-card h2 {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 95px;
    z-index: 2;
    margin: 0;
    font-size: 34px;
    line-height: 1.1;
    font-family: Georgia, "Times New Roman", serif;
    color: #fff;
    text-align: left;
}

.song-card audio {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 2;
    width: calc(100% - 48px);
}

.login-box {
    text-align: center;
    font-size: 20px;
}

.front-login-form {
    max-width: 320px;
    margin: 0 auto;
}

.front-login-form form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.front-login-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
}

.front-login-form input[type="text"],
.front-login-form input[type="password"] {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

.front-login-form input[type="submit"] {
    height: 48px;
    width: 100%;
    border: none;
    border-radius: 8px;
    background: #000;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.front-login-form input[type="submit"]:hover {
    background: #333;
}

.albums-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.album-card {
    position: relative;
    display: block;
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 24px;
    text-decoration: none;
    color: #fff;
}

.album-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.album-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75),
        rgba(0, 0, 0, 0.15)
    );
}

.album-card h2 {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    z-index: 2;
    margin: 0;
    font-size: 34px;
    line-height: 1.1;
    font-family: Georgia, "Times New Roman", serif;
    color: #fff;
    text-align: left;
}

.album-card:hover img {
    transform: scale(1.05);
}

.album-page-title {
    margin: 20px 0;
    font-size: 32px;
    line-height: 1.2;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

.back-to-albums {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    padding: 0 20px;
    border: none;
    border-radius: 8px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

.back-to-albums:hover {
    background: #333;
}

.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-page h2 {
    margin: 0 0 20px;
    font-size: 120px;
    line-height: 1;
}

.error-page p {
    margin: 0 0 30px;
    font-size: 22px;
}

.back-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 24px;
    border-radius: 8px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.back-home:hover {
    background: #333;
}

@media (max-width: 768px) {
    .songs-page {
        padding-top: 40px;
    }

    .songs-header h1 {
        font-size: 52px;
    }

    .songs-divider span {
        width: 110px;
    }

    .song-card h2 {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .songs-page {
        padding: 32px 12px;
    }

    .songs-header {
        margin-bottom: 30px;
    }

    .songs-header h1 {
        font-size: 40px;
    }

    .songs-divider {
        gap: 14px;
    }

    .songs-divider span {
        width: 72px;
    }

    .songs-divider b {
        font-size: 28px;
    }

    .songs-list {
        gap: 34px;
    }

    .song-card img {
        height: 260px;
    }

    .song-card h2 {
        font-size: 28px;
        left: 18px;
        right: 18px;
        bottom: 88px;
    }

    .song-card audio {
        left: 18px;
        right: 18px;
        bottom: 18px;
        width: calc(100% - 36px);
    }

    .album-card {
        height: 260px;
        border-radius: 18px;
    }

    .album-card h2 {
        font-size: 28px;
        left: 18px;
        right: 18px;
        bottom: 18px;
    } 
}