.pageShorts{
    background-color: black;
    padding-top: 0px !important;/*no header*/
}


.video-wrapper {
  scroll-snap-align: start;
  flex: 0 0 calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto;
  aspect-ratio: 9/16;
  overflow: hidden;
}

/*fix per ultimo elemento */
.video-wrapper:last-child {
    margin-bottom: 60px;
}

.video-js {
  width: 100vw;
  height: 100vh;
}

.buttons-container-shorts {
  position: absolute;
  right: 10px;
  bottom: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1;
}

.buttons-container-shorts button {
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  font-size: 24px;
}

.buttons-container-shorts button.cta {
  background-color: rgba(255, 255, 255, 0.5);
  color: black;
}

#main-container-shorts {
  display: flex;
  height: 100vh;
  width: 100%;
  transition: width 0.3s ease;
  /* Transition width for responsiveness */
  justify-content: center;
  /* Center align content horizontally */
}

#video-container-shorts {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  flex: 1;
  transition: flex 0.3s ease;
  /* Transition flex property */
  max-width: 100%;
  padding-bottom: 60px !important;/*fix ultimo shorts non visualizzato tutto*/

  /* Adjust max-width to control centering */
}

#main-container.split #video-container-shorts {
  flex: 0.7;
  /* Adjust video container width when split */
}

#main-container.split #comment-box-shorts {
  width: 30%;
  /* Width of comment box when split */
  transform: translateX(0);
  display: block;
  /* Move comment box to the left */
}

@media screen and (max-width: 600px) {
  #main-container.split #comment-box-shorts {
    width: 100%;
    max-width: 100%;
  }
}

.video-info-container {
  position: absolute;
  left: 5%;
  bottom: 13%;
  gap: 10px;
  width: 85%;
  z-index: 1;
}

.video-info-container-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  cursor: pointer;
  word-break: break-word;
  overflow: hidden;
}

/* Stile per posizionare il pannello del volume in alto a destra */
.vjs-volume-panel {
  position: absolute;
  top: 0;
  right: 0;
  margin: 10px;  /* Aggiungi margine dal bordo del player, se necessario */
}

.vjs-error-display{
  display: none;
}

.video-cinema-lighting-shorts {
	filter: blur(100px);
	position: absolute;
	width: 100%;
	height: 100%;
	opacity: 0.3;
}




/* Stile per i pulsanti di scorrimento */
/* Nascondi i pulsanti su dispositivi mobili */
.shorts-scroll-buttons {
  position: fixed;
  bottom: 20px;
  right: 50px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.shorts-scroll-buttons i{
  padding:5px;
  border-radius: 6px;
  border: 1px solid lightgray;
}

.shorts-scroll-button {
  background-color: #383838;
  color: white;
  border: none;
  padding: 0px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
#short-scroll-up{
  opacity:0.4;
}

.videojs-shorts{
  height: 100%;
  width: 100%;
}

@media only screen and (max-width: 768px) {
  .video-wrapper{
    aspect-ratio: none;
    width: 100%;
  }
  .shorts-scroll-buttons {
    display: none;
  }
}

.video-placeholder{
    height:100%;
    width:100%;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    background-position: center center !important;
}

.shorts_loader_spinner{
    padding-top: 50vh;
}

