* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans', sans-serif;
  background: #000;
  color: #fff;
  min-height: 100vh;
}

#app {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 20px;
}

#dancefloor-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 15px;
  background: #111;
  border-radius: 8px;
}

#dancefloor-selector label {
  font-weight: 600;
}

#dancefloor-dropdown {
  padding: 8px 15px;
  background: #000;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  outline: none;
}

#dancefloor-dropdown option {
  background: #000;
  color: #fff;
}

.primary-btn.small {
  padding: 8px 20px;
  font-size: 0.9rem;
}

#user-count {
  color: #666;
  font-size: 0.9rem;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.description {
  color: #aaa;
  font-size: 1rem;
  margin-bottom: 20px;
}

#tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  transition: opacity 0.2s;
}

.tab-btn {
  background: transparent;
  color: #666;
  border: none;
  padding: 10px 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: #aaa;
}

.tab-btn.active {
  color: #fff;
  border-bottom-color: #fff;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

#add-song-container {
  text-align: center;
  margin-bottom: 20px;
}

.primary-btn {
  background: #fff;
  color: #000;
  border: none;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: transform 0.2s;
}

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

.secondary-btn {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  margin-left: 10px;
  transition: transform 0.2s;
}

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

#url-input-container {
  text-align: center;
  margin-bottom: 20px;
}

#spotify-url {
  width: 60%;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  border-radius: 25px;
  margin-right: 10px;
  outline: none;
}

#spotify-url::placeholder {
  color: #666;
}

.hidden {
  display: none;
}

#loading {
  text-align: center;
  margin: 30px 0;
}

.spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#now-playing-container {
  margin: 30px 0;
}

#now-playing-container h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

#now-playing iframe {
  width: 100%;
  border-radius: 12px;
}

#progress-container {
  width: 100%;
  height: 4px;
  background: #333;
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
}

#progress-bar {
  height: 100%;
  background: #fff;
  width: 0%;
  transition: width 1s linear;
}

#queue-container {
  margin-top: 40px;
}

#queue-container h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.queue-item {
  background: #111;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.queue-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #666;
  min-width: 30px;
}

.queue-info {
  flex: 1;
}

.queue-title {
  font-weight: 600;
  margin-bottom: 5px;
}

.queue-artist {
  color: #aaa;
  font-size: 0.9rem;
}

.queue-user {
  color: #666;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.queue-user img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

#queue-list:empty::after {
  content: "Queue is empty. Add a song to get the party started!";
  display: block;
  text-align: center;
  color: #666;
  padding: 20px;
}

#timer-display {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 10px;
  font-family: 'Space Mono', monospace;
  color: #fff;
}

#player-controls {
  text-align: center;
  margin: 15px 0;
}

.control-btn {
  background: #fff;
  color: #000;
  border: none;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s;
  margin: 0 5px;
}

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

#chat-controls {
  margin-bottom: 20px;
}

.toggle-container {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  justify-content: center;
}

.toggle-container input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.toggle-container span {
  font-size: 1rem;
}

#messages-container {
  background: #111;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  min-height: 400px;
  max-height: 500px;
  overflow-y: auto;
}

#messages-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.message-item {
  display: flex;
  gap: 10px;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.message-content {
  flex: 1;
}

.message-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 5px;
}

.message-username {
  font-weight: 600;
}

.message-timestamp {
  font-size: 0.85rem;
  color: #666;
}

.message-text {
  color: #ddd;
  line-height: 1.4;
}

#chat-input-container {
  text-align: center;
}

#chat-input {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  border-radius: 25px;
  outline: none;
}

#chat-input::placeholder {
  color: #666;
}

#messages-list:empty::after {
  content: "No messages yet. Start the conversation!";
  display: block;
  text-align: center;
  color: #666;
  padding: 40px 20px;
}

.admin-header {
  margin-bottom: 20px;
}

.admin-header h2 {
  font-size: 1.8rem;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.overlay-content {
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 30px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.overlay-content.small {
  max-width: 500px;
}

.overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.close-btn {
  background: transparent;
  color: #fff;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 40px;
  height: 40px;
}

.close-btn:hover {
  color: #aaa;
}

.flagged-user {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 15px;
}

.flagged-user summary {
  cursor: pointer;
  font-size: 1.1rem;
  margin-bottom: 10px;
  user-select: none;
}

.flagged-user summary:hover {
  color: #aaa;
}

.flagged-songs {
  margin-top: 15px;
  padding-left: 20px;
}

.flagged-song {
  margin-bottom: 15px;
}

.song-toggle {
  background: #222;
  color: #fff;
  border: 1px solid #444;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-size: 1rem;
  transition: background 0.2s;
}

.song-toggle:hover {
  background: #2a2a2a;
}

.song-content {
  margin-top: 10px;
  padding: 15px;
  background: #0a0a0a;
  border-radius: 6px;
}

.song-player {
  margin-bottom: 15px;
}

.transcript {
  margin-top: 15px;
}

.transcript h4 {
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #aaa;
}

.transcript pre {
  white-space: pre-wrap;
  color: #ccc;
  font-size: 0.85rem;
  line-height: 1.5;
  max-height: 200px;
  overflow-y: auto;
}

.admin-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.unban-btn, .perma-ban-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.unban-btn {
  background: #4CAF50;
  color: #fff;
}

.perma-ban-btn {
  background: #f44336;
  color: #fff;
}

.unban-btn:hover, .perma-ban-btn:hover {
  transform: scale(1.05);
}

.vote-skip-btn {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  margin-bottom: 15px;
  transition: transform 0.2s;
}

.vote-skip-btn:hover {
  transform: scale(1.05);
}

#skip-reasons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

.reason-btn {
  background: #222;
  color: #fff;
  border: 1px solid #444;
  padding: 15px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.reason-btn:hover {
  background: #333;
}

#content-warning-dialog ul {
  text-align: left;
  margin: 20px 0;
  padding-left: 30px;
}

#content-warning-dialog ul li {
  margin-bottom: 10px;
  line-height: 1.5;
}

#content-warning-dialog h3 {
  margin-bottom: 15px;
}