/* Videokanalen. Farver og skrifter følger resten af alkalaer.dk. */

.videokanal {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.videokanal__overskrift {
    font-family: 'Fredoka One', sans-serif;
    font-size: 32px;
    margin: 24px 0 20px;
}

.videokanal__brodkrumme {
    font-size: 13px;
    margin: 16px 0 4px;
    color: #666;
}

.videokanal__brodkrumme a {
    color: #666;
    text-decoration: none;
}

.videokanal__brodkrumme a:hover {
    text-decoration: underline;
}

.videokanal__brodkrumme span[aria-hidden] {
    margin: 0 6px;
}

.videokanal__tom {
    color: #666;
    padding: 24px 0;
}

/* --- Forsiden: playlisterne som fliser --- */

.videokanal__playlister {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    /* auto-fill frem for auto-fit: med fjorten playlister skal den sidste række
       holde samme flisebredde som de øvrige og ikke strække sig ud. */
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 24px;
}

.videokanal__playliste a {
    display: block;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
    transition: box-shadow .18s ease, transform .18s ease;
}

.videokanal__playliste a:hover {
    box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .5);
    transform: translateY(-2px);
}

.videokanal__playliste-billede {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 12px;
}

.videokanal__playliste-billede--tom {
    background: #f5f5f5;
    border-radius: 8px;
}

.videokanal__playliste-navn {
    display: block;
    font-family: 'Fredoka One', sans-serif;
    font-size: 16px;
    line-height: 1.3;
}

.videokanal__playliste-antal {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* --- Playlisten: afspiller til venstre, rulleliste til højre --- */

.videokanal__scene {
    display: grid;
    /* Afspilleren tager pladsen, listen har en fast bredde. minmax(0,1fr) og
       ikke bare 1fr: uden nulgrænsen presser en lang videotitel kolonnen
       bredere end skærmen. */
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
    margin-bottom: 48px;
}

.videokanal__afspiller {
    min-width: 0;
}

.videokanal__spilleliste {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
    /* Samme højde som afspilleren, så de to kolonner flugter forneden.
       16/9 af den plads afspilleren får, plus lidt til titlen under den. */
    max-height: min(70vh, 520px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.videokanal__spilleliste-liste {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: spor;
}

.videokanal__spor + .videokanal__spor {
    border-top: 1px solid #f0f0f0;
}

.videokanal__spor a {
    display: grid;
    grid-template-columns: 28px 96px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    text-decoration: none;
    color: inherit;
}

.videokanal__spor a:hover {
    background: #f7f7f7;
}

.videokanal__spor--aktuel a {
    background: #f0f0f0;
    font-weight: 600;
}

.videokanal__spor-nr {
    text-align: center;
    font-size: 13px;
    color: #888;
}

.videokanal__spor--aktuel .videokanal__spor-nr {
    color: #222;
}

.videokanal__spor-billede {
    display: block;
    width: 96px;
    height: 54px;
    object-fit: cover;
    border-radius: 4px;
    background: #f5f5f5;
}

.videokanal__spor-titel {
    font-size: 13px;
    line-height: 1.35;
}

.videokanal__andre {
    border-top: 1px solid #e5e5e5;
    padding-top: 24px;
}

.videokanal__video {
    width: 100%;
    /* Fast forhold, så siden ikke hopper mens videoens metadata hentes. */
    aspect-ratio: 16 / 9;
    max-height: 70vh;
    background: #000;
    border-radius: 12px;
    display: block;
}

.videokanal__titel {
    font-family: 'Fredoka One', sans-serif;
    font-size: 22px;
    margin: 16px 0 8px;
}

.videokanal__beskrivelse {
    color: #444;
    max-width: 70ch;
}

.videokanal__listeoverskrift {
    font-family: 'Fredoka One', sans-serif;
    font-size: 18px;
    margin: 0 0 16px;
}

.videokanal__liste {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.videokanal__element a {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    height: 100%;
}

.videokanal__element a:hover {
    box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .5);
}

.videokanal__element--aktuel a {
    border-color: #AFCA0B;
    border-width: 2px;
}

.videokanal__element-billede {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: #f5f5f5;
}

.videokanal__element-titel {
    display: block;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.35;
}

/* Under 1024px er der ikke plads til 340px sideliste ved siden af en video,
   der skal kunne ses. Så lægges listen under afspilleren i stedet — stadig
   med sin egen rulning, så den ikke skubber "Andre videoer" langt ned. */
@media (max-width: 1023px) {
    .videokanal__scene {
        grid-template-columns: 1fr;
    }

    .videokanal__spilleliste {
        max-height: 380px;
    }
}

@media (max-width: 767px) {
    .videokanal__overskrift {
        font-size: 24px;
    }

    .videokanal__spor a {
        grid-template-columns: 24px 72px 1fr;
    }

    .videokanal__spor-billede {
        width: 72px;
        height: 41px;
    }

    .videokanal__playlister,
    .videokanal__liste {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 14px;
    }

    .videokanal__playliste-billede {
        height: 110px;
    }
}
