* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #1a1a2e; color: #eee; min-height: 100vh; }
.container { max-width: 600px; margin: 0 auto; padding: 1.5rem 1rem; }
h1 { text-align: center; margin-bottom: 0.5rem; font-size: 1.6rem; }
h2 { font-size: 1.1rem; margin-bottom: 0.75rem; color: #ccc; }
.card { background: #16213e; border-radius: 12px; padding: 1.5rem; margin-bottom: 1rem; transition: box-shadow 0.2s; }
.room-badge { text-align: center; font-size: 0.9rem; color: #888; margin-bottom: 1rem; }
input[type="text"] { width: 100%; padding: 0.85rem 1rem; border: 1px solid #333; border-radius: 8px; background: #0f3460; color: #eee; font-size: 1rem; margin-bottom: 0.75rem; transition: border-color 0.2s; }
input[type="text"]:focus { outline: none; border-color: #e94560; }
input[type="text"]::placeholder { color: #556; }
button { width: 100%; padding: 0.85rem; border: none; border-radius: 8px; background: #e94560; color: #fff; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.15s, transform 0.1s; }
button:hover { background: #d63851; }
button:active { transform: scale(0.97); }
.now-playing-banner { background: linear-gradient(135deg, #e94560, #c62a4f); color: #fff; padding: 0.85rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-weight: 600; text-align: center; animation: fadeIn 0.3s; }
.queue-list { display: flex; flex-direction: column; gap: 0.5rem; min-height: 2rem; }
.queue-item { display: flex; align-items: center; gap: 0.5rem; background: #16213e; padding: 0.85rem 1rem; border-radius: 8px; transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s; }
.queue-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.3); transform: translateY(-1px); }
.queue-item.own { border-left: 3px solid #e94560; }
.queue-item .position { font-weight: 700; color: #888; min-width: 1.5rem; }
.queue-item .details { flex: 1; font-size: 0.9rem; }
.queue-item small { color: #888; }
.badge { background: #0f3460; color: #53d8fb; padding: 0.25rem 0.6rem; border-radius: 4px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.btn-withdraw { width: auto; padding: 0.35rem 0.7rem; background: #333; font-size: 0.8rem; border-radius: 4px; }
.btn-withdraw:hover { background: #e94560; }
.empty-state { color: #556; text-align: center; padding: 2rem 1rem; font-size: 0.95rem; }

/* Host-specific */
.host-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; max-width: 1200px; }
.host-queue { grid-column: 1; }
.host-player { grid-column: 2; position: sticky; top: 1rem; }
.host-controls { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.host-controls button { width: auto; padding: 0.6rem 1.2rem; }
.host-controls .ext-link { font-size: 0.75rem; color: #556; text-decoration: none; border: 1px solid #333; padding: 0.4rem 0.8rem; border-radius: 6px; margin-left: auto; transition: color 0.2s, border-color 0.2s; }
.host-controls .ext-link:hover { color: #e94560; border-color: #e94560; }
.drag-handle { cursor: grab; color: #556; margin-right: 0.25rem; font-size: 1.1rem; }
.drag-handle:active { cursor: grabbing; }
.warning { color: #ffa500; font-size: 0.8rem; }
.skip-btn { background: #0f3460; }
.skip-btn:hover { background: #1a4080; }
.primary-btn { background: #e94560; }

@media (max-width: 768px) {
  .host-layout { grid-template-columns: 1fr; }
  .host-player { position: static; }
  .container { padding: 1rem 0.75rem; }
}

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