:root {
  --bg: #000;
  --accent: #e63946;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; width: 100%; height: 100%;
  background: var(--bg); overflow: hidden;
  font-family: 'Segoe UI', Arial, sans-serif;
}
#player {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #000;
}
.media-el {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
}
.fade-in { animation: fadeIn 0.6s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

#start-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: #000; display: none; align-items: center; justify-content: center;
  color: #fff; cursor: pointer;
}
.start-box { text-align: center; }
.start-icon { font-size: 64px; margin-bottom: 16px; }

#empty-state {
  position: absolute; color: #555; font-size: 20px;
  display: none; align-items: center; justify-content: center;
}
#empty-state.visible { display: flex; }

#gear-btn {
  position: fixed; bottom: 14px; right: 14px; z-index: 40;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.35);
  border: none; font-size: 18px; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
#gear-btn:hover { background: rgba(255,255,255,0.2); color: #fff; }

#menu-panel {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
}
#menu-panel.hidden { display: none; }
.menu-card {
  background: #1a1a1a; color: #fff; padding: 28px; border-radius: 12px;
  width: 320px; position: relative;
}
.close-btn {
  position: absolute; top: 8px; right: 12px; background: none; border: none;
  color: #999; font-size: 22px; cursor: pointer;
}
.menu-section { margin-top: 18px; }
.menu-section h3 { font-size: 14px; color: #aaa; margin: 0 0 8px; }
#exit-code-input {
  width: 100%; padding: 10px; border-radius: 6px; border: 1px solid #333;
  background: #111; color: #fff; margin-bottom: 8px;
}
#exit-submit {
  width: 100%; padding: 10px; border-radius: 6px; border: none;
  background: var(--accent); color: #fff; cursor: pointer; font-weight: 600;
}
.error-msg { color: var(--accent); font-size: 13px; margin-top: 6px; min-height: 16px; }
.admin-link { color: #888; font-size: 13px; text-decoration: none; }
.admin-link:hover { color: #fff; }
#unlocked-msg { color: #fff; font-size: 24px; }
