/* === PC-98 Player — Neon CRT Style ===
   Вставь в SiteOrigin CSS или в Custom CSS темы */

/* Контейнер плеера */
#pc98-player {
  position: fixed;
  bottom: 10px;
  right: 10px;
  background: #000;
  border: 2px solid #00ffcc;           /* цвет рамки */
  border-radius: 10px;
  padding: 8px 12px;
  font-family: "Lucida Console", "Courier New", monospace;
  color: #00ffcc;                      /* цвет текста */
  text-shadow: 0 0 6px #00ffcc;
  box-shadow: 0 0 15px #00ffcc80;
  z-index: 9999;
  width: fit-content;
  animation: crtFlicker 2.5s infinite ease-in-out alternate;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* Заголовок плеера */
#pc98-player .title {
  display: block;
  font-size: 12px;
  text-align: center;
  margin-bottom: 4px;
  opacity: 0.85;
  user-select: none;
}

/* Контейнер кнопок */
#pc98-player .controls {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  min-width: 160px;
}

/* Звуковой индикатор слева (пульсирующая полоса) */
#pc98-player #sound-bar {
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 12px;
  background: #00ffcc;
  box-shadow: 0 0 10px #00ffcc;
  border-radius: 2px;
  animation: soundMove 0.3s infinite ease-in-out alternate;
  pointer-events: none;
}

/* Кнопки управления */
#pc98-player button {
  background: transparent;
  border: 1px solid #00ffcc;
  color: #00ffcc;
  font-size: 14px;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.14s ease;
  text-shadow: 0 0 5px #00ffcc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#pc98-player button:active { transform: translateY(1px) scale(0.995); }
#pc98-player button:hover {
  background: #00ffcc;
  color: #000;
  box-shadow: 0 0 10px #00ffcc;
}

/* Range (volume) */
#pc98-player input[type="range"] {
  -webkit-appearance: none;
  width: 96px;
  height: 4px;
  background: transparent;
  cursor: pointer;
  margin: 0 6px;
  outline: none;
}
#pc98-player input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: #222;
  border-radius: 2px;
}
#pc98-player input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00ffcc;
  margin-top: -4px;
  box-shadow: 0 0 8px #00ffcc;
}
#pc98-player input[type="range"]::-moz-range-track { background: #222; height: 4px; border-radius: 2px; }
#pc98-player input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%; background: #00ffcc; box-shadow: 0 0 8px #00ffcc;
}

/* CRT-анимация (пульсация/покачивание) */
@keyframes crtFlicker {
  0% {
    opacity: 1;
    box-shadow: 0 0 10px #00ffcc80, 0 0 20px #00ffcc40;
    transform: translateY(0);
  }
  50% {
    opacity: 0.92;
    box-shadow: 0 0 18px #00ffcc99, 0 0 30px #00ffcc66;
    transform: translateY(-0.8px);
  }
  100% {
    opacity: 1;
    box-shadow: 0 0 20px #00ffccaa, 0 0 40px #00ffcc80;
    transform: translateY(0);
  }
}

/* Свечение текста / кнопок */
@keyframes textGlow {
  0%,100% { text-shadow: 0 0 6px #00ffcc; }
  50% { text-shadow: 0 0 10px #00ffff; }
}
#pc98-player .title, #pc98-player button { animation: textGlow 3s infinite ease-in-out; }

/* Анимация звукового индикатора */
@keyframes soundMove {
  0% { height: 6px; opacity: 0.5; }
  50% { height: 18px; opacity: 1; }
  100% { height: 8px; opacity: 0.8; }
}

/* Активный (hover) эффект для плеера в целом */
#pc98-player:hover {
  transform: scale(1.02);
  box-shadow: 0 0 28px #00ffcccc, inset 0 0 18px #00ffcc66;
}

/* Мобильная адаптация — немного уменьшаем размер */
@media (max-width: 480px) {
  #pc98-player { right: 8px; bottom: 8px; padding: 6px; }
  #pc98-player .controls { min-width: 120px; gap: 6px; }
  #pc98-player input[type="range"] { width: 72px; }
  #pc98-player button { padding: 3px 6px; font-size: 13px; }
}