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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

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

h1 {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.section.hidden {
    display: none;
}

h2, h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.room-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.action-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.action-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.action-card h3 {
    color: #667eea;
    margin-bottom: 10px;
}

.action-card p {
    color: #6c757d;
    margin-bottom: 15px;
}

input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn.secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.room-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.badge {
    background: #28a745;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.badge.host {
    background: #ffc107;
    color: #212529;
}

.badge.joiner {
    background: #17a2b8;
}

.controls-section {
    margin: 20px 0;
}

.control-buttons, .playback-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.track-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
}

.track-placeholder {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
}

.track-details {
    display: flex;
    align-items: center;
    gap: 15px;
}

.track-cover {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.track-text h4 {
    margin-bottom: 5px;
    color: #2c3e50;
}

.track-artist {
    color: #6c757d;
    font-size: 14px;
}

.participants {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.participant {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.participant.host {
    border-left-color: #ffc107;
    background: #fff3cd;
}

.participant-name {
    font-weight: 600;
}

.share-link {
    display: flex;
    gap: 10px;
}

.share-link input {
    flex: 1;
    margin-bottom: 0;
}

#auth-section {
    text-align: center;
}

#login-btn {
    font-size: 18px;
    padding: 15px 30px;
}

#sync-status {
    background: #fff3cd;
    border: 2px solid #ffeaa7;
}

#sync-message {
    margin-bottom: 15px;
    font-weight: 600;
    color: #856404;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    .room-actions {
        grid-template-columns: 1fr;
    }

    .room-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .control-buttons, .playback-buttons {
        justify-content: center;
    }
}
