body {
  background-color: black;
  color: grey;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 5px;
  
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
/* tamaño un poco más grande para texto normal */
p, em, strong {
  font-size: 1.2em;
}

@font-face {
  font-family: 'Press Start 2P';
  src: url('PressStart2P.ttf') format('truetype');
}

.ventana-creditos-text {
  font-family: 'Press Start 2P', monospace;
}

.ventana-creditos-text .habbo-chat-title {
  font-size: 1.5em;       /* título mantiene tamaño */
  margin-bottom: 15px;
  display: block;
}

.ventana-creditos-text .habbo-chat-content {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.85em;      /* un poco más chico para que entre */
  line-height: 1.4;
  overflow: visible;
}

.ventana-creditos-text .habbo-chat-content {
  font-size: 0.7em;  /* más pequeño para que entre bien */
}

/* === LINKS ESTILO "IMPACTANTE" === */

a {
  display: inline-block;
  text-decoration: none;
  color: #b5aa82;
  font-size: inherit;
  font-family: inherit;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
  text-decoration: none;
}

/* Estilo y animación del efecto */
a span {
  display: inline-block;
  transition: transform 0.2s, color 0.3s;
}

a:hover span {
  animation: glitchChar 0.1s infinite alternate;
}

@keyframes glitchChar {
  0%   { transform: translate(0,0);       color: #5c6a6f; }
  20%  { transform: translate(-1px,1px);  color: #80815f; }
  40%  { transform: translate(1px,-1px);  color: #5d6b58; }
  60%  { transform: translate(-1px,-1px); color: #c5c5b8; }
  80%  { transform: translate(1px,1px);   color: #7a6b4d; }
  100% { transform: translate(0,0);       color: #8a8f8d; }
}

/* === ESTILO "NEÓN" === */
.neon {
  color: #c5c5b8;
  text-shadow: 0 0 5px #5c6a6f, 0 0 10px #5c6a6f;
  transition: all 0.3s ease;
}

.neon:hover {
  color: #c5c5b8;
  text-shadow: 
    0 0 8px #80815f,
    0 0 16px #5d6b58,
    0 0 32px #7a6b4d,
    0 0 48px #8a8f8d;
  transform: scale(1.05);
}

/* === CUADRO 2X1 CENTRADO === */
.cuadro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  gap: 10px;
  width: 80vw;
  height: 80vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: transparent;
  border: none;
  margin-top: -20px; /* SUTIL: mueve TODO un poco hacia arriba */
}

.celda-inferior {
  grid-column: 1 / -1;
  background: rgba(0, 0, 0, 0.8); /* Ajusta la transparencia aquí */
  border-radius: 12px;
  box-sizing: border-box;
}

.celda {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0 solid #23282B;
  color: #c5c5b8;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.7); /* Ajusta la transparencia */
  border-radius: 12px; /* Bordes redondeados */
  box-shadow: 0 0 10px #4f4f4f;
}

.celda-kekos {
  display: block;
  align-items: initial;
  justify-content: initial;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.5); /* Negro con 50% de transparencia */
  border-radius: 12px;
}

#kekoFrame {
  transition: opacity 0.5s;
  display: block;
  border: none;
}


/* ========== REPRODUCTOR DE RADIO CLAUDE 2.0 ========== */

.radio-player {
  background: transparent;
  border-radius: 12px;
  padding: 50px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 30px;
  position: relative;
}

/* 🌟 Borde metálico con box-shadow 🌟 */
.radio-player::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 12px;
  z-index: -1;
  box-shadow: 
    /* Borde metálico multicapa */
    0 0 0 1px #a0a0a033,
    0 0 0 2px #d4d4d480,
    0 0 0 3px #ffffff;
  pointer-events: none;
}



/* Botón de play/pause (imagen de radio) */
.btn-radio-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    height: 180px; /* Ajusta según necesites */
    width: auto;
    transition: transform 0.3s;
}

.btn-radio-toggle:hover {
    transform: scale(1.05);
}

.btn-radio-toggle:active {
    transform: scale(0.95);
}

.btn-radio-toggle img {
    height: 100%;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Animación de vibración cada 5 segundos */
@keyframes vibrar {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-2px); }
    20% { transform: translateX(2px); }
    30% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    50% { transform: translateX(0); }
}

.btn-radio-toggle.reproduciendo img {
    animation: vibrar 0.5s ease-in-out;
    animation-iteration-count: 1;
}

/* Contenedor de controles (parte derecha) */
.player-controls-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100px; /* Altura fija para evitar desplazamiento */
}

/* Texto de estado */
.station-status {
    color: #333;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    margin: 0;
    padding: 5px;
}

/* Controles inferiores */
.player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Botón de mute */
.btn-mute {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    transition: transform 0.3s;
}

.btn-mute:hover {
    transform: scale(1.1);
}

.btn-mute:active {
    transform: scale(0.9);
}

.btn-mute img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Control de volumen */
.volume-control {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Slider de volumen */
.volume-slider {
    flex: 1;
    height: 8px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #4a4a4a;
    border-radius: 4px;
    position: relative;
}

/* Thumb del slider (Chrome, Safari, Edge) */
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    background-image: url(reproductor_iconos/spider_icon.png); /* REEMPLAZA CON TU RUTA */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    transition: transform 0.3s;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.volume-slider::-webkit-slider-thumb:active {
  transform: scale(0.9);
}

/* Thumb del slider (Firefox) */
.volume-slider::-moz-range-thumb {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    background-image: url(reproductor_iconos/spider_icon.png); /* REEMPLAZA CON TU RUTA */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
}

/* Porcentaje de volumen */
.volume-value {
    color: #333;
    font-size: 20px;
    font-weight: 500;
    min-width: 45px;
    text-align: right;
}

/* Loading indicator */
.loading {
    display: none;
    color: #667eea;
    font-size: 12px;
    text-align: center;
    margin-top: 5px;
}

.loading.active {
    display: block;
}

/* Ondas de sonido DESACTIVADO*/
.equalizer {
    display: none;
    position: relative;
    width: 60px;
    height: 40px;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.equalizer.active {
    display: flex;
}

.sound-wave {
    width: 3px;
    height: 8px;
    background: #666666;
    border-radius: 2px;
    opacity: 0;
    animation: wave-fade 1.5s ease-in-out infinite;
}

.sound-wave:nth-child(1) { animation-delay: 0s; height: 6px; }
.sound-wave:nth-child(2) { animation-delay: 0.2s; height: 10px; }
.sound-wave:nth-child(3) { animation-delay: 0.4s; height: 14px; }
.sound-wave:nth-child(4) { animation-delay: 0.6s; height: 10px; }
.sound-wave:nth-child(5) { animation-delay: 0.8s; height: 6px; }

@keyframes wave-fade {
    0%, 100% { opacity: 0; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* Responsive: en pantallas pequeñas */
@media (max-width: 480px) {
    .radio-player {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-radio-toggle {
        height: 100px;
    }
}

/* Ajustes para pantallas de PC */
@media (min-width: 768px) {
    .radio-player {
        justify-content: center; /* Centra todo el contenido */
        gap: 40px; /* Más espacio entre la radio y los controles */
    }
    
    .volume-control {
        justify-content: center; /* Centra mute + slider + porcentaje como unidad */
    }
    
    .volume-slider {
        max-width: 400px; /* Ajusta este valor según prefieras */
    }
}

/* === FONDO ANIMADO - OPCIÓN 2: Rotado Horizontal === */
body {
  position: relative;
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: url('bobba02.png'); /* REEMPLAZA CON TU RUTA */
  background-size: 120px 120px;
  background-repeat: repeat;
  z-index: -1;
  transform: rotate(45deg);
  animation: movimientoHorizontal 20s linear infinite;
}

@keyframes movimientoHorizontal {
  0% { transform: rotate(45deg) translateX(0); }
  100% { transform: rotate(45deg) translateX(-120px); }
}

/* Desactivar animación en dispositivos móviles */
@media (max-width: 768px) {
  body::before {
    animation: none !important;
  }
}

/* Ajuste para móviles */
@media (max-width: 768px) {
  .cuadro {
    margin-top: -30px; /* Un poco más arriba en móviles */
  }
}

/* === MENÚ LATERAL DESPLEGABLE === */
/* Pestaña visible (ícono para abrir) */
.menu-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 60px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 12px 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s;
  box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.5);
}

.menu-tab:hover {
  background: rgba(0, 0, 0, 0.95);
  width: 55px;
}

.menu-tab img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* Panel del menú (más estrecho) */
.menu-panel {
  position: fixed;
  right: -120px; /* Más estrecho, se oculta menos fuera */
  top: 50%;
  transform: translateY(-50%);
  width: 100px; /* Más estrecho */
  background: rgba(0, 0, 0, 0.9);
  border-radius: 12px 0 0 12px;
  padding: 20px 10px; /* Padding reducido */
  z-index: 999;
  transition: right 0.4s ease;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.7);
  max-height: 80vh;
  overflow: visible;
}

.menu-panel.open {
  right: 0;
}

/* Título del menú (oculto) */
.menu-title {
  display: none; /* Oculto */
  color: #c5c5b8;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

/* Opciones del menú (solo íconos) */
.menu-option {
  display: flex;
  align-items: center;
  justify-content: center; /* Centrado */
  padding: 12px;
  margin-bottom: 15px; /* Más espacio entre botones */
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid transparent;
  position: relative; /* Para el tooltip */
}

.menu-option:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #7f786d;
  transform: scale(1.1); /* Efecto de agrandado */
}

.menu-option img {
  width: 45px; /* Íconos más grandes */
  height: 45px;
  object-fit: contain;
}

/* Texto oculto (tooltip) */
.menu-option-text {
  position: fixed; /* CAMBIO CLAVE: de absolute a fixed */
  background: rgba(0, 0, 0, 0.95);
  color: #c5c5b8;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 99999;
}

/* Mostrar tooltip al hover */
.menu-option:hover .menu-option-text {
  visibility: visible;
  opacity: 1;
}

/* Flecha del tooltip */
.menu-option-text::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid rgba(0, 0, 0, 0.95);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}



/* === MODO CLARO === */
body.light-mode {
  background-color: white;
  color: #333333;
}

body.light-mode::before {
  background-image: url('bobba03.png'); /* Tu fondo claro */
}

/* Textos del reproductor */
body.light-mode .station-status {
  color: #333333;
}

body.light-mode .volume-value {
  color: #333333;
}

/* Celdas */
body.light-mode .celda,
body.light-mode .celda-kekos,
body.light-mode .celda-inferior {
  background: rgba(255, 255, 255, 0.7);
  color: #333333;
}

/* Nombre del keko */
body.light-mode #nombreKeko {
  color: #333333;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* Input de Habbo */
body.light-mode #habboInput {
  background: rgba(255, 255, 255, 0.8);
  border-color: #999999;
  color: #333333;
}

body.light-mode #habboInput::placeholder {
  color: #666666;
}

/* Borde metálico del reproductor en modo claro */
body.light-mode .radio-player::before {
  box-shadow: 
    0 0 0 1px #d4d4d4,
    0 0 0 2px #ffffff,
    0 0 0 3px #e0e0e0,
    0 0 0 4px #f0f0f0,
    0 0 0 5px #cccccc,
    0 0 15px 5px rgba(0, 0, 0, 0.1),
    0 0 25px 8px rgba(0, 0, 0, 0.05);
}

/* === VENTANA DE CRÉDITOS ESTILO HABBO === */
.habbo-chat-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.habbo-chat-overlay.active {
  display: flex;
}

.habbo-chat-window {
  width: 400px;
  max-width: 90%;
  background: #c5c3bb;
  border: 3px solid #3d3d3d;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  font-family: 'Volter Goldfish', 'Courier New', monospace;
  color: #000000;
}

.habbo-chat-header {
  background: #3d3d3d;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 5px 5px 0 0;
}

.habbo-chat-title {
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  text-transform: none;
  letter-spacing: 0;
}

.habbo-chat-close {
  background: #d4351c;
  color: white;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  font-weight: bold;
}

.habbo-chat-close:hover {
  background: #b82e17;
}

.habbo-chat-content {
  padding: 15px;
  max-height: 300px;
  overflow-y: auto;
  background: #d9d7cf;
  font-size: 11px;
  line-height: 1.6;
}

.habbo-chat-message {
  margin-bottom: 10px;
}

.habbo-chat-username {
  font-weight: bold;
  color: #000000;
}

.habbo-chat-text {
  color: #000000;
  word-wrap: break-word;
}