/* Live Stream & Broadcast Styles - Integrative Resets */

/* --- Nav Live Icon --- */
.nav-live-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  font-size: 14px;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
  text-decoration: none;
}
.nav-live-icon:hover {
  color: #fff;
  border-color: var(--color-main, #5c9269);
  background: rgba(92,146,105,0.15);
}

/* --- Live Player --- */
.live-player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 10px;
  overflow: hidden;
}

.live-player-wrap video,
.live-player-wrap canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.live-player-wrap canvas { pointer-events: none; }

/* --- Live Badge --- */
.live-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: 'Lato', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; background: #c0392b; padding: 0.3rem 0.75rem; border-radius: 3px;
}
.live-badge::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: #fff; animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.live-badge.offline { background: #666; }
.live-badge.offline::before { animation: none; opacity: 0.5; }

/* --- Fullscreen Button --- */
.live-fullscreen-btn {
  position: absolute; bottom: 1rem; left: 1rem; z-index: 10;
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: rgba(0,0,0,0.55); color: #fff; border: none;
  border-radius: 6px; cursor: pointer;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s, transform 0.2s;
}
.live-fullscreen-btn:hover { background: rgba(0,0,0,0.8); transform: scale(1.08); }
.live-fullscreen-btn svg { width: 20px; height: 20px; }

/* --- Unmute Button --- */
.live-unmute-btn {
  position: absolute; bottom: 1.5rem; right: 1.5rem; z-index: 10;
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(0,0,0,0.7); color: #fff; border: 1px solid rgba(255,255,255,0.3);
  padding: 0.5rem 1rem; border-radius: 4px; cursor: pointer;
  font-family: 'Lato', sans-serif; font-size: 13px; transition: background 0.3s;
}
.live-unmute-btn:hover { background: rgba(0,0,0,0.9); }
.live-unmute-btn svg { width: 20px; height: 20px; }

/* --- Offline Overlay --- */
.live-offline-msg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0f1f14 0%, #152a1a 50%, #0f1f14 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; z-index: 2;
}
.live-offline-logo { margin-bottom: 2rem; opacity: 0.2; }
.live-offline-logo img { height: 60px; width: auto; }
.live-offline-icon { margin-bottom: 1.5rem; }
.live-offline-icon svg { width: 48px; height: 48px; stroke: #4a6b52; stroke-width: 1.5; fill: none; }
.live-offline-label {
  font-family: 'Lato', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; color: #3d6847;
  margin-bottom: 0.75rem;
}
.live-offline-title {
  font-family: 'Philosopher', Georgia, serif; font-size: 1.4rem; color: #5a7d63;
  margin-bottom: 0.5rem;
}
.live-offline-sub {
  font-family: 'Lato', sans-serif; font-size: 13px; color: #3d5544;
  letter-spacing: 0.03em;
}
.live-checking {
  margin-top: 1.5rem; display: flex; align-items: center; gap: 0.5rem;
  font-family: 'Lato', sans-serif; font-size: 11px; color: #3d5544;
  letter-spacing: 0.05em;
}
.live-checking-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #5c9269;
  animation: liveCheckPulse 2s ease-in-out infinite;
}
@keyframes liveCheckPulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* --- Broadcast Page --- */
.broadcast-wrap { max-width: 900px; margin: 0 auto; }

.broadcast-field { margin-bottom: 1rem; }

.broadcast-field label {
  display: block; font-family: 'Lato', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: #696969; margin-bottom: 0.35rem;
}
.broadcast-field select {
  width: 100%; padding: 0.6rem 0.75rem; font-family: 'Lato', sans-serif; font-size: 14px;
  border: 1px solid #d4e5d8; border-radius: 4px; background: #fff; color: #333; box-sizing: border-box;
}

.broadcast-preview-wrap {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #111; border-radius: 10px; overflow: hidden; margin: 1.5rem 0;
}
.broadcast-preview-wrap canvas {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}

.broadcast-controls {
  display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem;
}

.broadcast-btn {
  font-family: 'Lato', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 0.75rem 1.5rem;
  border: none; border-radius: 4px; cursor: pointer; transition: background 0.3s;
}
.broadcast-btn-start { background: #c0392b; color: #fff; }
.broadcast-btn-start:hover { background: #a93226; }
.broadcast-btn-start:disabled { background: #999; cursor: not-allowed; }
.broadcast-btn-stop { background: var(--color-darker, #1D4026); color: #fff; }
.broadcast-btn-stop:hover { background: #112015; }
.broadcast-status-text { font-family: 'Lato', sans-serif; font-size: 13px; color: #696969; margin-top: 1rem; }
.broadcast-status-text.live { color: #c0392b; font-weight: 600; }

@media (max-width: 600px) {
  .broadcast-controls { flex-direction: column; }
  .broadcast-btn { width: 100%; text-align: center; }
}
