body, html {
  margin: 0; padding: 0; height: 100%; background: #222;
  color: #fff; font-family: Arial, sans-serif;
}
#video-container {
  width: 100%; height: calc(100% - 60px);
  display: flex; justify-content: center; align-items: center;
}
video { max-width: 100%; max-height: 100%; }

#users-panel {
  position: absolute; top: 10px; right: 10px;
  width: 200px; background: rgba(0,0,0,0.7);
}
#users-list .status-dot {
  display: inline-block; width: 10px; height: 10px;
  border-radius: 50%; margin-right: 8px;
}
#controls {
  position: absolute; bottom: 10px; left: 10px;
  display: flex; gap: 15px;
}
#controls i {
  cursor: pointer; color: #fff;
}
.modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8); display: none;
  justify-content: center; align-items: center;
}
.modal-content {
  background: #333; padding: 20px; border-radius: 8px;
  width: 300px; text-align: center;
}
.list-group-item { cursor: pointer; }
.list-group-item:hover { background: #444; }

/* Fixed chat panel height */
.fixed-chat {
  height: 24rem;  /* z.B. 384px */
  max-height: 24rem;
}

/* Ensure chat sub-elements don't expand panel */
#chat-panel {
  display: flex;
  flex-direction: column;
}
#chat-messages {
  flex: 1;
  overflow-y: auto;
}
#emoji-panel,
#chat-input-panel {
  flex-shrink: 0;
}
#toast { opacity: 0; }
#toast.opacity-100 { opacity: 1; }

/* Film-Auswahl Grid */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
}
.movie-grid img {
  width: 100%;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: transform 0.2s;
}
.movie-grid img:hover {
  transform: scale(1.05);
}

/* Paginierung */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}
.pagination button {
  margin: 0 0.25rem;
  padding: 0.5rem 0.75rem;
  background: #4b5563; /* gray-600 */
  border: none;
  border-radius: 0.375rem;
  color: #fff;
  cursor: pointer;
}
.pagination button.active {
  background: #6366f1; /* indigo-500 */
}

/* Sanfte Animation beim Laden */
#landing > * {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
  animation-delay: 0.3s;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
