/**
 * Sopplayer v2.0 - Player Layout & Media Container
 */

.sp-player {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  background-color: #000;
  color: var(--sp-color-text);
  font-family: var(--sp-font-family);
  font-size: var(--sp-font-size-sm);
  line-height: 1.4;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  border-radius: var(--sp-radius-md);
  box-shadow: var(--sp-shadow-md);
}

.sp-player *,
.sp-player *::before,
.sp-player *::after {
  box-sizing: border-box;
}

/* Aspect Ratios */
.sp-player.sp-aspect-16-9 {
  aspect-ratio: 16 / 9;
}

.sp-player.sp-aspect-4-3 {
  aspect-ratio: 4 / 3;
}

.sp-player.sp-aspect-1-1 {
  aspect-ratio: 1 / 1;
}

.sp-player.sp-aspect-21-9 {
  aspect-ratio: 21 / 9;
}

.sp-player.sp-aspect-fill {
  width: 100%;
  height: 100%;
}

/* Video Element */
.sp-player video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #000;
  z-index: var(--sp-z-video);
}

/* Fullscreen Mode */
.sp-player.sp-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  z-index: 999999 !important;
}

/* Screen Reader Only */
.sp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hidden Utility */
.sp-hidden {
  display: none !important;
}

/* Focus States */
.sp-player:focus-visible {
  outline: var(--sp-focus-ring);
  outline-offset: var(--sp-focus-offset);
}
