section#header {
    margin-top: var(--page-margin);
}

section#header p#description {
    max-width: 70%;
}

section#header div#image {
    width: 100%;
    height: 400px;
    border-radius: var(--radiusXl);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

section#header div#image div#info {
    position: absolute;
    height: 100%;
    padding: calc(var(--page-margin) * 2);
    background-color: rgba(0,0,0,.6);
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    gap: var(--page-margin);
}

section#header div#image div#info p {
    color: white;
}

/* VIDEO LIST */
div.video-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--page-margin) 0;
    border-bottom: 1px solid var(--dividerColor);
    display: flex;
    gap: var(--page-margin);
}

div.video-container div.poster {
    height: 150px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radiusXl);
    flex-grow: 0;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
}

div.poster div.card-cover {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(255,255,255,.7);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s;
}

div.video-container div.poster:hover div.card-cover {
    opacity: 1;
}

div.card-play {
    position: relative;
    z-index: 10;
}

div.poster div.card-cover svg {
    width: 80px;
}

div.video-container div.texts {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: var(--page-margin);
}

span.lang-item {
    cursor: pointer;
    background-color: var(--grayColor);
    padding: 2px 5px;
    border-radius: 5px;
}

span.lang-item.selected {
    font-weight: bold;
}

div.lang-description p.lang-text {
    display: none;
}

div.lang-description p.lang-text.selected {
    display: inline;
}

div.video-container div.texts div.lang-description {
    max-height: 100px;
    overflow-y: auto;
}

/* POPUP */

div#popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: rgba(0,0,0,.9);
    display: none;
      align-items: center;
      justify-content: center;
  }
  
  div#popup video {
    max-width: 80%;
      max-height: 80%;
      width: auto;
      height: auto;
      border-radius: 1em;
      box-shadow: 0px 10px 30px -2px rgba(0,0,0,0.3);
  }
  
  div#popup-tools {
    position: absolute;
    top: 2em;
    right: 2em;
    display: flex;
    gap: 2em;
  }
  
  div#popup-tools svg {
    cursor: pointer;
    color: white;
    width: 2em;
    height: 2em;
  }

  @media screen and (max-width: 800px) {
    section#header p#description {
        max-width: 100%;
    }
  }

  @media screen and (max-width: 600px) {
    section#header div#image{
        height: 500px;
    }
    
    div.video-container {
        flex-direction: column;
        background-color: var(--grayColor);
        padding: var(--page-margin);
        border-radius: var(--radiusXl);
        border: none;
        margin-top: var(--page-margin);
    }

    div.poster {
        height: inherit !important;
    }
  }