.video-embed{
  position: relative;
  &[open]{
    .video-summary{
      visibility: hidden;
    }
  }
  & > .video-summary{
    list-style: none;
  }

}

.video-summary{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  justify-content: center;
  align-items: center;
  place-items: center;
}

.video-summary:hover .video-playicon {
  fill: #f59e0b;
  transform: scale(1.08);
  filter: drop-shadow(6px 6px 18px rgba(0, 0, 0, 1));
}

.video-playicon{
  grid-column: 2 / span 1;
  grid-row: 2 / span 1;
  height: clamp(4rem, 5vw, 8rem);
  width: clamp(4rem, 5vw, 8rem);
  z-index: 1;
  filter: drop-shadow(6px 6px 15px rgba(0, 0, 0, 1));
  fill: white;
  transition: fill 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.video-thumbnail{
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  aspect-ratio: 16 / 9;
}


.video-content{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  aspect-ratio: 16 / 9;
  & > iframe{
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 767px) {
  #sound-library-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgb(68 64 60);
  }

  #sound-library-table td:last-child {
    border-bottom: 0;
  }

  #sound-library-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: rgb(168 162 158);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
  }

  #sound-library-table td.mobile-select-cell {
    display: block;
  }

  #sound-library-table td.mobile-select-cell::before {
    display: block;
    margin-bottom: 0.5rem;
  }

  #sound-library-table td.mobile-select-cell select {
    width: 100%;
  }
}

.sound-table-header {
  display: none;
}

@media (min-width: 768px) {
  .sound-table-header {
    display: table-header-group;
  }
}

@media (max-width: 767px) {
  #sound-library-table td.sound-new-cell {
    background-color: rgb(41 37 36); /* stone-800-ish */
  }
}

@media (min-width: 768px) {
  #sound-library-table tr:hover > td {
    background-color: rgb(41 37 36);
  }
}

.error-banner {
  margin-top: 16px;
  padding: 12px 16px;
  background-color: #2c1618;
  color: #ff6b6b;
  border: 1px solid #f87171;
  border-left: 4px solid #ef4444;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  display: none; /* toggle to flex/block via JS when there's an error */
  align-items: center;
  gap: 8px;
}

.error-banner:empty {
  display: none;
}