* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: transparent;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

#clip-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

#clip-container.hidden {
  opacity: 0;
  pointer-events: none;
}

#clip-container.visible {
  opacity: 1;
}

#clip-frame {
  background: linear-gradient(135deg, #0a0014 0%, #1a0030 50%, #0a0014 100%);
  border: 2px solid transparent;
  border-image: linear-gradient(135deg, #00e5ff, #ff00ff, #ffaa00, #00e5ff) 1;
  border-radius: 0;
  overflow: hidden;
  box-shadow:
    0 0 15px rgba(0, 229, 255, 0.4),
    0 0 30px rgba(255, 0, 255, 0.2);
  animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    box-shadow:
      0 0 15px rgba(0, 229, 255, 0.4),
      0 0 30px rgba(255, 0, 255, 0.2);
  }
  to {
    box-shadow:
      0 0 20px rgba(255, 170, 0, 0.4),
      0 0 40px rgba(0, 229, 255, 0.2);
  }
}

#clip-top {
  background: linear-gradient(90deg, #00e5ff, #ff00ff);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#clip-title {
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 500px;
  text-align: center;
  flex: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

#clip-video {
  background: #000;
  line-height: 0;
}

#clip-video video {
  display: block;
  width: 100%;
  height: auto;
}

#clip-bottom {
  background: linear-gradient(90deg, #ff00ff, #ffaa00);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#bot-name {
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  flex: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Keep every theme's video area at the same 16:9 OBS size. */
#clip-container #clip-frame {
  width: 800px;
  height: auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

#clip-container #clip-video {
  width: 100%;
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
  min-height: 0;
}

#clip-container #clip-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Base progress bar so it's visible even on the default theme (which loads no theme file). */
#progress-bar-container {
  height: 4px;
  background: rgba(27, 221, 241, 0.15);
  width: 100%;
}

#progress-bar {
  height: 100%;
  width: 0%;
  background: #1BDDF1;
  transition: width 0.1s linear;
}
