.discover-page {
    padding: 0;
    background: var(--background-color, #ffffff);
    height: 100vh;
    color: var(--text-color, #000000);
    overflow: hidden;
}

.discover-header {
    padding: 1rem 1.5rem 1rem;
    text-align: center;
    background: var(--card-background, rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
}

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

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

.discover-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--text-color, #000000);
}

.discover-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 300;
}

.discovery-sections {
    padding: 0;
}

.discovery-section {
    margin: 0 1.5rem 3rem 1.5rem;
    background: var(--card-background, rgba(0, 0, 0, 0.05));
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
    box-shadow: 0 8px 32px var(--shadow-color, rgba(0, 0, 0, 0.1));
}

.section-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--text-color, #000000);
}

.section-header h3 {
    font-size: 1.4rem;
    font-weight: 500;
    margin: 0 0 0.5rem 0;
    color: var(--text-color, #000000);
}

.section-header p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin: 0;
    font-weight: 300;
}

.see-more-button {
    background: var(--primary-color, #007bff);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
    display: inline-block;
}

.see-more-button:hover {
    background: var(--primary-hover, #0056b3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

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

.genre-section {
    margin-bottom: 2rem;
    background: var(--card-background, rgba(0, 0, 0, 0.03));
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.05));
}

.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: center;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 12px;
    margin: 2rem 1.5rem;
    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: center;
    background: var(--card-background, rgba(0, 0, 0, 0.05));
    border-radius: 16px;
    margin: 2rem 1.5rem;
    border: 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(--text-color, #000000);
}

.empty-state p {
    opacity: 0.8;
    margin: 0;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .discover-header {
        padding: 1.5rem 1rem 0.5rem;
    }
    
    .discover-header h1 {
        font-size: 2rem;
    }
    
    .discovery-section {
        margin: 0 1rem 2rem 1rem;
        padding: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-header h3 {
        font-size: 1.2rem;
    }
}

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

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(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; }
/* Tabbed Discover Interface */
.discover-tabbed {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.discover-tabs {
    position: relative;
    z-index: 10;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: 0 1rem;
    flex-shrink: 0;
}

.tabs-container {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 0;
}

.tabs-container::-webkit-scrollbar {
    display: none;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    background: var(--bg-color-secondary);
    color: var(--font-color-secondary);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: fit-content;
}

.tab-button:hover {
    background: var(--bg-color-tertiary);
    color: var(--font-color);
}

.tab-button.active {
    background: var(--brand-color);
    color: white;
}

.tab-icon {
    font-size: 1rem;
}

.tab-label {
    font-size: 0.85rem;
}

.tab-content-container {
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 0;
}

.tab-content {
    max-width: 100%;
    overflow-y: visible;
    padding: 1rem;
}

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

.tab-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--font-color);
}

.tab-header p {
    font-size: 1rem;
    color: var(--font-color-secondary);
    margin: 0 0 1rem 0;
}

.tab-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
}

.tab-loading p {
    margin-top: 1rem;
    color: var(--font-color-secondary);
}

.tab-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
}

.tab-error h3 {
    color: var(--font-color);
    margin: 0 0 0.5rem 0;
}

.tab-error p {
    color: var(--font-color-secondary);
    margin: 0 0 1.5rem 0;
}

.retry-btn {
    padding: 0.75rem 1.5rem;
    background: var(--brand-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.retry-btn:hover {
    opacity: 0.9;
}

.tab-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
}

.tab-empty h3 {
    color: var(--font-color);
    margin: 0 0 0.5rem 0;
}

.tab-empty p {
    color: var(--font-color-secondary);
    margin: 0;
}

/* Enhanced See More styling */
.see-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-color);
    cursor: pointer;
    transition: opacity 0.2s ease;
    padding: 0.5rem;
    border-radius: 6px;
}

.see-more:hover {
    opacity: 0.8;
    background: var(--bg-color-secondary);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .discover-tabs {
        padding: 0 0.5rem;
    }
    
    .tabs-container {
        gap: 0.25rem;
        padding: 0.75rem 0;
    }
    
    .tab-button {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .tab-icon {
        font-size: 0.9rem;
    }
    
    .tab-label {
        font-size: 0.8rem;
    }
    
    .tab-content-container {
        padding: 0.5rem;
    }
    
    .tab-header h2 {
        font-size: 1.5rem;
    }
}