/* ============================================
   WATCH PAGE STYLES — YouTube Live Stream Centered
   ============================================ */

/* --- Live Stream Hero Section --- */
.watch-live-hero {
  background: var(--ivory);
  padding-bottom: var(--space-xl);
}

.live-badge-wrap {
  margin-bottom: var(--space-sm);
}

.live-pulse {
  position: relative;
  padding-left: 24px;
}

.live-pulse::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cat-special);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

/* --- YouTube Embed --- */
.stream-embed-wrap {
  max-width: 960px;
  margin: 0 auto;
}

.stream-embed {
  border-radius: 20px;
  overflow: hidden;
  padding: 6px;
}

.stream-embed:hover {
  transform: none;
}

.video-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: 16px;
  overflow: hidden;
  background: var(--charcoal);
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 16px;
}

/* Stream Info Bar below embed */
.stream-info {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  flex-wrap: wrap;
}

.stream-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--slate);
  font-size: 15px;
}

.stream-info-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* --- Past Streams Grid --- */
.past-streams-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.stream-card {
  text-decoration: none;
  display: block;
  overflow: hidden;
}

.stream-card-thumb {
  position: relative;
  overflow: hidden;
}

.stream-card-thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.4s var(--ease-spring);
}

.stream-card:hover .stream-card-thumb img {
  transform: scale(1.03);
}

.play-circle-sm {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 240, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease-spring), transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-spring), border-color 0.3s var(--ease-spring), color 0.3s var(--ease-spring), opacity 0.3s var(--ease-spring);
}

.stream-card:hover .play-circle-sm {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(255, 255, 240, 0.85);
}

.play-circle-sm svg {
  width: 20px;
  height: 20px;
  color: var(--royal);
  margin-left: 2px;
}

.stream-card-body {
  padding: 16px 20px;
}

.stream-card-body h3 {
  font-size: 18px;
  color: var(--charcoal);
  margin-bottom: 2px;
}

.stream-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate);
  letter-spacing: 0.02em;
}

/* --- Featured Sermon --- */
.featured-sermon-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.featured-sermon-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.featured-sermon-thumb img {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.featured-sermon-thumb .play-circle-sm {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-sermon-info .label {
  margin-bottom: var(--space-xs);
}

.featured-sermon-info h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.featured-sermon-info .message-meta {
  color: var(--slate);
  font-size: 15px;
  margin-bottom: var(--space-sm);
}

.featured-sermon-info .message-excerpt {
  color: var(--slate);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

/* --- Series Filter --- */
.series-filter-bar {
  margin-bottom: var(--space-md);
}

.series-filter-bar .filter-select {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--ivory-muted);
  background: var(--ivory);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--charcoal);
  cursor: pointer;
  min-width: 200px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .watch-live-hero .section-header {
    padding-top: 80px !important;
  }

  .featured-sermon-card {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .featured-sermon-info h3 {
    font-size: 22px;
  }

  .past-streams-grid {
    grid-template-columns: 1fr;
  }

  .stream-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .stream-info .btn-primary {
    margin-left: 0 !important;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .past-streams-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Load More */
.load-more-wrap {
  text-align: center;
  margin-top: var(--space-lg);
}
