/* Genre Filter Styles */
.genre-filter {
    position: relative;
    display: inline-block;
}

.genre-filter-btn {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.75rem 1.5rem !important;
    border: none !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
    min-width: 160px !important;
    justify-content: space-between !important;
}

.genre-filter-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
}

.genre-filter-btn.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4) !important;
}

.filter-icon {
    font-size: 1rem !important;
    line-height: 1 !important;
}

.filter-text {
    flex: 1 !important;
    text-align: left !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.filter-arrow {
    font-size: 0.8rem !important;
    transition: transform 0.3s ease !important;
}

.genre-filter-btn.active .filter-arrow {
    transform: rotate(180deg) !important;
}

.genre-filter-dropdown {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: auto !important;
    background: white !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
    min-width: 220px !important;
    max-width: 300px !important;
    z-index: 1000 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    transition: all 0.3s ease !important;
    display: none !important;
}

.genre-filter-dropdown.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.filter-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid #eee !important;
    background: #f8f9fa !important;
    border-radius: 8px 8px 0 0 !important;
}

.filter-header span {
    font-weight: 600 !important;
    color: #333 !important;
    font-size: 0.9rem !important;
}

.clear-filter {
    background: none !important;
    border: none !important;
    color: #667eea !important;
    font-size: 0.8rem !important;
    cursor: pointer !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
}

.clear-filter:hover {
    background: rgba(102, 126, 234, 0.1) !important;
    color: #5a6fd8 !important;
}

.genre-filter-list {
    max-height: 200px !important;
    overflow-y: auto !important;
    padding: 0.5rem 0 !important;
}

.genre-option {
    padding: 0.5rem 1rem !important;
    cursor: pointer !important;
    color: #333 !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease !important;
    border-left: 3px solid transparent !important;
}

.genre-option:hover {
    background: rgba(102, 126, 234, 0.1) !important;
    color: #667eea !important;
    border-left-color: #667eea !important;
}

.genre-option.selected {
    background: rgba(102, 126, 234, 0.15) !important;
    color: #667eea !important;
    font-weight: 600 !important;
    border-left-color: #667eea !important;
}

.no-genres {
    padding: 1rem !important;
    text-align: center !important;
    color: #999 !important;
    font-size: 0.9rem !important;
    font-style: italic !important;
}

/* Multiple Genre Selection Styles */
.genre-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.75rem;
    background: #f8f9fa;
}

.genre-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.genre-checkbox-item:hover {
    background: rgba(102, 126, 234, 0.1);
}

.genre-checkbox-item input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.genre-checkbox-item label {
    margin: 0;
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
}

.selected-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.genre-tag {
    background: #667eea;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}