/* ==========================================================================
   SERMON & MEDIA HUB STYLES
   ========================================================================== */

.sermon-hub-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Featured Sermon Player Card */
.player-featured-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.player-video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}

.player-stage-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.player-stage-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.4) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
}

.player-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.player-asl-badge {
  background: rgba(2, 132, 199, 0.9);
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  backdrop-filter: blur(8px);
}

/* Picture in picture ASL Signer inside video stage */
.player-asl-signer-pip {
  position: absolute;
  bottom: 80px;
  right: 1.5rem;
  width: 130px;
  height: 130px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--gold-400);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  display: none;
}

.player-asl-signer-pip.active {
  display: block;
}

.player-asl-signer-pip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Center Big Play Button */
.player-big-play-btn {
  align-self: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--gold-500);
  color: #0b111e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.6);
  transition: all var(--transition-base);
  margin-top: auto;
  margin-bottom: auto;
}

.player-big-play-btn:hover {
  transform: scale(1.1);
  background: var(--gold-400);
}

/* Audio Controls Strip */
.player-controls-strip {
  padding: 1.5rem;
  background: var(--primary-950);
  color: var(--white);
}

.player-time-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.time-display {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: #94a3b8;
  min-width: 45px;
}

.scrub-slider {
  flex-grow: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
}

.scrub-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-400);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
}

.player-action-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.playback-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ctrl-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.ctrl-btn:hover {
  background: var(--gold-500);
  color: var(--primary-950);
}

.ctrl-btn-play {
  background: var(--gold-400);
  color: var(--primary-950);
  width: 44px;
  height: 44px;
  font-size: 1.15rem;
}

.player-secondary-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.speed-select {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
}

.speed-select option {
  background: var(--primary-950);
  color: var(--white);
}

.toggle-asl-btn {
  background: rgba(2, 132, 199, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(2, 132, 199, 0.4);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.toggle-asl-btn.active {
  background: #0284c7;
  color: #ffffff;
}

/* Sermon Details Body */
.player-details-body {
  padding: 1.75rem;
}

.sermon-meta-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.sermon-main-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.sermon-speaker-date {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.sermon-summary-p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Interactive Transcript & Study Notes Sidebar */
.transcript-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  height: 620px;
  display: flex;
  flex-direction: column;
}

.transcript-header {
  padding: 1.25rem 1.5rem;
  background: var(--bg-surface-alt);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.transcript-header h3 {
  font-size: var(--text-base);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.transcript-scroll-area {
  padding: 1.5rem;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.transcript-line {
  padding: 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}

.transcript-line:hover {
  background: var(--bg-surface-alt);
  border-left-color: var(--gold-400);
}

.transcript-line.active {
  background: var(--gold-50);
  border-left-color: var(--gold-500);
}

.transcript-timestamp {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--gold-600);
  margin-bottom: 0.25rem;
}

.transcript-text {
  font-size: var(--text-sm);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Sermon Archive Explorer Grid */
.sermons-archive-section {
  margin-top: 4rem;
}

.sermon-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.sermon-search-input {
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  font-size: var(--text-sm);
  min-width: 260px;
}

.sermon-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.sermon-archive-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.sermon-archive-card:hover {
  border-color: var(--gold-400);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 1024px) {
  .sermon-hub-layout {
    grid-template-columns: 1fr;
  }
  .transcript-card {
    height: 400px;
  }
}
