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

body {
    font-family: 'Cal Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #121212;
    color: #ffffff;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -20%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(29, 185, 84, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: float 20s ease-in-out infinite;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(30, 215, 96, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
    animation: float 25s ease-in-out infinite reverse;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

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

.header h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #1DB954, #1ed760);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header p {
    font-size: 1.2rem;
    color: #b3b3b3;
}

.upload-section {
    background: rgba(40, 40, 40, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 2px dashed #404040;
    transition: all 0.3s ease;
}

.upload-section:hover {
    border-color: #1DB954;
    background: rgba(29, 185, 84, 0.1);
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #ffffff;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid #404040;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: rgba(40, 40, 40, 0.8);
    color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1DB954;
    background: rgba(29, 185, 84, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    background: #1DB954;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    background: #1ed760;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #404040;
}

.tab {
    padding: 1rem 2rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #b3b3b3;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab.active {
    color: #1DB954;
    border-bottom-color: #1DB954;
}

.tab:hover {
    color: #1DB954;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.image-upload-group {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.image-preview {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: rgba(40, 40, 40, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #404040;
    font-size: 0.8rem;
    color: #b3b3b3;
    text-align: center;
    overflow: hidden;
    flex-shrink: 0;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.image-upload-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.image-upload-input {
    display: none;
}

.image-upload-btn {
    background: rgba(40, 40, 40, 0.8);
    color: #ffffff;
    border: 2px solid #404040;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.image-upload-btn:hover {
    border-color: #1DB954;
    background: rgba(29, 185, 84, 0.1);
}

.playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.playlist-card {
    background: rgba(40, 40, 40, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #404040;
    position: relative;
}

.playlist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(29, 185, 84, 0.2);
    border-color: #1DB954;
    background: rgba(29, 185, 84, 0.1);
}

.playlist-card.clickable {
    cursor: pointer;
}

.delete-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #dc3545;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.playlist-card:hover .delete-btn {
    opacity: 1;
}

.delete-btn:hover {
    background: #c82333;
}

.playlist-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.playlist-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1DB954, #1ed760);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
}

.playlist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.playlist-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #ffffff;
}

.playlist-info .creator {
    color: #b3b3b3;
    font-size: 0.9rem;
}

.playlist-description {
    color: #b3b3b3;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.playlist-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #404040;
}

.playlist-date {
    color: #888;
    font-size: 0.85rem;
}

.spotify-logo {
    width: 64px;
    height: 32px;
    background: linear-gradient(135deg, #1DB954, #1ed760);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(29, 185, 84, 0.3);
}

.spotify-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(29, 185, 84, 0.4);
    background: linear-gradient(135deg, #1ed760, #22e566);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #b3b3b3;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.error-message {
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .upload-section {
        padding: 1.5rem;
    }
    
    .playlists-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}