/* UmutCangaReklam - Ultra Kiosk TV Player CSS v10.0 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

html, body {
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  overflow: hidden;
  font-family: system-ui, -apple-system, sans-serif;
  color: #ffffff;
}

/* Top Prominent Glowing Media Progress Bar */
#media-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none; /* Managed via config in player.js */
}

#media-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8 0%, #6366f1 50%, #f59e0b 100%);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.9), 0 0 20px rgba(99, 102, 241, 0.7);
  border-radius: 0 4px 4px 0;
  transition: width 0.2s linear;
}

/* Master Player Wrapper */
#player-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  background-color: #000000;
}

/* Main Media Container (Zone 1) */
#main-media-zone {
  position: relative;
  flex: 1;
  height: 100%;
  overflow: hidden;
  background-color: #000000;
}

/* Recycled Single-Node Ultra Elements */
.ultra-media-node {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  display: none;
  z-index: 1;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  will-change: opacity, transform;
}

.ultra-media-node.active {
  display: block;
  opacity: 1;
  z-index: 10;
}

/* Side Banner Container (Zone 2) */
#side-info-zone {
  width: 30%;
  height: 100%;
  background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
  border-left: 3px solid #334155;
  padding: 24px;
  display: none; /* Enabled via config */
  flex-direction: column;
  justify-content: space-between;
  z-index: 20;
}

/* Bottom Running Marquee Ticker (Zone 3) */
#ticker-marquee-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 100%);
  color: #ffffff;
  display: none; /* Enabled via config */
  align-items: center;
  z-index: 100;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.5);
  overflow: hidden;
  white-space: nowrap;
}

#ticker-text-content {
  display: inline-block;
  padding-left: 100%;
  animation: tvMarqueeScroll 20s linear infinite;
}

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

/* Live Clock Widget (Top Right) */
#player-clock-widget {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 120;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  display: none;
}

/* Device Name Badge (Bottom Right) */
#player-device-badge {
  position: fixed;
  bottom: 16px;
  right: 20px;
  z-index: 120;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  color: #38bdf8;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  letter-spacing: 0.5px;
  transition: bottom 0.3s ease;
}

/* Suppress Browser Default Video Play Controls / Poster Flicker */
video::-webkit-media-controls-start-playback-button,
video::-webkit-media-controls-overlay-play-button,
video::-webkit-media-controls-panel {
  display: none !important;
  -webkit-appearance: none !important;
}

video {
  background-color: #000000;
}

/* Setup Overlay */
#setup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  text-align: center;
  padding: 40px;
}

.setup-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 24px;
  max-width: 540px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.mac-badge {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 8px 16px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 18px;
  margin: 16px 0;
  display: inline-block;
}

.pulse-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: #38bdf8;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto 0 auto;
}

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