/* --- Container --- */
.yt-channel-gallery {
  max-width: 1400px;
  color: #fff;
}

/* YouTube-style two-column layout */
.yt-layout-wrapper {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 24px;
  align-items: start;
}

/* Left column: Main video player */
.yt-left-column {
  min-width: 0;
}

/* Right column: Thumbnails list */
.yt-right-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Top row: player + controls */
.yt-top-row {
  display: grid;
  /*grid-template-columns: 1fr 300px;*/
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.yt-main-player iframe {
  width: 100%;
  border-radius: 8px;
  background: #000;
}

.yt-main-meta {
  margin-top: 10px;
}

.yt-main-meta h3 {
  margin: 6px 0 8px;
  font-size: 18px;
  font-weight: 800;
}

.yt-main-meta .yt-desc {
  color: #fff;
  font-size: 14px;
  overflow: visible;
}

/* Controls column */
.yt-controls {
  padding: 12px;
  color: #a9afc3;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  height: fit-content;
}

.yt-controls label,
.yt-controls select {
  display: block;
  margin-bottom: 8px;
}

.yt-controls select {
  background-color: #000;
  color: #a9afc3;
  border-radius: 5px;
  border: none;
  width: 100%;
  padding: 6px;
}

.yt-options {
  margin-top: 8px;
  font-size: 14px;
}

/* Thumbs grid - vertical list for sidebar */
.yt-thumbs-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.yt-thumb-card {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow .18s ease, transform .12s ease;
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 8px;
  background-color: rgba(0, 0, 0, 0.2);
}

.yt-thumb-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background-color: rgba(0, 0, 0, 0.4);
}

.yt-thumb-media {
  position: relative;
  width: 168px;
  height: 94px;
  background: #000;
  overflow: hidden;
  flex-shrink: 0;
}

.yt-thumb-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-thumb-body {
  padding: 8px 8px 8px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
}

.yt-thumb-title {
  font-size: 13px;
  line-height: 1.3;
  margin: 0 0 4px;
  color: #fff;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-thumb-title-pinned {
  color: #d4b962;
}

.yt-thumb-desc {
  font-size: 12px;
  line-height: 1.3;
  color: #aaa;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Load more */
.yt-load-more-wrap {
  text-align: center;
  margin-top: 18px;
}

#ytLoadMore {
  padding: 10px 18px;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 1200px) {
  .yt-layout-wrapper {
    grid-template-columns: 1fr 350px;
  }
}

@media (max-width: 1000px) {
  .yt-layout-wrapper {
    grid-template-columns: 1fr;
  }

  .yt-right-column {
    order: 2;
  }

  .yt-thumbs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .yt-thumb-card {
    display: flex;
    flex-direction: column;
  }

  .yt-thumb-media {
    width: 100%;
    height: auto;
    padding-top: 56.25%;
    position: relative;
  }

  .yt-thumb-body {
    padding: 10px;
  }
}

@media (max-width: 640px) {
  .yt-thumbs-grid {
    grid-template-columns: 1fr;
  }
}