div.wyt_video_box {
  border-radius: 20px;
  -webkit-box-shadow: 5px 5px 15px 5px #999;
  box-shadow: 5px 5px 15px 5px #999;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 10px;
}
/*
div.wyt_video_box.row div.wyt_video_thumbnail img {
  width: auto;
  height: 100%;
}

div.wyt_video_thumbnail {
  position: relative;
 }
 */

div.wyt_video_thumbnail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  border-radius: 18px;
}
div.wyt_video_thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

div.wyt_video_descriptor {
  position: relative;
}
div.wyt_video_descriptor_row {
  display: flex;
  justify-content: center;
}
div.wyt_video_descriptor_row.first {
  display: flex;
  justify-content: space-around;
}
div.wyt_video_element {
  position: relative;
}

/* Grid layout for box style */
div.wyt_videos_container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.wyt_video_collection {
  margin-top: 20px;
  margin-bottom: 20px;
}
.wyt_video_collection .wyt_final_row {
  padding-top: 20px;
  padding-bottom: 20px;
}
.wyt_video_list_item img {
  height: 100%;
}

div.wyt_video_tag {
  padding: 10px;
  background-color: orange;
  font-size: 18px;
  color: white;
  position: absolute;
  top: 0px;
  z-index: 100;
  border-radius: 0 0 10px 0;
}

p.wyt_video_disclaimer {
  margin: 0;
  font-size: 14px;
  text-align: center;
}
p.wyt_video_title {
  font-size: 25px;
  font-weight: 700;
  text-align: center;
  margin: 10px;
  padding: 0;
  line-height: 1.2;
}
div.wyt_recent_video p.wyt_video_title {
  font-size: 20px;
}

div.wyt_video_element {
  font-size: 16px;
}

.wyt_video_list_thumbnail .wyt_play_overlay svg {
  width: 48px;
  height: 48px;
}

/* Original play overlay styles */
div.wyt_play_overlay {
  height: 100%;
  width: 100%;
  position: absolute;
  text-align: center;
  color: orangered;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

div.wyt_play_overlay svg {
  height: 30%;
  width: auto;
  transition: height 0.3s ease-in-out;
}

div.wyt_play_overlay svg:hover {
  height: 34%;
  width: auto;
  transition: height 0.3s ease-in-out;
}

.wyt_video_thumbnail:hover .wyt_play_overlay {
  opacity: 1;
}

/* row style */

div.wyt_video_box.row {
  flex-direction: row;
  position: relative;
  flex-wrap: wrap;
}

div.wyt_video_box.row p.wyt_video_title {
  line-height: 1.2;
  font-size: 22px;
}
div.wyt_video_box.row div.wyt_video_thumbnail {
  flex: 1 0 250px;
}
div.wyt_video_box.row div.wyt_video_descriptor {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 0 250px;
}

div.wyt_playlist_box {
  margin-bottom: 20px;
  flex-direction: column;
  position: relative;
  margin: 10px 0 40px 0;
  padding: 0px;
}

div.wyt_playlist_box div.wyt_videos_container div.wyt_video_box {
  margin: 0;
}
div.wyt_final_row {
  margin: 00px;
  padding: 00px;
  display: flex;
  justify-content: center;
}
div.wyt_playlist_box button.wyt_more_link {
  margin: 20px auto 20px auto;
  padding: 12px;

  border-radius: 10px;
  display: inline-block;
}
div.wyt_row {
  display: flex;
  flex-wrap: wrap;
}
div.wyt_row div.wyt_video_box {
  flex: 1 1 250px;
  font-size: 18px;
}

/* Playlist Box Header Styles */
div.wyt_playlist_header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  border-radius: 20px;
  -webkit-box-shadow: 5px 5px 15px 5px #999;
  box-shadow: 5px 5px 15px 5px #999;
  overflow: hidden;
}

div.wyt_playlist_thumbnail {
  width: 300px;
  height: 169px;
  margin-right: 20px;
  min-width: 300px;
  overflow: hidden;
  position: relative;
}

div.wyt_playlist_thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

div.wyt_playlist_info {
  flex: 1;
  min-width: 300px;
}

h2.wyt_playlist_title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.2;
}

div.wyt_playlist_description {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

div.wyt_playlist_stats {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

div.wyt_stat {
  display: flex;
  align-items: center;
  gap: 5px;
}

p.wyt_playlist_disclaimer {
  font-size: 11px;
  color: #666;
  margin: 0;
}

/* Update playlist box styles for list view */
.wyt_playlist_box[data-style="list"] {
  background: #f8f9fa;
  border: 0px solid #e9ecef;
  border-radius: 8px;
  padding: 0px;
  border-radius: 20px;
  -webkit-box-shadow: 5px 5px 15px 5px #999;
  box-shadow: 5px 5px 15px 5px #999;
}

.wyt_playlist_box[data-style="list"] .wyt_playlist_header {
  margin-bottom: 5px;
  background: white;

  -webkit-box-shadow: unset;
  box-shadow: unset;
}

.wyt_playlist_box[data-style="list"] .wyt_videos_container {
  padding: 5px 0 5px 0;
}

.wyt_playlist_box[data-style="list"]
  .wyt_playlist_header
  + .wyt_videos_container {
  padding: 0;
}

.wyt_playlist_box[data-style="list"] .wyt_final_row {
  margin-top: 00px;

  padding-top: 0px;
  text-align: center;
}

/* List style specific styles */
div.wyt_video_list_item {
  display: flex;
  margin: 5px;
  padding: 0px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

div.wyt_video_list_thumbnail {
  flex: 0 0 200px;
  margin-right: 20px;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

div.wyt_video_list_thumbnail img {
  width: 100%;
  height: 100%; /* 16:9 ratio for 200px width */
  object-fit: cover;
  border-radius: 5px 0 0 5px;
}

div.wyt_video_list_info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

div.wyt_video_list_title h3 {
  margin: 0;
  font-size: 1.2em;
  font-weight: 700;
}

/* Smaller title for list view */
.wyt_playlist_box[data-style="list"] .wyt_video_list_title h3 {
  font-size: 1em;
  margin-bottom: 8px;
}

div.wyt_video_list_description {
  font-size: 12px;
  color: #666;
  line-height: 1.2;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

div.wyt_video_list_meta {
  display: flex;
  gap: 15px;
  font-size: 0.75em;
  font-weight: 700;
  color: #444;
}

/* Style adjustments when list style is active */
.wyt_playlist_box[data-style="list"] .wyt_videos_container {
  display: block;
}

@media (max-width: 768px) {
  div.wyt_playlist_header {
    flex-direction: column;
  }

  div.wyt_playlist_thumbnail {
    width: 100%;
    height: auto;
    margin-right: 0;
  }

  div.wyt_playlist_stats {
    flex-direction: column;
    gap: 10px;
  }
}
.wyt_playlist_header_list {
  background: white;
}

.wyt_playlist_header_list img {
  border-radius: 20px 0 0 0;
}

div.wyt_playlist_header_list {
  border-radius: 20px 20px 0 0;
}

/* Styles for api usage */ /* API Template Thumbnail Styles */
.ytapi-thumbnail-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
  width: 100%;
}

.ytapi-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.4);
}

/* Container styling */
.ytapi-container {
  max-width: 100%;
  overflow: hidden;
  margin: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Play overlay positioning */
.ytapi-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  width: 1.5em;
  height: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.3s;
}

.ytapi-video-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

/* Hover effects */
.ytapi-video-link:hover .ytapi-play-overlay {
  background: rgba(255, 0, 0, 0.8);
  transform: translate(-50%, -50%) scale(1.1);
}

/* Video Info Link - links to video CPT page */
.wyt_video_info_link {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4);
}

.wyt_video_info_link:hover {
  background: linear-gradient(135deg, #ffa726 0%, #ff9800 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.5);
}

.wyt_video_info_link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Compact version - icon only with tooltip */
.wyt_video_info_link--compact {
  padding: 8px;
  border-radius: 50%;
}

.wyt_video_info_link--compact svg {
  width: 18px;
  height: 18px;
}
