/* kasnovitch - video player (loaded by evermist.html only) */

/* ============================================
   VIDEO PLAYER
   ============================================ */

.player-wrap {
  position: relative;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.player-wrap video {
  width: 100%;
  display: block;
  cursor: pointer;
}

.player-overlay-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: opacity 0.3s;
}

.player-overlay-play.hidden {
  opacity: 0;
  pointer-events: none;
}

.big-play {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.big-play:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.big-play svg {
  width: 28px;
  height: 28px;
  fill: #fff;
  margin-left: 3px;
}

.player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  padding: 32px 12px 10px;
  opacity: 0;
  transition: opacity 0.3s;
}

.player-wrap:hover .player-controls {
  opacity: 1;
}

.player-progress {
  position: relative;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  cursor: pointer;
  margin-bottom: 8px;
}

.player-progress:hover {
  height: 6px;
}

.player-progress-buffer {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.player-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

.player-progress-handle {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s;
}

.player-progress:hover .player-progress-handle {
  opacity: 1;
}

.player-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-btn svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.player-btn:hover svg {
  fill: var(--accent);
}

.player-vol-wrap {
  width: 80px;
  padding: 8px 0;
  cursor: pointer;
}

.player-vol-slider {
  position: relative;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.player-vol-fill {
  height: 100%;
  background: #fff;
  border-radius: 2px;
  width: 80%;
}

.player-time {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
}

.player-spacer { flex: 1; }

.player-speed-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.player-speed-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

