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

:root {
    --primary: #ff6b9d;
    --primary-dark: #e91e63;
    --secondary: #7c4dff;
    --accent: #00e5ff;
    --success: #00e676;
    --warning: #ffab00;
    --danger: #ff1744;
    --bg-dark: #0a0a1a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
}

body {
    font-family: 'Fredoka', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(ellipse at top left, rgba(124, 77, 255, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(255, 107, 157, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at center, rgba(0, 229, 255, 0.1) 0%, transparent 70%);
}

/* Floating musical notes */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.note {
    position: absolute;
    font-size: 3rem;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.note-1 { top: 10%; left: 5%; animation-delay: 0s; color: var(--primary); }
.note-2 { top: 30%; right: 10%; animation-delay: -4s; color: var(--secondary); }
.note-3 { bottom: 20%; left: 15%; animation-delay: -8s; color: var(--accent); }
.note-4 { top: 60%; right: 20%; animation-delay: -12s; color: var(--primary); }
.note-5 { bottom: 40%; left: 40%; animation-delay: -16s; color: var(--secondary); }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-30px) rotate(10deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(30px) rotate(-10deg); }
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(255, 107, 157, 0.5);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Form styles */
.song-form {
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    gap: 0.75rem;
    background: var(--bg-card);
    padding: 0.75rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.form-group input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    color: var(--text);
    font-size: 1.1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px var(--primary);
}

.form-group button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 107, 157, 0.5);
}

.form-group button:active {
    transform: scale(0.98);
}

.form-group button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(0, 230, 118, 0.2);
    color: var(--success);
    border: 1px solid rgba(0, 230, 118, 0.3);
}

.form-message.error {
    display: block;
    background: rgba(255, 23, 68, 0.2);
    color: var(--danger);
    border: 1px solid rgba(255, 23, 68, 0.3);
}

/* Queue section */
.queue-section {
    background: var(--bg-card);
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.queue-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.song-queue {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.song-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    animation: slideIn 0.4s ease;
}

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

.song-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.song-number {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.song-name {
    flex: 1;
    font-size: 1.1rem;
    word-break: break-word;
}

.song-item.completed .song-name {
    text-decoration: line-through;
    opacity: 0.5;
}

.song-item.completed .song-number {
    background: linear-gradient(135deg, #4a4a4a, #2a2a2a);
}

.song-time {
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Submissions closed notice */
.submissions-closed {
    text-align: center;
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    background: rgba(255, 23, 68, 0.1);
    border: 1px solid rgba(255, 23, 68, 0.3);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

.submissions-closed .closed-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.submissions-closed p {
    color: var(--danger);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Empty queue */
.empty-queue {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.empty-queue p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Loading spinner */
.loading {
    display: flex;
    justify-content: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .form-group button {
        justify-content: center;
    }
    
    .song-item {
        padding: 0.85rem 1rem;
    }
    
    .song-number {
        width: 2rem;
        height: 2rem;
        font-size: 0.9rem;
    }
    
    .song-name {
        font-size: 1rem;
    }
}
