/* -----------------------------------------
   PROGRAM LOGO + BANNER
----------------------------------------- */

.program-banner img,
.term-logo img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* -----------------------------------------
   HOSTS – Chips + Text Modes
----------------------------------------- */

.term-hosts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
}

.host-icon {
  font-size: 1.1em;
  margin-right: 4px;
}

/* Chip style */
.host-chip {
  background: #f2f2f2;
  border: 1px solid #ddd;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  display: inline-block;
}

.host-chip:hover {
  background: #eaeaea;
}

/* -----------------------------------------
   YOUTUBE PLAYLIST WRAPPER
----------------------------------------- */

.yt-playlist-wrap {
  width: 100%;
  margin: 12px 0;
}

.yt-playlist-inner {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
  background: #000;
  border-radius: 6px;
}

.yt-playlist-inner iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 6px;
}

/* -----------------------------------------
   PROGRAM PLAYLIST (specific variant)
----------------------------------------- */

.program-playlist .program-playlist-inner {
  border-radius: 6px;
  background: #000;
}

.program-playlist iframe {
  border-radius: 6px;
}

/* -----------------------------------------
   TERM CHILDREN – LIST LAYOUT
   [term_children_list] and term_children cols="0"
----------------------------------------- */

.tc-list {
  margin: 16px 0;
}

.tc-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tc-list-item {
  padding: 8px 0;
  border-bottom: 1px solid #e5e5e5;
}

.tc-list-item:last-child {
  border-bottom: none;
}

.tc-list-item a {
  font-weight: 600;
  text-decoration: none;
  color: #111;
}

.tc-list-item a:hover {
  text-decoration: underline;
}

.tc-list-tagline {
  font-size: 13px;
  color: #666;
  margin-top: 2px;
}

/* -----------------------------------------
   TERM CHILDREN – GRID LAYOUT
   [term_children_grid] and term_children cols>0
----------------------------------------- */

.tc-grid {
  display: grid;
  gap: 16px;
  margin: 16px 0;
}

/* Column presets (desktop) */
.tc-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.tc-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tc-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tc-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tc-card {
  position: relative;
  background: #1d1d1d;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(52, 52, 52);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* Thumbnail / banner area */
.tc-thumb {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #111;
}

.tc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.tc-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top, #222, #000);
}

/* dark overlay for text legibility when needed */
.tc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.0));
  pointer-events: none;
}

/* Hover zoom effect */
.tc-card:hover .tc-thumb img {
  transform: scale(1.06);
}

/* Heading block */
.tc-heading {
  padding: 10px 12px 12px;
  color: #f7f7f7;
}

.tc-logo {
  max-height: 42px;
  width: 20% !important;
  margin-bottom: 8px;
  display: block;
}

/* Program name */
.tc-title {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
}

.tc-title a {
  text-decoration: none;
  color: inherit;
}

.tc-title a:hover {
  text-decoration: underline;
}

/* Tagline + Airtime */
.tc-tagline {
  font-size: 13px;
  color: #d0d0d0;
  margin-bottom: 4px;
}

.tc-airtime {
  font-size: 12px;
  font-weight: 600;
  color: #ffd966;
}

/* -----------------------------------------
   RESPONSIVE TUNING
----------------------------------------- */

@media (max-width: 1024px) {
  .tc-cols-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .host-chip {
    font-size: 12px;
    padding: 4px 8px;
  }
  .term-hosts {
    gap: 4px;
  }

  .tc-grid,
  .tc-cols-2,
  .tc-cols-3,
  .tc-cols-4 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}
/* DESCRIPTION (used in both list & grid) */
.tc-desc {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.4;
}

.tc-desc-list {
  color: #666;
}

.tc-desc-grid {
  color: #b5b5b5;
}

/* META ROW – count + airtime */
.tc-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 12px;
}

.tc-count {
  color: #999;
}

.tc-meta-grid .tc-count {
  color: #c5c5c5;
}

/* airtime already used in grid – tweak slightly if needed */
.tc-airtime {
  font-size: 12px;
  font-weight: 600;
  color: #ffd966;
}
/* -----------------------------------------
   PROGRAM INFO CARD – [program_info]
----------------------------------------- */

.program-info {
  background: #1d1d1d;
  color: #f5f5f5;
  border-radius: 12px;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  margin: 16px 0;
}

/* optional banner strip on top */
.program-info .pi-banner {
  width: 100%;
  overflow: hidden;
  background: #000;
}

.program-info .pi-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.program-info .pi-inner {
  padding: 18px 20px 20px;
}

.pi-logo-wrap {
  margin-bottom: 10px;
  text-align: center;           /* center logo */
}

.pi-logo {
  max-width: 100%;
  width: 100%;                  /* full width of the card column */
  height: auto;
  display: inline-block;
}

/* Title + tagline */
.pi-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
}

.pi-tagline {
  font-size: 13px;
  color: #d0d0d0;
}

/* Description */
.pi-desc {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #e0e0e0;
}

/* Meta row: count + airtime */
.pi-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  align-items: center;
}

.pi-count {
  color: #c5c5c5;
}

.pi-airtime {
  font-weight: 600;
  color: #ffd966;
}

/* Mobile tweaks */
@media (max-width: 767px) {
  .program-info .pi-inner {
    padding: 14px 16px 16px;
  }
  .pi-title {
    font-size: 18px;
  }
}
/* Hosts line */
.pi-hosts {
  margin-top: 6px;
  font-size: 13px;
  color: #f5f5f5;
}

.pi-host-label {
  font-weight: 600;
  margin-right: 4px;
}

.pi-host-names {
  opacity: 0.96;
}

/* Playlist inside program card */
.pi-playlist {
  margin: 16px 0;
}

/* Fix Divi's video wrapper ONLY inside program_info */
.program-info .fluid-width-video-wrapper {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  height: auto !important;
}

/* Let the iframe define the height instead of being absolute */
.program-info .fluid-width-video-wrapper iframe {
  position: static !important;      /* critical: no absolute positioning */
  width: 100% !important;
  height: 360px !important;         /* adjust: 320 / 360 / 420 etc. */
  max-height: 90vh;
  display: block;
  background: #000;
  border-radius: 8px;
  border: 0;
}

