*{box-sizing:border-box}
html,body{
  margin:0 !important;
  padding:0 !important;
  width:100%;
  height:100%;
  overflow:hidden !important;
  background:#000;
}
body{
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.player{
  position:fixed;
  inset:0;
  width:100vw;
  height:100vh;
  height:100dvh;
  margin:0;
  padding:0;
  overflow:hidden;
  background:#000;
}
.stage{
  position:absolute;
  inset:0;
  margin:0;
  padding:0;
  overflow:hidden;
  display:block;
}
.slide{
  position:absolute;
  display:block;
  margin:0;
  padding:0;
  max-width:none !important;
  max-height:none !important;
  width:auto;
  height:auto;
  object-fit:fill;
  user-select:none;
  -webkit-user-drag:none;
  image-rendering:auto;
}
.controls{
  position:absolute;
  z-index:50;
  left:50%;
  bottom:max(10px, env(safe-area-inset-bottom));
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:6px;
  padding:6px 8px;
  border:1px solid rgba(255,198,41,.9);
  border-radius:999px;
  background:rgba(1,15,34,.72);
  backdrop-filter:blur(6px);
  box-shadow:0 3px 16px rgba(0,0,0,.4);
  opacity:.92;
  transition:opacity .25s ease, transform .25s ease;
}
.controls.hidden{
  opacity:.10;
}
.controls:hover,
.controls:focus-within{
  opacity:1;
}
.controls button{
  height:34px;
  min-width:38px;
  padding:0 10px;
  border:1px solid #ffc629;
  border-radius:999px;
  background:#092d55;
  color:#fff;
  font-size:16px;
  font-weight:800;
  cursor:pointer;
}
.controls button:hover,
.controls button:focus{
  background:#ffc629;
  color:#071b34;
}
#count{
  min-width:58px;
  text-align:center;
  color:#ffc629;
  font-weight:800;
  font-size:14px;
}
@media (max-width:520px){
  .controls{
    gap:3px;
    padding:4px 5px;
    bottom:max(4px, env(safe-area-inset-bottom));
  }
  .controls button{
    height:30px;
    min-width:32px;
    padding:0 7px;
    font-size:14px;
  }
  #count{
    min-width:46px;
    font-size:12px;
  }
}
