.main {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100vh - var(--header-h));
  padding: 1rem;
  box-sizing: border-box;
}

.stream-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  aspect-ratio: 16/9;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

#stream-canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#stream-canvas.live {
  opacity: 1;
}

/* Offline overlay */
.offline-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-deep);
  transition: opacity 0.4s ease;
}

.offline-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.offline-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.offline-icon {
  font-size: 3rem;
  color: var(--muted);
  line-height: 1;
}

.offline-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.offline-sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.05em;
}

/* Pulse ring animation */
.pulse-ring {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: pulse-out 2.5s ease-out infinite;
}

@keyframes pulse-out {
  0%   { transform: scale(0.5); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}
