* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: system-ui, sans-serif;
}

.player {
  position: fixed;
  inset: 0;
  background: #000;
}

video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  cursor: pointer;
}

/* Centre play button, shown only while paused */
.big-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transition: opacity 0.2s;
}
.big-play svg { width: 40px; fill: #fff; margin-left: 4px; }
.player.playing .big-play { opacity: 0; pointer-events: none; }

/* Bottom control bar */
.controls {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 16px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  transition: opacity 0.3s;
}
.player.playing.idle .controls { opacity: 0; }
.player.playing.idle { cursor: none; }

.time {
  color: #fff;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  min-width: 38px;
  text-align: center;
}

.mute {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
}
.mute svg { width: 22px; fill: #fff; }

/* Range sliders: filled portion driven by --fill */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: 3px;
  cursor: pointer;
  background: linear-gradient(to right, #e50914 var(--fill, 0%), rgba(255, 255, 255, 0.3) var(--fill, 0%));
}
.seek { flex: 1; }
.volume { width: 90px; }

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
}
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.25); }

input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: none;
  border-radius: 50%;
  background: #fff;
}
