/* PHP 8.5 | Claude | 30/05/2026 | 23:38 AEST */
/* SBO video player - KISS custom HTML5 player (no YouTube, no framework) */

/* legacy .video-player is a shrink-wrapped float on desktop; make it fill the column */
#video-page-container .video-player {
  width: 100%;
  float: none;
  padding-bottom: 0;
}

.sbo-player {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 500px;
  margin: 0 auto;
  background: #000;
  overflow: hidden;
  border-radius: 6px;
}

.sbo-player .sbo-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  cursor: pointer;
}

/* Centre play/pause button: white glyph on opacity-black circle */
.sbo-player .sbo-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transition: opacity 0.25s ease, background 0.2s ease;
  padding: 0;
}

.sbo-player .sbo-play:hover { background: rgba(0, 0, 0, 0.75); }

/* Paused: white triangle */
.sbo-player .sbo-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: 26px solid #fff;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
}

.sbo-player .sbo-play::after { content: none; }

/* Playing: two white bars, button fades unless hovered */
.sbo-player.is-playing .sbo-play { opacity: 0; }
.sbo-player.is-playing:hover .sbo-play,
.sbo-player.is-playing .sbo-play:focus-visible { opacity: 1; }

.sbo-player.is-playing .sbo-play::before {
  width: 8px;
  height: 30px;
  border: none;
  background: #fff;
  left: 38%;
}

.sbo-player.is-playing .sbo-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 62%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 30px;
  background: #fff;
}

/* Control bar: seek + sound */
.sbo-player .sbo-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.2));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sbo-player:hover .sbo-bar,
.sbo-player.is-paused .sbo-bar { opacity: 1; }

.sbo-player .sbo-seek {
  flex: 1;
  height: 6px;
  cursor: pointer;
  accent-color: #c00000;
}

.sbo-player .sbo-mute {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  padding: 6px;
}

.sbo-player .sbo-mute:hover { background: rgba(0, 0, 0, 0.75); }

/* Local CSS/SVG speaker icon - no emoji, no external assets */
.sbo-player .sbo-ico {
  display: block;
  width: 100%;
  height: 100%;
}

.sbo-player .sbo-ico .spk { fill: #fff; }
.sbo-player .sbo-ico .wav { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; }
.sbo-player .sbo-ico .slash { stroke: #fff; stroke-width: 1.8; stroke-linecap: round; display: none; }

.sbo-player.is-muted .sbo-ico .wav { display: none; }
.sbo-player.is-muted .sbo-ico .slash { display: block; }
