.discover-page {
    padding: 0;
    background: var(--bg-color);
    min-height: 100vh;
    color: var(--font-color);
    overflow-y: auto;
}

.section-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: var(--font-color) !important;
}

.section-header p {
    font-size: 0.95rem;
    opacity: 0.6;
    margin: 0;
    font-weight: 300;
    color: var(--font-color-secondary) !important;
}

.discover-header {
    padding: 1rem 2rem 1rem;
    text-align: left;
    background: transparent;
    border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
    max-width: none;
    margin: 0;
    width: 100%;
}

/* Reduce top padding on mobile devices */
@media (max-width: 768px) {
    .discover-header {
        padding: 0.25rem 1rem 0.75rem !important;
        max-width: none !important;
    }
    
    .discover-header h1 {
        font-size: 2rem !important;
        margin: 0 0 0.25rem 0 !important;
    }
    
    .discover-header p {
        font-size: 1rem;
        margin: 0;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .discover-header {
        padding-top: 0.25rem;
    }
}

/* CACHE REFRESH v2.1 - Force CSS reload */
.discover-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--font-color) !important;
}

.discover-header p {
    font-size: 1.1rem;
    opacity: 0.7;
    margin: 0;
    font-weight: 300;
    color: var(--font-color-secondary) !important;
}

.discovery-sections {
    padding: 0 2rem 1.5rem;
    max-width: none;
    margin: 0;
    width: 100%;
}

.discovery-section {
    margin-bottom: 2.5rem;
    background: transparent;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
    padding-bottom: 1.5rem;
}

.section-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: var(--font-color) !important;
}

.section-header h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin: 0 0 0.25rem 0;
    color: var(--font-color);
}

.section-header p {
    font-size: 0.95rem;
    opacity: 0.6;
    margin: 0;
    font-weight: 300;
    color: var(--font-color-secondary);
}

.see-more-button {
    background: transparent;
    color: var(--brand-color);
    border: 1px solid var(--brand-color);
    border-radius: 16px;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
    display: inline-block;
    text-transform: none;
}

.see-more-button:hover {
    background: var(--brand-color);
    color: white;
    transform: none;
    box-shadow: none;
}

.see-more-button:active {
    transform: translateY(0);
}

.genres-container {
    margin-top: 2rem;
}

.genre-section {
    margin-bottom: 2rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
    padding-bottom: 1.5rem;
}

.genre-section .section-header {
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.error-section {
    padding: 2rem;
    text-align: left;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 8px;
    margin: 0 0 2rem 0;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.error-message {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fca5a5;
    margin-bottom: 1rem;
}

.error-section p {
    opacity: 0.8;
    margin: 0;
}

.empty-state {
    padding: 3rem 2rem;
    text-align: left;
    background: transparent;
    border-radius: 0;
    margin: 0 0 2rem 0;
    border: none;
    border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--font-color) !important;
}

.empty-state p {
    opacity: 0.6;
    margin: 0;
    font-size: 1rem;
    color: var(--font-color-secondary) !important;
}

/* Responsive Design */
@media (min-width: 769px) {
    .discover-header {
        padding: 1.5rem 2rem;
        max-width: none;
        width: 100%;
    }
    
    .discover-header h1 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
    
    .discovery-sections {
        padding: 0 2rem 2rem;
        max-width: none;
        width: 100%;
    }
    
    .discovery-section {
        margin-bottom: 3rem;
        padding-bottom: 2rem;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
        align-items: center;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
        margin-bottom: 0.25rem;
    }
    
    .section-header h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .discover-header {
        padding: 1rem !important;
        max-width: none !important;
    }
    
    .discover-header h1 {
        font-size: 2rem !important;
    }
    
    .discovery-sections {
        padding: 0 1rem 1rem !important;
        max-width: none !important;
    }
    
    .discovery-section {
        padding: 0;
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .section-header h3 {
        font-size: 1.1rem;
    }
}

/* Theme variables will automatically handle dark/light mode */

/* Animation for smooth loading */
.discovery-section {
    animation: fadeInLeft 0.4s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Stagger animation for genre sections */
.genre-section:nth-child(1) { animation-delay: 0.1s; }
.genre-section:nth-child(2) { animation-delay: 0.2s; }
.genre-section:nth-child(3) { animation-delay: 0.3s; }
.genre-section:nth-child(4) { animation-delay: 0.4s; }
.genre-section:nth-child(5) { animation-delay: 0.5s; }
.genre-section:nth-child(6) { animation-delay: 0.6s; }

/* Genres Overview Grid */
.genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0 0 2rem 0;
    margin: 0 0 2rem 0;
}

.genre-card {
    background: var(--surface-color, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.genre-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--brand-color);
    background: var(--bg-color-tertiary);
}

.genre-card:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

.genre-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--font-color);
    line-height: 1.3;
}

.genre-track-count {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
    color: var(--font-color-secondary);
    font-weight: 400;
}

/* Genres Overview Container - Vertical Layout */
.genres-overview-container {
    padding: 0;
    margin: 0;
}

.genre-overview-section {
    margin-bottom: 3rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
    padding-bottom: 2rem;
}

.genre-overview-section:last-child {
    border-bottom: none;
    margin-bottom: 1rem;
}

.genre-overview-section .section-header {
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
}

.genre-overview-section .section-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    color: var(--font-color);
}

/* Mobile optimizations for genres grid */
@media (max-width: 768px) {
    .genres-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 0.5rem;
        padding: 0 1rem 2rem 1rem;
        margin: 0 0 2rem 0;
    }
    
    .genre-card {
        padding: 0.75rem;
    }
    
    .genre-title {
        font-size: 1rem;
        color: var(--font-color);
        font-weight: 700;
    }
    
    .genre-track-count {
        font-size: 0.8rem;
        color: var(--font-color-secondary);
        opacity: 0.9;
    }

    .genres-overview-container {
        padding: 0;
    }

    .genre-overview-section {
        margin-bottom: 2.5rem;
        padding-bottom: 1.5rem;
    }

    .genre-overview-section .section-header h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .genres-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 0.3rem;
        padding: 0 0.5rem 2rem 0.5rem;
        margin: 0 0 2rem 0;
    }
    
    .genre-card {
        padding: 0.5rem;
    }
    
    .genre-title {
        font-size: 0.85rem;
        color: var(--font-color);
        font-weight: 700;
    }
    
    .genre-track-count {
        font-size: 0.7rem;
        color: var(--font-color-secondary);
        opacity: 1;
    }

    .genre-overview-section {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }

    .genre-overview-section .section-header h3 {
        font-size: 1.2rem;
    }
}
