*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
     user-select: none;
}

:focus:not(:focus-visible) {
    outline: none;
}

.reproductor{
    width: 100%;
    height: 100vh;
    position: relative;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; 
    background-color: black;
    z-index: 1;
}

#video-principal{
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.bottom-left {
    position: absolute;
    left: 65px;
    cursor: pointer;
    gap:9px;
    bottom:30px;
}

.counter {
	position: absolute;
	top: 20px;
	font-size: 1.4rem;
	color: #FFF;
  background-color:#333333;
  border-radius: 5px;
  padding: 6px;
}

.bottom-left-2 {
    position: absolute;
    left: 150px;
    bottom:30px;
}
  
.bottom-right {
    position: absolute;
    bottom: 35px;
    right: 65px;
    cursor: pointer;
}
  
.centered {
    position: absolute;
    bottom: 6em;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
  }

.bottom-centered {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
}

#progressBar {
    position: absolute;
    bottom: 100px;
    width: 90%;
    height: 7px;
    background: #333333;
    cursor: pointer;
    border-radius: 10px;
}

#progress {
    width: 0%;
    height: 100%;
    background: #ffffff;
    opacity: 1;
    border-radius: 10px;
}

#currentTimeDisplay {
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.8rem;
    transform: translateX(-50%);
    white-space: nowrap;
    pointer-events: none;
}

#progressBar:hover {
    height:10px;
}

#record-buttom:hover {
    height:55px;
}

#progressThumb {
    position: absolute;
    top: 50%;
    left: 0;
    width: 14px;
    height: 14px;
    background-color: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
    touch-action: none;
    transition: left 0.01s linear;
}

.volume-container {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 9px;
}

#volumeIcon {
    color: white;
    font-size: 38px;
    cursor: pointer;
}

#volumeSlider {
    width: 100px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background-color: red;
    cursor: pointer;
}

.volume-container:hover #volumeSlider {
    opacity: 1;
}

i {
    display: inline-block;
    transition: transform 0.1s ease;
}

i:hover {
    transform: scale(1.2);
}

.bottom-sup-right2,
.bottom-left, 
.bottom-left-2, 
.bottom-right, 
.bottom-centered, 
#progressBar,
.centered,
#speednow {
  transition: opacity 0.5s ease, visibility 0.5s ease;
  opacity: 1;
  visibility: visible;
}

.reproductor.hide-controls .bottom-sup-right2,
.reproductor.hide-controls .bottom-left,
.reproductor.hide-controls .bottom-left-2,
.reproductor.hide-controls .bottom-right,
.reproductor.hide-controls .bottom-centered,
.reproductor.hide-controls #progressBar,
.reproductor.hide-controls .centered,
.reproductor.hide-controls #speednow {
  opacity: 0;
  visibility: hidden !important;
  pointer-events: none;
}

.reproductor:hover:not(.hide-controls) .bottom-sup-right2,
.reproductor:hover:not(.hide-controls) .bottom-left,
.reproductor:hover:not(.hide-controls) .bottom-left-2,
.reproductor:hover:not(.hide-controls) .bottom-right,
.reproductor:hover:not(.hide-controls) .bottom-centered,
.reproductor:hover:not(.hide-controls) #progressBar,
.reproductor:hover:not(.hide-controls) .centered {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

@media (orientation: portrait) {
  .reproductor {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: black;
    position: relative;
  }

  .video-scroll-container {
    -webkit-overflow-scrolling: touch;
    touch-action: none;  
    position: relative;
    overflow: hidden;
  }

  #video-principal {
    display: block;
    width: 100%;
    height: 100vh;
    object-fit: contain;
    position: relative;
    touch-action: none;
    pointer-events: auto; /* recibe gestos */
    z-index: 0; 
  }

  /* 🔑 overlays transparentes no bloquean */
  .bottom-centered,
  .bottom-left,
  .bottom-left-2,
  .bottom-right,
  #progressBar,
  .centered {
      position: fixed; 
      z-index: 10; 
      pointer-events: none; /* dejan pasar gestos */
  }

  /* 🔑 solo los controles clickeables sí responden */
  .bottom-centered button,
  .bottom-centered i,
  #progressBar input,
  #volumeIcon,
  #volumeSlider {
      pointer-events: auto;
  }

  #progressBar {
      bottom: 100px;
      width: 90%;
      left: 5%;
  }

  .bottom-centered {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    height: 200px;
    width: 100%;
  }

  .bottom-centered i {
    font-size: 60px !important;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  }

  #icon {
    font-size: 75px !important;
  }

  #volumeIcon {
    color: white;
    font-size: 35px;
    cursor: pointer;
  }

  #volumeSlider {
    width: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
}

  
  @media (max-width: 480px) {
    .bottom-centered {
      gap: 15px;
    }
    
    .bottom-centered i {
      font-size: 40px !important;
    }
    
    #icon {
      font-size: 90px !important;
    }
  }

@media (min-width: 480px) and (max-width: 700px) and (orientation: portrait) {
  .bottom-centered i {
    font-size: 40px !important;
  }
  
  #icon {
    font-size: 100px !important;
  }

  i {
    font-size: 40px !important;
  }
  #volumeIcon{
    margin-left: 10px;
  }
}

@media (max-width: 1400px) and (orientation: landscape) {
    .reproductor {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    #video-principal {
        width: 100%;
        height: 100%;
        max-width: 100%;
    }
}

@media (min-width: 700px) and (max-width: 1024px) and (orientation: portrait) {
  .bottom-centered i {
    font-size: 60px !important;
  }
  
  #icon {
    font-size: 120px !important;
  }

  i {
    font-size: 40px !important;
  }

  #volumeIcon{
    margin-left: 10px;
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  display: flex;
  position: relative; 
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  background: #040714;
  color: white;
  padding: 1.5rem;
  border-radius: 32px;
  max-width: 675px;
  min-height: 100px;
  width: 90%;
  max-height: 80vh; 
  overflow-y: auto;
  padding-bottom: 3rem;
}

@media (orientation: portrait) {
  .ul-links {
    overflow-x: auto;
    overflow-y: auto;
    white-space: nowrap;
  }
}

.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.close-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 2.5rem;
    color: white;
    position: absolute;
    top: 10px;
    right: 10px;
  }
  
  .close-btn::before {
    font-family: "bootstrap-icons";
    content: "\F62A"; 
    display: inline-block;
  }

  .close-btn:hover {
    color: #FF1A75; 
    transition: color 0.2s;
  }

  .del-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 1.4rem;
    color: white;
    margin-left: 7px;
  }

  .del-btn:hover {
    color: #CCFF00; 
    transition: color 0.2s;
  }

  .share-btn {
    margin-left: 10px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 1.4rem;
    color: white;
  }

  .share-btn:hover {
    color: #CCFF00; 
    transition: color 0.2s;
  }

  .a-link {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 1.4rem;
    color: white;
    margin-left: 7px;
  }
 
  .a-link:hover {
    color: #CCFF00;
    transition: color 0.2s;
  }

  .confirm-Btn {
    background: none;
    border: none;
    padding-top: 20px;
    cursor: pointer;
    font-size: 2rem;
    color: white;
  }
  
  .confirm-Btn::before {
    font-family: "bootstrap-icons";
    content: "\F26B"; /* código unicode del ícono */
    display: inline-block;
  }

  .confirm-Btn:hover {
    color: #CCFF00; /* Esto cambia lo que vos ves como "relleno" */
    transition: color 0.2s;
  }

 .ul-links {
  list-style: none;
  margin: 0;
  padding-top: 20px;
  width: 100%;

  /* Esto evita que colapse el ancho del contenido */
  max-width: 100%;
}

.li-links {
  margin-bottom:-1px;
  border: 1px solid #3d444d;
  border-radius: 2px;
  padding: 9px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* clave: minmax(0, 1fr) */
  gap: 8px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.name-container,
.tags-container,
.duration-container,
.options-container {
  min-width: 0;                /* permite que se achiquen */
  overflow: hidden;            /* oculta el exceso */
  text-overflow: ellipsis;     /* agrega ... si es muy largo */
  white-space: wrap;         /* evita salto de línea */
}

.tags-container {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap; /* por si hay muchos tags */
  gap: 5px;
}

.tag-badge {
  text-transform: uppercase;
  background-color: #CCFF00;
  color: black;
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 12px;
  white-space: nowrap;
  font-weight: 600;
}

.li-links:hover {
  background-color: #14182A;
  transition: color 0.2s;
}

.li-links:nth-child(1) {
  font-weight: bold;
  background-color: #14182A;
}

.li-options {
  display: flex;
  gap: 7px;
  justify-content: flex-start;
}

@media (max-width: 600px) {
  .li-links {
    min-width: 600px;
  }
}

#nbcamera {
  color:white; 
  position: absolute; 
  cursor: pointer;
  top: 20px; 
  right: 20px;
  font-size: 2rem;
}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid #FF1A75;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    }

    @keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
} 

.loader.hidden {
  display: none;
}

@media screen and (orientation: portrait) and (max-width:700px){
  .loader {
    position: fixed; /* cambio clave */
    width: 80px;
    height: 80px;
    top: 45%;
    left: 40%;
    transform: translate(-50%, -50%);
    text-indent: -9999em;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
  }
}

@media screen and (orientation: portrait) and (min-width:700px){
  .loader {
    position: fixed; /* cambio clave */
    width: 100px;
    height: 100px;
    top: 45%;
    left: 44%;
    transform: translate(-50%, -50%);
    text-indent: -9999em;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
  }
}

.loader2 {
    position: fixed;
    width: 48px;
    height: 48px;
    border: 5px solid #FF1A75;
    margin-top: 20px;
    margin-bottom: 20px;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.hidden {
  display: none;
}

@media screen and (orientation: portrait) and (max-width:700px){
  .loader2 {
    top: 46%;
    left: 43%;
    transform: translate(-50%, -50%);
  }
}

@media screen and (orientation: landscape) and (max-width:700px){
  .loader2 {
    top: 47%;
    left: 46%;
    transform: translate(-50%, -50%);
  }
}

@media screen and (orientation: portrait) and (min-width:700px){
  .loader2 {
    top: 47%;
    left: 47%;
    transform: translate(-50%, -50%);
  }
}
 
@media screen and (orientation: landscape) and (min-width:700px){
  .loader2 {
    top: 47%;
    left: 47%;
    transform: translate(-50%, -50%);
  }
}

.styled-input {
  padding: 8px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(main),
::view-transition-new(main) {
  animation-duration: 0.8s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: both;
  transform-origin: center center;
}

::view-transition-old(main) {
  animation-name: fade-out;
}

::view-transition-new(main) {
  animation-name: grow-from-center;
}

@keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes grow-from-center {
  from {
    transform: scale(0);
    opacity: 0;
    border-radius: 20px;
    filter: blur(10px);
  }
  to {
    transform: scale(1);
    opacity: 1;
    border-radius: 0;
    filter: blur(0);
  }
}
