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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  cursor: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Slides with fade transition */
#media-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide img,
.slide video {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Text overlay */
.text-overlay {
  position: absolute;
  bottom: 80px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
  padding: 1rem 2rem;
  pointer-events: none;
}

.text-overlay span {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-size: 2rem;
  font-weight: 600;
  display: inline-block;
  max-width: 80%;
}

.text-overlay.hidden { display: none; }

/* QR Code */
.qr-overlay {
  position: absolute;
  bottom: 30px;
  right: 30px;
  z-index: 10;
  background: #fff;
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.qr-overlay img {
  width: 120px;
  height: 120px;
  display: block;
}

.qr-overlay.hidden { display: none; }

/* Clock - hidden by default */
.clock {
  position: absolute;
  top: 20px;
  right: 25px;
  z-index: 10;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  pointer-events: none;
  display: none;
}

/* Ticker */
.ticker {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker.hidden { display: none; }

.ticker-text {
  color: #c8a97e;
  font-size: 1.3rem;
  font-weight: 500;
  white-space: nowrap;
  animation: tickerScroll linear infinite;
  padding-left: 100%;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Connection status dot */
.status-dot {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #27ae60;
  z-index: 10;
  opacity: 0.5;
}

.status-dot.offline {
  background: #e74c3c;
  opacity: 1;
}

/* Fallback */
#fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  background: #1a1a1a;
  z-index: 5;
}

#fallback.hidden {
  display: none;
}

.fallback-content {
  text-align: center;
  color: #c8a97e;
  font-family: 'Georgia', serif;
}

.fallback-content h1 {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}

.fallback-content p {
  font-size: 1.5rem;
  opacity: 0.7;
}
