#autoembed {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  z-index: 100;
  transition: all 0.3s ease-in-out;
  transform: translateY(100%);
  background: #000;
}

#autoembed.active {
  transform: translateY(0);
}

#autoembed iframe {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  z-index: 100;
}

#mainautoembed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 300;
  transition: all 0.3s ease-in-out;
  will-change: transform;
  background-color: rgb(255 255 255 / 0%);
}

#mainautoembed.hidden {
  transform: translateY(-100%);
}

#showMainButton {
  position: absolute;
  width: 180px;
  height: 50px;
  text-align: center;
  left: calc(50% - 90px);
  bottom: -50px;
  box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.5);
  line-height: 40px;
  border-radius: 0 0 25px 25px;
  background-color: #151111;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  z-index: 900;
}

#backgroundautoembed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  opacity: 0.2;
  z-index: -1;
}

.noPlayers {
  position: relative;
  display: block;
  width: 300px;
  height: 300px;
  margin: 0px auto;
}

.noPlayers .icon {
  width: 100px;
  height: 100px;
  display: block;
  margin: 0px auto;
}

.noPlayers .icon path {
  fill: #fff;
}

.noPlayers .title {
  font-size: 22px;
  margin-top: 15px;
}

.noPlayers .sub {
  font-size: 14px;
}

#selectPlayer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 900px;
  height: auto;
  max-height: 80vh;
  text-align: center;
  transition: all 0.3s ease-in-out;
  overflow-y: auto;
  padding: 20px;
}

#selectPlayer.hidden {
  top: -500px;
  visibility: hidden;
  opacity: 0;
}

#selectPlayer .selectAudio {
  font-size: 18px;
  font-weight: 300;
  margin-bottom: 20px;
}

#selectPlayer .buttonList {
  display: block;
  font-size: 0;
  position: relative;
}

#selectPlayer .selectAudioButton {
  width: 170px;
  margin-left: 10px;
  margin-right: 10px;
  background: rgb(59, 64, 78);
  opacity: 0.9;
  color: #fff;
  display: inline-block;
  height: 50px;
  line-height: 50px;
  border-radius: 25px;
  box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.3);
  text-align: center;
  font-size: 12px;
  letter-spacing: 2px;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

#selectPlayer .selectAudioButton.active {
  background: rgb(120, 224, 143);
  color: #000;
  font-weight: 600;
  opacity: 1;
}

#selectPlayer .selectAudioButton.active:hover {
  background: rgb(160, 244, 143);
}

#selectPlayer .selectAudioButton:hover {
  opacity: 1;
  box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.5);
}

#selectPlayer .hostListSelector {
  display: block;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease-in-out;
}

#selectPlayer .hostList {
  transition: all 0.3s ease-in-out;
  width: 100%;
  height: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(50px);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
  padding: 20px 0;
}

#selectPlayer .hostList.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

#selectPlayer .buttonLoadHost {
  display: flex;
  align-items: center;
  height: 70px;
  border-radius: 12px;
  background: rgb(109 110 110 / 35%);
  position: relative;
  cursor: pointer;
  box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease-in-out;
  padding: 0 20px;
  border: 2px solid transparent;
}

#selectPlayer .buttonLoadHost:hover {
  background: rgb(185 185 185 / 20%);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

#selectPlayer .buttonLoadHost.active {
  background: transparent;
  box-shadow: none;
}

#selectPlayer .buttonLoadHost.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 25px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

#selectPlayer .buttonLoadHost i {
  width: 40px;
  height: 40px;
  font-size: 32px;
  color: #fff;
  flex-shrink: 0;
  transition: all 0.2s ease-in-out;
}

#selectPlayer .buttonLoadHost:hover i {
  transform: scale(1.1);
}

#selectPlayer .buttonLoadHost .t {
  font-weight: 600;
  font-size: 16px;
  color: RGB(255, 255, 255);
  margin-left: 15px;
  flex: 1;
  text-align: left;
}

#selectPlayer .buttonLoadHost .s {
  font-weight: 300;
  font-size: 12px;
  color: RGB(255, 255, 255);
  opacity: 0.5;
  margin-left: 10px;
}

#selectPlayer .chooseOne {
  font-size: 16px;
  color: #fff;
  font-weight: 400;
}

.hostListSelector.singleautoembed .hostList {
  padding-top: 0 !important;
}

/* Responsive pentru Tablet */
@media (max-width: 768px) {
  #selectPlayer .hostList {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
  }
  
  #selectPlayer {
    width: 95%;
    padding: 15px;
  }
}

/* Responsive pentru Mobile */
@media (max-width: 500px) {
  #selectPlayer {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90%;
    max-width: 100%;
    padding: 15px;
    max-height: 90vh;
    overflow-y: auto;
  }

  #selectPlayer .selectAudio {
    margin-top: 10px;
    margin-bottom: 15px;
    font-size: 16px;
  }

  #selectPlayer .selectAudioButton {
    height: 40px;
    line-height: 40px;
    border-radius: 20px;
    font-size: 11px;
    width: 140px;
    margin-left: 5px;
    margin-right: 5px;
  }

  #selectPlayer .hostList {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 15px 0;
    width: 100%;
  }

  #selectPlayer .buttonLoadHost {
    height: 65px;
    border-radius: 12px;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
  }

  #selectPlayer .buttonLoadHost i {
    width: 32px;
    height: 32px;
    font-size: 28px;
  }

  #selectPlayer .buttonLoadHost .t {
    font-size: 15px;
    margin-left: 15px;
  }

  #selectPlayer .buttonLoadHost .s {
    font-size: 11px;
    margin-left: 8px;
  }

  #selectPlayer .buttonLoadHost.active::before {
    border-radius: 12px;
  }

  #mainautoembed.hidden #selectPlayer .hostListSelector {
    opacity: 0;
    visibility: hidden;
  }

  .noPlayers {
    margin-top: 30px;
  }

  #showMainButton {
    width: 160px;
    left: calc(50% - 80px);
    font-size: 14px;
    height: 45px;
    line-height: 45px;
    bottom: -45px;
  }
  
  .hostListSelector.singleautoembed .hostList {
    padding-top: 15px !important;
  }
}

/* Extra small mobile */
@media (max-width: 360px) {
  #selectPlayer {
    width: 95%;
    padding: 10px;
  }
  
  #selectPlayer .hostList {
    gap: 10px;
  }
  
  #selectPlayer .buttonLoadHost {
    height: 60px;
    padding: 0 12px;
  }
  
  #selectPlayer .buttonLoadHost i {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  
  #selectPlayer .buttonLoadHost .t {
    font-size: 14px;
    margin-left: 12px;
  }
  
  #selectPlayer .buttonLoadHost .s {
    font-size: 10px;
  }
}
