/* Live Player Page */

.live-page {
  display: flex;
  flex-direction: column;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem;
  gap: 1.5rem;
}

.live-player-container {
  flex: 1;
}

.live-player {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.live-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--surface, #1E1E1E), #000);
}

.live-placeholder-content h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.live-placeholder-content p {
  color: var(--text-secondary, #B3B3B3);
}

.live-iframe {
  transition: opacity 0.4s ease;
}

.live-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.live-now {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.live-badge {
  background: var(--accent, #FF6584);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.live-now h2 {
  font-size: 1.25rem;
  margin: 0;
}

.live-author {
  color: var(--text-secondary, #B3B3B3);
  font-size: 0.9rem;
  margin: 0;
}

.live-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary, #B3B3B3);
  font-variant-numeric: tabular-nums;
}

/* Sidebar */
.live-sidebar {
  background: var(--surface, #1E1E1E);
  border-radius: 12px;
  padding: 1.25rem;
}

.live-sidebar h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary, #B3B3B3);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.live-up-next-list,
.live-recent-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.up-next-card {
  background: var(--surface-elevated, #252525);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.up-next-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.up-next-time {
  font-size: 0.8rem;
  color: var(--text-secondary, #B3B3B3);
  font-variant-numeric: tabular-nums;
}

/* Recently Aired cards */
.recent-card {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  background: var(--surface-elevated, #252525);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}

.recent-thumb {
  width: 64px;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.recent-info h4 {
  font-size: 0.85rem;
  margin-bottom: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.recent-author {
  font-size: 0.75rem;
  color: var(--text-secondary, #B3B3B3);
  margin: 0;
}

.live-viewers {
  font-variant-numeric: tabular-nums;
}

/* Desktop layout */
@media (min-width: 1024px) {
  .live-page {
    flex-direction: row;
  }

  .live-player-container {
    flex: 3;
  }

  .live-sidebar {
    flex: 1;
    max-width: 320px;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
  }
}
