/* ===========================================
   UI CONTROLS - Skip, audio, volume, debug
   =========================================== */

/* Skip button */
.skip {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 2500;
  transition: all 0.3s;
}
.skip:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* Audio control (toggle + slider) */
.audio-control {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2500;
}

.audio-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
}

.audio-toggle:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.audio-toggle .audio-off {
  display: none;
}

.audio-toggle.muted .audio-on {
  display: none;
}

.audio-toggle.muted .audio-off {
  display: inline;
  opacity: 0.5;
}

.audio-control .volume-slider {
  width: 80px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 2px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, width 0.3s;
}

.audio-control:hover .volume-slider,
.audio-control .volume-slider:focus {
  opacity: 1;
}

.audio-control .volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: var(--text-muted);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.audio-control .volume-slider::-webkit-slider-thumb:hover {
  background: var(--text-primary);
}

.audio-control .volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--text-muted);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

/* Debug panel */
.debug-panel {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  z-index: 2000;
  display: none;
  flex-direction: column;
  gap: 8px;
}

.debug-panel.visible {
  display: flex;
}

.debug-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.debug-panel button {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.debug-panel button:hover {
  border-color: var(--accent-warm);
  color: var(--accent-warm);
}

.debug-panel label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  gap: 8px;
}

.debug-panel input[type="range"] {
  width: 80px;
  height: 4px;
  -webkit-appearance: none;
  background: var(--border);
  border-radius: 2px;
  cursor: pointer;
}

.debug-panel input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: var(--accent-warm);
  border-radius: 50%;
  cursor: pointer;
}

.debug-panel .toggle-btn {
  transition: all 0.2s;
}

.debug-panel .toggle-btn.active {
  border-color: var(--accent-warm);
  background: var(--accent-warm);
  color: var(--bg);
}

/* Static glitch effect */
.static {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.static.active {
  animation: staticAnim 0.15s steps(2) infinite;
  opacity: 0.06;
}

@keyframes staticAnim {
  0% { transform: translate(0,0); }
  50% { transform: translate(-0.5%,0.5%); }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 12, 0.98);
  border-top: 1px solid rgba(230, 184, 74, 0.2);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 3000;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.5s ease;
  backdrop-filter: blur(8px);
}

.cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner p {
  font-family: 'Crimson Text', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
  letter-spacing: 0.02em;
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
}

#cookieAccept,
#cookieDecline {
  font-family: 'Crimson Text', Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

#cookieAccept {
  background: #e6b84a;
  border: 1px solid #e6b84a;
  color: #000;
}

#cookieAccept:hover {
  background: #f0c95c;
  border-color: #f0c95c;
  box-shadow: 0 0 12px rgba(230, 184, 74, 0.3);
}

#cookieDecline {
  background: transparent;
  border: 1px solid #515970;
  color: #8892a8;
}

#cookieDecline:hover {
  border-color: #8892a8;
  color: #eaeef4;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    text-align: center;
  }
}
