body.player-open {
  overflow: hidden;
}

.player-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #020617;
  color: #f8fafc;
  display: grid;
  place-items: center;
}

.player-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.player-frame {
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
  border: 0;
  background: white;
}

.player-close,
.player-nav,
.player-hud {
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.player-overlay.show-controls .player-close,
.player-overlay.show-controls .player-nav,
.player-overlay.show-controls .player-hud,
.player-overlay.is-windowed .player-close,
.player-overlay.is-windowed .player-hud {
  opacity: 1;
  pointer-events: auto;
}

.player-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(248,250,252,.22);
  border-radius: 50%;
  background: rgba(15,23,42,.72);
  color: white;
  font-size: 28px;
  line-height: 1;
}

.player-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
  height: 76px;
  border: 1px solid rgba(248,250,252,.18);
  border-radius: 999px;
  background: rgba(15,23,42,.58);
  color: white;
  font-size: 52px;
  line-height: 1;
}

.player-prev { left: 22px; }
.player-next { right: 22px; }

.player-hud {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(248,250,252,.18);
  border-radius: 8px;
  background: rgba(15,23,42,.82);
  backdrop-filter: blur(16px);
}

.player-meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #cbd5e1;
  font-weight: 700;
}

.player-progress {
  grid-column: 1 / -1;
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148,163,184,.32);
}

.player-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: #60a5fa;
  transition: width .2s ease;
}

.player-notes strong {
  display: block;
  margin-bottom: 6px;
}

.player-notes p {
  max-height: 96px;
  margin: 0;
  overflow: auto;
  color: #e2e8f0;
  line-height: 1.55;
  white-space: pre-wrap;
}

.player-notes small {
  display: block;
  margin-top: 8px;
  color: #94a3b8;
}

.player-actions {
  display: flex;
  gap: 8px;
}

.player-actions .ghost-btn {
  color: #f8fafc;
  border-color: rgba(248,250,252,.18);
}

.player-actions .ghost-btn:hover,
.player-actions .ghost-btn.is-active {
  background: rgba(248,250,252,.12);
}

.player-hints {
  grid-column: 1 / -1;
  color: #94a3b8;
  font-size: 13px;
}

.player-laser-dot {
  position: fixed;
  z-index: 2;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(248,113,113,.95);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(248,113,113,.9);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.player-overlay.laser-enabled .player-laser-dot {
  opacity: 1;
}

@media (max-width: 600px) {
  .player-frame {
    width: 100vw;
    height: calc(100vw * 9 / 16);
  }

  .player-nav {
    display: none;
  }

  .player-hud {
    grid-template-columns: 1fr;
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .player-actions {
    display: none;
  }

  .player-hints {
    display: none;
  }
}
