.modal {
  display: none;
  position: fixed;
  z-index: 3;
  left: 0;
  top: 35px;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.modal-content {
  background-color: var(--background-color);
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transform: scale(0.8);
  color: var(--text-color);
  transition: transform 0.2s ease;
  gap: 1em;
  max-width: 500px;
  img {
    object-fit: cover;
    height: 250px;
    border-radius: 5px 5px 0 0;
  }
  h1 {
    top: 29px;
    flex: 0.8;
    background-color: var(--primary-color);
    color: var(--text-color);
    font-weight: 600;
    padding: 0.5em 1.5em;
    border-radius: 0 5px 5px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    z-index: 2;
    font-size: 1rem;
    position: absolute;
    width: max-content;
    &.video-is-playing {
      opacity: 0.6;
    }
  }
  h2 {
    font-size: 1rem;
    padding: 0 1.5em;
    flex: 0.8;
    margin: 0;
  }
  #detail {
    padding: 0 1.5em;
    flex: 0.8;
  }
  span {
    display: flex;
    flex-direction: row;
    gap: 1em;
    align-items: center;
    flex: 0.8;
    padding: 0 1.5em;
    padding-top: 0.5em;
    margin: 0;
    i {
      color: #f3a60a;
      -webkit-text-stroke-width: 1px;
      -webkit-text-stroke-color: black;
    }
    p {
      margin: 0;
      font-size: 1rem;
    }
  }
  #extra-container{
    display: flex;
    flex-direction: column;
    span{
      padding-left: 0 !important;
    }
    .note{
      font-weight: 100;
      color: var(--text-color);
      font-size: 12px;
      font-style: italic;
    }
  }
  .actions {
    padding: 0 1.5em;
    flex: 0.8;
    button {
      background-color: var(--primary-color);
      color: white;
      font-weight: 600;
      width: 100%;
      border: none;
      padding: 0.5em 1em;
      border-radius: 50px;
      margin-top: auto;
      cursor: pointer;
      margin-bottom: 2em;
      &:hover {
        opacity: 0.8;
      }
    }
  }
}
.modal.show {
  opacity: 1;
}
.modal.show .modal-content {
  transform: scale(1);
}
.close {
  cursor: pointer;
  float: right;
  font-size: 20px;
  font-weight: bold;
}
