/* ── Variaveis Zoom-like ── */
:root {
  --bg-primary: #0b1319;
  --bg-secondary: #1a1a2e;
  --bg-card: #22223a;
  --bg-control: #2d2d44;
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0b0;
  --accent-blue: #2d8cff;
  --accent-green: #27c93f;
  --accent-red: #e01e5a;
  --accent-yellow: #ffd60a;
  --border-color: #3a3a52;
}

/* ── Base ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* ── Grid de videos ── */
#video-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 8px;
  height: calc(100vh - 80px);
  width: 100%;
  transition: all 0.3s ease;
  align-content: center;
  justify-content: center;
}

#video-grid.sidebar-open {
  width: calc(100% - 380px);
}

#video-grid.speaker-view {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.video-container {
  position: relative;
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  height: 100%;
  aspect-ratio: 4 / 3;
}

/* Paginacao */
#pagination-bar {
  position: fixed;
  bottom: 76px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 90;
  background: rgba(0,0,0,0.5);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  color: var(--text-secondary);
}

#pagination-bar button {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 8px;
  border-radius: 4px;
}

#pagination-bar button:hover {
  background: rgba(255,255,255,0.15);
}

#pagination-bar button:disabled {
  opacity: 0.3;
  cursor: default;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.video-container .video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border-radius: 8px;
  gap: 8px;
}

.video-container .avatar-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: white;
}

.video-container .participant-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 12px;
  background: rgba(0,0,0,0.6);
  padding: 2px 10px;
  border-radius: 4px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.video-container .participant-label .hand-icon {
  color: var(--accent-yellow);
  font-size: 14px;
}

/* Badge de host */
.video-container .participant-label .host-badge {
  background: var(--accent-yellow);
  color: #000;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 700;
  text-transform: uppercase;
}

.video-container .participant-label .cohost-badge {
  background: var(--accent-green);
  color: #000;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Card actions (host controls no video) */
.video-container .card-actions {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.2s;
  background: rgba(0,0,0,0.5);
  padding: 4px 6px;
  border-radius: 8px;
}

.video-container:hover .card-actions {
  opacity: 1;
}

.video-container .card-actions button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.15s;
  padding: 0;
}

.video-container .card-actions button:hover {
  background: rgba(255,255,255,0.15);
}

/* Indicador de audio muted */
.video-container .muted-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(224, 30, 90, 0.8);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Mao levantada (topo esquerdo do card) */
.video-container .hand-indicator {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 28px;
  z-index: 5;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.6));
  line-height: 1;
}

/* ── Speaker highlight ── */
.video-container.speaking {
  border: 2px solid var(--accent-green);
}

/* ── Carrossel (topo quando o proprio usuario esta em destaque) ── */
.carousel-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  overflow-x: auto;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
  pointer-events: auto;
}

.carousel-strip::-webkit-scrollbar {
  height: 4px;
}
.carousel-strip::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
}

.carousel-item {
  flex: 0 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px;
  border-radius: 8px;
  background: rgba(0,0,0,0.4);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.carousel-item:hover {
  background: rgba(255,255,255,0.15);
}

.carousel-item.hand-raised {
  border: 2px solid var(--accent-yellow);
}

.carousel-item.cam-on .carousel-avatar {
  background: var(--accent-green);
}

.carousel-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.carousel-name {
  font-size: 9px;
  color: var(--text-primary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 72px;
}

.carousel-status {
  display: flex;
  gap: 2px;
  font-size: 10px;
}

/* Video dentro do card do carrossel */
.carousel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  position: absolute;
  inset: 0;
}

/* ── Spotlight (destaque) ── */
#video-grid.spotlight-mode {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: 1fr !important;
  position: relative;
  align-content: stretch;
  justify-content: stretch;
}

/* 1 spotlight: altura preenche, largura proporcional 16:9, centralizado */
#video-grid.spotlight-mode .video-container.spotlight {
  grid-column: 1;
  grid-row: 1;
  height: 100%;
  width: auto;
  aspect-ratio: 16 / 9;
  max-width: none;
  justify-self: center;
  z-index: 2;
}

/* 2 spotlights: lado a lado (desktop/landscape), largura preenche, altura proporcional 16:9 */
#video-grid.spotlight-mode.spotlight-duo {
  grid-template-columns: 1fr 1fr !important;
  grid-template-rows: 1fr !important;
}

#video-grid.spotlight-mode.spotlight-duo .video-container.spotlight {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-width: none;
  align-self: center;
}

#video-grid.spotlight-mode.spotlight-duo .video-container.spotlight:first-child {
  grid-column: 1;
  grid-row: 1;
}

#video-grid.spotlight-mode.spotlight-duo .video-container.spotlight:last-child {
  grid-column: 2;
  grid-row: 1;
}

/* Mobile portrait: empilhado */
@media (max-width: 640px) and (orientation: portrait) {
  #video-grid.spotlight-mode.spotlight-duo {
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr 1fr !important;
  }
  #video-grid.spotlight-mode.spotlight-duo .video-container.spotlight {
    max-width: 100vw;
  }
  #video-grid.spotlight-mode.spotlight-duo .video-container.spotlight:first-child {
    grid-column: 1;
    grid-row: 1;
  }
  #video-grid.spotlight-mode.spotlight-duo .video-container.spotlight:last-child {
    grid-column: 1;
    grid-row: 2;
  }
}

/* Mobile landscape: lado a lado (ja cai no 1fr 1fr padrao) */

/* Mobile/tablet portrait */
@media (max-width: 1024px) and (orientation: portrait) {
  .video-container {
    max-width: 100%;
  }
}

/* ── Tela compartilhada (Overlay fullscreen + PiP, igual Zoom) ── */
#screen-share-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: right 0.3s ease;
}

#screen-share-overlay.sidebar-open {
  right: 380px;
}

#screen-share-overlay video {
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 8px;
}

#screen-share-overlay .screen-share-label {
  position: absolute;
  bottom: 80px;
  left: 16px;
  background: rgba(0,0,0,0.6);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  pointer-events: none;
}

/* PiP (Picture-in-Picture) do apresentador */
#screen-share-overlay .screen-share-pip {
  position: absolute;
  bottom: 90px;
  right: 16px;
  width: 180px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

#screen-share-overlay .screen-share-pip video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#screen-share-overlay .pip-label {
  position: absolute;
  bottom: 4px;
  left: 4px;
  font-size: 10px;
  background: rgba(0,0,0,0.7);
  color: var(--text-primary);
  padding: 1px 6px;
  border-radius: 3px;
  pointer-events: none;
}

/* Responsivo: PiP menor em mobile */
@media (max-width: 640px) {
  #screen-share-overlay .screen-share-pip {
    width: 120px;
    height: 80px;
    bottom: 80px;
    right: 8px;
  }
}

/* ── Barra de controles (igual Zoom) ── */
#controls-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  z-index: 100;
  gap: 6px;
}

.control-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--bg-control);
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  position: relative;
}

.control-btn:hover {
  background: #3d3d58;
}

.control-btn:active {
  transform: scale(0.92);
}

.control-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.control-btn.active {
  background: var(--accent-green);
}

.control-btn.danger {
  background: var(--accent-red);
  width: 56px;
  height: 48px;
  border-radius: 24px;
}

.control-btn.danger:hover {
  background: #ff2a6a;
}

.control-btn.off {
  background: var(--accent-red);
}

.control-btn .label {
  display: none;
}

/* ── Emoji reaction overlay ── */
.reaction-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  overflow: hidden;
}

.reaction-emoji {
  position: absolute;
  font-size: 40px;
  animation: floatUp 2s ease-out forwards;
}

@keyframes floatUp {
  0% { opacity: 1; transform: translateY(0) scale(0.5); }
  50% { opacity: 1; transform: translateY(-200px) scale(1.2); }
  100% { opacity: 0; transform: translateY(-400px) scale(0.8); }
}

/* ── Modal overlay (centralizado) ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay .modal-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  width: 100%;
  max-width: 320px;
  text-align: center;
}

/* ── Sidebar ── */
#sidebar {
  position: fixed;
  top: 0;
  right: -380px;
  width: 380px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  z-index: 80;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

#sidebar.open {
  right: 0;
}

#sidebar .sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

#sidebar .sidebar-header h3 {
  font-size: 16px;
  font-weight: 600;
}

#sidebar .sidebar-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
}

#sidebar .sidebar-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}

#sidebar .sidebar-tab.active {
  color: var(--accent-blue);
  border-bottom-color: var(--accent-blue);
}

#sidebar .sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

/* ── Participantes ── */
.participant-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  cursor: default;
  transition: background 0.2s;
}

.participant-item:hover {
  background: rgba(255,255,255,0.05);
}

.participant-item .p-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin-right: 10px;
  flex-shrink: 0;
}

.participant-item .p-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.participant-item .p-name {
  font-size: 14px;
}

.participant-item .p-status {
  display: flex;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 13px;
}

.participant-item .host-badge {
  background: var(--accent-yellow);
  color: #000;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 700;
}

.participant-item .cohost-badge {
  background: var(--accent-green);
  color: #000;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 700;
}

.participant-item .p-actions {
  display: flex;
  gap: 2px;
  opacity: 1;
}

.participant-item:hover .p-actions {
  opacity: 1;
}

.participant-item .p-actions button {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12px;
  padding: 2px 3px;
  border-radius: 4px;
  line-height: 1;
}

.participant-item .p-actions button:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}

.participant-item .host-controls {
  display: flex;
  gap: 2px;
}

.participant-item .host-controls button {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12px;
  padding: 2px 3px;
  border-radius: 4px;
  line-height: 1;
}

.participant-item .host-controls button:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}

/* ── Chat ── */
#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-msg {
  background: var(--bg-card);
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 85%;
}

.chat-msg.self {
  background: var(--accent-blue);
  align-self: flex-end;
}

.chat-msg .msg-user {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 2px;
}

.chat-msg.self .msg-user {
  color: rgba(255,255,255,0.8);
}

.chat-msg .msg-text {
  font-size: 13px;
  word-break: break-word;
}

.chat-msg .msg-time {
  font-size: 10px;
  color: var(--text-secondary);
  text-align: right;
  margin-top: 2px;
}

#chat-input-area {
  display: flex;
  padding: 12px 16px;
  gap: 8px;
  border-top: 1px solid var(--border-color);
}

#chat-input-area input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 8px 14px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
}

#chat-input-area input:focus {
  border-color: var(--accent-blue);
}

#chat-input-area button {
  background: var(--accent-blue);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#chat-input-area button:hover {
  background: #1a7ae6;
}

/* ── Lobby ── */
.lobby-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.lobby-card {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 480px;
  text-align: center;
}

.lobby-card h1 {
  font-size: 22px;
  margin-bottom: 4px;
}

.lobby-card .room-code {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

.lobby-preview {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}

.lobby-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lobby-preview .no-camera {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 40px;
}

.lobby-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.lobby-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s;
}

.lobby-btn.active {
  background: var(--accent-green);
  color: white;
}

.lobby-btn.off {
  background: var(--accent-red);
  color: white;
}

.lobby-name-input {
  width: 100%;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 14px;
  margin-bottom: 16px;
  outline: none;
}

.lobby-name-input:focus {
  border-color: var(--accent-blue);
}

.lobby-enter-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: var(--accent-blue);
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.lobby-enter-btn:hover {
  background: #1a7ae6;
}

.lobby-enter-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

.lobby-link-info {
  margin-top: 16px;
  padding: 10px;
  background: var(--bg-card);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  word-break: break-all;
}

.lobby-link-info .copy-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  margin-top: 6px;
}

.lobby-link-info .copy-btn:hover {
  background: var(--bg-control);
}

/* ── Home ── */
.home-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.home-card {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.home-card .logo {
  font-size: 48px;
  margin-bottom: 8px;
}

.home-card h1 {
  font-size: 24px;
  margin-bottom: 4px;
}

.home-card .subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 28px;
}

.home-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
  transition: background 0.2s;
}

.home-btn.primary {
  background: var(--accent-blue);
  color: white;
}

.home-btn.primary:hover {
  background: #1a7ae6;
}

.home-btn.secondary {
  background: var(--bg-control);
  color: var(--text-primary);
}

.home-btn.secondary:hover {
  background: #3d3d58;
}

.home-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.home-divider::before,
.home-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.home-input {
  width: 100%;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 14px;
  margin-bottom: 12px;
  outline: none;
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.home-input:focus {
  border-color: var(--accent-blue);
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 200;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  animation: toastIn 0.3s ease;
  display: none;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* ── Responsivo ── */
@media (max-width: 768px) {
  #video-grid {
    height: calc(100vh - 64px);
    padding: 4px;
    gap: 2px;
  }

  #video-grid.sidebar-open {
    width: 100%;
  }

  #sidebar {
    width: 100%;
    right: -100%;
  }

  #controls-bar {
    height: 60px;
    gap: 4px;
    padding: 0 8px;
  }

  .control-btn {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .control-btn.danger {
    width: 48px;
    height: 40px;
    border-radius: 20px;
  }

  .video-container {
    min-height: 80px;
  }

  .lobby-card {
    padding: 20px;
  }

  .home-card {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .control-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .control-btn.danger {
    width: 42px;
    height: 36px;
  }

  #controls-bar {
    gap: 2px;
  }
}
