/* Snape StreamPlayer chrome — scoped under .player-pane */

.player-pane {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: transparent;
  overflow: hidden;
  pointer-events: none;
}
.player-pane.is-active {
  z-index: 5;
  pointer-events: auto;
  background: #000;
}
.player-pane.cursor-hidden {
  cursor: none;
}

.player-pane > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.player-pane.is-active > video {
  object-fit: contain;
  background: #000;
}

.player-pane .is-hidden {
  display: none !important;
}

.player-pane .tap-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
}

.player-pane .center-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 13;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 0;
}
.player-pane .center-btn svg {
  width: 30px;
  height: 30px;
}

.player-pane .buffering {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 13;
}
.player-pane .buffering .spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: #e50914;
  animation: spin 0.8s linear infinite;
}

.player-pane .chrome {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 14;
  padding: 40px 12px 12px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.85));
}

.player-pane .scrubber {
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}
.player-pane .scrub-track {
  position: relative;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}
.player-pane .scrub-buffered,
.player-pane .scrub-played {
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
}
.player-pane .scrub-buffered {
  background: rgba(255, 255, 255, 0.4);
}
.player-pane .scrub-played {
  background: #ff0000;
  width: 0;
}
.player-pane .scrub-knob {
  position: absolute;
  left: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ff0000;
  transform: translateX(-50%);
  pointer-events: none;
}

.player-pane .controls-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}
.player-pane .controls-row .spacer {
  flex: 1;
}
.player-pane .controls-row .time {
  color: #fff;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.player-pane .ctrl {
  position: relative;
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.player-pane .ctrl svg {
  width: 24px;
  height: 24px;
  display: block;
}
.player-pane .ctrl.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 2px;
  border-radius: 1px;
  background: #ff0000;
}

.player-pane .menu-popup {
  position: absolute;
  right: 16px;
  bottom: 76px;
  z-index: 15;
  width: 220px;
  max-height: 240px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 6px 0;
}
.player-pane .menu-row,
.player-pane .menu-opt {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  color: #fff;
}
.player-pane .menu-row .val {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}
.player-pane .menu-opt {
  gap: 8px;
  font-family: ui-monospace, Menlo, monospace;
  color: rgba(255, 255, 255, 0.7);
}
.player-pane .menu-opt.on {
  color: #fff;
}
.player-pane .menu-opt .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
}
.player-pane .menu-opt.on .dot {
  background: #e50914;
}
.player-pane .menu-row:hover,
.player-pane .menu-opt:hover {
  background: rgba(255, 255, 255, 0.06);
}
