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

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

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

#video-section {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 77dvw;
	gap: 20px;
}

#video-principal{
	width: 100%;
  	border-radius: 10px;
	/*
    width: 1280px;
    height: 720px;
    object-fit: contain;
    z-index: -1;
    */
}

.options_bar {
	display: flex;
  	flex-direction: column;
  	align-items: center;
  	gap: 10px;
}

#reel-up-btn,
#reel-down-btn,
#like-btn,
#short-btn {
  	width: 40px;
  	height: 40px;
  	border-radius: 50%;
  	background-color: #4B5165;
  	border: none;
  	cursor: pointer;
  	display: flex;
  	justify-content: center;
  	align-items: center;
}

#reel-up-btn:hover,
#reel-down-btn:hover,
#like-btn:hover,
#short-btn:hover {
  	background-color: #5f6368;
}

.bottom-left {
    position: absolute;
    display: flex;
    align-items: center;
    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: 112px;
    bottom:32px;
}
  
.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: 10px;
    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:12px;
}

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

#progressThumb {
    position: absolute;
    top: 50%;
    left: 0;
    width: 16px;
    height: 16px;
    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-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) {
	#video-section {
		width: 95dvw;
	}

  	.reproductor {
    	width: 100dvw;
    	height: 100dvh;
    	overflow: hidden;
    	background: black;
    	position: relative;
  	}

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

  	#video-principal {
    	object-fit: contain;
    	position: relative;
    	touch-action: none;
    	pointer-events: auto; /* recibe gestos */
    	z-index: 0; 
  	}

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

  	/* 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;
  	}

  	.options_bar {
    	position: absolute;
    	right: 15px;
    	z-index: 20;                 
    	pointer-events: auto;        
  	}

  	.ul-links {
    	overflow-x: auto;
    	overflow-y: auto;
    	white-space: nowrap;
  	}

    .bottom-left.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    }
    .bottom-left img {
        display: block; /* elimina el desnivel del baseline */
    }
}

  
@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;
}

.modal-overlay-like {
  	display:none;
  	position:fixed;
  	top:0; 
  	left:0; 
  	right:0; 
  	bottom:0;
  	background:rgba(0,0,0,0.5); 
  	justify-content:center; 
  	align-items:center; 
  	height:100vh; 
  	z-index: 9999;
}

.modal-content-like {
  	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: 400px;
  	min-height: 100px;
  	width: 90%;
  	max-height: 80vh; 
  	overflow-y: auto;
  	padding-bottom: 3rem;
}

.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;
}

#cancelBtn,
.close-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 2.5rem;
    color: white;
    position: absolute;
    top: 10px;
    right: 10px;
  }

#cancelBtn::before,
.close-btn::before {
  	font-family: "bootstrap-icons";
  	content: "\F62A"; 
  	display: inline-block;
}

#cancelBtn:hover,
.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;
  position: absolute;
  z-index: 999;
  text-indent: -9999em;
  overflow: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%);
  }

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

.loader.hidden {
  display: none;
}

@media screen and (orientation: portrait) and (max-width:700px){
  .loader {
    width: 80px;
    height: 80px;
    top: 45%;
    left: 40%;
  }
}

@media screen and (orientation: portrait) and (min-width:700px){
  .loader {
    width: 100px;
    height: 100px;
    top: 45%;
    left: 44%;
  }
}

.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);
  }
}

.status-wrapper {
    position: fixed;       /* fixed mejor que absolute, así ocupa toda la pantalla */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000; 
}

.status-container {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 90%;
    min-height: 200px;
    max-height: 80vh;
    max-width: 675px;
    padding: 50px;
    background-color: #040714;
    border-radius: 32px;
}

#loginBtn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: white;
}

#loginBtn:hover {
  color: #CCFF00; 
  transition: color 0.2s;
}
