:root {
    --primary-color: #000000;
    --secondary-color: #D4AF37; /* Gold - College Dropout/MBDTF era */
    --background-color: #ffffff;
    --text-color: #000000;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --accent-white: #F5F5F5;
    --dark-charcoal: #1A1A1A;
}

/* Dark mode styles */
body.dark-mode {
    --primary-color: #ffffff;
    --secondary-color: #D4AF37;
    --background-color: #1a1a1a;
    --text-color: #ffffff;
    --border-color: #333333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --accent-white: #2a2a2a;
    --dark-charcoal: #F5F5F5;
}

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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.screen {
    min-height: 100vh;
    display: none;
}

.screen.active {
    display: block;
}

/* Landing Screen */
#landing-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    position: relative;
}

/* Album color gradient bar */
.album-gradient-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(to right, 
        #8B4513 0%,     /* College Dropout - Brown */
        #D4AF37 6.25%,  /* Late Registration - Gold */
        #E91E63 12.5%,  /* Graduation - Pink */
        #F44336 18.75%, /* 808s - Red */
        #DC143C 25%,    /* MBDTF - Crimson */
        #FFD700 31.25%, /* Watch the Throne - Gold */
        #C0C0C0 37.5%,  /* Cruel Summer - Silver */
        #FF0000 43.75%, /* Yeezus - Red */
        #FF6F00 50%,    /* Pablo - Orange */
        #2196F3 56.25%, /* Ye - Blue */
        #FF1493 62.5%,  /* Kids See Ghosts - Pink */
        #0000CD 68.75%, /* Jesus Is King - Blue */
        #FF6B35 75%,    /* Donda - Orange */
        #8B008B 81.25%, /* Donda 2 - Magenta */
        #D2691E 87.5%,  /* Vultures 1 - Brown */
        #CD853F 93.75%, /* Vultures 2 - Peru */
        #000000 100%    /* End - Black */
    );
}

.app-title {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 3rem;
    margin-top: 2rem;
    color: var(--primary-color);
    text-transform: uppercase;
}

/* Quote section */
.quote-section {
    margin-bottom: 4rem;
}

.main-quote {
    font-size: 1.5rem;
    font-weight: 300;
    font-style: italic;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.quote-attribution {
    font-size: 0.875rem;
    color: #666;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* Instructions redesign */
.instructions {
    background: #f8f8f8;
    padding: 3rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #e0e0e0;
}

.intro-section {
    margin-bottom: 3rem;
}

.intro-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    letter-spacing: -0.01em;
    font-weight: 800;
}

.stats-line {
    font-size: 1rem;
    color: #666;
    letter-spacing: 0.05em;
}

.stat-number {
    color: var(--secondary-color);
    font-weight: 800;
    font-size: 1.1rem;
}

/* How section */
.how-section {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.step {
    flex: 1;
    display: flex;
    gap: 1rem;
    text-align: left;
}

.step-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #e0e0e0;
    line-height: 1;
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.step-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

.bottom-quote {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.bottom-quote p {
    font-size: 1.25rem;
    font-style: italic;
    color: #333;
    margin: 0;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--background-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1.5rem 3rem;
}

.btn-primary:hover {
    background-color: var(--text-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

#start-ranking {
    margin: 3rem auto;
    display: block;
}

.btn-hero {
    font-size: 1.5rem;
    padding: 1.75rem 4rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    background: var(--secondary-color);
    color: #000;
    border: none;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background: #FFD700;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 25px;
    background: #f0f0f0;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-small:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

/* Comparison Screen */
.comparison-header {
    text-align: center;
    margin-bottom: 3rem;
}

.comparison-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.motivational-message {
    font-size: 1.25rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-style: italic;
}

.comparison-count {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    margin: 0 auto;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--secondary-color);
    width: 0%;
    transition: width 0.3s ease;
}

.comparison-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.song-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
    transition: var(--transition);
}

.song-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.album-art-container {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.album-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.song-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.album-name {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.year {
    font-size: 1rem;
    color: #999;
    margin-bottom: 1.5rem;
}

.song-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.btn-choose {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

.btn-choose:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.vs-divider {
    font-size: 2.5rem;
    font-weight: 900;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
}

.comparison-footer {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#skip-comparison {
    margin-right: 0;
    order: 2;
}

#show-results {
    order: 1;
}

/* Results Screen */
#results-screen h1 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.results-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--secondary-color);
    font-style: italic;
    margin-bottom: 3rem;
    font-weight: 600;
}

#results-screen h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    margin-top: 4rem;
    color: var(--primary-color);
}

.results-list {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.result-item {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.result-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Result Actions Styling */
.result-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: auto;
    white-space: nowrap;
}

.result-actions .btn-small {
    margin: 0;
}

.rank-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--secondary-color);
    width: 60px;
    text-align: center;
}

.result-album-art {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    margin: 0 1rem;
}

.result-info {
    flex: 1;
    text-align: center;
}

.result-title,
.result-song-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    text-align: center;
}

.result-album {
    font-size: 1rem;
    color: #666;
    text-align: center;
}

.result-rating {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-left: auto;
}

/* Export Section */
.export-section {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    background: #f8f8f8;
    border-radius: 20px;
}

.export-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Share buttons moved to share.css */

.btn-share {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: white;
}

.share-twitter {
    background: #1DA1F2;
}

.share-twitter:hover {
    background: #1a8cd8;
}

.share-facebook {
    background: #4267B2;
}

.share-facebook:hover {
    background: #365899;
}

.share-whatsapp {
    background: #25D366;
}

.share-whatsapp:hover {
    background: #20b358;
}

.share-instagram {
    background: #E4405F;
}

.share-instagram:hover {
    background: #d13651;
}

.share-link {
    background: #666;
}

.share-link:hover {
    background: #555;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.overlay-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f0f0f0;
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

#overlay-message {
    font-size: 1.125rem;
    color: var(--text-color);
}

/* Success animation */
.success {
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% {
        background-color: white;
    }
    50% {
        background-color: #d4edda;
    }
    100% {
        background-color: white;
    }
}

/* Disabled state */
.disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
}

.disabled:hover {
    transform: none !important;
}

/* Continue prompt styles */
#continue-prompt {
    text-align: center;
    padding: 2rem;
    background: #f0f9ff;
    border: 2px solid #2563eb;
    border-radius: 16px;
    margin-bottom: 2rem;
}

#continue-prompt h3 {
    font-size: 1.5rem;
    color: #1e40af;
    margin-bottom: 1rem;
}

#comparisons-completed {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.continue-hint {
    color: #666;
    font-size: 0.9rem;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: #f8f8f8;
    border-radius: 20px;
    border: 2px solid #e0e0e0;
    flex-wrap: nowrap;
    align-items: center;
}

.btn-large {
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    min-width: 140px;
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary.btn-large {
    background: transparent;
    color: var(--text-color);
    border-color: var(--text-color);
}

.btn-secondary.btn-large:hover {
    background: var(--text-color);
    color: var(--background-color);
}

/* Ensure primary buttons with btn-large follow theme */
.btn.btn-primary.btn-large {
    background-color: var(--text-color) !important;
    color: var(--background-color) !important;
    border: 2px solid var(--text-color) !important;
}

.btn.btn-primary.btn-large:hover {
    background-color: var(--background-color) !important;
    border-color: var(--text-color) !important;
    color: var(--text-color) !important;
}

.btn-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.btn-label {
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* App Footer */
.app-footer {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    text-align: center;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.app-footer:hover {
    opacity: 1;
}

.app-footer p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.app-footer a {
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.app-footer a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .app-title {
        font-size: 3.5rem;
    }
    
    .main-quote {
        font-size: 1.25rem;
        padding: 0 1rem;
    }
    
    .instructions {
        padding: 2rem 1.5rem;
    }
    
    .intro-section h2 {
        font-size: 1.5rem;
    }
    
    .how-section {
        flex-direction: column;
        gap: 2rem;
    }
    
    .step {
        gap: 0.75rem;
    }
    
    .step-number {
        font-size: 2rem;
    }
    
    .comparison-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .song-card {
        max-width: 100%;
    }
    
    .vs-divider {
        display: none;
    }
    
    .download-buttons {
        flex-wrap: wrap;
    }
    
    .btn-large {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 150px;
    }
}

@media (max-width: 480px) {
    .app-title {
        font-size: 2.5rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .album-art-container {
        width: 150px;
        height: 150px;
    }
    
    .download-buttons {
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .btn-large {
        flex: 1 1 100%;
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Results page mobile layout */
    .result-item {
        flex-wrap: wrap;
        padding: 0.75rem;
        position: relative;
    }
    
    .rank-number {
        font-size: 1.5rem;
        width: 40px;
        flex-shrink: 0;
    }
    
    .result-album-art {
        width: 60px;
        height: 60px;
        margin: 0 0.75rem;
    }
    
    .result-info {
        flex: 1;
        min-width: 0;
        margin-right: 0;
    }
    
    .result-title {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 0.2rem;
        text-align: left;
    }
    
    .result-album {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
        text-align: left;
    }
    
    .result-actions {
        width: calc(100% - 40px - 60px - 1.5rem);
        margin-left: calc(40px + 60px + 1.5rem);
        margin-top: 0.5rem;
        padding: 0;
        justify-content: center;
    }
    
    .result-actions .btn-small {
        padding: 6px 14px;
        font-size: 0.75rem;
    }
}