/* Tablet: el panel de regalos no cabe cómodamente, se oculta */
@media (max-width: 1023px) {
  .gifts-panel {
    display: none;
  }
}

/* Móvil: sidebar pasa a menú off-canvas, y video/chat se muestran por pestañas */
@media (max-width: 767px) {
  .sidebar-toggle {
    display: inline-block;
  }

  .sidebar {
    position: fixed;
    top: 58px;
    left: 0;
    bottom: 0;
    z-index: 20;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.4);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 58px 0 0 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 15;
  }

  .sidebar-backdrop[hidden] {
    display: none;
  }

  .mobile-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
  }

  .tab-btn {
    flex: 1;
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: none;
    padding: 0.7rem;
    font-weight: 600;
    border-bottom: 2px solid transparent;
  }

  .tab-btn.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent-purple);
  }

  .room-body {
    padding: 0.7rem;
  }

  .video-panel,
  .chat-panel {
    display: none;
  }

  .video-panel.active,
  .chat-panel.active {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

