﻿/* =========================================================
   SONG PAGE
========================================================= */

.sv_song {
    display: flex;
    flex-direction: column;
    min-height: 0;
    inline-size: 100%;
    block-size: 100%;
    overflow: hidden;
}

/* =========================================================
   HEADER
========================================================= */

.sv_song_header {
    display: flex;
    align-items: flex-end;
    position: relative;
    width: 100%;
    padding: var(--space_2) 0;
    line-height: var(--space_6_5); /* 27px */
    color: var(--color_LunarGreen);
    font-family: var(--font_BovinoMedium);
    flex-shrink: 0;
}

.sv_song_meta {
    position: absolute;
    left: calc(58% + var(--space_3));
    font-family: var(--font_BovinoLight);
    margin: 0;
}

.sv_song_kicker {
    font-family: var(--font_BovinoLight);
    opacity: .7;
}

.sv_song_title {
    margin: 0;
    font-family: var(--font_BovinoMedium);
}

/* =========================================================
   OVERVIEW
========================================================= */

.sv_song_overview {
    display: grid;
    grid-template-columns: 40% minmax(0, 1fr);
    min-height: 0;
    overflow: hidden;
}

.sv_song_cover {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    inline-size: 100%;
}

    .sv_song_cover img {
        display: block;
        inline-size: 100%;
        block-size: auto;
        object-fit: contain;
    }

.sv_song_links {
    display: flex;
    justify-content: space-between;
    inline-size: 100%;
    padding: var(--space_3) 0;
}

.sv_song_link {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================================
   DETAILS
========================================================= */

.sv_song_details {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    
    padding-left: var(--space_5);
    /* Firefox */
    scrollbar-width: none;
    /* IE/Edge Legacy */
    -ms-overflow-style: none;
}

    .sv_song_details::-webkit-scrollbar {
        display: none;
    }


.sv_song_facts {
    margin: 0;
}

.sv_song_fact {
    display: grid;
    grid-template-columns: 30% 1fr;
    padding: var(--space_2) 0;
}

    .sv_song_fact dt,
    .sv_song_fact dd {
        margin: 0;
    }
    .sv_song_fact dt {
        font-family: var(--font_BovinoMedium);
    }

    .sv_song_fact dd {
        font-family: var(--font_BovinoLight);
    }

.sv_song_composer {
    display: flex;
    align-items: center;
}

    .sv_song_composer a {
        margin-left: auto;
    }

/* =========================================================
   SECTIONS
========================================================= */

.song_section_header {
    display: grid;
    grid-template-columns: 30% 64% 6%;
    align-items: center;
}

    .song_section_header h3 {
        grid-column: 2;
        font-family: var(--font_BovinoMedium);
    }

.song_release_summary {
    display: grid;
    grid-template-columns: 30% 46% 18% 6%;
    align-items: center;
    min-height: var(--space_5);
}

.song_release_date {
    margin: 0;
    white-space: nowrap;
    color: var(--color_LunarGreen);
}

.song_release_playlist {
    min-width: 0;
    text-decoration: none;
}

    .song_release_playlist h4 {
        display: flex;
        align-items: center;
        margin: 0;
    }

.song_release_track {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: var(--space_3);
    white-space: nowrap;
}


/* =========================================================
   PODROBNOSTI POSAMEZNE IZDAJE
   ========================================================= */

/* Posamezna izdaja */

.song_release {
    width: 100%;
    background-color: var(--color_RockBlue_25);
    border-bottom: var(--space_0_25) solid var(--color_LunarGreen);
}


/* Seznam podatkov izdaje */

.song_release_list {
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: var(--space_5_5);

}
/* Posamezen podatek */

.song_release_item {
    display: grid;
    align-items: center;
    border-bottom: var(--space_0_25) solid rgba(255, 255, 255, 0.08);
    grid-template-columns: 30% 46% 18% 6%;
    font-size: var(--font_size_14);
    line-height: 1.35;
}

/* Naziv podatka */

.song_release_label {
    min-width: 0;
    font-weight: 500;
}


.song_release_person {
    min-width: 0;
    overflow: hidden;
    color: inherit;
    font-weight: 500;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .song_release_person:hover {
        text-decoration: underline;
    }


.song_release_value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* Naslovna slika izdaje */

.song_release_cover {
    width: 2.7rem;
    height: 2.7rem;
    overflow: hidden;
    border-radius: 0.25rem;
}

    .song_release_cover img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Trajanje ali status posnetka */

.song_release_duration {
    min-width: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font_size_12);
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ==========================================================
   AUDIO & VIDEO
========================================================== */

.sv_song_audio_list,
.sv_song_video_list {
    flex-direction: column;
    inline-size: 100%;
}

.sv_song_audio_item,
.sv_song_video_item {
    display: grid;
    grid-template-columns: 30% 46% 18% 6%;
    align-items: center;
    min-height: var(--space_10);
    padding: var(--space_2) 0;
    border-bottom: var(--space_0_25) solid var(--color_LunarGreen);
}

.sv_song_audio_cover,
.sv_song_video_cover {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

    .sv_song_audio_cover img,
    .sv_song_video_cover img {
        display: block;
        inline-size: var(--space_8);
        block-size: var(--space_8);
        object-fit: cover;
    }

.sv_song_audio_info,
.sv_song_video_info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-inline-size: 0;
}

.sv_song_audio_title,
.sv_song_audio_source,
.sv_song_video_title,
.sv_song_video_source {
    margin: 0;
}

.sv_song_audio_source,
.sv_song_video_source {
    opacity: .75;
}

.sv_song_audio_date,
.sv_song_video_date {
    text-align: right;
    white-space: nowrap;
}

/* ==========================================================
   LYRICS
========================================================== */

.sv_song_lyrics_content {
    inline-size: 100%;
}

.sv_song_lyrics_toolbar {
    display: flex;
    justify-content: flex-end;
    
}

.sv_song_lyrics_text {
    padding-bottom: var(--space_4) 0;
    border-bottom: var(--space_0_25) solid var(--color_LunarGreen);
    line-height: 1.7;
    white-space: normal;
}

    .sv_song_lyrics_text p {
        margin: 0 0 var(--space_4);
    }

        .sv_song_lyrics_text p:last-child {
            margin-bottom: 0;
        }

.sv_song_lyrics_toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    gap: var(--space_1);
    padding: var(--space_1);
    background: var(--sv_background);
    border-bottom: var(--space_0_25) solid var(--pz_border);
}


@media only screen and (max-width: 48em) {

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

    }


    sv_song_details {
        padding-left: 0;
    }
}