/**
 * Styles for Ceren multi-level threshold player
 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: monospace;
  overflow: hidden;
  background: #000;
  color: #fff;
}

#video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
}

/* All media elements use same styling */
.media-element {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

/* Debug overlay */
.debug-overlay {
  position: fixed;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #0f0;
  padding: 10px;
  border: 1px solid #0f0;
  font-size: 12px;
  z-index: 1000;
  display: none;
}

.debug-overlay h3 {
  margin-bottom: 5px;
  font-size: 13px;
  border-bottom: 1px solid #0f0;
}

.debug-overlay p {
  margin: 3px 0;
  line-height: 1.3;
}

.debug-overlay strong {
  color: #0ff;
  min-width: 60px;
  display: inline-block;
}

.debug-overlay kbd {
  background: #222;
  border: 1px solid #0f0;
  padding: 1px 4px;
  margin: 0 2px;
  font-size: 11px;
}

/* Loading screen */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.loading p {
  margin-top: 15px;
  font-size: 14px;
}

.spinner {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Hide cursor in fullscreen */
#video-container:fullscreen {
  cursor: none;
}
