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

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #14141f;
  --bg-card: #1a1a2e;
  --bg-input: #22223a;
  --text-primary: #e0e0e0;
  --text-secondary: #9999aa;
  --accent: #6c5ce7;
  --accent-hover: #7f70f0;
  --success: #2ecc71;
  --danger: #e74c3c;
  --danger-hover: #c0392b;
  --warning: #f39c12;
  --rexy: #4ecdc4;
  --border: #2a2a3e;
  --radius: 8px;
  --focus-ring: 2px solid var(--accent);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* Accessibility: skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  z-index: 100;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  top: 0;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Focus styles for keyboard navigation */
:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

/* Honeypot - hidden from humans */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 16px;
}

/* Header */
.header {
  text-align: center;
  padding: 30px 0 20px;
}

.header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 4px;
}

.genre {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 6px;
}

/* Rexy Hero Mascot */
.rexy-hero {
  margin-bottom: 12px;
}

.rexy-hero-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--rexy);
  box-shadow: 0 0 20px rgba(78, 205, 196, 0.3);
  object-fit: cover;
  display: inline-block;
}

/* Status */
.status-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--bg-card);
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.live {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse 2s infinite;
}

.status-dot.offline {
  background: #555;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

#status-text {
  font-weight: 600;
  font-size: 0.9rem;
}

.listener-count {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Now Playing */
.now-playing {
  text-align: center;
  padding: 10px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.now-playing-label {
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.now-playing-title {
  display: block;
  color: #fff;
  font-weight: 600;
  margin-top: 4px;
}

/* Player */
.player {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn:hover {
  background: var(--accent);
  color: #fff;
}

.play-btn.playing {
  background: var(--accent);
  color: #fff;
}

.volume-wrap {
  flex: 1;
}

input[type="range"] {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
}

/* Sound toggle */
.sound-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.sound-toggle:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.sound-toggle[aria-pressed="false"] {
  opacity: 0.5;
}

/* Donation */
.donate-section {
  text-align: center;
  margin-bottom: 16px;
}

.donate-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #3d95ce, #008cff);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.donate-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 140, 255, 0.3);
}

.donate-icon {
  font-size: 1.1rem;
  color: #ff6b6b;
}

/* Notify Section */
.notify-section {
  text-align: center;
  margin-bottom: 16px;
}

.notify-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.notify-btn:hover {
  border-color: var(--rexy);
  color: var(--rexy);
}

.notify-icon {
  font-size: 1.1rem;
}

/* Notify Modal */
.notify-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 16px;
}

.notify-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 420px;
  width: 100%;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.2s;
}

.notify-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 0;
  flex-shrink: 0;
}

.notify-modal-header h3 {
  font-size: 1.05rem;
  color: #fff;
}

.notify-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.notify-close:hover {
  color: var(--text-primary);
}

.notify-modal-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 8px 20px 0;
  margin: 0;
  flex-shrink: 0;
}

.notify-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 20px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.notify-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.notify-option-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.notify-option strong {
  color: #fff;
  display: block;
  margin-bottom: 2px;
  font-size: 0.85rem;
}

.notify-option p {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0;
}

.notify-option a {
  color: var(--accent);
  text-decoration: none;
  word-break: break-all;
}

.notify-option a:hover {
  text-decoration: underline;
}

.notify-topic {
  display: inline-block;
  background: var(--bg-input);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  color: var(--rexy);
  margin-top: 2px;
  word-break: break-all;
  max-width: 100%;
}

.notify-steps {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.5;
  padding-left: 18px;
  margin: 2px 0 0 0;
}

.notify-steps li {
  margin-bottom: 1px;
}

.notify-qr {
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.notify-qr p {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin: 0 0 6px;
}

.notify-qr canvas {
  display: inline-block;
  border-radius: 6px;
}

/* Ban Modal */
.ban-modal {
  max-width: 360px;
}

.ban-modal-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 8px 20px 0;
  margin: 0;
}

.ban-reason-label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 10px 20px 4px;
}

.ban-reason-input {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px;
  padding: 8px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.85rem;
}

.ban-reason-input:focus {
  outline: none;
  border-color: var(--accent);
}

.ban-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 12px 20px 16px;
}

.ban-modal-btn {
  padding: 6px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  cursor: pointer;
}

.ban-cancel-btn {
  background: var(--bg-input);
  color: var(--text-secondary);
}

.ban-cancel-btn:hover {
  color: var(--text-primary);
}

.ban-confirm-btn {
  background: #dc3545;
  border-color: #dc3545;
  color: #fff;
}

.ban-confirm-btn:hover {
  background: #c82333;
}

/* Chat Section */
.chat-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.chat-heading {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Rexy badge */
.rexy-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(78, 205, 196, 0.12);
  color: var(--rexy);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.rexy-icon {
  width: 20px;
  height: 20px;
}

/* Chat disabled */
.chat-disabled p {
  text-align: center;
  color: var(--text-secondary);
  padding: 30px 0;
}

/* Chat gate */
.chat-gate {
  max-width: 400px;
  margin: 0 auto;
}

.gate-error {
  background: rgba(231, 76, 60, 0.15);
  color: var(--danger);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.gate-field {
  margin-bottom: 12px;
}

.gate-field label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.field-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.gate-field input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
}

.gate-field input[type="text"]:focus {
  border-color: var(--accent);
}

.gate-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.gate-checkbox input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--accent);
  cursor: pointer;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.gate-checkbox label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.join-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.join-btn:hover {
  background: var(--accent-hover);
}

.join-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Active chat */
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

#chat-user-count {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.leave-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 4px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.8rem;
}

.leave-btn:hover {
  color: var(--danger);
  border-color: var(--danger);
}

/* User list */
.user-list-wrap {
  margin-bottom: 8px;
}

.toggle-users {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 2px 0;
}

.toggle-users:hover {
  text-decoration: underline;
}

.user-list {
  list-style: none;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 8px 12px;
  margin-top: 4px;
  max-height: 120px;
  overflow-y: auto;
}

.user-list li {
  font-size: 0.85rem;
  padding: 2px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.user-list .user-name {
  flex: 1;
}

.user-list .admin-tag {
  color: var(--warning);
  font-size: 0.75rem;
  font-weight: 600;
}

.user-list .mod-tag {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
}

.user-list .bot-tag {
  color: var(--rexy);
  font-size: 0.75rem;
  font-weight: 600;
}

/* User IP (admin only) */
.user-ip {
  font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, Consolas, monospace;
  font-size: 0.7rem;
  color: var(--text-secondary);
  opacity: 0.7;
  margin-left: 4px;
}

/* Action menu */
.user-action-wrap {
  position: relative;
}

.user-action-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.user-action-btn:hover {
  color: var(--text-primary);
}

.user-action-menu {
  position: absolute;
  right: 0;
  top: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 120px;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.user-action-menu[aria-hidden="true"] {
  display: none;
}

.menu-item {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.8rem;
  padding: 8px 12px;
  text-align: left;
  cursor: pointer;
}

.menu-item:hover,
.menu-item:focus-visible {
  background: var(--bg-input);
}

.menu-item-danger {
  color: var(--danger);
}

.menu-item-danger:hover,
.menu-item-danger:focus-visible {
  background: rgba(231, 76, 60, 0.15);
}

/* Messages */
.chat-messages {
  height: 300px;
  overflow-y: auto;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 8px 12px;
  margin-bottom: 8px;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.msg {
  padding: 4px 0;
  font-size: 0.9rem;
  animation: fadeIn 0.2s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg .msg-time {
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin-right: 6px;
}

.msg .msg-name {
  font-weight: 600;
  margin-right: 6px;
}

.msg .msg-name.admin {
  color: var(--warning);
}

.msg .msg-name.mod {
  color: var(--accent);
}

.msg .msg-name.bot {
  color: var(--rexy);
}

.msg .msg-avatar {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 2px;
}

.msg .msg-text {
  word-break: break-word;
}

.msg.system {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 0.8rem;
}

/* Chat links */
.chat-link {
  text-decoration: underline;
  word-break: break-all;
}

.chat-link.trusted {
  color: var(--accent);
}

.chat-link.trusted:hover {
  color: var(--accent-hover);
}

.chat-link.untrusted {
  color: var(--warning);
}

.chat-link.untrusted::before {
  content: "\26A0\FE0F ";
}

.chat-link.untrusted:hover {
  color: #e6a800;
}

/* Chat images */
.msg-image {
  display: block;
  max-width: 300px;
  max-height: 200px;
  border-radius: var(--radius);
  margin-top: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.msg-image:hover {
  opacity: 0.85;
}

/* Chat videos */
.msg-video {
  display: block;
  max-width: 300px;
  max-height: 200px;
  border-radius: var(--radius);
  margin-top: 4px;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 101;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Image upload button */
.image-upload-btn {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.2s;
  line-height: 1;
}

.image-upload-btn:hover {
  border-color: var(--accent);
}

/* Chat input */
.chat-input-wrap {
  display: flex;
  gap: 8px;
}

#chat-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
}

#chat-input:focus {
  border-color: var(--accent);
}

.send-btn {
  padding: 10px 18px;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.send-btn:hover {
  background: var(--accent-hover);
}

.chat-error {
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 4px;
}

/* Admin Panel */
.admin-panel {
  background: var(--bg-card);
  border: 1px solid var(--warning);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.admin-panel h3 {
  color: var(--warning);
  font-size: 1rem;
  margin-bottom: 8px;
}

.admin-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.85rem;
}

.admin-btn:hover {
  border-color: var(--warning);
  color: var(--warning);
}

.ban-list {
  list-style: none;
  margin-top: 8px;
  font-size: 0.85rem;
}

.ban-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}

.ban-list .ban-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ban-list .ban-reason {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 1px;
}

.ban-list .unban-btn {
  background: none;
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
}

.ban-list .unban-btn:hover {
  background: rgba(231, 76, 60, 0.15);
}

/* Poll */
#poll-container {
  margin-bottom: 8px;
}

.poll-card {
  background: var(--bg-secondary);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 12px;
}

.poll-card.poll-closed {
  border-color: var(--text-secondary);
  opacity: 0.75;
}

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

.poll-question {
  font-weight: 600;
  color: #fff;
  font-size: 0.9rem;
}

.poll-closed-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-input);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.poll-option {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 6px;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 0.85rem;
  text-align: left;
  overflow: hidden;
  transition: border-color 0.2s;
}

.poll-option:hover:not(:disabled) {
  border-color: var(--accent);
}

.poll-option:disabled {
  cursor: default;
}

.poll-option.poll-voted {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.poll-option-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(108, 92, 231, 0.15);
  border-radius: 6px 0 0 6px;
  transition: width 0.4s ease;
  pointer-events: none;
}

.poll-voted .poll-option-bar {
  background: rgba(108, 92, 231, 0.25);
}

.poll-option-text {
  position: relative;
  flex: 1;
  z-index: 1;
}

.poll-option-stats {
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-left: 8px;
  white-space: nowrap;
}

.poll-footer {
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Poll creation modal */
.poll-modal {
  max-width: 400px;
}

.poll-modal-body {
  padding: 12px 20px 16px;
}

.poll-label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-bottom: 4px;
  margin-top: 8px;
}

.poll-label:first-child {
  margin-top: 0;
}

.poll-input {
  display: block;
  width: 100%;
  padding: 8px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.poll-input:focus {
  outline: none;
  border-color: var(--accent);
}

.poll-add-option-btn {
  background: none;
  border: 1px dashed var(--border);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.8rem;
  width: 100%;
  margin-bottom: 8px;
}

.poll-add-option-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.poll-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 4px;
}

.poll-start-btn {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}

.poll-start-btn:hover {
  background: var(--accent-hover) !important;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer p {
  margin-bottom: 4px;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
  .container {
    padding: 12px 10px;
  }

  .header h1 {
    font-size: 1.4rem;
  }

  .rexy-hero-img {
    width: 90px;
    height: 90px;
  }

  .chat-messages {
    height: 250px;
  }

  .player-controls {
    gap: 12px;
  }

  .donate-link {
    font-size: 0.85rem;
    padding: 8px 16px;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .status-dot.live {
    animation: none;
  }

  .msg {
    animation: none;
  }

  .donate-link:hover {
    transform: none;
  }
}

/* High contrast mode support */
@media (forced-colors: active) {
  .status-dot {
    forced-color-adjust: none;
  }

  .play-btn {
    border: 2px solid ButtonText;
  }

  .sound-toggle {
    border: 1px solid ButtonText;
  }

  .rexy-hero-img {
    border-color: LinkText;
  }

  .msg .msg-name.admin,
  .msg .msg-name.mod,
  .msg .msg-name.bot {
    text-decoration: underline;
  }
}
