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

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #1a1a2e;
  color: #eee;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  text-align: center;
  padding: 2rem;
  max-width: 800px;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #00d9ff;
}

p {
  color: #888;
  margin-bottom: 2rem;
}

.controls {
  margin: 2rem 0;
}

button {
  background: #00d9ff;
  color: #1a1a2e;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
}

button:hover {
  background: #00b8d9;
}

button:disabled {
  background: #444;
  cursor: not-allowed;
}

#session-info {
  background: #2a2a4e;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

#session-info code {
  font-family: monospace;
  color: #00d9ff;
  font-size: 0.9rem;
}

#video-container {
  margin-top: 2rem;
}

#local-video {
  width: 100%;
  max-width: 640px;
  border-radius: 8px;
  background: #000;
}

.hidden {
  display: none;
}

.quality-settings {
  background: #2a2a4e;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  text-align: left;
}

.quality-settings h3 {
  color: #00d9ff;
  margin-bottom: 1rem;
  text-align: center;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.setting-row:last-child {
  margin-bottom: 0;
}

.setting-row label {
  color: #ccc;
  font-size: 0.95rem;
}

.setting-row select {
  background: #1a1a2e;
  color: #eee;
  border: 1px solid #444;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  min-width: 160px;
  cursor: pointer;
}

.setting-row select:hover {
  border-color: #00d9ff;
}

.setting-row select:focus {
  outline: none;
  border-color: #00d9ff;
}

#watch-link-container {
  background: #1a3a1a;
  border: 1px solid #00ff88;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}

#watch-link-container .watch-link {
  margin: 0;
  color: #eee;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

#watch-link-container a {
  color: #00ff88;
  word-break: break-all;
}

#watch-link-container button {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  background: #00ff88;
  color: #1a1a2e;
}
