.video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.video-box img,
.video-box iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manual-secondary,
.manual-secondary .text-panel {
  float: right;
  padding-left: 0 !important;
}

/* Playlist styles */
.playlist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px;
}

.play-btn {
  cursor: pointer;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  transition: transform 0.04s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.play-btn:hover {
  background: #f7f7f7;
}

.play-btn.active {
  outline: 3px solid #222;
  outline-offset: 0;
  background: #f1f1f1;
}

.play-btn img.thumb {
  width: 84px;
  height: 56px;
}

.play-btn .meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.play-btn .title {
  font-weight: 600;
  line-height: 1.2;
}

.play-btn .desc {
  font-size: 0.875rem;
  color: #555;
}

.scroll-panel {
  max-height: 70vh;
  /* or use a fixed value like 600px */
  overflow-y: auto;
  /* makes the playlist scrollable */
  padding-right: 6px;
  /* space for scrollbar */
}

/* Base: allow the fade overlay to position correctly */
.scroll-panel {
  position: relative;
}

/* default: don't show toggle on desktop */
.toggle-list {
  display: none;
}

/* Mobile */
@media (max-width: 900px) {
  /* Only the list wrapper is clipped */
  .playlist-clip {
    max-height: 300px;
    /* collapsed height */
    overflow: hidden;
    position: relative;
  }

  .playlist-clip.expanded {
    max-height: none;
    /* full height when expanded */
    overflow: visible;
  }

  /* Soft fade at bottom of the clipped list */
  .playlist-clip::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 1)
    );
  }

  .playlist-clip.expanded::after {
    display: none;
  }

  /* Show the toggle on mobile (no visual styling, you already have it) */
  .toggle-list {
    display: block;
    margin: 12px auto;
  }
}
