body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: #fff;
}

h1 {
  color: #ffeb3b;
  text-align: center;
  margin-top: 32px;
  letter-spacing: 2px;
  text-shadow: 2px 2px 8px #222;
}

form, #qr-container, #rosco-team, #chat, #timerDisplay, #controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 16px auto;
}

button {
  background: #4caf50;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 1.1em;
  margin: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px #2224;
  transition: background 0.2s;
}

button:hover {
  background: #388e3c;
}

#rosco-team {
  margin-top: 24px;
  margin-bottom: 24px;
  background: rgba(255,255,255,0.07);
  border-radius: 24px;
  padding: 16px 0;
  box-shadow: 0 2px 16px #2223;
}

#rosco-team span {
  margin: 2px;
  padding: 10px 14px;
  border-radius: 50%;
  display: inline-block;
  font-weight: bold;
  font-size: 1.1em;
  color: #222;
  box-shadow: 0 2px 8px #2224;
  border: 2px solid #fff3;
  transition: background 0.3s, transform 0.2s;
  cursor: pointer;
  font-size: 1.3em;
  font-family: 'Segoe UI', Arial, sans-serif;
  letter-spacing: 1px;
}

#rosco-team span.active {
  border: 3px solid #ffeb3b;
  box-shadow: 0 0 16px #ffeb3b99;
  z-index: 2;
}

#rosco-team span.correct {
  background: #4caf50 !important;
  color: #fff;
  animation: bounce 0.4s;
}

#rosco-team span.wrong {
  background: #f44336 !important;
  color: #fff;
  animation: shake 0.4s;
}

#rosco-team span.pass {
  background: #ffeb3b !important;
  color: #222;
  animation: pulse 0.4s;
}

/* Feedback de turno activo en el rosco del equipo */
#rosco-team.active-turn span {
  animation: glowTurn 1.2s infinite alternate;
  box-shadow: 0 0 16px #ffeb3b, 0 0 32px #ffeb3b44;
}
@keyframes glowTurn {
  0% { box-shadow: 0 0 8px #ffeb3b, 0 0 16px #ffeb3b22; }
  100% { box-shadow: 0 0 24px #ffeb3b, 0 0 48px #ffeb3b66; }
}

/* Equipo 1 y 2 colores */
.team1 #rosco-team span.active, .team1 #rosco-team span {
  border-color: #00eaff;
}
.team2 #rosco-team span.active, .team2 #rosco-team span {
  border-color: #ff4081;
}
.team1 #rosco-team span.active {
  box-shadow: 0 0 16px #00eaff99;
}
.team2 #rosco-team span.active {
  box-shadow: 0 0 16px #ff408199;
}

#scoreboard {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin: 24px 0 0 0;
}
.score {
  background: #fff2;
  border-radius: 16px;
  padding: 12px 32px;
  font-size: 1.3em;
  color: #fff;
  box-shadow: 0 2px 8px #2223;
  text-align: center;
}

#turn-indicator {
  text-align: center;
  font-size: 1.2em;
  margin: 12px 0 0 0;
  color: #ffeb3b;
  text-shadow: 1px 1px 6px #222;
  letter-spacing: 1px;
}

#start-screen, #end-screen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30,60,114,0.97);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2em;
  letter-spacing: 2px;
  text-shadow: 2px 2px 8px #222;
  transition: opacity 0.5s;
}
#start-screen button, #end-screen button {
  margin-top: 32px;
  font-size: 1.2em;
  padding: 16px 40px;
  background: #ffeb3b;
  color: #222;
  border-radius: 12px;
  border: none;
  font-weight: bold;
  box-shadow: 0 2px 8px #2224;
  cursor: pointer;
}

/* --- TV Layout --- */
#tv-main {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  width: 100vw;
  height: calc(100vh - 140px); /* restar header, scoreboard e indicadores */
  box-sizing: border-box;
}
.tv-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  margin: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
#tv-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 1 340px;
  min-width: 300px;
  max-width: 420px;
  margin: 0 1vw;
}
#rosco-team1, #rosco-team2 {
  margin-top: 18px;
  width: 100%;
}
#video-team1, #video-team2 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

@keyframes bounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.3); }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 #ffeb3b66; }
  70% { box-shadow: 0 0 0 10px #ffeb3b00; }
  100% { box-shadow: 0 0 0 0 #ffeb3b00; }
}

canvas {
  display: block;
  margin: 32px auto;
  background: #fff2;
  border-radius: 50%;
  box-shadow: 0 4px 24px #2226;
}

video {
  border-radius: 16px;
  box-shadow: 0 2px 16px #2226;
  margin: 12px auto;
  display: block;
  max-width: 90vw;
  background: #000a;
}

#timerDisplay {
  font-size: 1.5em;
  color: #ffeb3b;
  margin: 16px auto;
  text-align: center;
  text-shadow: 1px 1px 6px #222;
}

#controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

#confetti {
  display: none !important;
  /*pointer-events: none;
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  z-index: 2000; */
}

/* --- HOST Layout --- */
#host-main {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 48px;
  margin: 32px auto 0 auto;
  width: 100vw;
  max-width: 1200px;
}
.host-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 18px 18px 24px 18px;
  box-shadow: 0 2px 16px #2223;
  min-width: 320px;
  max-width: 420px;
}
.host-team h2 {
  color: #ffeb3b;
  margin-bottom: 8px;
  text-shadow: 1px 1px 6px #222;
}
#host-video1, #host-video2 {
  width: 100%;
  max-width: 340px;
  min-height: 180px;
  aspect-ratio: 16/9;
  margin-bottom: 12px;
  background: #000a;
  border-radius: 14px;
  box-shadow: 0 2px 16px #2226;
}
.host-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}
.host-controls button {
  background: #4caf50;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 1em;
  margin: 4px;
  cursor: pointer;
  box-shadow: 0 2px 8px #2224;
  transition: background 0.2s;
}
.host-controls button.btn-wrong {
  background: #f44336;
}
.host-controls button.btn-pass {
  background: #ffeb3b;
  color: #222;
}
.host-controls button.btn-next {
  background: #2196f3;
}
.host-controls button.btn-resume {
  background: #ff9800;
  color: #fff;
}
.host-controls button.btn-undo {
  background: #9c27b0;
  color: #fff;
  position: relative;
  font-size: 0.95em;
}
.host-controls button.btn-undo:hover:not(:disabled) {
  background: #7b1fa2;
}
.host-controls button:disabled {
  background: #666 !important;
  color: #999 !important;
  cursor: not-allowed;
  opacity: 0.6;
}
#host-scoreboard {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 24px 0 0 0;
}
#host-turn-indicator {
  text-align: center;
  font-size: 1.2em;
  margin: 12px 0 0 0;
  color: #ffeb3b;
  text-shadow: 1px 1px 6px #222;
  letter-spacing: 1px;
}

/* Animación overlay de turno */
#turn-overlay {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  animation: fadeTurn 1.2s;
}
@keyframes fadeTurn {
  0% { opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* Overlay de inicio/fin de partida */
#game-overlay {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(30,60,114,0.97);
  color: #fff;
  font-size: 2.5em;
  letter-spacing: 2px;
  text-shadow: 2px 2px 8px #222;
  animation: fadeTurn 1.2s;
}
#game-overlay button {
  margin-top: 32px;
  font-size: 1.2em;
  padding: 16px 40px;
  background: #ffeb3b;
  color: #222;
  border-radius: 12px;
  border: none;
  font-weight: bold;
  box-shadow: 0 2px 8px #2224;
  cursor: pointer;
}

#team-video,
#rosco-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: auto;
}
#rosco-canvas {
  pointer-events: none;
  background: transparent;
  z-index: 2;
}

/* Estilos para panel de Host */
.host-team video {
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 12px 0;
  border: 2px solid #fff;
  border-radius: 12px;
  object-fit: cover;
}

/* Configuration page styling */
.config-header {
  text-align: center;
  margin: 32px 0;
}

.config-header h1 {
  color: #ffeb3b;
  margin-bottom: 8px;
  font-size: 2.5em;
  letter-spacing: 2px;
  text-shadow: 2px 2px 8px #222;
}

.config-header .subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 1.1em;
  margin: 0;
  letter-spacing: 1px;
}

.config-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.config-section {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
}

.config-section h2 {
  color: #ffeb3b;
  text-shadow: 1px 1px 4px #222;
  margin-bottom: 20px;
  font-size: 1.4em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.config-section h2 i {
  color: #00eaff;
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-group label {
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-group label i {
  color: #00eaff;
  width: 16px;
}

.control-group input {
  padding: 12px 16px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1em;
  transition: all 0.3s ease;
}

.control-group input:focus {
  background: rgba(255,255,255,0.2);
  border-color: #00eaff;
  outline: none;
  box-shadow: 0 0 20px rgba(0,234,255,0.3);
}

/* Profile controls styling */
.profile-section {
  background: linear-gradient(135deg, rgba(0,234,255,0.1) 0%, rgba(255,64,129,0.1) 100%);
}

.profile-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 20px;
  align-items: start;
}

.profile-selector,
.profile-input {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-selector label {
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  margin-bottom: 4px;
  margin-top: -9px; /* Subir el label y por tanto todo el selector */
}

.profile-input {
  padding-top: 24px; /* Reducir padding para mejor alineación */
}

.profile-selector select,
.profile-input input {
  padding: 12px 16px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1em;
  transition: all 0.3s ease;
}

.profile-selector select {
  background: rgba(255,255,255,0.15);
  cursor: pointer;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23ffffff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.profile-selector select option {
  background: #2a5298;
  color: #fff;
  padding: 8px;
  font-weight: 500;
}

.profile-selector select option:hover,
.profile-selector select option:focus,
.profile-selector select option:checked {
  background: #1e3c72;
  color: #ffeb3b;
}

/* Estilo especial para la opción placeholder */
.profile-selector select option[value=""] {
  color: rgba(255,255,255,0.7);
  font-style: italic;
}

.profile-selector select:focus,
.profile-input input:focus {
  background: rgba(255,255,255,0.25);
  border-color: #ff4081;
  outline: none;
  box-shadow: 0 0 20px rgba(255,64,129,0.3);
  color: #fff;
}

.profile-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-self: end;
  margin-top: 20px;
}

/* Notification container styles */
.notification-container {
  margin-top: 15px;
  min-height: 20px;
}

.notification {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 0.95em;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideIn 0.3s ease-out;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.notification.success {
  background: linear-gradient(135deg, #4caf50, #388e3c);
  color: white;
  border-left: 4px solid #2e7d32;
}

.notification.error {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: white;
  border-left: 4px solid #c62828;
}

.notification.info {
  background: linear-gradient(135deg, #2196f3, #1976d2);
  color: white;
  border-left: 4px solid #1565c0;
}

.notification i {
  font-size: 1.1em;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Button styles */
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-submit {
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, #2196f3, #1976d2);
  color: white;
  box-shadow: 0 4px 15px rgba(33,150,243,0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1976d2, #1565c0);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33,150,243,0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: white;
  box-shadow: 0 4px 15px rgba(255,152,0,0.3);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #f57c00, #e65100);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,152,0,0.4);
}

.btn-danger {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: white;
  box-shadow: 0 4px 15px rgba(244,67,54,0.3);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #d32f2f, #c62828);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244,67,54,0.4);
}

.btn-submit {
  background: linear-gradient(135deg, #ffeb3b, #ffc107);
  color: #222;
  font-size: 1.1em;
  padding: 16px 32px;
  box-shadow: 0 6px 20px rgba(255,235,59,0.4);
}

.btn-submit:hover {
  background: linear-gradient(135deg, #ffc107, #ff9800);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,235,59,0.5);
}

/* Teams container */
.teams-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 30px 0;
}

.team-section {
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 24px;
  border: 2px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.team-1 {
  border-left: 4px solid #00eaff;
  box-shadow: 0 4px 20px rgba(0,234,255,0.2);
}

.team-2 {
  border-left: 4px solid #ff4081;
  box-shadow: 0 4px 20px rgba(255,64,129,0.2);
}

.team-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.team-header h2 {
  margin: 0;
  font-size: 1.3em;
}

.team-color-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.team1-color {
  background: linear-gradient(135deg, #00eaff, #0099cc);
}

.team2-color {
  background: linear-gradient(135deg, #ff4081, #c2185b);
}

.letters-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
  gap: 12px;
}

.letters-inputs input {
  width: 100%;
  height: 45px;
  padding: 0;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  text-transform: uppercase;
  text-align: center;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.1em;
  font-weight: 600;
  transition: all 0.3s ease;
}

.team-1 .letters-inputs input:focus {
  background: rgba(0,234,255,0.2);
  border-color: #00eaff;
  outline: none;
  box-shadow: 0 0 15px rgba(0,234,255,0.3);
}

.team-2 .letters-inputs input:focus {
  background: rgba(255,64,129,0.2);
  border-color: #ff4081;
  outline: none;
  box-shadow: 0 0 15px rgba(255,64,129,0.3);
}

.submit-container {
  text-align: center;
  margin-top: 30px;
}

/* Responsive design */
@media (max-width: 768px) {
  .config-header h1 {
    font-size: 2em;
  }
  
  .controls-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-controls {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .profile-buttons {
    justify-content: center;
  }
  
  .teams-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .letters-inputs {
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 8px;
  }
  
  .btn-submit {
    width: 100%;
    padding: 14px 24px;
  }
}

@media (max-width: 1024px) {
  #rosco-team {
    padding: 8px 0;
    margin: 8px 0;
  }
  #rosco-team span {
    font-size: 1.1em;
    padding: 8px 10px;
  }
  #scoreboard {
    gap: 18px;
    font-size: 1em;
  }
  #chat, #chat-messages {
    max-width: 98vw;
    font-size: 1em;
    padding: 6px;
  }
  #timerDisplay {
    font-size: 1.1em;
  }
}

@media (min-width: 1600px) {
  #rosco-team span {
    font-size: 1.7em;
    padding: 18px 22px;
  }
  #scoreboard {
    gap: 80px;
    font-size: 1.5em;
  }
  #timerDisplay {
    font-size: 2.2em;
  }
  #chat, #chat-messages {
    font-size: 1.3em;
    max-width: 600px;
  }
}

/* Estilos para el sistema de diseños personalizados */
.design-section {
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  border: 1px solid rgba(255,255,255,0.1);
}

.design-controls {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  align-items: start;
}

.design-preview {
  background: rgba(0,0,0,0.3);
  border-radius: 12px;
  padding: 20px;
  min-height: 200px;
}

.design-preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.preview-item img {
  max-width: 150px;
  max-height: 100px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.color-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.color-preview .color-swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.design-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.color-controls h3, .overlay-controls h3 {
  color: #ffeb3b;
  margin: 0 0 12px 0;
  font-size: 1.1em;
  border-bottom: 1px solid rgba(255,235,59,0.3);
  padding-bottom: 8px;
}

.color-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.color-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.color-input-group label {
  font-size: 0.9em;
  color: #ccc;
}

.color-input-group input[type="color"] {
  width: 50px;
  height: 40px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: none;
}

.color-input-group input[type="text"] {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 8px;
  color: #fff;
  font-size: 0.9em;
}

.overlay-options {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.file-info {
  font-size: 0.8em;
  color: #aaa;
  margin-top: 4px;
}

.design-buttons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn-design, .btn-preview {
  background: linear-gradient(135deg, #9c27b0, #673ab7);
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-design:hover, .btn-preview:hover {
  background: linear-gradient(135deg, #7b1fa2, #512da8);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(156, 39, 176, 0.3);
}

#opacity-value {
  color: #ffeb3b;
  font-weight: bold;
  margin-left: 8px;
}

/* Logo overlay en interfaces */
.logo-overlay {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
  transition: all 0.3s ease;
}

.logo-overlay.bottom-right {
  bottom: 20px;
  right: 20px;
}

.logo-overlay.bottom-left {
  bottom: 20px;
  left: 20px;
}

.logo-overlay.top-right {
  top: 20px;
  right: 20px;
}

.logo-overlay.top-left {
  top: 20px;
  left: 20px;
}

.logo-overlay.small img {
  max-width: 80px;
  max-height: 60px;
}

.logo-overlay.medium img {
  max-width: 120px;
  max-height: 90px;
}

.logo-overlay.large img {
  max-width: 180px;
  max-height: 135px;
}

.logo-overlay img {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  background: rgba(255,255,255,0.1);
  padding: 8px;
}

/* Posición específica del logo en la interfaz del host */
.host-interface .logo-overlay.bottom-left {
  bottom: 80px;  /* Más abajo para evitar botones */
  left: 40px;    /* Más a la izquierda */
}

/* Asegurar que el logo no interfiera con los elementos del host */
.host-interface .logo-overlay {
  z-index: 999; /* Un poco menos que otros elementos críticos */
}

@media (max-width: 1200px) {
  #tv-main {
    flex-direction: column;
    align-items: stretch;
    padding: 0 1vw;
  }
  .tv-team, #tv-center {
    max-width: 100vw;
    min-width: 0;
    margin: 0 auto 18px auto;
  }
  #video-team1, #video-team2 {
    max-width: 98vw;
    min-height: 120px;
  }
}

@media (max-width: 1100px) {
  #host-main {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .host-team {
    max-width: 98vw;
    min-width: 0;
    margin: 0 auto 18px auto;
  }
  #host-video1, #host-video2 {
    max-width: 98vw;
    min-height: 120px;
  }
  
  .design-controls {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .color-grid {
    grid-template-columns: 1fr;
  }
  
  .overlay-options {
    grid-template-columns: 1fr;
  }
}
