/* ===== Live Feed Page Styles ===== */
.stream-shell {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  border: var(--border-glass);
  border-radius: var(--panel-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.stream-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 15px;
  background: var(--bg-panel);
  border-bottom: var(--border-glass);
  flex-shrink: 0;
}

.stream-coords {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-gold);
}

.stream-label {
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  gap: 6px;
}

.stream-label .live-dot {
  width: 8px; height: 8px;
}

/* Wrapper hides any residual YT chrome that leaks past controls=0 */
.stream-wrap {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.stream-frame {
  position: absolute;
  /* Slight over-scale crops the thin YT top/bottom bars */
  top: -2%;
  left: -1%;
  width: 102%;
  height: 104%;
  border: none;
  background: #000;
}

.stream-selector {
  display: flex;
  gap: 6px;
  padding: 8px 15px;
  background: var(--bg-panel);
  border-top: var(--border-glass);
  flex-shrink: 0;
}

.stream-btn {
  flex: 1;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.15);
  color: var(--text-muted);
  padding: 6px 12px;
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.2s;
  border-radius: 2px;
  text-align: center;
}

.stream-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.stream-btn.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
}

/* System log */
.sys-log {
  max-height: 200px;
  overflow-y: auto;
}

.log-entry {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #8a9bb8;
  padding: 3px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.log-entry .log-ts {
  color: var(--accent-gold);
  margin-right: 6px;
}

/* Signal bars */
.signal-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}

.signal-bar {
  width: 4px;
  background: var(--accent-green);
  border-radius: 1px;
  animation: signalPulse 2s infinite;
}

.signal-bar:nth-child(1) { height: 4px; animation-delay: 0s; }
.signal-bar:nth-child(2) { height: 7px; animation-delay: 0.2s; }
.signal-bar:nth-child(3) { height: 10px; animation-delay: 0.4s; }
.signal-bar:nth-child(4) { height: 14px; animation-delay: 0.6s; }

@keyframes signalPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@media (max-width: 980px) {
  .stream-shell {
    height: 400px !important;
    min-height: 400px !important;
  }
}
