/* Skeleton shown on top of a <video> while it loads (see public/assets/js/video-skeleton.js).
   Placed as a sibling of the video and sized to it by the script, so the page layout is untouched. */
.tb-vskel {
  position: absolute;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
  background: #0e1118;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0s linear 0s;
}

.tb-vskel.is-hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

/* soft light sweep */
.tb-vskel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, 0.08) 50%, transparent 75%);
  transform: translateX(-100%);
  animation: tb-vskel-sweep 1.5s ease-in-out infinite;
}

/* play button placeholder */
.tb-vskel__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(26px, 16%, 64px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
}

.tb-vskel__play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.55em 0 0.55em 0.9em;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.22);
  font-size: clamp(10px, 4%, 20px);
}

/* control bar placeholder: progress line + two small buttons */
.tb-vskel__bar {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 6%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tb-vskel__bar i {
  display: block;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}

.tb-vskel__bar i:nth-child(1) { width: 18px; height: 18px; border-radius: 50%; flex: 0 0 auto; }
.tb-vskel__bar i:nth-child(2) { flex: 1 1 auto; }
.tb-vskel__bar i:nth-child(3) { width: 18px; height: 18px; border-radius: 50%; flex: 0 0 auto; }

/* thumbnails and other small players: only the sweep and the play button */
.tb-vskel.is-small .tb-vskel__bar { display: none; }

@keyframes tb-vskel-sweep {
  to { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .tb-vskel::before { animation: none; }
}
