* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1DB954 0%, #191414 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Main Content */
main {
    flex: 1;
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* Input Section */
.input-section {
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

#spotifyUrl {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

#spotifyUrl:focus {
    outline: none;
    border-color: #1DB954;
    background: white;
    box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.1);
}

#extractBtn {
    padding: 1rem 2rem;
    background: #1DB954;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 140px;
}

#extractBtn:hover {
    background: #1ed760;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 185, 84, 0.3);
}

#extractBtn:active {
    transform: translateY(0);
}

#extractBtn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff40;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.example-links {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #1DB954;
}

.example-links p {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #555;
}

.example-links ul {
    list-style: none;
}

.example-links li {
    padding: 0.25rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #666;
}

/* Result Section */
.result-section {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.album-info {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.album-image {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.album-details {
    flex: 1;
}

.album-details h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

.album-details p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.download-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.download-btn, .copy-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn {
    background: #1DB954;
    color: white;
}

.download-btn:hover {
    background: #1ed760;
    transform: translateY(-1px);
}

.copy-btn {
    background: #f0f0f0;
    color: #333;
    border: 2px solid #e0e0e0;
}

.copy-btn:hover {
    background: #e0e0e0;
}

/* Error Section */
.error-section {
    animation: fadeIn 0.5s ease-in;
}

.error-message {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.error-message h3 {
    color: #c33;
    margin-bottom: 0.5rem;
}

.error-message p {
    color: #a33;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 2rem;
    color: white;
    opacity: 0.8;
}

footer a {
    color: #1DB954;
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 1.5rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .album-info {
        flex-direction: column;
        text-align: center;
    }
    
    .album-image {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }
    
    .download-options {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .album-image {
        width: 120px;
        height: 120px;
    }
    
    .download-options {
        flex-direction: column;
    }
    
    .download-btn, .copy-btn {
        width: 100%;
    }
}