* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  max-width: 100vw;
}
html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden !important;
  overflow-y: hidden;
  background: black;
  font-family: sans-serif;
  touch-action: pan-y;
}
.video-wrapper {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: black;
}
.background-blur {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  filter: blur(20px) brightness(0.5);
  object-fit: cover;
}
video {
  position: relative;
  z-index: 1;
  aspect-ratio: 9 / 16;
  height: 100%;
  object-fit: cover;
}
#video0 { z-index: 6; }
#video1 { z-index: 5; display: none; }
#video2 { z-index: 4; display: none; }
#video3 { z-index: 3; display: none; }
#video4 { z-index: 2; display: none; }
#video5 {
  z-index: 1;
  display: none;
  opacity: 0;
  transition: opacity 1s ease;
}
#unsupported-browser {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: black;
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  font-size: 18px;
  line-height: 1.6;
  color: white;
}
#start-fallback {
  position: absolute;
  top: 0; left: 0;
  z-index: 10000;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  color: white;
  font-size: 20px;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  text-align: center;
  padding: 20px;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.continue-button {
  position: absolute;
  bottom: 15px;
  right: 15px;
  z-index: 11;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid white;
  color: white;
  cursor: pointer;
  font-size: 12px;
  display: none;
  border-radius: 12px;
  animation: pulse 1.5s infinite;
}
.continue-image {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  margin: 0 auto;
  display: block;
  max-width: 100%;
}
.buttons-container {
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1s ease;
  z-index: 11;
  padding: 0 20px;
  overflow-x: auto;
  max-width: 100%;
}
.buttons-container.enabled {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.button-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
}
.button-img {
  width: 67px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.button-img:hover { opacity: 0.8; }
.inactive-link { pointer-events: none; }

@media (max-width: 480px) {
  .button-img { width: 57px; }
}
@media (min-width: 481px) and (max-width: 768px) {
  .button-img { width: 67px; }
}
@media (min-width: 769px) {
  .button-img { width: 77px; }
}
#main-footer {
  width: 100%;
  background: black;
  color: white;
  text-align: center;
  padding: 10px 8px;
  font-size: 8px;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 12;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}
#main-footer a {
  color: #b81304;
  text-decoration: none;
}
#main-footer a:hover {
  text-decoration: underline;
}
#main-footer a.inactive-link {
  pointer-events: none;
}
#bottom-bar:not(.enabled),
#main-footer:not(.enabled) {
  pointer-events: none;
}
#video1-thumbnail {
  position: relative;
  z-index: 6; /* encima del video1 */
  aspect-ratio: 9 / 16;
  height: 100%;
  width: auto;
  object-fit: cover;
  display: none;
}
#video0-thumbnail {
  position: absolute;
  z-index: 7; /* encima del video0 */
  aspect-ratio: 9 / 16;
  height: 100%;
  width: auto;
  object-fit: cover;
  display: block; /* inicialmente visible */
}