
/* =========================================
   CERZ — MÚSICA
   ========================================= */

:root {
    --bg: #111111;
    --fg: #f4f1eb;
    --muted: #929292;
    --line: #555555;
    --margin: clamp(24px, 5vw, 78px);
}

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    background: var(--bg);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);

    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ESTRUCTURA GENERAL */

.page {
    height: 100vh;
    height: 100dvh;

    display: grid;
    grid-template-rows:
        55px
        minmax(0, 1fr)
        48px;

    padding:
        clamp(12px, 3vh, 35px)
        var(--margin)
        clamp(10px, 2vh, 22px);
}

/* ENCABEZADO */

.site-header {
    display: flex;
    align-items: flex-start;

    border-bottom: 1px solid var(--line);
}

.brand {
    font-size: clamp(20px, 2.1vw, 31px);
    font-weight: 400;
    letter-spacing: .025em;
    line-height: 1;
}

.brand:hover {
    opacity: .65;
}

/* CONTENIDO */

.music-main {
    min-height: 0;
    overflow-y: auto;

    padding: 54px 0 65px;

    scrollbar-width: thin;
    scrollbar-color: #444 transparent;
}

.music-section {
    margin-bottom: 85px;
}

.section-heading {
    display: flex;
    align-items: center;

    padding: 0 0 16px;
    border-bottom: 1px solid var(--line);

    font-size: 11px;
    letter-spacing: .16em;
}

/* PUBLICACIÓN */

.release {
    display: grid;

    grid-template-columns:
        minmax(0, 380px)
        minmax(0, 1fr);

    gap: clamp(35px, 6vw, 100px);

    align-items: stretch;

    padding-top: 42px;
}

/* SEPARACIÓN ENTRE CANCIONES */

.release + .release {
    margin-top: 55px;
    padding-top: 55px;
    border-top: 1px solid var(--line);
}

/* TAPA */

.release-cover {
    width: 100%;
    aspect-ratio: 1 / 1;

    background: #000;
    overflow: hidden;
}

.release-cover img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* DATOS DE LA CANCIÓN */

.release-content {
    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 6px 0;
}

.release-index {
    display: block;

    color: var(--muted);

    font-size: 10px;
    letter-spacing: .17em;
}

.release-title {
    margin: 25px 0 16px;

    font-size: clamp(27px, 3.4vw, 55px);
    font-weight: 400;

    letter-spacing: -.015em;
    line-height: 1.1;

    overflow-wrap: anywhere;
}

.release-description {
    color: var(--muted);

    font-size: 10px;
    letter-spacing: .15em;
}

/* REPRODUCTOR */

.audio-player {
    width: 100%;
    margin-top: 48px;
}

.player-controls {
    display: flex;
    align-items: center;

    gap: 22px;
}

.play-button {
    width: 50px;
    height: 50px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border: 1px solid var(--fg);
    border-radius: 50%;

    background: transparent;
    color: var(--fg);
    cursor: pointer;
}

.play-button:hover {
    background: #292929;
}

.play-button svg {
    width: 18px;
    height: 18px;

    fill: currentColor;
}

.progress-area {
    flex: 1;
    min-width: 0;
}

.progress {
    display: block;

    width: 100%;
    height: 20px;

    margin: 0;

    accent-color: var(--fg);
    cursor: pointer;
}

.time-row {
    display: flex;
    justify-content: space-between;

    color: var(--muted);

    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.volume-control {
    display: flex;
    align-items: center;

    gap: 8px;
}

.mute-button {
    width: 22px;
    height: 28px;

    padding: 0;

    display: grid;
    place-items: center;

    border: 0;

    background: transparent;
    color: var(--fg);
    cursor: pointer;
}

.mute-button svg {
    width: 18px;
    height: 18px;
}

.volume-control input {
    width: 75px;

    accent-color: var(--fg);
    cursor: pointer;
}

.audio-status {
    min-height: 16px;

    margin: 15px 0 0;

    color: var(--muted);

    font-size: 10px;
    letter-spacing: .08em;
}

/* DJ SETS */

.dj-section {
    margin-bottom: 0;
}

.music-gallery {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 28px;

    margin-top: 28px;
}

.video-card {
    display: block;
    min-width: 0;
}

.video-image {
    position: relative;

    aspect-ratio: 16 / 9;

    background: #222;
    overflow: hidden;
}

.video-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    filter: grayscale(100%);

    transition:
        filter .3s ease,
        transform .4s ease;
}

.video-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.025);
}

.video-play {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 42px;
    height: 42px;

    border: 1px solid white;
    border-radius: 50%;

    background: rgba(0, 0, 0, .3);

    transform: translate(-50%, -50%);
}

.video-play::after {
    content: "";

    position: absolute;

    top: 13px;
    left: 17px;

    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 10px solid white;
}

.video-info {
    display: flex;
    justify-content: space-between;

    gap: 15px;

    padding: 15px 0;

    border-bottom: 1px solid var(--line);
}

.video-title {
    font-size: 12px;
    letter-spacing: .1em;
}

.video-number {
    color: var(--muted);
    font-size: 11px;
}

/* PIE DE PÁGINA */

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    border-top: 1px solid var(--line);
}

.copyright {
    font-size: 11px;
    letter-spacing: .08em;
}

.back-link {
    flex-shrink: 0;

    font-size: 11px;
    letter-spacing: .12em;
}

.back-link:hover {
    opacity: .65;
}

/* TABLETS */

@media (max-width: 900px) {

    .release {
        grid-template-columns:
            minmax(0, 300px)
            minmax(0, 1fr);

        gap: 32px;
    }

    .release-title {
        font-size: clamp(25px, 4vw, 40px);
    }

    .player-controls {
        gap: 12px;
    }

    .volume-control input {
        width: 45px;
    }
}

/* CELULARES */

@media (max-width: 650px) {

    .page {
        grid-template-rows:
            45px
            minmax(0, 1fr)
            42px;

        padding: 12px 24px;
    }

    .brand {
        font-size: 23px;
    }

    .music-main {
        padding: 32px 0 48px;
    }

    .section-heading {
        font-size: 10px;
    }

    .music-section {
        margin-bottom: 65px;
    }

    .release {
        grid-template-columns: 1fr;

        gap: 26px;

        padding-top: 28px;
    }

    .release + .release {
        margin-top: 40px;
        padding-top: 40px;
    }

    .release-cover {
        width: 100%;
        max-width: 440px;

        margin: 0 auto;
    }

    .release-content {
        padding: 0;
    }

    .release-title {
        margin: 15px 0 12px;
        font-size: clamp(27px, 7vw, 39px);
    }

    .audio-player {
        margin-top: 35px;
    }

    .player-controls {
        gap: 13px;
    }

    .play-button {
        width: 44px;
        height: 44px;
    }

    .volume-control input {
        width: 45px;
    }

    .music-gallery {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .copyright {
        font-size: 8px;
        letter-spacing: 0;
    }

    .back-link {
        font-size: 9px;
    }
}

@media (max-width: 370px) {

    .volume-control input {
        width: 32px;
    }

    .player-controls {
        gap: 9px;
    }
}
