.scene-theater-overlay {
  z-index: 60 !important;
  pointer-events: none;
}

.theater-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: #fff;
}

/* Idle backdrop — shown when no video is loaded */
.theater-idle-backdrop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, #1a1a2e 0%, #0a0a14 70%, #000 100%);
  gap: 16px;
  z-index: -1;
}

.theater-idle-icon {
  font-size: 96px;
  animation: theater-idle-float 3s ease-in-out infinite;
}

.theater-idle-title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 6px;
  text-transform: uppercase;
  opacity: 0.9;
  text-shadow: 0 0 40px rgba(147, 130, 220, 0.3);
}

.theater-idle-subtitle {
  font-size: 20px;
  font-weight: 500;
  opacity: 0.5;
  letter-spacing: 1px;
}

.theater-idle-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
}

.theater-idle-countdown-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.5;
}

.theater-idle-countdown-time {
  font-size: 72px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 30px rgba(147, 130, 220, 0.4);
}

.theater-idle-players {
  font-size: 18px;
  font-weight: 500;
  opacity: 0.5;
  margin-top: 8px;
}

@keyframes theater-idle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Phase banner (suggesting/voting) */
.theater-phase-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  font-size: 48px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
  flex: 1;
}

/* Now playing bar */
.theater-now-playing {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 30px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  gap: 4px;
}

.theater-now-playing-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  opacity: 0.7;
  text-transform: uppercase;
}

.theater-now-playing-title {
  font-size: 24px;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theater-now-playing-submitter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  opacity: 0.85;
}

.theater-submitter-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.theater-video-progress {
  font-size: 14px;
  opacity: 0.6;
  margin-top: 2px;
}

/* Reactions */
.theater-reactions {
  display: flex;
  gap: 24px;
  position: absolute;
  bottom: 80px;
  right: 30px;
}

.theater-reaction {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  font-size: 20px;
  font-weight: 600;
}

.theater-reaction-icon {
  font-size: 24px;
}

/* Skip bar */
.theater-skip-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  position: absolute;
  bottom: 20px;
  left: 30px;
  right: 30px;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}

.theater-skip-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  opacity: 0.7;
  white-space: nowrap;
}

.theater-skip-progress {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.theater-skip-fill {
  height: 100%;
  background: #ef4444;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.theater-skip-text {
  font-size: 14px;
  opacity: 0.8;
  white-space: nowrap;
}

/* Skipping banner */
.theater-skipping-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 5;
}

.theater-skipping-text {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #ef4444;
  text-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
  animation: theater-skipping-pulse 0.8s ease-in-out infinite;
}

.theater-skipping-dots {
  font-size: 64px;
  font-weight: 800;
  color: #ef4444;
  animation: theater-skipping-dots 1.2s steps(4, end) infinite;
  overflow: hidden;
  display: inline-block;
  vertical-align: bottom;
  width: 0;
}

@keyframes theater-skipping-pulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes theater-skipping-dots {
  0%   { width: 0; }
  25%  { width: 0.35em; }
  50%  { width: 0.7em; }
  75%  { width: 1.05em; }
  100% { width: 0; }
}

/* Up next card */
.theater-up-next {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: absolute;
  bottom: 80px;
  left: 30px;
  max-width: 360px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: theater-upnext-slidein 0.4s ease-out;
}

.theater-up-next-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.6;
}

.theater-up-next-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theater-up-next-thumb {
  width: 80px;
  height: 45px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.theater-up-next-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.theater-up-next-title {
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theater-up-next-submitter {
  font-size: 13px;
  opacity: 0.7;
}

@keyframes theater-upnext-slidein {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Emoji reaction particles container */
.theater-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 10;
}

.theater-particle {
  position: absolute;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

/* Results / Leaderboard */
.theater-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 40px;
  background: rgba(0, 0, 0, 0.85);
}

.theater-results-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.theater-results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 600px;
}

.theater-result-entry {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.theater-result-winner {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.3), rgba(234, 179, 8, 0.1));
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.theater-result-rank {
  font-size: 24px;
  font-weight: 800;
  min-width: 48px;
  text-align: center;
}

.theater-result-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.theater-result-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.theater-result-name {
  font-size: 20px;
  font-weight: 700;
}

.theater-result-stats {
  font-size: 14px;
  opacity: 0.7;
}
