/* cstv-hero.css */

.hero-section {
  position: relative;
  margin-bottom: 14px;
}

.ambient-bg {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background-size: cover;
  background-position: center;
  filter: blur(28px);
  opacity: 0.22;
  transform: scale(1.06);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.hero-player-container {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: radial-gradient(circle at top, #1f2937, #020617);
  border: 1px solid rgba(30, 64, 175, 0.7);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8);
  aspect-ratio: 16 / 9;
  max-height: 60vh;
}

.hero-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.hero-player:fullscreen,
:fullscreen .hero-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Overlays */
.hero-overlay-top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0));
}

.hero-overlay-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px;
  backdrop-filter: blur(10px);
  background: linear-gradient(to top, rgba(2, 6, 23, 0.85), rgba(2, 6, 23, 0));
}

.hero-meta h1 {
  margin: 0 0 6px 0;
  font-size: 22px;
  line-height: 1.15;
}

.hero-category {
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 6px;
}

.hero-meta p {
  margin: 0;
  font-size: 13px;
  opacity: 0.85;
  max-width: 70ch;
}

.hero-controls {
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.72);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.icon-btn:hover {
  border-color: rgba(59, 130, 246, 0.7);
}

/* Hide viewer strip if it exists */
#hero-viewers {
  display: none !important;
}

/* Mobile sizing */
@media (max-width: 960px) {
  .hero-player-container {
    max-height: 44vh;
  }
  .hero-meta h1 {
    font-size: 18px;
  }
  .hero-meta p {
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  .hero-player-container {
    max-height: 38vh;
  }
  .icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }
}