body { font-family: Arial, sans-serif; background: #000; padding: 10px; margin: 0; color: #f2f2f2; }
h2, h1 { color: #f2f2f2; }
.galeria { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 4px; }
.galeria img { width: 100%; border-radius: 4px; cursor: pointer; transition: transform 0.2s; }
.galeria img:hover { transform: scale(1.02); }
.video-viewer { display: none; flex-direction: column; align-items: center; position: relative; }
#search-container {
	  display: none;
	  flex-direction: column;
	  align-items: stretch;
	  position: relative; 
	}
	
.video-viewer iframe {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  border: none;
  z-index: 100;
  background-color: black;
}

.icon-btn {
  position: fixed;
  top: 20px;
  z-index: 1000;
  width: 40px;
  height: 40px;
  background-color: rgba(255,255,255,0.2);
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
}
.volver-btn { left: 10px; }
.share-btn { right: 10px; }
.search-btn { right: 10px; }
#g_id_onload, .g_id_signin { margin-top: 20px; }
#acceso-denegado { display: none; color: #ff6666; text-align: center; margin-top: 30px; font-size: 1.2rem; }

#search-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 6px;
  padding: 0 10px 20px;
  width: 100%;
  max-width: 600px;
  margin: auto;
}
#search-results img {
  width: 100%;
  border-radius: 4px;
}
@media (max-width: 600px) {
  body { padding: 5px; }
  .galeria { grid-template-columns: repeat(4, 1fr); gap: 2px; }
  .galeria img { border-radius: 2px; }
}
.icon-btn svg {
  width: 24px;
  height: 24px;
}

.search-bar input {
  flex: 1;
  font-size: 1rem;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.search-bar {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
}

.search-bar .volver-btn {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  flex-shrink: 0;
}

.search-bar .volver-btn button {
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-bar .volver-btn svg {
  width: 24px;
  height: 24px;
}

.input-wrap {
  flex: 1;
}

.input-wrap input {
  width: 100%;
  font-size: 1rem;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.nav-btn {
  opacity: 1;
  transition: opacity 0.5s ease;
  z-index: 1001;
}

#btnVolverViewer,
#btnVolverBuscador,
.share-btn,
.search-btn {
  z-index: 1002 !important;
}
