/* ================================
   MUSIC PAGE
   ================================ */

main > details {
    margin: 25px 0;
    border: 1px solid var(--border);
    border-left: 4px solid var(--pink);
    border-radius: 8px;
    background: white;
    overflow: hidden;
}

/* Section title */

main > details > summary {
    padding: 15px 18px;

    cursor: pointer;
    list-style-position: inside;

    font-family: 'Bitcount Grid Double', monospace;
    font-size: 1.3rem;
    font-weight: 500;

    color: var(--green-dark);

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

main > details > summary:hover {
    background: var(--pink-light);
    color: var(--green);
}

main > details[open] > summary {
    border-bottom: 1px solid var(--border);
    background: var(--pink-light);
}


/* ================================
   SECTION CONTENT
   ================================ */

main > details > p {
    margin: 20px;
}

main > details > iframe {
    display: block;

    width: calc(100% - 40px);
    max-width: 560px;
    aspect-ratio: 16 / 9;
    height: auto;

    margin: 20px auto 25px;

    border: 0;
    border-radius: 6px;
}


/* ================================
   ARTIST LIST
   ================================ */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;

    margin: 25px 20px 35px;
    padding: 0;

    list-style: none;
}

.grid li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    min-width: 0;
    padding: 12px;

    text-align: center;

    background: white;

    border: 1px solid var(--border);
    border-top: 4px solid var(--pink);
    border-radius: 8px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.grid li:hover {
    transform: translateY(-5px);

    background: var(--pink-light);
    border-top-color: var(--green);
}

.grid img {
    display: block;

    width: 100px;
    height: 100px;

    object-fit: cover;

    border: 1px solid var(--border);
    border-radius: 6px;
}

.grid span {
    margin-top: 10px;

    font-family: 'Bitcount Grid Double', monospace;
    font-size: 1.1rem;
    font-weight: 500;

    color: var(--green-dark);

    overflow-wrap: anywhere;
}


/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 600px) {
    main > details {
        margin: 20px 0;
    }

    main > details > summary {
        padding: 13px 15px;
        font-size: 1.1rem;
    }

    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;

        margin-left: 15px;
        margin-right: 15px;
    }

    .grid li {
        padding: 10px;
    }

    .grid img {
        width: 85px;
        height: 85px;
    }

    .grid span {
        font-size: 0.95rem;
    }

    main > details > p {
        margin: 15px;
    }

    main > details > iframe {
        width: calc(100% - 30px);
        margin-top: 15px;
        margin-bottom: 20px;
    }
}