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

body {
    background: #1a1a2e;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    height: 100vh;
    overflow: hidden;
}

#app {
    display: flex;
    height: 100vh;
}

#main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

#player {
    flex: 1;
    background: #000;
    width: 100%;
    object-fit: contain;
}

#status-bar {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: #16213e;
    font-size: 13px;
    color: #a0a0a0;
}

#sidebar {
    width: 300px;
    display: flex;
    flex-direction: column;
    background: #16213e;
    border-left: 1px solid #0f3460;
}

#user-panel {
    padding: 12px;
    border-bottom: 1px solid #0f3460;
}

#user-panel h3 {
    font-size: 14px;
    color: #a0a0a0;
    margin-bottom: 8px;
}

#users {
    list-style: none;
    font-size: 14px;
}

#users li {
    padding: 4px 0;
}

#chat-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    font-size: 14px;
}

.chat-msg {
    margin-bottom: 6px;
    word-wrap: break-word;
}

.chat-user {
    font-weight: bold;
    color: #e94560;
}

.chat-event {
    margin-bottom: 6px;
    color: #666;
    font-style: italic;
    font-size: 13px;
}

#chat-input {
    padding: 10px 12px;
    background: #0f3460;
    border: none;
    border-top: 1px solid #1a1a2e;
    color: #e0e0e0;
    font-size: 14px;
    outline: none;
}

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

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

#overlay[hidden] {
    display: none;
}

#join-btn {
    padding: 16px 48px;
    font-size: 20px;
    background: #e94560;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

#join-btn:hover {
    background: #c73e54;
}
