.player {
  color: #fff;
  font-size: 16px;
  display: flex;
  position: relative;
  padding-top: 56.25%;
  max-height: 100vh;
}

@media (max-width: 480px) {
  .player {
    padding-top: 80%;
  }
}

.player::before {
  content: '';
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  position: absolute;
}

@media (max-width: 480px) {
  .player {
    font-size: 14px;
  }
}

.player__hint {
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 19, 0.5);
  top: 0;
  position: absolute;
  z-index: 11;
  pointer-events: none;
  display: none;
}

.player__hint .player__icon {
  top: 50%;
  left: 50%;
  position: absolute;
}

.player__hint--visible {
  display: block;
}

.player__hint--visible .player__icon {
  animation: 1s linear infinite swipe;
}

@keyframes swipe {
  0%, 100%, 50% {
    transform: translate(-50%, -50%);
  }

  25% {
    transform: translate(-50%, -70%);
  }

  75% {
    transform: translate(-50%, -30%);
  }
}

.player__video {
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: inherit;
  width: 100%;
  z-index: 8;
  min-width: 100%;
  background: #000;
}

.player__slide {
  height: 100%;
  width: 100%;
  min-width: 100%;
  position: absolute;
}

.player__slide video {
  top: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  pointer-events: none;
}

.player__poster {
  width: 100%;
  height: 100%;
  filter: blur(10px);
  -webkit-filter: blur(10px);
  background-size: cover;
}

.player__error {
  position: absolute;
  left: 55px;
  right: 55px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 500;
  color: #fff;
  text-align: center;
  opacity: 0;
  font-size: 34px;
  pointer-events: none
}

.player__error--visible {
  opacity: 1;
  z-index: 10;
}

.player__timer {
  font-weight: bold;
  font-size: 40px;
  color: rgba(var(--bs-primary));
  width: 45px;
  height: 45px;
  margin: 0 auto;
}

.player__error.player__error--visible .player__timer {
  opacity: 1;
  z-index: 10;
  animation: timer 0.5s infinite alternate;
}

@media (max-width: 992px) {
  .player__error {
    font-size: 28px;
  }
}

@media (max-width: 576px) {
  .player__error {
    font-size: 18px;
  }

  .player__timer {
    font-size: 30px;
  }
}

@keyframes timer {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.2);
  }
}

.player__loader {
  top: 0;
  position: absolute;
  z-index: 8;
  width: 100%;
  height: 100%;
  padding: 10px;
  display: none;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
}

.player__loader--visible {
  display: flex;
}

.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}

.loader__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.loader-dots-item {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: rgba(var(--bs-primary), 0.8);
  animation: loader 1.4s ease-in-out infinite
}

.loader-dots-item:nth-child(1) {
  animation-delay: -1.2s
}

.loader-dots-item:nth-child(2) {
  animation-delay: -1s
}

.loader-dots-item:nth-child(3) {
  animation-delay: -.8s
}

.loader-dots-item:nth-child(4) {
  animation-delay: -.6s
}

.loader-dots-item:nth-child(5) {
  animation-delay: -.4s
}

.loader-dots-item:nth-child(6) {
  animation-delay: -.2s
}

.loader__text {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  display: block;
  text-align: center
}

@keyframes loader {
  0%, 40%, 100% {
    transform: scale(1.2);
  }

  20% {
    transform: scale(1.8);
    background-color: rgba(var(--bs-primary));
  }
}

.send-tip {
  color: rgba(var(--bs-primary)) !important;
  border: 1px solid;
  animation: pulse 3s infinite;
  animation-duration: 3s;
}

@-webkit-keyframes pulse {
  0% {
    -webkit-box-shadow: 0 0 0 0 rgba(var(--bs-primary), 0.9);
  }

  70% {
    -webkit-box-shadow: 0 0 0 7px rgba(64, 197, 72, 0);
  }

  100% {
    -webkit-box-shadow: 0 0 0 0 rgba(64, 197, 72, 0);
  }
}

@keyframes pulse {
  0% {
    -moz-box-shadow: 0 0 0 0 rgba(var(--bs-primary), 0.4);
    box-shadow: 0 0 0 0 rgba(var(--bs-primary), 0.9);
  }

  70% {
    -moz-box-shadow: 0 0 0 7px rgba(64, 197, 72, 0);
    box-shadow: 0 0 0 7px rgba(64, 197, 72, 0);
  }

  100% {
    -moz-box-shadow: 0 0 0 0 rgba(64, 197, 72, 0);
    box-shadow: 0 0 0 0 rgba(64, 197, 72, 0);
  }
}

.player__promo,
.player__bio {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s linear;
}

.fullscreen .player__promo,
.fullscreen .player__bio {
  opacity: 1;
  visibility: visible;
}

.player__promo,
.player__controls,
.player__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 420px) {
  .player__promo,
  .player__controls,
  .player__nav {
    --placement: 5px;
    gap: 3px;
  }
}

.player__bio,
.player__promo,
.player__controls,
.player__nav {
  --placement: 10px;
  position: absolute; 
  z-index: 10;
}

@media (max-width: 420px) {
  .player__bio,
  .player__promo,
  .player__controls,
  .player__nav {
    --placement: 5px;
  }
}

.player__bio {
  top: var(--placement);
  left: var(--placement);
}

.player__promo {
  bottom: var(--placement);
  left: var(--placement);
}

.player__controls {
  top: var(--placement);
  right: var(--placement);
}

.player__nav {
  bottom: var(--placement);
  right: var(--placement);
}

.player__bio {
  padding: 10px;
  background: rgba(15, 15, 19, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
}

.fullscreen .player__nav {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}

.player__bio-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  overflow: hidden;
  background: 
    linear-gradient(#fff, #fff)
    padding-box,
    linear-gradient(45deg, #f69935, #e7693b, #dc2742, #d3236a, #b81785)
    border-box;
  border: 3px solid transparent;
}

.player__bio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  animation: rotate 20s linear infinite;
  border: 3px solid transparent;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.player__bio-username {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: .25s;
}

@media (hover: hover) {
  .player__bio-username:hover {
    color: rgba(var(--bs-primary));
  }
}

.player__bio-link {
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  color: inherit;
  white-space: nowrap;
}

.player__bio-viewers {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  color: #fff;
  font-size: 0.9em;
}

.player__bio-icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.player__bio-count {
  font-weight: bold;
}

.player__btn {
  background: rgba(15, 15, 19, 0.3);
  border-radius: 10px;
  display: flex;
  flex-direction: row;
  border: 0;
  cursor: pointer;
  transition: .2s;
  width: fit-content;
  gap: 10px;
  font-size: inherit;
  color: #fff;
  padding: 10px;
  text-decoration: none;
}

@media (hover: hover) {
  .player__btn:hover {
    color: rgba(var(--bs-primary));
    background: rgba(15, 15, 19, 0.4);
  }
}

.player__icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.player__icon--large {
  width: 35px;
  height: 35px;
}

@media (max-width: 420px) {
  .player__btn {
    padding: 8px;
  }

  .player__icon {
    width: 18px;
    height: 18px;
  }

  .player__icon--large {
    width: 30px;
    height: 30px;
  }
}

.fullscreen {
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  max-width: 100vw;
  position: fixed;
  inset: 0;
  margin: 0;
  max-height: 100vh;
}

.player__volume.disabled {
  pointer-events: none
}

.player__volume svg {
  display: none
}

.player__volume.muted svg.player__icon--vol-min, .player__volume.unmuted svg.player__icon--vol-max,.player__volume.volume-half svg.player__icon--vol-half {
  display: block
}

.player__volume-slider input {
  -webkit-appearance: none;
  height: 8px;
  width: 0px;
  border-radius: 2px;
  transform: rotate(-90deg);
}

.player__volume-slider {
  position: absolute;
  top: 44px;
  width: 100%;
  height: 0%;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: height .15s linear;
}

.player__volume {
  transition: .3s;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  height: 150px;
}

.player__volume .player__btn {
  height: 44px;
  transition: height .15s linear;
}

@media (max-width: 420px) {
  .player__volume .player__btn {
    height: 34px;
  }
}

@media (min-width: 1025px) {
  .player__volume:hover .player__btn {
    height: 100%;
  }
  
  .player__volume:hover .player__volume-slider {
    opacity: 1;
    height: calc(100% - 44px);
  }
  
  .player__volume:hover .player__volume-slider input {
    width: 90px;
  }
}

.player.out-of-view .player__video {
  position: fixed;
  bottom: 10px;
  top: unset;
  left: unset;
  right: 10px;
  width: 300px !important;;
  height: 169px;
  z-index: 20;
  min-width: unset;
  background: #e6e6e6;
  overflow-x: hidden
}

.player.out-of-view .player__video .scroll-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 8
}

@media (max-width: 576px) {
  .player.out-of-view .player__video {
    width: 200px !important;
    height: 112.5px
  }
}

input[type="range"]::-moz-range-track,input[type="range"]::-ms-track,input[type="range"]::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  box-shadow: none;
  border: 0;
  background: 0
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 0;
  width: 0;
  border-radius: 50%;
  background: #fff
}

input[type="range"]::-moz-range-thumb {
  -webkit-appearance: none;
  height: 0;
  width: 0;
  border-radius: 50%;
  background: #fff
}

input[type="range"]::-ms-thumb {
  -webkit-appearance: none;
  height: 0;
  width: 0;
  border-radius: 50%;
  background: #fff
}

.hidden {
  overflow: hidden;
}