/* KeyExchange Podcast Hub Stylesheet */

.podcast-hub-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(16px);
  margin-top: 20px;
  box-shadow: var(--shadow-subtle);
}

.podcast-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
}

@media (max-width: 992px) {
  .podcast-layout {
    grid-template-columns: 1fr;
  }
}

/* Audio Player Section */
.player-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.now-playing-badge {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.player-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.3;
  margin-bottom: 6px;
  color: var(--text-main);
}

.player-host {
  font-size: 0.9rem;
  color: var(--accent-gold);
  margin-bottom: 20px;
  font-family: var(--font-mono);
}

/* Waveform Visualizer */
.waveform-container {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 60px;
  background: #05070d;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  cursor: pointer;
  overflow: hidden;
}

.waveform-bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  transition: height 0.1s ease, background-color 0.2s ease;
  min-width: 2px;
}

.waveform-bar.played {
  background: var(--accent-cyan);
}

.waveform-bar:hover {
  background: var(--accent-gold);
}

/* Player Controls */
.player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.control-buttons-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.play-pause-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: #07090e;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.play-pause-btn:hover {
  transform: scale(1.05);
  background: #7dd3fc;
}

.time-display {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.speed-selector {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px;
  border-radius: var(--radius-sm);
}

.speed-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.speed-btn.active {
  background: rgba(56, 189, 248, 0.2);
  color: var(--accent-cyan);
  font-weight: bold;
}

/* Episode Actions */
.episode-media-links {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.media-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition);
}

.media-link-btn:hover {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
}

/* Transcript & Episodes Tabs */
.podcast-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  gap: 12px;
}

.sidebar-tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 8px 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.sidebar-tab-btn.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
  font-weight: 600;
}

.transcript-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  height: 380px;
  overflow-y: auto;
  font-size: 0.95rem;
  line-height: 1.7;
}

.transcript-line {
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
}

.transcript-line:hover {
  background: rgba(255, 255, 255, 0.04);
}

.transcript-line.active {
  background: rgba(56, 189, 248, 0.1);
  border-left: 3px solid var(--accent-cyan);
}

.speaker-label {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-gold);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.timestamp-label {
  float: right;
  color: var(--text-dim);
  font-size: 0.75rem;
}

/* Episode List View */
.episode-list-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  height: 380px;
  overflow-y: auto;
}

.episode-item {
  padding: 14px;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: var(--transition);
}

.episode-item:hover, .episode-item.active {
  background: rgba(56, 189, 248, 0.08);
  border-color: var(--accent-cyan);
}

.episode-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.episode-item-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}
