:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #8b5cf6;
    --background: #0f172a;
    --card-background: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --error-color: #ef4444;
    --success-color: #10b981;
    --border-radius: 16px;
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--background);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(99, 102, 241, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Error State */
.error {
    text-align: center;
    padding: 60px 20px;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.error h2 {
    color: var(--error-color);
    margin-bottom: 16px;
}

.error p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Song Card */
.song-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 32px;
    animation: fadeInUp 0.5s ease-out;
}

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

.album-art-container {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.album-art {
    width: 280px;
    height: 280px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.album-art:hover {
    transform: scale(1.02);
}

.song-info {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.song-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.song-artist {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.song-album {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Streaming Links */
.streaming-links h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.streaming-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.streaming-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.streaming-link .icon {
    font-size: 1.5rem;
    margin-right: 12px;
}

.streaming-link.spotify {
    background: rgba(30, 215, 96, 0.1);
    border-color: rgba(30, 215, 96, 0.3);
}

.streaming-link.spotify:hover {
    background: rgba(30, 215, 96, 0.2);
    border-color: #1ed760;
}

.streaming-link.apple-music {
    background: rgba(250, 55, 85, 0.1);
    border-color: rgba(250, 55, 85, 0.3);
}

.streaming-link.apple-music:hover {
    background: rgba(250, 55, 85, 0.2);
    border-color: #fa3755;
}

.streaming-link.youtube {
    background: rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.3);
}

.streaming-link.youtube:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff0000;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    margin-bottom: 32px;
    animation: fadeInUp 0.5s ease-out 0.2s both;
    position: relative;
    overflow: hidden;
}

.butler-mascot {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 20px;
    animation: float 3s ease-in-out infinite;
}

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

.cta-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: white;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    font-size: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cta-button.primary {
    background: white;
    color: var(--primary-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px 20px;
    margin-top: auto;
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

.footer-note {
    margin-top: 8px;
    font-size: 0.85rem;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 640px) {
    .container {
        padding: 16px;
    }

    header {
        padding-top: 20px;
        margin-bottom: 24px;
    }

    .logo h1 {
        font-size: 2rem;
    }

    .song-card {
        padding: 24px;
    }

    .album-art {
        width: 220px;
        height: 220px;
    }

    .song-title {
        font-size: 1.5rem;
    }

    .song-artist {
        font-size: 1.1rem;
    }

    .cta-section {
        padding: 24px;
    }

    .butler-mascot {
        width: 80px;
        height: 80px;
        margin-bottom: 16px;
    }

    .cta-content h3 {
        font-size: 1.25rem;
    }

    .logo-icon {
        width: 60px;
        height: 60px;
    }
}
