.bauto-tv-bar {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #0f1115;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.20);
}

.bauto-tv-bar__inner {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

.bauto-tv-bar__left {
  padding: 18px 18px 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,0));
}

.bauto-tv-bar__brand {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.bauto-tv-bar__brandLogo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
  letter-spacing: .5px;
  border-radius: 999px;
  padding: 10px 14px;
  background: #d81f26;
  color: #fff;
  line-height: 1;
  min-width: 86px;
}

.bauto-tv-bar__brandTitle {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.bauto-tv-bar__brandSubtitle {
  margin-top: 3px;
  font-size: 12px;
  opacity: .8;
}

.bauto-tv-bar__meta {
  margin-top: 14px;
}

.bauto-tv-bar__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(216,31,38,.15);
  border: 1px solid rgba(216,31,38,.35);
  color: #ffdde0;
}

.bauto-tv-bar[data-is-live="1"] .bauto-tv-bar__badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff2a2a;
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(255,42,42,.18);
}

.bauto-tv-bar__videoTitle {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
}

.bauto-tv-bar__actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bauto-tv-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffffff12;
  border: 1px solid #ffffff22;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

.bauto-tv-bar__btn:hover {
  background: #ffffff1c;
  border-color: #ffffff35;
}

.bauto-tv-bar__btn--ghost {
  background: transparent;
}

.bauto-tv-bar__player {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.bauto-tv-bar__ratio {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.bauto-tv-bar__ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.bauto-tv-bar--error {
  padding: 14px;
}

.bauto-tv-bar__error {
  font-weight: 700;
  color: #ffd2d2;
}

@media (max-width: 1024px) {
  .bauto-tv-bar__inner {
    grid-template-columns: 340px minmax(0, 1fr);
  }

  .bauto-tv-bar__left {
    padding: 16px;
  }

  .bauto-tv-bar__brandTitle {
    font-size: 17px;
  }

  .bauto-tv-bar__videoTitle {
    font-size: 13px;
  }
}

@media (max-width: 860px) {
  .bauto-tv-bar__inner {
    grid-template-columns: 1fr;
  }

  .bauto-tv-bar__left {
    padding: 16px;
  }

  .bauto-tv-bar__player {
    width: 100%;
  }

  .bauto-tv-bar__ratio {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 520px) {
  .bauto-tv-bar {
    border-radius: 14px;
  }

  .bauto-tv-bar__left {
    padding: 14px;
  }

  .bauto-tv-bar__brand {
    gap: 10px;
    align-items: flex-start;
  }

  .bauto-tv-bar__brandLogo {
    min-width: auto;
    padding: 9px 12px;
    font-size: 14px;
  }

  .bauto-tv-bar__brandTitle {
    font-size: 16px;
  }

  .bauto-tv-bar__brandSubtitle {
    font-size: 11px;
  }

  .bauto-tv-bar__badge {
    font-size: 11px;
    padding: 6px 9px;
  }

  .bauto-tv-bar__videoTitle {
    font-size: 13px;
  }

  .bauto-tv-bar__actions {
    gap: 8px;
  }

  .bauto-tv-bar__btn {
    width: 100%;
    font-size: 13px;
    padding: 10px 12px;
  }
}






.bauto-tv-bar__channelDescription {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  opacity: .88;
  max-width: 36ch;
}

.bauto-tv-bar__player--channel {
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.08), transparent 30%),
    linear-gradient(135deg, #111827, #0f172a 55%, #101828);
}

.bauto-tv-bar__channelHero {
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
}

.bauto-tv-bar__channelHeroTop {
  width: 100%;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.bauto-tv-bar__channelThumb {
  width: 132px;
  height: 132px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  border: 4px solid rgba(255,255,255,.12);
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

.bauto-tv-bar__channelMain {
  min-width: 0;
}

.bauto-tv-bar__channelEyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .72;
  margin-bottom: 8px;
}

.bauto-tv-bar__channelName {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
  word-break: break-word;
}

.bauto-tv-bar__channelStats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

/* Channel Mode Refinements */
.bauto-tv-bar--channel-mode .bauto-tv-bar__inner {
  grid-template-columns: 280px minmax(0, 1fr);
}

.bauto-tv-bar__brandDescription {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
  opacity: .85;
  color: rgba(255,255,255,.9);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  line-clamp: 4;
  overflow: hidden;
}

.bauto-tv-bar__player--channel {
  padding: 30px 40px;
  display: flex;
  align-items: center;
  background: 
    radial-gradient(circle at top right, rgba(255,255,255,.05), transparent 40%),
    linear-gradient(135deg, #111827, #0f172a 60%, #101828);
}

.bauto-tv-bar__channelHero {
  width: 100%;
}

.bauto-tv-bar__channelHeroTop {
  width: 100%;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 30px;
  align-items: flex-start;
}

.bauto-tv-bar__channelThumb {
  width: 140px;
  height: 140px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  border: 4px solid rgba(255,255,255,.12);
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

.bauto-tv-bar__channelMain {
  min-width: 0;
}

.bauto-tv-bar__channelEyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .72;
  margin-bottom: 8px;
}

.bauto-tv-bar__channelName {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
  word-break: break-word;
}

.bauto-tv-bar__channelStats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.bauto-tv-bar__stat {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  min-width: 110px;
}

.bauto-tv-bar__stat strong {
  font-size: 16px;
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
}

.bauto-tv-bar__stat em {
  font-style: normal;
  font-size: 12px;
  opacity: .78;
}

.bauto-tv-bar__channelCtas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .bauto-tv-bar--channel-mode .bauto-tv-bar__inner {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  
  .bauto-tv-bar__player--channel {
    padding: 24px;
  }
}

@media (max-width: 860px) {
  .bauto-tv-bar--channel-mode .bauto-tv-bar__inner {
    grid-template-columns: 1fr;
  }

  .bauto-tv-bar__channelHeroTop {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }

  .bauto-tv-bar__channelThumb {
    width: 108px;
    height: 108px;
    margin: 0 auto;
  }

  .bauto-tv-bar__channelDescriptionFull {
    margin-left: auto;
    margin-right: auto;
  }

  .bauto-tv-bar__channelStats {
    justify-content: center;
  }

  .bauto-tv-bar__channelCtas {
    justify-content: center;
  }

  .bauto-tv-bar__channelName {
    font-size: 22px;
  }
}

@media (max-width: 520px) {
  .bauto-tv-bar__channelName {
    font-size: 20px;
  }

  .bauto-tv-bar__stat {
    min-width: 96px;
    padding: 9px 10px;
  }

  .bauto-tv-bar__stat strong {
    font-size: 15px;
  }
}

/* Full Banner Fallback (Minimal, Transparent, Centered) */
.bauto-tv-bar--only-banner {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.bauto-tv-bar--only-banner .bauto-tv-bar__inner {
  padding: 0;
  display: flex;
  justify-content: center;
  background: transparent;
}

.bauto-tv-bar__fullBannerLink {
  display: block;
  max-width: 100%;
  height: 54px; /* Default height of the bar */
  overflow: hidden;
  line-height: 0;
  border-radius: 8px; /* Slight rounding for the banner itself if desired, or keep 0 */
}

.bauto-tv-bar__fullBannerImg {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: transform 0.4s ease;
}

.bauto-tv-bar__fullBannerLink:hover .bauto-tv-bar__fullBannerImg {
  transform: scale(1.02);
}

@media (max-width: 860px) {
  .bauto-tv-bar__fullBannerLink {
    height: auto;
    aspect-ratio: 16 / 5;
  }
}