/* CSS Customizado - Painel RBN Gospel Hits 2026 */

:root {
    --bg-dark: #07070b;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.07);
    --border-glass-hover: rgba(255, 255, 255, 0.15);
    
    --primary: #8b5cf6;
    --primary-glow: rgba(139, 92, 246, 0.3);
    --secondary: #0ea5e9;
    --secondary-glow: rgba(14, 165, 233, 0.3);
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    
    --gold: #fbbf24;
    --silver: #cbd5e1;
    --bronze: #d97706;
    
    --font-sans: 'Outfit', sans-serif;
    
    --sidebar-width: 280px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset de estilos */
* {
    margin: 0;
    padding: 0;
    box-index: border-box;
    box-sizing: border-box;
    outline: none;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Fundo Animado de Neon */
.neon-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #0c0b11, #040406);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    animation: blob-float 15s infinite alternate ease-in-out;
}

.blob-purple {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--primary);
    animation-duration: 20s;
}

.blob-blue {
    bottom: -10%;
    right: -10%;
    width: 45vw;
    height: 45vw;
    background: var(--secondary);
    animation-duration: 16s;
}

.blob-indigo {
    top: 50%;
    left: 40%;
    width: 30vw;
    height: 30vw;
    background: #6366f1;
    animation-duration: 22s;
    animation-delay: -5s;
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(80px, -60px) scale(1.1);
    }
    100% {
        transform: translate(-50px, 40px) scale(0.9);
    }
}

/* Layout Principal */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Estilo Glassmorphism */
.sidebar-header {
    width: var(--sidebar-width);
    background: rgba(10, 10, 16, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-right: 1px solid var(--border-glass);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 10;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 3rem;
}

.logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, #fff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

@keyframes pulse-music {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.genre-nav-container {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 2rem;
    padding-right: 0.2rem;
    width: 100%;
}

.genre-nav-container::-webkit-scrollbar {
    width: 4px;
}
.genre-nav-container::-webkit-scrollbar-track {
    background: transparent;
}
.genre-nav-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
.genre-nav-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.nav-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
    padding-left: 0.5rem;
    text-transform: uppercase;
}

.genre-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.genre-tab {
    margin-bottom: 0.4rem;
}

.genre-tab a {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.8rem 1.1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 12px;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.genre-tab:hover a {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.genre-tab.active a {
    color: #fff;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(14, 165, 233, 0.05));
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: inset 0 0 10px rgba(139, 92, 246, 0.1);
}

.genre-tab a i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    transition: var(--transition-smooth);
}

.genre-tab.active a i {
    color: var(--primary);
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

.genre-tab:hover a i {
    transform: scale(1.1);
}

/* Card de Resumo */
.stats-sidebar-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.2rem;
    margin-bottom: 2rem;
}

.stats-sidebar-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stat-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
}

#stat-top-artist {
    color: var(--primary);
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-bottom: 1px dashed transparent;
}

#stat-top-artist:hover {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

.sidebar-footer {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

/* Área de Conteúdo Principal */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem 3rem;
    min-height: 100vh;
}

/* Top Bar (Barra de Busca e Filtros) */
.top-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    background: rgba(10, 10, 16, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-glass);
    padding: 1.25rem 1.75rem;
    border-radius: 20px;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
}

.search-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.search-box input:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.clear-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.clear-btn:hover {
    color: #fff;
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.filter-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.filter-wrapper label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.filter-wrapper label i {
    margin-right: 3px;
}

.filter-wrapper select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 0.6rem 1.2rem;
    color: #fff;
    font-family: var(--font-sans);
    font-index: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-wrapper select:hover, 
.filter-wrapper select:focus {
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.06);
}

/* Botão de Alternância de Lançamentos */
.btn-releases-toggle {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 0.6rem 1.2rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-releases-toggle:hover {
    border-color: var(--secondary);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.btn-releases-toggle.active {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(168, 85, 247, 0.3); }
    50% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.6); }
}

.filter-wrapper select option {
    background-color: #0c0b11;
    color: #fff;
}

/* Seção Hero Banner */
.hero-section {
    position: relative;
    border-radius: 24px;
    padding: 3.5rem 3rem;
    margin-bottom: 3rem;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.3) 0%, rgba(30, 64, 175, 0.2) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.15), transparent 60%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-content .badge {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.2);
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Seção de Músicas */
.songs-section {
    margin-bottom: 3rem;
}

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

.section-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.results-count {
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
}

/* Grid de Cards */
.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Card Individual (Glassmorphism + Animado) */
.song-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.song-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-glass-hover);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(139, 92, 246, 0.1);
}

/* Imagem e Overlay do Play */
.thumbnail-container {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.thumbnail-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.song-card:hover .thumbnail-container img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
    cursor: pointer;
    z-index: 2;
}

.song-card:hover .play-overlay {
    opacity: 1;
}

.play-btn-circle {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: var(--transition-smooth);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.song-card:hover .play-btn-circle {
    transform: scale(1);
}

.play-btn-circle i {
    font-size: 1.3rem;
    color: #fff;
    margin-left: 4px; /* Ajuste para centralizar o triângulo do Play */
}

.duration-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    z-index: 1;
}

/* Crachá do Ranking */
.ranking-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Badge especial para novidades sem ranking numérico */
.ranking-badge.badge-new {
    width: auto;
    height: auto;
    padding: 6px 10px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-color: rgba(168, 85, 247, 0.4);
    color: #fff;
    box-shadow: 0 4px 10px rgba(168, 85, 247, 0.2);
}

/* Cores especiais para o Top 3 */
.song-card[data-pos="1"] .ranking-badge {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    border-color: rgba(251, 191, 36, 0.4);
    color: #07070b;
}

.song-card[data-pos="2"] .ranking-badge {
    background: linear-gradient(135deg, #e2e8f0, #94a3b8);
    border-color: rgba(226, 232, 240, 0.4);
    color: #07070b;
}

.song-card[data-pos="3"] .ranking-badge {
    background: linear-gradient(135deg, #b45309, #78350f);
    border-color: rgba(180, 83, 9, 0.4);
}

/* Detalhes do Card */
.card-details {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-details h3 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.6rem;
}

.artist-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.artist-name i {
    color: var(--secondary);
    font-size: 0.75rem;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.8rem;
    margin-top: auto;
}

.views-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.views-count i {
    color: var(--secondary);
}

.views-sep {
    color: rgba(255, 255, 255, 0.15);
    margin: 0 1px;
}

.icon-cal {
    color: var(--primary) !important;
    font-size: 0.75rem;
    margin-left: 2px;
}

.views-pub-date {
    font-weight: 500;
}

.card-actions {
    display: flex;
    gap: 0.7rem;
    align-items: center;
}

.btn-open-link {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    padding: 0.3rem;
}

.btn-open-link:hover {
    color: #fff;
    transform: scale(1.15);
}

/* Estados de Carregamento e Sem Resultados */
.loading-state, 
.no-results-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(139, 92, 246, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s infinite linear;
    margin-bottom: 1.5rem;
}

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

.no-results-state i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.no-results-state h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.no-results-state p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Modal e Player do YouTube */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(3, 3, 5, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 850px;
    background: #0f0f15;
    border: 1px solid var(--border-glass-hover);
    border-radius: 24px;
    overflow: hidden;
    z-index: 2;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.modal.open .modal-content {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Aspect Ratio 16:9 */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.modal-info {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
}

.modal-ranking-badge {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.modal-text-details {
    flex: 1;
}

.modal-text-details h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #fff;
}

.modal-text-details p {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.modal-text-details p i {
    color: var(--secondary);
}

.modal-stats {
    display: flex;
    gap: 1.5rem;
}

.modal-stat {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-stat i {
    color: var(--primary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsividade Completa */
@media (max-width: 1180px) {
    .sidebar-header {
        width: 80px;
        padding: 2rem 0.8rem;
        align-items: center;
    }

    .logo-text, 
    .stats-sidebar-card,
    .nav-section-title,
    .genre-nav span {
        display: none;
    }

    .logo-area {
        margin-bottom: 2rem;
        justify-content: center;
    }

    .genre-nav a {
        justify-content: center;
        padding: 0.9rem;
    }

    .main-content {
        margin-left: 80px;
        padding: 2rem;
    }
}

@media (max-width: 900px) {
    .top-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .filters-container {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar-header {
        position: relative;
        width: 100%;
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1.5rem;
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
    }
    
    .logo-area {
        margin-bottom: 0.8rem;
        width: 100%;
        justify-content: flex-start;
    }
    
    .logo-text {
        display: flex;
    }
    
    .genre-nav-container {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        margin-bottom: 0;
        padding-bottom: 0.5rem;
        white-space: nowrap;
        margin-top: 0.2rem;
    }
    
    .genre-nav-container::-webkit-scrollbar {
        height: 3px;
    }
    
    .genre-nav ul {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .genre-tab {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .genre-tab a {
        padding: 0.5rem 0.9rem;
        font-size: 0.85rem;
    }
    
    .main-content {
        margin-left: 0;
        padding: 1.5rem;
    }
    
    .hero-section {
        padding: 2rem 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .modal-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.2rem;
    }
    
    .modal-stats {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 520px) {
    .filters-container {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .filter-wrapper select {
        width: 100%;
    }
}
